Hacking life

"You cannot connect the dots by looking forward"

Docker Multi Host Networking with Consul and Vagrant

Mar 1, 2016 · tech · 4 minute read · Comments

Docker networking is progressing and it recently released its 1.0 release. Initially docker mostly used on a single host. With the high usage and complex use cases, the requirement of multi-host networking emerged and people have used many different ways to achieve it. In this article, let’s explore docker networking. By default, docker provides the following networks. You can inspect them with the following command $ docker network ls NETWORK ID NAME DRIVER 7fca4eb8c647 bridge bridge 9f904ee27bf5 none null cf03ee007fb4 host host You can refer docker networking for a comprehensive guide to understand docker default networking.

Read On →

I see something in you

Feb 17, 2016 · life · 1 minute read · Comments

Steve Jobs once said that you cannot connect dots by looking backwards. That saying stays and will stay in my heart forever, remembering the impact of tiny little incidents and opportunities in my life. You will never know what those tiny little opportunities today, will provide you tomorrow. So stay awake and conscious. I have watched the following video “ I see something in you” by Dhananjaya Hettiarachchi, who won the Intentional competition for public speaking.

Read On →

Reproducible Experiment to Compare Apache Spark and Apache Flink batch processing

Jan 31, 2016 · · 2 minute read · Comments

How do you reproduce distributed experiments? Have you ever experienced the pain of installing and configuring necessary software to run a distributed experiment. Karamel comes to rescue you if you are struggling in that problem. Karamel is an orchestration engine which helps you design and run distributed experiments on the cloud such as Amazon EC2 Google Compute Engine, Open Stack etc.It provides a convenient GUI to design reproducible experiments and also a Domain Specific Language (DSL) to declare dependencies and software tools that are required to setup and run the experiments.

Read On →

Best sublime shortcuts

Jan 27, 2016 · · 1 minute read · Comments

Following is a top collection of sublime shortcuts that are frequently used in day to day developement. Suggest something if you find anything more useful. ⌘ + P or ⌘ + T search and open files by name ⌘ + R Go to symbol. This is handy to list down method names in a file ⌘ + F Find in current file ⌘ + ⌥ + F Replace ⌘ + ⇧ + F Find in files (This will search in the folders you specify or in all the files in general) ⌘ + L Select line - Repeat to select next lines ⌘ + D Select word - Repeat to select next occurrence ⌃ + ⌘ + G Select all occurrences of current selection ⌘ + K + ⌫ Delete from cursor to start of line ⌘ + ] Indent current line(s) ⌘ + [ Un-indent current line(s) ⌘ + ⇧ + D Duplicate line(s)

Read On →

Configuring i2 amazon instances for SSDs

Dec 15, 2015 · tech · 1 minute read · Comments

If you are configuring Amazon instances for storage optimized workloads, You might want to use amazon i2 instances. They are backed by super fast SSDs than conventional hard drives therefore it is suitable for disk intensive workloads. if you issue the command df -h you may inspect current available disk storage and mounted paths. In that case, have you ever wondered that your newly spawn amazon I2 instance(if i2.xlarge ==> 1 800GB SSD and if it i2.

Read On →

Moved to Hugo

Oct 7, 2015 · tech · 1 minute read · Comments

Why suddenly? Because i wanted freedom. :) I moved from blogger to hugo which is a static site generator written in golang. It is super fast and looks geeky enough for someone who loves to mess with the stuf and also will be easy enough to handle. There are lots of things i considered before moving into Hugo. I need to own my content and now i have backups in Github as well as in my laptop I want my layout.

Read On →

How to make your presentation effective - 10/20/30 rule

Apr 9, 2015 · life · 2 minute read · Comments

 Have you ever presented yourself in front of an audience ? Then you may have use slides for your talk to make it better. But did it really improve or destroy your talk?  Lets find out few facts that may be things you will not like to see if you are in an audience. Because that is the best place to give a verdict about a presentation.

Read On →

What you should know if you travel in Paris

Apr 2, 2015 · life · 2 minute read · Comments

 I had  a dream to visit Paris , City of love with a breeze of Romance. It is a lovely city to explore lots of things. But if you are a traveller knowing few things i have experience will make your journey much nicer :). 1) If you arrive in Beauvais airport and you need to find a way to go to Paris city center you can get Bus tickets from here.

Read On →

How does the confidence look like?

Mar 30, 2015 · life · 1 minute read · Comments

"John Carpenter (born c. 1968)[1] became the first millionaire on the United States version of the game show Who Wants to Be a Millionaire on November 19, 1999" [1]. The most important part of the show is the last question where he attempted to claim the final prize. Watch the following video which is too good for being a contestant at his final question for 1 million dollars. [1] http://en.

Read On →

How to build Open JDK 9 on Mac OSX Yosemite

Mar 29, 2015 · tech · 1 minute read · Comments

I have been struggling lately to find good resources to compile and change OpenJDK. There is a problem with Mac OS Yosemite as it uses Clang as the compiler. But Open JDK 9 builds without a problem. I am adding useful resources here just incase someone finds it useful. How to build it 1) hg clone jdk9 2) cd ./jdk9 3) bash ./ (This will take sometime to download the sources so be patient.

Read On →