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.

Wednesday, February 16, 2011

SOAPUI

Steps needed.

  1. Create a New Rest SOAPUI project.
  2. 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 TestSetup in the SOAPUI project.
    1. Create a TestSuite.
    2. Write the Groovy script in the setup portion of the Testcase.
    3. 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.
    4. Create a property file if you want a dynamic variable change during your request.
    5. Create the REST request as the test case
    6. Now change the Request file to add the properties.
    7. Run the Testsuite.

    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

    Friday, April 16, 2010

    List ports listening

    netstat -tlnp | grep 8080 netstat -tlnp | grep java

    List all installed jre linux

    /usr/sbin/update-alternatives --config java
    There are 2 programs which provide 'java'. Selection Command ----------------------------------------------- * 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java + 2 /usr/java/jdk1.6.0_18/bin/java Enter to keep the current selection[+], or type selection number:

    Thursday, March 25, 2010

    Find the large hidden files in your file system

    find {/path/to/yourdirectory} -type f -size +{file-size-in-kb}k -exec ls -lh {} \; | awk '{ print $8 ": " $5 }'
    where $8 will show your directory and $5 size of the directory.

    Friday, January 1, 2010

    Desprado Song

    Desperado, why don't you come to your senses?
    You been out ridin' fences for so long now
    Oh, you're a hard one
    I know that you got your reasons
    These things that are pleasin' you
    Can hurt you somehow
    Don' you draw the queen of diamonds, boy
    She'll beat you if she's able
    You know the queen of hearts is always your best bet
    
    Now it seems to me, some fine things
    Have been laid upon your table
    But you only want the ones that you can't get
    
    Desperado, oh, you ain't gettin' no youger
    Your pain and your hunger, they're drivin' you home
    And freedom, oh freedom well, that's just some people talkin'
    Your prison is walking through this world all alone
    
    Don't your feet get cold in the winter time?
    The sky won't snow and the sun won't shine
    It's hard to tell the night time from the day
    You're loosin' all your highs and lows
    Ain't it funny how the feeling goes away?
    
    Desperado, why don't you come to your senses?
    Come down from your fences, open the gate
    It may be rainin', but there's a rainbow above you
    You better let somebody love you, before it's too late