星期三, 7月 11, 2012

Sybase - Commands, SQLs, etc


  • Search Sybase objects by its type
SELECT name FROM sysobjects
WHERE type='D'
'U' -- user
'S' -- system
'P' -- procedure
'V' -- view
'D' -- default
'TR' -- trigger
  • Show details of a stored-procedure
sp_helptext 'sp_how_are_you'
  • Get DB name
SELECT db_name()
  • to continue

If You'll Die Today

Dream as if you'll live forever.
Live as if you'll die today.

星期一, 7月 02, 2012

Java Performance

$ jstack -l {pid}
$ kill -3 {pid}

星期五, 6月 29, 2012

Solaris Performance/Monitoring

  • To check detail memory usage of a process
    •  pmap -x pid
  • To check rough memory usage of a process
    • prstat -p pid 0 1
    • 0 : interval
    • 1 : number of times
    •  
    • prstat -u username -s rss

星期三, 6月 13, 2012

vimdiff and folding

vimdiff
do - Get changes from other window into the current window.
dp - Put the changes from current window into the other window.
]c - Jump to the next change.
[c - Jump to the previous change.
:diffupdate :diffu -> recalculate the diff, useful when after making several changes vim's isn't showing minimal changes anymore.

Folding
zo -> open fold.
zc -> close fold.
zr -> reducing folding level.
zm -> one more folding level, please.
zR -> Reduce completely the folding, I said!.
zM -> fold Most!.
:set noscrollbind -> temporarily disable simultaneous scrolling on both buffers, reenable by :set scrollbind and scrolling.

Reference
http://stackoverflow.com/questions/5288875/vimdiff-what-are-the-most-frequently-used-commands-shortcuts-that-could-get-a-n

星期二, 5月 22, 2012

List of cheap airline companies:
  • Ryanair, Virgin blue & Oasis
  • Jetstar Asia
  • Valuair
  • Tiger