Journaling on estrip is free and easy. get started today

Last Visit 2024-11-20 13:02:24 |Start Date 2007-04-01 15:09:25 |Comments 9,863 |Entries 1,011 |Images 1,430 |Sounds 30 |SWF 1 |Videos 219 |Mobl 27 |Theme |

Category: i-tech

11/13/11 09:45 - ID#55492

Programming basics from Paul

I spent around half hour yesterday getting an insight into how (e:Paul) thinks about the basics of programming. It was most enlightening. I wish I had been in one of (e:Paul)'s programming classes (insert dodgy stalker grin here) and had a chance to learn all of it in a more structured format. I wondered how I might have turned out, if years before I had actually chosen to go to the engineering school I was selected for, instead of tramping down the completely diametric path I chose.

Who knows.

I believe it's not too late though. So I am going to learn, regardless of how long it takes to get to minimum proficiency.

Some basics that I sponged up

A variable: something that varies. It can be many types.
  • Float (yeah, not the cruise one but just as fun: a number).
  • Integer, a natural number (and organic to boot).
  • String, a word which may or may not mean just that.
  • Boolean, true or false and nothing else in between.
  • Arrays, a collection of random stuff. (Also called lists in the R world).
  • Objects: this has a sort of equivalent in R. When I define a logistic regression model in R, I am trying to describe how an outcome variable (say, any cancer yes/no) is related to many other variables (say, family history, alcohol consumption, body mass index etc.) Since it's a logistic regression, it has some properties or assumptions. The method of combination of my other variables is linear (there are no second or higher order terms in the equation). There are many options that you can put into this "model". How would the model accept other variables? How many variables can it accept before it becomes illogical or the power to say anything conclusively runs out? etc. Once this object or model is defined, you can change some variable in it, and see how the model changes - for example is a non-alcoholic as likely to respond as well to cancer chemotherapy as an alcoholic? If I run this model in R, I will get several properties of this model - that define how this model is behaving. So the model along with its defined and computed properties is a sort of "object": an artificial emulation of a slice of reality (or fantasy).

Indexing: helps in selecting and choosing particular variables that you have defined above Though we didn't talk about it yesterday, indexing in one key weapon in R that gets you out of many scrapes. In its most simple form, it is array[x], or data.frame[x], or list[x] where x is some number. x can be defined and derived in a million different ways. A tip of the hat to Tim Toady!

print addComment

Permalink: Programming_basics_from_Paul.html
Words: 461
Location: Buffalo, NY
Last Modified: 08/20/12 02:20


Category: music

11/13/11 07:47 - ID#55491

The land of might have been



So many lands of might have beens. It's hard to keep count at this point. Every one of them strewn with some level of regret.
print add/read comments

Permalink: The_land_of_might_have_been.html
Words: 28
Location: Buffalo, NY
Last Modified: 11/13/11 07:47


Category: music

11/12/11 10:13 - ID#55488

Oh demon, Alcohol!

I am declaring outright war on a mass scale. Whoever comes in my path does so at their own peril. I WILL strike down all (always poor, ill-supported, circular and clear as mud) "reasoning" to the contrary, most ruthlessly and coldly. Everyone knows they need to brutally kick alcohol out of their lives completely at some point. And I will keep reaffirming this point till I am hoarse... and maybe even after with an unpleasantly hoarse voice.

I am appointing (some excellent song-writing by The Kinks) this song as THE anthem in my warpath.



And of course, I am writing my own lyrics. Come on now, whoever dares will sing the refrain with me (and try and stick to the tune!).
..

Oh demon, alcohol
Sad memories I CAN recall
You know what I am going to say
Slay the demon alcohol!

Beer, wine, pink gin,
You may NOT drink anything
Port, pernod or tequila,
Rum, scotch, vodka on the rocks,
I hate them ALL.



And this is MY blog and I reserve the right to heap insults and pull down whatever noxious influence that I deem worthy of my undying hatred. I don't think my complete disenchantment with this evil addictive substance that is wrecking live(r)s around me needs any moderation. I also don't need any balancing comments because you KNOW in your hearts that you are plain wrong if you are defending the demon alcohol. Just know that this is one issue that I am most irrevocably proud to hold a complete, clear and blanket one-sided view on.

print add/read comments

Permalink: Oh_demon_Alcohol_.html
Words: 265
Location: Buffalo, NY
Last Modified: 11/12/11 10:55


Category: eating in

11/11/11 04:25 - ID#55485

Cauliflower Magic

I love cauliflower with caramelized onions and roasted tomatoes.
image
Add garlic, a couple jalapeños, minced ginger, cumin, coriander and toasted cashews. And you have a winner lunch that makes it feel like summer! :)

print addComment

Permalink: Cauliflower_Magic.html
Words: 36
Location: Buffalo, NY
Last Modified: 11/11/11 04:49


Category: music

11/11/11 12:50 - ID#55484

Life's a Bitch



Make a tall man short
To see you act this way
Make a short man puke
The way you waste the day!

And this is why I love Lemmy...
and his humongous mole. :-)
print add/read comments

Permalink: Life_s_a_Bitch.html
Words: 38
Location: Buffalo, NY
Last Modified: 11/11/11 12:50


Category: music

11/11/11 12:19 - ID#55483

No Lies!

I still love this song to shreds.

::DOWNLOAD SOUND::



How can I trust you with your human nature
With all the dues that you don't want to pay
Between polarities of good and evil
You make decisions, trying to find your way

I'm coming back to you
Don't worry - I'll be coming over you

Don't you play this game of treason
It will all come back to you
So you better tell me no lies

You cannot fool me 'cause I know it better
I've seen it all, I've watched them come and go
I'm gonna be for you a painful lesson
I will fulfill for you the karmic law

I'm coming back to you
Don't worry - I'll be coming over you

Don't you play this game of treason
It will all come back to you
So you better tell me no lies
We will meet again next season
Then it will come back to you
So you better tell me no lies

I'm coming back to you
Don't worry - I'll be coming over you

Don't you play this game of treason
It will all come back to you
So you better tell me no lies
We will meet again next season
Then I'm coming over you
So you better tell me no lies
Don't you ever tell me no lies
---
Peavey and gang = Gods of metal.

print add/read comments

Permalink: No_Lies_.html
Words: 233
Location: Buffalo, NY
Last Modified: 11/11/11 12:19


Category: music

11/10/11 08:59 - ID#55479

Ofra Haza

Her voice is so beautiful it sends chills down my spine.



Deliver us!

Probably my most favourite song from that fantastic movie. I can't remember any other movie that has such a pitch perfect soundtrack... well, except The Incredible Hulk (but it was all instrumental).

And seriously, she owns Led Zep with this cover.

print add/read comments

Permalink: Ofra_Haza.html
Words: 63
Location: Buffalo, NY
Last Modified: 11/10/11 09:10


Category: perl

11/09/11 07:56 - ID#55471

Pearls of Perl

The skeleton of a "For loop"
  1. Initialization
  2. Test condition
  3. Modification

I realized how much I depend on RStudio for learning R as I go along. I looked for a similar IDE for Perl, but none seems to be that elegant, awesome and well-thought out. I am trying Padre for now, but I find myself constantly comparing it with RStudio and I am not impressed.


PS: Totally unrelated but I hate the new Gmail look. I need to remember to download Stylish for Chrome the minute they make the new look permanent


print add/read comments

Permalink: Pearls_of_Perl.html
Words: 98
Location: Buffalo, NY
Last Modified: 11/09/11 11:17


Category: eating in

11/06/11 09:41 - ID#55456

The DST Sunday breakfast.

I improvised on one of my Mum's recipes to come up with a tribute to the sorely needed extra hour.

The steamed lentil and millet sunlight dumpling!
image

1 part green moong dal
1 part millets
1 part urad dal

Soaked 3-6 hours
Blended to a coarse grind
Seasoned with olive oil with mustard seeds, dried red chillies, jalapeños, red peppers, curry leaves. Salt to taste
Fermented overnight.
Steamed in the morning.
Garnished with carrots and coriander leaves, tossed in lemon juice. Red onions would have been awesome but I forgot about them.

Tada!


PS: Could have been infinitely better with a coconut and coriander and caramelized onion chutney. But I only have so much time to spare. The ratios are a keeper, though.
print addComment

Permalink: The_DST_Sunday_breakfast_.html
Words: 124
Location: Buffalo, NY
Last Modified: 11/06/11 09:56


Category: buffalo

11/06/11 07:07 - ID#55454

Gift of an hour

I LOVE it. It's only


7:07 AM

instead of an hour later.


Whoever invented the ridiculous daylight savings time policy probably mused...

Oh you know what, I will make them suffer for the major part of the year and then make them feel a little bit better on a single day before the wretched winter sets in.



Well, DST masochist, thank you for today. But know that I have hated you a lot since March.
print add/read comments

Permalink: Gift_of_an_hour.html
Words: 78
Location: Buffalo, NY
Last Modified: 11/06/11 07:12


Search

Chatter

New Site Wide Comments

joe said to joe
Never send a man to do a grandma's job...

sina said to sina
yes thank you!
Well, since 2018 I am living in France, I have finished my second master of science,...

paul said to sina
Nice to hear from you!! Hope everything is going great....

paul said to twisted
Hello from the east coast! It took me so long to see this, it might as well have arrived in a lette...