What is Toluu?
Toluu is a free service for sharing the feeds you read and discovering new ones.
Get Invite

Ubuntu Tutorials : Dapper - Feisty - Gutsy - Hardy

How to do almost anything on your Ubuntu desktop, laptop or server. Regular tips on installing, configuring and making your Ubuntu system as effective as you need it to be.


Happy HolidaysDecember 24 2008

I just wanted to wish everyone Happy Holidays. Be safe. Have fun and have a great New Year.

Other Points of Interest

  • No Related Post
494344929
Wordpress 2.7December 11 2008

I’ve just updated the site to WP 2.7 release. If you notice any weirdness let me know.

Other Points of Interest

  • No Related Post
481830566
How To View .chm Files In Ubuntu 8.10November 20 2008

Yesterday I ran into a file format I had not seen before.  Microsoft .chm (Compiled HTML).  Turns out there are plenty of solutions for Linux.  I have to admit I really wondered why the publications I found were in .chm and not in a more standard .pdf format.  Really makes me appreciate common standards.  I’ll outline some of the solutions I found here.

.chm Viewers

I ran into a number of .chm viewers for Linux, all available within the Ubuntu repositories.

If you are a Gnome user you may like gnochm:

sudo aptitude install gnochm

If you are a KDE user you may prefer kchmviewer:

sudo aptitude install kchmviewer

There are also some conversion tools, which I’ve had varying success with:

sudo aptitude install chm2pdf

There are more solutions listed on the link at the top of this article.  You may check that out for more information.

Other Points of Interest

  • No Related Post
459662950
Hacking PerlNovember 18 2008

As I mentioned in yesterdays post, I have begun studying perl.  I’m actually enjoying it quite a bit, and picking things up fairly quickly I think.  I’m sure my familiarity with bash scripting helps quite a bit.

This morning I hacked together an irssi script for origami users that will let you display your current work unit progress percentage within irssi chat.  I’d like some feedback on it.

If you are using irssi and have origami running on the same machine please check out my plugin and let me know what can be improved.

Download origami.pl v0.2

Instructions:

download and save the above script into ~/.irssi/scripts

To load the script:

/script load origami.pl

To get the origami work unit status:

/origami

To unload the script:

/script unload origami

Other Points of Interest

Regex ChallengeNovember 17 2008

Over the weekend I started studying Perl and quickly realized I was going to be better off if I reviewed regular expressions before I got too far into things.  I went back and found my copy of “Mastering Regular Expressions” and dove right in.  Now, maybe its just me, but I find that I really enjoy the problem solving aspect of regular expressions.  I thought it might be fun to put up a regular challenge on the blog that needs to be solved via regular expressions.

(Obligatory xkcd reference)

So, I figure I’d start off with one that caught me today.  Here is the situation:

You’ve got a regular text file filled with usernames.  You want to be able to read this file into a program to populate an array, but there are random blank lines throughout the file.  What regex would you use to find and remove all empty lines in the file?

For consistency sake, I’ve populated just such a file and made it available here.

Rules: Use any tool you want (perl, sed, vim, etc)  The file must contain all original usernames (total of 15), one per line, with no blank lines start to finish.  Please share your solution in the comments!

Other Points of Interest