niyue

Archive for 2007年12月|Monthly archive page

web service related pronunciation

In programming on 12月 28, 2007 at 3:23 下午

Web service领域相关的名词术语实在太多,缩写记不清很麻烦,读起来也不知道如何读,今天特地花了些时间搜集了一下这些术语的读音,感觉还挺有意思的:

WSDL
Web Services Description Language, pronounced ‘wiz-dəl’ or spelled out, ‘W-S-D-L’
SOAP
这个最容易, ‘səup’
UDDI
UDDI is NOT pronounced “Uddy”, but as spelt.
jUDDI
pronounced ‘judy’,和上面的不一样:p
WSE
Web Services Enhancements, pronounced ‘wizzy’
JAXWS
pronounced ‘jax-weis’
WSE-WSDL
‘wizzy-wiz-dəl’…

Editing Ruby File in Vim

In programming on 12月 27, 2007 at 10:34 上午

在/usr/share/vim/vim70/filetype.vim(in MacOS X)中找到ruby类型的设置,为其增加不同的后缀,使得*.rb,*.rake等都识别为ruby代码进行语法高亮:

au BufNewFile,BufRead *.rb,*.rake,*.rbw,*.gemspec setf ruby

在.vimrc中设置以下内容,即可使得编辑*.rb和*.erb时tab缩进值为2,但是其他类型的文件仍然为4.

set expandtab ” To insert space characters whenever the tab key is pressed
set tabstop=4 ” To control the number of space characters that will be inserted when the tab key is pressed
set shiftwidth=4 ” To change the number of space characters inserted for indentation
set softtabstop=4 ” makes the spaces feel like real tabs
au BufRead,BufNewFile *.rb set expandtab
au BufRead,BufNewFile *.rb set tabstop=2
au BufRead,BufNewFile *.rb set shiftwidth=2
au BufRead,BufNewFile *.rb set softtabstop=2
au BufRead,BufNewFile *.erb set expandtab
au BufRead,BufNewFile *.erb set tabstop=2
au BufRead,BufNewFile *.erb set shiftwidth=2
au BufRead,BufNewFile *.erb set softtabstop=2

Google Search History

In other on 12月 5, 2007 at 12:16 上午

心血来潮看了下我的gmail的帐号的search history.

这是个注册没多久的帐号,2007年6月才开始用的,到现在大概半年不到的时间吧.1515次搜索,平均下来大概每天Google 10次,用的最多的自然是Web Search,其次是Map Search,除此之外的Image, News, Video搜索都很少用.还有些如Product, Blog和Books搜索都是从来没用过.

感觉垂直领域的搜索使用的机会相对少很多,尤其如果这个垂直领域和Web上的信息还有交叉的话.比如Blog这种垂直领域搜索,实在感觉不出和Web搜索上面找到的Blog内容有什么很大不同,真有人有这种需求吗?

很神奇的是我发现我居然还点过好几次sponsor links(这种一般都被我认为是厌恶的垃圾广告链接,拒而远之的).其中两次是想下载软件,分别点了Google Pisaca(名字起的太差,根本记不住, Pisaca, Picasa…只能靠搜)和Adobe Reader的sponsor link.还有4次都是我想购买商品的时候搜索商品信息时点的链接,iPod, Macbook, laptop cooling pad和眼镜.难怪Google广告生意这么好啊.