Category Archives: Programming

Get Tweets and cache in XML whilst staying under the API Limit

Edit: Added security features for judging when malicious tweets with dead links enter the XML. These links are designed to break XML web services to harm a site. We now test the xml and if it validates then write it to file. The view: The controller: The model:

Custom Error Handler Example

PHP Email Address Validation

After about 4 hours of searching and reading RFC’s with blackened eyes I finally stumbled across a email validator that might actually work: Sayers Validator I have tested it against a bunch of stuff and it has about 99.9% accuracy rate which is pretty insane. Don’t even bother to try and understand is coding it [...]

My Theme CSS

A couple of people have been asking me what CSS I use for this theme. Well today is your lucky day I am releasing the CSS. It’s not the greatest or even most elegant CSS but it’s some I made up one night. In order to achieve this theme you must first use the Sandbox [...]

How to get the child (or child child) class name inside of a parent

I was looking for a function recently that would allow me to complete the activerecord setup within my mvc. Each of my model classes would represent a table within mongo in every sense (down to the name of the model class). This would mean any developer using my framework would never have to physically touch [...]

Mongo ActiveRecord

This looks very interesting indeed: ActiveMongo I might even replace my current abstraction layer with this one. It does all the really good things like placing a document or set of documents straight into a predefined class . If you use mongo you’ll want to check this out.

Follow

Get every new post delivered to your Inbox.