Press "Enter" to skip to content

Posts published in February 2014

Create daterange array of missing dates

[code lang=”php”] //fromDate 2014-01-22 //toDate 2014-02-20 //$arr Array ( [0] => Array ( [ISO_DATE] => 2014-02-18 [DAY_SUM_AMOUNT] => 3000 [DAY_SUM_VOLUME] => 2 [CONVERSION_PCT] => 100 ) [1] => Array ( [ISO_DATE] => 2014-02-19 [DAY_SUM_AMOUNT] => 4000 [DAY_SUM_VOLUME] => 1 [CONVERSION_PCT] => 100 ) ) //codetime function createDateRangeArray($strDateFrom,$strDateTo) { $aryRange=array(); $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2),…

Speedtest on Ubuntu Server (commandline)

Using the `speedtest-cli` is easy and very useful. You run it as follows: [code lang=”bash”] wget -O speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py chmod +x speedtest-cli ./speedtest-cli [/code]