Archive | Technology RSS feed for this section

Set the contents of an iframe using jQuery

I needed to do some magical AJAXy previewing (inline) for an email templating system I’m building that generates both text and HTML versions of an email. For displaying the HTML version of the email inline I was using an iFrame. Using jQuery to do an AJAX post of the template, I then needed to render [...]

Leave a comment Continue Reading →

Fix jQuery Datepicker in Colorbox

I couldn’t get a jQuery datepicker to bind to an element that was being displayed in a colorbox (even when trying with jQuery Live). Found a solution on (surprise) StackOverflow.

Leave a comment Continue Reading →

Shortcodes in WordPress Widgets

I was setting up a new WordPress site on a theme I purchased, and got aggravated that I couldn’t seem to use the shortcodes included with the theme within text widgets. Google to the rescue. If you go to edit your theme’s functions.php file, add this line: add_filter(‘widget_text’, ‘do_shortcode’); You’ll be able to use shortcodes [...]

Leave a comment Continue Reading →

Install Snow Leopard From SD Card

This came in immensely useful for me today, for reasons too long to discuss.

Leave a comment Continue Reading →

Seagate Momentus XT – Boot Times

I did a few more tests to try to record differences in boot times. I re-installed (well, re-imaged anyways) the Momentus XT while hooked up as an external drive. I re-installed it, and the subsequent boot times (as it “learned” what files to store on the SSD portion of the drive) looked something like this: [...]

Leave a comment Continue Reading →

Seagate Momentus XT – Hybrid HD

Two weeks ago, my wife and I returned from a vacation to Montreal. As fate would have it, the next morning (before I had a chance to make a clone, which I do on a nightly basis when I’m not on vacation), my hard drive up and died. System lockups. Half booting into OSX but [...]

Leave a comment Continue Reading →

There is a problem with the office database

Yes. That’s the error I was getting after re-installing Microsoft Office 2008 for Mac on my MacBook Pro following my hard disk’s decision to make a transition to the afterlife. Anyways, after some googling and trying a few things, I found that this did the trick for me: cd ~/Documents/Microsoft\ User\ Data/ rm -Rf Office\ [...]

Leave a comment Continue Reading →

Startup Items on Ubuntu

If you’ve ever wanted to get a script to run on boot (or have a daemon like cijoe or ar_sendmail start up, for example), you’ll need to put an appropriate script in the /etc/init.d directory. You’ll also need to ensure it is executable (chmod +x). After that, though, you need to create appropriate symlinked versions [...]

Leave a comment Continue Reading →

Iffy Developers

My first thought, reading the above paragraph wasn’t “I can’t wait to get an iPhone 4″, but rather…

1 Comment Continue Reading →

The Six Stages of Debugging

1. That can’t happen. 2. That doesn’t happen on my machine. 3. That shouldn’t happen. 4. Why does that happen? 5. Oh, I see. 6. How did that ever work? This needs to be re-posted on the Interwebs every now and again, especially when you just finish having one of “those” moments.

Leave a comment Continue Reading →