codediesel

descriptive stats

Calculating descriptive statistics in MySQL

Descriptive statistics can be quite useful for simple analysis of records in a database. For example, to calculate average numbers of sales or products for a particular duration, or the Variance of sales for...

SmartphoneRevolution-small

Smartphone ecommerce usage infographic

Developers have a lot to consider when it comes to the user experience: making sure everything works, how intuitive it is to use, and that it beats the competition. But one thing that developers...

momentjs

Flexible date manipulation in javascript

Date manipulation is a common programming task a developer does regularly and many times can get tricky and cumbersome. If youy web applications relies heavily on date manipulation on the frontend than moment.js is...

Migrating legacy data to WordPress

Migrating legacy data to WordPress

With an increasing number of users migrating to WordPress, moving data from an existing CMS to WordPress has become an essential process in the transition. Although migrating small databases from another CMS can be...

Easy PHP debugging with Kint

Easy PHP debugging with Kint

My standard debugging tool when using PHP is xdebug. Pairing xdebug with Komodo gives me a very productive environment for building PHP applications. However, testing an application code on a hosted server can be...

node_file_uploads

Processing file uploads in node.js

One of the important elements of a web application is form processing and file uploads. PHP has excellent support for these kind of things which makes it so popular with developers. Programmers moving to...