All blog posts from January 2010

Linux Bash Script to Preview Websites

Posted January 28, 2010

I was given an interesting task today. My boss wanted me to develop a script which could basically take a screen-shot of a website (as much of the website [vertically] as is reasonable) using only Bash and any tools readily available on Linux.

Before I proceed, you will need the following software …

Read more

PHP quirk with inline "if"

Posted January 22, 2010

Today, I discovered an interest quirk in PHP 5. I needed to set a single value based on various possible string values. For whatever reason, I decided a big set of "if/elseif" statements wouldn't do, and a switch would be overkill for simply setting a single value. What I tried to do was use in inli…

Read more

Creating a New Bash Script From Within Another Script

Posted January 15, 2010

Today, I started writing a Bash script which installed a bunch of software, and needed to create a new script which the user could execute. I wanted this installer to be a single file, so the question arose how to create a new script?

I really didn't want to 'echo' a bunch of lines piped into a test…

Read more

MySQL Being "Saved"

Posted January 4, 2010

So it seems the MySQL creator Monty Widenius has joined the "should Oracle buy Sun" fray. He doesn't care so much about the two companies as he does about the future of MySQL. He's riding the whole "keep the internet free" shtick.

However, here's my problem - if keeping MySQL free was such a major p…

Read more

The Glorious Projector

Posted January 3, 2010

This is a Sponsored Post written by me on behalf of 1080p Projectors. All opinions are 100% mine.

I love projectors. I've loved them since I first used the old transparent LCD ones which you placed over a regular school-style projector. How could you not enjoy something which brought your games, im…

Read more

Code Comments

Posted January 1, 2010

It amazes me that in this day and age the question of whether to comment your code is still being raised. This issue is such a no-brainer, I fail to see how so many developers can miss the importance of well commented code.

I've heard all the arguments, ranging from "it takes too much time" to "your…

Read more

Vending Machines – the Overlooked Technology

Posted January 1, 2010

I while ago, I had to take a ferry from Vancouver Island to the mainland. As someone who lives on the island, I've had to make use of the ferries for over 6 years now. What was different about this voyage was a little trip down memory lane.

Many years ago, the BC Ferries terminal near to where I li…

Read more

Displaying all 7 posts

Visit my Friends and Family

If you've enjoyed my site, please take a moment to visit my friends and family, many of whom have some interesting insights, and entertaining thoughts and ideas.