sudo update-grub
It will find and add Fedora to the existing Grub2 menu.
- After reboot into Fedora it will ask for your name. Don't forget to add yourself to the administrator group. That's a checkbox choice in that panel
- Now updater all packages. The package update manager failed but it should run nicely in Terminal with
su -c 'yum clean all' su -c 'yum update'
Spoiler: yum sucks, dpkg / apt rocks.
- Install the free and non-free repositories from RPM Fusion on http://rpmfusion.org They contain the applications and drivers you really care about.
- I managed to install Chrome by hand from the Chrome download page. Can't tell just now if that's a wise decision. Will it upgrade itself when a new version of chrome arrives?
- I downloaded the 64 bit Flash .so file from Adobe. Put it in ~/.mozilla/plugins the (re-) start Firefox and it should just work. Also Chrome did pick it up nicely.
- I struggled with the nfs connection to the server. The documentation of nfs on Fedora is outdated (for Fedora 14). The documentation on Ubunut is how I did set it up in 10.11 on the server and on the Ubuntu partition on the laptop. I managed to get it to work with:
sudo -c 'yum install nfs-utils'
sudo mount -t nfs4 -o proto=tcp,port=2049
192.168.1.65:/data /mnt
In Ubuntu you'd install nfs-common. Also there's something weird with the mount command.
On the server the folder is /export/data and this command shows all files in /mnt whre I expected a /data folder. nfs-server:/data, as advertised in the Ubuntu guide didn't do the trick. I'll try a couple more times after I reboot the install. Since it works I don't expect serious issues here.
- The printer was found easily. Cups rocks. The printer is attached to the server, not directly to the laptop but that's all taken care of as easy as it was in Ubuntu.
- I tried to install the ATI Radeon driver on earlier occasions. All failures. I think I need to reconfigure /etc/X11/xorg.conf before the reboot but since the non-proprietary driver works just fine I'll not engage in another disappointment. Dual head works out of the box. That's my main concern.
So far I'm happy. Just not really that confident as I'm with my Ubuntu install.
]]>I liked two lines of code because they feel so Pythonic. This is the first:
preg_match('#^(.+?)(_t)?\.(jpg|gif|png)#i',
$entry->getFilename(), $matches) );
list( ,$name, $is_a_thumb, $extension) = $matches;
If you look beyond the regular expression, at least if you're intimidated by them, the array $matches collects matches from the regex. $matches[0] is the complete match consisting of the filename of an image. $matches[1] contains the first part (before the dot) of the filename, $matches[2] contains '_t' if it's there (thumbnails are created with an added _t in the filename) and $matches[3] contains the part after the dot.
Interesting is the list constructor in the second line of the example code. That's the Pythonic part. It creates all the variables in one line. Or am I mistaken and is it Perl magic in origin?
That's not all there is. You see the $entry->getFileName(). That comes from this code:
$dir = new DirectoryIterator($path);
foreach( $dir as $entry ){
Wow. An iterator in PHP. I hadn't seen this in PHP before. I have in Python though. hte DirectoryIterator seems pretty complete. PHP is growing up.
]]>I ordered the brand new T-Mobile pulse a week ago and I am expecting it to arrive next week. Let me describe what made me choose this particular cellphone and make some remarks about my expectations. That will be fun to reread in a couple of month time.
History
I've never had a lot of fun with phones. Most likely that's because I'm no longer sixteen years old. But I've had 'm for some time but I seldom use the phone. Take this literally. With seldom I mean less than 20 minutes per month.
My first phone was a Siemens M55. I bought it because of the then emerging data (Internet) possibilities. The performance was horrible. It could only show real WAP sites and there were only a few of them around. Starting up the GPRS and loading the first site would take the best part of five minutes. I didn't use it a lot. I payed per kB so what the heck.
I had high hopes of the possibilities with the embedded java. I did manage to find a few games that I could download and install from within the phone. Apart from the fact that it was dead slow I was demoted by the small screen (color!). So I didn't play a lot.
This was technique in it's infancies.
Today
I have a basic Nokia, simlock free. No Internet. Phone only.
Next week
If all goes according to the promises by T-Mobile they will start shipping the Pulse from Monday October 12. Have a look at a picture:

