2007-08-31

正式放弃 263 邮箱

从 263 邮箱开始收费开始俺一直是其忠实用户, 每年五六十人民币虽说不多, 邮箱的设计和服务确一年不如一年, 令人失望. 自打开始用 GMail 以来, 毅然决定放弃 263 了. 公元 2007-08-28 到期, 不再续费.
其实放弃 263 邮箱还有一大好处: 少了很多垃圾邮件 :)

2007-08-28

2007-08-24

getconf - retrieve standard configuration variables

The getconf utility prints the value of a POSIX or X/Open path or system configuration variable to the standard output.

-- getconf(1)

SEE ALSO: pathconf(2), confstr(3), sysconf(3)

DVD Region Encoding

Global region codes identify specific DVDs that are compatible with the players typically sold in that region. The majority of all current titles play in only one specific region unless otherwise noted.

Most of the DVDs sold by Amazon.com are encoded for Region 1 (for standard DVDs) or Region A (for Blu-Ray DVDs) only and may not work on DVD players in other countries.

Standard DVDs

  1. U.S., U.S. Territories, Canada, and Bermuda
  2. Japan, Europe, South Africa, and the Middle East, including Egypt
  3. Southeast Asia, East Asia, including Hong Kong
  4. Australia, New Zealand, Pacific Islands, Mexico, Central America, South America, and the Caribbean
  5. Former Soviet Union, Indian subcontinent, Africa, North Korea, and Mongolia
  6. China

Blu-Ray DVDs

  • A/1: North America, Central America, South America, Japan, North Korea, South Korea, Taiwan, Hong Kong and Southeast Asia.
  • B/2: Europe, Greenland, French territories, Middle East, Africa, Australia and New Zealand.
  • C/3: India, Nepal, Mainland China, Russia, Central and South Asia.

SEE ALSO: DVD Region CODE (wikipedia)

下载的 AVI 没有声音

从 verycd 上下了 Dixie Chicks 的演唱会 Top of the World (DVDrip.avi), 用 WMP 播放不了, 又下了 xvid 和 divx 的解码, 结果只有图形没有声音, 网上 search 了一下, 有人说需要 ffdshow, 下载, try again, ok.

2007-08-23

PLY: Python Lex-Yacc

Welcome to the PLY homepage. PLY is an implementation of lex and yacc parsing tools for Python. If you don't have the slightest idea what that means, you're probably in the wrong place. Otherwise, keep reading.

In a nutshell, PLY is nothing more than a straightforward lex/yacc implementation. Here is a list of its essential features:

  • It's implemented entirely in Python.

  • It uses LR-parsing which is reasonably efficient and well suited for larger grammars.

  • PLY provides most of the standard lex/yacc features including support for empty productions, precedence rules, error recovery, and support for ambiguous grammars.

  • PLY is straightforward to use and provides very extensive error checking.

  • PLY doesn't try to do anything more or less than provide the basic lex/yacc functionality. In other words, it's not a large parsing framework or a component of some larger system.

LINK: PLY@GoogleCode

[vim-7] set nuw=4

:help 'nuw'
:help 'numberwidth'

[keywords: number width]

2007-08-22

NETPAS

Netpas 网络加速软件帮助您突破电信、网通及教育网的速度瓶颈,实现在三个网络间任意访问,您将再也不会有因网络速度而带来的烦恼;游戏再也不会卡;更不会存在任何无法玩的网络游戏;在网络上看电影、下载文件和浏览网页再也不会焦急的等待。

Netpas 将给您带来前所未有的网络体验,让我们一起来体会这种“爽”的感觉!

用户通过 NETPAS ACC 软件接入 NETPAS 网络平台,就可以直接享受到高速的互联网访问。

--

EDEN 老大帮忙搞了个帐号, 果然效果极好 :-)

2007-08-21

SWIG: Simplified Wrapper and Interface Generator

SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages. SWIG is used with different types of languages including common scripting languages such as Perl, PHP, Python, Tcl, Ruby and PHP. The list of supported languages also includes non-scripting languages such as C#, Common Lisp (CLISP, Allegro CL, CFFI, UFFI), Java, Modula-3 and OCAML. Also several interpreted and compiled Scheme implementations (Guile, MzScheme, Chicken) are supported. SWIG is most commonly used to create high-level interpreted or compiled programming environments, user interfaces, and as a tool for testing and prototyping C/C++ software. SWIG can also export its parse tree in the form of XML and Lisp s-expressions. SWIG may be freely used, distributed, and modified for commercial and non-commercial use.

diff -p ...

-p, --show-c-function: Show which C function each change is in.

2007-08-20

Firefox Add-ons

Extensions:

  • AdBlock Plus
  • All-in-One Sidebar
  • Better GMail
  • Classic Compact Options
  • Download Statusbar
  • DownThemAll
  • Faviconize Tab
  • Flashblock
  • FlashGot
  • FoxClocks
  • Foxmarks Bookmark Synchronizer
  • FoxyProxy
  • Gladder - Get Over GFW with Great Gladder
  • Google Gears
  • GSpace (To use it, don't force GMail to use HTTPS)
  • IE Tab
  • MediaWrap
  • Mouse Gestures
  • NoScript
  • Personal Menu
  • PicLens
  • ScribeFire
  • Speed Dial
  • Stylish
  • Tabbrowser Preferences
  • ThumbStrips
  • Tiny Menu
  • Undo Closed Tabs Button
  • Video Download Helper - Download videos and images
  • Web Developer Toolbar
  • Wizz RSS Reader
Themes:

Proxy.pac

2007-08-17

Using xargs safely


[Keywords: find xargs]

2007-08-16

Sticky files and directories

STICKY FILES
On older Unix systems, the sticky bit caused executable files to be hoarded in swap space. This feature is not useful on modern VM systems, and the Linux kernel ignores the sticky bit on files. Other kernels may use the sticky bit on files for system-defined purposes. On some systems, only the superuser can set the sticky bit on files.

STICKY DIRECTORIES
When the sticky bit is set on a directory, files in that directory may be unlinked or renamed only by the directory owner as well as by root or the file owner. Without the sticky bit, anyone able to write to the directory can delete or rename files. The sticky bit is commonly found on directories, such as /tmp, that are world-writable.

2007-08-15

[MySQL] Can't connect to MySQL server on '192.168.3.100' (111)

$ mysql -ufoo -pbar -h192.168.3.100 mydb
ERROR 2003 (HY000): Can't connect to MySQL server on '192.168.3.100' (111)

默认情况下 mysql 只 listen 到 127.0.0.1 上, 修改 `/etc/mysql/my.cnf', 注释掉下面一行即可:

bind-address = 127.0.0.1

2007-08-14

vim 点滴

  1. vim7 之后默认会 highlight 匹配的括号, 如何 disable? :help matchparen
  2. vim7 用 omin completion 时, ctrl-x_ctrl-o 会多出一个 preview 窗口, 烦人, 如何 disabled? :help 'completeopt'
  3. vim7 用 ctrl-p 或 ctrl-n 时会 pop up 出一个 keywords 的 list, 如何 disabled? :help 'completeopt'