the.Zedt

All articles

“Now playing” Windows 7 gadget mod

One of the gadgets I started using recently is the “Now Playing” gadget.

One issue I noticed though is its inability to display the trackname for tracks which lack the ID3 tag. The widget would just switch to its “Play a file in Winamp” message. So after a bit of tinkering, I managed to get it to use the track filename and display that instead…

Restricting access to hidden site using .htaccess

Just like in real-life construction and rebuilding, you sometimes need to demolish and rebuild an existing website. And you probably want to do this behind a very nice and safe wall.

The wall, in our case, will be a “currently rebuilding. please visit soon” index.html file. If directory index priority is set to html then php, now the index.html file will be our visible website and hide the soon-to-be-demolished php-based website.

Console commands to hibernate and standby on CentOS

It’s great that Linux nowadays supports all the power management features available on computers. But it’s odd that beside the buttons to trigger standby/hibernate – which are only available in a graphical interface – there are no simple console commands to put the computer to sleep or into hibernation.

Erase RAID metadata from (previously used) disk

I recently attempted to install a fresh CentOS on a pair of recycled (previously used in a different linux sistem) hard disks.

Of course I got the classical message that the disks already had RAID metadata on them: “Disk contains BIOS metadata, but is not part of any recognized BIOS RAID sets. Ignoring disk sda”