November 30th, 2010
Vinay

site Attacked page
If you see a page like this when you are trying to open up your site or some other site, it basically means that there has been some malicious contents hosted on your site or this network. Because of this malicious content , the site has been identified as attack site.
This is a pretty serious problem and if a corporate website is attacked , it could affect all the sub sites associated with this domain, causing overall outage.
In some cases, third parties can add malicious code to legitimate sites, which would cause us to show the warning message.
It could also be that the hosting provider’s servers have been affected which is affecting your site as well.
How to fix this problem ?
1. Set up a Google Webmaster Tools account to get the details of malicious content.
2. Check the directories and files of your server and look for any changed files or new content which look suspicious
3. Change your FTP password.
4. After you have done all verification and clean up , inform google about same
How to remove the “This site may harm your computer”
“http://25yearsofprogramming.com/blog/20071223.htm
How to prevent your site from getting hacked. How to repair a damaged site. Website security precautions
“http://25yearsofprogramming.com/blog/20070705.htm
November 29th, 2010
Vinay
A small code sample on how can you format java.util.date or any date into a desired format
java.util.Date todayDate = new java.util.Date()
or preferably
Date todayDate = Calendar.getInstance().getTime();
// this is the format 2010-11-25 8:30:24
SimpleDateFormat dateFormat = new SimpleDateFormat(“yyyy-MM-dd HH:mm:ss “);
String outcome = dateFormat.format(todayDate);
System.out.println(outcome);
November 28th, 2010
Vinay
A list of commonly used mysql commands at command prompt
Connect to mysql database
mysql -h localhost -uroot -pPassword
or
mysql -uroot -pPassword
Create mysql user
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
or
CREATE USER 'username' IDENTIFIED BY 'password';
Grant All permissions to this user <a href="http://www.skill-guru.com/blog/2010/11/28/my-sql-commands/#more-3036" class="more-link">Read more...</a>
Nowadays Searching right data withing an organization is becoming very important and Google – The most popular search engine provider, is also providing this within an organization. GSA – Google Search Appliance is a product from Google , which provides fast and relevant search within intranet.
GSA like Google site, would croll all the listed intranet sites, and some known data sources like content management systems, user portals and indexes all the documents for search. It also exposes an Google search interface to end users. One can also customize the front end according to their company needs. GSA can also be configured to pull some real time data using special applications called ‘OneBoxes’ which fetch real time data during the search.
According to google :
Google OneBox for Enterprise brings the power and simplicity of search as a “fast front door” to information into the enterprise network. OneBox Modules provide secure real time access to information on the Google Search Appliance or external data sources. On Google.com, OneBox modules display specially formatted information like movies, weather and airport information. Imagine accessing critical information like your business calendar, your business contacts or even sales reports from an easy to use search interface.
Altogether Google is showing how a simple search could add value within an enterprise also.
November 22nd, 2010
Vinay
To create a datasource in tomcat , add this in your conf/context.xml
<Resource name=”jdbc/TestDB” auth=”Container” type=”javax.sql.DataSource”
maxActive=”100″ maxIdle=”30″ maxWait=”10000″
username=”javauser” password=”mypassword” driverClassName=”com.mysql.jdbc.Driver”
url=”jdbc:mysql://localhost:3306/javatest”/>
And if you are using Spring applicationContext.xml file, add this to applicationCOntext.xml file
<jee:jndi-lookup id=”dataSource” jndi-name=“jdbc/TestDB” />
November 21st, 2010
Vinay
Apache Struts had been on eof the most popular open source frameworks in early 2000. It is still very widely used and has seen some major enhancements with Struts 2. Here we have 2 new tests on struts to test your concepts and get you ready for the next hot shot job.
Struts interview questions 1
These are the test which have questions designed to test your concepts as well as practical skills. for eg questions like
You have created a action class called TakeTestAction to dispatch to takeTest.jsp and have configured in struts.xml. The class has only one method named perform() and does not have execute() method.
Which of the following is true?
Another one
You have written a Action class with multiple methods create(), update() and delete(). But, you are asked to configure 3 distinct actions in struts.xml. Which of the following is the best way to implement?
These kinds of questions on struts framework cannot be answered by a person who has not worked with Struts. So this tests will test your knowledge and skills.
November 18th, 2010
Vinay
Another set of JSF Interview questions at Skill-Guru . Tests your knowledge of JSF concepts.
Our earlier JSF Interview questions had received a very good response. Hop you will like this one too.
November 18th, 2010
Vinay
Java is the most popular programming language and even with onset of all new languages like Ruby, Scala, the popularity of java has only grown . Java/J2EE is the preferred enterprise solution for the business user.
So when it comes to number of jobs, no doubt java has the most most jobs. But you should also be prepared when going for interview and here is a series of tests and quiz to help you prepare for Java inerview
A free quiz to test your knowledge of core java and collections
Take java Interview questions.
This test would test you on your basic concepts of java like
What is result Set ? (A class or interface)
When I say this “is the inclusion of behavior (i.e. methods) and state (i.e. variables) of a base class in a derived class so that they are accessible in that derived class”, what I am talking about ?
How many JVM could be run on an operating system ?
Another Java Interview questions test. This test covers more on hands on programming and inner classes