Install PHP with Postgres support using HomeBrew

Most of the information is taken from this article: http://justinhileman.info/article/reinstalling-php-on-mac-os-x/ 1. Add the Formulas [code] brew tap homebrew/dupes brew tap homebrew/versions brew tap homebrew/homebrew-php [/code] 2. Install PHP with Postgres support [code] brew install php56 –without-mysql –without-apache –with-pgsql [/code] 3. Make sure it uses the Right Path [code] export PATH="$(brew –prefix)/bin:$PATH" [/code]

Continue reading →

Phonegap Cross-platform Mobile development

PhoneGap is a mobile development framework produced by Nitobi, purchased by Adobe Systems.[3][4] It enables software programmers to build applications for mobile devices using JavaScript, HTML5 and CSS3, instead of device-specific languages such as Objective-C.[5] The resulting applications are hybrid, meaning that they are neither truly native (because all layout rendering is done via web […]

Continue reading →

Implementation of conditions on Drupal AND OR queries

A simple query on Drupal looks like: $query = db_select(‘users’, ‘u’, $options); So, a full query is: //The query using MySQL $result = db_query(“SELECT uid, name, status, created, access FROM {users} u WHERE uid 0 LIMIT 50 OFFSET 0”); //Using Drupal Queries // Create an object of type SelectQuery $query = db_select(‘users’, ‘u’); // Add […]

Continue reading →

How to create a calendar for a content type on Drupal

You just need to install the calendar module. Located on this url: https://drupal.org/project/calendar After install it you will have access to some new views as a template:[[{“type”:”media”,”view_mode”:”media_original”,”fid”:”35″,”attributes”:{“alt”:””,”class”:”media-image”,”height”:”620″,”style”:”line-height: 1.538em;”,”typeof”:”foaf:Image”,”width”:”1359″}}]]   If you use any of them It will show you the Views interface where you will be able to select the fields for consideration for the […]

Continue reading →