2010.01.28 - 21:58 |
patrick
Realty [Updated]
The "software" section now contains
Realty - a collection of various GreaseMonkey scripts and Excel sheets to help future homebuyers.
[Update] Added one script and updated two existing ones.
2010.01.03 - 15:04 |
patrick
MBP Battery
14 month old - and the MBP's (last model w/ a user-replaceable battery) battery is still going strong:
- Current battery capacity: 4619 / Max.: 4600
- Current battery charge: 4609 / Max. 4619
(all mAh; numbers via
)
2009.12.22 - 22:24 |
patrick
Hohoho
/\
/^^\
--\/ ~~ \/--
///* **** *\\\
..o--<* Merry Xmas *>--o..
\\\* **** *///
--/\ ~~ /\--
\^^/
\/
2009.12.20 - 00:53 |
patrick
Avatar
Rotten Tomatoes gave Avatar an 82% - so I gave it a chance and spent $13 yesterday.
I have to admit - the 3D effects were stunning. The story, however, was mediocre; think of Pocahontas.
2009.12.10 - 01:58 |
patrick
NYT 12/9
"It is abundantly clear that our medical system wastes enourmous amounts of money on health care that doesn't make people healthier."
Finding the nerve to cut costs by David Leonhardt, NewYorkTimes Business Day
2009.11.16 - 16:50 |
patrick
Simple Math [Update]
When leaving out (more or less) the optimization stage:
"LLVM was considered during the early stages of the Go project, but its compile-time performance was judged to be inadequate."
then your compiler will be obviously faster than the competition:
"The GCC-based compiler isn't as fast but is said to generate more efficient code."; I assume that LLVM generates more efficient code than the Go compiler.
Found within
ArsTechnica's report on Google's Go language.
[Upd]Rob Pike's outfit is clearly a "No-Go" (
The Go Programming Language)
2009.11.11 - 05:58 |
patrick
Up & Pasha
Things after work ...
first we had a delicious moroccan dinner at the
Pasha Lounge, and then we stopped by a Redbox and rented
Pixar's
Up - a meaningful and enjoyable movie.
2009.11.05 - 15:38 |
patrick
Switched text editors
And its name is
MacVim - a Cocoa port of
vim. The only thing you might want to do is to rebuild the app - e.g. Perl scripting support is disabled by default.
Reading
Swaroop's Byte of Vim really convinced me. Give vim a chance and take his tutorial (book) for a spin.
Another thing you can do, is to print out the
vim cheat sheet (keymap).
Here is a list of scripts that I've installed so far:
Don't forget to install cscope and ctags via
MacPorts or Fink.
At last, my .vimrc:
" Use the VIM enhancements
set nocompatible
" Use UTF-8 encoding
set encoding=utf-8
" User interface
set showcmd " Show command
set number " Show line numbers
set laststatus=2 "Always show a status line
set statusline=%F\ [%(%R\|%)%(%M\|%)%L\ lines]\ @%l,%c\ (%p%%)
set whichwrap+=<,>,h,l " Allow backspace and cursor to wrap
" Enable smart indent
set smartindent
set autoindent
filetype plugin indent on " Also depend on the filetype
" Tabs
set expandtab " Replace tab w/ whitespaces
set tabstop=2 " Tab = 2 characters
set shiftwidth=2 " With for autoindent
" Search
set incsearch " Incremental search - start while typing
set ignorecase " Case-insensitive searches
set smartcase " Pattern w/ upper-case are case-sensitive
set hlsearch " Highlight all matches (esp. useful w/ *)
" Line wrap
set nowrap " Don't wrap lines
set sidescroll=5 " Scroll 5 columns
set listchars+=precedes:<,extends:> " Show arrow if more
set linebreak " Break at word boundaries - if wrap is turned on
set showbreak=~~ " Indicate the wrapping
" Misc. options
syntax enable
set backspace=indent,eol,start " Can join, remove autoindents
set spelllang=en_us " American english for spell checking
set grepprg=grep\ -nH\ $* " Always incl. the filename
" Fold
set foldmethod=indent " Fold by indent
set foldlevel=9 " Don't fold the first 10 levels by default
" Space opens/closes a fold - or just moves on to the right
nnoremap <silent> <Space> @=(foldlevel('.')?'za':'l')
" Create a fold in visual mode
vnoremap <Space> zf
" Omni-completion
imap <c-space> <c-x><c-o>
map <nul> <c-x><c-o>
" GUI options only -- no need for a gvimrc
if has("gui_running")
set guifont=Menlo:h12
set guioptions-=T " Hide the toolbar
" Include .gvimrc when the bug is fixed
" Console options only
else
hi Comment ctermfg=Lightblue
hi LineNr ctermfg=Gray
endif
" TeX Suite plugin
let g:tex_flavor='latex' " Latex suite - Instead of 'plaintex'
let Tex_ViewRuleComplete_pdf = '/usr/bin/open -a Preview $*.pdf'
" Dr. Chip plugins
let g:DrChipTopLvlMenu='Plugins.' " Put Dr.Chip plugins into 'Plugins' menu
all rights [r] belong to us.