Archive for November, 2007

Bluetooth on Fedora 8

Posted in Fedora on November 14th, 2007 by Johan Huysmans – Be the first to comment

A couple of days ago, Dag wrote how you can browse your mobile phone with CentOS.

I’ve recently installed the new Fedora 8, so it is time to check how you can browse you mobile phone with F8.

If you bluetooth adapter is recognized you will see the icon of the “Bluetooth Applet”. Right click on it and you will find the Browse Device… entry. Any bluetooth device in your neighborhood will be listed, choose your phone and connect with it. After pairing (= exchanging passwords for the first time) a Nautilus window will open with the content of your phone.

It is just that easy… That’s really something different than a couple of fedora releases ago.

Thumbs up for the Fedora 8 team!

Sorting files with version numbers

Posted in General on November 8th, 2007 by Johan Huysmans – Be the first to comment

It can be quite annoying that when you perform a ls all your files are sorted alphabetically which give such result:
[johan@raskas versions]$ ls
a_file_name-1.0.1-10
a_file_name-1.0.1-11
a_file_name-1.0.1-2
a_file_name-1.0.1-3
a_file_name-1.0.1-4
a_file_name-1.0.1-9
some_other_file-2.0.10-1
some_other_file-2.0.9-1

Of course you want your file not sorted like that, but sorted per revision. Meaning that version 9 of the file comes before 10.
The ls-option –sort=version will do this for you.
The same files are now correctly sorted:
[johan@raskas-jhu versions]$ ls --sort=version
a_file_name-1.0.1-2
a_file_name-1.0.1-3
a_file_name-1.0.1-4
a_file_name-1.0.1-9
a_file_name-1.0.1-10
a_file_name-1.0.1-11
some_other_file-2.0.9-1
some_other_file-2.0.10-1

It is not rocket science, but it is a less known option which can come in very handy some times!