
Search In
When we deploy project in tomcat, by default its run as
http://<ip>:8080/warname/index.jsp
But when we use domain name and wants that on running tomcat automatically the projects main page is opened, we simply need to add following entry in
While making changes in jsp pages in eclipse IDE, i was continously getiing error:
java.io.FileNotFoundException:/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/work/Catalina/localhost/_/SESSIONS.ser
SEVERE: Exception unloading sessions to pers
In Openerp first Override the method of function and then write the function in your own module and link the documents at of the classic form view and redirect the documents to the online quote if exists using this get_access function as show in giv
To crop image in iOS use the following method.
it will crop the image from the visible frame of the imageView.
-(UIImage *)imageFromImageView:(UIImageView *)imageView rectFrame:(CGRect)frame{
UIGraphicsBeginImageContextWithOptions(frame.size, im
Hello Reader's if you are developing the website and you want to restrict file upload to max of 4 then you can use the code as below:-
The logic for this condition is you just have to return false is count of array is more than 4. Let's see how is i
Hi Reader's,
Welcome to FindNerd, today we are going to discuss how to extract a number from a string in PHP ?
If you just want to filter the numbers out, the easiest is to use preg_replace() function.
It is very simple and easy function to use.
Below I am writing a method that will hide the soft keyboard in android.
I just use hideSoftInputFromWindow() method of InputMethodManager in this method.
public static void hideKeyboard(Activity activity) {
//start with an 'always hidden
pathinfo() function basically contains the information of the file path. It will take two parameters:
path(required) : path whose information is needed.
options(optional) :tells which elements to return. Values are PATHINFO_DIRNAME(returns director
Hello Readers if you want to update mulitple record by multiple id, then you have to use in clause in MySql
Lets see the example as below:-
$ids = array(474,25, 99,101);
Here I have an array $ids with multiple id's. Now this array will be inse
Hello Reader's if you want to get the shortest way to get the max value of the given array, Then by using JS you do it fast.
To find the result you have to use Math.max() function.
Lets's see the working example as given below:-
<!DOCTYPE html&
