symfony: database to fixture data

by prettyscripts on 2009-05-30 14:33:48 • Leave a comment »

symfony

while developing a symfony project, it's usually required to rebuild database and reload data constantly with 'symfony doctrine:build-all' or 'symfony doctrine:build-all-load' constantly. when this is run, test data are wiped. the easy way is to have i… more »

Tags: data, database, dump, export, fixtures, framework, import, symfony

mysql: convert number to string

by prettyscripts on 2009-05-29 10:51:17 • Leave a comment »

miscsql

to copy value from a column in table a to a column in table b, the syntax is straight forward:insert into new_table (new_column)select old_column from old_table but when new_column is varchar and old_column is integer, you will get an error.… more »

Tags: convert, mysql, number, string

php: set user agent string

by prettyscripts on 2009-05-27 16:31:44 • Leave a comment »

miscphp

do it with ini_set():ini_set('user_agent', 'myagent/1.0'); more »

Tags: php, user agent

gimp: enhance image and watermarks

by prettyscripts on 2009-05-23 02:48:16 • Leave a comment »

freegimp

my wow blog is basically a screenshot blog. images are screenshot from world of warcraft – if you don’t know what it is, it’s an online game. all images are edited with gimp , a free image manipulation tool. if you are a photoshop user, you’ll think it… more »

Tags: gimp, image, watermark, wow

css frameworks

by prettyscripts on 2009-05-19 15:41:13 • Leave a comment »

cssframework

i came across this article about css frameworks. from the sound of it, they seem to cut down css coding times. some of the ones mentioned in the article which i’ll be looking at: 960 grid system blueprint yaml yui more »

Tags: css, framework