Posts

Showing posts from 2009

Disable single quote Within Forms

This is a good method taught to me by my friend to disable any character in the keyboard Within Forms in your web page/ web application. A simple and effective method to disable specific characters (like single quotes) within form inputs on your webpage or web application. The Code <!DOCTYPE html> <html> <head> <script type="text/javascript"> function stopRKey(evt) { // Normalize the event object evt = evt || window.event; // For debugging - shows the keyCode console.log(evt.keyCode); // Block single quote (39 or 222 depending on browser) if (evt.keyCode == 39 || evt.keyCode == 222) { return false; } } // Attach the event handler to the document document.onkeypress = stopRKey; </script> </head> <body> <h3>Test Area</h3> <textarea rows="5"></text...

Firstday at MSc

Oh studies again..! My Msc program just started in UCSC. It was really nice seat in UCSC lecturing hall listing to a lecture after one and half years time.. But one thing i would like to share with you that was pointed out by VC of UOC at her welcome speech, "You are not STUDENT anymore, you are CANDIDATE of a Masters program. Don’t wait till lectures give you lessons, grab the knowledge you want". Nice thing was as usually I felt same sleepiness in the first lecture i attended, however at same time I felt that there is more understanding about practical aspects of lessons than i was an undergraduate. ;)

All Google is down all around the world on 10 December 2009

Image
Several users are complaining on Twitter that Google,Blogger, Gmail and other services owned by Google are down. Google country search sites like www.google.lk and google.co.uk are down too. I don’t know what affected Google, but whatever it is it must be massive i hope, Google search become available soon..early as I can’t live without google

Windows WorkFlow foundation

Hey got a new project for develop "Work Flow" using SharePoint! So i started learning about "SharePoint developmet".. OOB(Out Of Box), SPD(SharePoint Designer) and WFF(Work Flow Foundation) hmmm look tough? What is "Widows WorkFlow foundation" ? Hey you idiot, dont you understand that i should have basic knowledge of.NET framework, Some C#/.NET coding practice and knowledge about Visual Studio to do this? So i paused learning SharePoint and start .NET studies... Help me guys....

SOA Workshop

Service Oriented Architecture(SOA) ! Wut? %#^%#$$ Yesterday(17th,Sep 2009) we participated for full-day interactive workshop on SOA conducted by WSO2 at Cinnamon Lakeside Hotel,Colombo. ESBs and SOA , SOA Security ,SOA Governance ,SOA Enterprise Architecture Patterns and many more topics were discussed. Actually do you know what is this 'SOA' all about?

Went to see match

Image
We Mobitel team went to see the 3rd ODI: Sri Lanka v Pakistan at Dambulla - Aug 3, 2009. Had fun.. Sri Lankan team showed 'great' performance to cheer! Match summary: Sri Lanka won by 6 wickets (with 21 balls remaining) Pakistan 288/8 (50 ov); Sri Lanka 289/4 (46.3 ov)

Javascript how to check variable is null?

do you have idea of what's the most reliable way to check a javascript null? what does it mean by undefined vs. null in JavaScript? what undefined vs. null? How found this when i search about "how to check 'null' Value in Java Script?" if (myVar == null) { alert('myVar is not set.'); } have you try this? What?! This isn't why you don't check for equality with null. It's because myVar == null doesn't even remotely do what most people think it does in this context. A property, when it has no definition, is undefined. Put that way, it's pretty obvious. 'null' is an object. It's type is 'null'. 'undefined' is not an object, it's type is 'undefined'. That part is less obvious. So people write if (myVar == null) { myVar = "Joe"; } When what they really mean is if (!myVar) { myVar = "Joe"; } this is where i end up with my search... hope you expert guys would help me if i'm...

Went Sigiriya-Office Annual trip 2009

Image
Went to Sigiriya on 4th July, 2009 and came back on 5th July,2009

Add Google/Yahoo to IE7 default search

Image
Do you know how to add Search Providers to Internet Explorer? Add your own search provider to your copy of Internet Explorer you have to follow steps listed in below URL: http://www.microsoft.com/windows/ie/searchguide/en-en/default.mspx You can set any of these as the default search provider by selecting the Make this my default search provider check box in the Add Search Provider dialog box that appears when you click the link. Yahoo! AOL Search Ask.com Bing Google Lycos.com

Our convocation

Image

