Horrell.ca

You are currently viewing all articles in the category “Nerd Alert!”.

citytv.com: Remove Comments

Posted 388 days ago in Code, modified 274 days ago

citytv.com: Remove Comments is a Greasemonkey user script for the Firefox or Safari web browser. This script removes comments from the citytv.com website.

To use this script you first need to make sure you have Greasemonkey installed and enabled for Firefox or GreaseKit installed and enabled for Safari. With that out of the way, do the following:

  1. Click the Download link for the citytv.com: Remove Comments user script below
  2. You should now see an Greasemonkey or GreaseKit installation dialogue.
  3. Click Install

And that’s it, thecitytv.com: Remove Comments script is installed! Enjoy!

Download: citytv_remove_comments.user.js ~1KB

Created: 17/08/2009 10:51 AM

Modified: 17/08/2009 10:51 AM

Total downloads: 379

thestar.com: Remove Comments

Posted 419 days ago in Code, modified 274 days ago

thestar.com: Remove Comments is a Greasemonkey user script for the Firefox or Safari web browser. This script removes comments from the thestar.com website.

To use this script you first need to make sure you have Greasemonkey installed and enabled for Firefox or GreaseKit installed and enabled for Safari. With that out of the way, do the following:

  1. Click the Download link for the thestar.com: Remove Comments user script below
  2. You should now see an Greasemonkey or GreaseKit installation dialogue.
  3. Click Install

And that’s it, the thestar.com: Remove Comments script is installed! Enjoy!

Download: thestar-no-comment.user.js ~1KB

Created: 17/07/2009 03:47 PM

Modified: 17/07/2009 03:48 PM

Total downloads: 422

CBC.ca: Remove Comments

Posted 428 days ago in Code, modified 274 days ago

CBC.ca: Remove Comments is a Greasemonkey user script for the Firefox or Safari web browser. This script removes comments from the CBC.ca website.

To use this script you first need to make sure you have Greasemonkey installed and enabled for Firefox or GreaseKit installed and enabled for Safari. With that out of the way, do the following:

  1. Click the Download link for the CBC.ca: Remove Comments user script below
  2. You should now see an Greasemonkey or GreaseKit installation dialogue.
  3. Click Install

And that’s it, the CBC.ca: Remove Comments script is installed! Enjoy!

Download: cbc-no-comment.user.js ~1KB

Created: 08/07/2009 01:26 PM

Modified: 08/07/2009 01:27 PM

Total downloads: 415

Email issues, resolved!

Posted 1129 days ago in Archive, modified 1129 days ago

I was able to finally fix my previous email issues and the contact form is back in place.

Hooray!

I switched my mail system from my hosting server (yay barclay!) and onto Joyent’s Connector, but I didn’t turn off mail on this domain or delete the old aliases, so not everything was going through as it should. Resolved!

Email issues

Posted 1137 days ago in Archive, modified 1093 days ago

If you’ve tried to send me a message in the last week via the contact page, or the associated address, chances are I never got it. I was fiddling around with some settings and what not and, er, screwed something up. It should be OK now, although the contact form has been temporarily taken offline. So, if you need to contact me, send a message to the address below

Fixed!

In which I talk about my robot what sweeps and vacuums the floor

Posted 1214 days ago in Archive, modified 1199 days ago

Sweepy

About a week ago I bought an iRobot Roomba Discovery. So far, I’m pretty impressed. You don’t get the thoroughness from wielding, say, a Dyson, but it does a good job. Also, there’s something quite enjoyable about starting the little guy up before I go out and coming back home to a clean floor and to find him quietly recharging at the base station. Incidentally, I call him Sweepy. Probably a bit too obvious a name, but it works for me

Of course, I’m not kidding myself, owning a robot is as much fun as it is practical. I’ve always loved robots since I was wee and owning one that cleans up after you, well, it feels like living in the future that I used to think about when I was a kid, you know?

1 You can but it at Canadian Tire as well, which is where I got mine.

The Secret Life of Machines

Posted 1296 days ago in Archive, modified 1296 days ago

Just around my first year of university, perhaps earlier, I was a huge fan of a TV series from England called The Secret Life of Machines which aired over here on the Discovery Channel. In each episode Tim Hunkin and his co-host Rex Garrod would explain how something worked, like vacuum cleaners, elevators (Brits call them “lifts”), and cars. It had it’s own quirky home-made (but well presented) charm with a cool-ass intro song (“The Russians are Coming”, a reggae cover by Val Bennett of Dave Brubeck’s “Take Five”).

You see, since as early as I can remember I’ve always been fascinated by how things work. There was also a period of time where I was obsessed with robots and I’ve always been interested in machines, computers, and technology in general. It’s the kind of show that grabbed me instantly.

So, a week ago, in a fit of nostalgia, I Googled the show and found the Wikipedia entry and some other links as well. To my joy, I found most of the episodes on Google Video, an archive of the episodes provided by Science Zero and all three seasons on BitTorrent. I feel pretty good about this find and thought I’d share. And, these resources were actually linked to by Hunkin himself. Not too shabby.

