PhD Diaries
Friday, June 19, 2015
Nonlinear fit to exponential decay model in R
I had some trouble looking around for a non linear model that could fit exponential decay model on R. Finally this is what I have. Hopefully, the next code searcher will find it easier to hunt for such a code!
:D
The data is in this format:
Week TAD
0 a
1 b
….
(a and b are values of Cellulose concentration)
Created by Pretty R at inside-R.org
Enjoy! <3
:D
The data is in this format:
Week TAD
0 a
1 b
….
(a and b are values of Cellulose concentration)
ti = seq(0,11, 0.1) kSAD = nls(TAD~exp(-k*Week), start =list(k= 0.5), trace=T) summary(kSAD) plot(Week,TAD, pch=16, xlab="Week", ylab="Cellulose concentration microcosms in mg/mL", cex.lab=1.45,cex.axis=1.5) lines(ti, predict(kSAD, list(Week = ti)), col="black", lty=3, lwd=2) arrows(Week, TAD-RETAD, Week, TAD+RETAD, length=0.05, angle=90, code=3)
Enjoy! <3
Thursday, February 5, 2015
Book Giveaway Part III: Spirit
This list is longer than last two book giveaways- are you excited? :D ?
Few months ago, I read a book called Bhakti Yoga Sagar Volume 1 and all my interest in practices of Raja Yoga started dissolving away. And the many books I have collected over past few years and read and felt inspired by, are now apparently destined to be put to the second oldest river of the world, our grand New River. (Traditionally, when some thing very sacred to us is to be discarded, it is given to a holy river to keep the sacred gift in her lap. )
True to my pattern of being book worm, I bought more books. Then I read another book series, which has put a full stop to my reading habits. This happened sometime after my last book shopping spree.
Now, I have many partially read and completely unread books that I would like to giveaway in case some one is interested. Here are 10 of them:
Few months ago, I read a book called Bhakti Yoga Sagar Volume 1 and all my interest in practices of Raja Yoga started dissolving away. And the many books I have collected over past few years and read and felt inspired by, are now apparently destined to be put to the second oldest river of the world, our grand New River. (Traditionally, when some thing very sacred to us is to be discarded, it is given to a holy river to keep the sacred gift in her lap. )
True to my pattern of being book worm, I bought more books. Then I read another book series, which has put a full stop to my reading habits. This happened sometime after my last book shopping spree.
Now, I have many partially read and completely unread books that I would like to giveaway in case some one is interested. Here are 10 of them:
1) Jnana Yoga Method and Attainment by Swami Niranjananda Saraswati: This is a brand new book that I admit I have not even read. Here is the amazon link of this book: Amazon link
Find out for yourself how this 80 page book is!
And here is more information about this book: http://www.biharyoga.net/yoga-publications-trust/books/jnana-yoga-book/
2) Monk Dancers of Tibet by Matthieu Ricard of happiest-man-on-earth fame: Even if you are not interested in this book, I highly recommend his TED talk on habits of happiness! This book is a library version hardcover filled with very colorful and exotic pictures from different rituals of Tibetan buddhism with notes and explanations from Matthieu Ricard.
3) Sannyasa Darshan by Swami Niranjananda Saraswati: (Okay now my secret is out!)
I find this book to be a beautiful collection of stories from sannyasin of past and near present. So artistically and vividly described- that it transported me back to the era of these Sannyasins. Also, I find to be a very interesting work on tradition of renunciation, specially at a time when this tradition is under attack for ochre license to 'holy-men' for abusing the unsuspecting seekers. I thoroughly enjoyed reading this book. It ends with English translations of some ancient texts and the Song of Sannyasin by Swami Vivekananda ji.
4) Sadhana by Swami Sivananda Saraswati and Swami Satyananda Saraswati &
5) Samatvam by Swami Sivananda Saraswati and Swami Satyananda Saraswati: Half the essays in these two books (Sadhana and Samatvam) are by Swami Sivananda ji and other half by Swami Satyananda ji. If anything, it is evident how their writing styles belong to different eras. I personally prefer Swami Sivananda ji's style for they act like a whip to tamas.
6) Yoga Sadhana Panorama by Swami Niranjananda Saraswati: This book was personally given by the author to its first owner. I have read first few chapters and they are interesting reads about some of the attributes that Yoga sadhana aims for and yes there is also author's interpretation of Bhagvad Gita.
7) Karma Sannyasa by Swami Satyasangananda Saraswati and Swami Satyananda Sarswati: This is a great book for an 'aspirant' interested in dedicating their lives to the path of yoga.
8) On the Wings of Swan Volume 1 by Swami Nirananjananda Saraswati: (By now I am really wondering why they have such long names! It is easy to pronounce these long names, but typing! Aah- typing is another story!) I read first few chapters and I find that they deal with topics related to day to day lives like how to parent etc.
9) Al-Quran English translation by Ahmed Ali: I received this book in an act of immense faith and I would like to hand it over with total respect for the faith that gave this book to me.
10) Swara Yoga by Swami Muktibodhananda: Another book that I have not read a single page of. The book deals with science of brain breathing and translates an ancient text on Swara yoga. I was very interested in taking my practice of pranayama a notch or two higher when I bought this book.
Coincidentally the day it arrived in the mail, was the day I woke up knowing that I am going to get rid of all the books I have.
Coincidentally the day it arrived in the mail, was the day I woke up knowing that I am going to get rid of all the books I have.
Friday, January 2, 2015
Book Giveaway II: LOTR and Society
Thank you everyone! The books from the last giveaway are all gone or booked! I feel very happy that they found homes.
Here are more books for the second round of giveaway! If you like them and want them, do let me know! I recommend that you take a look at the books either in person or online before taking the books.
The theme of this round of giveaway is society and social relationships along with fantasy theme of Lord of the Rings!
1. The Hobbit:
The famous novel is here for free grab! The book condition is not so good. It is old and worn out. I am looking for LOTR fans, who miss having their own copy of the novel! And, yes did you see the third Hobbit movie yet?
2. Fellowship of the Ring: The condition of this book is better than the Hobbit book.
4. The Return of King:
How would this LOTR set be complete without this book! If you are interested in LOTR set do let me know! This book is old and okay okay condition.
5. Social Intelligence The Revolutionary New Science of Human Relationships: After heralding Emotional Intelligence, Daniel Goleman comes back in Social Intelligence and extends emotional intelligence to society. It has detailed information about various neurobiological experiments conducted in past decades. Goleman very neatly ties in all the research and with stories (that I felt lot moved on reading) makes this book an interesting read. For review check this Goodreads link out.
6. Romantic Manifesto: Ayn Rand- If on hearing her name, your mind runs into your pleasant memories of reading Fountainhead and Atlas Shrugged, and you feel inspired to read more of her philosophy in her own powerful words, then this small powerful book might be the one for you! Just a note- this is a classic non-fiction from Ayn where she explains her philosophy of art in her own unique uncompromising style.
And for my dear curious friends, here is an anagrammatic hint for the theme of the next round of book giveaway:
It-Is-PR.
Saturday, December 13, 2014
Books Giveaway- I: Physics and Maths and What does it mean to be alive?
This is the first giveaway in
series of many. Let me know through Facebook messenger, Google+ or Gmail
if you are interested in taking these books. If you suspect that you
know
someone, who might be interested in these free books - share! I bet they
will make great gifts! And thanks! :D
I will accept your donations ONLY if you feel inspired to make one.
I will accept your donations ONLY if you feel inspired to make one.
I hope the books find a curious reader! I encourage you to check the books out before deciding if you want the book.
1. The Road to Reality: This book is BOOKED now.
If
your heart warms at the sound of 'physics' and the life is much more
beautiful when you know the gorgeous mechanics of it, then this
1040-pages + could be your favorite addiction. My copy is in flawless
hardcover format. It aint new but it could easily pass for one!
Here is the Amazon link: http://www.amazon.com/The-Road-Reality-Complete-Universe/dp/0679776311
2. Nonlinear Dynamics and Chaos:
This book is BOOKED now. Of all books that I am giving away, this one is the hardest to part
from. It stands as my favorite mathematics book inside out! This where
dreams are written through nonlinear dynamics and take wings post
bifurcation!
Written by
perhaps the only mathematician, whose articles have been regular in New
York Times, this book has been a great read for me.
My
copy has some pencil marks in the initial chapters. It is slightly
marked and morphed on one of its edges. There is a story behind this
metamorphosis. In short the bag that the book was in, got soaking wet in
rain and stuff inside the bag started leaching colors onto each other.
Here is the Amazon link: http://www.amazon.com/Nonlinear-Dynamics-And-Chaos-Applications/dp/0738204536
3. Darwin's Dangerous Idea, Evolution and the Meanings of Life: So, you think that 'The Selfish Gene' was a great book? You ain't seen no great book, my fren'! Read this one up!
This book is perhaps most enjoyed with Darwin's evolutionary theory on mind when pondering questions like- "Woah Life!
Thee rocks! But howzz? And whyyz"
or if you are curious about the purpose and phenomenon of this life and
entertain a scientific bent of mind - then this book can help nudge the
mind many notches higher in evolution.
In 1995 this book was National Book Award Finalist. My copy is in great condition with no markings or signs of wear and tear.
Here is the Amazon link: http://www.amazon.com/DARWINS-DANGEROUS-IDEA-EVOLUTION-MEANINGS/dp/068482471X
4. The Quantum Universe, Everything that can happen does happen:
Do you want to read about the following questions and some quantum
answers to them: What is the music of atoms? What is illusion and what
is real? Is the universe in a pin-head? Or rather is pin-head the
universe? (Or even-better) where is the universe and where is the
pin-head?
If
you heart jumps in curiosity and excitement about above questions and
their potential quantum explanation- this small book (smallest in this
series) is for you!
My copy is as good as new! It is impossible to tell otherwise!
My copy is as good as new! It is impossible to tell otherwise!
Here is the Amazon link to the book: http://www.amazon.com/The-Quantum-Universe-Anything-Happen/dp/0306821443
Thursday, October 16, 2014
Day 6: Blacksburg's Farmers Market challenges me and I SNAP
I saw it on my Facebook -
It was happily lurking there '2014 Virginia SNAP challenge, Eat Smart, Move More'. The challenge is to eat for just a week with a budget of $32 in solidarity with millions in USA, who eat on that budget week after week.
( I cry as I type this. I am on day 6 and I have 5c left from my $ 32 budget. I do have enough lentils, rice and vegetables to last me until end of day 7. But I have only 5c for buying all things that I miss eating. And, I cry. How privileged! As my mom would say- how spoiled!)
Oh I digress!
This is my story so far:
Day 0: To a week well planned!
On Friday evening last week I went to Eats and got yellow split pea lentils (- they were cheapest of all lentils, total was $4.97), cheapest organic brown rice ($3.02), fruits and vegetables on sale (Eggplant -$0.65, 4 apples -$ 1.98). The plan was to eat lentils and rice with vegetable here and there. And, have apples as snacks.
Day 1: Oh my innocence and the rain!
It rained heavens on Saturday. I do not own a motor-driven vehicle, so I walked to farmer's market (~3.5 miles). By the time I reached campus I was half drenched and felt lazy and cold and decided to take shelter in my workplace (a lab at VT). I was convinced that I could make it throughout without using match benefits from Farmers Market. (Aah! The glory of innocence (ignorance - as I say now)!
Breakfast: 3 cups of hot water and an apple
Lunch: rice, lentils and more than half of the eggplant.
Dinner: I was so full with the heavy meal of Lunch that I had another apple for dinner.
Day 2: The work begins~
Breakfast: Hot water and apple
Lunch: Rice, lentils, and leftover eggplant
Dinner: Went to Eats again. (why! oh why!) Had got seduced by the thought, "Oh my budget is great and I am only going to hunt for vegetables on sale. And few yogurt covered almonds and chocolate covered cashews will not really amount to much!" Aah! The ease of addiction to these habitual privileges!
Got sweet-potatoes, ginger, handful of chocolate covered cashews and yogurt almonds, more apples at sale and few prunes. Total = $ 12.03
Day 3: Another oops and ouch moment!
Breakfast: Apple and microwaved sweet potato
Dinner: Regret, Apple and microwaved sweet potato
Day 4: ...
Okay... I must admit and share what happened on the lunch day of Day 3! I had my cooked lentils and rice at work for lunch and it was great. Then my best buddy at work asked me -
"Hey do you wanna go to (our favorite place) for our (favorite salad)?"
It was so tempting. I said -'yes!' And I spent 5.53 dollars of my SNAP budget in a single meal!!!
When I realized it during lunch I told my friend about this SNAP challenge and how I had just spent 1/6th of my budget for a single meal! She offered me her corn cake (as she always does- it is so so goood!) and I refused. She laughed and said, "It is free." I joined her laughter and refused again. How many people living on SNAP benefits eat out with their buddies, who offer them free desserts? No thank you. I will not eat it.
Back to Day 4: Recalibrating... ... ... ...
Breakfast: Microwaved Sweetpotatoes
Lunch: Lentils and Rice, I am missing vegetables. I will buy some tomorrow.
Dinner: More Lentils and Rice
Day 5: Farmers Market!
Yay! I still have some 4 bucks left and I can buy vegetables and apples at farmers market worth $8! Wednesday is the best day in the world!
Breakfast: Some more lentils and rice - and this batch that I cooked was not really appetizing.
Snack: Apples and microwaved sweetpotato with a ginger - try it sometime!
Lunch + Dinner: Met the people behind the scenes of this challenge and farmers market. It felt great to talk to them!
I got a picture clicked- yay! First picture of the challenge- and I know I know- no one likes to read anything without pictures.
Bought a $3 bag of kale, a $2 mighty big celeriac with superfluous greens on it. For two bucks I get both the tuber and the greens! Of course, I picked the celeriac that had most greens attached on it.
For Linner, Dunch or whatever one calls it - I had the tasting sample of the soup at the farmers market. I know it has come to this that I am munching on free samples. It was delicious! Oooh! I en-joy-ed it. Thank you Farmers Market SNAP challengers for cooking so well and offering! And I got the recipe too!
I chewed on celeriac leaves until I could take it no more. Had an apple- it was the sweetest and most juiciest apple that ever landed on my tongue. Eating celeriac leaves earlier, definitely helped to give the apple juice explosion shock therapy to my tastebuds.
Picked up two candies from a workshop that I attended in the evening.
Day 6: The SNAP day! Another Oops and ouch moment, and I am still continuing!
Breakfast: (Had 4 prunes from my landlord's pantry- and this is where I broke my $32 SNAP challenge) Celeriac leaves with lentils and rice. Oh! Microwave chopped celeriac leaves! They are the best microwaved greens that naturally start smelling like fenugreek leaves. I thoroughly enjoyed eating lentils and rice with microwaved celeriac leaves.
Celeriac (without most of its greens that at time of writing this post are the glory of my tummy. Bag of kale and my bowl of lentils-rice with microwaved celeriac leaves.) |
Lunch: Two apples and left over lentils-rice with microwaved celeriac leaves
Dinner: On the menu right now: More lentils and rice with celeriac leaves
There will be a Day 7 tomorrow- I promise me.
There will be a Day 7 tomorrow- I promise me.
Friday, September 12, 2014
Talking Science and not Sanskrit ~
I
want to tell you a story. It starts with – 'Once upon a time' and
it goes like this:
Love
descends:
Once
upon a time, a child was born in a rustic village of India and
was embraced by love of his mother. Two months later, I returned home
from my boarding school and I heard his voice for the first time.
“Mom,
is that a cat?”
“It
is your brother”, she said.
New
born babies, I guess sound all the same, no matter their species.
And, of course, I was hoping for a cat.
The
Un-magical spell:
Many
years passed and I came to USA for graduate school.
When
I went to visit home for the first time, there was so much excitement
in home and everyone wanted to know what I did here in USA. So, I
started telling the room full of my family and extended family
members about my research. About 20 seconds into my elegant narration
of the super grand work that I had been doing, I had very
successfully put everyone to dead sleep!
Meanwhile
my little brother, who as it turned out was not a cat, was playing
outside, completely oblivious to my newly acquired un-magical charm
of sleep. When he came back home, he asked me the same dreaded
question that my relatives dared asked earlier in the day, “Didi
(elder sister), what is that you study in your America school?”
You
see, I will happily play the Pied Piper and lead the entire world to
sleep or doom or whatever that comatose-sleep was. But I can't do
that to my brother!
So,
I told him a story instead:
"A
story of vast vast ocean, oh so blue! An ocean, as big as thousands
of lakes put together! You see earth can appear quite small in
Geography books and fast flying airplanes. But listen, earth is huge
– our big town, our entire big town is not even a speck on this
soccer ball of earth.
Some
people spilled some oil in middle of ocean and the fishes were not
able to breathe and they died. When this oil reached land, the land
birds, who were playing with the water got oil all over them and
their feathers got stuck. They could not fly and died. In my school,
I am studying how to best clean this oil when it reaches the shore.
You see, sometime oil makes puddles like water puddles after rain and
sometimes it make small balls with sand like our mumma makes
sweetmeat balls with butter. I want to know which one should I clean
first- the puddle or the balls."
No
one died that day. And, life moved on.
Memories
that inspire:
About
two years later, working on my PhD, we had our mentors, professors
and big people reminding us over and over again that we need to learn
how to communicate our research.
Aah!
How the joy of giving the gift of sleep to my family clashed with the
shame and sadness of my boring narratives!
One
usual night, I was talking to my brother on phone about his school
and he told me about this new subject that they have to study-
Environmental Science. I chimed in, “Brother, I study that subject
too! Wow!” And, I so remember what he said-
“
I know. I remember you told me that you study how to clean big
oceans from oil. The birds and fishes die when oil is spilled and you
want to clean the oil puddles and oil balls.”
He
remembered. And, in his remembering he imparted the secrets of
scientific communication to me.
May be this passed your noticing, but
our world has been much lighter and brighter place since then.
As
I write my first blog for VT SuN to talk about my research, I write
it for my Guru of scientific communication, my darling baby brother!
Subscribe to:
Posts (Atom)