Pages

Friday, June 28, 2013

Nice Tamil Song !


Munbe Vaa, Yen Anbe Vaa, Oone Vaa, Uyire Vaa
Munbe Vaa, Yen Anbe Vaa, Poo Poovai, Poopom Vaa
Naan Naana? Kaetaen Ennai Naanae
Naan Neeya? Nenjam Sonnathey
Munbe Vaa, Yen Anbe Vaa, Oonu Vaa, Uyire Vaa
Munbe Vaa, Yen Anbe Vaa, Poo Poovai, Poopoam Vaa
Rango, Rangholi, Kolangal Nee Pottal
Kolam Pottaval, Kaigal Vaazhi, Valiyin Satham, Jil Jil
Rango, Rangholi, Kolangal Nee Pottal
Kolam Pottaval, Kaigal Vaazhi, Sundara Malligai,
Santhana Malligai Sithira Punnagai Vannam Intha
Ahaaah…
Poovaithai, Poovaithai
Nee Poovaikoar Poovaithai
Mana Poovaithu Poovvaithu
Poovaikul Thee Vaithaai
Ohohohohoh…
Thaenee Nee Mazhayil Aada
Naan Maan Naan Nanaithu Vaada
En Naalaikkul Un Ratham Naadikul Un Šatham Uyirae..
Pøarum Oru Šila Naalum
Thaniyenaa Aada Tharaiyinil Neendhum Mmmm..
Anbe Vaa Yen Anbe Vaa.. Oønu Vaa, Uyire Vaa
Naan Naana? Kaetaen Ènnai Naanae
Naan Naana? Kaetaen Ènnai Naanae
(Munbe Vaa..)
Nilla Vidam Vaadakai Vaangi,
Vizhi Veetinil Kudi Vaikalaama
Naan Vaalum Veetukul, Verarum Vanthaalae
Thagumaaa??
Theanmallai Therkuku Nee Thaan,
Unthan Thølgalil Idam Theralaama
Naan Šaayum Thølmael, Verørum Šayinthaalae
Thagumaaa??
Neerum, Šengula Chaerum, Kalanthathu Pøalae
Kalanthava'laa..
(Munbe Vaa..)
(Rangø, Ranghøli..)
Don't forget to become a follower of SeethaGangula.!!!

Monday, June 17, 2013

Important things about "Chicken Pox"



Chicken pox is an air borne disease which spreads through coughing sneezing of patients. It is a virus infection considered as highly contagious. A patient will find blisters all over the surface of his body and some times in throat, nose, oral cavity like internal areas as well. The early symptoms in adolescents and adults are nausea, loss of appetite, aching muscles, and headache. It is also called as "Herpese Zoster".     Anyway chicken pox is one of the few viral diseases that has medicines for treatment.The drug used is "Acyclovir" For adults in Sri Lanka, the normal dose is 800mg x 5 times daily x for 5 days

                           However in pregnancy and in elderly getting chicken pox may increase the risk of developing lung infections (sometimes pneumonia). Therefore they also should be treated with Acyclovir. But for children between 1-10 years, it is not necessary to treat with medicines as they will show minor symptoms. It is better to get immunity naturally coz it will last for a long time. If anybody wishes to take medicines, the treatment should be strated with appearance of the first blister. Because the ultimate goal of taking drugs is to minimize the amount of blisters appearing.        
                Other than Acyclovir , there is a vaccine called " Varizella Zoster"available that will prevent one from getting chicken pox. It is a live vaccine having two doses. second dose is given after 6 weeks from the first one. Pregnancy should be avoided by females for 3 months after vaccination.

Don't forget to become a follower of SeethaGangula.!!!

Paracetamol poisoning

Paracetamol is considered as a popular over the counter medicine used as a pain killer. The normal dose is 2 tablets 6 hourly which will be add up to maximum of 8 grams  per day. But if somebody take more than 10grams, it will lead to fatal liver failure condition. Paracetamol is considered as a hepatotoxic drug when it is used exceeding the limits.
However what happens when somebody takes paracetamol overdose would be like this. Paracetamol will be metabolized into 3 metabolites where one of them is extremely toxic to the liver.This is called N-Acetyl Benzoquinomine (NAPQI). The body naturally has sufficient amount of enzyme called glutathione to eliminate NAPQI with urine when it comes to the normal dose(maximum of 4 grams). But if there was any extra amount  it will not be eliminated from the liver due to lack of sufficient glutathione. This can be very toxic to the liver and will finally lead to acute liver failure.
                   A person who take paracetamol for suicide purposes will not find anything happen to them in the first 24 hours.(Even though this is the time period that can save the patient, with antidotes) After 24 hours the drug will be absorbed into the blood and start destroying the liver cells. Within 3 days many patients turned into yellow and they have constant vomiting with severe abdominal pain.And then they die with acute liver failure.
    There are 2 antidotes that can save a patient who is hospitalized within 24 hours.
  • N-Acetyl Cysteine Inj
  • Methionine Powder- orally (should be given within 8 hours)