These are the specs from the website. You find this phone at http://tinyurl.com/ydnc32q
Specificaties:
Functies
It has everything a modern smartphone would want. But these specs are vague. Like what is the screen resolution (480 x 320). The other page on their site claims it runs the latest Android but I can't imagine it to be 1.6. The camera resolution is 3.15MP, not 5 as claimed here.
The phone really is a Huawei U8220. For those among you interested in more detailed specs, have a look at this site: http://tinyurl.com/y8r6f5z.
Money
This phone will cost me close to € 30,- a month in a one year contract. It includes darn slow but unlimited Internet (345kB/64kB) and 150 min for E.T. to phone home.
Choices
What made me decide for this one? Mainly it was money. This phone sells at € 257,- or thereabout and that's about the upper limit for both my wallet and my notion of what a phone should cost. The latest iPhone would cost me around € 1100,- for two years of fun. I would probably go for it anyway if it was only fun I could expect. But I don't like the software being closed source, the App store being controlled without an alternative store available. Even the case is closed so I can't add memory or a spare battery if need be.
If I would want to develop apps for the iPhone I'd need to pay a decent sum of money to start and next get in touch with Objective C. I am not an Apple fanboy. I simply don't want to be locked up into the fantasies of other people.
An alternative would be another phone with Android. Notably the HTC Hero. It's just more expensive. I tend to believe the specs are in the same range.
Expectations
I'll be phoning a lot more. But more important, I;ll have my mail around. And my Twitter. Being a profound bicyclist I have high expectations of the GPS possibilities of the phone. I hope it's got some tracking possibilities. I'll be making pictures and listen to music. I think it's all those basic tasks that keep me busy at least some time in a regular day. It has the potential to be used something like two hours a day when I'm not at home. I can live without it, so it's a pure gadget.
Will I be developing for the Android? Yes and no. I do think I'll be doing a 'Hello World' of some sort. I don't think I'll be doing a real app. I regularly lack inspiration. And things I do come up with are so specific I'll be my only customer. That's the outcome of many of my efforts. I really do know what I'm talking about!
I don't like Java. There Python bindings available but they need to be expanded. It is not expected to be any Python GUI bindings, so the Python part will be text based I presume.
Part of me believes this phone will be a disappointment. But that happened before. It's a glance into the future. The phones of today will turn out to be immature in a few years time. But that's the fun part of progress.
I'll take some time to write a review. I think before the end of the year.
]]>
Unfortunately it doesn't say how often it's magnified.
Source: CDC - Center for Disease Control and Prevention
What do you expect from a Linux commercial? Do you like this ad?
]]>
I started with a 640 x 400 px canvas. Then I made a gradient. There was no double edged gradient available, but it's easy to do yourself. Note: lateron in this Tutorial I realized myself the image was to small. I then created a larger image (800px x 600px). I think it's best you follow this Tutorial because the size of the circle is easier to apply with this canvas.



jQuery(function(){
var generateTitle = function()
{
currentPostTitle = jQuery('#post_title').val()
document.title = document.title.replace(/(Poster dans le blog\:).*$/, '$1 '+currentPostTitle)
}
generateTitle()
jQuery('#post_title').keyup(generateTitle)
})
We make a function because we call it twice - and repeatedly when the title is changed.
The variable currentPostTitle is filled with the contents of the textfield. That's the proposed title. Then in the next line the document.title is changed, basically the latest content of currentPostTitle is appended to what is already there. As you can see this is the most powerful line of all. And I took it from the original javaScript. I Googled the net and found this:
$(this).attr("title", "Your text goes here")
But it didn't seem to work. All other bits of advise point to document.title.
Of course jQuery is better. I have the event easily attached to the inputfield where Francois needed to create the event and the listener. My code can go anywhere. The old code needed to be placed after the textfield. All in all it's progression.
I put up a simple version for you to play with. Have fun.
]]>