Feedback

All your comments are welcome at https://gihan.me/contact/ or mirror

Wednesday, December 26, 2018

Internship predictions

This post is to archive a set of hilarious hypothetical scenario where a few students in our batch will go for internship, will piss off all the coworkers and be scolded in the following words!

Harshana
මේ පණ්ඩිත කතා කිය කිය ඉන්නේ නැතුව මොනවා හරි කරපන්කෝ!

Podi rama
දෙයියනේ දැන්වත් ඔය බොරු කිය කිය ඉන්නේ නැතුව මොනවා හරි කරපන්කෝ!

Rahal
ඔය කෙල්ලෝ කොහෙවත් යන්නේ නෑ. වැඩක් කරපන්කෝ උන්ට පාඩුවේ ඉන්ඩ දීලා!

Punky
යකෝ දැන් දවස් 5ක් මොනවාද ඔය පොඩි වැඩේ කරන්නේ. උඹට කිව්වේ printf එක හදන්ඩ කියලා නෙමෙයි තියන එක ගහන්ඩ කියලා.

Chandima
මැනේජර් මහත්තයා මාරු වෙලාද?

Wednesday, December 5, 2018

Sentimental inclinations

Operating systems lecture:

Lecturer: Are there any advantages of writing threaded programs for a single core computer with no hyper-threading capability?
Me: There is! We humans have a sentimental inclination to implement the human thinking as if the problem could be solved in parts and threaded programs satisfy this sentimental need.
Lecturer: I don't think the compiler writers thought about the sentimental needs of people.
Me: But why didn't they leave computers at machine code? That was the sentimental attraction towards human like languages.


Some random discussion with pure mathematics lecturer:

Lecturer: Patterns within integer sequences exist in the universe. Humans have a special ability to find these patterns than any machine.
Me: Are integers or their patterns that important to the universe?
Lectuer: Must be. We can use the integer set to extend up to the rational set and probably the reals.
Me: But don't you think that integers looks important to us because of our sentimental attraction towards them?
L: How come?
Me: We developed this sentimental need to interpret everything based on integers because we were a counting civilization. Think about corals! if not for fish they would not have any reason to count integers. Corals are not individuals. The water around them is continuous. They would not have fallen in love with integers the way we did. For them, integers would not be something important out of reals. There are two books by Arthur C Clerk and Ian Stewart discussing this.
L: Interesting.

Tuesday, September 25, 2018

My Computers

I have owned 4 computers for my use this far.

The first one was a Pentium I, 200MHz, 64MB RAM, 2MB VGA, 2.25GB Hard disk computer with windows 98 running on it.

Next was a Pentium III, 933MHz, 128MB RAM, 32MB VGA, 10GB hard disk one. I ran Windows xp side by side with Red Hat Linux. Later I updgraded the computer to a 40GB hard disk and a 384MB RAM and still ran the same operating systems.

Third in line was Core 2 Duo, 2.4GHz, 1GB RAM, 128MB VGA, 160GB hard disk system. I ran windows 7 and Ubuntu (I think it was 8.4) on it. Later I upgraded it to windows 8 and then to 8.1.

Today I use a Core i5 2.7GHz, 4GB RAM upgraded to 8GB, 2GB VGA, 500GB hard disk system. I ran windows 8.2 and then upgraded to windows 10. Along with it I ran Linux mint, replaced by Ubuntu 14.04 and then replaced by xubuntu 16.04.

In most of these systems even though I has both windows and linux operating systems I used the GUIs. I had no idea what the command line was capable of!

Things changed when I had to use the HP-GPU server at the university. I HAD TO do everything with the SSH. It took some getting used to (I tried a lot to work with small apps in place of SSH --  a file client to drag and drop instead of scp, window forwarding instead of the command line etc:). But somewhere down the line I understood the command line to be more comfortable than all the GUI stuff.

Today, I dont have desktop environments installed in anything except my laptop. All the servers and the single board computers I use are running with command lines. A large amount of work on the laptop is done with the command line as well :-)

This is the fun part. If I had learnt the power of the command line when I had my first computer, the chances are I would still be using the Pentium I!

Saturday, February 24, 2018

ආදර වස්තු

I have been to stage dama's at Prof. Ediriweera Sarathchandra open air theater at University of Peradeniya only for only a very small number of dramas. Despite the "wala" being all that prestigious and everything I find the 2 hour buffering period (have to stay there from 5-7 until the drama starts) and the 30 min non-skip-able advertisement period too much for a 90 min drama.

But this week was special because the drama had Thumindu Dodanthenna in it! (and the drama was staged on 14th February).

Notable lines :-)

"ඔයා ඇතුලේ හිටපු රැඩිකල් කෙල්ලට නම් මම තාම ආදරෙයි. ඒත් ඒ දවස් වලත් ඔයා ඇතුලේ හිටපු සාමාන්‍යය ගැහැණිය මතු වෙද්දී නම්, මම කියන්නේ නෑ එපා උනා කියලම. ඒත්..."

I have a lot of friends who claim to be /seem to be /are out of the box thinkers -- The misfits, radicals, revolutionists, poets, writers and all sorts of cool ones. And this is the story of most of them!

Most of these people are in love with the idea of being in love with a special person or having an "unusual" relationship. But when it comes to the actual person they are with, they ignore the not-so-interesting parts. They fail to notice how the radical girl (or boy, or the relationship) is intertwined with the usual/average parts -- and how they should accept both parts equally; if they are to ever make it work. Best case, they consider the relationship with the not-so-interesting personality as the "price" they pay for the interesting bits. Sad! Isn't it?



Tuesday, January 30, 2018

My stance on SL Local Authority Elections 2018

SL Local Authority Elections 2018
Given that there is no party which,
0. Has not compromised their long term principles for the sake of short term benefits (benefits including ones for their party and the country).
1. Is not maintaining it's vote base on racism and religious differences.
2. Accepts the need for a secular constitution.
3. Wants to drift the country to a centralized economy (at least as a long term goal)
6. Believes in gradual administrative changes to attain that state instead of armed struggles.
4. Will take steps against corruption for real (including bringing out the past cases and taking steps to avoid future cases).
5. Will take steps against the government agency violence for real (including bringing out the past cases and taking steps to avoid future cases).

NSSP was all fine. They never compromised their principles on economy or society. I personally believe in with their right to question the SL military conduct as well. Given that SL "peace keeping forces" have never come clean out of brutally suppressing the uprisings in the past(1971,89) it is anyone's right to question them in a future case. But NSSP is making way too much weird accusations as to what happened in international stages without actual facts and seems to be overselling minority matters.
In a recent interview Dr.Bahu is saying "we should let go of this central bank corruption since the present government is taking good steps support minorities in the country." which is a way too much of a COMPROMISE for a party with a history of staying true to their values.
Therefore, I will no longer accept them as a suitable party to vote for. (even if I did, it is not like they are competing on every place)
I would most probably stay home instead of going to vote. (I know it is bad,selfish or whatever. But I have severe issues when it comes to compromising)
Foe everyone, do not vote for racist parties. We don't need them to create civil unrest once again so their vote bases would consolidate in long term.
For those who are not as sticking to ideals and those who believes these election as all about practical solutions for practical problems in local authorities for the next 4 years or so, obviously JVP!

Sunday, January 21, 2018

After all this time ♥

I find it interesting to visit cemeteries for the sake of architectural beauty of tombstones and the poetic beauty of their engravings. The best place in Kandy for both these metrics is the Mahaiyawa Cemetery which is filled with tombstones of different cultures, eras, sizes, material etc. But this post is not about the Mahaiyawa Cemetery but a lesser known one.

Kandy war cemetery is located in "Deveni Rajasinghe Mawatha" which most of you will not know by its name so let me drop a pin.  This is the burial ground for British military personnel who died mainly in World War 2 (These are not only british but Sri Lankans, Indians, Canadians, East Africans etc) and one person who dies in World War 1. The following (links-02) are the links for information about the cemetery (the objective of this article is not to educate you about the cemeteries whereabouts.)


I first visited this place 11th of March 2016. Bellow are a few photographs from the visit. As you will see this graveyard has a uniform style for tombstones and a well planned architecture for the whole place. (as expected out of military maintenance.)




And this was the tombstone of D.H.Groves who died at the age of 27 in 1942.


And there was a wooden cross places near the tombstone, which read:


In loving memory of Dennis.
Still missing you after all this time.
~ Your sister Stella.

If Dennis was 27 years old in 1942 he would have been 101 years old by 2016. Assuming an age gap of not more than 10 years, Stella would have been 91 years by the time she visited this grave to place the cross.

A 91 year old British woman fying over 8000km s to Sri Lanka to visit her brother's grave even after 74 years and claiming to "still miss him after all this time" is worth blogging about  :-)


------------------------------------------------------------------------------------------------------
Note: I am aware of other rational explanations such as
1. Their whole family lives in SL since colonial era. This even explains how he died in action in SL.
2. Since this cemetery is maintained by Commonwealth Graves Commission she could have just handed over the cross to their office in UK.

Still, let us go with my version.

link-01: Pin
https://goo.gl/maps/6f51ZaUhHqr

links-02
https://www.cwgc.org/find-a-cemetery/cemetery/2009501/KANDY%20WAR%20CEMETERY
https://en.wikipedia.org/wiki/Kandy_War_Cemetery
http://www.lankalibrary.com/geo/warcemeteries.htm

link-03: Dennis Groves
https://www.cwgc.org/find-war-dead/casualty/2111845/groves,-dennis-harry/





Wednesday, January 17, 2018

Numerical analysis

Since this blog is not famous, number of people who has the url is less than 10 .and even they are not returning readers this blog is more or less just a journal for me to write what I wanna archive for later. Given that most of the compositions here have something to do with this girl, here is another one.

Even if someone read this, I am more than sure they will not understand this. You must have knowledge about context on two fronts to understand this. First-- all this smiles, analysis blah blah blah stuff. That is a long story that I am not going to write now. Second-- why is this all about numerical techniques? This birthday wish went with a copy of "Applied Numerical Methods With MATLAB by Steven C Chapra".

All that numerical approximations with splines to model the most expressive smile, which did give good enough predictions (as numerical is capable of),
And 
The obvious fact that no approximation is good enough to uncover all its hidden secrets (as numerical is of limited accuracy),
And 
The realization that the beauty of it could never be quantified algorithmically! (as the beauty of the universe is beyond the scope of comprehension for numerical analysis)
Happy birthday! 

Wish you another year full of reasons to put $\lim_{x\to\pm\infty} P(x) \to \infty  splines on your face :-) with good grades, health, an internship and everything :-)

This is my first Latex post on blogspot.

Explanation on what the equation says,
$\lim_{x\to\pm\infty} P(x) \to \infty means that the function should go towards positive infinity on both ends of the x axis. Same as the traditional "smiling emoji" where the lips are curling up on both ends.

Heart ♥ reacts

Do you remember when people were afraid to display affection, to express love was taboo and the FB HEART REACT changed everything?