Pages

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


Friday, September 7, 2012

Suffering from "Missing .dll file" ?


          
   you may have experienced this popular error message at least several times if you have been using the computer for few years. In windows this error message pop ups as a run time error, most probably when you are going to launch a program. You can re install the program again or you can reinstall Windows. But you will see that error message pops up again. So what should we do ?
    Before that let me explain the reasons for this error msg. 

  • Deleting a .dll file without knowing
  • Over writing a dll file where the new one is incompatible or invalid.
  • Malicious program (eg: Virus) may have deleted your dll file
  • dll file may be corrupted or crashed by improper installation of a particular program.
  • corrupted dll entries in the windows registry.
Even though it seems the best solution to handle this error instantly is downloading the individual dll file from some site I suggest you to reconsider the decision. Because there is a risk that the individual dll file providers are not providing the up to date, genuine and original dll file which will lead you to experience compatibility issues as well. You better be aware that computers pop up the first error message they encounter to the user as an error message when there are thousands of one  errors down the list. So most probably the biggest problem may be some thing else, though it pops up to download the missing dll file. So better to run a registry scan and identify what is the most essential error to be corrected. If you are a genius you can do it by yourself by skimming through the registry files. there are tools to identify and fix the registry errors. For an example 1-Click PC care.
 You can now download it from here. 

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

Saturday, August 25, 2012

Awsome HTML5 game making tool !!!

Recently I had a chance to explore on HTML5 , and there I found this pretty cool tool for HTML5 game development which allows to design and implement a game almost without any programming knowledge. This ground breaking tool is "CONSTRUCT 2" . You can create a 2D game with few mouse clicks and drag and drops. You can add realistic physics effects to the game objects you create with few mouse clicks. over 70 visual effects have been provided to make your game an exceptional one with Web GL shaders. They have provided a rich source of bundled assets as well such as music, ambient sound sound FX and sprite packs. The games you create can be published into any market place as an app, no matter if it's a web app or a mobile app.  The creator of this awesome tool is Scirra.com and you can now download it for free.
Here is a small video which demonstrates construct 2 . Enjoy game developing....



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

Saturday, July 28, 2012

Be aware about Maggie noodles !!!


Many of us can’t do without ” Maggi ” especially when one is away from home, in a foreign land. Here is a piece of information to share so that we can remove the potential health hazard of consuming Maggi, Kottu mee or any instant noodles.

                                              
If you buy plain hakka noodles which you make, you initially need to boil in water and discard the water. This will soften the noodles but to prevent it from sticking we need to add a tbsp of oil and also the noodles are deep fried partially to make them crunchy and then dusted with flour to prevent them from sticking while boiling. Hence when you buy the noodles they are already made unhealthy and this is the type we use to make stir fry noodles and the regular Maggie too is made the same way, plus they add MSG / Ajinomoto and other chemical preservatives.

A large number of patients with ages ranging from 18-24 years are ending up with pancreatitis either as a swelling or infection of the pancreas due to regular consumption of instant noodles… If the frequency is more than 3 times a week, then it is very hazardous


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

Google FIber..What is it ?


                 Do you know ,Google has launched  its own Internet service provider and it offers connections as fast as you could download a HD movie in the time required to read this sentence. Google's fiber offers download speeds of 1 Gigabit per second, about 100 times faster than the average American Internet.

The service will start in Kansas City, who saw off more than 1,100 other communities that have been applied to the first with Gigabit internet at Google first announced its plans in 2010. The data will be delivered over its own fiber network from Google, the company put down as a resident in the area of ​​Kansas City called "fiber hoods" sign.


                     
Fiber Rabbit
Google offers three flavors of fiber. The top package, which includes a 2-terabyte TV box can record up to eight programs simultaneously, and the new Nexus 7 tablet as a remote, costs $ 120 per month, but no popular channels like HBO, AMC, and ESPN. Gigabit Internet alone is $ 70 per month, and is also a 5-megabit service with no monthly fee - you only need a one-time $ 300 payment to put fiber to your home.
The fibre connection is actually so fast that users will need a wired home network to take full advantage of it, as even the best Wi-Fi networks top out at around 300 megabits, a third of the speed Google is offering.

Google Fiber isn't the world's first gigabit internet project.South Korea was the first to implement this technology. It seems that the world becomes smaller and smaller with a speed that we can ever imagine. Hope we'll be lucky enough to experience Google fiber soon.








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

