1.  
    You have exactly one life in which to do everything you’ll ever do.
    Colin Wright
  2.  

    April 15th

    Taxes are due today. Its the year in review: how much did I make? how much did I save? how much did I spend? It’s a good time to make resolutions about the coming year.

    In the spirit of the minimalists and traveling light Slicksta is going to simply his life by owning fewer things. He will discard at least one item each and every day. For every item bought one will be donated or thrown away.

  3.  

    Empty a file without deleting it

    Sometimes error.log gets really big and does not seem to rotate properly. Here’s how to quickly empty it’s contents without deleting it.

    sudo truncate -s0 file

    Slicksta had to use this command when cat and /dev/null > both failed because of permission denied.

  4.  

    Time Synchronisation with NTP (ubuntu) →

  5.  

    Installing PHP’s stats package on Ubuntu

    Slicksta needed to do some standard deviation stuff. There is a math package for PHP but it is not installed by default.

    sudo apt-get install

    php-pear sudo pecl install stats

    Next, edit /etc/php5/apache2/php.ini and add the following under the Dynamic Extensions section:

    extension=stats.so

    Restart apache and you should see a “Stats” section listing the version number when you view php_info.

  6.  

    Count Files in a Directory

    ls | wc -l

  7.  

    Install HyperDB on WordPress →

    No worries OP it was not cleared to me either!

  8.  
    We don’t quit, we don’t cower, we don’t run. We endure and we conquer.
    – Kobe Bryant, on “Mamba Mentality”
  9.  

    How much time do you spend traveling to work: Map →

    Slicksta? 30 seconds (to go the stairs and into the office)!

  10.  

    Pagination best practices →

    1. Provide large clickable areas
    2. Don’t use underlines
    3. Identify the current page
    4. Space out page links
    5. Provide Previous and Next links
    6. Use First and Last links (where applicable)
    7. Put First and Last links on the outside