Sunday, May 25, 2014

Never Ending Story







ඉවර නොවන කතාන්දරයක් ("Ivara Novena Kathandarayak") the translation of "Never Ending Story" was a book I got from our library long time ago when I was a kid. It was started truly as an never ending story with a magical and mystic touch, and its heavy appearance support that thought too for a seven or eight years old kiddie me. But anyway finally it was ended like always a book could be. It will be a fascinating thing, if you can have a story on your hands that would never ends forever, so that you can read it everyday as your life moves on. 



Walter Isaac's Steve was another never ending story I recently got from last year Sept and started reading. And finally I ended it few days ago.  "Unleash your creativity" (the essay of our Peera). Those words were kept haunting my memory all through the reading. Wonderful book to read and something to learn about product revolution mastery all through the history line.
Jony Ive, the man behind the mask... Simplicity the most sophistication.... Technology vs street of the arts harmonization....
And it was not about making things, but all about make people making what need to be made.






PS: When I gone through the net to memorize the childhood fantasy never ending story, see... I found a movie of it, and a song. And another magical storybook I once read, hopped into my mind. "Lionheart Brothers". And it has a movie too.
I guess these things should remake now with that Narnia look and feel.





Wednesday, May 21, 2014

Internet & Secrets




There was a time people used to have personal diaries to write their day-to-day stuff, mostly the feelings. Whatever the things come across in their mind, they write it as a memory or to freed their heads. Like Anne Frank did. Some called it a journal, some say a scrap book, but whatever it was, it is private, a secret, among themselves. It's hidden thing from the public. A closed environment. 

But if you take the situation in nowadays, with the emergence of internet and technology, we can see people are being more open when they are expressing their feelings over the web. I guess the intangibility and tangibility factor create a great impact when considering why people have two different notions when dealing with the two ways.

Found a great quote when I go through the lecture notes for the subject Security.
"If you reveal your secrets to the wind, you do not blame the wind for revealing them to the trees."
- Kahlil Gibran -
What we say over the web, who knows what or when or where could it be lead us. So all what we can say is, be aware.

Monday, May 19, 2014

ඇගේ සිනහව

එළඹි මැදියම් රෑ
ඇරුණු කවුළුව අසල
අසුන්ගෙන පහසුවට
ගෙවන්නට මොහොතක්
නිසසල සුවයෙන්
සැරසී හිඳ ගතිමි

රැය පිහින මද පවන
සිසිලසයි සීතලයි
හමා එන සුළං රළ
ගත පුරා පිනා යයි

දුටුවෙමි ඈ මඩල
පිරිපුන්ව වටකුරුව
හිනැහුනා මා සමඟ
නාදුනන ශ්වේත රුව

අහස් කුස ලංකාර වේදිකා තනාලා
තරු රැඟුම් අතර මැද  මා සමඟ හිනැහුනා

හිනැහුනේ මා හටද?
නැතිනම් තවකෙකුට?
ඈගේ රැඟුම් දැක
ප්‍රීතියෙන් පිනා ගිය
සිනහව එ මට දුන්
කීයකට තවත් නම්
යුග කල්ප කාලයක්
දුන්නාද ඔබ?


Tuesday, May 13, 2014

Thank you Miss Potter


Miss Potter and Mr Norman looking at their first print.



It seems like a decade has been gone after the last visit to the world of Arta. As far as I can remember, in the last visit, we wandered through the untouched ancient Egypt. Thankfully I'm step inside to the world again. After a long long time. Feel so wonderful to be back again. Hi folks at Arta, did you missed me!!? Anyway I'm here now, all in one piece. Never going to loose you all again.

Frame 2 with Adobe Flash


It's fun to refresh the memories through flashes as the 1st step. I mean with adobe flashes. (gosh! ! World has moved without me. It's not Macromedia now. Anyway not a big difference) And I was right place at the right moment, when it knocked the door. Story-boarding!! And it flashed right on me. Thanks to Naai, my friend. Wish your demonstration best of luck. Those flashes reminded me my 1st macro flashes with layers, masks, convert to symbols and many more. Nice to be here again. There is a long way to go.


Book is published.

So there I met this nice lady Miss Potter with good inspiration. aah..!! And Obiwan Kenoby was there too. BBC Films, You are so great! It was so wonderful to see both of them in a nice little plot as in the Down with Love.

"Let me teach you how to dance". Guess what, I learned it.

Wednesday, May 7, 2014

Saving Mr Banks

