Technocrat’s Perspective

-a technical blog

Hats off to Lawrence…a blog out of technical

Hi all,

Tamil Actor and the leading choreographer of Tamil film industry is to be awarded Best Social Worker this year from TamilNadu govenment. He is none other than Raghavendra Lawrence. The 35 year old actor has been supportive for the physically challenged peoples. He even makes the physically challenged peoples to dance. I personally feel he is the right person doing this service with his true involvement. I did watched few programs where Lawrence used Physically challenged guys/gals to dance.  The thing to watch is lawrence boost up the confidence on their mind and to be honest, even sometimes a normal dancers could not perform like the way they perform. Lawrence is supporting around 70 such peoples. On the mean time, we should also honour atleast with words both Rajinikanth and Soundarya Rajinikanth who take care of their food expense. I had a personal experience visiting government orphanage at soolakarai, Virudhunagar. There are more than 100 such peoples. They sometimes have to skip foods if there was no donator for the day. As far as to the best of their knowledge, their minds stick to Puri(Indian tiffen item) as the best. Government should take care of those kids atleast to have food on three times. Atleast there should not be no bribes between this. Before dropping out of this blog, just wish to say….hats off to Raghavendra Lawrence.

Comments are Welcomed.

August 13, 2009 Posted by npselvan | TechBitz | | No Comments Yet

POI jar compatibility issue

Hi all,

               I was held up with some task to do on Excel file in Java. I finally decide to work out with the third party jar file POI. Well this is a product of Apache. 

What i have to do with POI ?

              I have to read through excel file and update excel file when fetched with the cell value to be replaced. I done with all the implementation work and uploaded the same on the server. I do have Microsoft office 2003 installed on my computer. I tested well with the excel file created on Microsoft office 2003  and also with the excel file created using Open Office. A few days later, a client reported an issue stating that the excel file reading and updating the excel file is not working. I then collected the logs from him and surprised to see that the excel file created using excel file on Microsoft office 2007 will not work with POI jar as the data reading mechanism is different from the predecessor. I soon realised that testing is a vital thing, before shipping the product. Though certain things cannot be avoided, it is quite a learning experience. I love to make such faults in my working environment.

 Stumble for Technical

Comments are Welcomed….!

June 25, 2009 Posted by npselvan | TechBitz | , , , , , , | 2 Comments

Few unanswerable questions….

Hi Folks,

When i was doing my engineering graduation, a lecturer often shoot these questions and i never tried replying for his question. Though it seems silly, might be worth reading and analysing it. Atlast we could end up with no answer from us.

  • Why do a magnet position in North-South direction ? why not it be east-west ?
  • Why do clock rotates always in clock-wise direction ? why not it be rotating anti-clockwise direction ? could you imagine such a clock ?

Comments are Welcomed….!

April 7, 2009 Posted by npselvan | TechBitz | | 2 Comments

Stumbleupon

Hi folks,

I always like to spend time on browsing. Almost all internet crawlers fix google as their gateway on information searching. It makes really wonder on thinking about how google algorithm is implemented. Usually when i go on searching for an information through Google, i click on all the links listed out on the first page and the probability of getting successful resource might be 90%. I came to know through a friend that Stumbleupon add-on could be helpful in such case. I am now addict with stumbleupon. Preferences  can be configured on creating account with stumbleupon. When you click on the ‘Stumble!’ on the toolbar the pages related with the preferences configured are listed out on successive click. Also keyword based search is supported with this add-on. Also the page we like can be bookmarked and it will be listed out the account we register. Though bookmarks can be maintained on the browser itself, there might be possibilities of deleting the bookmarks without once knowledge. But the bookmarks maintained here last longer and can be retrieved at any time. I am happy with what Stumbleupon delivering. The stumbleupon add-on is available with most popular browser like Internet Explorer and Firefox.

Comments are Welcomed….!

April 7, 2009 Posted by npselvan | TechBitz | , , | 1 Comment

QEngine – Regression Testing

Hi Folks,

                        In a simple words, Regression Testing can be said as re-running the previously executed test and check with PF(Passed-Failed) report. QEngine bundles regression testing along with WebFunctional and Web Load Testing.  Regression testing configuration in QEngine is also very simple. The available suites will be listed in a drop-down combo and you can select any number of suites for regression scheduling. Apart from selecting the suites, you have to provide the email address, where in the report will be mailed to you and finally the time, when the regression testing schedule has to be executed is to be configured. QEngine provided with recurrence like you can configure the suite to be invoked only once or in hourly basis or monthly etc., When the QEngine server clock ticks the configured time of regression test, the scheduler invokes the suites and start executes the test and finally provide with PF report to the configured mail id. So, go ahead with testing on QEngine and you could feel your easy.

 

Comments are welcomed…!