Two More Feeds for Christopher Planet!

Posted 1320 days ago in Archive, modified 633 days ago

I just added a couple more feeds to the Christopher Planet! RSS feed: one from my ClaimID page, which shows recent changes, and one for my latest events at Upcoming.org. I haven’t actually added them to the site proper, that will happen eventually once I settle on a better layout. I’m still messing around with it on my local development site.

Oh, and if you’ve already subscribed to the feed, you may need to re-subscribe for the other two feeds to show up.

Syndication baby, yeah!

Posted 1327 days ago in Archive, modified 1327 days ago

I spent a few hours experimenting with SimplePie and, thanks to the Sorting multiple feeds by time and date tutorial, I’ve managed to cobble together an RSS feed for Christopher Planet. Now you can subscribe to the feed and be able to track even the most banal minutia of my day-to-day life! Oh, and I’ve also added my delicious feed to the mix as well as the main page.

Enjoy!

Introducing the Mobile version!

Posted 1335 days ago in Archive, modified 1331 days ago

A few months ago I purchased horrel.mobi with the vague inclination of actually doing something with it like, you know, a mobile version of this site. I struggled a bit with how to do this since I was having a hard time trying to figure out how to serve a different page to the new domain from Textpattern. Then, along came the ied_if_domain plugin (original forum post) and my problem was solved. Interestingly, I also figured out another handy solution using SimplePie, but I’ll get to both of those solutions later.

Of course the day I finally getting around to implementing this is the day Apple introduces a new phone a real browser in it1. Damn! Well, this is definitely going to change things for the better and in time I hope more companies start packaging a decent browser with their phones. And that means, of course, that a having a separate “mobile only” version won’t be necessary. Or at least, won’t be as necessary. Admittedly, I’ve never been a huge proponent of a mobile only web, as vaguely alluded to before. I bought the mobi domain anyway because, well, I’m a bit of a geek and also to grab it before anyone else got their filthy hands on it.

That being said, I thought I’d share how I pulled this off since the mobile market isn’t going to change over night and there are probably some other good uses for either approach.

The ied_if_domain plugin approach

This is what I currently use for my Textpattern driven site. It assumes you know your way around Textpattern and know how to install plugins, modify pages and forms, fiddle with Textpattern tags, and the like2.

  1. First, I created my horrell.mobi domain as an alias to my main one, horrell.ca (here’s some instructions on how to do this at TextDrive, written by yours truly).
  2. Next, I installed and activated the plugin. You can find the plugin here and here
  3. And Finally, I modified a few of my existing page templates, specifically the default one and a custom one I created for the Contact page. At the top, I used a <txp:ied_if_domain domain="horrell.mobi"> conditional to generate my mobile only pages and then my regular page follows after the <txp:else /> statement. There’s an example of how to do this in the plugin help if this doesn’t make any sense.

So, what the plugin does is check to see if my page is being accessed by the mobi domain and, if so, produces a slimmer modified version of my main and contact pages. Pretty neat eh?

Now while working on this I had another idea. I remember thinking “How can I get content out of Textpattern into another site?” You see, I was thinking of having horrell.mobi as a completely separate domain, not an alias, and I was toying with the idea of using PHP to grab content directly from the Textpattern database. I wanted it separate to keep my Textpattern templates simple but, admittedly, messing around with PHP and MySQL didn’t seem like the best approach. Then it hit me: syndication! All I had to do was grab content from my site feed and use that and thus was borne the SimplePie approach.

The SimplePie approach

SimplePie is a nifty API for reading RSS and Atom feeds and with it you can grab whatever feed you like and incorporate it into your own site, or even create a whole new site with it. The upside to this approach is that it doesn’t matter what you use to manage your site, so if you don’t use Textpattern then you’ve got this as an option as well. Now, for my own site I use the ied_if_domain plugin approach, but here’s how you’d do it this way:

  1. Create your mobi domain (instructions on how to do this at TextDrive can be found here, also created/revised by yours truly)
  2. Download SimplePie here
  3. Install SimplePie in the web root of your mobi domain (at TextDrive that would be either /web/public or public_html). You can find installation instructions for how to do this here
  4. Now, create your PHP page template for your site using. An example of how to do this can be found here

And that’s it. There are obviously a lot more steps to it, but you get the basic idea. I’ve been experimenting with SimplePie a little and I created a Christopher Planet of sorts that pulls in feeds from all my sites and services. It’s a work-in-progress, but at least I’ve found a use for my Horrell.info domain.

1 And I have to say, I love that bloody phone. The interface is fantastic and it’s pretty much everything I wanted in a phone.

2 There are some handy SimplePie plugins available for users of Wordpress and MediaWiki as well for incorporating feeds, but I have no idea if there’s an ied_if_domain equivalent.

Older | Newer