Writing

  • Create random 16-digit number with Groovy in soapUI

    , , ,

    It’s easy as 1, 2, 3. Create a DataGen step with the following: Type = ScriptMode = Read Add the following script: long number = (long) Math.floor(Math.random() * 9000000000000000L) + 1000000000000000L That’s it!

  • Mounting network folders using SSH on OS X Lion

    ,

    It’s easy as clapping your hands! Just get Macfusion and use the GUI to mount to any *nix-based systems.

  • Fix for soapUI freezing on Mac OS X Lion

    soapUI-Pro-4.5.1 kept on freezing on me intermittently on my MacBook Pro.  The cause of the problem is the jxbrowser browser component.  To fix it, do the following: Close/kill soapUI /Applications/SmartBear/soapUI-Pro-4.5.1.app > Show Package Contents Edit /Applications/SmartBear/soapUI-Pro-4.5.1.app/Contents/Resources/app/bin/soapui-pro.sh Uncomment "JAVA_OPTS="$JAVA_OPTS -Dsoapui.jxbrowser.disable=true" Start soapUI Hope this helps.

  • Add color to iTerm and terminal on OS X Lion

    ,

    1. Add the following to your .bash_profile: # Enables color in the terminal bash shell exportCLICOLOR=1# Sets up the color scheme for list exportLSCOLORS=gxfxcxdxbxegedabagacad# Sets up the prompt color (currently a green similar to linux terminal)export PS1=’\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$ ‘# Enables color for iTermexport TERM=xterm-color# Sets up proper alias commands when calledalias ls=’ls -G’alias ll=’ls -hl’ 2.…

  • Scheduling a task on OS X Lion

    After looking through a number of sources on how to schedule a task on OS X Lion, I found out using launchd was the best option, as it will run a missed task as soon as the computer turns on (unlike cron). Things you’ll need to setup: 1. Create a plist and place it in…

  • Allow Tab key to indent block of code in TextWrangler

    After installing TextWrangler, I tried indenting a block of code by highlighting and hitting the Tab key — didn’t work.  Apparently, by default, the setting is disabled.   To change that behavior, go to Preferences > Keyboard and check "Allow Tab key to indent text blocks," as in the screenshot below.