— You Are At The Archives for the code Tag —

JotPad – TextMate Theme

11.10.09 // Technology // (0) // 71 views

Recently i started playing with TextMate because of all the hype and the billions of shortcuts it has. This was a big shift from the editor Coda.app on the Mac. Immediately i was taken by the ability to have themes! So i decided to create one myself. Adapted from the eclips3.media theme freely available.
Simply download [...]

Woopra – Part I

08.11.09 // Internet // (3) // 67 views

If you’ve ever found yourself wondering what sort of traffic your website is getting, you might of resorted to going to some online analytics packages and log file parsers. Some of these offer a great analysis of where your traffic is coming from, the demographics of the visitors and even the visit time of your [...]

Using CakePHP Elements & RequestAction

02.17.09 // CakePHP // (1) // 628 views

This problem arose while i was trying to get a random phrase from a database into the <title> HTML elements across all views. Being fairly new to CakePHP i was overwhelmed by some people’s solutions to accessing models site wide. However they forgot what CakePHP is based on, MVC. Breaking this system will leave you [...]

Beginning CakePHP: Chapter 4 Solution

02.12.09 // CakePHP // (0) // 57 views

At the end of chapter 4 there is a challenge:
You may have noticed that I left the commentstable out of the tutorial for this chapter.This was to allow you to try
building a “has many”relationship for the postsand commentstables on your own.In this exercise,associate
comments with posts by using the appropriate relationship,and test the association using the [...]

PEP8: Style Guide for Python Code

01.05.09 // Python // (0) // 32 views

Follow and obey!
http://www.python.org/dev/peps/pep-0008/