Posted: June 30th, 2009

Object-Oriented Javascript

Category: technical

for some reason there are lot of tutorials coming out of the UK. this is just one of them. good read on OO javascript.

nefariousdesigns.co.uk

Posted: June 27th, 2009

bash loops part 2

Category: technical

so in a previous post i put up a how to do on renaming files in a for loop and string replacing. here is another example for taking files and renaming them all with lovely counts as well.

here is the line of code. that we will execute.

james@lappy2000:~/ count=1; for i in *.mp3; do mv "$i" "myband_${count}.mp3"; : $((count=count+1)); done

lets break it down for more details.
first off here is the count, we shall start with 1, you can start with any number you wish.

count=1;

your for loop, niotice we are putting the count in ${count}, now you can do this, or $count. either way is correct.

do mv  for i in *.mp3; do mv "$i" "myband_${count}.mp3";

you now see this. the colon basically says im a new command in this “do” section. and the double parens basically mean treat the insides like a variable.

: $((count=count+1));

thats basically it.

Posted: June 17th, 2009

jquery dialog resizer

Category: technical

this is my jquery-ui dialog resizer.
ever have a dialog box that you wanted to re-size dynamically?
for instance, you have a form and w/in the form you have some additional items that are hidden and only want them to display if the user selects a certain parameter. well you can hide the items, and then when you want to show it, have the dialog magically re-size to accomodate

you can grab the code over at google docs.
http://code.google.com/p/jquerydialogresize/

if you have any questions on use. point your comments to the google groups.

I’ll have a demonstration here soon.

Posted: June 14th, 2009

http://jargonmonkey.com/

Category: technical

jargonmonkey.com phase one is complete.

you can now now add any url at the end, and our jargon monkey will gladly take it over.

example.

http://jargonmonkey.com/http://www.flowerpoop.com

have fun!

Your Ad Here
Posted: June 10th, 2009

WordPress from iphone

Category: mr generic
Tags:

Test from my iPhone

Your Ad Here