Pages

Wednesday, February 18, 2015

Want to Loose Weight?


There are so many methods to loose weight that people try out these days. In this post I'll be talking about medicines available in sri lanka specifically for the purpose of slimming your body. 
           When I think about it most of such drugs are marketed by the importers through attractive TV commercials. But if it is a medicine proven for quality, safety and efficacy on giving results such chemicals are registered as "Drugs" (Medicines) under the sri lankan drugs Act. More importantly such registered drugs cannot be promoted using advertisements to the general public and should be prescribed only by a doctor (except for drugs in schedule I and IIA under the CDDA Act). This brings up the fact that most slimming capsules,tablets and powder sachets that are promoted heavily these days on morning TV programs are not actually registered as a western medicine, but as a aryurvedic product. The reason is probably because they cannot prove the efficacy of the drug, that the content is giving this much of effect for anyone who use this much of amount per a day- They cannot prove it!.

So like I mentioned there are many products coming under aryurvedic category available in sri lankan pharmacies-. products like "SLIMEXOL" from baraka is a product comes in capsule form made by using goraka. There is another product called "AyurSLIM" manufactured by Himalaya(india). Popular products like "SURE SLIM" is also a capsule which i know for fact that now has reduced its popularity. There are capsules made using green tea extracts which is said to be effective than drinking green tea. For example "SLIMGREEN","HIGREEN" like capsules does not give results for everybody in the same way. There are "GTRIM" like sachet form greentea extracts that is promoted as more effective than normal green tea. But as I explained earlier, we cannot gaurantee the effect.

There is one special chemical compound that is registered as a drug in Sri Lanka, is "Orlistat" which comes under the famous brand name "XENICAL". this drug is originally not for slimming purposes. It is actually a Lipid lowering drug. Lypace is the enzyme that is responsible of absorbing dietary lipids from our intestine. Orlistat can inhibit this action of Lypace thereby it prevent absorption of lipids from what you eat. So this is recommended for loosing weight as well. I have seen how people transform their body miraculously by using this product just for several weeks. But as it will prevent absorbing important vitamins from your food it is not recommended to use for a long term. In order to buy this, unlike other products, you have to bring the doctor's prescription.
This is a small summary for weight loosing products available in sri lankan drug stores. I hope this would be helpful for those who are interested.

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

Tuesday, February 17, 2015

ප්‍රති හිස්ටැමින ගැන ඔබ දන්නවාද?

 ප්‍රති හිස්ටැමින යනු ඖෂධ වර්ගීකරනයේදී ඉතා වැදගත් කාණ්ඩයක් සේ සැලකෙන, එදිනෙදා ජීවිතයේදී අප නිතර පාවිච්චි කරන ඖෂධ රැසක් ඇතුලත් කාන්ඩයකි. උදාහරනයක් ලෙස ලදරු අවදියේදී ඇතිවන කැස්ස, සෙම වැනි සුලු තත්ව සදහා බොහෝ විට අනිවාර්ය බෙහෙතක් ලෙස ලබා දෙන "පිරිටන්" මෙම කාන්ඩයට අයත් ඖෂධයකි.
අප ශරීරයේ සම, සිනිදු පේශි,ශ්වාසනාලය, මොලය, ස්නායු වැනි ස්ථාන කිහිපයක හිස්ටැමීන් නැමැති රසායනික ද්‍රව්්ය සඳහා ප්‍රතික්‍රියා දක්වන ප්‍රතිග්‍රාහක පවතියි.මේවා "හිස්ටැමීන්1(H1)" ප්‍රතිග්‍රාහක ලෙස හදුන්වනු ලැබේ.  හිස්ටැමින නිසා ස්නායු වේදනාව,කැසීම,හර්ද ස්පන්දන වේගය වැඩි කොට පීඩනය අඩු කිරීම,ස්වාසනාලය අවහිර කිරීම වැනි දෑ සිදුවේ. ප්‍රතිහිස්ටැමින ඖෂධ මගින් සිදු කරනු ලබන්නේ මෙම H1 ප්‍රතිග්‍රාහක අවහිර කර(Block the H1 receptors) එසේ ප්‍රතික්‍රියා කිරීම වැලැක්වීමයි.

