Search
Categories
- Getting Things Done (RSS) (3)
- SEO (RSS) (1)
- Web Development (RSS) (86)
Just a quick note to self on how to do tunneling to connect to an IRC server.
For instance I needed to connect to irc.freenode.com via my dreamhost account.
ssh -L 6667:irc.freenode.net:6667 user@my.dreamhost.account.com
Now open the irc client and connect to host localhost and port 6667
Usually I mostly write about web technologies at API level but this presentation got my attention as it is pretty insightful especially in identifying if an idea is worth interesting. Usually people choose an idea which is just an incremental improvement on an existing idea or something that has very little cost of switching. [...]
Writing this post down as a note to self about using sfValidatorCallback.
Step 1: add the sfValidatorCallback to the widget
public function configure()
{
$this->widgetSchema['my_field'] =
new sfWidgetFormTextArea(array(‘required’ => false));
// add the validator
$this->validatorSchema['my_field'] = new sfValidatorCallback(
array(‘callback’ => array(
[...]
How about this, you wake up in the morning and decided to resume development (I know this sounds sad considering today is 31st of Dec), you type svn update and you get the error:
$ svn update
svn: This client is too old to work with working copy ‘.’; please get a newer Subversion client
So this [...]
I am a big fan of using plugins in symfony especially that are well written and save me a bunch of time implementing some bog standard functionality. SfDoctrineGuardPlugin is an example of one such plugin but due the generic nature of the signup process there is a lot left to be implemented even after using [...]
I am currently using sfGuardUser table from the sfDoctrineGuardPlugin to link up to a messages table which stores the user id of sender and receiver. To ensure that the data schema is properly normalised I need to make sure that both the user id are actually foreign keys to the sfGuardUser table. Here are the [...]
Recently part of the a project that I am working on required me to import about a 1 million lines of records from csv format into the mysql database. Sounds like a straight forward job, though it was slightly complicated considering that the data structure was obviously not normalized.
I added a new task to my [...]
Recently I had an issue on one of my work websites where the database schema was setup in Latin-1 encoding, this was fine till the encoding of the website was also set to iso-8859-1 and nothing fancy was going on. However later in the last few months, I had been doing some development which required [...]
To typically upgrade the version of symfony, I usually run the command
# sudo pear upgrade symfony/symfony
But it seems that the channel details have updated you would require updating that first and then you can upgrade to symfony 1.4. This is what i did.
rp@devbox:/usr/share/php/symfony$ sudo pear channel-update pear.symfony-project.com
Updating channel "pear.symfony-project.com"
Update of Channel "pear.symfony-project.com" succeeded
rp@devbox:/usr/share/php/symfony$ sudo pear [...]
As a followup from my previous post, documenting how to get the NAS box to mount an external drive. It has its own advantages, primarily that it allows you to transfer your old backed-up data quickly and also in case you need to get data out of there (in case of one of the drive [...]
Recent Comments