Save info   Get password
Home Submit your blog Edit Account Rules RSS-Archive Contact


www.kamal.org
2005-08-29 06:45:00
Today is one of the happiest days in my life as I got my public domain: www.kamal.org. One of my friends, Maduranga helped me lot in purchasing this. Thanks a lot Maduranga.I thought of redirecting it to my blog. Later I will buy some space in the web to host my home site (which is not ready yet).As yesterday was my 25th birthday, I will never forget the day I got my domain.So a grand ice cream treat was ready for all my friends in the office. (If you were not in my office!!! hard luck. You may have missed it.)


How to avoid the top five IT mistakes
2005-08-29 03:28:00
Got a chance to read article named "How to avoid the top five IT mistakes".Five Mistakes are;1. Too much customization 2. Skimping on training3. Absentee management4. Freewheeling consultants5. Assuming you're finishedPoint number 1. is something that I'm also trying to point out in project meetings as most of the time people think on customizations which they would never ever use. And sometimes providing that much of customization leads to a mess.What do you think?


Happy birthday to me
2005-08-28 10:20:00
Today is my 25th birthday.
Read more: Happy

Microsoft sued Google
2005-07-20 07:27:00
As the search engine competition is in a top level with google, yahoo and microsoft competing, I heard a news today as follows. Microsoft sued Google yesterday (07.19.2005), for hiring one of their top employer to head a new research lab in China. As Microsoft argued that taking such a position in a direct competitor is illegal. And also Microsoft point the finger towards Google for encouraging him to do so.As news expalined, Dr. Lee is a well known character in the industry and he has worked for Silicon Graphics and Apple. When google is growing so fast while offering new wide range of services, losing Dr. Lee will be a huge issue for Microsoft to retain in the competition.So we'll look forward to see the continuation.One interesting point I noticed was the demand that Bill Gates have given to the qualified professional in this industry, as he says that the major problem is talented computer science graduates.Read More...www.forbes.comwww.pcpro.co.uk


TechNewsWorld
2005-07-15 01:20:00
Today I found a good web site which consists of news on new Techs. That is www.technewsworld.com. Seems it provides news in all most all the techincal fields. I was mainly focused on the Open Source portion. Some of the interesting news I found today are; Firefox PatchPatch releasing has two practices. One is to release patches at the end of each month and the other is to realese as soon as it is ready. I feel that patch releasing as soons as possible is the best way since recovery of an attack will be much harder than applying a patch even in a large scale organization.One-in-Ten-Web-Users-Have-a-Taste-for-SpamAs the news explains 39 percent of the people still reading the messages and clicking on links embedded in the emails. As they says, this is a known method for spammers to detect if an email address is being used, and as a result 57 of the latter group reported that they started receiving more spam.Sun-Open-Sources-Its-Authentication-TechnologySun Microsystems moves towards Open


Google News
2005-07-14 04:11:00
"Google News" provides a well organized and a customizable view for NEWS. You can customize the viewed news by providing key words. And also the news can be prioritize according to your requirements. So news searching and organizing is done by Google, we just have to watch it.http://news.google.com/I have created a customized News View for me. You can check my configurations and even you can use that as your customized view. My Customized News View


Add search facility
2005-06-27 23:20:00
Google, the best search engine provides the ability to add search facility to your own web sites for free. Also they have provided a set of code snippets.http://www.google.com/searchcode.htmlI added the search facility to my blog today.


AMNS - a multiplatform MSN messenger clone
2005-06-26 07:07:00
Since MSN Messenger is only for the Windows platform, this is a good alternative while you are on Linux. According to the project description it supports;- All 32-bit MS Windows (95/98/NT/2000/XP)- All POSIX (Linux/BSD/UNIX-like OSes)- Linux- OS XI tried it on Mandrake Linux 10.0 and it worked fine. AMNS is provided with a variation of plug-ins for the look and feel.AMSN - MSN messenger clone