N-Acetyl Cysteine will act as glutathione and will bind with NAPQI to eliminate the toxic chemical with urine. But note that this treatment is not effective after 24 hours.



Don't forget to become a follower of SeethaGangula.!!!

Vitamin B ඌනතාවය, ඔබගෙ මතක ශක්තිය දුර්වල වීමට සහ නිදිමත ස්වභාවයට හේතුව විය හැක.





                   B complex ලෙස බොහෝ දෙනා හදුනන vitamin B, ඔබ කිසිදා නොසිතන තරම් වැදගත් කාර්ය භාරයක් ඔබේ ශරීරයේ මනා පැවැත්ම වෙනුවෙන් කරන බව ඔබ දැන සිටියාද? එය ජල ද්‍රාව්ය විටමින් වර්ග  8 කින් සුසැදි නිසායි සංකීර්නයක් ලෙස හඳුන්වන්නේ.පරිවෘතීය ක්‍රියා නිසි පරිදි යාමනය කිරීමටත්,ප්‍රතිශක්තිකරන පද්ධතිය හා ස්නායු පද්ධතියේ ක්‍රියාකාරීත්වය වැඩි දියුනු කර ගනීමටත්,සම හා මාංශ පේශී සෞඛ්ය සම්පන්නව තබා ගැනීමටත්,සෛල වර්ධනය හා විභාජනය නිසි පරිදි සිදුවීමට සහ තවත් කටයුතු ගනනාවකට Vitamin B වලින් වන මෙහෙය අති මහත්. 
            Vitamin B ඇති අනෙකුත් vitamin අතරින් B12 වලට හිමි වන්නේ විශේෂ ස්ථානයක්.විශේෂයෙන්ම රතු රුධිර සෛල වර්ධනය සහ පවත්වා ගැනීම කෙරෙහි මෙන්ම ස්නායු සෛල හා ඒවායේ ආවරන පටල සෑදීමටත්,DNA,RNA නිපදවීම කෙරෙහිත්, ස්නායු සම්ප්‍රේශක නිපදවීම කෙරෙහිත්, Vitamin B12 වල දායකත්වය අමතක කල නොහැකියි.

                              විටමින් B12 ඌනතාවය ඔබෙන් දිස්විය හැක්කේ... 
  • අධික වෙහෙසකර ගතිය
  • මාංශපේශී දුර්වලතාවය
  • කෙටි හුස්ම ගැනීම
  • නිදිමත ස්වභාවය
  • නිතර අතපය හිරි වැටීම
  • විදුරුමස් වලින් ලේ ගැලීම සහ මුඛයේ නිතර තුවාල ඇති වීම
  • කෑම අරුචිය                                                                            වැනි තත්වයි.

මෙම ලක්ෂන වලින් එකක් හෝ ඔබටත් තිබෙනවා නම් ඔබත් Vit B ඌන අයෙකු විය හැකියි. අනෙක් කාරනය නම් B12 ලබා ගත හැක්කේ සත්ව ආහාර වලින් පමනක් වීමයි. දැඩි ශාක භක්ශකයින්ට මේ නිසා vit B12 ඌන වීමේ වැඩි අවදානමක් තිබෙනවා.සාමාන්යයෙන් B12 බහුලව අඩංගු ආහාර ලෙස දැක්විය හැක්කේ,
  • කිරි ආහාර
  • මස්
  • මාලු
  • පීකුදු
  • බිත්තර
විටමින් B වැඩිපුර ගැනීමෙන් වුවද ශරීරයට අහිතකර තත්වයක් අති වන්නේ නැහැ.මන්ද වැඩිපුර ඇති B පදාර්ථ මුත්‍රා සමග පිටවන නිසා.  B12 ඇතුලුව අනෙකුත් B පදාර්ථ බහුල ආහාරයක් ලෙස යීස්ට් දැක්විය හැකියි. එදිනෙදා ඔබ කරන දහසකුත් එකක් කටයිතු අතරේ මේ දේවල් ගැනත් ටිකක් අවධානය යොමු කරන්න.....





                                                      Achini
       

