SC Hint #1 – reduce
Thursday, November 26th, 2009A great way to apply a binary operator successively to the elements of an array is to use reduce.
e.g.
[true,false,true].reduce('&&')
["This ","is ","a string."].reduce('++')
ZLBArchive for November, 2009SC Hint #1 – reduceThursday, November 26th, 2009A great way to apply a binary operator successively to the elements of an array is to use reduce. e.g. [true,false,true].reduce('&&')
["This ","is ","a string."].reduce('++')
svn heavenThursday, November 19th, 2009Hi I just discovered this week that it takes about 4 commands to set up an svn repository on my mac. Now I wonder how I ever survived without it. No more zips with different versions of the code, all changes are logged with comments, I can go back to older versions of the code easilly and compare changes between any two revisions. A guide to setting up a local svn here. Xperimental Events NetherlandsMonday, November 16th, 2009A google calendar with nice events going on in the netherlands is up in the web: If you want to add events, drop me a mail and I’ll add you to the list. hypocrisyThursday, November 12th, 2009In what concerns the music distribution, we are living in an age of hypocrisy: people only take seriously labels that release albums in cd format, yet a large amount of people only want to listen to such cds in their computer, and buys the cds of their favorite artists only to arrive home and rip them to iTunes. [edit] Apparently it’s not only me that’s saying it, MC Hammer agrees:
[/edit] Apple Vs StalinWednesday, November 11th, 2009from tuaw:
Hum, no code but apple approved code, what does that remind me of ?… Ah, yes, it’s called censorship. Why think too much about it, let’s just go along like happy lemmings into the brave new world of touch enabled, good looking, well designed, proprietary, closed, totalitarian mobile platforms. I mean there’s the debate between open-source (Linux) and closed source (OSX and Windows), but any of these, independently of the licensing gives you the freedom to develop and run whatever you want in your device without having to ask permission to anyone (except in the case of DRM). Even the children eating Microsoft allows you to do this. But now, Apple seems to think THAT is too much freedom, and like the good old bolsheviks they want some “democratic centralism” . I really don’t like where this is going. Perl poetryWednesday, November 11th, 2009
Guide to making Audio only DVDs with open-source tools in GNU/LinuxWednesday, November 11th, 2009Due to an upcoming release involving a DVD I’ve had to figure out how to make a dvd from a couple of multichannel tracks. I’m using a mac and I wanted to use open-source tools. The road wasn’t that easy to travel, so I’m posting my findings for other travelers in the brave new world of Linux. 1 – You will need to use dvd-author and some other tools. I tried to install them in osx, but it was just to difficult, in the end I decided to just make a virtual machine in parallels and install ubuntu 9.10. 2 – After installing ubuntu, install dvd-author (from ubuntu software center) and aften (from synaptic). 3 – The files should be multi-channel interleaved wavs. If you have them as mono files, interleave them on osx with de-interleave or use sox. 4 – In dvds the files always need audio and video, so you need to have a background image. For pal these can ben 720×576 png files. 5 – Put the png files and the wav files in a folder in ubuntu. They should be named dvd1.png, dvd2.png and dvd1.wav, dvd2.wav, etc. 6 – Depending on how many tracks you have to make a dvd.xml file for dvdauthor like this:
7 – Then run this script on that folder and wait (one hour or so in my machine) ?Download builddvd.sh
8 – to make a dvd image in osx that is compatible with dvd players type in the terminal:
| |||||
|
info_at_friendlyvirus.org sales_at_friendlyvirus.org www.myspace.com/friendlyvirus/ |
|||||