We had a great time visiting this tiny island near Aegina in the Saronic Gulf, south of Athens, Greece.
Wake Forest Ranked #22 in Pre-Season Discussion
June 30th, 2008 by Brian No comments »Wake Forest hasn’t had three consecutive winning seasons since the inception of the Atlantic Coast Conference in 1953. Things are looking up, however, as ESPN.com writer Mark Schlabach has placed the Demon Deacs at #22 on his pre-season top-25 ranking. Let’s Go DEACS!!!
Full ranking here: Bulldogs back at No. 1 in updated Top 25
How to fix the widescreen issue with your Everio GZ-MGxxx camcorder
June 19th, 2008 by Brian No comments »So, for Christmas 2007 I got a JVC Everio GZ-MG130U HDD video camera. I love it! The video quality is great, the battery is pretty good, you record straight to HDD (30GB in my case) and you can even record in 16:9.
But… you can’t playback in 16:9… what??!?!?! Yeah, for some reason JVC doesn’t write the proper widescreen flag properly in ther MPEG2-PS file format (for which they use the .MOD extension). So, how do you fix your videos?
» Read more: How to fix the widescreen issue with your Everio GZ-MGxxx camcorder
Do you Love your Carbon Footprint?
June 1st, 2008 by admin No comments »
Are you tired of being badgered about the size of your carbon footprint? Worried that your carbon footprint is inadequate or not as big as the ones you see in Hollywood? Don’t get down, be proud!! Tell the world that you won’t let the world tell you that you need to change.
http://www.cafepress.com/lovemycarbon
Fred Thompson’s Message to the People of Iowa
January 2nd, 2008 by admin No comments »Fred really seems to understand the threats facing our country. Check out this video he released a few days ago.
He may not be flashy – but I think he is emerging as the strong conservative leader that the GOP and the country need.
[youtube]http://www.youtube.com/watch?v=VblJq4j0_SE[/youtube]
Access your Amazon S3 buckets with a Windows client
January 2nd, 2008 by Brian No comments »I’ve been working with the Simple Storage Service (S3) from Amazon Web Services (AWS) recently. They have a great set of services and API’s available for the services at AWS but you are responsible for building whatever UI you need to manage them. Well, thanks to the developer community, there are great tools popping up (some open, some not).
I just downloaded BucketExplorer and started using it to view and upload/download files in my S3 buckets. It is extremely easy to use and did exactly what I wanted.
Here’s a screen shot of what it looks like. You can download an evaluation copy here
Another nice tool that I am trying out is the open source backup client S3Backup. It is in beta as of this post, but it seems to have some good basic functionality. You can get a copy here. You can create a simple schedule (uses Windows Task Scheduler; which means no extra “watcher” process to keep running!) and backup any files on your machine (even from network shares, assuming you have the permissions & connectivity setup).
The interface to S3Backup looks like this:

The Theory of Huckativity
December 18th, 2007 by Brian No comments »
Carter + Clinton = Huckabee
[Note: I can't take credit for this - I think i first saw it on a RedState comment ]
MySQL ON DUPLICATE KEY INSERT
December 18th, 2007 by Brian 5 comments »Have you ever wanted to write a single query that would update fields in a table – but you can’t be 100% sure the record exists yet for you to update? For example, you might have a table that holds configuration data for your application. There will be one record for each user in your system. You could use their “UserID” as the primary key (that is crucial to making this work).
Well, instead of doing this:
<?php
$sql = "SELECT COUNT(UserID) FROM configuration WHERE UserID='SomeUser'";
$result = mysqli_query($db,$sql);
if ($result && mysqli_num_rows($result)>0) {
$aResult = mysqli_fetch_array($result);
$iRecordExists = ($aResult[0]>0?1:0);
}
if ($iRecordExists>0) {
//do an update
$sql = "UPDATE configuration SET someField='someValue' WHERE UserID='SomeUser'";
mysqli_query($db,$sql);
}
else {
//do an insert
$sql = "INSERT INTO configuration SET someField='someValue', UserID='SomeUser'";
mysqli_query($db,$sql);
}
?>
You could just do this:
<?php //insert the user's configuration field - if the record already exists - update instead $sql = "INSERT INTO configuration SET UserID='SomeUser', someField='someValue' ON DUPLICATE KEY UPDATE someField='someValue' "; mysqli_query($db,$sql); ?>
Simply put, the query will attempt to insert the configuration record first. If it finds that the specified UserID already has a configuration record in the table, it will simply update the existing record according to the values you include after “ON DUPLICATE KEY UPDATE”. You can include more than one field to update as well.
[Update: As Paul questioned in the comment below, the WHERE clause is not correct (in my original post). The trick is, you have to include the primary key as part of the insert statement - such as UserID in the example above.]

