Donald Trump on Bush and the Iraq War

"Well, I think Bush is probably the worst president in the history of the United States," says Trump:

Obviously it is no secret that many people share his opinions and so no surprises here, but I think it's a good sign that an interview like this is being shown on mainstream CNN news from a public figure like Trump (who isn't the Dixie Chicks and isn't Michael Moore).

$10 Linux Distribution Donation Challenge

Someone named Thomas Cort had a create idea. For everyone to donate $10 to their software distribution for each installation they have. It got me thinking...I have been using Gentoo for almost 5 years now and I don't think I have given them a penny yet. I have done some volunteering, submitting patches and new ebuilds and such (my bugs), but no cash donations. Considering that Winblows costs well over $10 and I have been using Gentoo for 5 years for free, I am getting a good deal. Gentoo has been getting bashed around a bit lately too...so I feel bad for it. Gentoo is an excellent quality distribution with great developers and this $30 USD donation I just made is my endorsement.
[img_assist|nid=228|title=|desc=|link=node|align=left|width=200|height=166]
I, too, would like to challenge everyone who uses a Free / Open Source operating system to make a $10 donation to their software distributor for each installed system they have.

Cucumis - Free Online Language Translation by Humans

I heard about this translation site called "Cucumis" a long time ago. I recently received an email from someone in Cuba. Although I could understand it I felt there were a couple subtleties I was missing, but couldn't remember what that damn site was. I googled and googled and couldn't find it.

Google Translate butchered it by the way: "Hello friends I hope esten either, here all or, that so cold the cuentanos something, we had a client to vancouver by many days, good we wished much luck and successes him..."

The other ones weren't very good either. The email was far too casual and slangy. Even I did I better job than Google Translate with my limited Spanish training.

Eventually I found Cucumis' website by searching Techcrunch for anything translation-related. I found it, so techcrunch must have been where I saw it originally. The way cucumis works is this: you earn points for translating things for other people, and in exchange you can spend those points by asking others to translate things for you. Within an hour someone had translated the Spanish into perfect English: "I hope you are okay, everybody here is okay, how is the cold weather? Tell us the news. We had a client from Vancouver for many days. Well we wish you good luck and success..." Notice how the meaning of the last sentence is totally different, which is one of the things I wasn't sure about in my own translation.

In an effort to return the favour and earn back the points that were deducted from my profile for having my friend's email translated, I searched for any translation requests from French->English but didn't find any. Cucumis is a France-based site so that might explain why. Among the languages they support? Klingon. No High Elvish though.

Upgraded to Drupal 5

I just upgraded to Drupal 5. Seemed to go fairly smoothly except for a few glitches involving the location module. What a PITA is was though. I took my old site's mysql database dump, copied into a local Drupal 4 installation, disabled all modules, dumped the database, copied it to a local Drupal 5 installation with all my modules installed, then started enabling modules 1-4-ish at a time, and running update.php after each, making sure that the schema upgrades worked properly. Then finally, grabbed the mysql dump, uploaded it to my web host, checked out my Drupal 5 installation from my subversion repository, and imported the sql dump to a new database. Then tested.

So this is my first post with Drupal 5. Uh-oh, looks like the collapsible regions of this form are not working... I hope that's easy to fix.

Update: looks like it was an easy fix. Just had to refresh pages in the browser.

Tags: 

Recently Updated Drupal Modules Feed Part 2

A while back I created a recently updated drupal modules feed. I used RSSxL. This sucked wind because it would only scan the first 20kB of the page it was scrapping so it would miss tons of drupal module updates. I recently tried Dapper and was really impressed. It could take any webpage and allow me to click on divs and construct an RRS feed. It wasn't flexible enough though and was difficult to use. Part of the difficulty was probably because Dapper is a web app.

I recently discovered OpenKapow and they took a different approach, making a desktop Java application instead. It is hugely flexible and easy to use. I got a feed up and running much quicker than I did with Dapper. Here it is: Drupal Recently Updated Modules Feed. Since OpenKapow is so powerful I think it will be possible to add the entire description of the module (for modules with more than one paragraph) along with the links to the updated versions and what not.

New Theme

I got pissed off at that crappy old sands_css theme I was using. I realized it wasn't working in Konqueror properly (and therefore probably screwed up in Safari as well). Anyways I always thought it looked kind of ugly so I just switched quickly to some random theme I found in 5 minutes on Drupal's theme page. It's a lot nicer and it has 3 columns so all those widgets in the sidebar are now all closer to the top of the page.

Tags: 

Peru - Here we Come (and thanks kayak.com)

