Fun in the midst of college exams

Fun is working on your own projects!I was working for a while on my pet Facebook application TodJokes. It’s very close to the final developement stage now. It’s an awesome web application built with Django framework which works on top of lots of Facebook APIs and scrapping scripts to make Tribe of daradnaak jokes content more organized and interactive. It’s approval from Facebook is pending so not available for users at the moment. But here is the video demo of the app I recorded from my local developement machine:It has tons of amazing features and I am sure this application … Continue reading Fun in the midst of college exams

#GSoC ’15 Started

On 27th April the GSoC results were announced and I remember my self eagerly waiting for the results on Google-melangne website. At 12:30 (IST) the results were supposed to be out but the website seemed to have crashed and I was super nervous.But then I recieved a beautiful mail with a beautiful tinker-bell notification sound and voila ! I shouted since the email had GSoC keyword but.. It turned out to be google calendar notification But then another tinker-bell sound rang and voila!! I smiled and quickly told my brother and mom about it :). I was stoked. I then … Continue reading #GSoC ’15 Started

self.note(mysql):

As the tittle says, this post is intended as a self note containing basic sql commands. For the table: To list total number of animals of each species :1. group by species ( Aggregate all the rows with same species)2. count(*) as num (Count the length of all agregatted rows).   To list oldest animal from each species   Insertion : insert into animals(name,species,birthdate) values (‘kid’,’opossum’,’2014-02-01′); Joins Psedo code for join If we had another table called diet   To list individual animals eating food: You can’t use where condition with count(*) as num. Use where instead. ❤ : Find … Continue reading self.note(mysql):

I have been vimified | Graph algo #2

Inspired from slides I decided to write my own DFS implementation [ Just to get the hang of vim ]. Nah! I actually wrote lots of code [ Now I force my self to make Django applications on vim , more on that later. ] to get the hang of it, Just passing DFS gist here because I think it is cool 😛 . It was fun writing it because now I feel like a vim ninja. After weeks of frustration I finally feel like I have got the hang of it. I can perform all the basic thing like buffer … Continue reading I have been vimified | Graph algo #2

Dev tools changes

Spoiler : By dev tools I mean Text Editor 😒 I have started using vim these days. Sublime text is distracting for me. The random popups to register and it doesn’t run inside from a terminal.😤 On the other hand working on vim is much distraction free environment. It’s full screen , you don’t even touch mouse and the thought of checking Facebook notification goes because you are too lazy to move to mouse  .😜 I was using Janus first which cluttered my .vimrc file with ugly configurations I could barely understand. On mac I upgraded to latest vim brew … Continue reading Dev tools changes

Nodes -> Reversal -> FindingMiddleTerm-> None

Linked list is OLD. I can’t think of it’s implementation these days. It should be a crime to be even discussing about it today when  we can use awesome objects such as a list [as in Python]. But somewhere across a reddit post some one mentioned linked list reversal thing and I thought to myself to implement this in python because I have nothing to do. I haven’t done much object-oriented related stuff in python much. Mostly working with script without ever making classes or even a function. So this was  just to revise pretty basic stuff. Here is a … Continue reading Nodes -> Reversal -> FindingMiddleTerm-> None

Tree implementation in python

Python doesn’t come with pre-defined tree objects but due to it’s dynamic nature we can easily implement it either via objects attributes or by dictionary. For tree traversing I find this representation to be the most simplistic It’s easy for traversing , check out my inorder,postorder,pre-order traversal [by recursion] And while we are at it lets modify this to calculate the size of the tree   This technique is slow and uses recursion which can be ofcourse enhanced by implementing threaded tree. Continue reading Tree implementation in python

My secret for productivity :P

I was recently writng a summer of code proposal where I had to put up screnshots. Many many screenshots! So it was: Press command+shift+4 open url browser visit some image sharing website click upload browse the screenshot file click upload Phew Now right click the url click copy Delete the screenshot file from my computer Thats freaking 10 steps which were driving me crazy! So I had to write a script. It’s a python script which will do all of that in one keyboard short cut. I was going to use my own web app [imagepastry] for this.But then I saw imgurl … Continue reading My secret for productivity 😛