Idiot spammers

This comment was posted automatically using Blog Comment Poster. Check out its site to learn more and start building backlinks to your websites today.

This post was written manually using Donncha’s fingers. Check out the Akismet anti comment-spam plugin to stop the idiot spammer at 75.126.132.23 using “Blog Comment Poster”.

Ubuntu Linux on Dell D630: the DVD

Getting the DVD drive working in Ubuntu Feisty on my Dell D630 laptop was one of the tasks that eluded me until a few minutes ago when I went searching again and found the solution.

At first I tried this and used the ide-generic driver. Linux recognised the drive, but as the page above says, it doesn’t give you any DMA modes. I tried the Bourne Supremacy, just to see if anything would happen, but Totem just sat there and the system became sluggish while the CD made some whirring noises. That’s a sure sign that DMA isn’t working!

That wasn’t going to be satisfactory, so I kept searching. This page and some of the Ubuntu forums suggest loading the “piix” and “ata_piix” modules. I tried to modprobe them without luck, but when I added “piix” to my /etc/modules and rebooted my DVD drive was found!

DMA is now enabled and everything works ok. Even got the film to play in Mplayer and it was very smooth.

# hdparm -i /dev/hda

/dev/hda:

Model=TSSTcorp DVD+/-RW TS-L632D, FwRev=DE04, SerialNo=
Config={ Fixed Removeable DTR10Mbs nonMagnetic }
RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=0kB, MaxMultSect=0
(maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
IORDY=on/off, tPIO={min:227,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 *udma2
AdvancedPM=no

# hdparm /dev/hda

/dev/hda:
IO_support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 1 (on)
readonly = 0 (off)
readahead = 256 (on)

Blogline's new interface is beta

Bloglines beta screenshot

Bloglines have announced a beta of their new interface, just after I jumped ship to Google Reader. The new interface looks snazzier than the old one and they’ve adopted some of the conventions of Google Reader. Clicking on a subscription doesn’t mark all items as read for example.

The same accelerator keys still work, and “s” still jumps to the next feed, but they don’t have the star and sharing features of Reader. If you’re reading this through a feed reader jump to the front page of ocaoimh.ie and you’ll see an “I like these” list on the sidebar. Those are my shared items. Damn, I found something sticky in Reader that I can’t live without.

bloglinesbeta-views.png

Bloglines now has 3 views of your feed. Like Google Reader you have the Quick and Full views, but a third view, the “3 pane view” looks more like an email client or news reader. Nice, but I’m too used to the full view to switch now.

If i hadn’t already moved to Google Reader I’d be disappointed. The new 3-pane-view is nice but not enough to make me jump back to Bloglines. It’s beta, so hopefully it’s not too late to add a few new features.

Waterloo Renewal Fundraiser

2007-08-25_img_4345-hs.jpg

Originally I thought we might head to Youghal tomorrow but someone called to the door a few days ago selling raffle tickets to support renewal of the local area. It’s organised by “Waterloo Renewal Group” who have great plans for the local river area and walk. There will be a BBQ at the Waterloo Inn so it looks like we won’t be going far from home on Sunday!

How labels saved my life

Well, they made it easier. Saved might be a little strong. When using a Unix based system you use a file called /etc/fstab to designate all the hard drives and external storage like flash cards and where they will mount or live on your filesystem. It’s not quite like the Windows world where everything has a drive letter, although you can use SUBST to get a similar effect on that operating system.

/etc/fstab is easy to maintain when all your drives stay in one place, but since I’m using 3 external drives and a card reader, sometimes the device name /dev/sdX changes for each. It’s horribly frustrating changing entries in fstab just because the card reader wasn’t plugged in when the computer booted into Ubuntu Linux

That all changed when I assigned labels to each drive. Now fstab entries reference those labels instead of devices! The following line,

/dev/sdc1 /media/disk auto rw,user,noauto 0 0

becomes

LABEL=DATA /media/disk auto rw,user,noauto 0 0

So, even if the device changes from sdc1 to sdd1 /media/disk will always mount!

Here’s a great tutorial on how to assign labels to disks, and how to modify your /etc/fstab to support them. It might seem like a pain at first but it’s well worth it!

Could I resist? Could I what!

Jacob’s Elite Chocolate Tea Cakes

Jacob’s Elite Chocolate Tea Cakes, described on the packet as “mallow cake covered in thick milk chocolate”, but I’d say they’re the ultimate tease of what heaven is like, they’re that nice. Could I resist biting into the lovely chocolate covered biscuit and the creamy, melt in the mouth mallow? Not a chance. Could you?

Definitely one of my favourite biscuits. Thanks Sheila!

Comment Referrers 0.1

comment-referrers.png

Here’s a small plugin that does a small but useful task. It reports where the people who comment on your blog come from. It then adds a line to the end of your comment notification or moderation emails with that information.

Download: comment-referrers.txt

Install by renaming the file to .php and placing in your plugins folder and activating it on your WordPress plugins page.

Update! Here’s the plugin page for this plugin.

My life through Google

  • A large part of my online income depends on Google Adsense.
  • I filter my email through gmail and since this morning I’m feeding a backup gmail account with a copy of every single email I get. Thanks Matt for that idea.
  • I use Google’s search engine to find solutions to my problems.
  • Like Tom and Matt I now read my feeds through Google Reader. Not being able to hit ‘S’ to go forward a feed still sucks but my workflow has changed to accommodate it.

It’s a bit scary how much I use we use Google.

PS. I’m testing a new WordPress plugin. It needs comments to work on, so please leave a comment! It’ll hopefully see the light of day tomorrow! 🙂

Notes when upgrading to PHP5

I upgraded one of my servers to PHP5 this morning. Two things to watch out for:

  • The location of your php.ini may have changed. It’s probably now in /etc/php5/apache2/. You need to copy over any changes from your old one.
  • Update your libraries too such as the mysql client and the gd library. Don’t forget you can delete the old ones. apt-get install php5-mysql php5-gd will do the job of installing, the old packages have a php4 prefix.
  • WP-Cache doesn’t like PHP5 much. If you see a blank page after upgrading to PHP5, then hit reload and it loads, then WP-Cache needs to be modified. Leroy has the fix, open wp-cache-phase2.php in your wp-cache folder and change ob_end_clean() to ob_end_flush(). SImple as that!

The reason for the upgrade? I wanted to install the gd extension, but after lots of fun upgrading everything my browser tried to download every page, complaining that it was a phtml file. I chose the upgrade to PHP5 to fix it!

And finally, the reason for gd, was to get the heatmap in this wordpress click tracking plugin working. It’s like Crazy Egg and it works well, but I couldn’t get it to display a heatmap for any page other than the front page. Some of the comments on Daily Blog Tips where I found it are hilarious. They completely miss the point of using a heatmap!

The blinking folder and question mark is bad, right?

Just over a year after buying my Macbook and it has quite possibly died. While using it, it stalled, keyboard wouldn’t respond, and I had to shut it down. When I started it up again I heard 3 distinct clicks which is never a good thing, and after a few minutes of staring at a grey screen a flashing folder appeared with a question mark in the middle.

It has happened to others and the prognosis isn’t good. A reinstall of Mac OS X is required, but those clicks I heard disturb me. I get the feeling I’ll be finding out how good Apple Support are. Does anyone know how to eject a DVD without the OS running? The Bourne Supremacy is in the drive and I haven’t even watched it yet!

I’m paranoid about backups, and what has been bugging me over the last few weeks is that all my email was on the Macbook, and I hadn’t got around to backing it up because the wireless connection was too slow. I’ll find an older Thunderbird directory on my Linux box and fire that up, but if you’ve sent me email over the last few weeks that needs a reply, send it again. I think I’ll allow Gmail to store my mail in future.

If for some reason the machine can’t be resurrected, it’s definitely the last Mac I’ll buy. What with the flickering screen too, I think I might be better off spending the extra pennies on better hardware from a PC manufacturer.

Update! I rang Apple, who put me on to their local reseller/fixer-upper, and they have the laptop. Hopefully I’ll hear back from them before the end of the week. They’ll try to fix the flickering screen too. That’s apparently caused by a missing piece of rubber on the mother board.

Update on Aug 24! The service center rang yesterday evening to say the machine is fixed so I picked it up this morning. All data is gone but I won’t put anything on there I can’t afford to lose. I hope the flickering screen problem is gone now as they replaced a “board, inverter” and “cable, inverter” too. OS X is 10.4.10, and Software Update picked up one iPhoto update. Now to reinstall Firefox and other apps ..