Posts

Showing posts from 2012

Popular project in Github

If you're trying to find out what are the interesting projects in Github, you can try clicking on the url here (https://github.com/popular/starred)

Excluding Javascript validation in Eclipse

I've been bumping into this issue so often until i had to write it down, somehow :)

http://stackoverflow.com/questions/4867885/how-to-exclude-a-javascript-file-from-javascript-validation-in-eclipse

Symfony 2 Doctrine configuration for MySql database

This post provides a quick and dirty way to setup your doctrine configuration using Symfony v.20. 
I assume that you're using MySql database.

Step 1

First you need to enable your "pdo_mysql" driver in php.ini file. Just uncomment the following configuration in your php.ini. Restart your IIS and you're pretty much done.

extension=php_pdo_mysql.dll

Step 2


You need to have the following configuration in your symfony\app\config\parameters.ini file. 

    [parameters]
    database_driver="pdo_mysql"
    database_host="127.0.0.1"
    database_port="3306"
    database_name="testproject"
    database_user="root"
    database_password="root"
    mailer_transport="smtp"
    mailer_host="localhost"
    mailer_user=""
    mailer_password=""
    locale="en"
    secret="ThisTokenIsNotSoSecretChangeIt"


You might have noticed that the database_host "127.0.0.1"…

Dictionary vs HashTable performance

This is rather old but some developers still questions the performance cost of Dictionary vs Hashtable. Link below provides a performance comparison between both data structure.
http://blog.bodurov.com/Performance-SortedList-SortedDictionary-Dictionary-Hashtable/