Friday, February 24, 2012

Monday, February 20, 2012

Jquery notification plugin "noty"


Noty is a jQuery plugin that makes it easy to create **alert**, **success**, **error**, **information** and **confirmation** messages as an alternative the standard alert dialog. Each notification is added to a queue.

The notifications can be positioned at the **top**, **topCenter** (like GMail), **bottom**, **centre**, **top left**, **top right**, **bottom left** or **top right**.

 
Demo and documentation: http://needim.github.com/noty/
Dowload link: https://github.com/needim/noty/downloads

Javascript tetris in 140 character



Link: http://jsbin.com/egiqul/49
Link to source: https://gist.github.com/1672254

Sunday, February 19, 2012

Adding a new Route in Zend Framework

$Router = $this->_front->getRouter();

$CategoryRoute = new Zend_Controller_Router_Route('category/:category/:controller/:action/*',
    array(
        'controller' => 'index',
        'action'     => 'index',
        'category'   => null
    )
);
$Router->addRoute('category', $CategoryRoute);

Monday, February 13, 2012

Waterfall with HTML5

Balls falling on an hidden random terrain. This experiment is using physic simulation trought the library box2djs.


 
Url: http://experiments.lionel.me/blocs/

Ball Pool with HTML5

Start by shaking the browser, then create new balls (click on empty space), move some others (drag) and reset the screen (double click). Stunning gravity and physic demonstration!



Url: http://mrdoob.com/projects/chromeexperiments/ball_pool/

Friday, February 10, 2012

Insert data from a tabel to another table with sql

INSERT INTO data_table_1
(`data_1`,`data_2`,`data_3`,`country`)
SELECT `data_1`,`data_2`,`data_3`, "us"
FROM data_table_2;

How to use 'case' in mysql query

select id,
    case report.type
        when 'P' then amount

        when 'N' then -amount

    end as amount 
from
    `report`

Use array in sql object in Zend Framework

$sql = $this->db->select()->from(array("k"=>"keywords"), array("id", "value"))->where("k.keyword IN (?)",$keywords_array);

Randomize your sql results with sql in Zend Framework

$sql =  $this->db->select()->from(array("i"=>"images"), array("id",'path'))->order("RAND()")->limit(1);

Zend framework screencast at zendcasts.com

Zendcasts is a weekly podcast in screencast format covering different parts of the Zend Framework, a PHP framework designed for developing enterprise application development. 




Url: http://www.zendcasts.com/

Command and Conquer in HTML5 v0.3d

This is a recreation of the original Command and Conquer, Real Time Strategy game entirely in HTML5 and Javascript. This page works best on Google Chrome or Mozilla Firefox. This is still a work in progress.



Site: http://www.adityaravishankar.com/projects/games/command-and-conquer/