ප්‍රතිහිස්ටැමින ප්‍රධාන වර්ග 2කි. නිදිමත ඇති කරවනසුලු සහ නිදිමත ඇති නොකරන වශයෙනි. ඔබ බොහෝ විට දන්නා Chlorphemramine maleate(පිරිටන්) නිදිමත ඇති කරවනසුලු බෙහෙතකි.
 මීට අමතරව තවත් නිදිමත ඇති කරවනසුලු ප්‍රතිහිස්ටැමින වන්නේ Pheniramine(Avil), Promethazine (Phenagon), Cyproheptadine (Peritol), මිග්‍රේන් වලට භාවිතා කරන Flunarazine වැනි ඖෂධයි.
 නිදිමත ඇති නොකරන ප්‍රතිහිස්ටැමින වන්නේ cetrizine (Cetrizet), Loratadine (Loridine), Fexofenadine (Fexet) වැනි ඖෂධයි. 

ප්‍රතිහිස්ටැමින් වල ප්‍රයෝජන ගනනාවක් තිබුනත් අප ඒවා නිතර පාවිච්චි කරන්නේ
  • ආහාර විෂ වීම් වලදී, 
  • ආසාත්මිකතා නිසා සමේ ඇතිවන පලු සදහා,
  • පීනස වැනි නාසයෙන් සොටු දියර ගැලීම වැලැක්වීමට අවශ්ය විටදී, 
  • මැද කනේ ඇති වන ආසාත්මිකතා වලදී,
  • කෘමින් සපාකැම නිසා එන පලු අඩු කිරීමට,
  •  කැස්ස යටපත් කරීමට, 
  • මිග්‍රේන් තත්ව වලක්වා ගැනීමට,
  •  කැරකිල්ලට, 
  • වාහන වල ගමන් ගැනීමේදී වමනය යාම වලක්වා ගැනීමට වැනි ඉතා වැදගත් අවස්ථා රැසකදීයි.
විශේෂයෙන්ම ඔබ සෙම්ප්‍රතිශ්යාවෙන් පෙලෙන්නේ නම් සොටු දියර ගැලීම නිසා ඔබ විදින කරදරයෙන් ගලවා දීමට  Loratadine හෝ Cetrizine එක පෙත්තකට පුලුවන්.



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

Wednesday, January 28, 2015

C# Text to Voice Conversion-A simple App

Create a new project in visual studio. go to the references under the project folder in solution explorer.
right click on it and ADD a new reference. go to .NET tab and select the System.speech out of the list appearing and click OK. then use the speech.systhesis namespace, so that following code will give u a good output.


here is the code I used.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Speech.Synthesis;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            SpeechSynthesizer ss = new SpeechSynthesizer();
            ss.Volume = 100; //volume must be between 0-100
            ss.Rate = 0; //rate must b between -10 to 10
            ss.SpeakAsync(textBox1.Text);
        }
    }
}

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

Tuesday, December 23, 2014

Just started my Carrier!

After completing all of the academic activities related to my degree, I got the privilege to start my carrier even before I pass out from the university. I always had the dream to work in IFS, the well known ERP systems company and luckily, as I expected i could join to IFS, as a software engineer, after a series of interviews. It was the first interview I attended after completing my degree, and I got selected. There were 17 fresh graduates recruited from my batch, so there was no reason to be nervous on anything.

22nd December was the commencing date, and we were warmly welcomed by the training and HR managers of the company. We had a series of introductory sessions on various aspects of the organization which encouraged us to give our best to company while developing ourselves as a professional. IFS values the work life balance of its employees and I consider that as much more important in the long run. There is a friendly, yet challenging working environment where we can see the satisfaction of its employees at a glance.So from today onwards I'm also an IFSer, a member of a global organization. It's a relieving feeling that finally I'm no more dependent on my parents. Again I think I'm a much more responsible person as well towards my company and society to give my best as a person. and Yes, I'm Ready! :)


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

පියේහි විප්පයෝගෝ දුක්ඛෝ...

අපට අපමණ වූ මිතුරන් සිට ඇත. ඉදිරියටත් සිටිනු ඇත. පිරිසකින් වෙනව යන විට තවත් පිරිසක් මුණ ගැසෙනු ඇත. ජීවිතය නම් එයයි. පෙරපාසලේ, පාසලේ, දහම් පාසලේ, සහ වෙනත් උපකාරක පන්ති වලදී අප කොතෙකුත් මෙලෙස මිතුරන්ට සමු දී ඇත.
        ඇතමුන්ගෙන් සමු ගැනීම එතරම් දෙයක් නොවේ. මන්ද බොහෝ මිනිසුන් මිතුරුකම් පවත්වන්නේ කාරිය කෙරෙන තුරු පමණක් වීම නිසාය. එවැනි ව්යාජ මිනිසුන් බහුල සමාජයක අව්්යාජ කලණ මිතුරු ඇසුරක් ලැබීමට හැකි නම් ඔබ සැබෑ භාග්යවන්තයෙකි.
