Quick introduction to MongoDB

MongoDB is document based NoSQL database. This means that: it has no schema it has no relations it is agile and scaleable stores information in nested documents of two-dimensional key/value…

PHP date arithmetic

strtotime() function can be used for date arithmetic. Following are some examples: Get next date Prints Get previous month Prints Go back 5 years Prints

Quick introduction to Laravel 5

Laravel is a free and open-source PHP web framework like CodeIgniter and Zend. It is built on the Model-View-Controller (MVC) architectural pattern. It has very good documentation and training material.…

Converting string to date in PHP

Converting strings to dates in PHP requires the use of two functions. strtotime function converts the string to an epoch timestamp. date function converts the timestamp to the desirable date…

Type casting in PHP

PHP does not support explicit type definition in variable declaration. For example, you CANNOT declare a variable as follows: In PHP, a variable’s type is determined by the context in…

Java and Memory

From a programming point of view, there are essentially six different places to store data on your computer. The fastest storage is the registers since this memory resides inside the…

Java JAR, WAR, and EAR files

.ear, .war, and .jar files are simply files zipped using Java jar tool. Each file is created for a different purpose: .jar files Jar (Java Archive) files contain libraries, resources…