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...

Posting source codes on WordPress

This is visual basic. [sourcecode language=”vb”] Private Function TempPath() As String Const MaxPathLen = 256 ‘Max length of the path, just as big as possible Dim FolderName As String ‘Name of the folder Dim ReturnVar As Long ‘Return Value End Function [/sourcecode] To do so, you need to wrap the code between [‌‌‌‌‌sourcecode language=”vb”] and…

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...