April 5, 2009 Posted by npselvan | TechBitz | , , , , , | 1 Comment

Working Experience on Firefox3 Extension

Hi Folks,
I was held up with a task of supporting an extension compatible to Firefox 3 and that extension was working fine with Firefox 2. I could not find out the traces of how and from where to proceed. I should thank my team lead for his amazing support and also to the mozilla.dev.planning newsgroup for their continuous suggestion. Atlast I should also thank for MSDN and our everlasting friend, Google(www.google.com). Few classes that were written in Firefox 2 source seems missing and replaced with new set of classes in Firefox 3 source. So guys, whenever you are stopped on extension development for Firefox 3, go ahead and post your problem on mozilla.dev.planning newsgroup and you will be provided with workaround at the earliest. Once again thanking all who was supportive on my development phase.

 

Comments are Welcome….!

April 5, 2009 Posted by npselvan | TechBitz | | No Comments Yet

Distributed Load Testing Tool

Hi Folks,

Let me analyze of how distributed load testing can be done with a handy tool, AdventNet QEngine 6.9. As quality matters everywhere high attention has to be paid in those areas. As far as an application, few metrics have to taken into account before delivered into the market. Response time analysis and load capacity of the application must be done. We cannot make calculation over rough paper for these metrics manually everytime. Suppose if the application is to be tested with load capacity of 5 users, we can try for it. What happens when we need to load test the application for 1000 or 10000 users?. Testing tool like LoadRunner, QEngine, Neoload etc., can be helpful in this scenario. QEngine costs low comparing with other competitors. The tool is user-friendly too. Let me analyze on the tool QEngine of how to distribute the load test of your application in your environment. Let us assume, you have purchased the license of 5000 Virtual User on QEngine and you have to test your application with 5000 user load. You cannot go with testing such high load on a single server machine. You can install the license on the server machine and the virtual user load can be distributed through several machines(Agents). The recommended Virtual user configuration from QEngine for a 1GB machine is 500 virtual users. The agent has to be configured in the server machine with their IP address and Load test user credential. The Distributed agent has to be started from the configured agents by selecting the ‘Start -> Programs >AdventNet QEngine WebPerformance -> Start Distributed Agent’.After starting the distributed agents in all agents, the application which was recorded previously configured with Virtual user specification can be load tested by hitting the ‘Start Load Test’ button.

Hope this discussion help you,

Stumble for Technical

Comments are welcomed…!

November 15, 2008 Posted by npselvan | TechBitz, Technology, Tools | , , , , | No Comments Yet

Sending Mail with attachment through JavaMail

Hi Folks,

In this article, am going to give you a sample program to send an email with attachment through JavaMail API in java program. You should have JavaMail and JavaBeans Activation Framework(if needed) to make work this program. JAF is needed when you have the JDK installed other than the version 1.6 or more. JAF is bundled with JDK1.6 and for those who use the older version can follow the download file reference link available here. JavaMail download reference link can be followed by clicking here. When you extract both these downloaded zip file, you can have the jar files named ‘activation.jar’(from JAF) and ‘mail.jar’(from JavaMail). Place these two jar files under the ‘lib’ folders of the JDK installation directory and also make the reference of these two jar files to the classpath environment variable.

I here with inline the java program to send mail with attachment.

import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
public class MailWithAttachment
{
public static void main(String[] args)
{
try
{
java.util.Properties mailprop = new java.util.Properties();
String host =  "smtp";
String fromAddress = "test@enpysoft.com";
String toAddress = "muthuselvan@adventnet.com";
String filename = "c://npselvan//invitation.tiff";
String subj = "Invitation";
String content = "Hi Friends!,\n\tI cordially invite you all guys for the seminar.\n\nRegards,\nNpselvan.";
mailprop.put("mail.smtp.host",host);
Session session = Session.getInstance(mailprop,null);
MimeMessage message = new MimeMessage(session);
message.setFrom(new InternetAddress(fromAddress));
message.addRecipient(Message.RecipientType.TO,new InternetAddress(toAddress));
message.setSubject(subj);
MimeBodyPart mbp1 = new MimeBodyPart();
mbp1.setText(content);
MimeBodyPart mbp2 = new MimeBodyPart();
FileDataSource fds = new FileDataSource(filename);
mbp2.setDataHandler(new DataHandler(fds));
mbp2.setFileName(fds.getName());
Multipart mp = new MimeMultipart();
mp.addBodyPart(mbp1);
mp.addBodyPart(mbp2);
message.setContent(mp);
message.setSentDate(new java.util.Date());
Transport.send(message);
}
catch(Exception e)
{
e.printStackTrace();
}
}
}


Hope the above program could fetch idea to the beginners of Java.

Comments are Welcomed..!

Stumble for Technical

October 17, 2008 Posted by npselvan | TechBitz, Technology | , , , , , | No Comments Yet