giovedì 27 maggio 2010

Logo of British Petroil

Never in my life I saw a logo more suitable for an Oil Company : a stylized flower.
Nothing more suited to those who are polluting and destroying nature (see. Gulf of Mexico disaster).

Stay Connected.

Script PERL : Totals File in a Directory

This is a simple script to show total number of Files in a directory.

Script accepts in input one argument : Directory.


$totfile = 0;
opendir(my $dh, $ARGV[0]) || die;
while(readdir $dh) {
print "$some_dir/$_\n";
$totfile++;
}
closedir $dh;

printf(" Tot Files : $totfile \n");

Stay Connected.

martedì 25 maggio 2010

Italy :14.4 mln at risk of poverty

Based on a study on Global Rights 2010 of 'Associazione Società Informazione' :

In Italy 13,6 mln of workers gain under of 1300 euro per month and between these, 6,9 mln (60% women) gain under 1000 euro per month. More than 7,5 mln of pensioners gain under 1000 euro.

In 2009, 10% of occupies in under relative poverty level (Worse % in Europe with an average of 8%).

In six years, is underlined in the study, between 2002 and 2008, net family income has lost 1,599 euros each year among workers and 1,681 between employees.

Take your consideration of these data.

Stay Connected.




lunedì 24 maggio 2010

Evolution of the Italian race

Something wrong happened.

Stay Connected.

Stat command in Perl (Unix/Linux)

This perl script execute a stat of a file in UNIX/LINUX environment and accept in input file name with absolute path. It shows various file info and atime, mtime and ctime.

#!/usr/bin/perl -w

#
# stat.pl
#

($dev, $ino, $mode, $nlink, $uid, $gid, $rdev, $size,
$atime, $mtime, $ctime, $blksize, $blocks) = stat($ARGV[0]);

print("dev = $dev\n");
print("ino = $ino\n");
print("mode = $mode\n");
print("nlink = $nlink\n");
print("uid = $uid\n");
print("gid = $gid\n");
print("rdev = $rdev\n");
print("size = $size\n");
print("atime = $atime\n");
print("mtime = $mtime\n");
print("ctime = $ctime\n");
print("blksize = $blksize\n");
print("blocks = $blocks\n");
($sec, $min, $hr, $day, $month, $year, $day_Of_Week, $julianDate, $dst) = localtime($ctime);
$year = $year + 1900;
$month = $month + 1;
printf(" ctime $year/$month/$day $hr:$min:$sec\n");
($sec, $min, $hr, $day, $month, $year, $day_Of_Week, $julianDate, $dst) = localtime($mtime);
$year = $year + 1900;
$month = $month + 1;
printf(" mtime $year/$month/$day $hr:$min:$sec\n");
($sec, $min, $hr, $day, $month, $year, $day_Of_Week, $julianDate, $dst) = localtime($atime);
$year = $year + 1900;
$month = $month + 1;
printf(" atime $year/$month/$day $hr:$min:$sec\n");

Stay connected.


martedì 18 maggio 2010

CUBE and ROLLUP options in GROUP BY

For my actual project i am studying CUBE and ROLLUP option in GROUP BY.
These options are present from Oracle 8i and are very interesting :

ROLLUP

Rollup enables a SELECT statement to calculate multiple levels of subtotals across a specified group of dimension. Really is an extension of GROUP BY clause.
In this example are summarized totals and sales for Departments and Job Title with each totals for Department.

















CUBE

Cube enables a SELECT statement to calculate subtotals for all possible combinations of a group of dimension.
In this example are summarized totals and sales for Departments and Job Title with each totals for Department and also for each job title.






















Stay connected.

giovedì 13 maggio 2010

What wants Telefonica really ?

This interesting article "Scenarios - Telefonica's options in Brazil" speaks about an offer refused by Portugal Telecom to buy out its stake in Vivo.
Actually Telefonica controls Telecom Italia by Telco, an italian company formed also by italian banks and assurances.
Due to this participation, Telecom Italia will sell his participation in Telecom Argentina for antitrust problem while Brazilian antitrust (In Brazil, Telefonica participates Vivo with Portugal Telecom and Tim Brazil with Telecom Italia) approve it.

Now, why Telefonica want acquire total control of Vivo ? Sure it knows that if it happens, sure Brazilian antitrust encountered a monopolistic situation in mobile market and Telecom Italia will be in trouble. So what game is playing Telefonica?

The article made the following assumptions for Telefonica:

1 - RAISE ITS BID FOR THE VIVO STAKE
2 - OFFER ANOTHER ASSET IN EXCHANGE FOR VIVO STAKE
3 - BUY PORTUGAL TELECOM OUTRIGHT
4 - PURSUE TIM BRASIL

After an analysis for me behind interest in VIVO really there is interest in eliminate TIM BRASIL from Brazilian Telecom Market or directly acquire total control of Telecom Italia.

The battle has just begun.

Stay Connected.

lunedì 10 maggio 2010

What exactly is cloud computing?

In linkedin i have encountered this question : "What exactly is cloud computing?".
Really what is the meaning of "cloud computing"?

For me best answer is this :

"Cloud computing is internet-based computing, whereby shared resources, software and information are provided to computers and other devices on-demand, like the electricity grid"

This sentence is extracted from "Wikipedia" at this link.
Example of electricity grid is best form to understand what really is "Cloud Computing" for everyone both IT experts and not.

As always wikipedia is to be best tool to learn more about something.

To Next Post.

giovedì 6 maggio 2010

Primer Mundo (First World)

With this term, some south American Countries indicate Europe , Usa or countries with a better Life Level. But when I see in my Country Italy : political Corruption Level, racism, unemployment,…. I have some dudes about what is really First World.
I live in a Country famous in the world for his food, his beautiful historical monuments and women, and for oldest criminal association called Mafia and now also for his extravagant First Minister Berlusconi.
Last one is a typical Italian Man: crafty, profiteer and Latin lover, but more is owner of Banks, Televisions, newspapers, insurance company, …. In a very democratic and advanced country, that I have in my mind this not possible.
Italy is a racist country and this is demonstrates by growing intolerance cases, and for a great emigration country like Italy it’s not acceptable.
More actually is in a strong cultural decline with strong federalist currents and I don’t see a good future for my country.
So somebody can say me what are differences between Italy and so called Second World or Third World Countries ? because I just can’t see any difference.
To the next Post.

Check first quarter 2024

 Hi all Today, 1st May I'll check my 2024 goals. This is the first time I check it. For me it's a good way to reach more objective p...