Pic extracted from my door-wall

Image
Have you ever read the success story of Michael Dell? You should find it through internet and read it.. i love his story. In 1984,Michael Dell was just a bright boy with a bright idea. Fueled by passion. Too young, too foolish, and certainly too focused to listen to the naysayers who said it couldn't be done. According to Dell, "No one told me that we couldn't do it, and if they did, I wasn't listening." It's a good thing he wasn't listening. How about you? Are you looking for an awesome opportunity to feed your entrepreneurial bug?

Benthota:Lorry met an accident

Image

Anger Management???

Image
Sometimes when you are angry with someone, it helps to sit down and think about the problem.

How to limit URLs to include 'a word' in Google search

Image
This is something useful for Google searchers... I found this while i was Googling... Think that yOu want to search about something(eg: Trinidad) and you want to serch results where all URLs have special word(eg:roads) So search term you should Google is : Trinidad inurl:roads what you have to do is put the word ehich you want to include in URL after 'inurl:' See the picture and have idea about it... what Google say about it.. inurl: If you include [inurl: ] in your query, Google will restrict the results to documents containing that word in the url. For instance, [inurl:google search] will return documents that mention the word "google" in their url, and mention the word "search" anywhere in the document (url or no). Note there can be no space between the "inurl:" and the following word. Putting "inurl:" in front of every word in your query is equivalent to putting "allinurl:" at th...

Chuti Malli Face Book Selling

This is new advertisement of Mobitel.. website: www.mobitel.lk

Floods in Colombo

Image

Oracle Buys Sun

Source: Oracle Press Release   Redwood Shores, CA - April 20, 2009 Oracle Corporation (NASDAQ: ORCL) and Sun Microsystems (NASDAQ: JAVA) announced today they have entered into a definitive agreement under which Oracle will acquire Sun common stock for $9.50 per share in cash. The transaction is valued at approximately $7.4 billion, or $5.6 billion net of Sun’s cash and debt. “We expect this acquisition to be accretive to Oracle’s earnings by at least 15 cents on a non-GAAP basis in the first full year after closing. We estimate that the acquired business will contribute over $1.5 billion to Oracle’s non-GAAP operating profit in the first year, increasing to over $2 billion in the second year. This would make the Sun acquisition more profitable in per share contribution in the first year than we had planned for the acquisitions of BEA, PeopleSoft and Siebel combined,” said Oracle President Safra Catz. “The acquisition of Sun transforms ...

Sardarji

This is wht u call talent,brilliant.. Enjoy the video

Comic

Image
I got these by a email...

Blogger introduce "Email Posting"

Image
Wow, The Blogspot introduce Mail-to-Blogger feature turns any email account into a blog-posting.. The format of the email address is username.secretword@blogger.com . Note that this email address must be kept secret . Otherwise, anyone who gets it will be able to post as you. Also be sure to specify whether or not you prefer your email posts to publish automatically. If this option is not checked, then your posts will be saved on your account but will not appear on your blog until you log in to Blogger.com and publish them yourself. Once you have saved your Settings, you can send email to your blog. The subjects of your email letters will be the titles of your posts, and the body of the emails will be the posts themselves. To include an image in your post, you can attach an image to you your email.

Wish u a Happy New Year !!!

Image
සුභ අලුත' අවුරුද'දක' වේවා !!!

How Microsoft see our digital future - now on video

Some visionaries over at Microsoft Labs have put a lot of hard work and devotion to a video displaying our digital world in 2019. I bet that after watching it you'd certainly appreciate the video.. Lets play it...

How to recognize a Sri lankan?

I found nice article on above topic and down here I'm posting some tips to recognize a Sri lankan based on an article All about Sri Lanka . •People assume a child educating well is going to become a doctor or an engineer. •His/Her parents enjoy comparing He/She to their friends’ kids. •His/Her parents say, “Difficult? Its a work of 2nd grade![Amaruda? ayyo oka 2e panthiye wadak ne!]” . •His/Her parents buy them clothes and shoes a few sizes too big so He/She can “grow into it.” •He/She are capable of eating an entire meal, including rice, using only His/Her right hand. •He/She’ve been asked in TAMIL 'don't you understand Sinhala?'(Sinhala theriya ille?) •If there is a sale on any item, He/She buy 100 of them. •He/She’ve learned to keep bargaining even if the prices are rock bottom. link to full article