Mass renaming files

Nice little shell one-liner to mass rename foo*.jpg to bar*.jpg

ls foo*.jpg | awk '{print("mv "$1" "$1)}' | sed 's/foo/bar/2' | /bin/sh

Leave off the last pipe to get a preview of the output first ;)

Heres a variation I used to keep just the first part of a file name before the first space (i.e. when Finder makes a copy of a file say)

l -1 *.jpg | awk '{print("mv \""$0"\" "$1".jpg")}' | /bin/sh

Recursively remove .DS_Store files

If your working on a coding project and your submitting it to version control, heres how to remove the meta-schmeg that OS X leaves around:

find . -name '*.DS_Store' -type f -delete

If your using GIT as your versioning control system then I’d suggest making a .gitignore file in the root of the project after running this command and before you git init to save yourself some bother.

Links ARE meaning

This is a great TED talk from Tim Berners-Lee who created the internet. Here he talks about Linked Data and the importance of sharing and linking data.

Just as with his first break-through, the hyperlink, he realises that its the links that make things useful. To take this on step further the linking is how we embed mean into web documents. The same applied with data. Data by itself is not as useful as data linked to other data and this linkage is meaningful.

Linking was only half the story and Tim doesn’t talk about the importance of standardising the data format, which by the way he also underestimated with HTML and why web developers have had a nightmare with different web browsers interpretation of HTML. Data formats is the less exciting half of the equation but is going to be just as critical. Especially with numbers like dates, currencies, measurements (and their metrics) etc. I’m thinking (hoping, praying) that we’ve learnt our leasons from HTML and people know when and how to draw up a standard for data formats before this thing explodes.

Ideas as Visualised Spaces

This TED talk by Tom Wujec shows ways that visualising ideas helps to solve the problems. The “Visual Strategy Planning” idea, where a team maps out the entire problem on a wall, together, is a bit like a mind-map and is a nice interface to information.

It also has ramifications for learning in that new concepts could be presented to students as a map instead of a linear text.

Forgotten Visions of the Web

I’ve been inspired by a great lecture, The Web that Wasn’t by Alex Wright, which traces the history of precursor ideas and thinking that ether lead to the web or where ideas much greater than the Internet is right now.

Here are some of the ideas that were missed out on and I believe are sill possible with internet technology today: Continue reading “Forgotten Visions of the Web”

Internationalization & localization data sets

I started gathering data for a project relating to Language and did a lot of research into ISO standards and was looking for a complete list of Languages + some ISO code to id them by. This got expanded to cross referencing by Country (as languages have dialects in different countries) and then I thought it would be easy to complete this set with Locate settings and perhaps even country to IP address mappings. I got a bonus from the UNeTradeS with all sub regions for all country’s (according to the UN) and most of their Geo co-ordinates!
Continue reading “Internationalization & localization data sets”

Ruby on Rails on Mac OS X in 5 minutes

So I just discovered that Leopard comes with a version of Ruby on Rails (RoR) pre-installed. The only problem is its a bit dated but there is a command-line one-liner to update it all no sweat with RubyGem (the Ruby package manager):
Continue reading “Ruby on Rails on Mac OS X in 5 minutes”

dojo.beer() – Berlin

Dojo.beer(), Berlin
Pictured (from left): Tobias aka klipstein (München), Norman aka matsuri (Berlin), Victoria & Nikolai aka nonken (Amsterdam) and Wolfram aka mccain (München) [note: aka’s are IRC names
Yesterday I meet some Dojo developers in Berlin for the dojo.beer() which was announced on the Dojo website last week. It was a sunny day and we hit one of Berlins many beaches next to the Spree.
Continue reading “dojo.beer() – Berlin”