Thursday, September 24, 2015

Configuring Mininet with Floodlight Controller

Configuring Mininet with Floodlight controller is pretty straight-forward.

First, download and build Floodlight.

$ git clone git://github.com/floodlight/floodlight.git
$ cd floodlight
$ git checkout stable
$ ant
$ sudo mkdir /var/lib/floodlight
$ sudo chmod 777 /var/lib/floodlight

Once built, you can execute Floodlight by,
$ java -jar target/floodlight.jar

Execute Mininet and connect to the controller.
sudo mn --arp --topo tree,3,2 --mac --switch ovsk --controller remote,ip=127.0.0.1

Now if you connect to the Floodlight UI in browser, you may view the nodes emulated by Mininet.
http://127.0.0.1:8080/ui/index.html

Floodlight Dashboard

Network Topology




$ java -jar target/floodlight.jar
$ git clone git://github.com/floodlight/floodlight.git $ cd floodlight $ git checkout stable $ ant; $ sudo mkdir /var/lib/floodlight $ sudo chmod 777 /var/lib/floodlight - See more at: http://www.projectfloodlight.org/getting-started/#sthash.SaGU01pP.dpuf
$ git clone git://github.com/floodlight/floodlight.git $ cd floodlight $ git checkout stable $ ant; $ sudo mkdir /var/lib/floodlight $ sudo chmod 777 /var/lib/floodlight - See more at: http://www.projectfloodlight.org/getting-started/#sthash.SaGU01pP.dpuf
$ git clone git://github.com/floodlight/floodlight.git $ cd floodlight $ git checkout stable $ ant; $ sudo mkdir /var/lib/floodlight $ sudo chmod 777 /var/lib/floodlight - See more at: http://www.projectfloodlight.org/getting-started/#sthash.SaGU01pP.dpufss
$ git clone git://github.com/floodlight/floodlight.git $ cd floodlight $ git checkout stable $ ant; $ sudo mkdir /var/lib/floodlight $ sudo chmod 777 /var/lib/floodlight - See more at: http://www.projectfloodlight.org/getting-started/#sthash.SaGU01pP.dpuf

Sunday, September 13, 2015

Quick trips are the best.

The view from the balcony in Portimão.
[12th - 13th, September] Nothing beats a quick trip to a beach resort in the summer. However, autumn is good too, with lesser tourists and cheaper rates, as long as it does not rain. Visiting Portimão end of the summer was good, with sun and beach, still abundantly available.

Thursday, September 3, 2015

Delete Skype History in Ubuntu 14.04 LTS

If you are a Skype user in Linux, you would have noticed that there is no way of deleting the chat history, which is readily available in Windows. This has already been reported to Skype team by a few users before.

If you are wondering how to remove the history locally, this below answer from askubuntu.com will be helpful.

I was instructed by Skype customer service to do following:
  1. Go to Options -> Privacy and set "Keep chat history for.." to Disable History, then sign out & sign in.
  2. Go to $HOME/.Skype/my_skype_name/ and delete only main.db. Sign out & Sign in.
It worked.


Not sure why this was not the accepted answer. Works perfectly without a windows VM. However, it is strange that Skype team did not attempt to fix this glitch yet.

Wednesday, September 2, 2015

Memories of Croatia

View from the apartment in Rijeka
I often find it hard to fix my mind on whether to visit a new place, or a place that I have visited and enjoyed a lot once more. I visited Stockholm for the 3rd time recently for the EMDC Summer Event 2015. That was the last EMDC event as 2014 was the last intake of EMDC. I stayed in Stockholm for just 4.5 months. Still it left very nice memories, and going back early this summer in May and now again in August gave life to strong memories of 2013.

So far I have lived in Colombo, Lisbon, and Stockholm. Since I am still in Lisbon, I do not miss it right now. I also have lived in Rijeka, Croatia for 22 days. Though that was a very short period, I had a routine life with cooking, working, and going to the nearest super market. I also had some time to travel during the weekends, to the nearest cities. It was a short-stay. But Rijeka is clearly recorded in my mind. In the future, if I ever go back to Rijeka, I will get the memories back. I do not think I will ever go back to Rijeka, as I do not foresee the reason. But I cannot say for sure. In 2013, I never would have guessed that I would go back to Fejan in 2015 for another summer event.

My memories of Croatia includes working with my computer with the noise of frogs, while sitting outside the University of Rijeka in the stair case, in the mid night! They just close the faculty by 10 pm, and I did not have internet connection in my big and beautiful apartment (that was supposed to be a professors apartment. The topmost floor of the students' dormitory. Loved it). All the COST actions of the same program are listed here, including mine.

During my second trip to Stockholm, I did not pay a visit to KTH main campus. This time, I did. However, I did not visit Kista even this time. Kista is where I lived during my stay of 4.5 months in Stockholm. I stayed in the student apartments in the upper floors above a shopping mall.

In 2013, I came back to Lisbon two times for short trips, from Stockholm. In 2015, it is from Lisbon to Stockholm, two times. I admire the random patterns that appear in my life.

ShareLatex and local compilation of Latex

ShareLatex is good at swallowing the compilation errors and still producing the correct PDF. However, when locally compiling, the local errors often prevent the compilation. For example, TexStudio often fails for similar or same errors. Typing "Enter" upon encountering such errors will make the compilation proceed, regardless of such error reports.



! Missing $ inserted.
> Check empty or blank lines between the \begin{equation} and \end{equation} tags.

! You can't use `\eqno' in horizontal mode.
> Check the closing braces in the equations.

! Missing $ inserted.

                $
l.112 $\forall$ n $\in$ $\mathbb{Z}$^{+}: $C_
                                             {Nn}$ represents the coordinato...

> Changing
$\forall$ n $\in$ $\mathbb{Z}$^{+}: $C_ 

into
$\forall$ n $\in$ $\mathbb{Z} ^{+}$: $C_
fixed this.

Tuesday, September 1, 2015

A lunch can never get unhealthier

The lunch at Trst, Italy
I am a big fan of summer. Most probably because I live in a country where the summer is sunny and pleasant, where winter and autumn are cold and wet. Spring is just the anticipation to summer. We never really have well-defined seasons in Sri Lanka, unlike Europe. It is easier to remember the events with the right month that happened thanks to the seasons.

This summer was considerably hot in this part of Europe. I came to Europe for my masters program EMDC, when the summer was almost finishing, in 2012. I was in Sri Lanka during most part of the 2013 summer. I was in Europe for 2014 summer completely, completing my EMDC and beginning my PhD, EMJD-DC. So in fact, 2015 was just my second complete summer in Europe.

My short trip to Trst, Italy was remarkable. It was terribly hot in Trst. I never thought that I would experience a weather hotter than Colombo, in Europe. I was proven wrong. I am not a fan of Italian food. I however was eating all unhealthy food and ice cream during my short trip. :)

Sexism in the viral social media "motivational quotes"

My Sri Lankan Version *
Your naked body should only belong to those who fall in love with your naked soul.” ― Charles Chaplin.

The above is a message circulated as a viral image by many in Facebook. The message comes written on top of a considerably attractive female, subtly sexualized and directing this advice towards the female members of the network.

As pointed out by many, your body belongs to you; not to anyone else. Nevertheless, just to balance, I have  composed and released this image, which is a Sri Lankan and less sexist version of the original post.

The original viral image

We have a long way to go, to grow up and overcome this imbalance.

 * Special thanks to Kusa Paba crew for the image of the man in the photo. No copyright violations intended.

Google+ cannot get creepier

Google+ just keeps repeating,
"Complete your profile
Are you in a relationship?
Have a special someone? Let the world know."
Why should I "let the world know"?

They should at least have made it less creepier by mentioning "let your friends know". Also showing 75% just to induce you to make it 100%.