wwwsqldesigner short review

Install Download from http://code.google.com/p/wwwsqldesigner/ Very easy installation: you need a webserver running, unpack wwwsqldesigner it in a folder, setup your virtual host (I use personal domain for my pc), all done! Use There is a small tool bar to the right, very simple and intuitive to use, it is grouped in 4 areas: Save/load Table […]

Read More…

WordPress Category external feed plugin

<p>This wordpress plugin is for show custom external rss feed in category page.</p> <p>For example if you want a category page list rss feed from another site category page, this is for you.</p> <p>It is my first wordpress plugin (ok, maybe not exactly the very first hello world like ;)</p> <p>It use <a href="http://simplepie.org/">simplepie</a> because […]

Read More…

Defer javascript execution using data

Due to page performance you should load javascript at the end of page (see http://developer.yahoo.com/performance/rules.html), at least all javascript you can defer to load. There are script that have to load at the very begin of page. But are you sure there is no option? Well, actually this is a critical consideration on my own […]

Read More…

Simplepie and CodeIgniter

<p>yes, found: http://www.haughin.com/code/simplepie/<br /> and tried with php 5.3 installation … simply do not work</p> <p>I recalled there was a problem in simplepie for assign new by reference, just downloaded newer code from http://simplepie.org/ … still same problem.</p> <p>So</p> <p>{syntaxhighlighter brush:bash}<br /> sed ‘s/=&\ new/=\ new/’ simplepie.inc > Simplepie.php<br /> {/syntaxhighlighter}</p> <p>adding <code>if ( ! […]

Read More…

Introduzione a JavaScript – Terza parte

Una video introduzione al linguaggio javascript e le sue principali caratteristiche In questa terza parte: gli eventi. Nota: gli eventi si propagano dal document fino al target e dal target fino al document (non al body) La documentazione di call e apply da mozilla Oggetti e ereditarietà in javascript sono presentati in http://www.howtocreate.co.uk/tutorials/javascript/objects Un semplice […]

Read More…

Introduzione a JavaScript – Seconda parte

Una video introduzione al linguaggio javascript e le sue principali caratteristiche In questa seconda parte: oggetti, il DOM, un esempio concreto, le closure La documentazione di call e apply da mozilla Oggetti e ereditarietà in javascript sono presentati in http://www.howtocreate.co.uk/tutorials/javascript/objects Un semplice esempio che usa prototype in http://snippets.dzone.com/posts/show/899 DOM Level 2 Event Model è documentato […]

Read More…

Introduzione a JavaScript – Prima parte

<p class="wp-block-paragraph">Una breve introduzione al linguaggio e le principali caratteristiche dello scripting client side per il web </p> <p class="wp-block-paragraph"> Presentati sinteticamente: sintassi, JSON, Object, DOM, Eventi </p> <p class="wp-block-paragraph"><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/ZcATb5jRpu8&hl=it_IT&fs=1?rel=0"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><embed src="http://www.youtube.com/v/ZcATb5jRpu8&hl=it_IT&fs=1?rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></object></p> <p class="wp-block-paragraph"> Oggetti e ereditarietà in javascript sono presentati in<br /> […]

Read More…

jquery Form Hint plugin (mine)

This is my view of form hint plugin: show a div over with the title content inside, instead of replace text in input elements and match it with placeholder simply run $(selector).formHint() on all form element and title is used as hint See also http://code.google.com/p/jquery-watermark/ […]

Read More…

shuffle db table order

simple code to shuffle a table … with php shuffle: $result = $mysql->query(“SELECT id FROM $table ORDER BY id”); $rows = $result->num_rows; $order = shuffle(range(1,$rows)); while($row=$result->fetch_row()) { $num=array_shift($order); $mysql->query(“UPDATE $table SET rand_sort=$num WHERE id=”.$row[0]); } added: with MySQL RAND(): $result = $mysql->query(“SELECT id FROM $table ORDER BY RAND()”); for($i=1;$row=$result->fetch_row();$i++) { $mysql->query(“UPDATE $table SET rand_sort=$i WHERE […]

Read More…

Ajax frontend for my backoffice in jQuery and PHP

This is my way to organize php for a simple jQuery frontend ajax based: 1.in a administration page include the php that generate html for each box 2.for each box setup behavior in Javascript 3.let each php manage POST request (for change/update) and GET request for show content So in admin.php we could have something […]

Read More…