Sunday, July 15, 2012

Blossoming Entrepreneurs in the Vacation !!!



Hi folks,
    It has been a little bit long break to write another post to seetha gangula. But this time I would like to share with you a new experience I got throughout last 4 weeks with my colleagues at university. Frankly I have never had that kind of a training or a practical involvement in a area where I have never dreamed before.
University of Moratuwa, being the best university in Sri Lanka specially when it comes to producing genius brains to the nation, has taken the initiative to make young entrepreneurs in  Software Industry. As a first step, they are hosting for an entrepreneurship training program since last year which is conducted over several countries with the contribution of Massachusetts Institute of Technology, USA and several other globally recognized sponsors like Google, Nokia etc. Around 35 students are taken part in this program annually from Faculty of IT, Department of Computer Science engineering and Department of Electronic and Telecommunication Engineering. Having one and half month of vacation after the year end exam, I also applied for the program, mainly because I could not stay at home, workless for that much of long time. 

      The program started 18 June, soon after the exam and was said that it goes until 3rd August. 4 instructors from MIT, USA had come to sri lanka to guide us namely Ali, Amber for entrepreneurship training Emily and Wesley as technical assistants. At the very first day we understood that they are really educated and well qualified people and more importantly helpful in every aspect we needed. Ali was like the team leader and without him the team looked like nothing. Amber always tried to figure out our problems related to public speaking, business planning and other related aspects needed to become a successful entrepreneur.



 In first two weeks they taught us some of the key entrepreneurship skills, one need to acquire with practical examples. One unforgettable experience was at the very second day we were divided into groups and gave a bag of candy. All we had to do was go around the university and sell as much as we can within one and half hour and bring back as much as money we can. It was fantastic because university was like an abandoned school those days due to the non academic staff strike. We went to pretty much everywhere in the university to sell our candy despite of the dignity of the customers we sell. Most probably our customers were Professors, senior Lecturers, Department heads, Deans like high end people. It is hilarious when we recall that memory, how we talked to those people to influence them to buy from us rather than from other groups. any how my group managed to earn around 1250/= from candy which were actually worth around 1000/=.




That was our first out of the class activity as an entrepreneur. :)

Within the first two weeks we were able to learn python along with Django web frame work which was totally new thing to us. Since we were expected to start a start up using IT , it was necessarily to learn something related to mobile technology. Android programming was the one we were facilitated to learn by wesley and emiley. Some days we sit on our chairs learning, and coding the whole day as groups. We talked about new  ideas for a start up as groups. refined them. Our ideas were criticized by the investors came. Almost all groups changed their top ideas and moved to new ideas. We drew business plans, customer profiles, use cases and many more. I think I had a chance to use what I learnt at my marketing class there. :D

Some days later, we found that our 4 lovely instructors were addicted to "Rambutan" seriously. Even suffering from severe cough, amber and Wesley were still chewing rambutan without knowing how it affects to coughing .


 Idea pitching day  was also a memorable day since we all had to present the same  idea as groups. Only one minute was given to explain the whole idea. We witnessed that even people who are fluent in english could not managed to express their idea within the given time. I think we had a good chance to improve our presentation skills as well by participating to this MIT-AITI program. Doing a presentation unprepared was like nothing for most of us after 2,3 weeks since every day we had to do several presentations.

 

There are two more weeks remaining for the demo day. These days most of teams are busy with building their products. I also have to contribute to our product. So I'll stop here promising you to present my next blog post about our start ups in details. Stay tuned !!!


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

Saturday, April 28, 2012

ඕනෑම ඇඩෝබ් මෘදුකාංගයක් ඔබේම කර ගන්න.


                                                             

Genuin Softwareම පාවිච්චි කරන්න කියලා කිව්වට ඒවා ගන්න අපිට කොහෙන්ද සල්ලි? ADOBE කියන්නෙ අපිට නිතරම අවශ්ය වෙන Software products series  එකක්ම තියෙන Company එකක්. මම අද Post එකෙන් කියන්නේ Adobe වර්ගයේ ඕනෙම Software එකක්  Crack කර ගන්න විදිහ. Net එකෙන් Key  එකක් හොයා ගෙන මේක කරන්න පුලුවන් වුනත් ඒ වෑඩේ එච්චර ලේසි නෑ.server එකට connect වුනු ගමන් ඒ key එක කලින් use කරලා තියෙනව නම් discard කරනවා.
          කරන්න තියෙන්නෙ මෙච්චරයි. අදාල software එකේ trial version එක Adobe site එකෙන් බාගත කර ගන්න. පහත දෑක්වෙන ෆයිල් එකත් බා ගත කර ගන්න.
                                                                    DOWNLOAD
