Things that matter to me!!

Leave a comment

I have always been thinking, about what matters to me the most. I like coding, I like sweet things, I like to be around people, cute things. I like soft and fluffy things πŸ˜› I like my laptop a lot, like really a lot. I can marry it. If I don’t get to touch my laptop for a few days, I get withdrawal symptoms and after a few days, I just want to hug my laptop πŸ˜₯

Too many things interest me and I feel, I can’t just keep my head into a single thing, I wanna try out so many things out there. I wanna try A, I wanna try B, till I get hang of B, I wanna try out C or whatever. I am random. ADHD perhaps.. not sure.

I used to live in one of the major cities in India and never ever lived or cared too much about people outside of that big city. Neither did I know much. Thank fully I got to work in a company, where I got to meet people from all over India. I have absolutely loved it.. There are so many people from so many places, with so much varied experiences, talent.

I have learned, I am not smart, I am definitely not intelligent. people are out there, some who think like you, some who are different, some who hate you, some whom you like. But people, so many to experience. I used to think, my way was always the right way, that I was correct in thinking always. I was so god damn wrong, for like 23-24 years of my life πŸ™‚ I have learnt, about mistakes that I had made, thinking they were right. I could do only after meeting so many people. These things were never taught in college or school. These things you can only learn, if you go out there and experience, learn, see, listen.

Go, Get out there, talk to people, share your view, hang out, go to movies, but most importantly listen, to what everyone has to say. Listen and understand. I am sure, you will figure out the real you.

Series – Coding Interview Book (part 1)

Leave a comment

So, I have started to have a look at the Coding interview book. Have been reading about how interviews happen at top 5 IT firms like Google, Amazon, Apple Inc etc.

To think, or even dream, I could be part of such awesome organizations is like a very very far fetched thought. Wouldn’t have my hopes so high ever.

Then again, that doesn’t mean, I shouldn’t start practising some cool coding questions for some interviews. In the first few pages, I found out a few easy questions, which I will try to write code of and put it somewhere online for everyone’s review. Yeah! Together we learn πŸ˜›

The questions/sample exercises seem to be pretty easy. So here we go!!!
1. Design an algorithm to sort a list
Question: What sort of a list? An array? A linked list?
Answer : An array.
Question : What does the array hold? Numbers? Characters? String?
Answer : Numbers.
Questions: And are the numbers integers?
Answers : Yes.
Question : Where did the numbers come from ? Are they IDs ? Values of something ?
Answers : They are ages of customers.
Question : And how many customers are there ?
Answers : Around a million.

I will leave some analysing of the question to you guys. Let me just quickly write down some code for solving the problem.

So the code is available here magic_sort.rb You guys can have a look, I am using the Benchmark module of ruby to capture the execution time. As always insertion sort is faster for smaller arrays. But when the array size increase beyond 10000, the performance is significant for our magic sort πŸ™‚
Have a look and let me know, if we can improve it even further.

Backbone.js

Leave a comment

So I just felt like making something using Backbone.js, The usual idea being make a To-Do App, just to understand the framework, I thought, might as well, build a simple chat box around it.

Like always, I will use ruby on rails for my server side application, just in case, I feel like adding some nifty features at a later point in time πŸ™‚

Let the coding begin, will add another post as soon as I am done with it πŸ™‚

No Code!!!!

Leave a comment

So Its been a month, I have been super busy with work @ office that I haven’t been getting any time to work on my side projects 😦 as a result. I am completely out of touch of the new happenings in Web World. Heck, I don’t even know, what is IOT πŸ˜›

Planning to stop working so much an concentrate more on the better stuff in life. Programming. yes plain old programming πŸ™‚ need to start making stuff again.

Two things on my Mind. I haven’t been able to really grasp the advantages of Rails 4, so will spend some time looking at those and well BigData. Yes I know, I am late, but got to write some code and I do have some problem statements, that might have some bigdata applications.

will post frequently from now on. ciao

What I am working on

Leave a comment

For a long time, I always wanted to make a one stop dashboard for me, which would allow me to do everything, for which, I have to go to a lot of different websites, Twitter, Facebook, Gmail, WordPress, checking stats of my sites, notifications, calendar, tasks etc etc.

In the end, I gave in to the temptation of making a personal dashboard which would really help me in solving the problem of having so many tabs open in my browser. πŸ™‚

Will keep on blogging about the development on the dashboard and would put a github link soon πŸ™‚

Start of Job hunt

Leave a comment

hey guys!!!

long time no see… So finally after almost 2 years, I am starting to search for a job. These days I feel, finding a job has become like finding the right pair of shoes for you. The ones which fit the bill, aren’t that good and ones which look cool are not that comfortable 😦

Need to find a job which is somewhere in the middle of pay and play. First preference to money though, because in the Immortal words of the Wolf of Wall street – ‘Let me tell you something. There’s no nobility in poverty. I’ve been a rich man, and I’ve been a poor man. And I choose rich every fucking time.’

Life made easy

Leave a comment

I am wondering

Why? always ?

sudo nano file_name
sudo apt-get install whatever
sudo apt-get install -f
sudo apt-get remove

Why not just!! Simplify.

Edit your ~/.bash_profile.

nano ~/.bash_profile

and add something like the following lines, which you use on a daily basis.

alias snano='sudo nano'
alias apt-update='sudo apt-get update'
alias apt-fix='sudo apt-get -f install'
alias apt-remove='sudo apt-get remove'

close and re-open it.

Now you can simply use apt-fix instead of typing sudo apt-get -f install

Life made simpler πŸ™‚

Older Entries Newer Entries