Don't forget to become a follower of SeethaGangula.!!!

මා හද බැඳ ගත් ඉංග්‍රීසි කවියක්....



           


Whose woods these are I think I know.   
His house is in the village though;   
He will not see me stopping here   
To watch his woods fill up with snow.   

My little horse must think it queer   
To stop without a farmhouse near   
Between the woods and frozen lake   
The darkest evening of the year.   

He gives his harness bells a shake   
To ask if there is some mistake.   
The only other sound’s the sweep   
Of easy wind and downy flake.   

The woods are lovely, dark and deep.   
But I have promises to keep,   
And miles to go before I sleep,   
And miles to go before I sleep.

                20 වන ශතවර්ශයේ ඉංග්‍රීසි සාහිත්යට අතිශය නිර්මාණාත්මක කාව්්ය රචනා රැසක් තිලිණ කල අනර්ඝ සාහිත්්යධරයෙකු වන,Robert Frost මහතා විසින් රචිත මේ කවි පන්තියෙහි කවියා විසින් වයංගයෙන් පවසන අදහස ඔබටත් වැටහෙනවාදැයි බලන්න.සාමාන්්ය පෙල ඉංග්‍රීසි සාහිත්ය විෂය මාලාවේ මා සිත වඩාත්ම ඇද බැඳ ගත්තේ මේ කවි පන්තියටයි.
                                                 ජීවිතය පිලිබඳ වූ සදාතනික යථාර්තය මොනවට පැහැදිලි කරමින් රචිත මෙවැනි හරවත් සංකල්පනා වර්තමාන හා අනාගත මානව වර්ගයාට තවදුරටත් පහල වේද යන්න සැක සහිතයි.iphone,ipad කනේ ගසා ගෙන android ගැන සිහින දකිමින් පරිඝනක ක්‍රීඩා සඳහාම පමනක් කාලය වැය කරන,tuition පංති වල උදේ  සිත රෑ වන තුරු බංකු රත් කරමින් සිටියත්,ජීවිතයට ඵලක් වන කිසිත් නොකර ගන්නා බහුතරයක් වූ නවමු පරම්පරාවේ අපේ ඇත්තන්ට  ජීවිතය පිලිබඳ බොහෝ කරුණු වැටහෙන්නට පටන් ගන්නේ, කෝච්චිය ගියාට පසුවය.
                      ජීවිතය සුන්දරයි.එහෙත් එහි නොපෙනෙන අඳුරු පැතිකඩක්ද ඇත.මේ ලැබූ කුඩා දිවි මඟේ, අසීමිතව සැප අපේක්ෂා කරන්නට ගිය හොත්, නොදැනීම තෙරක් නොපෙනෙන අඳුරු ආඝාධයකට අපව ඇද වැටෙනු ඇත.එම නිසා ජීවිතය විඳිය යුත්තේ සීමා මායිම් සහිතවයි.මිය යෑමට මත්තෙන් ලෝකයට අප විසින් ඉටු කල යුතු බොහෝ යුතුකම් ඇත.අප මෙලොව සදාතනික මිනිසුන් නොවන බව සිහිතබා ගෙන සිහි බුද්ධියෙන් කටයුතු කිරීමෙන් දෙලොවටම වැඩදායක අයෙකු ලෙස මිය යා හැකිය.අවසාන වශයෙන් මා සිහියට නැගෙන්නේ ,මෙවැනිම අර්ථයක් ඇති සිංහල ගී පද වැලකි. 

            "ආ මඟ කෙටියි
             යා යුතු මඟ දුරයි
             නිරතුරු නුවනැසින්
            තරණය කල යුතුයි. "

                                                                                                  අචිනි








Don't forget to become a follower of SeethaGangula.!!!

Transaction Processing ගැන ඉගෙන ගනිමු.


