How to open task manager when Ctrl Alt Del doesn’t work?

This is useful, when you operate on anther computer using remote desktop. Use Ctrl+Alt+Del you always open task manager of your local box. At this time, you need to run a command.

Go to Start -> Run, type taskmgr, press OK

Javascript String Empty Check

What’s the best way to check for an empty string in Javascript?

If you just want to check whether there’s any value, you can do

Continue »

Favorite Java development and deployment tools

1.http://www.zeroturnaround.com/jrebel/

2.http://controltier.org/wiki/ControlTier

3.How to improve productivity when developing JEE based web applications.

The correct way to deploy Java web project

I developed a Java Web Service project on my local box. It has been working fine with my testing. Now I need to deploy this project to a remote server, which will be assigned a static domain name for our department. I searched everywhere, and finally find the following ways to deploy a web project.

Continue »

Learn CSS layout through one example

Even confused by CSS layout?  Here is an good example showing that how to make a good css layout. It’s stackoverflow’s css layout, I simiplied it and make a simplest version.

sof

Here you can download the css code. If you like this design, you can make it a WordPress Theme.

http://programcreek.com/downloads/sof.rar

How to enable remote access to MySQL server on Windows

On Linux, we can easily enable remote access to MySQL server, but on Windows, the approach is different.
Here’s the steps to do that:

Continue »

Does SCWCD help in job?

I saw a lot of people asking this question. I don’t know exactly how much useful it is in job, but I can use my experience to let you get the idea.

Ever since I got SCJP and SCWCD, and put my resume on monster and yahoo hotjob, I got emails everyday about offering me a job and also get calls from time to time. Some of the consulting service directly tell me that they see I have SCWCD certificate.So you see the point, it brings you more opportunities.

Also it is a terrific way to learn Java Web development. It is true that some of the people who owe the certificate can not write even a very simple web app. So it can not prove that you are an expert of Web development, but it does show that you have a lot of knowledge in this area.

It is a great thing you should get if you have time.

Access ServletContext from within a JAX-WS Web Service

In a typical J2EE project, we put the application level initial parameter in context-param tag in web.xml, such as database configuration, administrator’s email address, etc.

The values within the element can be accessed like so:

String value = 
getServletContext().getInitParameter("name_of_context_initialization_parameter");

When dealing with Web Service, the same problem comes up.

Continue »