What is a Blog
2005-06-26 02:13:00
First of all I searched on What a blog is before starting to use my blog. This is how I feel. The way I understood may not be the perfect.A blog (shortened from weblog) is a web based method of collecting any information that you prefer. There is no restriction on what you can or can not blog, it is totally upto the owner to decide whether to have some informartion or not. This can be maintained as a diary, as a way of expressing your thoughts to the public, as a way of keeping track of the important information and also as a way of making a discussion with the viewers.All the blogs are displyed with the timestamps and are sorted so that the new blogs are at the top. This makes easy for the visitors to view latest blogs. Blogs provide the visitors with the facility to submit comments, so that this can become a discussion.A comprehensive description on "What a blog is":en.wikipedia.orgwww.answers.comCreate your own free blogs:www.blogger.comwww.bloglines.comCan you suggest some other si


Jar utility can compress files?
2007-06-13 19:41:00
Java archive creator is the Jar tool. Is it just a packaging tool or does it compress and package (like zip utilities)? It can compress and package, also by default compression is on. So all the jar files that others have created so far may be compressed (since they did not turn off that). You can turn off the compression feature by using the 0 (zero) option of the jar command. The command would look like follows.jar cvf0 TicTacToe.jar *.classSo what's the big deal? It's always better to compress it!!! Many may think so?No, that's not the truth. There are reasons why you should turn off the compression. For a situation where a jar file is loaded to a browser, uncompressed jar will be suitable over a compressed jar. Uncompressed JAR files can generally be loaded more faster than compressed files because the need to decompression overhead is eliminated. However there's a trade-off, for an uncompressed jar download time over a network may be longer. So decision must be taken by cons


Why Software Projects Fail?
2007-06-29 06:36:00
Today I read a nice set of ideas on "Why Projects Fail" by Andrew Stellman and Jennifer Greene (ppt or pdf). They have analyzed and categorized the reasons for failures of projects. That led me to write this post.Ways a project can fail1. Things the boss does - Top level may not be communicating well with the rest of the members to pass the knowledge that they got on the requirements or they may not have gained required knowledge. Also some of them may be over confidence on what the team can actually achieve, so they make a guess and resulted in huge issues on development phase. 2. Things the software does - One major problem is receiving unclear incomplete requirements at the start, but has to continue on what is available. This is a huge problem as it would be too late when it's figured out that the the software does not match the expectations of the end user.3. Things the team should have done - Development team also should think wisely and accept the project dead lines. Usually a
Read more: Software

Adsense rounded borders for ads formats
2007-06-28 08:15:00
Google Adsense has come up with a new feature for ad borders, that is "Corner style". This features improves the look and feel making an advantage for site developers. Now publishers can choose between 'slightly rounded' or 'highly rounded' corner (two sample are shown here). If your site has a rounded template this will help a lot.To apply this change for existing Adsense ads, you only have to add another line to set another value inside the script. Set the value of "google_ui_features" as follows.google_ui_features = "rc:6";google_ui_features = "rc:10";"rc:6" is for 'slightly rounded' while "rc:10" for 'highly rounded'.


Call a javascript function inside body of a web page
2007-07-05 07:18:00
JavaScript is mainly used for actions on user events like onClick(), onMouseOver() etc. But what if you need to call a JavaScript function without any user events? Answer would be to use the onLoad() of the body tag. <body onLoad="javascript:myfunction()" >But what if you don't have access to change the onLoad()? Is there an answer for that as well?Yes, and it's easy. Just call the function inside your page as same as you would write JavaScript inside the body of a page.<script type="text/javascript" language="JavaScript"> doSomething('params');</script>In this example, doSomething() function is added to the web page inside the header of the page. And for ease of understanding the complete code is shown below.<html> <head> <script type="text/javascript" language="JavaScript"> function doSomething(params); //do something nice with params } </script>


[Cricket] Sangakkara joins the "five double hundreds" club
2007-07-04 07:02:00
Today Kumara Sangakkara become the seventh cricketer to reach five double hundreds in Test. This is a real achievement and it shows Sangakkara's patiences as well as the talents. Sri Lanka is the only country to have more than one player in that list of seven players.Here are the seven players with five or more double hundreds.1. Donald Bradman (AUS)- 12 2. Brian Lara (WI) - 93. Wally Hammond (ENG) - 74. Marvan Atapattu (SL) - 65. Javed Miandad (PAK) - 66. Kumara Sangakkara (SL) - 57. Rahul Dravid (IND) - 5Well done Sanga.
Read more: Cricket

