. . .

Help

The purpose of this blog is to put together all the articles that have helped us. It may help us again and someone else can also benefit from it. All the credits for included articles go to the original authors. We’ll try our best to include credits with every article, but if we miss someone, excuse us, since this site is not used for commercial purposes.

April 30, 2014

Enum column in Rails

Declare an enum attribute where the values map to integers in the database, but can be queried by name. Example: class User < ActiveRecord::Base enum status: [ :admin, :user, :banned ] end  For migration, write  def up create_table :authorities do |t| t.string 'value', :default => '', :null => false t.integer […]
May 31, 2013

How to use PDO-MySQL with PHP

PDO is a PHP extension that allows multiple PHP's database connections by creating a single cohesive interface. It allows code portability and compatibility across various platforms. It can be considered as a database access layer providing a uniform method of access to multiple databases. By using PDO you can switch […]
May 29, 2013

How to use 9-Patch images in Android

Android is remarkable good in supporting various screen sizes, it allows various drawable directories for particular screens and layout configurations using density-independent pixel (dp) instructions. Android also allows using 9 patch images as backgrounds for buttons and application content. In a 9 patch image 4 corners remain unscaled, but the […]
May 28, 2013

PHP PHAR Package

The phar extension is used to put entire PHP applications into a single file called a "phar" (PHP Archive) for easy distribution and installation. It provides the means for distributing code as a single archive, that does not have to be extracted to a folder before usage. In addition to […]
May 27, 2013

How to set timezone at application level and user login level using PHP

To set timezone in php at user level, you have to use the function date_default_timezone_set(). This function is available in version 5 and later of PHP   <?php date_default_timezone_set('America/Los_Angeles'); // To see a list of all supported time zones please go to : http://www.php.net/manual/en/timezones.php $script_tz = date_default_timezone_get(); if (strcmp($script_tz, ini_get('date.timezone'))){ […]

  • Cost Efficient Solutions.
  • Minimal Timelines.
  • Effective Communication.
  • High Quality Standards.
  • Lifetime Support.
  • Transparent Execution.
  • 24/7 Availability.
  • Scalable Teams.

Join Our 200+ Happy Clients Across Globe


Free Consultation.

    Do you need tech help of your startup/business? Experts from our team will get in touch with you.

    Please do not post jobs/internships inquiries here.