All blog posts from January 2010
Linux Bash Script to Preview Websites
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 …
PHP quirk with inline "if"
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…
Creating a New Bash Script From Within Another Script
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…
MySQL Being "Saved"
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…
The Glorious Projector
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…
Code Comments
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…
Vending Machines – the Overlooked Technology
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…
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.
- Crause Family - the family website
- Peter Crause - my father
- Justin Crause - my brother
- Cencina Photomagic - great photographer