Tuesday, February 28, 2006

Gnome 2.14

If you're (like me) waiting for this new great release of Gnome, you can begin by reading this article.
There are many improvements in the 2.14 release, many of them concernig speed up and eye-candy. It will be ready on the 15th of March.
And if you want to be really impressed, well you must check out this video: it shows up the new XGL server for linux. I think the video talks by itself...

Thursday, February 16, 2006

Micro$oft launch Office Live

Oh oh...Microsoft has just launched its new service: Office Live, a office suite web based. Wow! It seems awesome! But lets take a look to the system requisites:

  • To use the Edit in Datasheet feature within the Business Applications and Shared Sites areas requires Microsoft Office 2003.

  • To export to Business Contact Manager requires Microsoft Office 2003, Microsoft Office XP, or Microsoft Office 2000.

  • To import contacts from Microsoft Office Outlook requires Microsoft Office 2003 or Microsoft Office XP.

  • To link contacts to Microsoft Office Outlook requires Microsoft Office 2003.



Ah...last but not least you must use Internet Explorer in order to use Office Live.
Another time: good work Bill.

Friday, February 10, 2006

Put colours in your Ubuntu startup and shutdown console

One thing I noticed when I first started Ubuntu Hoary was the lack of colors during start up and shut down process.
Then it came Breezy and USplash replaced the anonymous start up console. But the shut down was still in simple black&white text mode. I don't like it, 'cause often I don't see possible errors.
Ok...this is not a big problem, but all other distros have colours, so why Ubuntu doesn't? :-)
I found a simple solution, exploring the file /lib/lsb/init-functions. In this script file you can find functions used by the system for starting and stopping services and, of course, all logging methods.
I modified it to make the console look more colourful. To install it simply do this:

cd ~
wget http://madchicken.altervista.org/tech/download/init-functions.tar
tar xvf init-functions.tar
sudo mv /lib/lsb/init-functions /lib/lsb/init-functions.old
sudo mv init-functions /lib/lsb/init-functions
rm init-functions.tar

And the game is done.
If you want to customize your shell more and more, the way is quite simple: you have only to change echo commands giving the right pattern of characters and colours. To make all things in the right way I used tput command to extract info about the terminal that is running.
Here's simple (really simple!!) guide to tput

tput bold #makes the font bold
tput sgr0 #turns off bold
tput setaf 0-9 #changes the font colour
tput op #reset font colour

You can try all these commands from a standard gnome/kde terminal and see what happens.
A simple example could be:
BOLD=`$TPUT bold`
OFFBOLD=`$TPUT sgr0`
GREEN=`$TPUT setaf 2`
BLUE=`$TPUT setaf 4`
RED=`$TPUT setaf 1`
NORMAL=`$TPUT op`
echo "${BLUE}${BOLD}[ ${GREEN}ok${BLUE} ]${NORMAL}${OFFBOLD}"

This will print the string [ ok ]
And now that you are on the road...happy customization!

GIMP made easy

If you, like me, are stuck in the middle with GIMP, a.k.a. GNU Image Manipulation Program, a.k.a. the open source graphic software for Linux, then probably you need good guide. Here's it one, free, and also downloadable as html tarball.
And if you want to make a donation to the community, you can also buy a printed copy from Amazon
I really love open source.
Many thaks to All about Linux Blog for this hint.

Saturday, February 04, 2006

OpenAjax and Eclipse

The Eclipse Foundation wants to expand its WTP adding an AJAX Toolkit Framework (ATF).
The good news is that it seems that Eclipse accepted to add the OpenAjax project source code for ATF: OpenAjax is a new initiative from IBM and David Boloker, CTO of emerging technologies for IBM, is enthusiastic about the OpenAJAX project.
The OpenAJAX framework will come out of the box supporting three ajax frameworks: Dojo, OpenRico, and Zimbra. All these frameworks supports object-oriented programming, a must for those programmers (like me) are coming from Java and C++ languages. On the other hand, these frameworks are easy to use also for those Web developer who has been developing in HTML and JavaScript for years.

If someone wants to contribute to the OpenAjax project, can subscribe to their site

Thursday, February 02, 2006

Venkmann Javascript Debugger for Firefox 1.5.0.1

Thanks to Diego Caravanna, here's it

Prototype: Form Serialization and Deserialization

In the web community Prototype is a "must" for who wants to implement unobstrusive javascript and web2.0 applications. Why? 'Cause prototype makes things simplest and more Object Oriented.
The fact is that Javascript is often used as a "functional language" and not Object Oriented. Maybe because Javascript is not a clean OO language or maybe because, for historical reasons, people used it to handle (most of the time) the "onclick" event...
With the revolution of these days, javascript is becoming a way to enhance the user experience in web applications (take Ajax for example...).
So here's it: Prototype is coming to help us develop web2.0 application, using Objects in a more simple way, introducing classes for Ajax integration and much more. Maybe one of these days I'll write a good Prototype in Action post, but for the moment use this link as reference:

http://www.sergiopereira.com/articles/prototype.js.html

Update: now Prototype has its own official documentation. Read it here: http://www.prototypejs.org/learn.

Ok...now that you have "the tool" let's see an interesting feature: with prototype you can serialize a form given its id with a simple call:

var serializedForm = Form.serialize('myform');

This function allow you transform a form in a encoded string, containing all values from the passed form.
Ok, now you can save your form (for example via AJAX on your server...), but what you can do if you want to deserialize back it to your client? No way with the current version of Prototype (1.4)!
So I wrote a simple extension to allow you deserialize forms given a serialized string.
Here is a simple example:










radio one

radio two

radio three

Check box 1

Check box 2












The call to the function is simple:
Form.deserialize(formElement, serializedString)

You can find the .js file here
A complete example can be downloaded here

Wednesday, February 01, 2006

Ubuntu mania?

In accordance with The Register, it seems that
Google is preparing its own distribution of Linux for the desktop, in a possible bid to take on Microsoft in its core business - desktop software.
The name of the new Google-Linux distribution will be Goobuntu...that is: the new system will be a customization of the emerging Linux distribution Ubuntu.
It's not sure what Google will do with this project:
It's possible that it's just one of the toys Googleplex engineers play with on Fridays
But I'm very happy to see that someone else is working hard on the Ubuntu project.
Whatever Google's intentions, the input of Google engineers and developers, writing new features and fixing bugs, will be a huge boost to the Ubuntu project
I still don't know if Google is the right way to bring Linux at home, because I'm not very happy with all things Google is doing around, but I think that otherwise, they are doing great things with Internet: they always are a step forward to others. Thake GMail as an example of what I'm trying to explain.
The question is: is the big G an alternative to Microsoft or is it the new one? Maybe it is both.

UPDATE:it seems that this rumor about Goobuntu is a fake: read here ArsTechnica for details.