1. the GIT cheatsheet

    Finally the cheatsheet I was waiting for available here


  2. php 5.3, time and date functions and timezone

    After installing PHP 5.3, you may get a warning for every function involving date and time like

    Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/London' for [...]
    
    To fix this, you can set the timezone in your script using date_default_timezone_set(‘Europe/London’); or set it into the php.ini file with date.timezone = ‘Europe/London’


  3. MacPorts, PHP 5.3 and Mysqlnd

    If you have recently upgraded to php 5.3 and you have done it using

    sudo port install php5 +apache2+macosx+mysqlnd+pear
    


  4. the twittersphere

    Sooooooo funny! …


  5. svn revert cleanup

    You have reverted an svn merge and you have a lot of files not tracked (with exclamation mark, basically)?
    Clean it up:

    svn status | awk '$1 == "?" {print $2}' | xargs -t -i rm -r {}
    
    Again, knowing awk and xargs turn helpful! …


  6. Tech Talk: Linus Torvalds on git

    Git explained by his the creator. I’m more convinced than ever! …


  7. the correct procedure for compiling subversion 1.6.2

    Not sure if this is the complete way of doing it (I’m not telling you which .deb to install), but it worked for me: Remove some waste from eventual previous compilations:

      
    $ rm -rf /usr/loca/lib/libsvn*  
    $ rm -rf /usr/local/lib/libapr*  
    $ rm -rf /usr/local/lib/libexpat*  
    $ rm -rf /usr/local/lib/libneon*  
    
    Run autogen
      
    $ ./autogen.sh   
    
    Configure and install (it is important to follow the order)
      
    $ ./configure  
    $ make -j external-all  
    $ make -j local-all  
    $ sudo make install  
    
    That’s it. Hope to have helped someone as usual. …


  8. my .bashrc and env on mac

    If someone find it useful… I do and this post is, honestly, for my record: …


  9. bash: mv files with a specific date to another directory

    I was searching for a bash command to move files and directories from a folder to another with modified in a specific date for ages on google until I gave up and decided to write it myself:

     ls -l | awk '$6 == "2009-06-04" { print $8 }' | xargs -t -i mv {} /destination/folder
    
    To understand what this line does, you need to know a bit about awk and xargs (try “man xargs” in your shell) …


  10. Migrated

    Me and Antonello have finally bought our server and this blog has been the first to be migrated.
    Totally happy! Expect great new things :D …