Adafruit i2c/SPI LCD Backpack with Netduino


Posted on 20 November 2014 at 07:11 PM


Adafruit i2c/SPI LCD Backpack with Netduino from EZ Bitz on Vimeo.

A quick demo of using i2c/SPI LCD Backpack from Adafruit with netduino, using μLiquidCrystal library from http://microliquidcrystal.codeplex.com/


ESP8266 esptool for windows


Posted on 18 November 2014 at 06:11 PM


Esptool is a tool to allow the creation and handling of firmware files suitable for the ESP8266 chip.

The  original sources are on https://github.com/tommie/esptool-ck

If you want to compile yourself under Windows I've made a Visual Studio 2010 project
and there arethe binary files



How to generate simple sitemap.xml using php and mysql


Posted on 14 November 2014 at 05:11 PM


define('HOST', 'http://' . $_SERVER['SERVER_NAME']);
define('CRLF', "\r\n");
define('TAB', "\t");
define('TAB2', "\t\t");


function makes_sitemap($sitemap = 'sitemap.xml')
{
     $content = '' . CRLF . '' . CRLF;     
     $sql = 'SELECT * FROM posts ORDER BY post_date DESC;';
     $res = mysql_query($sql);
     $format = '%s' . CRLF . TAB . '' . CRLF . TAB2 . '' . HOST . '/%s' . CRLF . TAB2 . '%s' . CRLF . TAB2 . 'monthly' . CRLF . TAB2 . '0.8








' . CRLF . TAB . '';
     while($arr = mysql_fetch_assoc($res)){
         $dat = explode(' ', $arr['post_date']);
         $content = sprintf($format, $content, $arr['post_slug'], $dat[0]);
         }
     $content = $content . CRLF . '' . CRLF;
     file_put_contents($sitemap, $content);
     }

Make sure you have write access on the directory where the file is created

Stats

Posts: 7
Comments: 0
Files: 5
Downloads: 25