Linux
Thumbnails for Samba Shares in Nautilus

Nautilus makes some nice thumbnails for media when viewed as icons. I got to like the feature but then I noticed it doesn't happen on Samba shared folders. To get the thumbnails to show, I had to go to Edit -> Preferences. This brings up the File Management Preferences dialog. On the Preview tab there are options that let you set previews such as thumbnails and audio previews for local files or all files. I'd like a few more options in there, like distinguishing between my LAN and the Internet, but so far we can choose between Never, Local and Always. Local will only make thumbnails for files on your computer. Always will make thumbnails for files on your computer or folders on Windows (SMB) shares. Never won't make thumbnails.

Tip for XDebug on Ubuntu 8.10 with Eclipse PDT

After you've got PHP5 and Apache running on your Ubuntu development server, the next thing you'll want is Eclipse PDT. Shortly after that you'll need a debugger.

On Ubuntu 8.10, I set up Eclipse 3.4 (Ganymede) with the latest Release Candidate of PDT 2, it took forever because of some slow mirrors, but I'd recommend just buckling down and getting through it. Here's the step-by-step guide I found most useful. If Ubuntu someday gets PDT and Eclipse 3.4 in the repositories then just use that.

Copying crontab from Suse to Ubuntu

My OpenSuse 10.3 install was getting a little long in the tooth so I decided it was time for an upgrade. I installed Kubuntu 8.10 on a new drive a couple days ago. I ended up switching to Gnome from KDE so now I'm basically running plain Ubuntu. I've been doing non-stop configuring ever since. Today I wanted to get my cron jobs from my old install. I still have it on another drive so I'm able to see all the old files. I use crontab to set up cron jobs directly from the command-line. There's a text file that contains my crontab in each system. I found Suse 10.3 kept the file at /var/spool/cron/tabs. The new system, Ubuntu 8.10, keeps the crontabs under /var/spool/cron/crontabs. So I just copied the contents of the old one then ran crontab -e. In the editor that comes up I paste the old lines and start tweaking.

When Android doesn’t Launch your application

As I've been getting started with Android I decided to take some notes. What follows is something I wrote down as I was working on getting a first sample to build and download from Eclipse using ADT. I followed the instructions from Google and tried the troubleshooting directions. My platform is OpenSuse 10.3 Linux. This note might be helpful if you're trying to develop for Android.

A Quick Run at Google’s Android

I took a little break today from the C++ and Lua stuff I've been doing to have a look at Google's new phone platform. I followed the installation instructions and had some demos up and running pretty quickly. I also grabbed the source and poked around to see whose shoulders they stand on.

WoW: Self-Cast in KDE and Faster Performance in Wine

There are a couple things I've done to tweak World of Warcraft on my Linux box. I run OpenSuse 10.3 now but most of this will be the same for other distros, especially if you use KDE. These are just specific to what worked for me but I guess that some other Linux WoW players might benefit from the same settings.

First off I lost the ability to do a quick self-cast. Self-cast is done by just holding alt while clicking the icon for a spell. So, as a mage, every half-hour I want to self-cast Arcane Intellect. That's no big deal since it's not in combat. Remove Lesser Curse is a bigger problem. The second fastest way to use that is with a shortcut key or click followed by F1 (which also targets your own character). I thought the problem was because of some multi-language keyboard customization I had done but as it turns out it was a setting in KDE for moving windows by holding the Alt-key. To turn this off just follow the steps here - I included pictures, click each to get a bigger image.

KDE Keyboard Shortcuts
A few awesome KDE keyboard shortcuts, some I forgot, some I never knew and just said "wow, what a great idea".
Installing the ThermalTake Ruby Orb on my Asus M2NPV-VM

Just in case anyone's wondering about the outcome from the parts I ordered the other day, I just installed my Ruby Orb fan on my Asus M2NPV-VM. It was a little scary, for one thing that heatsink & fan is really huge. I mean really. It's a 120mm fan, stock CPU fans are about 65mm if I remember right. The Ruby Orb is so big I don't think I could take the RAM out of the computer without removing the CPU heatsink. I will say it's very quiet for the amount of air that it moves. Still my computer overall seems about as loud as it was with just the one case fan. Of course now it's got two case fans running and with the old case fans I had the noise would've been unbearable. I've also got five hard drives in there now (just installed the 500GB Seagate Barracuda SATA drive).

Moving Multiple Files in Bash
It seems like the shorter the code is the longer it takes to write. I'm trying to rename a group of similarly-name directories using Bash and for no good reason I decided I'd like to do it all on one line. There are a bunch of ways to do it, not all fit on a line and some are more efficient than others. There's apparently a package out there called mmv that I haven't looked for which does stuff like this. There's also sed. With sed I got something close:
Spinning Down Hard Drives in OpenSuse 10.3

I started out talking about SMART and drive temperatures the other day but got all geeked out about hardware and forgot where I was going. I meant to also talk about how I tried to just spin down my older Western Digital ATA hard drives to give them a chance to cool off.

I looked at the hdparm, I saw some comments on forums saying it could be used to set a time delay to spin-down a hard drive.

Syndicate content