ඒකෙ තියෙන host කියන file එක copy කරලා

                             C --> WINDOWS --> System32 --> drivers --> etc.

                                  කියන තෑනට  paste එකට කරන්න. Product එක start කලාම සුපුරුදු පරිදි ඔබෙන් Key එකක් ඉල්ලාවි. වෑඩ කරන ඕනෙම Key එකක් දීලා කරදරයක් නෑතුව ඔයාට දෑන් ඒ software එක  Use කරන්න පුලුවනි.

Sunday, April 22, 2012


 ජලන පුංචි පුතේ...ඔබට නිවන් සුව !!!


පුංචි දරුවෙක් ඉන්නා නිවසක් හැම තිස්සෙම තියෙන්නෙ සතුටින් පිරිලා. ඒ වෙන කිසිවක් නිසා නොවෙයි. අර පුංචි දරුවා කරන හුරතල් වැඩ දිහා බලලයි. පුන්චි දරුවො බහ තෝරන්න පටන් ගත්තට පස්සෙ, ඒ දරුව ටික වෙලාවකට හරි නැති වුනොත් ගෙදර අයට ඒ අඩුව හොදට දැනෙනවා. ඊයේ , ඒ කියන්නෙ 2012 අප්‍රේල් 21 වෙනිදා, මගේත් ලඟම ඥාති වන,හැමෝවම සතුටු කරපු, හැමෝම ආදරය කරපු පුංචි පුතෙක් අපව හැරදාල සදහටම යන්න ගියේ කිසිම කෙනෙක් නොහිතපු ආකාරයට, නොසිතූ වෙලාවක. 

                   අවුරුදු කාලේ ඉවර වෙන්න කිට්ටු වුනත් ගොඩක් ප්‍රදේශ වල තවමත් අවුරුදු උත්සව. ඒ වගෙ සිඟිති අවුරුදු උලෙලක් ඊයේ අපේ ගෙවල් පැත්තෙත් පැවැත්වුනා. පුංචි ලමයි, දෙමවුපියනුත් එක්ක 50 කට වැඩි පිරිසක් එතනට එක් රොක් වෙලා හිටියේ ටිකක් සංතෝස වෙලා යන්න. උදේ වරුවේ තරඟ කිහිපයක්ම පැවත්වුනා පුංචි දරුවන් සදහා. තවමත් අවුරුදු හතරහමාරක් වුනු සුරතල් ජලනත් මේ හැම එකකටම සහභාගි වුනා එයාගෙ අම්මත් එක්ක. උදේ 11.30 ට විතර වැඩිහිටි තරඟයකටත් අවස්ථාව ලබා දෙන්නයි සූදානම්ව තිබුනේ. ජලනට පුටුවක වාඩි වී ඉන්න සලස්වා අම්මාත් තරඟයට සහභාගි වෙන්න ගියා. දෙදෙනෙක් බැලුම් බෝලය නලල මත නොවැටී තබා ගෙන නැටීමේ තරඟය ඇරඹුනා. අම්මාගේ ඇස වසා පුංචි ජලන අසල තිබූ පොදු නාන පොකුණ අසලට ගොස් තිබුනා. කිසිවෙක් එය දැන් පාවිච්චි නොකරන බැවින් ලිඳ තිබුනේ කිසිඳු ආවරණයක් රහිතවයි. අඩු තරමේ උස් බැම්මක් වත් එය වටා ඉදි කර තිබුනේ නැහැ. මව තරඟයේ ටිකෙන් ටික ඉදිරියට යද්දී , සුරතල් ජලන  වැස්සෙන් පිරී තිබූ ලින් පොකුණ තුල, පරව යමින් සිටියා. එතරම් විශාල පිරිසක් සිටියදීත් කිසිවෙකුට දරුවා එහි යනු ඇස ගැටී තිබුනේ නැහැ. 