Jar not loaded warning/error in Google Web Toolkit (GWT) deployment to tomcat
2007-07-12 07:45:00
When a Google Web Toolkit (GWT) web application is deployed to Tomcat web server, you may encounter a warning message as follows.org.apache.catalina.loader.WebappClassLoader validateJarFileINFO: validateJarFile(WEB-INFlibgwt-user.jar) - jar not loaded.See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.classNo need to worry too much about this warning message. This raises just because WebappClassLoader has loaded the servlet.jar already. The gwt-user.jar already contain the content of the servlet.jar file. Even though this message can be ignored, this warning message can be avoided just by replacing the gwt-user.jar file with gwt-servlet.jar (which comes with Google Web Toolkit (GWT) download).Following image shows the content of the gwt-user.jar, and the content of the servlet.jar is highlighted. gwt-servlet.jar has been created by removing the content of the servlet.jar from the gwt-user.jar, so this change will not have any impact on your project.
Read more: error

Scrollable table with GWT
2007-07-19 22:05:00
We came across a requirement to build a scrollable data table using Google Web Toolkit (GWT) because we had a limited space, but a growing table depending on the search criteria. As anyone can guess, having a scrollable table would be the best option. For that we used two components rather than one; com.google.gwt.user.client.ui.ScrollPanel and com.google.gwt.user.client.ui.FlexTable. The data table was added inside the Scrollable Panel.For clarification, we have added the code below.ScrollPanel scrollPanel = new ScrollPanel();FlexTable dataTable = new FlexTable();dataTable.setWidth("100%");scrollPanel.add(dataTable);scrollPanel.setSize("300", "200");//add data to table....For setting width and height; it's advised to use css rules, but for ease of understanding we have shown some hard coded values here.


New Firefox release 2.0.0.6 - Security update
2007-07-30 22:44:00
A new version of Firefox , 2.0.0.6 has been released today. This is another security update. And they released the 2.0.0.5 version just 13 days ago. That's why I really love Firefox. When ever an issue is reported, they work on it and provide us with a new version so that we are on the safe side always. And this is not the case with some other browsers where people have to wait months and years for some fixes. So thanks guys for all your dedication on making a better product.Read the release note for more info.


Set Cookies with GWT applications to expire after expected time period
2007-08-13 07:52:00
Google Web Toolkit (GWT) supports HTTP cookies similar to other web technologies. GWT provides methods for setting cookies for specified time duration, for specific domains and paths. Below is a listing on how to set a basic cookie for a duration of one day.Date now = new Date();long nowLong = now.getTime();nowLong = nowLong + (1000 * 60 * 60 * 24 * 7);//seven daysnow.setTime(nowLong);Cookies .setCookie("sampleCookieName", "sampleCookiValue", now);When retrieving the cookies, you have to specify only the name of the cookie, nothing related to duration. If the cookie is found in the browser for this domain (not expired); value you set will be returned.Cookies.getCookie("sampleCookieName");//only nameIn setting cookies, you must consider on what you actually plans to get done using a cookie. There are two features you can achieve; remember duration (i)from the day it's created, (ii) from the last day this particular user viewed your site. If your site always set cookies when ever a user


GWT not working on Internet explorer 7 (IE7) giving "Element not found" javascript error
2007-08-16 07:48:00
GWT web application started to give "Element not found" javascript error message on Internet Explorer 7 (IE7)? This application worked fine on Internet Explorer 6 and Firefox 2. Now your best guess would be; GWT not working on IE 7 properly. Wasn't it? But the scenario became confusing and unbelievable because your application worked fine on IE7 in some machines while not on some others. Have you faced this issue? Then the below solution is for you.This issue can be fixed by a making a change on windows registry. Steps to follow are;1. Open up the Registry editor - type regedit on command prompt.2. Look for the key shown belowHKEY_CLASSES_ROOTTypeLib{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}1.1win323. Click on the "Default" row and see the value there. If it's value is "C:WINDOWSsystem32shdocvw.dll", then that is what causes the above mentioned issue. If you have installed Windows in a different drive; C: must be replaced with the that letter.4. Replace that value with "C:WIND


Adsense Ads between blogger posts
2007-08-21 22:06:00
If you have switched your blog from older blogger to new blogger platform (which uses layouts) and looking for adding adsense advertisements in between posts ; Blogger has created a new widget for this purpose. And they have made it such that any non-tech blogger even can use this. This widget lets you specify number of posts between an adsense advertisement. You can see the full guide here at Get inline.If you haven't switched to new blogger yet, don't worry. You still can put adsense ads between your posts. You have to put the adsense code inside the tags that shows up the blog post. My home page has done like that. If you need any assistance on that, just drop me a mail or write below as a comment. I would be happy to help you.SBI! is the perfect AdSense host.
Read more: Adsense

