Tuesday, May 31, 2005

Modifying Fox Racing symbol to create a desktop icon for Phex

Phex Desktop icon Phex is a java-based peer-to-peer file sharing client that runs on the GNUtella network. I like Phex for various reasons I won't go into here. One of the things missing from Phex was a decent icon to represent Phex on my desktop. Unfortunately Phex's fox logo seems to be embedded in the java .jar file, so I had to come up with something else.

I've always liked the Fox Racing logo, but it didn't quite look sharp enough for use as an icon. I wanted something a bit more colourful. I found the logo while searching google images, using ggi: fox icons in Konqueror. Google found it on originalicons.com, one of those pop-up sites that actually have very little original content other than that ripped off from other sites, so I didn't feel too guilty pillaging their version of the fox racing icon for my own nefarious purposes.

phex icons layersThere was a problem, however, after I saved the fox logo and browsed to the directory I stored it at I noticed a green "originalicons.com" had replaced the icon. Looking at the icon with the layers on it was easy to see how it was done. I simply trashed the layer with the originalicons.com green screen.

The next problem was that I needed part of the image to be transparent. This proved to be easier than I thought. I used the Select Contiguous Regions wand and the shift key to select the areas I wanted backgrounded, then I inverted the selection, copied the part I wanted not to be transparent to a layer that was transparent.

fox imageI needed a fairly quick way to select the parts of the fox icon that would be coloured in. One of the problems with the Select Contiguous Regions default setting is that it only selects the colour you're on, i.e. black. What I wanted was a quick way to select all the grays surrounding the black without selecting the white regions. I accomplished this by playing with the threshold slider. I had to bump it way up to 165 before The Gimp caught all the areas I wanted.

From there I experimented with a few orange hues. I decided to use a couple of orange and yellow hues because they looged good against the white/black and still stood out on my default SuSE 9.3 background.

I saved the icon first as a gif file, converting it to an optimized indexed file. After discovering that KDE doesn't seem to like GIF files I bumped the palette back up to RGB and saved it as transparent png. I checked out the image and discovered a new problem, the image had little white fuzzies around the black border. Using the smallest brush and the eraser tool I managed to blot out the white spots.

phex desktop iconInitially when I tried to blot out the white spots I discovered that the eraser wasn't blotting out all spots, so I used the Eraser's Hard Edge feature and that seemed to get rid of the edges. And voila, my new Phex/Fox Racing icon!

Wednesday, May 18, 2005

Festival, be the life of the Internet Cafe

The other day I was sitting in Matter of Taste, a cafe with Kitchener's best coffee and a wide open wireless connection, chatting in X-Chat and working on some C code for my Iceutils suite of gaming software when I came up with the notion that it would be great to be able to listen to the chat conversations going on in Internet Relay Chat instead of having to switch between my text editor (C code) and X-Chat.

I'd heard of Fesitval before, but it seemed more complicated than I really wanted to take the time to learn, and it didn't do X-Chat. A little more searching and I found Scott C. Kennedy's X-Chat Speak Perl script.

After untarring Scott's script in my ~/.xchat2 directory speech worked, but I noticed that the volume was extremely low and setting it higher in KDE wasn't helping enough. I found a temporary hack in the Festival FAQ, but the kal_diaphone.scm the FAQ talks about isn't in the path they talk about, at least not on my SuSE 9.3 system. In SuSE 9.3 the scm file is located in: /usr/share/festival/voices/english/kal_diphone/festvox.

The speech was also going a mile a minute, and while the FAQ had a solution, the solution didn't seem to work as well as editing the xchat_speak.pl perl script Scott hacked. The first thing I did was change the $VOICE variable to voice_kal_diphone and I increased the $SPEED variable from .75 to .90, the higher the number the more pause in the voice.

With the tweaks working well I decided to check out a few IRC channels. Just as my German Chocolate milk steamer was arriving so too was a frustrated software developer expressing his frustration for the whole cafe to hear - using a few choice words that Festival seems very good at pronouncing; which makes you wonder which words they trained Festival the longest on...

Sunday, May 15, 2005

Marcel Gagne, Linux Chef's IRC server Part II

In my last post I mentioned how to Add a server network name. Now click Edit to edit the list of servers, and click Edit/bold> to edit the name of the IRC server. Marcel's IRC server is accessible either at:

chat.marcelgagne.com

or

www.marcelgagne.com

Below the Servers for New Network there is a Channels to Join section, add: #wftlchat. Be sure to include the number symbol in front of the wftlchat, and voila, you can now connect to the network.

Though Marcel holds chats regularly on Monday from 7-9pm eastern standard time, there are often others who pop in over the week on and off.