Money in Javascript

When accepting money online, it is important to be accurate. Just one cent off and your customers may lose trust in your application. That is why it is  It is important to understand how Javascript handles decimals.

By default, Javascript does not have a decimal datatype but it does have a Number type, which can be used as an integer or a double precision float. Because it’s a binary representation of a base 10 system, you end up with inaccurate results when you try to do the math. Read More

How to Enable Autocomplete in Mac Terminal

Usually in a Unix/Linux terminal when you press tab it will autocomplete with several options and then it will list the options below for you to select. This is a great feature if you spend a lot of time in the terminal. You could install ZSH to get these features or if you are like me and like to keep things simple, you can enable autocomplete in the mac terminal using bash.

Enable auto-complete in Mac Os terminal

  1. Type in terminal nano ~/.inputrc
  2. Paste the following on separate lines
  3. set completion-ignore-case on
    set show-all-if-ambiguous on
    TAB: menu-complete
  4. Hit control+O to save changes to .inputrc followed by control+X to exit nano
  5. Open a new Terminal window or tab to open a new session with autocomplete enabled
  6. Type and hit the tab key

Let me know if this is helpful in the comments below!

How to Manually Update Google Chrome Extensions

Chrome is my browser of choice primarily because of the speed and extensions. Extensions allow you to extend the functionality of your browser. One of my favorites is Weather Extension.

I often have users asking how to get updates immediately. For the most part, extensions should auto-update pretty regularly but in some cases, you may want to manually choose when you update an extension. Luckily chrome makes this easy.  Read More