විශ්වව්ද්යාලයට ඇතුලත් වීමෙන් පසු එවැනි කලණ මිතුරන් රැසක් සමඟ කටයුතු කිරීමට ලැබීමට මම භාග්්යවන්ත වුනෙමි. දෙවන වසරේ ව්යාපෘතිය සදහා කණ්ඩායමක් නොමැතිව සිටියදී අහඹු ලෙස හමුවූ 4 දෙනෙකු සමග කණ්ඩායමක් සාදා ගතිමි. නමින් දැන සිටියත් එතරම් ආශ්‍රයක් නොතිබූ බැවින් මුලදී චකිතයක් තිබුනත්, එය ක්‍රමයෙන් තුරන්ව ගියේ සාමාජිකයන් කල් යත්ම හොදින් දැන හදුනා ගත් බැවිනි. මනෝජ්,DK,ඩිල්ශාන්,රොහාන් සමග ගත කල එම කාලය අත්දැකීම් රැසක් ජීවිතයට එක් කලේ එම වසරේ නව පර්යේෂණ වෙනුවෙන් පැවති සම්මන්ත්‍රනයේදී අපට හොදම පර්යේශණය වෙනුවෙන් වන සම්මානයද ලබා දෙමිනි. සැබැවින්ම ඒ වෙනුවෙන් අපි දිවා රෑ නොබලා වෙහෙස වූයෙමු.

විශ්වවිද්්යාල කාලය තුල එවැනි මිතුරු කැලක් සමග නැවත කටයුතු කිරීමට ලැබුනේ MIT AITI ව්්යවසායකත්ව වැඩසටහනේදීය. මනෝජ්,DK, හැරුනු විට ශ්්යාම්, හා අමිලද සමගින් Online T Shirt Designing ව්යාපාරයක් ආරම්භ කලෙමු. පුරා සති 6ක් පුරාවට ආයෝජකයන් ආකර්ශනය කර ගත හැකි නිපැයුමක් ඉදිරිපත් කිරීමට යෝජනා, සැලසුම් ආදිය ලේඛනගත කරමින්, සුදුසු සැපයුම්කරුවන් සොයමින්, විවිධ පුද්ගලයින් මුනගැසෙමින් ගත කල කාර්්ය බහුල, එහෙත් සුන්දර කාලය දැන් වෘත්තීමය ජීවිතයට අවතීර්ණව සිටින අපට යලිත් අත් විදීමට නොලබෙනු ඇත.

වසර 4ක කාලයක් විදුලි වේගයෙන් ගත වී අවසන් වසරට එලැඹියේ අප 10 වන කණ්ඩායමේ සියලු දෙනාට නව අභියෝගයක්ද එක් කරමිනි. කණ්ඩායම් වි්යාපෘතිය පිලිබද කා තුලත් පැවතියේ මහත් උනන්දුවකි.  එවරද මගේ හුරු පුරුදු මිතුරු කැල සමග සාදා ගත් කණ්ඩායම සමග එම අභියෝගය ජය ගැනීමට සැලසුමක් සහිතව මුල සිටම අපි සූදානම් වූයෙමු. මනෝජ්,DK,දයාන් සමඟින් විවිධ ආයතන හා පුද්ගලයන් සමගින් සබඳතා ගොඩනගා ගැනීමට දේශන වලින් පසු වෙහෙස නොබලා බස් වලින් ගමන් කලෙමු. අවසානයේ නියමිත දිනටත් ප්‍රථමයෙන් එහි සියලු කටයුතු නිම කර ගැනීමට හැකිවිය. 

