Skip to content →

Month: September 2013

AddressBookFiller for iOS

AddressBookFiller is a simple application which populates your address book with contacts. It is an updated version of my previous post.

This is useful when developing for the iOS and working on the emulator. On many occasions, I’ve spent quite a bit of time adding contacts to the emulator to test something. Then when I change emulator version, they all get erased. This is very frustrating. So I put together this simple application which allow you to programatically fill up your address book.

Currenly the address book is populated with U.S. Presidents. Values are set for:
* first name
* last name
* photo
* phone number
* birthday
* Address: street, city, state, zip

Source on Github: https://github.com/dougdiego/AddressBookFiller

Comments closed

Node.js on the Raspberry Pi

I needed to install Node.js on the Raspberry Pi and searching the web gave me so many difficult ways to do it. But since node.js now distributed as a binary for the Raspberry Pi, it’s pretty easy.

First, go to http://nodejs.org/dist/latest/ and find the latest Raspberry Pi release. It’s the file ending in: linux-arm-pi.tar.gz

Then on the Raspberry Pi, update the package list

sudo apt-get update 

Update packages

sudo apt-get upgrade -y 

Create a directory to install node:

sudo mkdir /opt/node

Change directories to a temporary directory.

cd /tmp

Download the latest release you found at http://nodejs.org/dist/latest/

wget http://nodejs.org/dist/latest/node-v0.10.17-linux-arm-pi.tar.gz

Uncompress it:

tar xvzf node-v0.10.17-linux-arm-pi.tar.gz 

Copy it to your new directory:

sudo cp -r node-v0.10.17-linux-arm-pi/* /opt/node 

Then add it to your environment variables by opening or creating .bash_profile in your home directory. (You nano if you can’t use vi.):

cd
vi .bash_profile

Add the following to your .bash_profile

PATH=$PATH:/opt/node/bin
export PATH

After saving the file, you’re all set!

Comments closed