Archive for the ‘cod’ Category


Friday, October 1st, 2010

soooooo, if you use a java constructor in the matlab interpreter (say an arraylist), and follow it with a method call (say toArray()), matlab will happily parse, comprehend, and execute your line of code. for instance, extracting things from a hashmap:

>> vs = java.util.ArrayList(m.values()).toArray();

if you copy-paste that line of code into a script and run the script, the matlab interpreter will happily parse and comprehend your code, then throw an error telling you not to do it. no particular reason given, just not allowed.

??? Static method or constructor invocations cannot be indexed.
Do not follow the call to the static method or constructor with any additional indexing or dot references.

Error in ==> plotExtracted at 2
vs = java.util.ArrayList(m.values()).toArray();

hatehatehatematlab >:(

shortly thereafter a thunderstorm

Thursday, July 15th, 2010

(note: used
ffmpeg -r 16 -b 4000k -i uni%3d.jpg uni16.mp4


Wednesday, July 14th, 2010

eggsperiment: clouuds

used ffmpeg to convert 90 photos called ‘clouds01.jpg’ –> ‘clouds90.jpg’ at 3fps:
ffmpeg -r 3 -b 1000k -i clouds%2d.jpg clouds.mp4

(had help with this at:


Tuesday, April 20th, 2010

python uses backticks as quasiquotes! did not know this. sadly as with all good things they remove this for v3. DOOOOF


Saturday, April 17th, 2010

blodgett typed:
bash-3.1$ card man

computorg said:
[/tmp/card.77mWWG/card (Reference Card): 1 page on 1 sheet]
request id is pp10-272061 (1 file(s))
[Total: 1 page on 1 sheet] sent to the default printer

this was unexpected. caused concern. what did blodgett do? it is currently far away from all printers :(

blodgett call him squnch

Thursday, April 15th, 2010

like it! :D


Monday, March 1st, 2010

ruby can index strings by regexp! blodgett LIIIIKES IT :D

irb(main):001:0> 'number 123 yah yah yah yah yah'[/\d+/]
=> "123"

pure green

Monday, February 8th, 2010

blodgett have completed work on a most useful utility, it determine which of your pictures are most green.
vague apologies this amazing feature currently *nix-only as blodgett rather lazy with file paths

cods they are here:

to use:
0) save script to disk, e.g. into home directory
1) open terminal
2) type without the quote marks the following:
“python [image folder] [output folder]”
where the part [image folder] should be replaced by the path to the image folder you want scanned
and [output folder] should be replaced by the name of the folder you want the results in.

note! all subdirectories of [image folder] also searched!

for example, say blodgett has pictures in
and wants to put the sorted ones into a folder called ‘green’ in its home directory. blodgett would type:
python pictures/artwork green

whereupon the folder called green would be magically created and filled with artworks, greenest first! yay!


Monday, December 14th, 2009

blodgett was reducing the quantities required in a recipe to 2/5ths of original. this is tedious. fortunately blodgett uses scm ( as its calculator. this makes things less tedious.

> (define (squish amt) (* 2 (/ amt 5))
> (map squish '(600 750 200 300))
(240 300 80 120)


small announcement

Saturday, December 5th, 2009

blodgett did patch its gom toy
is new one here:

is old instructions here: