Category: i-tech
11/13/11 09:45 - ID#55492
Programming basics from Paul
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!
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.
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 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.
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
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! :)
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. :-)
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!
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.
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
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.
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
- Initialization
- Test condition
- 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
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.
The steamed lentil and millet sunlight dumpling!
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.
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
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.
Permalink: Gift_of_an_hour.html
Words: 78
Location: Buffalo, NY
Last Modified: 11/06/11 07:12
Author Info
Date Cloud
- 12/21
- 12/15
- 02/15
- 01/15
- 11/14
- 08/14
- 04/14
- 02/14
- 11/13
- 07/13
- 09/12
- 08/12
- 07/12
- 04/12
- 03/12
- 02/12
- 01/12
- 12/11
- 11/11
- 10/11
- 09/11
- 08/11
- 07/11
- 06/11
- 05/11
- 04/11
- 03/11
- 02/11
- 01/11
- 12/10
- 11/10
- 10/10
- 09/10
- 08/10
- 07/10
- 06/10
- 05/10
- 04/10
- 03/10
- 02/10
- 01/10
- 12/09
- 11/09
- 10/09
- 09/09
- 08/09
- 07/09
- 06/09
- 05/09
- 04/09
- 03/09
- 02/09
- 01/09
- 12/08
- 11/08
- 10/08
- 09/08
- 08/08
- 07/08
- 06/08
- 05/08
- 04/08
- 12/07
- 11/07
- 10/07
- 09/07
- 08/07
- 07/07
- 06/07
- 05/07
- 04/07
Category Cloud
More Entries
After This
My Fav Posts
- Click the heart at the bottom of anyone's blog entry to add it here ;(