mock-rest-api-nodejs

How to create a mock REST api for testing in nodejs

There is a frequent requirement during api development to create a mock api quickly so that other team members can use the same to test their respective part of the project. For example front-end developers might need the api endpoints to test their designs. Rather than wait for the complete api to be finished, developers can create a mock api quickly for testing. This nodejs module by typicode helps front-end developers who need a quick back-end for prototyping and mocking REST apis!
(more…)

Read More

cron-expressions

Cron Expression Parser in PHP

Working with cron scheduling can many times be a frustrating affair. Although setting a few cron jobs at one time can be easy, calculating cron dates in the future in code can get time consuming quickly. The PHP cron expression parser described here can parse a CRON expression, determine if it is due to run, calculate the next run date of the expression or calculate the previous run date of the expression. You can calculate dates far into the future or past by skipping n number of matching dates.
(more…)

Read More

cordova

Building a Cordova mobile app with NetBeans

Here is a quick look at building a mobile app using NetBeans and Cordova. To develop Cordova applications, you must install SDKs for each mobile platform you are targeting. This installation is necessary regardless of whether you do the majority of your work in the SDK or use the CLI for your build cycle. Here we will be focusing on the Android platform, so you will need to install the Android SDK first.

(more…)

Read More

wordpress-rest-api

Accessing WordPress data using the new REST api

WordPress is without doubt the most used CMS system around. Various sources peg the usage around 20-30% of all web sites. Whatever the correct figure, there is no doubt that the collective content of WordPress sites is enormously large. However almost all content is virtually held in independent WordPress sites with no way to easily access a sites content programmatically. Of course we have RSS feeds, but it is severely restricted and has a totally different purpose.
(more…)

Read More

virtualbox

PHP 5.5 on Oracle VirtualBox

PHP 5.5 has added a nice support for Generators, which I’ll cover in some other post. I needed to test these new features and add some to old applications. However PHP has dropped support for Windows XP and Windows 2003 starting with PHP 5.5. and I still have a Windows XP machine (along with Ubuntu 14.0 LTS). Although I could install PHP 5.5 in Ubuntu, most of the time I’m using Windows. I decided to go with VirtualBox for installing PHP 5.5, as I have some legacy PHP applications that I want to upgrade to the new version, and VirtualBox makes it easier to switch between operating systems.
(more…)

Read More