Category: computers suck

  • livemp3 – convert those big old audio torrents to something listenable

    You’ll need Perl, and Config::IniFiles.

    Program: livemp3.

    A sample ini file so you can see how to set this up: welch_rawlings_shepherds_bush.ini.

    At the moment, this just generates output that you’ll need to feed to sh, but it handles renaming, converting and tagging MP3s to my satisfaction.

    Update: it doesn’t handle FLAC tags, even though they’d be a good source of metadata. I may look into implementing that some day.

  • Blog Torrent – Simplified bittorrent by Downhill Battle

    Blog Torrent – Simplified bittorrent by Downhill Battle. It’s supposed to work on any PHP-enabled website.

    I don’t understand their #1 feature priority:

    Mac version. A high percentage of the best bloggers, video artists, and filmmakers use macs. It is crucial to make a mac version of Blog Torrent.

    Those bloody Mac users, with their creative haircuts …

    (via Boing Boing)

  • gmail message limit

    I didn’t know that gmail limited messages to 10MB. I found that when I tried to send 15MB of photomontages today.

  • MetaFilter open!

    Yay, MetaFilter opened its membership again!

  • CF Card Undelete for Linux

    I hope you never need this. But this worked for me.

    I accidentally deleted a bunch of files from the CF card that was in my card reader. I recovered them all perfectly.

    First, before you do anything else, unmount the card’s file system. This will stop any additional changes being made to the card.

    You’ll need to know:

    1. the device name of the card’s file system. It could be something as simple as /dev/sda1, or it could be something complex, like /dev/scsi/host1/bus0/target0/lun0/part1 (as it is with me).
    2. the names of the files you accidentally deleted. For example, if you deleted dsc_1017.jpg and dsc_1018.jpg in the dcim/100ncd70 directory, you’ll specify these as /dcim/100ncd70/dsc_1017.jpg and /dcim/100ncd70/dsc_1018.jpg.

    First, check that the files can be undeleted:

    # fsck.vfat -u /dcim/100ncd70/dsc_1017.jpg -u /dcim/100ncd70/dsc_1018.jpg /dev/scsi/host1/bus0/target0/lun0/part1

    If you get the message Warning: did not undelete file ..., that’s a file that has been overwritten, perhaps in your camera. It’s gone; only the name remains. You won’t get it back.

    Then, you can actually restore the files:

    # fsck.vfat -r -u /dcim/100ncd70/dsc_1017.jpg -u /dcim/100ncd70/dsc_1018.jpg /dev/scsi/host1/bus0/target0/lun0/part1

    If all goes well, your files will be back. Makes backups, and don’t do it again.

  • Ol’ Pointy-Nose Is Back …

    Ben Hammersley’s Daily Doonesbury Feed, refactored:

    #!/usr/bin/perl -w
    use strict;
    use integer;
    use XML::RSS;
    
    my ( $sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst ) =
      localtime(time);
    
    my $this_year   = 1900 + $year;
    my $todays_date = sprintf( "%02d%02d%02d", $this_year % 100, 1 + $mon, $mday );
    my $db_url      =
        'http://images.ucomics.com/comics/db/'
      . $this_year . '/db'
      . $todays_date . '.gif';
    
    my $rss = XML::RSS->new();
    $rss->channel( title => "Doonesbury" );
    $rss->add_item(
        title => 'Doonesbury for '
          . sprintf( "%05d/%02d/%02d", $this_year, 1 + $mon, $mday ),
        link        => $db_url,
        description => '<img src="' . $db_url . '" />'
    );
    
    print "Content-type: application/xml+rss\n\n", $rss->as_string;
    exit;
    
  • An RSS generator for CBC Channels

    This isn’t perfect (seems to fail on some feeds), but mostly works for me:


    #!/usr/bin/perl -w
    # cdf2rss - converts CBC KlipFarm CDF to crude RSS
    # created by scruss on 02004/11/12
    # RCS/CVS: $Id: cdf2rss,v 1.3 2004/11/13 03:59:21 scruss Exp $
    # takes one argument, a stream name. Currently known streams are:
    #
    # Arts Business Calgary Canada
    # Edmonton Montreal Ottawa
    # Science Sports Toronto
    # Vancouver Winnipeg World
    #
    # returns a crude RSS 1.0 stream fashioned from the CBC CDF output.
    use strict;
    use integer;
    use XML::Simple;
    use XML::RSS;
    use LWP::Simple;
    use constant CDFURL => 'http://www.cbc.ca/cdf/servlet/getCDF';
    my $cdf = get( join( '?lineup=', CDFURL, $ENV{'QUERY_STRING'} ) );
    my $xs = new XML::Simple;
    my $ref = $xs->XMLin($cdf);
    my $rss = new XML::RSS( version => '1.0' );
    $rss->channel(
    title => join( ' ', 'CBC', $ref->{category} ),
    description => join( ' ', 'CBC', $ref->{category} ),
    link => $ref->{href}
    );
    foreach my $cdf_item ( @{ $ref->{item} } ) {
    my $tmp_abstract = $cdf_item->{abstract};
    $tmp_abstract =~ s/\s+/ /g;
    $tmp_abstract =~ s/^ //;
    $tmp_abstract =~ s/ $//;
    $rss->add_item(
    title => $cdf_item->{title},
    link => $cdf_item->{href},
    description => $tmp_abstract
    );
    }
    print "Content-type: application/xml+rss\n\n", $rss->as_string;
    exit;

  • bad and wrong things about Firefox and Thunderbird

    I just installed Firefox and Thunderbird. They have some major suckage points:

    • there’s no site navigation bar
    • typeahead find doesn’t work in “View Source”
    • e-mail file attachments have been moved to the bottom of the message view, eating screen real estate
    • clicking a link in Thunderbird opens a new Firefox window; it should use an existing one

    Mind you, what do you expect when they name their products after a crap movie and cheap wine?

    thunderbird icon
    A logo that looks like a levitating disembodied blue haircut?

  • Brautiganish

    Is Seraphim Proudleduck the new ‘Trout Fishing In America’?

    Seraphim Proudleduck is a google challenge created by Salmonbones Marketing worth almost $2,000 in prize money. The seraphim proudleduck champion will be crowned on January 1st 2005. Seraphim Proudleduck does not stop there though, a PR7 website and a year of hosting will be awarded for the top seraphim proudleduck image in google images.

  • NRG Symphonie SQL

    I’ve been using the Symphonie Data Retriever utility for the NRG Symphonie wind dataloggers. I just discovered that the *.NSD site files in C:\NRG\SiteFiles are MS Access databases. This could mean that users could write their own custom data analysis tools outside NRG’s software.

    And I though they were just big ol’ binary files, too.

  • SVG clip art

    USB Memory Stick clip art from openclipart.org
    OpenClipart has loads of SVG clip art. I like SVG.

  • NewsIsFree: all the news you could ever want

    NewsIsFree has all the RSS feeds you could ever want. The old internet purist in me balks at calling an RSS reader a newsreader, since that’s for usenet.

  • feed on feeds

    Can I just say that feed on feeds, the server-side RSS aggregator, rocks?

  • LinuxCaffe

    Looks like David J. Patrick’s LinuxCaffe is actually going to happen in Toronto.

  • orkut has difficulties

    orkut's error message
    At least they have a sense of humour about it.

  • my brain is melting

    I really must install the WP AuthImage Hack, as comment spam on my blog is turning me into a Ren-like quivering wreck. 30+ today, and it’s not even 10:30.

  • noneofmp3.com

    what allofmp3.com looks like
    This is what allofmp3.com is currently looking like. Grr …

  • Sharing images between WordPress and Gallery

    I like WordPress, but its image handling is pretty poor. I also like Gallery, but it doesn’t know how to talk to WordPress.

    Here’s a quick way to get an image stored in Gallery into a WordPress entry:

    1. Select the thumbnail of the image you want in Gallery.
    2. Right-click, and “View Selection Source”.
    3. “Select All” in the DOM Source window.
    4. Paste the HTML into your WordPress entry.

    The result is a small image in your entry which, when clicked, takes you to the main image in Gallery. It saves disk space, and it means you can use Gallery‘s excellent image tools.