Archive for November, 2009

Tokyo Sonata

Posted in tokyo sonata film kurosawa on November 19th, 2009 by iyoung – Be the first to comment

Last night I saw a very interesting Japanese film, Tokyo Sonata, I am not sure I would recommend it from an entertainment perspective, but if you are looking for something curious that really embodies Japanese mentality this seems to me to be one to watch.


The cinematography is superb, a lot of the slower scenes look like excellent photos, one scene showing some high rise buildings with the slow moving of traffic just looked amazing, it’s a shame I can’t find a still of it on the net to show here.



It just made me realise how completely different the Japanese are to us here in England, if that is indeed a realistic representation of the way they think and act. Honour it seems is so important that it actually clouds their judgement in making rational decisions that could overt the situation becoming worse.

This is really one of the first films I have seen that shows typical contemporary Japanese streets and houses, I think that is what really makes it so intriguing. The people seem so calm and considered, always listening to what another says before answering until they eventually snap under extreme pressure. I think it’s actually a storyline that could not work in any setting other than that of modern day Japan.

MySQL Selective Dump

Posted in Uncategorized on November 10th, 2009 by iyoung – Be the first to comment

This is just something I was wondering about, whether I could back up specific rows I am going to modify during test, so I can re-insert them all after I have finished and deleted my test data.

To selectively dump just specifc rows from your mysql table you can use the following:

mysqldump --where="domain_id='7'" -t -umyueser mydatabase mytable > mydumpfile.sql

Omitting the “-t” option will also place the drop and re-create table SQL into your dumpfile. It can be handy if you just want to backup a specific set of data from your db. Note it does not create REPLACE INTO’s though so you would need to delete the matching rows before restoring from such a dumpfile.

You can globally replace the INSERT INTO statements with REPLACE INTO using the following command

sed -i 's/INSERT INTO `metadata`/REPLACE INTO `metadata`/g' mydumpfile.sql

Lost and found

Posted in Uncategorized on November 3rd, 2009 by iyoung – Be the first to comment

My Dad brought a good film over to my house today, Lost and found, made by the same people who do those cool Lloyds bank adverts.


What a change to see something so subtle and chilled and such tidy, tactile animation.

Such an interesting story of acceptance and caring about someone / something you just came into contact with no matter how alien they may seem.

It really has an almost Scandinavian feel to it, particularly the clothing styles and the buildings in the village, almost like Norway.

Piping file list into RM

Posted in non recursive find linux pipe file list into rm on November 3rd, 2009 by iyoung – Be the first to comment

Another geeky posting, but something I could not find on google, how to pipe a specific list of files into rm on linux in order to delete them. I also found some crazy postings about how to get find to not search recursively so thought I would share what seemed to work for me.

It’s worth reading the man pages for find, xargs and rm.

This will find all the items in the current directory that are 6632 bytes in size and prompt for deletion for each.

find -maxdepth 1 -size 6632c | xargs –interactive rm -f