Archive for the ‘DIY’ Category

Deleting Channels From MythTV

Wednesday, January 28th, 2009

MythTV is a DIY digital video recorder.  Building a box to do this isn’t much beyond putting together a PC and installing Linux, but its not something I’d expect a non-geek to dive into.  Geek or not – everyone should have some form of digital video recorder, it completely changes how you watch TV.

Of course, since my MythBox is using a capture card to grab video from my sattellite receiver it has no idea what channel has which show.  When I started with MythTV, there was a free service offered by Zap2It.com that offered up listing information in an easy to consume format.  The listings provide MythTV with guide information so it knows what is on, and when.  Today there is SchedulesDirect which is well run and inexpensive at $20 USD a year.

Over time, channels change and this is reflected by changes in the listing data.  MythTV detects these changes, and will add new channels automatically – it won’t remove channels that we listing information is no longer being delivered for.  I’m on an older version (0.20) but suspect there is a design decision here.

Using the UI to remove channels is pretty clunky.  The MythTV site has instructions on accomplishing this via the command line, and while I’m comfortable with the command line – it is a multi-step process which I dreaded doing.  So over a few months, more and more bogus channels that I didn’t actually have would get added.  For example – a new pay per view (PPV) channel would appear, new guide data would become available and I’d start seeing it as an available channel… grr

Of course, you still need to connect to SchedulesDirect and remove the unwanted channels from your subscription otherwise MythTV will just keep adding the ‘new’ channels back.  Tonight I wrote up a quick Perl script to automate the multi-step process – this makes removing unwanted channels quick and easy.

Usage: remove_channel.pl <channel number>


#!/usr/bin/perl

use Mysql;

# MYSQL CONFIG VARIABLES
$host = "localhost";
$database = "mythconverg";
$user = "root";
$pw = "";

# PERL MYSQL CONNECT()
$connect = Mysql->connect($host, $database, $user, $pw);

# SELECT DB
$connect->selectdb($database);

# DEFINE some MySQL queries
$findchan = "SELECT chanid FROM channel where channum = ".$ARGV[0];
$delchannel = "DELETE FROM channel where chanid = ";
$delprogram = "DELETE FROM program where chanid = ";

# EXECUTE THE QUERY
$execute = $connect->query($findchan);

while (@results = $execute->fetchrow()) {
print "chanid ".$results[0]."\n";
$connect->query($delchannel.$results[0]);
$connect->query($delprogram.$results[0]);
}

Samsung ML-2010 Toner Refill

Wednesday, November 19th, 2008

In the fall of 2005 laser printers had fallen to the near $100 mark and our ink jet printer seemed to have an endless appetite for (expensive) ink cartridges.  It was time for a change, and while colour printing is nice – a lot of our printing needs were very basic.  At the time, staples.ca had multiple web coupons you could “stack” and cut a $199 printer down to $126, and there was a $30 mail in rebate on top of that.  I never got the mail in rebate due to the standard rebate avoidance techniques (by the time I found out what I needed months later, the box had gone into the trash).

The printer I bought was the Samsung ML-2010.  It was known to be easy to refill, and considering that a new toner cartridge was nearly $100 at the time – I knew I’d be going the DIY route when the time came.  A full 3 years later we still use this printer and it has been mostly trouble free.  The toner had finally gotten low enough that we needed to do something (taking the cartridge out and shaking it wasn’t helping much anymore).

I figured I’d be getting one of the toner refill kits from eBay, but which one?  I turned to redflagdeals.com and found this thread that pointed me at TonerKits.  While the thread was started back in 2004, but its still going strong at 47 pages with recent positive reports.  I purchased from TonerKits via eBay simply selected the right kit for my printer.  I paid $11.99 USD (7.99 + 4 shipping), but looking today – the same kit is $9.99 with free shipping.  The eBay transaction was quick, and smooth.

Refill Kit Includes:
1 – 100g black toner refill
1 – pouring spout w/cap
1 – set illustrated instructions

(there are cheaper kits with less toner, 100g will fill to ~75% level twice)

Pictured above is my toner cartridge and the 3 items I received from TonerKits.  The refill process was very simple. (more…)

Kids Picnic Table

Sunday, July 20th, 2008

At one point growing up if you asked me what I wanted to do my answer was that I wanted to be a carpenter.  I liked building things, I still do.  Of course, as I got older I realized that being a construction worker was probably going to be hard work so my tune changed.  That and my fascination with computers resulted in me being a software developer.  I still do like to build things.

The other weekend Jenn suggested that I build a picnic table for our daughter Alison.  It seemed like a neat father/daughter project.  Jenn dug up some plans from the internet and we built one.

Other than an electric drill, you can do this all with hand tools.  If you’re hard core – you can use a manual drill (I’ve actually got one!) and do without power tools.  Of course, as we’re cutting wood here you can get into power saws etc, but as I wanted to let my 3 year old participate it seemed like the fewer power tools involved the better.

Total cost was about $40.  I used white cedar from Lanark Cedar and weatherproof deck screws that I got at the local hardware store.  It took a couple of hours, but if your more organized and need fewer juice breaks you can probably get it built pretty quick.

I originally thought that the 1×3 and 1×6 wood called for by the plans would be pretty skimpy, but as a whole the table is pretty solid.  The table top is about 19″ off the ground, making it impractical for an adult to sit at it.  Thus, if you’re the right size to sit at the table – it will hold your weight.  We actually made the table / seats about 6 inches longer than the plans called for.  Overall it was a very satisfying weekend project.