Henry Cipolla

I hate blog taglines.

RSS Feed for ArticlesArticles

Creating an Array of Hashes in Ruby

I just made a simple mistake which I figure would be good share with anybody new-ish to Ruby. I wrote the following code to create an array of hashes and fill in some values. Can you guess what the output is?

#!/usr/bin/env ruby
testArray = Array.new(5, Hash.new)
0.upto(4) do |i|
testArray[i][:value] = i
end
0.upto(4) do |i|
[…]

Read More

Solutions to common problems encountered while configuring your PC to dual boot Vista and OSX

There are a bunch of guides out there on how to dual boot Vista and OS X on your PC. While I have listed the general steps that I followed below, this post is intended to be a troubleshooting guide for some of the weird problems you can run into while trying to do […]

Read More

How to connect to your Mac from your Linux box

In a move that will surprise anybody who knows me, I’ve installed Mac OSX 10.5.2 on a Dell PC I had sitting around my office. As a side note, I was shocked at how easy it is to achieve this. I did not run into a single problem and the entire process took […]

Read More

How to create infinite sessions with the Facebook Platform API

Like all things with Facebook Platform API, creating infinite sessions is really easy. However, there seems to be a lot of confusion and misinformation on the web about how this works. Part of this could be the fault of Facebook’s documentation. They provide a pretty good explanation of the authentication process but […]

Read More

Close
E-mail It