Ians Ramblings Ian's ramblings, daily, ish

19Nov/090

Tokyo Sonata

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.
10Nov/090

MySQL Selective Dump

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.

Filed under: Uncategorized No Comments
3Nov/090

Lost and found

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.
Filed under: Uncategorized No Comments
3Nov/090

Piping file list into RM

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

   
6 visitors online now
6 guests, 0 members
Max visitors today: 6 at 01:12 am UTC
This month: 6 at 08-01-2010 01:12 am UTC
This year: 48 at 06-10-2010 05:19 am UTC
All time: 48 at 06-10-2010 05:19 am UTC