How to Iterate Through an Array in a Shell Script (Bash)

I was recently debugging a shell script and had a hard time remembering how to iterate through an array. So, to clarify this issue for other developers out there, I’ve provided a code example below. I found, too, that it was particularly important to put the items of the array in single quotes. This prevents [...]

Read Post →

Android: Target a TextView

Official Android Logo Icon

In order modify one of it’s properties like, for example, the text it contains, Android developers often rely on targeting views in order modify one of their properties. The small code example in this post targets a view with the ID of humidity and appends some text to it.

Read Post →

Diablo 3 WordPress Theme

diablo_3_preview

In celebration of the upcoming release of Diablo 3, I’d like to announce the release of a Wordpress theme I’m calling the Diablo 3 Graveyard Wordpress Theme. I put this theme together because I was a huge fan of Diablo 2. And now, even though I don’t spend much time playing nowadays, I’ll install D2 from CD and play it over the Halloween weekend. It was, in fact, October of 2011 that I started working on this project, and I’ve just now had the time to finish and release it.

Read Post →

Review: PhoneGap Beginner’s Guide (Packt Publishing) by Andrew Lunny

pgbg_cover

PhoneGap Beginner’s Guide is the most informative source of information I’ve seen/read about PhoneGap. It is a great resource for learning all the nuances that go into making native PhoneGap applications on mobile devices. If you are looking to use PhoneGap, it would be a good idea to start with this book. It really is a comprehensive yet easy-to-read book on using PhoneGap.

Read Post →

Post Data to a Remote Server (Cross-domain) with jQuery in PhoneGap

post json to remote server cross domain phonegap

Android and iPhone apps built with PhoneGap are (because of PhoneGap’s nature) compiled code, and because this compiled code is not a browser, you can execute cross-domain requests. In this short tutorial, I’ll provide some sample code for sending a POST request to a remote server.

Read Post →