Appcelerator Changing Language Programmatically

Appcelerator follows the Android standard convention for internationalization. Basically you setup a i18n folder and then create folders named with the ISO 639-1 code for the language and put a strings.xml file in each. So basically you end up with a folder structure like this: i18n …en ……strings.xml …fr ……strings.xml …zh ……strings.xml Only problem with




Titanium Certified Developer and Expert

Last week I spent a week in Nashville, TN going through some training in Appcelerator. Half way through the week I passed the Titanium Certified Developer test, then at the end of the week I passed the Titanium Certified Expert test. For those of you who don’t know Appcelerator is a Javascript framework that alloys




YiiBooster TbGridView – First and Last Page Link

I basically always have YiiBooster installed on every Yii site I have worked on. One thing I could never get to work right was on a TbGridView, which extends the CGridView class, is the First and Last page links on the pagination. Like this: I finally took the time to dig into the code and was able



Cheap Virtual Private Servers at Digital Ocean

As a developer I need a web hosting solution for my personal sites, development environments for works in progress, and a few sites for friends and family. I used to use a shared hosting account that allowed for multiple domains like Bluehost (or I’m ashamed to say at one time even GoDaddy). However, while shared



Mobile API and Drupal Multisite Bootstrap Issues

At work I have been working on making my first mobile app with Appcelerator which is a Javascript based tool that ports to Android, IOS, etc… For the most part everything has been good. There are a lack of good tutorials out their, however, there are some sample projects out there so as long as



How to Become a Web Developer

So I have been asked by many people over the years how they can get into web development. I always tell them there is a very low barrier for entry, there are open source tools and software for everything. You can literally become a master web developer without every spending a dime. The other day



PHP Random Number Generator with Normal Distribution / Bell Curve

So for a project we needed some random test data but we wanted the data to be on a bell curve to represent real life scenarios. I couldn’t find anything so after so digging I found some code in Java and translated it into php seems to work great. function purebell($min,$max,$std_deviation,$step=1) { $rand1 = (float)mt_rand()/(float)mt_getrandmax();



BraintreeAPI Version 1.2

Thanks to a comment from Todd, I realized the API for Braintree has been updated since I last published this extension. Due to the release of PHP 5.5 some of the functions used in Braintree’s API code have been deprecated and were causing warnings. I have updated the Yii extension and also updated the repo.



BraintreeApi Version 1.1

I have updated the repo and the extension on Yii with version 1.1. Here are some of the updates in the newest version: Created a new model BraintreeCCForm that extends CFormModel for managing form input Added default types for widget. Reduced required inputs for widget $this->values can be pulled from $this->model $this->form_id can be pulled



EbooMVC – a PHP lightweight framework

To help myself understand more of how the MVC architecture works I decided to create my own. I am most familiar with the Yii framework so some parts of it may seem similar. You can view the repo at: https://bitbucket.org/pitchinnate/eboomvc