Programming

jQuery bsod plugin

March 14, 2009
By SeanJA
jQuery bsod plugin

So I was checking up on my twitter feed yesterday and saw a tweet that direceted me to this: http://devthought.com/wp-content/projects/mootools/BSOD/: The script BSOD.js provides an easy-to-use class to boost the error reporting user experience of your websites. To fully understand the characteristics of this technique please refer to this external article I thought to...
Read more »

Tags: , , , , , , , ,
Posted in Javascript, Linux, Mac, Microsoft, Open Source, Programming, Twitter, jQuery | 4 Comments »

Templating

February 5, 2009
By SeanJA

There are many ways of doing templating (for quick website development) especially in php. One that I have a lot of experience with is Smarty.  So far I am not impressed too much with it. Rather than saving time, it seems to take up more of my time trying to get it to do...
Read more »

Posted in PHP, Programming | 4 Comments »

Netbeans Subversion > Eclipse Subversion

January 13, 2009
By SeanJA
Netbeans Subversion > Eclipse Subversion

For many reasons I prefer Netbeans to Eclipse for a lot of my programming. Since it has added in proper php support, which is more polished than Eclipse’s php extension, it has become my default IDE at work too. Another thing that is nice is that the subversion integration is very well done. One...
Read more »

Posted in Computer, Eclipse, IDE, Netbeans, Open Source, PHP, Programming | 3 Comments »

Keeping database.yml dry

December 15, 2008
By SeanJA

That would be dry as in Don’t Repeat Yourself defaults: &defaults adapter: mysql encoding: utf8 username: root password: root #Wherever mysqld.sock is located socket: /opt/local/var/run/mysql5/mysqld.sock   development: database: blog_development <<: *defaults   test: database: blog_test <<: *defaults   production: database: blog_production <<: *defaults Share and Enjoy:
Read more »

Posted in Rails, Ruby | No Comments »

Making isset Recursive

October 22, 2008
By SeanJA

At work I was told to add in the magic method __isset() (which is technically done by overloading the function…). Essentially it lets you call isset() on private and protected variables in your classes:   /**  As of PHP 5.1.0  */   class MyClass{   private $private;   public $public;   protected $protected;   public function __isset($name) {         echo "Is '$name' set? ";         return isset($this->name);     }...
Read more »

Posted in PHP, Programming, WTF | 3 Comments »