Categories
Code

Extending PDOStatement for errors checking and other tasks

PDO is a great OO library for interacting with your database from PHP. It has a very consistent interface and your code will be cleaner than ever. And your PHP script will be more portable because PDO is not related to any database, but is a generic library to work with MySQL, PostgreSQL, SQLite and […]

Categories
Code

Display usage hints for your Perl script

Perl is an awesome language. I like it very much more than Python because you can put some imagination inside your code, doing things with your style. I like very much the loose typing because you don’t have to care about the content in your variables: numbers, strings, objects are almost the same. You have […]

Categories
Qt5

Digia presenta Qt5

Ecco il video di presentazione: Visto che è arrivato Qt5 è arrivato il momento di presentarlo.

Categories
Code

Send mail with Sendmail from Bash command line

eMails are still the most important communication channel on internet. Most of the web applications you can find on the web require an eMail address to register because they will use it for important communications, to recover you password and so on. It’s still a reliable way to identify the users. Well, today I was […]

Categories
Hints

Remove “compatibility view” button in Internet Explorer

Old Internet Explorer version are often a big problem for web developers. Fortunately everyday the people using IE 7, IE6 or even IE5.5 became lesser and lesser. So usually we don’t have to spend to much time to fix everything in our CSS to make every page look perfect in all this old browsers because […]

Categories
Code

Fractals and plasma C source code

Two nice examples of what you can do with the Allegro Library and a bit of math 😀 Fractal C source code Plasma C source code            

Categories
Code

HSL2RGB converter source code (Perl)

Cleaning up my web space I found an old code to convert HSL triplets (Hue Saturation Lightness) to RGB (Red Blue Green). I think the code comes from the Gimp source code and was ported to Perl, but it’s so simple I think you can port easily everywhere. So, why do you need to convert […]

Categories
KDE

Il Manifesto KDE

“Siamo una comunità di tecnici, designer, scrittori e avvocati che lavorano per garantire la libertà per tutti gli uomini tramite il nostro software.” recita così l’incipit del Manifesto KDE, un modo per mettere in chiaro cosa è KDE anche a chi non lo sa. Non si tratta però di una presentazione delle qualità del software, […]

Categories
Hints

Remove frameBorder on Internet Explorer in quirks mode

I know that the most of the internet pages run in standard mode, but sometimes it happens to work for some generic plugin and so you have to check your code in such a situation and especially with Internet Explorer 6, 7 and 8 there are a lot of bad surprises 🙁 A page runs […]

Categories
Solutions

Gettext support for Smarty

Smarty is a great template engine for PHP because it’s very powerful and very easy to use. By separating the PHP logic from the presentation template your code becomes cleaner and easier to maintain, so it’s a good deal. Anyway Smarty lacks of a native internationalization support, but it’s expandable nature permits to easy come […]