Google announces Chromebook Pixel: a premium Chrome OS laptop shipping next week for $1,299 | The Verge

Well, it looks like everybody goes the Apple way, nowadays. First Microsoft with Surface, now Google with the Chromebook Pixel… Who’s next? Facebook or Twitter?

Like Apple’s notebook, the highlight is the Gorilla Glass-covered screen: with a 12.85-inch, 2560 x 1700 touchscreen panel, Google says it’s the highest resolution display that’s ever shipped on a laptop. “You’ll never ever see another pixel in your life,” says Chrome VP Sundar Pichai. And yet this particular screen has a 3:2 aspect ratio: In order to better fit web content, which often flows vertically down a page, the screen is nearly as tall as it is wide.

via Google announces Chromebook Pixel: a premium Chrome OS laptop shipping next week for $1,299 | The Verge.

Posted from .

Use WordPress as an Evernote replacement

I discovered Evernote a few months ago. A lot of people are using it for saving all kinds of notes, pictures etc.  Obviously they are happy with it, and are writing and talking about it. I decided to give it a try and although I thought it was a nice service, I didn’t have much use of it, and I forgot about it.

It’s only a few days ago that I that I thought it would be nice to have a central place where I can save all my notes, instead of having them in paper format or small files in different parts of my hard drive. A remote access would be nice to have too.

So I thought again about Evernote a few days ago. I started to use it, and I liked the use of notebooks and tags for organizing the notes. But something bothered me: I didn’t own my data.

Continue reading

Posted from .

Less is more: a little tips for reading log files with less

I tweeted about that recently but a tweet is not read by a lot of people so I write a short post here.

Have you ever wondered how to read a log file from the end?

Well, there is tail -100 logfile.log for instance, but if you haven’t find what you look for you must try with tail -200 logfile.log and so on (I don’t talk about tail -f logfile.log here).

No, I you want to read a log file but want to start from the end and search for a specific message, you can try less +G logfile.log. Life will be much easier then :-)

Is Google inspired by geo:truc? Probably not, but…

geo:truc, as taken from Google previewWhen I made the new version of geo:truc a few weeks ago, I kept the palette of colors that geo:truc has had before: a lot of dark greys, red links and red logo (here is a picture giving you an idea).
But after some time, I began to dislike it and the last week-end I started to work on the new design: I kept the dark toolbar, the red links and I added a horizontal grey stripe under the toolbar and change the background color to white (very very light grey). I released that last night.

And guess what? At the same time, Google is rolling out a new interface for its products, with a dark toolbar, red links, a grey stripe under the toolbar and a white background. Mmm…

Well it’s so funny (and a little bit frustrating) that I couldn’t not blogging that :-)

Fixing Ubuntu 11.04 after a problematic installation

As I wrote earlier, I had problems installing Ubuntu 11.04 on my laptop, but after som fights I managed to have a computer running Natty Narwhal.

But not everything was fine though: there was no time-out in GRUB2 and starting daemons like Apache didn’t work.

For the first issue, my laptop could display GRUB until I pressed the enter key. Setting the timeout in /etc/default/grub was useless. Obviously the install wasn’t fine so I corrected this by reinstalling GRUB:

I’m not sure the last line is necessary, hopefully apt-get takes care of updating GRUB, but it’s better to write one line too much than having a system which can’t start.

The other issue was starting daemons. Ubuntu doesn’t use anymore the System-V init but another system called Upstart. But Apache and MySQL didn’t start at boot time, and when I wanted to start them I got Warning: Fake initctl called, doing nothing. As above, the install was corrupted and I had to reinstall upstart:

My computer is better now, but I might reinstall more packages as soon as I have other issues.

Transparently compressing JS and CSS files with PHP

When I develop a web site, I usually configure it to compress the content before sending it to the end user. Downloading resources such as HTML, CSS and JS files is then smaller and thus faster.

It is possible to configure this in the .htaccess file (in case the server runs Apache) as well as it is possible to program it in PHP.

Unfortunately, it looks like my web hosting company doesn’t allow the former, so I had to take the PHP way for compressing resources in geo:truc.

The PHP code for doing this is rather simple:

This works fine: write a PHP script, put the code above in it, and it’s done! It works with HTML files, and it’s possible to use it as well with JS ans CSS files, although they need to start with this snippet and have a .php extension.

But how to do when using different JavaScript libraries that are now commonly used? A new .php file for every new version of jQuery? It sounds fastidious. And how to make it transparent, i.e. not passing a URL like http://www.example.com/js/compress.php?file=jQuery.js ?

Continue reading