Map
for(String parameter : parameters.keySet()) {
int i=0;
String[] values = parameters.get(parameter);
out.write(parameter);
if (values.length>0){
out.print(values[i]);
}
i++;
}
Wednesday, March 6, 2013
Parsing all form fields from JSP
Posted by iCehaNgeR's hAcK NoteS at 10:34 AM 0 comments
Tuesday, March 5, 2013
JQuery and Google chrome debugging
Ctr + Shift+ C will get you to the Chrome java script console.
Network will take you the actual page that was executed.
Source will take you to the src where you can set the debug break points.
Console is a good place where you can see the error or your custom log out puts. For example you can do the log content by console.log(data); where data is a string that is printed to the console.
Posted by iCehaNgeR's hAcK NoteS at 10:21 PM 0 comments
Thursday, February 2, 2012
Gimp Photo scaling for even height and width.
Lot of times when you want to scale the image to a square value lets say 2x2 the scaling value won't match. To fix this use this options
- Use the rectangle select and choose fixed and size from drop down.
- Give a higher square number like 2700x 2700 so that the select rectangle cover the intended area of your picture.
- now crop the image to selection.
- During scaling provide DPI value as 300 pixels and your intended scaling number like 2 inch and 2 inch
For clearing the background.
- Use the fuzzy select and select the area you want to clear.
- Use the color picker to get the color.
- right click and fill it with the choose color
- finish it up with paint tool to get more even color.
- Finallyuse the fuzzy select tool again on the background now right click on the selection and select image color option and select brightness give the max value for a white background.
Posted by iCehaNgeR's hAcK NoteS at 4:51 AM 0 comments
Wednesday, February 16, 2011
SOAPUI
Steps needed.
- Create a New Rest SOAPUI project.
- Import the WADL to create the REST project.
- If the REST project does not have a WADL file, it can be created easily by typing the REST url with ending application.wadl under the context of REST
- http://host/project/context/application.wadl
- This will generate the WADL file required for SOAPUI.
- Create a TestSuite.
- Write the Groovy script in the setup portion of the Testcase.
- If the Groovy file needs an external library or your application class jar that file and add them under the /bin/ext folder in SOAPUI home folder. Otherwise you will get the classnot found error during exception.
- Create a property file if you want a dynamic variable change during your request.
- Create the REST request as the test case
- Now change the Request file to add the properties.
- Run the Testsuite.
Posted by iCehaNgeR's hAcK NoteS at 4:01 PM 0 comments
Monday, February 14, 2011
REST WADL
http://10.xxx.xx.x:8080/{$projectname}/{$rest}/application.wadl That should generate the required WADL for creating SOAPUI project
Posted by iCehaNgeR's hAcK NoteS at 11:33 AM 0 comments
Friday, April 16, 2010
List ports listening
Posted by iCehaNgeR's hAcK NoteS at 3:43 PM 1 comments
List all installed jre linux
Posted by iCehaNgeR's hAcK NoteS at 3:19 PM 0 comments