New found interest – Graffiti

This Sunday morning, I was feeling a little wobbly. I easily get bored when I run out of fun activities. So today, I literally had whole day to myself without any concrete plans. I wondered how to make it exciting. Just then, a random idea stuck. Lets try doing some graffiti!

My handwriting sucks. I have literally zero drawing and painting skills. The last encounter that I remember with any sort of artsy drawing was in standard 5th, where I scored a respectable 6/10 for drawing a Mango tree, next to a flowing river. I colored the river purple. Yeah I was a rebel since beginning 😀

Back to present. I live in a rented apartment, so naturally I did not have the liberty to go all guns and smudge the interior walls with spray paints. However, what I could do was to use my makeshift whiteboard, which I otherwise use to write code and brainstorm, as a graffiti wall.

Now all that was left was to find an appropriate piece of art that is witty, uplifting and easy for a first timer. I found an interesting sketch of three kids with cute looks, ruffled hair and some mischief brewing in their mind. Just apt!

I used a blue marker to get started. It was a bit difficult in the beginning. I had to edit and erase the initial few curves. But soon I got the hang of it. I stated enjoying it! In less than ten mins I was done sketching the three kids. Here it is below [the left side].

Be Yourself Graffiti

 

Since I completed the graffiti fairly quickly, I felt a little undeserving. To compensate for it, I found another interesting image from Calvin and Hobbes, where Calvin is having a gala time listening to his boom box. I inserted it into my debutant graffiti art as well.

After finishing, I admired it for a few minutes and indulged myself into some unabashed self appraisal 😀 . I throughly enjoyed the whole experience of trying out a new skill. I promised myself to try a new graffiti every week.

“Skill#28 – A veteran Graffiti artist” soon-to-inserted-in-my-resume.

Calvin and Hobbes best brainy quips

Calvin is a sweet little smartass. He hasn’t aged in decades and neither did his wisdom. His simple conversations with his pet tiger appear cute and simple. Yet, profound at the same time which makes this cartoon strip timeless. Here I have collected and posted some of the best quips taken from Calvin’s innocent mind:

Hobbes: Do you have an idea for your project yet?
Calvin:  No I’m waiting for inspiration. You can’t just turn on creativity like a faucet. You have to be in right mood.
Hobbes: What mood is that?
Calvin:  Last minute Panic.


Calvin:  Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that no-one of it has tried to contact us.


Calvin:  Reality continues to ruin my life. [Throw up his hands in the air, dejected ;)]


[Calvin walking on Snow, with contemplative expressions]
Calvin:  The problem with future is that it keeps turning into present.


Calvin:  Life’s disappointments are harder to take when you dont know any swear words.


Calvin: It’s hard to be religious when certain people are never
incinerated by bolts of lightning.


Calvin: In my opinion, we don’t devote nearly enough scientific research to finding a cure for jerks. [:D]


Calvin: (During a test.) As you can see, I have memorized this utterly useless piece of information long enough to pass a test question. I now intend to forget it forever. You’ve taught me nothing except how to cynically manipulate the system. Congratulations.


Calvin (writing, after being asked to explain Newton’s First Law of Motion “in his own words”): Yakka foob mog. Grug pubbawup zink wattoom gazork. Chumble spuzz. (speaking) I love loopholes.


Calvin’s dad: Being a parent is wanting to hug and strangle your kid at the same time.


Calvin: If people sat outside and looked at stars each night, I’ll bet they’d live a lot differently.


Calvin: Do you know where babies come from?
Hobbes: Nope
Calvin: Well, I wonder how one finds out!
Hobbes: Here, let me see the back of your shirt.
[untucks Calvin’s shirt]
Hobbes: You came from Taiwan.

Badass shayari

 

 

मौला ने लिखकर मेरे मुक्कदर में गरीबी

फ़रमाया

मिज़ाज़ इसका अमीरना बना दो

 

English Translation:

Lord, after sealing my destiny in poverty,

mused,

let his attitude be rich.

poetry

Bring Backgroud processes to foreground in terminal

If you are using Terminal and have sent some processes to background using Control+Z, use the following commands to bring them back to foreground.

Type ps -a to view all background processes with pid. Or type only jobs, to view them in order.

Type fg to bring the last process back to foreground.

If you have more than one process running in the background, do this:

$ jobs
[1] Stopped python
[2]- Stopped python
[3]+ Stopped python

Type fg %3 to send the python process back to foreground.

To suspend the process running in the background, use:

kill -19 %job_id.
the -19 signal is SIGSTOP (the signal sent by Control - Z) .

example: kill -19 %3.

To kill a python process either type exit() in python shell, or type Control+D

Wikipedia’s Thank-you note received after donation.

I got this thank-you email for donating to Wikipedia today. I usually don’t read emails this long, but this email was compelling enough.. Wikipedia has truly helped me a lot in my learning, glad its there!

Dear Prakhar,

Thank you for donating to the Wikimedia Foundation. You are wonderful!

It’s easy to ignore our fundraising banners, and I’m really glad you didn’t. This is how Wikipedia pays its bills — people like you giving us money, so we can keep the site freely available for everyone around the world.

People tell me they donate to Wikipedia because they find it useful, and they trust it because even though it’s not perfect, they know it’s written for them. Wikipedia isn’t meant to advance somebody’s PR agenda or push a particular ideology, or to persuade you to believe something that’s not true. We aim to tell the truth, and we can do that because of you. The fact that you fund the site keeps us independent and able to deliver what you need and want from Wikipedia. Exactly as it should be.

You should know: your donation isn’t just covering your own costs. The average donor is paying for his or her own use of Wikipedia, plus the costs of hundreds of other people. Your donation keeps Wikipedia available for an ambitious kid in Bangalore who’s teaching herself computer programming. A middle-aged homemaker in Vienna who’s just been diagnosed with Parkinson’s disease. A novelist researching 1850s Britain. A 10-year-old in San Salvador who’s just discovered Carl Sagan.

On behalf of those people, and the half-billion other readers of Wikipedia and its sister sites and projects, I thank you for joining us in our effort to make the sum of all human knowledge available for everyone. Your donation makes the world a better place. Thank you.

Most people don’t know Wikipedia’s run by a non-profit. Please consider sharing this e-mail with a few of your friends to encourage them to donate too. And if you’re interested, you should try adding some new information to Wikipedia. If you see a typo or other small mistake, please fix it, and if you find something missing, please add it. There are resources that can help you get started. Don’t worry about making a mistake: that’s normal when people first start editing and if it happens, other Wikipedians will be happy to fix it for you.

I appreciate your trust in us, and I promise you we’ll use your money well.

Thanks,
Sue

Sue Gardner
Executive Director,
Wikimedia Foundation
https://donate.wikimedia.org

Common git commands to use

Here are a common git commands that I end up using pretty frequently. Will keep on updating this list

  1. List all remote branches
  2. Simplest is git branch -a Shows all remote and local branches. git branch -r Will show all remote branches only.
    Another way is to use git remote feature like:
    git remote show origin This shows all branches on remote and how they corelate with local repo.
    git ls-remote Will meticulously list all branches and tags.

  3. Just view modified files between 2 branches (without diff)
  4. git diff --name-status master..branch Will list out only filenames git diff master..branch without –name-status will show whole diff.

  5. git remote -v Displays url of remote repo from where local git was pulled
  6. Alternatively use git remote show origin or git config --get remote.origin.url

  7. Viewing Unpushed Git Commits
  8. git log origin/master..HEAD
    To view diffs: git diff origin/master..HEAD
    Another way: git log @{u}..

Timesjobs.com sell your email address and phone numbers to spammers

Online job search portals are flourishing in India. However it turns out that some job portals have totally sold their conscience and pay no respect to user’s privacy and trust. One such lame job portal is timesjobs.com. The retards in this company carelessly sell user’s email and phone to nuisance creating spammers, breaching all privacy policy clauses as laid down on their own website. These nasty spammers, in turn send useless crap about lottery, and hoax job offers.

To expose their scandal, I registered on timesjobs.com via a separate email id specially made for timesjobs. Soon I started receiving spam messages. When I analysed headers in the original email, it officially proved that messages were sent to timesjobs id.

I have sent an email to their corporate office as well.

To: corporatecare@timesgroup.com

Hi,

I recently realized that timesjobs is illegally selling private information like phone numbers and email addresses to spammers and marketeers. I have attached a snapshot which proves this. It is a clear breach of the privacy policy as mentioned here: http://www.timesjobs.com/popuphtml/privacy.html.

Let me know what explanation you have for this.

-Prakhar

I am trying to find a legal aspect to sue these guys. If anyone is aware of this process, kindly let me know. In the meantime, request you to tweet and digg this post so that timesjobs can learn some lesson.

Bank Loan EMI and recurring deposit interest calculator

Just yesterday, I was signing up for a LIC Jeevan Saral plan. I needed to perform some quick calculation to select the best recurring deposit (RD), based on ROI. I tried searching for some good online utility which can serve the purpose. To my surprise, out of several available online calculators, there was not a single one which was presentable enough. None of them provide breakup details etc. I decided to create one myself and make it publicly available so that others can use it as well.

Features:

  • Cleaner user interface. No clutter.
  • Provides accurate calculations and 2 decimal precision.
  • Time (in years or months) can be in fractions.
  • Rate of interest can be above 100.
  • Printer friendly print option.

Loan EMI calculator: https://prakhargoel.com/projects/calculators/emi_calculator.php

Annual Recurring Deposit Calculator: https://prakhargoel.com/projects/calculators/annual_recurring.php

Monthly Recurring Deposit Calculator: https://prakhargoel.com/projects/calculators/monthly_recurring.php

Handy commands in Mac/Linux systems

Here’s a list of common commands I use in Linux. I will continue to update this list with more stuff.

  1. Checking fireball logs:
  2. [code lang=”bash” gutter=”false”]
    cat /var/log/appfirewall.log

    # You will see stuff like
    Jun 21 10:37:51 prakhars-MacBook-Pro Firewall[90]: postgres is listening from 0.0.0.0:5432 proto=6
    Jun 21 10:38:11 prakhars-MacBook-Pro Firewall[90]: mysqld is listening from ::ffff:0.0.0.0:3306 proto=6
    Jun 21 10:40:21 prakhars-MacBook-Pro Firewall[90]: Dropbox is listening from 0.0.0.0:17500 proto=6
    Jun 21 10:40:21 prakhars-MacBook-Pro Firewall[90]: java is listening from ::ffff:0.0.0.0:0 proto=6
    Jun 21 10:44:38 prakhars-MacBook-Pro Firewall[90]: GoogleTalkPlugin is listening from 127.0.0.1:49198 proto=6
    Jun 21 10:45:35 prakhars-MacBook-Pro Firewall[90]: python is listening from 127.0.0.1:8000 proto=6
    [/code]

  3. screen command: Use it to create parallel sessions in terminal. Useful for running long processes on remote servers even after signing out of server.Usage:
    [code lang=”bash”]
    screen
    # This creates a separate screen.

    screen -ls
    #lists all attached/detached screens IDs

    screen -x 13152
    # Enter (Attach) screen ID 13152 (just an example, can be any ID number)

    echo $STY
    # Displays current screen ID you are working in.
    [/code]
    Ctrl-a d Detach from current screen.

  4. dpkg --get-selections List all installed packages. (Only on debian systems like Ubuntu which support apt-get)
    Smartly grep to find package you are looking for eg- dpkg --get-selections | grep mysql