Saturday, September 24, 2005

Monadlogue

Starting a blog for Monad ramblings!! Here is the first port about the Monad Package Manager i have written, its very very alpha and needs a new scriptdepot. But hej Microsoft is going to move fast to win the web but until then i'll use what serves my purpose. So here it is Introoducing MPKG - the Monad Package manager

Introducting the Monad package manager. You can download it from http://www.cse.ucsc.edu/~vaibhav/scriptdepot/mpkg.msh.

The scriptdepot contains a bunch of monad scripts to experiement with. To install the package manager copy the script to your msh directory and run it as follows: mpkg.msh -install http://www.cse.ucsc.edu/~vaibhav/scriptdepot/mpkg.msh

You are all set to explore the package manager. It allows you to search the internet for scripts just type mpkg.msh -search [query].

Fun! fun !! ride enjoy!!

Wednesday, September 07, 2005

Artificial Music

My rendition of Alap in Raag Bhup with Teen-taal in beats, the code is in lisp:

(setq *BHUP-SCALE* '(55 57 59 60 62 64 65 67 69
71 72 73 75 76))
(setq *TEEN-TAAL-THEKA* '((0 45 500 10 127)
(500 41 500 10 127)
(1000 41 500 10 127)(1500 45 500 10 127)))

(defun compose (number-of-events ontime)
"(compose 77 0)"
(if (zerop number-of-events)()
(cons (list ontime
(+ (choose-bhup-notes 0) 0)
;;to put it in MIDI range
1000
1
127)
(compose (- number-of-events 1)
(+ ontime 1000)))))

(defun surleena (number-of-events)
"Alap with zor n zhala optimum @ 25 events"
(let
((alap (long-notes
(compose number-of-events 0) 0))
(zor-zhala (scale-tempo 0.5
(compose number-of-events 0)))
(zor-theka (scale-tempo 1
(repeat-events 8 2000
*TEEN-TAAL-THEKA*))))
(append
alap
(shift-ontime
(* 1000 number-of-events) zor-zhala)
(shift-ontime
(* 500 number-of-events) zor-theka)
))
)

(defun long-notes (events change-so-far)
"Assuming events are well-formed"
(if (null events) ()
(let ((change (random 500)))
(cons (change-tempo (first events)
change-so-far change)
(long-notes (rest events)
(+ change change-so-far))))))

(defun change-tempo (event val tempo)
"(change-tempo '(0 34 1000 1 127) 0 500) returns
'(0 34 1500 1 127)"
(list (+ (nth 0 event) val)
(nth 1 event)
(+ (nth 2 event) tempo)
(nth 3 event)
(nth 4 event)
)
)

(defun choose-bhup-notes (number)
"Picks one note from a flute based bhup scale"
(let ((val (+ (random 23) 53)))
(cond
((memberp val *BHUP-SCALE*) val)
(t (choose-bhup-notes number))
))
)

(defun memberp (elem elist)
"Is elem a member of elist"
(cond
((= elem (first elist)) t)
((null (rest elist)) ())
((not (null elist))
(memberp elem (rest elist)) )
)
)

(defun scale-tempo (factor events)
"Scales tempo 0-1 1 implies no effect"
(if (null events) ()
(let* ((event (first events))
(ontime (round
(* factor (first event))))
(duration (round
(* factor (third event)))))
(cons
(list ontime (second event)
duration
(fourth event) (fifth event))
(scale-tempo factor (rest events))
)))
)

Enjoy the code is LGPL.

Saturday, September 03, 2005

Verses Froms The Bible

Biceps/Triceps

Shoulders/ Chest/ Back

Legs

Standing Barbell Curls

Barbell Flat Bench Press

Squats

Preacher Curls

Barbell incline bench press

Machine Squats

Incline Dumbbell Curl

Dumbbell flat bench press

Leg Presses

Reverse Preacher

Dumbbell Incline

Leg press toes pointing out

Cable Press Down

Dumbbell Decline

Hack Squats

One Arm Press down

Parallel Bar Dips

Lunges

Seated Triceps

Dumbbell Fly

Leg Extensions

Lying Triceps

