Author Archive

Custom Tasks in Symfony 1.1

By marc • Jul 15th, 2008

Awhile ago I wrote a post on how to create custom tasks in symfony 1.0. A reader posted a question on how to do this in symfony 1.1. At first I figured out a solution of how to do it manually, but then I discovered this tutorial on the symfony cookbook section: http://www.symfony-project.org/cookbook/1_1/en/tasks which describes […]



PuTTY with Tabs (PuTTY Connection Manager)

By marc • May 23rd, 2008

Whenever I am using a Windows desktop and I need to connect to various servers via SSH, I use PuTTY. It’s lightweight and gets the job done without any problems. However, the one problem has always been that I may have 10 different instances open and it’s a pain in the ass to switch between […]



Store Symfony Sessions in Database with Propel

By marc • May 23rd, 2008

Previously, I wrote a post on how to store user sessions in a database using Doctrine. I figured that I would follow it up by writing this article to demonstrate how to do the same thing using Propel. The steps are pretty much similar, but with some slight variations.
Step1 - Create your sessions table

 

CREATE TABLE […]



You know your Website is soooo Web 1.0 When…

By marc • May 20th, 2008

We all have seen them…those websites that are still caught somewhere in the year 1999 - 2002. Here’s a checklist to make sure your site isn’t stuck in Web 1.0 world
1. Your website’s pages end in any of the following: .asp, .php3, .php4
2. You have a 30 second Flash Splash Page.
3. You have […]



Remove CVS or .svn Directories from the Linux Command Line

By marc • May 18th, 2008

So, you copied a bunch of directories from one source controlled project to another and you don’t want to go through and delete all those CVS or .svn directories by hand? Ok, no problem…
Below are two snippets that will show you how to recursively remove those directories from the Linux command line in one quick […]



Getting around the “Media change: please insert the disk labeled..” message in Ubuntu

By marc • May 17th, 2008

So, sometimes when you try to run “apt-get install” on Ubuntu, you may get the following message:

 

Media change: please insert the disc labeled

 'Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386 (20071016)'

in the drive '/cdrom/' and press enter

Of course this isn’t a real big problem when you are sitting right next to the computer. However, if it […]



How to set up a Wildcard (catch-all) Virtual Host in Apache

By marc • May 14th, 2008

Suppose that you need to set up a virtual host in Apache that catches all un-matched traffic coming in to your server. There are a number of uses for this, but the main idea is that you have a number of other virtual hosts set up, but you want anything that doesn’t match those to […]



Get a PHP Script’s Own Linux PID (Process Id)

By marc • May 14th, 2008

Previously, I wrote this article on how to check the status of a known system PID from PHP. I figured that I would follow it up with another short article on how to determine the process id of a running PHP script from within itself. Many google searches seem to have led people to the […]



Symfony Bulk Update with Propel

By marc • May 12th, 2008

Here is a quick example of how to do a bulk update with Propel within symfony. This is based on this code snippet on the symfony site. I thought it was extremely useful, so I wanted to post it as an easy reference for myself and others.
Suppose we had a query which looked like this:

 

UPDATE […]



Append Revision Number to CSS and JS Includes in Symfony

By marc • May 7th, 2008

I’m sure many of us have had a similar experience such as the following. You push out a kick-ass update to a client’s website full of brand new design changes to the main.css file or some funkalicious AJAX features to your javascript files. However, later in the day you get a frantic call from the […]