Monthly Archives: June 2012

How to use web worker to send soap request and get soap response

web worker is new feature of html 5. web worker povide api for spawning background scripts in your web application. Web Workers allow you to do things like fire up long-running scripts to handle computationally intensive tasks, but without blocking … Continue reading

Posted in programming, web development | Tagged | Leave a comment

what’s the usage of header guard?

When you create header file in Code::Block, you would always see something like this : #ifndef LEFTROTATION_H_INCLUDED#define LEFTROTATION_H_INCLUDED .. #endif why these header guard should be there? Suppose you have a header file named a.h,  then in multiple file, let’s … Continue reading

Posted in programming | Tagged | Leave a comment

Binary Search Tree and Double-linked List

Question: Convert a binary search tree to a sorted double-linked list. We can only change the target of pointers, but cannot create any new nodes.For example, if we input a binary search tree as shown on the left side of … Continue reading

Posted in programming | Tagged | 1 Comment

How to get sum(n)

In the forum, I see a very interest post question: get the sum from 1 to n (n is integer and n >=1). requirements : can not use *, /, bit operator, if-else, while, for, switch, ? , ternary operator, … Continue reading

Posted in programming | Tagged | 1 Comment

java.lang.RuntimeException: XPathFactory#newInstance() failed to create an XPathFactory

  Yesterday, when I tried to update the subscript list on my mobile iportal, I got some exception like this: java.lang.RuntimeException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: No XPathFctory implementation … Continue reading

Posted in work related | Tagged | Leave a comment

how to config vim 7.3

I have used vim for long time since version 7.1. Today I installed the latest version of 7.3. As usual, when I go to the $vim ( vim installation path) to change the _vimrc file, I always get error of … Continue reading

Posted in Uncategorized | Tagged | Leave a comment