» Publishers, Monetize your RSS feeds with FeedShow: More infos (Show/Hide Ads)
Date: Wednesday, 19 Dec 2007 11:17
This is useful especially if you are insanely bugged by the smart testers who love international characters being filled at the places where it is not required.
Here is the simple checking code. As always, if you have something better to share, please use comments.
public static boolean canEncode(String s, String cs)
{
try
{
ByteArrayOutputStream baos = new ByteArrayOutputStream();
Writer w
Date: Tuesday, 14 Aug 2007 07:02
Do you want images like the one below to display during your Ajax calls?
Point to the title of this post to get many such activity indicators.
Date: Tuesday, 14 Aug 2007 07:00
A report called "Java Economy in India: A Pessimistic Estimate", conducted by Prof Rajanish Dass and Prof Rashi Goyal of the Indian Institute of Management, Ahmedabad, has estimated the size of Indian Java economy at $14.65 billion for 2006, up from $11.27 billion a year ago.
Full story at the title of this post.
Date: Tuesday, 22 May 2007 08:06
This could be the first time that my blog readers would be seeing me and that too with Scott McNealy, the co-founder and Chairman of Sun Microsystems.
Date: Friday, 18 May 2007 20:50
I was lucky to get in to the Hall1 of the Ball Room where more than 400 delegates were eagerly waiting to see McNealy. Sometimes arriving earlier helps :)
Scott McNealy Arrives
What he had to say:
Sun has open sourced many of the leading technolgoy and tools for the community out there.
Click and Wait...
Free... Free... Free... is the mantra! from Sun. Any legal issues can be directed to Sun
Date: Friday, 18 May 2007 19:53
A fantastic day at the Sun Technolgoy Summit with Scott McNealy at Bangalore!
Registration area.
Waiting for scott...
Delegate!
Decent crowd.
Dias.
Anand Agarwalla has noted down points on his blog http://angraze.wordpress.com/2007/05/18/sun-technology-summit-07-bangalore/
[Resource-Type: Event; Category: Java; XRating: 4]
Date: Friday, 18 May 2007 19:49
Get ready to meet the legend - Chairman and Co-founder of Sun Microsystems, Scott McNealy - an innovator and leader in the IT industry.
He is going to be in town (Bangalore) to talk about the latest and hottest stuff relating to Java. Interested in joining?
Here are the details.
Venue: Taj Westend, Race Course Road, Bangalore
Date: 18th May, 2007
Timings: 09:00 am - 04:00 pm
Full details are
Date: Friday, 18 May 2007 19:46
How about getting RSS updates of your application logs?
Heres a sample and simple Log4J RSS appender.
The RSS Appender binary can be downloaded from the title of this page.
1. to log4j.appender.rss=org.lorecraft.rssappender.RSSAppender
2. log4j.appender.rss.port=1234
3. log4j.appender.rss.maxSize=10
4. log4j.appender.rss.layout=org.apache.log4j.PatternLayout
5.
Date: Monday, 07 May 2007 13:11
Have you ever felt the need to encrypt those plain text passwords you store in the database for your application authentication?
Would you like to encrypt the plain text in such a way that it can only be interpreted by your application and does not make sense for a naked eye?
Here is a simple code to encrypt a plain text.
public synchronized String encrypt(String plaintext) throws
Date: Thursday, 19 Apr 2007 08:42
Every application either accicentaly or by design, ends up having some system configuration parameters in the database and some in the configuration ( .ini or .xml or .config) files. But where are they better placed?
Pranshu Jain has written an excellent post to explain just this. Refer title of this post to read the full entry.
In a nutshell:
The config files are important in cases where
Date: Friday, 30 Mar 2007 18:33
The answser is, you cannot.
java.sql.Date does not store/retrieve any information related to time.
So, how do you solve the problem of saving the date with time in your database?
Simple... use java.sql.Timestamp. There are methods in java.sql.PreparedStatement and java.sql.Statement to set the timestamp.
For a detailed analysis and usage, point to the title of this post that takes you to "
Date: Tuesday, 27 Mar 2007 20:10
Recently, I struggled for a code that could validate my html form's textbox that should accept only number.
Following is the code to validate whether the text inside an input like textbox is a number or not.
document.form_name.input_name.value.match(/^\d+$/)
Of course, you need to replace form_name and input_name with respective values in your html form.
This returns true or false based on the
Date: Tuesday, 27 Mar 2007 20:09
There had been a sort of thanksgiving when developers found the life saving code for JavaScript Number validation.
Many of them asked for some or the other type of variant. e.g. can I have only alphanumeric checking script, can I have email checking script and what not.
Now, here is a life saver for all of us. javascript-coder.com has a great library to make our life much much simpler. They
Date: Thursday, 15 Mar 2007 06:28
This is one code that saved hours for me. Thanks to "jguru" for sharing the code that gives me all the IP addresses associated with my system.
Simply calling InetAddress.getLocalHost().getHostAddress() cannot solve the problem as it may return only one IP address.
Enumeration addrs = ni.getInetAddresses();
while (addrs.hasMoreElements()) {
InetAddress ia = (InetAddress)
Date: Saturday, 10 Feb 2007 21:59
Thanks to Brian Kuhn (refer title of this post) for the following piece of code to to make a List contain unique items only.
On a side thought, would this chew up lot of cpu/memory? Feel free to post your comments.
public List removeDuplicates(List items) {
Set set = new LinkedHashSet();
set.addAll(items);
return new ArrayList(set);
}
[Resource-Type: Source Code; Category: Java/
Date: Saturday, 10 Feb 2007 18:50
Interesting!
The title of the post shows you some snaps and hypes around this phone.
[Resource-Type: Review; Category: Hardware/Mobile Phone; XRating: 3]
Date: Saturday, 10 Feb 2007 17:03
World eBook Fair has Free Access to the public from July 4th to August 4th, in celebration of Project Gutenberg's 35th(25?) Birthday.
Following is just some of the examples of the eBooks available for download:
Core Servlets and Java Server Pages
Linux Complete command reference
Red Hat Linux UNLEASHED.
One of the terms and conditions is that, you can't use any of the downloaded material for
Date: Thursday, 08 Feb 2007 22:37
IBMers also maintain blog. Unlike PlanetSun there is no aggregator for these blog posts but developerWorks bring the best of them at one place. Link to resource for the posts from:
Grady Booch
Software architecture, software engineering, and Renaissance Jazz
Grady has served as architect and architectural mentor for numerous complex software-intensive systems around the world in just
Date: Wednesday, 07 Feb 2007 14:53
Have you ever wanted to create your own database of Websites that meet specific criteria? Web spiders, sometimes referred to as Web crawlers, are programs that follow Web links from one site to another, examining content and recording locations. Commercial search sites use Web spiders to populate their databases; researchers can use spiders to find relevant information. Creating your own spider
Date: Tuesday, 06 Feb 2007 05:27
Ever needed to generate Word documents from your Java applications? There are only a few tools that allow you to do that. The Apache POI team has developed an API for manipulating Excel files (org.apache.poi.hssf packages) and is currently developing one for Word files also (org.apache.poi.hwpf packages). However, the latter is still in early beta stages and is not bundled with the 2.0 release,
» © All content and copyrights belong to their respective authors.«
» © FeedShow - Online RSS Feeds Reader







