God rewards fools

The way to get to the top of the heap in terms of developing original research is to be a fool, because only fools keep trying. You have idea number 1, you get excited, and it flops. Then you have idea number 2, you get excited, and it flops. Then you have idea number 99, you get excited, and it flops. Only a fool would be excited by the 100th idea, but it might take 100 ideas before one really pays off. Unless you’re foolish enough to be continually excited, you won’t have the motivation, you won’t have the energy to carry it through. God rewards fools.

Martin Hellman


Developing with a SSD

“How to live with a SSD” or “This will save your life one day”

crontab -e
00 10,12,18,22,2 * * * rsync -zr /home/kospol/workspace/ /Backups/workspace


Rename files to lowercase

As you probably now, your application’s images that are in the drawable directory must be named in lowercase.

Unfortunately this is not true for the iPhone applications. A big portion of my job is to develop Android apps using resources from existing iPhone apps. In order to be quick and efficient, I wrote this bash script that renames all your files in your current directory to lowercase, creates a new folder named 2x (which contains the large images) and removes the @2x extension.

for i in `find .`; do mv -v $i `echo $i | tr '[A-Z]' '[a-z]'`; done
mkdir 2x
mv *2x.png 2x/
cd 2x/
for i in `find .`; do mv -v $i `echo $i | tr -d '@2x'`; done

Please have a backup before using it!