පාසල් අධ්්යාපනය නිමකිරීමෙන් පසු මා ගත කල ජීවිතය දෙස හැරී බලන විට, මගේ දැනුම, ආකල්ප සහ කුසලතා වර්ධනය කෙරෙහි මා ආශ්‍රය කල මිතුරන්ගෙන් ලැබුනේ නොමද පිටිවහලකි. එවැනි සත්පුරුෂ කළණ මිතුරු ඇසුරක් ජීවිතයේ වටිනාම කාලපරිච්ඡේදයකදී ලැබීමට භාග්්යවන්ත වීම පිලිබදව මම හදවතින්ම සතුටු වෙමි. මේ පෝස්ටුව ලියන්නට සිත් වූයේ ඔවුන් පිලිබද මතකය,මතකයෙන් ගිලිහී යා නොදී සයිබර් අවකාශයේ save කර තැබීම සඳහාය.



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

Tuesday, March 4, 2014

Hypoglycemia- sudden lowering of blood glucose level





Hypoglycemia  is the medical term used for the condition of lowering the blood glucose level below the normal level. Specially this can happen for patients taking insulin as a treatment for diabetes. In fact this is a dangerous adverse effect that can cause even death. Hypoglycemia can be identified by the ketone smell (just like the smell of aanamaalu banana) emitted via patient's exhalations.

Symptoms of hypoglycemia

1. severe hunger
2. weakness
3. headache
4. increased sweating
5. tremor
6. palpitations
7. finally---> COMA

How to prevent it?

1. take the correct insulin dose at correct time if you are using insulin
2. take meals at correct time
3. Do not fast too long
4. Always have some sugar or sugar product with you.

How to Manage it?

1. Take some sugar or sugar product if you feel above symptoms
2. In case of coma, admit the patient to a hospital and give 50% dextrose IV

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

Friday, September 6, 2013

Use of Pain Killers (NSAIDs) in Pregnancy




NSAID's are drugs that inhibit prostoglandin systhesis and used as anti-inflammatory drugs. In General term, they are drugs that we use as "pain killers".  Paracetamol has relatively liitle anti-inflammatory activity, unlike other common analgesics such as Aspirin and Ibuprofen(Brufen). Therefore it is not generally classified as an NSAID.
Other than Paracetamol there are so many NSAIDs that are used for different conditions.
ex:   Salicylates

    • Aspirin
    • Diflunisal
    • Methyl Salicylate topical
        Propionic Acid Derivatives
    • Ibuprofen
    • Naproxen
    • Ketoprofen
    • Fenoprofen
      Acetic Acid derivatives
    • Indomethacin
    • Sulindac
    • Ketarolac
    • Diclofenac


     Enolic Acid derivatives
    • Piroxicam
    • Meloxicam
    • Tenoxicam


      Fenamic Acid derivatives
    • Mefenemic acid
    • Tolfenamic Acid
Other than above there are some selective COX II inhibitors that are available in sri lanka, such as Celecoxib and Etoricoxib.
But none of these NSAIDs are recommended during First Trimester of Pregnancy. and even after that time period NSAIDs should not be used as a regular pain killer in pregnancy. Do you know why?
          


You know when a baby growing inside mother's womb, he does not breath by his own. He breaths what his mother breaths. So his lungs are not functioning until he comes out. DA(ductus arteriosus) is a blood vessel connecting  the pulmonary artery to the proximal descending aorta. Development of DA is happening in the first trimester of pregnancy. and this process can be blocked by NSAIDs. Because to develop the DA prostaglandin activity is essential. So it is strictly contra-indicated in first trimester. But in late pregnancy, indomethacin is prescribed to close the DA, or to delay the labour in some conditions.

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

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.!!!

Sunday, April 21, 2013

How to install Apache Ant in windows 7



Apache Ant is used for creating build files. Let's see how to install apache ant to your computer successfully.
First you need to download the zip file from this url.

Make sure you extract the file into a folder called APACHE_ANT. inside that there should be bin, manual, etc, lib like folders. Then you have to copy the path to the APACHE_ANT. In my case it is this.

E:\program filez\ANT-HOME


Then go to System Properties window and and click on environmental variables. Computer->(on the upper corner of my computer window ) System Properties
There you will find this window.

Edit the 1st appearing table containing user variables. 


Type the variable name as ANT_HOME. and add the copied path as the value. You should have already added java home variable. If not click on New tab and add JAVA_HOME variable as well. it's value should be the path to your JDK. 
Then in the system variables table find the Path variable. You have to add some additional thing to the existing one. so just type a semicolon (;) at the end of the current path.  The go to the ANT_HOME folder you created and go to the bin folder inside it. copy the path and paste it after the semicolon. hit ok and now you are done !!!.
To check whether you have installed it correctly type "cmd" at the search area of start button and get the command prompt. then just type ant and hit enter. If you get a msg like this you have installed ant correctly.





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

