Category: How-to

  • 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!

  • 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.…

  • 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.

  • Ways to check what SMTP server a Linux server is using

    , ,

    Quickest way to test is send yourself a blank email from the server, like so in terminal: mail -s "Test" address1@domain.com address2@domain.com < /dev/null Another way is and it will tell you what servers handle mail: host your_domain.com  Hope this helps.

  • Show hidden files on OS X Lion

    ,

    To enable hidden files/folders in finder windows: Open Finder Open the Utilities folder Open a terminal window Copy and paste the following line in: 1 defaults write com.apple.Finder AppleShowAllFiles YES Press return Now hold ‘alt’ on the keyboard and right click on the Finder icon Click on Relaunch

  • Switching Netflix account on Wii

    ,

    Here are the steps that you need to do to switch the account. 1. From the Wii home screen click on round “Wii” (Options) button in bottom left corner 2. Click “Data Management” 3. Click “Save Data” 4. Click “Wii” 5. Find “Netflix Channel” (red square with letter N), click on it, select “Erase” and then confirm…