Flavio's blog - Part 38
 

HOWTO: Airport Extreme ‘n’ e Linux : Print via Airport

Se in OSX e Windows è facile stampare via Airport utilizzando il servizio Bonjour, there is more than one problem in Ubuntu.
The Apple Bonjour analog is zeroconf / avahi, and there is no self-configuring utility…
First we have to check the situation of the doors at the Airport, typing, terminal:

nmap 10.0.0.1

in my case, holder 9100, 9101 and so on, that are used for the printer, were closed.
There is no way to open the doors from the Airport Utility for OSX, Unfortunately…
…Read the rest »

php: automatically add the last modified date of a web site

Often, when aggiornavo few pages in the site, I forgot to write the date of last change in the menu navigation of the site that you see on the left (Last update: …. ).
This php function, found on the web and modified by me, allows you to search all folders of the website, finding the most recently modified file, and save the date in a text file.

In $ allowedExtensions we indicate extensions for which we want to check the modification date.

Obtained output, then, just show it somewhere (in my case, nel footer).

…Read the rest »

.htaccess, permanent redirect 301 by dominio.com to www.dominio.com

It's easy to add the redirect 301 sul tuo sito usando l’.htaccess di Apache. Un redirect di questo tipo è molto search engine friendly, and it takes very few minutes to setup.
So what does this redirects 301? All addresses such dominio.com/blah.php will be converted to addresses such www.dominio.com/blah.php. This will avoid duplication of url, and you can only please the search engines, because it will have a list of links more uniform.

Instructions:
…Read the rest »