transaction management කියන්නෙ   ව්්යාපාර කටයුතු වලට අදාල applications develop කරද්දි අතිශයින්ම වැදගත් වෙන දෙයක්.මූල්්ය,බැංකු සහ e-commerce වැනි ක්ශේත්‍රයන්හි  යෙදෙන බොහෝමයක් applications රදා පවතින්නෙ මේ සංකලප මත.අපි අද ඉන් කිහිපයක් ගැන ටිකක් හොයල බලමු.මේ ලිපි මාලාව කොටස් කිහිපයකින් ඉදිරිපත් කරන්නයි කල්පනා කලේ.

  1.   transaction එකක් කියන්නෙ මොකද්ද? මොනවද මේ ACID ?
  2.   transactional applications develop කරද්දි එන ගැටලු මොනවාද?  transaction     management middleware වැදගත් වන්නේ ඇයි?
  3.   transaction processing application එකක සාමාන්්ය ආකෘතිය මොකක්ද? මේ ආකෘතියේ විවිධ කොටස් වල කාර්යභාරය මොකක්ද?
  4.  transaction management systems හා බැදි සංකල්ප මොනවාද?
  5.   transaction management විශයෙහි ලා සැලකෙන standards මොනවාද?
transaction එකක් යනු කුමක්ද?
enterprise applications වලදි නිතරම,,, application එකේ කොටස් ගනනාවක් පුරා පැතිරී පවතින දත්ත වලට සමගාමී ලෙස (concurrently) access කරන්න වෙනවා,එම දත්ත මත විවිද operations-ක්‍රියාවලි සිදු කිරීමට.එහෙම කරද්දි ඒ දත්ත වල පරිපූර්නභාවය(integrity) රැක ගන්න ඕනා, විශේෂයෙන් මෙන්න මේ තත්ව යටතේදී,

  • application components ගනනාවක් මගින් එකම දත්ත මූලයක් (resource එකක්) access කරන කොට.
  • පැතිරී පවතින  දත්ත මූලයන් (resource) ගනනාවක් ,එකම application component එකෙන් access කරන කොට.
මෙවැනි සිද්ධියකදී, පැතිරී පවතින data resources මත ක්‍රියාවලි ගනනාවක් සිදු වෙනවා විය හැකියි.ඒ හැම operation එකක්ම එකම කාර්ය ඒකකයක [one unit of work] කොටස් ලෙසයි සලකන්නෙ.එක් එක් operation එක හරියට සම්පූර්න කිරීම හෝ නොකිරීම මත අදාල කාර්ය ඒකකය සිදු වෙනවද නැද්ද කියන එක තීරනය වෙනවා.එක operation එකක් හරි fail වුනොත් එම කාර්ය ඒකකය (transaction එක) සිදුවෙනවා  බොරු. මේ ප්‍රශ්නය තවත් උග්‍ර වෙන්නෙ,

  • data resources රැසක් මත යැපෙන, පැතිර පවතින application components ගනනාවක් පුරා අනු ක්‍රියාවලීන් දිවෙන ආකාරයෙන් පිහිටන transactions වලදී ..
  • එම අනු ක්‍රියාවලීන්(operations) එකක් පසු එකක් ලෙස හෝ,සමාන්තර ලෙස ක්‍රියා කරවීමට නිසි ලෙස කාලය වෙන් කරගත යුතුයි වගේම,පාලනයක් තිබිය යුතුයි.(coodination and synchronization) 
එක් එක් කාර්ය කොටස නිසි ලෙස සම්පූර්න වීම, application එකට බල පානවා.හදිසියේ වත් එක කාර්ය කොටසක්( transaction )හරි  fail වුනොත්, එයට සම්බන්ධ වූ සියලු data resources වල අගයන් fail වූ transaction එක පටන් ගන්න කොට තිබුනු මුල් අගයන් කරා ගෙන යා යුතු වෙනවා. transaction සංකල්ප හා transaction කලමනාකරන විධි දැන ගන්න ඕන වෙන්නෙ මෙන්න මෙතනදි.

