Amazon EC2 IP Detector for Python

The other day I need to be able to detect if an IP address was an Amazon EC2 IP address for a project I was working on. I couldn’t find any code but I did find this: Which is a list of all the ip ranges for Amazon EC2 servers. So first a wrote a

Cincinnati Web Analytics Event

InfoTrust & Google present Analytics that Excite 2014. The conference will be all-day on Wednesday, October 15th.  The event will take place at Memorial Hall in downtown Cincinnati (1225 Elm Street, Cincinnati). Whether you’re an analyst, marketing manager, director, VP or CMO – we all need data that excites. Analytics that Excite 2014 will show you how to get

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.