Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

Deploy project on tomcat start without project name

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

SEVERE: Exception unloading sessions to persistent storage

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

How to override method that generated the link to access the document in openerp

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

Crop Image in iOS

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

How upload only max 4 images in PHP?

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

How to extract a number from a string in PHP ?

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.

Hide Soft keyboard in android

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

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

How to pass mulitple values to update records with a single query

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

Shortest way to find the max element of a array

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&

1 536 596
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: