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

    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.


    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.


    Time Synchronisation with NTP (ubuntu) →


    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:


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


    Count Files in a Directory

    ls | wc -l


    Install HyperDB on WordPress →

    No worries OP it was not cleared to me either!

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

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

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


    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