Archive for February 2008

FreeBSD 7.0 Released

Nessun commento » Announcements , News No Comments »

The logo of FreeBSD News that does not need any comment! Impressive performance highlighted by the increase in the benchmark (see below). To download and try now!

FreeBSD 7.0-RELEASE Announcement

Date: Wed, 27 Feb 2008 17:19:52 -0500
From: Ken Smith <kensmith@FreeBSD.org>
To: freebsd-announce@FreeBSD.org
Subject: [FreeBSD-Announce] FreeBSD 7.0-RELEASE Available Read the rest »

Linux adopted by the Court of Accounts!

Nessun commento » Copincollato , New No Comments »

Logo of the Circle of Jurists Telematic This is one of those news that make you better start a day. It is not the usual religious war between the supporters (which I belong) and detractors of Open Source. This news shows that something is moving in Public Administration and that - even there - the analysis and rationalization of resources may curb waste scandalous that we are all passively resigned. And if the same approach (analysis and rationalization) is adopted in the management of competitions, contracts, and - above all - hiring in PA? Carryover in full (including the odd error in the numbering of the questions) article published a few days ago on the website of the Lawyers Club of Telematics and again today by Step Computer . The original is located at this address: http://www.giuristitelematici.it/modules/bdnews/article.php?storyid=1289 .

The publication of the news concerning the adoption, at the offices of the Court of Auditors, an open source operating system, followed by the deepening of Dr. Alessandro Monteleone (member of the Lawyers Club of Telematics), responsible for a brief interview with dr. Leandro Gelasi responsible for the operating systems of the Court, offered exclusively for this site. Read the rest »

Difference between dates with PHP

Nessun commento » PHP , Tips & Tricks No Comments »

Calculate the difference between two dates in terms of days is very, very easy with PHP. Here's the function that returns the calculation:

function days_diff( $giornoA, $meseA, $annoA, $giornoB, $meseB, $annoB )
{
$timestampA = mktime(0, 0, 0, $meseA, $giornoA, $annoA);
$timestampB = mktime(0, 0, 0, $meseB, $giornoB, $annoB);
$diff = floor(($timestampB - $timestampA) / (3600 * 24));
return $diff;
}
function days_diff( $giornoA, $meseA, $annoA, $giornoB, $meseB, $annoB )
{
$timestampA = mktime(0, 0, 0, $meseA, $giornoA, $annoA);
$timestampB = mktime(0, 0, 0, $meseB, $giornoB, $annoB);
$diff = floor(($timestampB - $timestampA) / (3600 * 24));
return $diff;
}
The values ​​to be passed to the function are the following:

  • $ GiornoA, meseA $, $ annoA: day, month and year (int) date less
  • $ GiornoB, meseB $, $ annoB: day, month and year (int) date more

SD Card with Debian Etch

Nessun commento » Debian , System , Tips & Tricks No Comments »

An old 512-MB SD Card I have a Canon PowerShot A560 digital camera that I carry with me forever. When space on the machine begins to run out, do I back up all files on your SD Card For a while I backed up using the USB cable supplied with the camera. I realized, however, a certain slowness in the transfer of files and - a much more serious - a degree of unreliability when to be transferred are the videos: I've a couple of times that the transfer of a file. Ancestors could be claimed as complete, while on the disk to which I make up was a file with the same name as that contained in the SD Card but completely empty! Read the rest »

Upper / Lowercase a recursive directory

Nessun commento » Shell , Tips & Tricks No Comments »

If it is necessary to convert to upper / lowercase all files in a certain directory, simply follow these steps:

  1. Navigate to the desired directory:
    cd /path/to/your/files
  2. Run the following command to convert to uppercase:
    for i in *; do mv $i `echo $i | tr [:lower:] [:upper:]`; done , or run the following command to convert to lowercase:
    for i in *; do mv $i `echo $i | tr [:upper:] [:lower:]`; done

Upgrade to version 2.3.3 of WordPress

Nessun commento » Copincollato , Tips & Tricks , Wordpress No Comments »

The WordPress logo I quote here a post appeared on the blog of Flavio Copes dated February 7. I found this article interesting and written in a manner understandable to all, even to those who ask me for days to assist nell'upgrade from a release 2.2. * The current one. Tired of trying to post the URL of Flavio Copes, I put your article here. Thanks to distance Flavio Copes, then!

With the ' release of version 2.3.3 of WordPress , I took the opportunity to update the blog software, which was still at version 2.2, mainly because when you output the 2.3 was still not very clear how to transform tags managed by Ultimate Tag Warrior tags in the native WordPress ... Read the rest »

The longstanding problem of long IFRAME

Nessun commento » HTML , Javascript , Tips & Tricks No Comments »

An iframe containing the Google homepage Did you happen to surf to a site that relies IFRAME to display some content? Apart from the fact that their use is - in my opinion - strongly inadvisable, I often have to do maintenance on old sites that use the Internet to find myself in situations IFRAME and similar to the one I'm about to describe. Read the rest »

Kernel 2.6.22 with Debian Etch Backports

10 commenti » Debian , Kernel , Tips & Tricks 10 comments »

The official logo of Debian GNU / Linux Working daily with Debian Etch: I use both with great satisfaction on corporate servers and on personal notebook (the same one with which I write at this time). I am a staunch defender of the stable branch of Debian - and any other operating system - also because I make a professional and I can not afford the luxury of wasting time, or - worse - to undermine the stability of a system to test the last trinket. On my notebook, though, I often presents the need to exploit a number of features that are absent or incomplete in kernel 2.6.18, one above all the possibility of using NTFS-3G driver to better manage the NTFS partitions. Read the rest »

Error indexes messages in Evolution 2.6

6 commenti » Bugs , Debian , Tips & Tricks 6 comments »

A screenshot of the program for the management of the Novell Evolution email Downloading mail with Evolution 2.6 today I stumbled upon a series of errors, due to file corruption with which the program maintains the indexing of messages in each folder. The message that appeared every attempt to download the mail was the following: "Summary and folder do not match, even after a sync" (in English: "Summary and folder mismatch, even after a sync"). The problem has been revealed because of a serious nature occurred in riots cases the non-cancellation of the original messages on the POP3 server, resulting in exponential multiplication of messages next to each "Send / Receive". It was also impossible to empty the Trash. Read the rest »