The Matrix Using JavaScript in less than 600 bytes

Posted by on Apr 4, 2013 in Coding |

HTML XHTML <canvas id=canvas> 1 <canvas id=canvas> Javascript JavaScript //set the canvas to take the entire screen canvas.height = window.screen.height; canvas.width = window.screen.width; //one entry in the array per column of text //each value represent the current y position of the column. (in canvas

Read More

Passing Parameters To A MYSQL Query Inside A Shell Script

Posted by on Mar 21, 2013 in Coding |

This examples demonstrates how a shell script can pass a parameter to a sql query. PgSQL /* script:get_customer_record.sql */ SELECT c_id, c_first_name,c_last_name, c_address, …… ,last_modified_date FROM customer WHERE last_modified_date >=@start_date AND last_modified_date <= @end_date; @start_date AND @end_date 1234567 /* script:get_customer_record.sql */&n

Read More

13 Useful WordPress SQL Queries

Posted by on Oct 23, 2012 in Coding |

I cannot take credit for this list but I find myself looking up this information regularly and decided to create my own post to avoid having to search for this information. You can find the post where I copied this from here.   Change Site URL and Home URL WordPress stores the absolute path of the site URL and home URL in the database. Therefore, if you transfer your WordPress site from the localhost to your server, your site will not...

Read More

Font Awesome

Posted by on Jul 27, 2012 in Blog, Coding |

Designing a site is not as easy as some might think. Today it iseven harder because the designer has to keep in mind the different media devices their site will be displayed on. In the past this means creating different images, different styles, and in essence a different site. Well with things like Zurb’s Foundation and Twitter Bootstrap that enable you to create a responsive website with relative ease really helps when it comes to...

Read More

PHP: The Right Way

Posted by on Jul 10, 2012 in Blog, Coding |

In case you missed it (there’s been a good bit of buzz about it in the PHP community lately) there’s a recent post from Jeff Atwood about the PHP language and some of his thoughts on its usefulness, it’s structure and some of this thoughts on the usual “PHP sucks” kinds of articles. Remember the immediate visceral reaction you had to the double-clawed hammer? That’s exactly the reaction most sane...

Read More

CodeIgniter & Datagrids

Posted by on Jun 25, 2012 in Coding |

I’ve searched the web looking for an easy way to get a nice datagrid using CodeIgniter when I came across a JQuery plugin from datatables.net. This is a real simple solution and it provides a lot of features like Variable length pagination On-the-fly filtering Multi-column sorting with data type detection Smart handling of column widths Display data from almost any data source DOM, Javascript array, Ajax file and server-side processing...

Read More