Archive | Development

31 January 2012 ~ 0 Comments

Payflow with Rails

I have been working with the PayPal Payflow and a gem called ActiveMerchant. I had the need to basicly create models around the payment system. This ment when i am talking to the ActiveRecord model I will always be talking to ActiveMerchant (Payflow). This can be done by simply calling ActiveMerchant every time you need [...]

Continue Reading

05 January 2012 ~ 0 Comments

Upgrade rails

Upgrade rails 3.0.x to 3.1 In a small project I am working on with a friend i needed to upgrade the rails 3.0.3 application to a rails 3.1.1 application. This is very simple but can create some issues with your config files and any other core files you have edited. First we need to change your GemFile: [...]

Continue Reading

13 September 2011 ~ 2 Comments

Getting started with Netflix API

Netflix API I am sure all of us know what Netflix is and may use it every day. Did you know Netflix has an API allowing developers like myself to harness the power of Netflix in any application? Well in a recent project I have been working very closely with this API, so i am [...]

Continue Reading

31 July 2011 ~ Comments Off

jQuery back button

Ever needed to create a back button that acts like the browser back button? I rarely need this but in a latest project for an online assessment it was needed to allow the user to go back and look at the assessment content. I was using both jQuery and jQuery UI, so I will also [...]

Continue Reading

Tags:

16 July 2011 ~ Comments Off

Models in Skoot

Models are the “M” in “MVC”, and play a key roll in keeping your separation.What I will be covering here can be taken to most PHP frameworks with a little tweak. Below I will cover how to use the Models in the Skoot PHP framework. First a little about Skoot: This small but powerful PHP [...]

Continue Reading

Tags: ,

01 June 2011 ~ Comments Off

Capistrano and PHP

Capistrano loves PHP also! When I say Capistrano to most PHP developer they think Ruby on Rails right away. This is mostly the case because Capistrano got it’s fame from the Rails community. Capistrano has been good to thousands and thousands of Rails developers so why can it do the same for a PHP developer [...]

Continue Reading

Tags:

03 May 2011 ~ Comments Off

Codeigniter Views

Multiple views! Did you know you can load multiple views in a Codeigniter controller method? I have always believed it was one view to one action, but that is not the case! CodeIgniter will intelligently handle multiple calls to $this->load->view from within a controller. If more than one call happens they will be appended together. [...]

Continue Reading

Tags: ,

04 March 2011 ~ Comments Off

Skoot PHP Framework

Skoot a micro framework This small but powerful PHP “micro” framework is a result from another project. I started using a “micro” framework called NiceDog. NiceDog is a very cool little one file framework that is super simple to use and get started with. It lacks the basic needs such as a database layer and [...]

Continue Reading

Tags:

13 February 2011 ~ 1 Comment

Stock info with ystock

A new side project I have been working on is in the financial industry. This project needs to pull stock information such as; price, change, and volume of a any stock. The source i will be getting this information from is Yahoo! Finance. Yahoo produces a cvs file with just the information i need, so it’s good news! The next task is to build something i can use over and over, something portable i can take from this project and implement on the next.

Continue Reading

01 February 2011 ~ 2 Comments

Is an element visible?

How to tell if an element is visible with jQuery jQuery makes it easy to determine if an element is visible or hidden with a simple function ‘is()’ when used in conjunction with the element and a selector ‘:visible’ you can now determine if in fact an element is visible or not. I will cover [...]

Continue Reading

Tags:

28 January 2011 ~ 1 Comment

Array to a hash in Ruby

A WordPress MU API on Rails I have been working a WordPress MU API for the company I work for and came across a use for converting an array into a hash. The API is in Ruby on Rails, and the client that is making the request is PHP. The php script is posting an [...]

Continue Reading

28 January 2011 ~ 1 Comment

Caching Driver CI 2.0

With the latest release of Codeigniter, they added whats called “Caching Driver” allowing you to now use Memcache without going to a separate library as detailed in an older post: Memcache with Codeigniter. They now also support File based caching, Alternative PHP Cache (APC) Caching and Dummy Cache. CodeIgniter features wrappers around some of the [...]

Continue Reading

Tags: ,

21 January 2011 ~ 2 Comments

Quick and Easy Way To Do Autocomplete

Auto complete forms are now becoming essential to every day web development and knowing how to build such a tool will in some cases make you a hero! In the tutorial below i will be using PHP and jQuery. jQuery offers its own tool for this common problem in the jQuery UI library.

Continue Reading

10 January 2011 ~ 1 Comment

Ruby and Rails Delegate

Delegation is a quite common practice in Ruby projects, if you consider proxies, mix ins and composition as the ingredient of the Delegation Pattern. The Delegation Design Pattern is a technique where an object exposes certain behavior but it actually delegates responsibility for implementing that behavior to an associated object.

Continue Reading

29 December 2010 ~ Comments Off

Basic Firewall

After securing your Ubuntu server it’s now time to setup a basic firewall. For this tutorial I’ll use a great Ubuntu article as the basis for our basic firewall. You can find this article here: https://help.ubuntu.com/community/IptablesHowTo.

Continue Reading

Tags: