March 6, 2004

Posted by: Oscar Trelles

Category: Uncategorized

Tags:

Thanks for MXDU 2004

The people at Nectarine say “thanks for MXDU” on their original style. Check out what they have to say about the event, on their way back to Melbourne.

Ahh yes! the animation contains language not suitable for pristine ears, so be warned.

March 5, 2004

Posted by: Oscar Trelles

Category: Uncategorized

Tags:

Flash Forward SF 2004 Film Festival

Here is the list of winners:

Application: Stampede Cattle Company
Art: Sonata for the Unaware
Cartoon (and People’s Choice): Fool Lee
Commerce: 247 Media Studios
Educational: Virtual Knee Surgery
Experimental: B.r.a.i.n.S.h.o.w
Game: Chasm
Motion Graphics: The Uninvited
Navigation: XBox
Original Sound: Amiamo
Story: Winged Sandals
Technical Merit: WEFAIL
3D: Coca Cola Christmas Stars
Typography: typo_illus_01
Video: Re: Evolution

Complete list of Nominees/Winners at Flash Forward’s site.

March 3, 2004

Posted by: Oscar Trelles

Category: Uncategorized

Tags:

What’s happening at FlashForward?

Flash Forward was supposed to start today, right? However, I haven’t seen any posts about it! or am I going blind?

I starting to think SF is under under an Internet connection outage, or something like that…

March 3, 2004

Posted by: Oscar Trelles

Category: Uncategorized

Tags:

Bulk String Replacement on your Server

This is not directly related to Flash, but maybe useful to somebody. I don’t know how many of you use self-managed servers, as I don’t know how many of you use Linux as your server platform. But if you happen to do both, and your Linux skills are still intermediate, maybe this can be of help to you. However, if you are a Linux shark, maybe you can show us a better way to accomplish this.

So, this afternoon I needed to change some info in in 200+ “legacy” XML files in one of my client’s Linux servers. Given the size of the files, the number of occurrences of the information to be changed, and some encoding issues, attempting to download all those files and process them locally was out of question, as it was changing the information manually. My only option was to find a way to make the replacement in the server.

After half and hour of looking around and examining man files, I came up with this little script that will replace a text string, on every file inside a directory:

find /path/to/directory/ -type f -exec
sh -c 'gawk "$0" "$1" > "$1.tmp"; mv "$1.tmp" "$1"'
'{gsub("old_string","new_string"); print $0}' '{}' ;

find will just allow us to loop through the list of files in the selected directory. The trick is actually being done by the combination of gawk and gsub, GNU versions of the awk and sub commands which allow us to match string patterns in files, and replace strings, respectively. If you want to exclude child directories from the string replacement to, you can specify how deep the script should go, using the maxdepth option for find:

find /path/to/directory/ -type f -maxdepth 1 -exec
sh -c 'gawk "$0" "$1" > "$1.tmp"; mv "$1.tmp" "$1"'
'{gsub("old_string","new_string"); print $0}' '{}' ;

Voila! It only took 30 minutes of research + testing. I wonder how much would have taken to make the modifications otherwise….

  Newer Entries »