having fun with code

Tag Archives: osx

Uninstalling brew (so I can reinstall)

Uninstall cd `brew —-prefix` rm -rf Cellar brew prune rm -rf Library .git .gitignore bin/brew README.md share/man/man1/brew rm -rf ~/Library/Caches/Homebrew http://superuser.com/questions/203707/how-to-uninstall-homebrew-osx-packet-manager Reinstall /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)" https://github.com/mxcl/homebrew/wiki/Installation

Clone your OSX terminal window

Sometimes, when working on a terminal window I would like to open a new window on the exact same location or path. This little AppleScript will do the trick: tell app "Terminal" to do script "cd \"'`pwd`'\"" From the command line: osascript -e 'tell app "Terminal" to do script "cd \”'`pwd`'\”"' You can also create [...]

Javascript console in the terminal (command line)

I’ve been looking for a command line Javascript console for a while. I have even thought of creating my own one, some hybrid between my fake Linux terminal and JSFiddle.net. Lately, I’ve been working with node.js lately on a little project just for fun. Never before I had done server side Javascript and it looks [...]

Enabling PHP5 on Mac OS X Leopard

I had done this already at work, but for some reason my MacBook Pro still didn’t “understand” PHP. Well, I’ve decided it’s time to activate it: # Use your favorite editor mate /etc/apache2/httpd.conf # Uncomment the line: #LoadModule php5_module libexec/apache2/libphp5.so # Restart apache sudo apachectl restart Done.

MyGameOfLife source code

Almost a year ago I was learning some Cocoa and I decided it will be fun to implement a Cocoa based version of Conway’s Game of Life. Back then I didn’t publish the source code, not for any special reason. So now I have just uploaded it to Google Code. It’s not fully functional, since [...]

About the blog

This is a blog about development, focused mainly on Javascript but also other languages like python, shell scripts and more.

About the author

Eneko Alonso is a software engineer and UI developer with more than eight years of experience in software and web development. He lives in San Luis Obispo, California and works at LEVEL Studios.

Contact Info

Contact Info

PromoteJS

JavaScript JS Documentation