Archive for the 'General' Category


HOWTO: Symfony 1.4 – Only load an plugin for a given application

Thursday, May 19th, 2011

Sometimes you’ll want to include a plugin, such as an admin generator, that will load stylesheets or javascript files that you may not want loaded in all applications.

You could add the following to your template file: (apps/frontend/templates/layout.php)

$sf_response->removeStylesheet('/m14tAdminGeneratorPlugin/css/admin.css');

But that just feels wrong. So instead, lets only load the plugin for the application that we want (config/ProjectConfiguration.class.php):

class ProjectConfiguration extends sfProjectConfiguration {
  public function setup() {
    $this->enablePlugins('sfDoctrinePlugin');
    ...
    if ( "admin" == sfConfig::get('sf_app') ) {
      $this->enablePlugins('m14tAdminGeneratorPlugin');
    }
  }
}

Protected: Merry Christmas!

Friday, December 25th, 2009

This post is password protected. To view it please enter your password below:

Dropbox

Saturday, March 7th, 2009

Dropbox is a great application I found out about a few months back. You create an account and install a service on a number of computers that you use, and it creates a folder that will stay in sync across all of them. The best part about this is that if any computer isn’t on, when it wakes up, it goes out and checks what it’s missed, and syncs back up, and its FAST.

There is also a sharing section, where you can share a portion of your account with another user, and let them upload and delete files. It combines your usable space for this areas, so on group projects it gets quick first. Ohh and did I mention it has its own built in file versioning system?

There’s also a special folder for Photos that will automatically generate an online picture album of any pictures / folders placed into here. Of all the features, while I like some of the other ones a whole lot more, I use this one the most. Its great when working on web sites with clients and being able to save screen shots directly to this folder and show them what I’m seeing.

When I first found out about Dropbox, I was so excited about it, I went on a big kick about how everyone should be using it, but after time this excitement died down. Well now, Dropbox is giving away an extra 256MB of storage space (up to 3GB) (on top of the 2GB you get just for signing up) for every user you refer to the site, and so I’m back at it. Check it out: https://www.getdropbox.com/referrals/NTM0OTg4Njk!