September 19th, 2010
Vinay
Any time you want Hibernate to manage the persistence of your JavaBeans, you must first initiate a transaction, which is just a simple method call on the Hibernate Session.
hibernateSession.beginTransaction();
Once you being a transaction, you can start associating your POJOs and JavaBeans with the Hibernate Session. If you don’t initiate a transaction, you’ll get a runtime exception telling you about no transactional context being in existence, and at all costs, we want to avoid runtime exceptions.
Now, the really cool thing about Hibernate is the fact that once a transaction has been started, all you have to do is associate an instance with the Session, and then Hibernate will take care of fully managing the persistent state of that instance, right up to and including the point where you commit the transaction. When you finally commit the transaction, the state of all of the POJO’s that have been associated with the Hibernate Session will be saved to the database. Read more…
September 17th, 2010
Vinay
Let us start with this simple questions, What are the engineers at google are obsessed with ?
Answer : Speed
Google instant was the latest delivered in search in which google displays search result as soon as you start punching your keyboard. By predicting your search and showing results before you finish typing, Google Instant can save 2-5 seconds per search.
Google’s spoke person Matt Cutts had also made it clear that the sites which will perform slow , will be penalized.
So what is the next thing web developers around the world will start work towards (They have been working towards it , but now they might get obsessed) ?
Yes you are right . Improve the performance of their website/application.
Read more…
September 15th, 2010
Vinay
Have you heard of Terracotta ?
Terracotta helps their customers by getting their database data in memory as close to the application as possible. As customers continue to put larger data sets into cache, they require larger and larger Java heaps. As a result, Terracotta and their customers are spending more time dealing with Java garbage collection tuning issues.
They’ve been able to tune for Java heaps up to 10GB, but are getting requests for larger heaps–up to 100GB in some cases–where GC pauses are just too long (five minutes or longer). This is unacceptably long.
So Amit pandey, CEO of Terracotta in an interview explained why they used BigMemory to solve the GC problem.
BigMemory is a snap-in module that provides off-heap memory storage. It is a pure Java solution that works with all JVMs and bypasses the Java garbage collector. You don’t even need to be in distributed caching mode to use BigMemory, but it works with both standalone and distributed caches. Like most Ehcache features, it requires only a few lines of configuration. BigMemory can also handle hundreds of millions of objects. Read more…
September 14th, 2010
Vinay
Interested in working at google ? There are 1000 jobs opening in google.
Don Dodge has posted on How to get a job at Google, interview questions, hiring process. Helpful for those who want to be part of google.
We had posted a google SEO quiz for those of you who want to know how good they are at SEO.
September 14th, 2010
Vinay
Now since google acknowledges that SEO exists and it is ok to have your page optimized for search engine rankings, people asked about google’s SEO certification program.
Here is Matt CGoogle SEO certifcation programsuts reply
September 13th, 2010
Vinay
Java script has very powerful regular expression capabilities which are now being extended in java through java.util.regex package
We will look at a very simple example in which we will validate if there could be any non zero number after decimal or not
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class TestRegularExpression {
public void decimalRegExpre(){
// Create a pattern to check if there is any non zero number after decimal
Pattern p = Pattern.compile(“^\\d{0,6}(,?\\d{0,6})*\\.?(\\.[0])?$”);
Matcher matcher = p.matcher(“4888.0″);
System.out.println(matcher.matches());
}
/**
* @param args
*/
public static void main(String[] args) {
TestRegularExpression testReg = new TestRegularExpression();
testReg.decimalRegExpre();
}
}
matcher.matches() will return true in this case. If you change the value to 26.1, it will return false.
java.util.regex
September 12th, 2010
Vinay
In a move of what is said to cope with high unemployment rates, the US state of Ohio has banned outsourcing of government IT and back office projects to offshore locations such as India. This comes ahead of the November elections approaching in the US. “The Democrats are reportedly behind the polls and are trying to make headlines that will improve their position”, says Rodney Nelsestuen, Sr. Research Director, TowerGroup. “Since the economy is getting the most attention of any issue the county faces, whatever can appear to create jobs will play well, he added”. Indian IT giants Infosys Technologies, Wipro and Patni Computer Systems face a challenge now, particularly if it inspires other states to limit foreign outsourcing of government work.
The ban comes after it was discovered that Parago Inc., a Texas-based company hired by Ohio Department of Development to monitor a rebate program for new energy-efficient appliances, used call center workers in El Salvador. This prompted Governor Strickland to pass this order, in a bid to pre-empt further use of public funds for offshore services. States such as Virginia are also facing a massive backlash against outsourcing. West Virginia Public workers Union, last week filed a lawsuit against proposed outsourcing of IT jobs by the state’s office of technology. Ohio’s move adds to the perception that it involves serious loss of jobs. They are now making serious efforts to hire more Americans and keep much of the work stateside.
Read more…
September 11th, 2010
Vinay
Amit is an Oracle expert who has written some excellent posts at Skill-Guru
He has created a 49 questions for OCP 11g certification practice test questions – 1Z0_050
The test costs $2.99 and 6 questions are free to try.
More details about the exam 1Z0_050
Time : 105 minutes
Number of questions : 77
Passing score : 61%
Exam Price: US$ 195
This Oracle Database 11g: New Features for Administrators practice test comes with money back gurantee. If not satosfied, we will refund your money.
Objectives of this 1Z0_050 exam : Read more…