If you go deep down each and everyone's lives underneath, you will find a wonderful story-line among the stories of their lives. It may not appears as an classical movie you see at cinemas with background scores and touching dialogues, if you see from the water above. But if you are a diver, an imagineer, your powers will brings you a fascinating unbelievable colors beyond the ocean with  background scores humming in your ears.





Saving Mr Banks gives you the perfect example. The story of how Mary Poppins inspired every kid in the Disney town. Who is she, and why was she there. Who was behind her as well as in-front of her. You will get all the answers for your all sort of questions about her, and few other facts about every kid's favorite, Uncle Walt (Tom Hanks). No words to describe how the story-line of it, was harmonized to the reality. If I may say, Perfectly superb!! 


PS :
There are lot to come in the line from BBC films.

Sunday, May 4, 2014

Cryptanalysis - Part 2

Yesterday we stucked in the 3rd exercise and we realized it cannot be done with the same previous approach. Let's see if we can use the same Ceaser cipher, but this time using a backward approach rather than a forward approach. Therefor we need to change our "createAlphabet(char replaceWith, char replaceTo)" method as follows.

Ok!! now we are ready for the transmission. Let's start with choosing the character "O" to replace the maximum countable character "U".

Viola!!

THE COOK WAS A GOOD COOK AS COOKS GO AND AS COOKS GO SHE WENT

By Saki



Cryptanalysis


Hurrah!!!! Finally implemented the algorithmic code to decrypt a cipher text message without looking at Internet. (Internet sometime makes you lazy nutshell as a calculator sometimes)

The exercises taken from the book "Security in Computing, Fourth Edition By Charles P. Pfleeger". It doesn't say whether it was Substituted or Transpositioned, you have to find it by yourself by performing various test. All that was given is ONLY the cipher text. KaBooom...!!

Cipher Text : fqjcb rwjwj vnjax bnkhj whxcq nawjv nfxdu mbvnu ujbbf nnc

Let's start with the easiest. The Substitution with Ceaser cipher which is a mono-alphabetic cipher.



From the above code segment, first we captured the ciper text using a scanner, so we can enter whatever the cipher text we want to decrypt through the console. Then we arrange it as a character array and looped it to count how many characters are there in the ciphertext for each character. This was done for the displaying purpose. But the important, and most necessary thing we do is, through the loop, we identify what is the character with maximum counts. So for the above code segment we get the following output.

  : 9
A : 2
B : 5
C : 3
D : 1
F : 3
H : 2
J : 7
K : 1
M : 1
N : 7
Q : 2
R : 1
U : 3
V : 3
W : 4
X : 3


max char : J

"J" is the character with maximum count we first encounters in the text. 

People who involved with cryptography for a long time had identified that the four letters A, E, O, and T account for approximately 40 percent of all letters used in standard English text. So this "J" could be either 1 of these 4 characters. So next what we are doing is replacing "J" with 1 of these 4 characters and create the new alphabet. Let's start with "A".


If we go through this createAlphabet(maxChar, choosedChar) method we can findout how the new alphabet was created according to the Ceaser cipher using the fact that the English alphabet has 26 characters.




So now with the second code segment we can get the following final output. 

Original Text : WHATS INANA MEARO SEBYA NYOTH ERNAM EWOUL DSMEL LASSW EET

If we analysed the text we can identify that the text include some meaningful words without meaningful separation. Let's see manually if we can separate the words.

WHATS IN|A|NA ME|A|RO SE|BY|A NY|OTH ER|NAM E|WOUL D|SMEL L|AS|SW EET

WHATS IN A NAME A ROSE BY ANY OTHER NAME WOULD SMELL AS SWEET

Victory!! We nailed the Romeo and Juliet. "what matters is what something is, not what it is called." 





Check whether you got the following answers for other exercises. And see where does the messages comes from.


2) Cipher Text : oczmz vmzor jocdi bnojv dhvod igdaz admno ojbzo rcvot jprvi oviyv aozmo cvooj ziejt dojig toczr dnzno jahvi fdiyv xcdzq zoczn zxjiy

Max Char : O - 18 counts 

Replaced By : T

Plain Text : THERE ARE TWO THINGS TO AIM AT IN LIFE FIRST TO GET WHAT YOU WANT AND AFTER THAT TO ENJOY IT ONLY THE WISEST OF MANKIND ACHIEVE THE SECOND


By Logan Pearsall Smith

3) Cipher Text : pbegu uymiq icuuf guuyi qguuy qcuiv fiqgu uyqcu qbeme vp  

O.. Oh..O!!! now it's time to change the approach. What approach should we take now?





PS : I found a nice little tool called SyntaxHighlighter to embed source codes nicely on the blog posts. Isn't that look smart.