Add css styles for gwt widgets
2007-08-29 07:35:00
Adding Cascading styles (CSS) to Google Web Toolkit (GWT) widgets is much simpler and involves only two steps.Style nameset style name for a widget using the $widgetInstance$.setStyleName() method orstick with the default style name of the widget (use for setting global values)default style name examples:for buttons: .gwt-Buttonfor Check Boxs: .gwt-CheckBox CSS style ruleAdd CSS style rules to a .css file and import that into the html page or write those inside the html page itself. (not recommended)Let us provide you with an example which would create buttons shown below.Coding in your java class:Button cancelButton = new Button("Cancel");Button loginButton = new Button("Login");loginButton.setStyleName("buttons");CSS rules:.gwt-button { background: #EEEEFF; color: #0000CC; font-size: 12px;}.buttons { background: #CCCCCC; color: #333333; font-size: 12px;}


GWT releases 1.4 and is no longer beta
2007-08-29 07:13:00
Google Web Toolkit (GWT) has released a new version, 1.4. With over 1 million downloads GWT is moving forward well; and it's no longer beta. The user group is really active and well established; so if you haven't tried GWT yet, it's time to have a look. Read more about GWT and news release at GWT blog.For any issues visit the GWT user group here.


Would Google Adsense let a website earn $100,000 per month?
2007-08-27 07:28:00
With Google Adsense earning $100,000 per month!!! Feels like day dreaming? Are there web sites earning around 100k dollars per month; shockingly and interestingly the answer is yes. There are some few sites that earn this much; even more than that. Believe meA social site named "PlentryOfFish" owned by "Markus" has earned more than $900k in two months while "ShoeMoney" blog earned more than $100k in one month. See the proofs here and here. So the good news is we should try now and reach there since it is possible.Analysis of sites earning with AdsenseMonthly visitorsNumber of visitors is a huge factor considering the Adsense revenue as visitors help revenue increase; so having a healthy visitors base is a must. Adsense ads placementMany sites have been using text/image advertisements rather than going for text only ads or image only ads to change what user sees at first. Adsense text only ads are placed before/inside/after articles; but 250x250 / 300x250
Read more: website

Six sixes in one over in Twenty20 Cricket - World record
2007-09-20 07:57:00
Six sixes in one over in Twenty20 (Twenty Twenty, T20) Cricket ? Oh! World record!!! It was an amazing over; all the balls went over the rope like rockets. The Start was Yuvraj Singh from India, and the poor bowler was Stuart Broad (England). This happened on 2007-09-19, in Twenty20 world up match. Yuvraj did this in the 19th over. Unsurprisingly, he scored 50 runs in 12 deliveries, creating another world record. And think for a minute? He scored 50 with 3x4 and 6x6, which adds upto 48 runs in 9 balls. This world record will not be broken for a longer time and will stay than any other record?With this six sixes, Yuvraj joined the club of Six Sixers as the 4th person. Before him; West Indies great Sir Garfield Sobers and India's Ravi Shastri joined there while Herschelle Gibbs joined this club this year in March. Well done Yuvraj.


[Java Tips] Add Array into a List and convert a List into an Array
2007-09-20 07:31:00
With Java, putting contents of an Array into a new List object or adding into an existing List object can be achieved easily using a for() loop; just by going through each and every element in array and adding to List one at a time. But that is not needed. Java has provided a method to achieve that easily; just with one method call. Following code snippet shows how.//import java.util.List;//import java.util.Arrays;String[] array = {"one", "two", "three"};List newListObject = Arrays.asList(array);//adding to existing ListString[] newArray = {"four", "five"};newListObject.addAll(Arrays.asList(newArray));Also creating a new Array object using an existing List object can be done using another for() loop; by creating a new Array object with a size matching to list size and adding each on at a time. But for this requirement, there are a set of methods.List list = new ArrayList();list.add("one");list.add("two");Object[] array1 = list.toArray(); //1String[] array2 = list.toArray(new String[0])


QuickTime security issue fixed with Firefox 2.0.0.7 new security release
2007-09-18 22:15:00
Firefox 2.0.0.7 has released a new security release again. As addicted users of FF, we are really happy how Firefox progresses. When ever some issue s are fixed, they provide us with a new release. Also user does not need to think twice in installing the new release as it does not add more issues to your existing installation. When Internet Explorer (IE) 7 came out users had issues; also still we have so many issues with IE7, but not with Firefox.With this release they fixed the bug related to QuickTime ; "Code execution via QuickTime Media-link files". QuickTime Media-Link files contain a qtnext attribute that could be used on Windows systems to launch the default browser with arbitrary command-line options. When the default browser is Firefox 2.0.0.6 or earlier use of the -chrome option allowed a remote attacker to run script commands with the full privileges of the user. This could be used to install malware, steal local data, or otherwise corrupt the victim's computer. Read moreWe r
Read more: Firefox

svnadmin create a new empty project repository in subversion (svn) in Linux
2007-09-13 22:09:00
If you have installed subversion (used for version control) and looking for creating a repository inside that, you are at the right place. Command to create new project repositories inside subversion is svnadmin create.# svnadmin create repoPath- this will create an empty repository.- repoPath has to be a path to a folder, if that folder does not exists; new folder will be created.Consider following examples.# svnadmin create /usr/local/svn/clients/MyProjector # svnadmin create .First command will create a repository inside "/usr/local/svn/clients/MyProject" while the second command creates a repository in your current directory.After creating the repository, you must alter access controls. For that open conf/svnserver.conf found inside newly created repository folder. Common values to alter are;anon-access - access control for non authenticated users - better to set it to none (anon-access = none)auth-access - access control for authenticated users - will need set it to "read" or "wri
Read more: Linux

Call javascript in body tag on different events
2007-09-13 07:38:00
Javascript can be called inside body tag of a web page. Mainly Javascript functions are called on events like Loading a web page, Clicking on a button, Moving mouse, Focusing on an element, etc. For each of these events, there are defined methods and they are fired at that particular event. For example; onclick() is triggered on a mouse click event while onmouseover() is called when mouse moves over an element. But you can call Javascript functions even without any event. Available events for body tag can be listed as follows.ONCLICK : mouse button clickedONDBLCLICK : mouse button double-clickedONMOUSEDOWN : mouse button is pressedONMOUSEOVER : mouse moved onto an elementONMOUSEMOVE : mouse moved over an elementONMOUSEOUT : mouse moved out of an elementONMOUSEUP : mouse button is releasedONKEYPRESS : key pressed and releasedONKEYDOWN : key pressedONKEYUP : key releasedThere are two special events that are specific to body tag. Those are;ONLOAD : document loaded completelyONUNLOAD : d
Read more: different

Which software (geek) monkey worth the most?
2007-09-12 06:48:00
An interesting conversation!!!A tourist walked into a pet shop and was looking at the animals on display. While he was there, another customer walked in and said to the shopkeeper, "I'll have a C monkey please." The shopkeeper nodded, went over to a cage at the side of the shop and took out a monkey. He fit a collar and leash, handed it to the customer, saying, that'll be $5000." The customer paid and walked out with his monkey. Startled, the tourist went over to the shopkeeper and said, "That was a very expensive monkey. Why did it cost so much?" The shopkeeper answered, "Ah, that monkey can program in C very fast, tight code, no bugs, well worth the money."The tourist looked at the monkey in another cage. "That one's even more expensive! $10,000!What does it do?". "Oh, that one's a C++ monkey; it can manage object- oriented programming, Visual C++, even some Java. All the really useful stuff," said the shopkeeper. The tourist looked around for a little longer and saw a third mon


Yahoo! Photos closing on different dates for different users
2007-09-06 22:13:00
Today I got a mail from Yahoo informing that Yahoo Photo is shutting down. But why? As you may guess they are going to stick only to Flickr, which is one of the best solutions if someone wishes to share photos. It will be closed on 2007-10-18 for some of us while the date differs from one user to another. But anyway make sure you transfer all your photos in Yahoo Photo is moved to Flickr or download them to some other place as you will loose them for ever. Only 41 days left for me.
Read more: different , closing , dates , users

Page 3 of 4 « < 2 3 4 > »
eXTReMe Tracker