Some general ideas
Thursday, July 30, 2020
Friday, May 22, 2020
I now run 5.5km and walked 2 km - I try to do this 2-3 times a week. On days that I dont do this, I do Yoga for 1 hour and walk for about 4km. I also do cardio workouts and lift weights at home when I miss out on any of those. I am keeping my health.
I also eat well. I learned new recipes and have some motivation about the things I cook. So there's that.
I clean the house once in a while when surroundings look messy. I still don't know how to keep the house clean always.
I also eat well. I learned new recipes and have some motivation about the things I cook. So there's that.
I clean the house once in a while when surroundings look messy. I still don't know how to keep the house clean always.
Note to self: Do's and dont's
Don't listen to:
From where you are - By Lifehouse.Listen to
Emotional Atyachaar Rock Version
Saturday, July 18, 2015
How to tweet using R
This blog post intends to teach you to POST tweets using R. Obviously this is to some Twitter account that you either own or can get access to. You will need to get hold of the authentication credentials to post to this account as detailed here
So onto the R scripting.
I found that I needed the following packages.
install.packages("httr")
install.packages("rjson")
install.packages("base64enc")
install.packages("Unicode")
library("httr")
library("rjson")
library("base64enc")
library("Unicode")
You create a signature to be used in the HTTP GET/POST requests. The HTTP POST request that we use needs this signature. Note that we use OAuth 1.0 here.
myapp = oauth_app("twitter", key="Consumer Key (API Key)", secret="Private-Key")
sig = sign_oauth1.0(myapp, token="Public-Token", token_secret = "Private-Token")
Next we create our tweet itself:
twit <- URLencode("Thanks! Bulla_ki_Jaana First #Twitter Post")
paste("https://api.twitter.com/1.1/statuses/update.json?status=", twit,sep='')
POST(url, sig)
The POST response should indicate the HTTP Status of 200 indicating Success. A Status code of 400 usually means that the authentication credentials were not presented to Twitter correctly.
You should log on to your Twitter account and check that your tweet appeared as intended.
So onto the R scripting.
I found that I needed the following packages.
install.packages("httr")
install.packages("rjson")
install.packages("base64enc")
install.packages("Unicode")
library("httr")
library("rjson")
library("base64enc")
library("Unicode")
- With that out of the way - we now need to authenticate into our account.
- If you have just the Twitter account you need to get hold of a Twitter Application Account.
- Create an application with whatever name you please and associate it with your twitter account.
- Go to "Keys and Access Tokens" - You must have the "Consumer Key (API Key)" and the "Consumer Secret (API Secret)" populated already.
- You will need to create the "Access Tokens" which will give you the Access Token (named as "Public-Token" in the R script) and the Access Token Secret (named as Private-Token)
- With these authentication entities we are ready to use OAuth to authenticate into our account from other places on the web.
You create a signature to be used in the HTTP GET/POST requests. The HTTP POST request that we use needs this signature. Note that we use OAuth 1.0 here.
myapp = oauth_app("twitter", key="Consumer Key (API Key)", secret="Private-Key")
sig = sign_oauth1.0(myapp, token="Public-Token", token_secret = "Private-Token")
Next we create our tweet itself:
twit <- URLencode("Thanks! Bulla_ki_Jaana First #Twitter Post")
paste("https://api.twitter.com/1.1/statuses/update.json?status=", twit,sep='')
POST(url, sig)
The POST response should indicate the HTTP Status of 200 indicating Success. A Status code of 400 usually means that the authentication credentials were not presented to Twitter correctly.
You should log on to your Twitter account and check that your tweet appeared as intended.
Wednesday, May 6, 2015
Salman Khan - Go To Jail
The only thing terrible about the entire drama of Salman Khan going to jail for involuntary manslaughter is the Times of India's coverage of the story. Forget the 6500 dead in the Nepal quake more emotion lies here - mood swings of Salman Khan
And then we have comments like these from Farah Khan "Khan Ali tweeted, “The govt should be responsible for housing ppl. If no1 was sleeping on d road in any other country Salman wuld not have driven over anybody”; and “It’s like penalising a train driver because someone decided to cross the tracks and got killed in the bargain. #salmankhancase”"
Total dumbass.
And then we have comments like these from Farah Khan "Khan Ali tweeted, “The govt should be responsible for housing ppl. If no1 was sleeping on d road in any other country Salman wuld not have driven over anybody”; and “It’s like penalising a train driver because someone decided to cross the tracks and got killed in the bargain. #salmankhancase”"
Total dumbass.
Sunday, May 3, 2015
Lessons in cooking - Cupcake (Tutti Frutti)
So having a lot of time on my hands this weekend I have managed to expend time on the following activities
"Tutti Frutti, good booty If it don't fit, don't force it You can grease it, make it easy"
Baking Powder - 1/2 tsp
Tutti Frutti - 1/4 cup
Salt - a tiny pinch
Sugar - 1/3 cup Sugar - 2/3 cup
Oil - 1/8 cup + 1 tbsp
Vanilla Essense - 1/2 tsp
Water - 1/4 cup
Vinegar - 1/2 tbspVinegar - 1/4 tbsp
Baking Soda - 1/4 tspBaking Soda - 1/8 tsp
1.Free Multiplayer Weekend to play Halo -
I don't buy Xbox Gold or else I will do nothing useful in life.
2. I made Tutti frutti cupcakes and cakes - both of which weren't awesome.
While Sharmi's passion might have been butterless eggless cupcakes, I didn't mind either of those ingredients. However, in our family our recipes are driven by a single unusual ingredient at home which happened to be Tutti Frutti. This has been at home for the past 1 year. It even survived an apartment move. Tutti Frutti in Italian means "All Fruits" which of course commercially translates to only candied Papaya with preservatives. It was the title of a famous song that has lyrics such as
Sharmi is wrong on the quantity of sugar. We need at least 1.5 times more than what is stated in her recipe. This is what I did and works OK.
![]() |
| Final outcome after 1 day of consumption. Said recipe is enough for 6 |
Mix 1:
Maida - 3/4 cupBaking Powder - 1/2 tsp
Tutti Frutti - 1/4 cup
Salt - a tiny pinch
Mix 2:
Oil - 1/8 cup + 1 tbsp
Vanilla Essense - 1/2 tsp
Water - 1/4 cup
Mix 3:
Thick Curd - 1/4 cup
While the consistency was good, the taste was that of regular white bread. So much for that - it at least looks tempting.
Well the cake was a different affair. More on that later.
Subscribe to:
Posts (Atom)

