Ubuntu 7.04 Feisty Fawn on Parallels
You’ve tried to install Ubuntu 7.04 Feisty Fawn on Parallels and it doesn’t start up? Well, so did mine. Here the solution that I found.
Perl: One line search and replace
Yes, it’s been used for a long long time and I have been using them for quite a while too. But the problem is, I always forget which one to leave out for a dry run. So, I’m putting it here as a quick ref in the future.
Seq command - revisited
Following up on my previous entry about the seq command, I have had a couple of quick chat with my colleague and a search into how it can be used practically. I have now found a very practical use for seq, especially with the product that I’ll be dealing with (email marketing software).
For geeks, here a quick example:
A little utility tool called seq
While I was exploring various binaries on my Ubuntu, I came across this nifty little utility called seq. A very simple little command that generates a sequence of numbers.
The usage is really easy too. Let’s say you need to generate a sequence of 1 – 5, you can use the following command:
me@mycomp:~$ seq 1 5
1
2
3
4
5
In the above, the FIRST value, 1, is the begining value of the sequence range and LAST value, 5, is the limit of the range. You can use any values for the range like seq 50 100, which will generate values starting from 50 and ends at 100.
So.. what’s the bid deal? I don’t know. Anyone can do that with a simple perl or shell script. But I thought that if you know there’s this utility, you can whip it up in less than a second.
That’s not the only thing that it can do. You can specify the increment value, separator string and apply automatic padding. If you’re interested, read on.
Patching applications with rsync
Very often, as a developer, you’ll need to apply patches to “live” applications and it is actually quite intimidating when you are paranoid that you may be patching to the wrong directory, or overwriting the wrong files (especially the ones that you’ve hacked).
Going through each file manually to is tiring and time consuming if the patch is quite large. I recently learnt from an experienced colleague of mine, there’s an easier and safer way of patching your applications – using rsync.
Ubuntu resolution on Parallels and Mac
I’ve been using Parallels on my Macbook Pro 15” for a couple of months now and I have installed various operating systems like Windows XP, Fedora Core 5, Suse 10.1 and Ubuntu.
I wanted very much to get Ubuntu to work properly on my Mac. The installation went fine but one thing that made me pull my hair was really the default screen resolution of Ubuntu, which is set at 1204×768.
After months of dismay, I finally found the solution…
Setting default players in Ubuntu
Who would have guessed that it could be so easy, but yet quite hard to find for someone who is new to Ubuntu (Dapper Drake) to setup default players for certain files? What, you didn’t fire up the terminal… did you?
Azureus not working on Ubuntu?
I recently tried to install Azureus on my Ubuntu (Dapper Drake) and for some weird reason it just didn’t work. The interfaces were corrupted, no sysicon and buttons were not responding.