දරුවා පිලිඹද සෙවීම ඇරඹුනේ තරඟය අවසන් වීත් විනාඩි 15 කට පමණ පසුවයි. ඒ වන විට දරුවා පොකුණට වැටී පැයකටත් වඩා වැඩි කාලයක් ගත වී තිබුනා. පුංචි ජලන ලිදෙන් ගොඩට ගන විට නාසයෙන් , කටින්, කන් වලින් කිටි කිටියේ වතුර ගලා ගියා. වහා ජයවර්ධනපුර රෝහලට ගෙන ගියත් ඒ වන විටත් ජලන අප අතරින් සමු ගෙනයි සිටියේ.  හැමෝගෙම ඇස් වලට කඳුලක් එක් කරමින් පුංචි ජලන මරණය සොයා ගිහින්. අවමඟුල් නිවසේදී "එයා ගෙනාපු ආයුෂ ඉවරයි. ඒ නිසා එයාට යන්න වුනා" වැනි කථා අසන්නට ලැබුණා. නමුත් මෙය ජලන කැමැත්තෙන් ගිය ගමනක් නොවේ. පැහැදිලිවම මව්පියන්, වැඩිහිටියන්ගේ නොසැලකිල්ලෙන් සිදුවූ, වලක්වා ගත හැකිව තිබූ සිදුවීමක්ය.  කුඩා දරුවන් සිටිනා මව්පියනි, ඔබේ පුංචි සතුට වෙනුවෙන්, ඔබ දරුවා වෙතින් ඇස ඉවතට ගන්නා මොහොතක ඇසිල්ලක් ඇති දරුවාට හානියක් සිදු වීමට. යමක් සිදු වූවායින් පසු හඬා දොඩා පලක් නැහැ. 

ගමම හඬවමින් කෙටි කලකට අප අතරට ආ පුංචි ජලන හෙට (සඳුදා) සදහටම සමු ගන්නවා. යලි කිසිදා ඔබට මෙවැනි අකල් විපතක් නොවේවා !!!

Tuesday, April 17, 2012

symbol of USB


         The USB device can Perform faster.!!! ..????



USB devices are used almost everywhere in the world today. and people have used to bring them anywhere they go. Actually its important like the wallet for me. I think it is same for most of u all, as people living in IT era. If you are using Microsoft windows,You may have experienced a popup message saying "the USB can perform faster". What does this mean?? 
    USB means Universal serial Bus. most probably there are at least 6 USB ports in a desktop computer. earlier versions of USB are called version 1.1 . and currently using version is 2.0 . The expected release is version 3.0. The difference between these three is the data transfer rate of each of them. version 1.1 supported only up to 12 Mbps. but version 2.0 supports for theoretically 480 Mbps transfer rate.if you carefully read that, actually it means a lot, 40 times faster than 1.1. and it is expected that 3.0 will support for 5Gbps which is 10X jump from the previous.(Actually it has already arrived in Asus and gigabyte motherboards)  
       one interesting aspect of USB is that it is totally OK to mix and match 1.1 and 2.0 . even 3.0 has the backward compatibility with 2.0. so let's dig into our exact topic. when you connect a USB 2.0 device to 1.1 USB port, windows will pop up "the device can perform faster..kinda message.". That means actually your device can transfer data in a rate of 480 Mbps, but the USB port in the computer, only allows up to 12 Mbps. As a result it will perform slower than actually it could. This is what is notified by that message. 

      The difference between 1.1 and 2.0 is in hardware. so installing a software like things can't be done to upgrade the speed . the alternative is using a USB add In card which is 2.0 and connect it with USB 1.1 interface of your computer.
 


Feel free to comment on this post and don't forget to become a follower of SeethaGangula.!!!

Monday, April 16, 2012

Marketing in a nutshell - [3]



This is a good learning material I found on You tube.  go through the video and get some idea about Marketing mix strategies.

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

Marketing in a nutshell - [2]..:P

So now you know that most of the companies focus on their customers and always try to meet the needs of them and provide benefits. but there are factors which constraint a company doing anything for a customer. sometimes those are internal (controllable). and also external (uncontrollable). therefore a companies marketing environment is molded considering those internal and external factors also.  

by definition it is said that, marketing environment of a company is,
"controllable and uncontrollable  elements that influence the strategic direction of the company."



  such uncontrollable elements can be found in macro environment. that is explained using PEST analysis.
controllable elements that are close to the company and the has some control put by the company, are available in micro environment. stakeholder analysis is done in the context of internal factors.

