Unable to install Homebrew

Unable to install Homebrew with this? ruby -e “$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)” What’s happened -e:70: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777 ==> This script will install: /usr/local/bin/brew /usr/local/Library/… /usr/local/share/man/man1/brew.1 Press RETURN to continue or any other key to abort ==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew Password: ==> Downloading and installing Homebrew… remote: Counting objects:…

Read more...

Save Terminal from Process Completed in Mac OSX

What’s happening One day, when I opened up terminal as usual, it showed [Process completed] and just terminated. I could not type any thing, run any scripts and work on my project. Even worse, this made me unable to install programs into my computer because many installations need to run shell scripts. Okay, I searched…

Read more...

Caffeine on Mac and Ubuntu

Caffeine has been a very useful app to instantly disable or enable the screensaver on mac. At least for me, I am using multiple computers in office and all of them except the one I am using will usually get idle. Getting into screensaver, however, is bad sometimes especially I was reading from that screen…

Read more...

Show completions and quick help tips in Xcode

I know it is troublesome, tedious, or just like hell. Apple has his own way to do a common task. Very often, we need to use the autocompletion in IDE to assist coding so we do not need to memorize the billions of function names. In Eclipse, everything is automatic. A list of function names linked together…

Read more...

Change author info for old commits in Git

While using hit, it is really usual to have regrets on the commits done, especially the name used. In order to change those information in your repository, open terminal (or cmd in windows), go to the folder of your git repositoy, and run the following commands. Remember, replace “old_name”, “new_name” and “new@email.address” with your own…

Read more...

Ssh with password saved

Ssh is a very convenient way to remotely command or control other devices. We use ssh to push commits to git server, to access remote server, and even to manipulate the content of our iphones and ipads. However it’s usually distributing to type your long and elusive password every time. Therefore here I would like…

Read more...

Mbox Mail for Mac is actually working on Lion

Once I thought the Mbox Mail for Mac doesn’t work in Lion. The reason is that when I use the same setting in Thurderbird, i can receive emails. This made me ensure the problem comes from the new Apple Mail 5. I dug into the protocol IMAP, learnt the commands used in it. After that…

Read more...

Ruby on Mac OSX

In Mac, Ruby is preinstalled. You can open Terminal and input the followings to view the version of Ruby installed in your Mac [sourcecode language=”bash”] ruby -v [/sourcecode] Update Ruby. You might want to update your Ruby, however there is no installer for Ruby like Windows. Instead, we can use MacPort. Step 1. Install MacPort. You can download from…

Read more...

Showing and hiding the hidden files in Mac

It’s easy! Open Terminal and run the following commands [sourcecode language=”bash”] #Show hidden files defaults write com.apple.finder AppleShowAllFiles TRUE killall Finder [/sourcecode] [sourcecode language=”bash”] #Hide hidden files defaults write com.apple.finder AppleShowAllFiles FALSE killall Finder [/sourcecode]

Read more...

Compact and repair database in Access through VBA

Normally, we need to go through bunch of clicks to do one action in MS Access. For example, “Compact and Repair Database”. This function can compact your database and make the file smaller. If you never used this, it may take some time to find it. Try it. LOL. But here I would like to show you how…

Read more...