Archive of the month of February 2008

FreeBSD 7.0 Released

Nessun commento » Announcements, News No comment '

The logo of FreeBSD A story that needs no comment! The impressive growth performance highlighted by the benchmark (see below). Download and try now!

FreeBSD 7.0-RELEASE Announcement

Date: Fri, 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 More »

Linux adopted the Court of Accounts!

Nessun commento » Copincollato, News No comment '

Logo of the Circle of Legal Telematici This is one of those news you are starting a better day. And this is not the usual war of religion between the supporters (to which I belong) and detractors of Open Source. This news shows that the Government is moving and something that - even here - the analysis and rationalization of resources can curb wastage scandalous that we are all supine resigned. And if the same approach (analysis and rationalization) was adopted in the management of competitions, procurement and - above all - in recruitment PA? Carryover entirety (including the odd mistake in the numbers of applications) an article published a few days ago on the Internet site of the Circle of Legal Telematici and again today by Information Point. The original is at this address: http://www.giuristitelematici.it/modules/bdnews/article.php?storyid=1289.

The publication of news relating to the adoption, at the offices of the Court of Audit, an open source operating system, follows the deepening of Dr. Alessandro Monteleone (member of the Circle of Legal Telematici), responsible for a brief interview with Dr. Leandro Gelasius in charge of operating systems of the Court, offered exclusively for this site. Read More »

Difference between dates with PHP

Nessun commento » PHP, Tips & tricks No comment '

Calculate the difference between two dates in terms of days is very, very simple with PHP. Here is 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;
}
Values to be passed to the function are:

  • $ giornoA, $ month, $ year: day, month and year (int) date child
  • $ giornoB, $ meseB, $ annoB: day, month and year (int) date more

SD Card with Debian Etch

Nessun commento » Debian System, Tips & tricks No comment '

An old SD Card 512 MB I have a digital camera Canon PowerShot A560 that I carry with me always. When the space on the machine begins to run out, make backups of all files on your SD Card. For some time I have made the backup using the USB cable that came with your camera. But I noticed a certain slowness in the transfer of files and - much worse - a degree of unreliability to be transferred when the video: I happened a couple of times that the transfer of a file. Forebears were shown as complete, while the disk to which I make the backup was a file with the same name as that contained in the SD Card but completely empty! Read More »

Upper / Lowercase a recursive directory

Nessun commento » Shell, Tips & tricks No comment '

If the need for conversion to upper / lowercase all files contained in a certain directory, just follow these steps:

  1. Move to the directory you want:
    cd /path/to/your/files
  2. Run the following command to make the conversion to uppercase:
    for i in *; do mv $i `echo $i | tr [:lower:] [:upper:]`; done or run the following command to make the conversion in 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 comment '

The logo of WordPress Her photos appeared on a blog post by Flavio Copes dated Feb. 7. I found this interesting article written in a manner understandable to everyone, even those that day by asking me to assist nell'upgrade release from a 2.2 .* to the current one. Tired of trying to link the post di Flavio Copes, I put his article here. Thanks to distance Flavio Copes, then!

With l 'output version 2.3.3 of Wordpress, I seized the opportunity to update the blog software, which had yet to version 2.2, mainly because when it left the 2.3 was still not very clear how to turn the tags managed by Ultimate Tag Warrior tags in native Wordpress ... Read More »

The long standing problem of long IFRAME

Nessun commento » HTML, JavaScript, Tips & tricks No comment '

An iframe containing the Google homepage There's never happened to browse the site using the 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 Web sites that use the IFRAME and to find myself in situations similar to the one I am about to describe. Read More »

2.6.22 kernel with Debian Etch and Backports

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

The official logo of Debian GNU / Linux Working daily with Debian Etch: the use extreme satisfaction with both on corporate servers that on personnel notebook (the same as I write at this moment). I am a staunch defender of the Stable branch of Debian - and any other operating system - partly because they do 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, however, I will often need to exploit a number of features that are absent or incomplete in the kernel 2.6.18, one in all the opportunity to use the NTFS-3G driver to manage the NTFS partitions. Read the rest »

Error messages in indices Evolution 2.6

2 commenti » Bugs, Debian, Tips & tricks 2 comments'

A screenshot of the program for managing electronic mail to Novell Evolution By downloading your mail with Evolution 2.6 today are incorporated in a series of errors due to damaged files with the program keeps indexing messages in each folder. The message appeared to any attempt to download mail was as follows: "Contents folder and do not match, even after a sync" (in English: "Summary and folder mismatch, even after a sync"). The problem has now revealed a certain gravity because there was motion in cases the failure to erase messages to your POP3 server, thus multiplying exponentially messages to each subsequent "Send / Receive." Moreover it was impossible to empty the Trash. Read More »