I am Hack Sparrow
Captain of the Internets.

Archive for June, 2012

JavaScript Array-like Objects

Have you heard about array-like objects in JavaScript? If no, this is a good post to learn about them. Array-like objects are not a separate object type, they are the same old object we are familiar with, except they 'look' like arrays. What do I mean by that? Let's find out. You might be familiar with the arguments variable which every JavaScript function has access to by default. We access its items using arguments[0], arguments[1] etc. Let's take a lo ...

Homebrew update Error – cocot.rb

If you ever come across this error while trying to update homebrew on your Mac: [code] error: The following untracked working tree files would be overwritten by merge: Library/Formula/cocot.rb Please move or remove them before you can merge. Aborting Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master [/code] just, do this: [code] $ rm /usr/local/Library/Formula/cocot.rb [/code] I have no idea what cocot.rb is for, or where it cam ...