Incline Fly

Leg Curls

Lying dumbbell extension

Cable Cross over

Standing Calf Raises

Lying cross dumbbell ext

Rope pulls

Seated Calf Raises

Kick Back

One arm cable pulls

One arm extension

Barbell Flat bench Press

Dips

Dumbell Flat Bench Press

Decline Dumbell Press

Dumbell Fly

Close Grip Chins

Lats machine pull down

One arm dumbbell rows

Seated cable rows


Abdomen:
· Crunches
· Reverse Crunches
· Hanging Reverse Crunches
· Vertical Bench Crunches
· Cable Crunches
· Seated Leg Tucks
· Machine Crunches

Sunday, August 14, 2005

Walking the old ropes for a new mate


IMG_0086
Originally uploaded by vaidehib.
Yep! i'm on the east coast helping out Vaidehi get settled in to life as a graduate student! In this picture, she is at her alma mater showcasing the big-M. This reminds me of my days as a graduate student from India trotting the soils (eventually spoils) of US of A. I have been trying to assist her in getting all tucked up for the semester bash but hey! I'm also trying not to feed her too much!! After all self-reliance works best, but yep as a younger sibling i do pamper her a little bit :). Indulgences and bonds!!!

Tuesday, August 09, 2005

More Rhumba!!

Danceworks is an amazing place on Friday nights! Last Friday i had a tonne of fun dancing to the beats of Rhumba, Swing, Salsa, Waltz, Two step disco, Foxtrot.... Its kind of strange how they pack all this in to one evening! However, the group lesson of Rhumba before the open dance was neat.

The routine is really elegant -
From a basic step of quick quick ' slow,
quick quick ' slow;
one moves to Quick Quick ' right leg forward,
left leg forward rock rock ROCK;
left leg forward left leg back ' turn her outside in clockwise direction,
bring her back in anticlose-wise direction;
move left leg cross and ' turn her around,
left leg back in position and do a full basic turn;
go back on your left leg then move forward on left leg,
and turn her around such that she is in a lock position (i.e with twisted arms);
circle around 180 in quick quick slow,
move around her while scratching her elbow and come in front of her!;


Count the number of semicolons in above routine, its 6!! So there you go! you have a routine to spend atleast 12seconds!!! Wohooo!!

Sunday, July 31, 2005

Body Building, The Arnold Way

Yesterday i bought the book The New Encyclopedia of Modern Bodybuilding by the one and only one Arnold - talk to my hand!! So do i want to body build ? Hmm.. not really its freaking difficult to built muscle for a vegetarian and I'm interesed more in strength building. Jeffrey Snover recommended me this book, so i just decided to give it a shot. I sampled the chapter on nutrition as i relaxed in Borders, what Mr. Arnold says really made sense - eating right is important and for building muscles getting more protein intake is abosultely essential. The various levels of workout and nutrition in this Bible quite impressed me, so i just bought the book and tuked in back bag pack and biked over the hill back to my house.

I have been using FitDay to keep track of my nutrition but its freaking difficult to use. I still have to find a good software to keep track of my food intake. But hey in any case the Mantra to body build is to Eat like a pig and work out.

Friday, July 29, 2005

Yep! I'm dancing more:). This time is quick lessons in Rumba and Waltz at Danceworks studio.

Rhumba is one of those shaky latin dances with the basic step to trace a box. Its

Slow-------QuickQuick
(1, L) (2,3, RL)
| |
(5,6,LR) (4, R)
QuickQuick-------Slow

The instruction video in the link above show a different way of Rhumba but above one is what I learned. Its more Waltiz and less shaky ;). The

Waltz is the founding father (or mother) of ballroom dances. The basic step is a box step with uniform beats no quickies like rumba:

Slow-------SlowSlow
(1, L) (2,3, RL)
| |
(5,6,LR) (4, R)
SlowSlow-------Slow

Remember to hold the Women at shoulder blade and look in eyes. Smiles make dacing fun :). Waltz is a romantic slow moving progressional dance. Progressional implies that you more with your partner through the dance floor (mostly in counterlclockwise way).

Thats all for Dance-101 as of now :).