Author Archives: Daniele Occhipinti

Android – how to develop directly on a phone

There are severe problem with using the Android Emulator on a netbook / mini-laptop. It is much better to use your phone. That’s it: you develop on Eclipse and run and debug the program directly on your phone. In order … Continue reading

Posted in Android | Leave a comment

Android drawable default icons – they are free to use

http://androiddrawableexplorer.appspot.com/

Posted in Android | Leave a comment

Android how to read and write files

http://huuah.com/android-writing-and-reading-files/

Posted in Android | Leave a comment

Uncompress on the fly when copying a file from a remove location with scp

Don’t use scp, do it with ssh: ssh backups@server “cat /home/backups/backup_2010-09-27.tar.gz”| tar zxvf – You can probably use something similar also for: Compress on the fly when copying a file from a remove location with scp

Posted in Linux Command Line | Tagged , | Leave a comment

Setting up an encrypted volume on an external hard drive on CentOS

Make sure the version of your kernel is 2.6.16 or later with support for device mappers. Please replace XXXXX with the device Linux allocates the driver to (i.e.: /dev/sdc1). Use the dmesg command to find that out. Preparing the volume … Continue reading

Posted in Redhat / CentOS, System Administration | Leave a comment

Linux bash – tar tricks

Change directory: tar xzvf /var/backups/dbserver/dbserver-backup*.tar.gz -C /var/backups/dbserver Specifing the destination file: tar –create -zvPh -f /tmp/backup.tar.gz /usr/local/bin /usr/local /etc/var/spool/cron /var/svn /home/*/.ssh /home/*/.bash*

Posted in Linux Command Line | Tagged | Leave a comment

Implement Selenium tests

Installing Selenium 1.0 and write tests with PHP _ The documentation is very good: http://seleniumhq.org/docs/ _ Donwload Selenium RC from here: http://seleniumhq.org/download/ _ When you extract it, there will be a directory with the server and a number of directories … Continue reading

Posted in PHP, Web Development | Leave a comment

Using a downloaded package without IDE in Java

http://stackoverflow.com/questions/4093021/java-using-a-downloaded-package-without-ide

Posted in Java | Leave a comment

CSS selectors optimisation

From the last chapter of “Even faster websites”. CSS selectors are matched right to left (!). That means the rightmost selector should be as less broad as possible: you should avoid * and tags as rightmost selectors. The quickest selectors … Continue reading

Posted in HTML / CSS | Leave a comment

Ubuntu Linux on Acer Aspire AO751h

Don’t use the Ubuntu Netbook Remix but the Desktop version. To fix the monitor resolution: https://wiki.ubuntu.com/HardwareSupportComponentsVideoCardsPoulsbo/ Wi-fi should work out of the box

Posted in Debian / Ubuntu / Kubuntu | Leave a comment