AdSense Mobile Ad

Wednesday, November 12, 2008

Italy's a geriatrics hospital whose hall is full of spoiled children

I don't know where to start writing this. It's such a long time I want to shout out all the shame I feel towards the news I read on Italian newspapers, towards the things I see every time I fly to my hometown, towards the attitude of the people I meet with, that I don't really know how to do it properly.

Let's try and put order into the chaotic mix of anger, sadness and deception I feel almost daily. I'll do that just making examples. This post could also be titled What you'll find every day digging into an Italian newspaper or A small guide to survive Italian paradoxes.

Let's open the home page of the two most read Italian newspapers: Il corriere della sera and La repubblica.

Alitalia
Both newspapers open with the struggle of Alitalia. I don't known what a stranger would feel if he tried to follow what's going on with our national airline. History of Alitalia may be both an interesting anthropological and historical study over political corruption and medieval phenomenons such as feudalism. But the result is what's important: years of debts, a great percentage of workers doing absolutely nothing except throwing their shadows on the floor, above the average fees, impossibility of restructuring the enterprise because of the unity and the power of the workers' organizations which want to defend every single privilege they've gained over the years. I'm absolutely favorable to workers' organizations as a mean of organizing and protecting the individuals' rights but I think that every thing's a limit. Your firm is slowly and inexorably sinking with few spikes of vitality artificially produced by injections of liquidity by the State or by some banks and you don't want to face reality. You're going to lose your work and the only thing you can gain protesting is delaying the few possibilities left to Alitalia. For example, what's the point of a (yet another) strike at this stage of the events? Moreover, in Italy strikes are something normal and recurrent just as full moon nights, and they scare nobody.

Global state of economy and people perception
The annual report of the National Institute of Statistics confirms the trend of the last few years. It can be resumed in the following points:
  • a poorer country with even less hope for the future
  • one fifth of the population is over 65
  • population growth produced only for the effect of immigration: of about 488.000 new Italians registered, 494.871 are immigrants which neutralized the -6.868 loss for death
  • the percentage of the population satisfied or quite satisfied for their situation has dropped one year more: 43.7% against the 51.2% registered in 2007.
  • the percentage of the population who perceived a worsening in their situation has raised to 54.5% from the 41% registered in 2007. A 16% of this percentage thinks that their situation has worsened greatly over the last year.
  • the report confirms the great gap and the perception of the differences between the North and the South of the country.
  • 40% of the populations is suffering for chronic pathologies.
  • difficult access to basic services such as Hospitals is perceived by the 55.7% of the population

People asks: what's the government doing?
It's a spontaneous question. Given the fact that Italians aren't great readers, what would they find in the newspapers? News like these, which are daily overlooked by television and by themselves. It's something normal, politicians often steal. Costs of the Politics continue to rise. How? Well:
  • beautiful desktop calendars exclusively designed by Nazareno Gabrielli: 260.000 Eur. More than 200% of the budget for every research about children leukemia coordinated by the City of the hope, in Padova, which, amongst other things, it's hosting the database of children affected by cancer. Another example which is cited by the article is a research of the University of Pennsylvania: according to their data, desktop calendars cost 28.000 Eur more than the salary of the Governors of Colorado, Tennessee, Arkansan and Maine. To-ge-ther.
  • This is funny: Mr. Schwarzenegger salary as Governor of California, which he is not receiving, amount to 162.598 Eur. Less than a Counsellor's one for the County of Abruzzo.
  • Going on with salaries. USA Governors salary is 88.523 Eur on the average. Less than half than what a Counselor receives in Lombardy. Luis Durnwalder, president of the Autonomous County of Bolzano, receives a salary of 320.496 Eur. More than the president of the United States.
The government is unable to resolve the situation. Saying that the barber service is no longer free for Senators sounds like a grotesque joke. The Senate expenses in 2008 amount to 570.000.000 Eur. I repeat: 570.000.000 Eur. Five hundred seventy thousand millions of Euros. 13.000.000 more than during 2007 balance. Some examples? Here they are:
  • 19.080 Eur for the renting of plants and flowers (6 months)
  • 8.200 Eur for stockings (3 months). Yes, it's not a joke. Stockings. Sarah Palin is like Mother Teresa, compared to Italian Senators.
  • 56.000 Eur for shirts (6 months)
  • 16.200 Eur for motor bikers' equipment
  • The best for last: life annuities for non reelected members of the Senate and the Chambers. The official name in Italian is: Assegno per il reinserimento nella vita sociale. As I already said, grotesque.
