Salve, mi chiamo Matteo Mattei e sono Ingegnere Informatico. Mi occupo da anni di sviluppo software e sistemistica Linux e ho realizzato questo portale per promuovere i miei prodotti e i miei servizi, ma anche per scrivere e condividere le varie problematiche che di volta in volta mi trovo ad affrontare con le nuove frontiere della tecnologia e della comunicazione.


Hello, my name is Matteo Mattei and I am a Computer Science Engineer. Since a long time I deal with software developing and Linux system administration and I realized this portal to advertise my products and my services, but also to write and share all the issues I find every day in the new frontiers of technology and communication.

Install imagemagick with PHP imagick extension on CentOS

To install imagemagick with PHP imagick extension on Linux CentOS you must follow these steps:

yum install ImageMagick.i386
yum install ImageMagick-devel.i386
pecl install imagick

At the end of the installation, create an inclusion file for imagick.so module and restart apache:

echo "extension=imagick.so" > /etc/php.d/imagick.ini
/etc/init.d/httpd restart

Test the correct loading of the imagick module with:

php -m | grep imagick

MySQL error 1153 in max_allowed_packet

Today I've got an anomalous error during a database import on mysql:

ERROR 1153 (08S01) at line 3854: Got a packet bigger than 'max_allowed_packet' bytes

To solve this is sufficient to edit the mysql configuration file (/etc/my.cnf on Linux) and fill a suitable big value for max_allowed_packet parameter. In my case I've set 100M. Restart mysqld daemon and now the import will gone fine!

Script to remove .svn directories from a project

When you want to distribute your own sources without any .svn directories is sufficient to create an export of the project with this command:

$ svn export svn://path_to_repository projectname

But often I've not access to the repository, so I remove any .svn directory by hand.

For a couple of directories is not a problem but today I've a big project with hundreds of directory, so I realized a little script to help me:

$ find . -type d -name .svn -exec rm -r '{}' \;

Codesourcery G++ for ColdFire on OpenSuse 10.3 and some problems during IDE installation

In these days at working we are evaluating the buying of cross-compiler IDE of ColdFire by CodeSourcery G++. The development environment is substantially Eclipse optimized for that cross-compiler. During installation of the package we have discovered a lot of problems running the IDE installation and the next license installation.

From the official site must download the *.bin package that contains all the necessary, but after run, we have always obtained this error:

eclipse.bin: xcb_xlib.c:52: xcb_xlib_unlock: Assertion `c->xlib.lock’ failed

To solve this issue is sufficient to insert into ~/.bashrc this line:

export LIBXCB_ALLOW_SLOPPY_LOCK=1

and reload the file:

# source ~/.bashrc

Well, proceed with installation and complete it. At the end a wizard license will be prompt but it was never appear to us, may be because of some problem about the MAC address of our virtual machine (we work under vmware). So, we have prepared a new computer with native linux, put it out of the net (probably the license evaluation file it will be downloaded directly from internet during installation), waiting the wizard appear, download the license from codesourcery site by hand and import it to the wizard itself.

Only after all these fix and tries we were finally able to work with the new development environment. Unfortunately, using it we have discovered that sometimes Eclipse crashes with no sense and we have not yet understand why.

OpenSuse 10.3 CD and DVD with fault installer? Reinstalling the bootloader!

Today I've tested the new OpenSuse 10.3 with KDE both in CD and DVD version on an old Packard Bell Desk Pro. After a long waiting during installation, at automatic reboot it will be prompt a classical black screen with the message "Operative System not present". After a vanished search on the net looking for some informations, I thought that the installer was failed to install the bootloader and so I've just tried to do it manually. Here there are all the steps I follow:

  • Run OpenSuse installation CD/DVD and enter in Recovery mode
  • Run grub ed enter in its own shell
  • From here run these commands:

grub> root (hd0,1)
grub> setup (hd0)
grub> quit

Where:
hd0,1 => sda2
hd0 => sda

  • Restart the system and magically the installation will go on.
Syndicate content