'Uncategorized' Category

  • The truth about Herbalife

    April 11, 2017

    in 25g. shake formula, 13g. sugars, 9g. protein (milk), fat 1g. (which makes about 95% of the product). So selling milk and sugar for 100 USD per kilogram is nice business don`t you think?

  • HTTP Request showing progress on background task without ajax

    November 17, 2016

    The idea: show progress for process that is running in the background Execution: takes advantage of the fact that JavaScript is loaded in parallel ignore_user_abort(); set_time_limit(3600); session_write_close(); @ob_end_clean(); @ob_end_flush(); @header('Content-Encoding: text/html'); echo 'I am doing some very very very long job '; $taskId = uniqueId(); touch($taskId); echo ''; echo 'Doing it '; while (file_exists($taskId)) { […]

  • Zf2 Naviagation Custom Active Page

    October 31, 2015

    Zf2 Naviagation Custom Active Page Call in layout/view $nav = $this->navigation('Navigation'); $pages = $nav->getContainer()->getPages(); foreach ($pages as $page) { if ($page->getId() == 'admin') { $page->setActive(true); } }

Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org