Tuesday, March 26, 2013

JavaScript in PHP

Printing a whole lot of JavaScript in PHP

.. granted you'd normally want to have a *.js file for your JS code but if you had to spew out a whole lot of JS code in PHP here is a easy way using lables and raw format :




function echoJavascript(){
        $jscode= <<<MY_JS
        <script type="text/javascript">
         blah blah blah... your javascript code here
        </script>
        MY_JS;
echo $jscode;
}




Monday, March 25, 2013

Bricked, Kicked, Picked, Hicked


  • you place it on the sidewalk with the screen side up. You drop a brick and if the screen cracks and the device no longer works, you have a bricked device.
  • If you get an iPad and cover it in bling, you have a tricked device.
  • If you stole it, you have a picked device and if you are a farmer, you have a hicked device.

Wednesday, March 13, 2013

The Joel Test


some good advice for your development team. It makes sense even if you are a one man team. you need to improvise on #12
  1. Do you use source control?
  2. Can you make a build in one step?
  3. Do you make daily builds?
  4. Do you have a bug database?
  5. Do you fix bugs before writing new code?
  6. Do you have an up-to-date schedule?
  7. Do you have a spec?
  8. Do programmers have quiet working conditions?
  9. Do you use the best tools money can buy?
  10. Do you have testers?
  11. Do new candidates write code during their interview?
  12. Do you do hallway usability testing? 
Find explanation at    http://www.joelonsoftware.com/articles/fog0000000043.html