We just booked a flight to Peru on Monday. According to Google Earth's "ruler" feature, it will officially be the furthest I have ever flown, just a bit further from Vancouver to Lima that it is to London, England (as the crow flies). But if we go to Puno, Peru to see Lake Titicaca that will be the furthest I have ever been from home (prior to that, the furthest ever was Munich, Germany).

I really want to thank kayak.com for helping me find the flight that worked best for us. Kayak.com recently added a "my dates are flexible" feature. This was something I really wanted for a long time. Especially with long haul flights some flights are only on certain days of the week to certain destinations. For example you can't get from Lima to Vancouver on a Sunday or Monday with Air Canada. We ended up going with a United flight and saved about $450. I probably would have never found those flights because I never use the sites that they were being sold on (Orbitz and cheaptickets.com). I sometimes check expedia.ca but they didn't have the United flights. Anyways, Kayak.com is SO awesome, you should try them out and tell all your friends. I have no affiliation with them, I just want them to stay in business.

Tags: 

My GMail is Locked Down

[img_assist|nid=215|title=GMail Lockdown Screenshot|desc=|link=node|align=right|width=300|height=119]
All of a sudden I was logged out of GMail and when I refreshed the page, I got this message about "unusual usage of your account."

I do use checkgmail and I sometimes have GMail open on two different browsers, one at home and one at work. Never caused any problem before. I think I'll fill out their form.

Tags: 

Fast Python Script to Get Photos off an iPhoto CD

My uncle came over with a CD of photos from his trip to Peru. I am pretty sure the CD was created with iPhoto as there was an iphoto.xml file in the root of it. Anyways the first problem I had was viewing the pictures after mounting the CD. The file sizes were all weird (too small considering the camera that was used to take them) and some file names were duplicated. Trying to open them up with kuickshow or imagemagick did not work. Then I remembered that this happened before when we got our photos from our wedding photographer (also a Mac user). The solution is to not use the "auto" filesystem type, but to use "iso9660" instead. I forgot to check what the "mount" command actually said it had mounted it as, but mounting it manually from the command line with the "-t iso9660" option fixed it (my fstab has "auto" for the cdrom filesystem type). After fixing that, the filenames of all the photos were unique and the file sizes seemed more reasonable (~2.5 MB).