Summing up: in Italy, during 2008, expenses rose up to 1.998.000.000 Eur, more than in 2007, despite promises of cutting up these kind of expenses. But the goal has finally been achieved: Italian politicians sacrificed and cut the 0.3% of the expenses. Her Majesty Queen Elisabeth achieved a 61% cut in one year but that's another story.

But are these cuts realistic?
No. At the end, on the balance weighs heavy a monstrous number: 2.055.000.000 Eur. And the cuts? They're not there. What's there, is a 5.6% increase with respect to the 2007 balance closings.

Is there any cut?
Yes, as usual: Mr. Berlusconi's government is fond of cutting funds to instruction and research and innovation institutions.

What does people do?
Well, as far as I read and as far as I can see what is thinking the people I met during my trips to Italy: closing their eyes, closing their nose and keep on dreaming the situation is not so bad. Cellular phones, cars, are the good old first class priorities for the average Italian. Look at data and you'll see with your eyes.

My thought.
I just reported data from newspapers but today is no special day, it's the same news I keep on reading year after year. The very sad part of the story is that the population living in Italy seems not to realize the gap which is opening between Italy and other European countries. When I think about this, most of the times I cannot but think that mine, will be the first generation since World War II whose life condition will be worse than its fathers'.

Google launches voice chat for gmail users and google talk users (and why I'm not going to use it)

Once more, winds of innovation come from Mountain View. Google has launched another offensive against Microsoft and... Skype. Yes, because it just added new voice and video call support into google chat and gmail.

Since the first time I saw the spartan google search engine main page, I felt sympathy for Google and the quality of its software (well, google software I use) never deceived me. I'm not the average user: as soon as I login I open a terminal window and start typing, rather than moving a mouse. Even in gmail I use the keyboard interface. The real Google revolution, in my opinion, it's in the fact that even in a world in which the great majority of the host operating systems is Windows (sadly), when an user logs in he usually opens up a browser and "googles" for something, looks for addresses or routes in Google maps, manages its photos with Picasa, writes its blog with Google docs and shares it with blogger, etc. Summarizing: the real desktop, for many people, is made up of a browser and Google software.

When people realize that they can speak and see their friends at the eyes without even leaving the gmail tab in their browsers, they'll probably uninstall (or leave there to rot) their copies of Skype or similar software. This is partially true, in reality, because Skype users often call landlines phones but at the end, there'll be a reason less to rely on Skype or Microsoft Messenger.

I'll be clear: I like what Google does, and I like the way Google does it, most of the times. I use Google software every day and, as far as it concerns my out-of-business activities, Google is probably the provider of most of the software I use. Google search engine, Gmail, Google docs, Google calendar, Google reader and so on: they're all part of the toolbox I use every day. I don't even feel like making the list, because probably I could just cut and past the list of Google software and remove a few entries.

Now, why am I not going to use it, then? Well, I would really like to explore this new functionality and satisfy my (technical and non) curiosity without having to look for information on the net. But I can not, because I'm a 95% Solaris user and the remaining 5% I'm a GNU/Linux user. And the beta version of this service, which relies on a browser plugin, is only available for Windows users and I'm not hoping to see it, ever, on Solaris. Just as it happens with Skype and many other proprietary software. If I were a 100% GNU/Linux user, moreover, I would probably be disappointed: my experience with GNU/Linux versions of some software bundles (such as Skype) is negative. Skype for Linux sucks (even more when compared with Windows or Mac OS X editions), and Picasa for Linux is even worse: I never thought I would see a customized Wine distribution to run a Windows binary on GNU/Linux, and less if who's doing this is Google. And I won't talk about Apple, who left us without Quicktime even if it ported ZFS on Mac OS X ;)

I won't trade off the proverbial stability of my Solaris for another OS. Neither I'll run (yet another) branded zone just to play with that plugin. I'll stick with VoIP and you, who can, enjoy.

Joining an NTP server pool

Now that you've configured your Solaris NTP service, you might be able to give back some of your bandwidth and make a service to the community. As you've probably done, you're receiving data from random server from a pool you've chosen. NTP Pool Project pools' servers are servers like yours and if you've got some spare bandwidth to give for free (an estimate peak of 120 kbit/s it's a realistic traffic estimation) you could join the project and add your server.

Requirements
As explained in the project's webpage, the only requirement it's (not too variable) static IP address and an adequate bandwidth. NTP Pool Project historical data suggests an average traffiic about [10,15] kbit/s with peaks of about [50,120] kbit/s. Joining it's easy and you can monitor performance data of your server on the administration webpage which can be accessed after registration.

A quick warning before you rush and public your server(s):
Finally, I must emphasize that joining the pool is a long term commitment. We are happy to take you out of the pool again if your circumstances change, but because of how the ntp clients operate it will take weeks, months or even YEARS before the traffic completely goes away.

Configuring NTP server and client on Solaris 10 and Solaris 11

One of the task which often performed during the setup of a machine is the setup of the NTP daemon.

NTP is one of the oldest internet protocol still in use and it allows the synchronization of computer clocks distributing UTC (Coordinated Universal Time) over the network. NTP design is focused on compensating the variable latency of the network.

A machine may be an NTP client or an NTP server. Roughly, an NTP client it's a machine that uses the NTP protocol to synchronize its clock and an NTP server it's a machine that provides NTP client the information needed to synchronize their clocks. An NTP server often uses other NTP servers to keep its own clock in sync.

This blog post has been slightly updated to accomodate some minor modifications to support Solaris 11.

NTP on Solaris 10 and Solaris 11

Solaris 10 introduced the SMF framework (to simplify and enhance the service management tasks in Solaris environments) and the NTP service is now managed by SMF. Solaris ships with an NTP daemon, ntpd, configured via SMF (svc:/network/ntp:default) and a bunch of sample ntp.conf files to quickly configure a machine as a client or as a server.

# svcs ntp
STATE  STIME   FMRI
online 0:43:33 svc:/network/ntp:default

Solaris 11 only ships with NTP v. 4, while your Solaris 10 installation may ship with both. In this case, the NTP v. 4 service is identified by the name ntp4. I suggest you always use the latest version. As we'll see in the following sections, NTP v. 4 offers you more flexibility when configuring your server.


Configuring a client

If your machine is just a client, you can just pick the /etc/inet/ntp.client and copy it to /etc/inet/ntp.conf. The default client configuration it's just a one-liner:

multicastclient 224.0.0.1


This configuration, as explained in the same file, it's a passive configuration for a host that just listens for NTP server putting packets on the NTP multicast network, 224.0.0.1.

Obviously, if your machine it's in a LAN without an NTP server, you're probably never going to receive such a packet, and you should use some public NTP server instead.

Using a server from a pool

I personally recommend using random servers from an NTP pool such as pool.ntp.org. In the official website of the NTP Pool Project you can find instruction about using the pool or picking up some server from the list they maintain. Pools maintained by the NTP Pool Project are organized in geographical hierarchy so that, for example, you can use server from a continent-level pool or, where available, from a country-level pool. The recipe is always the same: the nearer, the quicker and the better. In the case of the NTP protocol, moreover, the nearer the server you use, the more accurate the synchronization.

In my case, I'm using the European pool europe.pool.ntp.org and my configuration file contains:

server 0.europe.pool.ntp.org
server 1.europe.pool.ntp.org
server 2.europe.pool.ntp.org
server 3.europe.pool.ntp.org

Normally NTP requires a poll period to elapse before starting synchronizing your clock. If you want NTP to start immediately, which you most probably will if you're configuring a desktop environment, you can take advantage of iburst keyword, introduced in NTP v. 4: it instructs NTP to start the synchronization almost right away.

server 0.europe.pool.ntp.org iburst
server 1.europe.pool.ntp.org iburst
server 2.europe.pool.ntp.org iburst
server 3.europe.pool.ntp.org iburst

Another option, instead of manually maintaining multiple server lines, is using the pool keyword. The difference between the two is subtle and may be very convenient to use: server just tells NTP to use the first IP address returned by the DNS lookup, while pool tells NTP to use them all.

Beware that iburst and pool are NFS v. 4 specific keywords: make sure you're configuring NTP implementation corresponding to the syntax you're using.

Setting up the drift file

The only thing left to set up it's just the drift file location, which in my case it's:

driftfile /var/ntp/ntp.drift

Starting the service

Once your ntp.conf is set up, you can start (or restart) the ntp service:

# svcadm restart ntp
# svcs ntp
STATE  STIME   FMRI
online 0:43:33 svc:/network/ntp:default

In case you're wondering: there's no need to run the ntpdate command. The SMF scripts of the NTP service takes care of all (in this case, during the execution of the start method).

Querying the service

Once the service is running, you can check which server you're using with ntpq:


$ ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
+dns2.vnet.sk    195.113.144.201  2 u  122  128  377   90.907    5.002   0.678
*ptbtime1.ptb.de .PTB.            1 u   26  128  377   91.754    2.971   2.715
-ntppub.le.ac.uk 158.43.192.66    2 u  105  128  377   76.720   10.182   3.701
+mx-dub.bofh.so  193.1.31.66      2 u   84  128  377   70.090    8.049   0.549

You'll get a similar output. After a while, your query will output similar results. The server prefixed with an asterisk is the server you're synchronizing with. If you don't get an asterisk after a while, probably no NTP server is reachable, which is probably due to a firewall which is blocking UDP port 123.

The difference between your clock and the data provided by NTP servers can be examined by catting the drift file:

# cat /var/ntp/ntp.drift -50.645

Setting up an NTP server

Now that you have an NTP client running, you'll probably want to setup all of your machines. If you're in a LAN, you can setup an internal NTP server which will provide data to other clients on your LAN. As before, you can take inspiration from the server configuration file shipped with Solaris 10 or Solaris 11, /etc/inet/ntp.server. After setting up the drift file and the clients you're going to use, you can examine the other options and fine-tune them at your taste. Let's give a quick look at it.

server 127.127.XType.0

This line pretty much resembles the server statement we described in the previous sections but it's fundamentally different. The argument of the server keyword, which resembles an IP address, give NTP information about the kind of device used to provide the (supposedly) accurate time to the NTP server.

The server type and the XType value must be substituted with the correct value from the provided table (and reported in the configuration file shipped with Solaris as well):

# XType Device RefID Description

# -------------------------------------------------------
# 1 local LCL Undisciplined Local Clock
# 2 trak GPS TRAK 8820 GPS Receiver
# 3 pst WWV PSTI/Traconex WWV/WWVH Receiver
# 4 wwvb WWVB Spectracom WWVB Receiver
# 5 true TRUE TrueTime GPS/GOES Receivers
# 6 irig IRIG IRIG Audio Decoder
# 7 chu CHU Scratchbuilt CHU Receiver
# 8 parse ---- Generic Reference Clock Driver
# 9 mx4200 GPS Magnavox MX4200 GPS Receiver
# 10 as2201 GPS Austron 2201A GPS Receiver
# 11 arbiter GPS Arbiter 1088A/B GPS Receiver
# 12 tpro IRIG KSI/Odetics TPRO/S IRIG Interface
# 13 leitch ATOM Leitch CSD 5300 Master Clock Controller
# 15 * * TrueTime GPS/TM-TMD Receiver
# 17 datum DATM Datum Precision Time System
# 18 acts ACTS NIST Automated Computer Time Service
# 19 heath WWV Heath WWV/WWVH Receiver
# 20 nmea GPS Generic NMEA GPS Receiver
# 22 atom PPS PPS Clock Discipline
# 23 ptb TPTB PTB Automated Computer Time Service
# 24 usno USNO USNO Modem Time Service
# 25 * * TrueTime generic receivers
# 26 hpgps GPS Hewlett Packard 58503A GPS Receiver
# 27 arc MSFa Arcron MSF Receiver

In my case, it's just a (very) plain 1: an undiscilplined local clock.

broadcast 224.0.1.1 ttl 4

This line is the server equivalent of the multicast line seen in the default client configuration: it tells the NTP server to broadcast on the NTP multicast network.

Further readings

Complete documentation about ntp.conf syntax can be found on the xntpd man page:

# man xntpd

Thursday, November 6, 2008

Stupidity never ends, as time, it continues to flow...

Just few hours ago I spent some time writing an entry about Mr. Berlusconi and his will to give advice to young and inexpert Mr. Obama.

No time has passed since then and I find myself writing again about the Italian Prime Minister and his first, and I bet not last, gaffe. If you can read italian, read it yourself. Here's the translated excerpt:
"Barack Obama? Young, beatiful and sun-tanned."
Mr Berlusconi goes just where nobody has, and wouldn't, gone before. I cannot even imagine Mr. McCain referring to Mr. Obama as "sun-tanned". What's worst, when he returned at his hotel and was asked about that unhappy statement, he quickly answered:
"If they don't have any sense of humor then it means that those fools have come into action, that they go be [offensive verb has been omitted]."
It's very sad, but sometimes I'm really ashamed that in my country, such a guy has been elected Prime Minister.