PEST analysis.

  


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

Marketing in a nutshell -[1] :P


advertise freeMarketing is an interesting subject area if you are working on a business. In my case it is not. But what it persuaded me to dig on this topic is that we have a course module on fundamentals of marketing in my University curriculum .  :(
anyway in this series I will be talking about ,

  • Marketing mix
  • 4 P's
  • value proposition
  • product dimensions
  • positioning
  • targeting
  • brand value and some more briefly.
Bear with me if there was any mistake, since I'm not a commerce student and feel free to comment on the post.

So what is marketing??

Marketing has been defined in many ways. but the final idea carried out by all of them is, providing benefits to the customer continuously, while satisfying needs.


    Philip Kotler, father of marketing as many have identified, has defined it in this way.
"Satisfying needs and wants through an exchange process.

  Charted Institute of Marketing defines marketing as,
"The management process responsible for identifying, anticipating and and satisfying customer requirements profitably." 

  however definitely it is not about providing products or services. but providing changing benifits to changing needs and demands of the customers.

Why all businesses are not successful??

Even though nowadays almost all the businesses put consumers at first place more than anything else, the scenario was totally different sometime back. There were different concepts or orientations when presenting a product to the customers.

marketing concept

production orientation-     

  the needs of the customer was not focused. instead they thought of reducing the cost  of the product by producing in large quantities.(mass production)
  product orientation-        

company has a strong feeling that the consumers like their product because their product is the superior one with features like quality etc.

sales orientation

the focus is to produce the item and sell it to the target market somehow. sometimes consumers may not like what is being sold to them.

Marketing orientation 

put the customer at the forefront of the business. such businesses try to understand the the needs of the customers by effective market researches and fed back to the organization for further improvements of the product. all the activities of the organization is woven around the customer. So we can say in this approach..the customer is crowned.


vote for marketing campaign



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

Saturday, April 7, 2012

Cryptography online - ඔබේ රහස් පණිවුඩය පින්තූරයක සඟවා මිතුරාට යවන්න.






අද වනවිට සයිබර් අවකාශය කියන තැන දවසින් දවස එයට එකතුවන තොරතුරු හා දැනුමත් එක්ක මහ පුදුම සහගත දේවල් සිදුවන තැනක් බවට පත්වෙලා. එය තුල අද පෞද්ගලිකත්වය හෝ රහසිගත යැයි කියා කිසිවක් නැහැ. ඔබ internet එක හරහා යවන message එකක් වුනත් hacking හෝ phishing වැනි ක්‍රම යොදා ගෙන වෙනත් කෙනෙකුට බැලිය හැකියි. ඇත්තෙන්ම මේවා ප්‍රශ්න රැසකට මුල පුරන කාරණා. 
        නමුත් ඔබ අසා ඇති Cryptography  කියා තාක්ශනයක් පිලිබඳව. එය කලක සිට පැවති ක්‍රම ශිල්පයක් රහස් පණිවුඩ අන් අයට නොතේරෙන ලෙස යැවීම සඳහා. අද මා ඔබ දැනුවත් කරන්නේ එවැනි නූතන පරිඝනකාශ්‍රිත online cryptography site එකක් පිලිබදව. MOZAIQ කියන්නේ එවැනි, පනිවුඩ සගවා පින්තූරයක් ලෙස එය ලබන්නා අතට පත් කරන අඩවියක්.
                                                             Visit MOZAIQ here

ඉතා සුලු මොහොතකින් ඔබට මෙලෙස පණිවුඩයක් රූපයක් තුල සැගවිය හකියි. කල යුත්තේ මෙපමණයි.
ඔබට අවශ්ය රූපයක් මෙම අඩවියට upload කරන්න. ඉන්පසු ඔබගෙ පනිවුඩය සටහන් කර අවශ්ය නම් එයට (මුර පදයක්ද) යොදන්න. නමුත් එලෙස යෙදුවොත් ඔබගේ ලබන්නාටත් එම මුරපදය ලබා දීමට අමතක කරන්න එපා. ඔබ මෙහිදී සිදු කලේ encryption එකකි.encrypt කල පින්තූරය, download කර ගෙන යවන්නාට ලැබීමට සලස්වන්න.එහි සැගවූ පනිවුඩය බලා ගැනීමට නම් එය නැවත decrypt කල යුතුයි.  එය decrypt කර ගැනීමට අවශ්ය නම් අදාල බාගත කල පින්තූරය නැවත site එකට upload කරන්න.ඒ සඳහා Mozaiq අඩවියෙ ඇති menu bar එකේ tools වලට ගොස් එයින් encrypt යන්න තෝරන්න.ඉතාම සිත් ගන්නා සුලු ලෙසින් ඔබේ පනිවුඩය encrypt වී තිබේවි.



Wednesday, March 21, 2012

What is SQL Injection...???....coming soon


ඔබ දන්නේ SQL විතරද?


                            ඔයාලා ගොඩක් දෙනෙක් database Querying language එකක් විදිහට දන්නෙ SQL විතරයි නේද? ඒත් ඊට අමතරව තවත් languages තියෙනවා සමහර programming languages සමග පමනක් යොදා ගත හැකි ආකාරයට. .NET ගැන දන්න අයට නම් මේක අලුත් දෙයක් නෙමෙයි. නොදන්න අය වෙනුවෙනුයි මේ හදුන්වාදීම කරන්නෙ. LINQ කියල කියන්නෙ .Net Language INtegrated Query කියන අදහසින්. LINQ බැදිලා තියෙන්නෙ C# language එකත් සමගයි. C# වලින් code කරද්දි සාම්ප්‍රදායික SQL යොදා ගන්නවට වඩා LINQ යොදා ගත්තොත්, programming languages අතර පවතින නොගැලපීම්(impedence mismatch) දුරු කර ගන්න පුලුවන්.ගොඩක් data sources තියෙන වෙලාවට එකම Querying interface එකක් පාවිච්චි කරන්නත් පුලුවන්.LINQ වලට ඇබ්බැහි වූවන් පවසන ආකාරයට නම් එය SQL වලට වඩා සරලයි. පැහැදිලියි. ඒ විතරක්ද, එය අයිති වන්නේ උසස් ගණයේ language එකක් හැටියට. SQL සහ LINQ හරියට C++ සහ C# වගේ.
                           සමහර වෙලාවට C++ උචිත වෙන අවස්ථා තියෙනව වගෙ SQL හොද වෙන වෙලාවලුත් තියෙනව. SQL කියන්නෙ 1974 දි සොයා ගත්ත පරන language එකක්. එය වරින් වර අලුත් දේවල් එකතු කර ගනිමින් ලොකු ගමනක් ආවත් නැවත redesign වීමක් සිදු වුනේ නැහැ.  ඒ නිසා සමහර වෙලාවට අනවශ්ය ලෙස පැටලිලි සහගත වෙන වෙලාවල් තිබෙනවා.
හිතන්න ඔබට මේ වගෙ query එකක් ලියන්න වෙනවා කියලා.මේකෙ කිසිම ගැටලුවක් නැහැ.


SELECT UPPER(Name)
FROM Customer
WHERE Name LIKE 'A%'
ORDER BY Name

ඔබට එකවරම ඕන වෙනවා 21-30 දක්වා පේලි වල විතරක් ප්‍රතිඵල ලබා ගන්න.එතකොට ලියන්න වෙන්නෙ මෙහෙම.


SELECT UPPER(Name) FROM
(
   SELECT *, RN = row_number()
   OVER (ORDER BY Name)
   FROM Customer
   WHERE Name LIKE 'A%'
) A
WHERE RN BETWEEN 21 AND 30
ORDER BY Name

SQL Server 2005 වලට වඩා පරන db වලට support කරන්න නම්, code එකට තවත් දෙවල් add වෙන්න ඕනෙ.

SELECT TOP 10 UPPER (c1.Name)
FROM Customer c1
WHERE
   c1.Name LIKE 'A%'
   AND c1.ID NOT IN
   (
      SELECT TOP 20 c2.ID
      FROM Customer c2
      WHERE c2.Name LIKE 'A%'
      ORDER BY c2.Name
   )
ORDER BY c1.Name

නමුත් ඔබ මේ දේම LINQ වලින් ලියුවොත් ඕන වෙන්නෙ මෙච්චරයි.


var query =
   from c in db.Customers
   where c.Name.StartsWith ("A")
   orderby c.Name
   select c.Name.ToUpper();

var thirdPage = query.Skip(20).Take(10);

කොයිතරම් සරලද, පැහැදිලිද?? මම මේ post එකෙන් කතා කලේ එක ප්‍රයෝජනවත් ලක්ෂණයක් ගැන විතරයි.




Google කරලා LINQ ගැන විස්තර හොයල බලන්න...

සීත ගගුල කරගෙන යන්නෙ ඔයාල දෙන දිරි ගැන්වීම් වලින්. BLOG එකට කැමති නම් follower කෙනෙක් වෙන්න අමතක කරන්නත් එපා.

Monday, March 19, 2012

QR කේත.....[.QR codes].....මොනවද මේ කොටු කොටු??

දැන් දැන් ලංකාවේත් ප්‍රසිද්ධ වෙලඳ ආයතන විසින් තමන්ගේ වෙලඳ දැන්වීම් වල යොදා ගන්නා මේ සන්කෙතය ඔබට ප්‍රශ්නයක් වී ඇති. විශේෂයෙන්ම ඔය mobile tele communication ක්ශේත්‍රයේ ප්‍රචාරන කටයුතු වල තමයි මම නම් වැඩිපුරම දැකලා තියෙන්නෙ.ප්‍රධාන වශයෙන්ම මෙහි අරමුණ තමන්ගේ භාණ්ඩ හා සේවා පිළිබඳ පාරිභෝගිකයන්ට තොරතුරු ලබා දීමයි. විශේෂයෙන්ම තමන්ගේ වෙබ් අඩවි වල QR code යොදා ගැනීමෙන් එම අඩවි නිතර නිතර update වන ඒවා ලෙසයි search engine විසින් හදුනා ගන්නේ. එමනිසා එය භාණ්ඩ පාරිභෝගිකයන් වෙතට ගෙන යාමට හොද ක්‍රමයක්.
          QR code යනු quick response code යන්නයි.මේවායේ තොරතුරු ගබඩා කොට තිබෙනවා. වෙබ් අඩවි වල විතරක් නොවේ, පුවත් පත් දැන්වීම් වල, සඟරා වල, බිල් පත් වල,එහෙමත් මෙවා දක්නට ලැබෙනවා.කෙසේ නමුත් QR code එකකින් කියැවෙන තොරතුරු ලබා ගැනීමට නම් ඔබට Smart phone එකක් තිබිය යුතුයි.මේ නිසාම වෙන්න ඇති ලංකාවේ තවමත් මේ තාක්ෂනය ගැන කවුරුත් එතරම් දන්නෙ නැත්තෙ. නමුත් ඔබට smart phone එකක් තිබෙනවා නම් ,කලයුත්තෙ බොහොම සුලු දෙයක් විතරයි. QR code reader එකක් install කර ගන්න මෙන්න මේ වගෙ site එකකින්. 
                                Kawya 



පහත video එකෙන් පෙන්වන්නේ ඒ විදියට කොහොමද QR code එකක් read කර ගන්නෙ කියල.

ඔබට ඕනෙ නම් T- shirt එකක print කරල තියෙන QR code එකක් වුනත් මේ ආකාරයට කියවන්න පුලුවන්. එක අතකින් මේ තාක්ෂණයත් barcode reader  එකක වගේම වුනත් නිකම්ම ඉලක්කම් ටිකකට වඩා ලොකු තොරතුරු ප්‍රමාණයක් මෙමගින් ලබා ගන්න පුලුවන්.
කොයිතරම් සරල පහසු කාර්යක්ශම තොරතුරු සැපයීමේ ක්‍රමයක්ද නේද??  
ව්යාපාර වලට නම් තමන් කොයිතරම් ඉක්මනට නවීන තාක්ශණය සමග සමීප වෙනවද කියන එක customers ලට පෙන්නන්න හොද අවස්ථාවක් ඒක.  හැකියාවක් ලැබුනු දවසක ඔයාලත් මේ තාක්ෂනයේ ප්‍රයෝජනය අත් විදල බලන්න අමතක කරන්න එපා. 

මේ post එකට කැමති නම් සීත ගඟුලෙ follower කෙනෙක් වෙන්නත් අමතක කරන්න එපා.

Wednesday, January 11, 2012

කැස්ස සඳහා ඖෂධ මිලදී ගැනීමේදී මේ ගැනත් සැලකිලිමත් වෙන්න..

පහුගිය දවස් වල තිබුනු සීතල දේශගුණයත් එක්ක හුඟ දෙනෙක් කැස්ස,සෙම්ප්‍රතිශ්යාව වැනි තත්ව වලින් පීඩා විදිනු අපිට දක්නට ලැබුනා.  ඇත්තෙන්ම කැස්ස, හෙම්බිරිස්සාව කියන්නෙ එපාම කරපු ලෙඩ දෙකක්.නිතර නිතර හඬ නගා කැස්ස පිට කරන්නට සිදු වෙන්නෙ, ලඟ ඉන්න අයට කරදරයක් වෙමින්.මේ වගේ ලෙඩක් හැදුනහම,doctor කෙනෙක් ගාවට යන්න කලින් pharmacy එකකින් Syrup එකක්,antibiotic එකක් මිලදී අරන් එක පාරක් වත් try කරලා යන එක අද හුඟ දෙනෙකුගෙ පුරුද්දක් වෙලා.සමහර වෙලාවට කෙනෙකුට කැස්ස ඇති වෙන්නෙ, උණ රෝග ලක්ෂනත් සමඟයි.
                 සාමාන්යයෙන් මේ වගෙ වෙලාවට රෑට නින්ද යන්නෙ නැහැ.ඒ නින්ද අතරතුරත් කැස්ස ඇති වෙන නිසා. ඇත්ත වශයෙන්ම මේ විදිහට ශරීරය අවිවේකී වීම තමයි,රෝගියා නැවත යථා තත්වයට පැමිනීම ප්‍රමාද කරන්නෙ.කෙසේ වෙතත් ඔබ මේ සඳහා ඖෂධයක් මිලදී ගැනීමට පෙර සැලකිලිමත් විය විතු කරුනු කිහිපයක් තිබෙනවා.

                        එකක් තමයි ඔබ දැන ගත යුතුයි ඔබට තියෙන්නෙ, සෙම සහිත කැස්සක්ද  නැද්ද යන වග.ඔබට කැස්ස ඇති වන්නේ පපුව හරහා, එහි අවහිර වීමක් ලෙස නම් ,එය සෙම සහිතයි. කෙලින්ම නාස් කුහර අවහිර වීමෙන් පමණක් පැන නගින කැස්ස සෙම රහිතයි.සාමාන්යෙන් සෙම සහිත කැස්ස සඳහා expectorant වර්ග නිර්දෙශ කරනු ලබන අතර, සෙම රහිත කැස්සට Syrup වර්ගයි ලබා දෙන්නේ.මේ දියර වර්ග බොහෝමයක්(Syrup වර්ග ) ඔබගේ කැස්ස අතිවූ මූලයට ප්‍රතිකර්ම කරන්නේ නැහැ.ඒ වෙනුවට, අනිච්චානුගව එය පැන නැගීම පමණක් පාලනය කරනු ලබනවා.එහෙම කිරීමෙන් ඇතිවිය හැකි අනියම් බලපෑමුත් නැතිවාම නෙවෙයි.කැස්ස පැන නැගීමට ඉඩ ඩීමෙන්, තවතවත් ශ්ලේශ්මලය තැම්පත් වීම පාලනය වෙනවා.මන්ද නිතර නිතර ඒවා බැහැර කරන නිසා.නමුත් කැස්ස පාලනය කිරීමෙන් ශ්ලෙශ්මල පටල තවදුරටත් ඝනව සෑදෙනවා.අවසානයේදී මෙය Bronchitis වැනි තත්වයක් දක්වා වුනත් වර්ධනය විය හැකියි.
  
                    නමුත් expectorant වර්ග ක්‍රියා කරන්නේ මීට විරුද්ධ ආකාරයටයි. එවා නිතර නිතර කැස්ස ඇති කරන සුලු සංයෝග වලින් යුක්තයි.එවිට ශ්ලේශ්මල පටල නිතර නිතර ඉවත් වන නිසා ඝනව තැම්පත් වීමක් සිදු වෙන්නේ නෑ. එම නිසා සෙම්ප්‍රතිශ්යා තත්ව පවා ඉක්මනින් පහවී යනවා.නමුත් expectorant භාවිතයේදී යම් විජලන තත්වයකට ලක්විය හැකියි.මන්ද ඔබේ සිරුරින් නිතර ජල පදාර්ථ පිට වන නිසා.එම නිසා expectorant එකක් භාවිතා කරන විට නිතර ජලය පානය කිරීමට වග බලා ගන්න.