The second problem was that the photos were not stored in a flat hierarchy in one single directory, there were stored in the year/month/day directory hierarchy. kuickshow, an excellent image viewer/slideshow program, did not want to handle these directories recursively. So I had to whip up a quick python script. I knew I probably could have done it in bash too. But I don't know bash and it's not as readable. Relies too much on special punctuation to do things, kind of like perl. I hate the [-e and [-n kind of stuff, and the dollar signs. So ugly. Here's the quick script:

#!/usr/bin/env python
import os
from os.path import getsize
import shutil
dir='/mnt/cdrom/'
dest='~/tempphotos'
for root, dirs, files in os.walk(dir):
    for file in files:
        fullpath=root+'/'+file
        destpath=dest+'/'+file
        if getsize(fullpath) > 200000:
            shutil.copyfile(fullpath, destpath)

It worked great. Pythonistas will not be too impressed by this 10-liner. I'm mainly just showing that for those who have never used Python or those who have only used Python a little. It makes a great bash replacement, better than Perl because you can read it again later and actually understand it. I have used for many other such tasks, most of them more complicated than this one.

The getsize(fullpath)>200000 was to filter out the thumbnails which iPhoto also included on the CD. The fact that it included thumbnails is the dumbest thing in the world by the way. If you are exporting files on a CD one would expect that the person who exported it was going to give the CD to someone else and that someone else might not have iPhoto, so the thumbnails become totally useless. In my opinion, thumbnails are something should be filed away in a hidden cache directory on the user's hard drive, and not seen anywhere else. GIMP used to put thumbs in a .xvpics folder, something else uses ThumbsDB (Windows?). Picasa (correctly) puts them somewhere where I can't see them.

The only other problem was that stupid iPhoto had duplicated some photos so they appeared twice. I realized afterwards that some folders had a thumbs directory and an originals directory, and some originals in the the directory itself. This might have been because there were modifications to the original so the originals were copied automatically to a sub-folder before being modified.

Almost Ready to Upgrade Site to Drupal 5.0

A while ago I mentioned that I was waiting for a few modules to be ported to Drupal 5.x before I upgrade this site to Drupal 5.0. Well the final two modules, gmap and location were ported recently and I started creating a Drupal 5.0 installation in my subversion repository and starting testing. Everything has gone smoothly so far, including many schema upgrades by the various modules. My map of authentic Mexican restaurants in Vancouver also loads much faster now under Drupal 5.0 and the new gmap module. I also like the new default theme, Garland, that comes with Drupal 5.0. I like using default themes because it always themes all the elements correctly, provides for easy upgrades when the next version of Drupal comes out, and I just don't have time to invest in my making my own Drupal template that actually looks any better than the default. This site should be running Drupal 5 within a couple of weeks.

Tags: 

He-Man Sings

I saw this "He-Man sings 'what's going on'" video when it first came out and recently discovered it again. I was a huge He-Man fan when I was a kid. I enjoyed seeing my old friends Man-At-Arms and Skeletor. The over-dubbing and editing is masterfully done. Love the IM chatting between He-Man and Man-At-Arms and Skeletor's entrance.

If you get really nostalgic you might enjoy watching the intro:

I can't believe I actually watched that show.

Tags: 

Top 10 Reasons to Choose Linux over Vista

Some people have asked me if they should upgrade to Vista. I usually suggest that they instead switch operating systems completely. Especially if they are the types that use their computer for web browsing and email. Here are ten reasons why I think all Windows users should at least think about Linux this time instead of Vista.

  • Digital Rights Management - Why cripple your computer and yourself with DRM when you can just use Linux?
  • Security - No more worms, viruses (look at this very short list of Linux viruses), virus scanners, spyware, pestware.
  • Beryl - Totally kick-ass effects and Mac OS X expose-like feature. Compared to Microsoft's Aero product, it is a lot better and is getting better all the time.
  • Ubuntu - I would be reluctant to recommend Linux to the general public if it were not for Ubuntu. It has truly made the "Linux Desktop" a reality.
  • Google - Google has given us the best mail application, a decent word processor and spreadsheet application, a feed reader, a Calendar, and so much more, all over the web so not only are these applications not tied to any particular computer, they also don't tie you to any particular OS. (Also, Google ported Picasa, the best photo management software to Linux recently).
  • Firefox - How could one use all those applications from Google and others if it were not for Firefox, the cross-platform IE-killer?
  • OpenOffice - For all your old Microsoft Office documents and new documents, this does the job. No need to be tied to Windows and Microsoft Office anymore.
  • Software choice - Tons more applications. Linux has a huge variety of choice when it comes to applications. There is even choice when it comes to your desktop environment (KDE, Gnome, etc...).
  • Cost - Linux is free, Windows is expensive. As hardware prices have come down (while the price of Windows hasn't), this expense is becoming a larger percentage cost.
  • Linux (no matter what flavour you get) is updated multiple times per year with the latest and greatest. With distributions like Ubuntu these updates can be installed seamlessly, never needing a clean install again. Don't settle for crap from Microsoft, a company that took 5.5 years to deliver a marginally better OS than the last one.

Ok, clearly 10 isn't enough, here are some more...

  • Software Installation - With Linux with the press of a button you can install a program and all its dependencies. Not only that but smart package managers like apt-get can remove dependencies that are no longer required by any other program.
  • Stability - There is no such thing as the blue screen of death in Linux. Actually the blue screen is now a rare occurrence in XP but I saw it happen twice on two different machines in the past month, so it is definitely still there. Linux users are known to brag about their computer's "uptime" -- the amount of time their computer has been turned on since the last reboot. Linux lock-ups or crashes can occur but it is generally agreed that these are far less likely to occur than with Windows.
  • Minimal Hardware Requirements - You can run Linux on almost anything. I run it on a 500MHz laptop with 256MB RAM just fine. I just chose a lighter desktop manager. If you are running Windows XP right now, your computer will only get slower with Vista. Switching to Linux might allow you to keep the hardware you have now for another few years comfortably.

(Update 2007/02/23) Wow, my first time on digg. A lot of the comments on digg were pretty negative but at least 88 people dugg it (actual number was higher since surely some people buried it). The audience was not really techies but more people like my grandma, parents, sister people who would actually learn something from the article and can mostly understand the gist of it. So I don't really care if some geeks are pulling their hair out. Someone even insulted my website, another took a jab at my credibility because I blogged about the new Canada Food Guide. Another had some comments about my resume which is at least 4 or 5 years out of date. Anyways, this says way more about the digg readership or at least a vocal minority of it. It was fun to get on digg though in a significant way.

Tags: 

New Canada Food Guide

The Canadian Government just released a new Canada Food Guide a while ago. It made me realize I don't eat nearly enough fruits and vegetables. Although I have been eating a lot more of them since New Year's (you know because of resolutions). We might start doing one of those vegetable delivery services like spud.ca. Maybe if it comes to the door every week I'll be forced to eat it. On the weekend I had a cupcake and tried to argue that it counted as one grain product. Some people didn't agree with me, as if the sugar somehow cancelled out the grain product. Sorry it doesn't work that way. There is flour in a cupcake so it counts.

Tags: 

Pages

Subscribe to David Grant RSS