Monday, February 11, 2013

Chain of Responsibility Design Pattern in Java



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

Artificial Intelligence- another computing paradigm




The aim of artificial intelligence is, in some way try to make computers perform tasks that humans tend to be good at. It fills the gap between scientists who study about human behavior and computer scientists. A computer will always obey exactly for a given set of rules written in a programming language. So human scientists can test their theories about human behaviour by converting them into computer programs. For computer scientists, modeling human behaviour in a computer program is still a big challenge.

So Why AI?

Human beings have been outperformed by computers in many tasks. We can see this specially in these areas.

01. Numerical Computations

computers are obviously more faster and accurate than humans when it comes to numerical computations. ex: 123456 *837590497023
A normal pentiumII computer will give the answer to this multiplication function instantaneously while a math geek will still take few minutes to get it, possibly with errors.

02. Information storage

computers can store huge amount of information on its hard disk and some amount in their RAM as well. Upgrading or increasing the memory is just a matter of fixing another disk with larger capacity. Only limitation is availability of information. But when it comes to humans, we can keep only a certain amount of knowledge in our memory. Think !!! 80% of things you learnt at Level 1 Semester 1 might be already lost and gone somewhere right now. :)

03. Repetitive Operations

Normally humans get bored and tend to do mistakes as fatigue sets when they do the same thing again and again. On the other hand computers are specifically built to do such tasks.

The above list contains only the mechanical or mindless tasks which normally machines are good at. But "Intelligence" is not that. When performing intelligent tasks humans are far beyond the computers. So what is "intelligence"?

Intelligence is a loosely defined term, and there is no single exact definition a such. In order to possess intelligence, following have been identified as essential to have.

~ to respond to situations flexibly
~ To make sense of ambiguous or erroneous messages.
~ To assign relative importance to elements of a situation.
~ To find similarities even though the situations might be different.
~ To draw distinctions even though the situations look similar.

If intelligence could be defined as above, then following are some tasks that demand intelligence.

~ Speech recognition and understanding
~ Pattern recognition
~ Motion in dynamic obstacle filled space.
~ Mathematical theorem proving
~ Reasoning

I invite you to make an attempt to understand major AI concepts further more by exploring other web resources as well.Here, I did just an introduction only.



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

Monday, October 8, 2012

Check the JDK version in your computer

Do you want to see the JDK version installed in your computer. Then go to Start menu and type "cmd'.
Hit enter. You may be in this kind of a location. In my computer it is C:\Users\Achini>. But you need to be in   just C:

So type like this.
          cd..hit enter. Again type  cd.. hit enter. Do this until you reach the C: drive. Now you should be in C: drive.

     Then type "java -version".
                                                      (java,space,dash,version)


As you can see my JDK version is 1.6 and update 33. Check what is yours.

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

Monday, October 1, 2012

Importance of Fiber (Proven remedies for constipation-1)





Constipation is a common as it can be seen among 2-30% in every population. No doubt it is a hard situation for many patients, specially when they are younger (eg: children) or elderly people. It is not a secret that this is one of the most hard functions of an elderly person's life he has to go through every day. That is why patients having heart disorders are advised to take their TNT bottle when going to toilet, in case to defense themselves from a sudden stroke. To avoid constipation easy steps you can take are,
  1. drinking more water
  2. Adding more vegetables and fruits in to your diet. (natural fiber is best than any other medicine) 
But unfortunately modern people with busy schedules cannot or forget to follow these steps regularly. There are medicines for such situations, which most of them should be taken with medical advice. Namely there are 4 kinds of laxatives.
  • Bulk
  • Osmotic
  • stimulant
  • lubricant
Bulk laxatives are things like Bran, ispagula husk, sterculia, Gam karaya etc. Provided examples include soluble and insoluble fiber. Commercial products are Fibogel, Laxinorm, Normacol and many more. Probably it takes around 12-72 hours for the onset action.

Normally commercially available soluble fiber products are little bit expensive. ex: Benefiber 


What is important with taking soluble fiber is, they can reduce the level of cholesterol in your blood. cholesterol is broken  into something called "Bile" at the digestive system. Bile can be eliminated with soluble fiber.


However bulk laxatives are not recommended for  children. But for elders, fibogel like laxatives can be prepared as a delicious drink and get rid of that unpleasant experience. We'll talk about other types of laxatives in another post.

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