The effective Java logout servlet code
The invalidate() method of the javax.servlet.http.HttpSession may not achieve the complete user logout in some browsers. In this post, I'm discussing how to write an effective logout code in the Java Servlets: http://www.technicaladvices.com/2012/07/08/the-effective-java-logout-servlet-code/
Tags:  effective logout httpsession invalidate caching java ie servlets |
Getting the Linux version and distribution that you are using
Sometimes, you may not have the information of the Linux server that you are deploying on. In this post, I illustrate how to get the version and the distribution information of the Linux server you are working on: http://www.technicaladvices.com/2012/06/20/getting-the-linux-version-and-distributon-that-you-are-using/ I wish it can be helpful.
Tags:  command etc version servers distributon linux |
Developing Weather Application using Dojo Mobile
Dojo mobile (dojox/mobile) is one of the most powerful JavaScript frameworks that enable you to build cross mobiles web applications. It does not only contain mobile components but also it mimics the interface of the different mobile devices. Adding to this it responds to the mobile orientations. In this article, I will illustrate how to use the framework for building a weather application on the iPhone mobile: Read the full article here
Tags:  dojo mobile ajax dojox.mobile.view html5 android dojox blackberry iphone |
“Efficient JavaScript unit testing” video session in CONFESS 2012
This video provides a presentation about how to make efficient JavaScript unit testing. I presented it in the CON-FESS 2012 international conference which was held in Leogang, Austria. I wish it can be useful.
Tags:  unit austria confess javascript hazem saleh presentation testing jstestdriver leogang confess_2012 video session |
DB2 calling REORG command from JDBC |
"Efficient JavaScript unit testing" presentation in CONFESS 2012
I just got back from the International technical conference CONFESS 2012 which was held in Leogang, Austria. The conference was very cool, the hotel and the city were fantastic, the quality of the sessions and the speakers were great.
Now, I got finally some free time to share with you my presentation about my efficient JavaScript unit testing. I hope it will be useful for you. Once I get the video session, I will definitely share it with you as well.
Have a nice time.
Tags:  confess_2012 session unit testing javascript confess hazem jstestdriver presentation saleh austria leogang |
JsTestDriver integration with Hudson
JsTestDriver can be integrated easily with continuous integration tools. In this post, I will illustrate how to integrate JsTestDriver with Hudson: http://www.technicaladvices.com/2012/05/05/jstestdriver-integration-with-hudson/
Tags:  unit integration ie windows firefox javascript hudson safari jstestdriver testing |
Converting the JsTestDriver coverage files to HTML Reports
In this post, I will show you the detailed steps that are required to convert the JsTestDriver LCOV coverage files to HTML reports in Linux Redhat environment: http://www.technicaladvices.com/2012/05/02/converting-the-jstestdriver-coverage-files-to-html-reports/
Tags:  function code jstestdriver linux redhat reports visualizer genhtml lcov rpm coverage line html branch |
Resolution of genhtml: ERROR: cannot create directory !
When using the LCOV Visualizer tool to generate the HTML reports from the JsTestDriver lcov coverage files, you may face this error "genhtml: ERROR: cannot create directory !". In this post, I illustrate how to fix this error: http://www.technicaladvices.com/2012/04/25/resolution-of-genhtml-error-cannot-create-directory/
Tags:  genhtml jstestdriver linux cannot visualizer ! genhtml: lcov create directory reports error: redhat |
Creating a Mashup Dojo Widget
I just published an article about creating Custom Dojo component in Wazi. This article illustrates how to create a Dojo mashup component. The Dojo mashup component utilizes the Google maps API V3 to display the locations on a map.
Read the full article in Wazi .
Tags:  custom attach dojo google maps point widget mashup component |
Modern Web Architecture: The HTML5 Web Storage
One of the most important features of HTML5 is the Web Storage feature. Using the Web Storage feature, the client state can be saved on the browser level without consuming the network bandwidth or the server memory. The Web Storage increases the scalability of the web applications on the server level and on the network level. In this article, I will show you how to work with the HTML5 Web Storage feature:
http://www.technicaladvices.com/2012/04/12/modern-web-architecture-the-html5-web-storage/ .
Tags:  architecture scalability ie8 opera firefox localstorage modern javascript storage safari sessionstorage web html5 chrome |
Testing JavaScript code using Jasmine (Kickstart) |
Java getting the class path in the runtime
In some cases, you may need to know for debugging purposes from where a specific class is loaded. You may need to know which jar is containing a specific class. Thanks to the ProtectionDomain, you can get this information. Read More ...
Tags:  java classpath protectiondomain |
Detecting the Page Leave event in JavaScript
You may need to detect if the user is leaving your web page for displaying a warning message to the user mentioning that (s)he may not leave the page and the form is containing data filled by him/her. To be able to detect this event in JavaScript, you need to deal with the "onbeforeunload" event. The following example explains the idea: Read more ...
Tags:  ie onbeforeunload javascript firefox safari leave page |
"Ajax Status Zero" Resolution
"Ajax status is zero" is one of the hardest errors to debug especially when the Ajax readyState is 4. This post illustrates what is meant by Ajax status zero and proposes a way to solve it:
http://www.technicaladvices.com/2012/03/14/ajax-status-zero-resolution/ .
Tags:  ajax firefox jstestdriver 0 cross access-control-allow-orig... domain javascript zero status resolution |