"""A transaction is a unit of work """    transaction එකකට මෙන්න මේ ගති ගුන තියෙන්න ඕනේ.

  • Atomicity        - transaction එකක් එකක් ඉවර කරනව නම්, ඉවර වෙන්නම කරන්න      ඕනා.කර ගන්න බැරි වුනොත් එච්චරයි.අතර මැදි තත්ව ගනන් ගන්නෙ නෑ. එක්කො 1, නැත්නම් 0 වගේ.කිසිම සැකයක් තියෙන්න බෑ. ඒවගෙම transaction එකක් fail වුනාම ඒකට සම්බන්ද වුනු සියලු data නැවත පෙර තත්වයට ගෙන යා යුතුයි.
  • consistency         - data  මත අප විසින් විචල්ය නොවිය යුතු යැයි define  කරනු ලැබූ (integrity constraints) උදා: primary keys,foriegn keys,not null,unique constraints properties transaction එක පුරා දිගටම ආරක්ශා කර ගත යුතු වෙනවා. එනම් transaction එකකින් පසු data තිබිය යුත්තේ ස්ථාවර මට්ටමකයි.තව දුරටත් කියනවා නම් transaction එකකින් අනතුරුව system එක පරිවර්තනය වෙන්නේ එක්තරා ස්ථාවර මට්ටමක සිට තවත් ස්ථාවර මට්ටමකටයි.
  • Isolation            -එකම පරිසරයක් තුල සමගාමීව execute වෙන transactions වුනත් එකිනෙක මත බලපැමක් ඇති නොවන ආකාරයට ස්වාධීනව සිදු විය යුතුයි.[1] එනම් transaction එකක් අතරතුරදී එහි අතරමැදි තත්වය (state) අනෙකුත්  transactions  වලට නිරාවරනය නොවිය යුතුයි.  [2] එකම දත්තයක් මත එකවිට සම ගාමී transactions දෙකක් සිදු විය නොහැකියි.මෙය ඉටු කර ගැනීම සඳහා DBMS විසින් යොදා ගනු ලබන්නේ Locking කියා ක්‍රම ශිල්පයක්.          
  • Durability             -transaction එකකින් පසු එහි බල පෑම පද්ධතිය මත බල පැවැත්විය යුතුයි.


මෙම ACID properties මගින් තහවුරු කරනු ලබන්නේ transaction එකක් කිසිදා අසම්පූර්නව නොපවතින බව පමනක් නොවේ.data අස්ථාවරව නොපවතින බව,සමගාමීව සිදු වන transactions  එකිනෙකින් ස්වාධීන බව, වගේම එහි බලපෑම පද්දතිය තුල රඳන බවත් කියවෙනවා.

transactions ගැන තවත් කරුනු අලුත් post එකකින් කතා කරමු.
                                                 

                                                                                    අචිනි  
                                                                                          







Don't forget to become a follower of SeethaGangula.!!!

Static Binding VS Dynamic Binding



   Hope you are familiar with the Fish tank example by now.If I brief it a little we created a Fish class which is the parent class or the super class of several other sub classes namely,TankCleaner class,GoldFish class. and we demonstrated our fish tank using the FishDemo class.Thanks to the concept inheritance in OOP, we can extend the super class and inherit its methods and attributes to its sub classes.

So in this way, we can create an object like this.
             ex [1]-----> Fish f1=new Fish();

here, our object name is f1, and it's type of a typical GoldFish.and its reference type also GoldFish.
             ex[2]-------> Fish f2=new GoldFish();
here our object name is f2 and its object type(instance type) is GoldFish, while it references Fish.

           Using the concept overriding, it is possible to insert the  methods available in Fish
class, to its subclasses. Overriding helps us to increase the usability by implementing the same method in different ways. when overriding we have to have the same method signature. [method name and input parameters.return types are not included into method signature.]
  Think about a method available in Fish class called,swim().
               public void swim(){
                           System.out.print("Fish is swimming");
                              }

     And think that there is an overrided method in GoldFish class like this.

              public void swim(){
                           System.out.println("GoldFish is swimming");
                            }

lets move on to our todas topic. if a "f1" object is created as ex[1], and we call the swim method for it like this what will happen??
                           f1.swim();
obviously it will return            Fish is swimming

But think about     f2.swim();  
                   You will se that it will return         GoldFish is swimming


Lets digg into the theory behind this. when running  the second example, at the compile time, the compiler has to think about 2 options whether  to implement the super class's implementation or the sub class's implementation.Actually the the compiler does not decide anything  and it leaves it to be decided at the run time.Since the object is considered as as a real world object, it should be implemented in the real world way.this is decided at the run time. This binding is called , Dynamic binding.

Dynamic binding happens only for methods which are inherited from super classes and overridden in the sub classes.Such method calls are bound, based on their actual object type.

Static binding
If the compiler can resolve the binding at the compile time only then such a binding is called Static Binding or Early Binding.All the static method calls are resolved at compile time itself and hence we have static binding for static method calls.
        Similarly, access to all the member variables in Java follows static binding as Java doesn't support (in fact, it discourages) polymorphic behavior of member variables.
So it is worth to have a clear understanding, that variables are bound at the compilation time.

                                                                         Achini
                                                             



Don't forget to become a follower of SeethaGangula.!!!