一般原理
- Refuse every commitment that is not essential.
- Place every commitment you make, no matter how trivial, into a tracking system.
- Review everything in you system without fail every Monday, refactoring undoable items into doable steps.
- Review the doable items you have without fail every day.
基本规则
- automate *everything* the each time you find yourself repeating a task
- for the most productivity, nothing beats a console. (or Full Screen: "keep everything I do in one window")
- 多用keyboard shortcuts
bash & ssh
- Set up Ssh to allow you in to your usual haunts without a password
- bash: Ctl-R history recall search feature
- crank up your history list to a few thousand entries and set it to forget dupes,这样大约可以保存数月的历史记录
- For example "ls foo" would get you to your previous command
that starts with ls foo, even if it wasn’t the last command you typed.
In your .inputrc:
"\e[A": history-search-backward
"\e[B": history-search-forward
- Make your history immediately available from all your bash instances
in your .bashrc:
shopt -s histappend
PROMPT_COMMAND='history -a'
- bash completions [caliban.org]: Quasi-telepathic tab completion
X & windows manager
- 采用大显示器:1600x1200;采用多显示器!
- 采用简单的WM:Fluxbox, ICEwm, Fvwm, Xfce, WindowMaker, enlightenment, ...?
- 采用Multiple desktops! Create a convention on how you would use your multiple desktops
- 在任何WM下仍然可以运行:"kicker" for KDE's panel, "gnome-panel" for Gnome's, and "xfce4-panel" for Xfce's
- Ratpoison [nongnu.org]-the mouse-less, window-less window manager, or better ion [cs.tut.fi]
Pane-based (v. window-based) window managers. Little to no wasted
screen real estate. Significantly reduced mouse usage. allows you to
completely control and automate your window mangement.
- GNU Screen [gnu.org] is a featured packed window manager
that multiplexes a physical terminal between several processes; an
essential feature if you use ssh alot. Among many other abilities,
screen+ssh can provide VNC-like capabilities for your terminal sessions
- root-tail is a program that allows printing of text directly to the X11 root window
- 用于多显示器情况下:Xdmx and xmove. Possibly NX as well
KDE & konqueror
- Just enter in Konqueror fish://user@yourdomain.com; Your
remote files appear in Konqueror & you can then copy/paste etc to
your local filesystem.(基于ssh,无须安装nfs/samba)
- man:screen or info:glibc as a URL in konqueror
- KDE's alt-f2 dialog. It does integer arithmetic and opens URLs
- Type 'gg:whatever' in that alt+f2 dialog, or any konqueror,
and you'll be taken to google. Same thing for imdb, fm [freshmeat], etc
摘自:
目前的media center,包括DVD机/xbox+xbmc/pc+geexbox|movix等方案,要想HDTV化,可以考虑3种可选方案:
1. HTPC或普通PC+支持HDTV out的显卡
HTPC本身主要解决外观/散热/噪音/体积等问题,主要还是内部零件的选择。比较倾向于A64或Sempron+整合主板:优选Nvidia
C51G/PV,RS480的方案,或者用独立显卡的话需要能够较好地支持3D gaming,如Doom3/Quake4, HL2, Far
cry, F.E.A.R等顶极FPS类游戏。但据说媒体播放时,Intel P4的性能要高一些,考虑到P4的功耗和低效,实在不愿考虑。
显卡方面,主要考虑6200/6600等中低端显卡;如果只用于HDTV播放目的,S3的deltachome也是一个不错的选择
另外还要考虑的是,希望能采用Linux作为操作系统,这方面显卡的驱动是个难点;基本上微软的xp media center的方案不用考虑,有点笨重
采用PC的方案,成本大约在2500~3000,好处是功能全面;
2、国产hdtv影碟机
就是HDTV中国网(http://www.hd-tv.cn)的版主推出的一款国产机器,好像是地下制作?,采用sigma design的套件和方案,包括一个VIA的嵌入式主机(166MHz x86),运行linux,支持网络和WiFi。
这个方案好像看到有的IPTV机顶盒在用。他们主要是做了硬件制造和UI的定制。
价格约2000。有些贵,毕竟不是通用器件,但易用性好一些?
3. xbox360/ps3作为media center
就像xbox media center软件(xbmc)那样,用xbox360支持HDTV肯定没问题。xbox360已经上市,应该能够很快破解。由于xbox在欧美市场的优势,而主要的黑客也是集中在欧美地区,预计xbox360应该比ps3更快被破解?
成本大约2500~3500左右。
关于HDTV的片源问题
目前主要的来源还是emule/BT等。在emule上搜索了一下,不算HDTV的电视剧集,movie或demo应该不超过300部,720p或者1080i的都有;一部片子3G左右,而目前P2P网络的速度确实比较痛苦。看来片源的问题仍然是HDTV实用性的最大问题。
根据slashdot上的这篇文章,以下列出受影响的DC/DV相关型号(未作确认,仅供参考);故障现象是这样滴,可怜我的V1也在里面,呜呜
(有关该问题的报道请参考:受问题索尼CCD拖累 日数码机在华遭信誉危机)
Digital still cameras
- Canon:
- Digital IXUS V3, Digital IXUS II, Digital IXUS II2
- IXY DIGITAL 320, IXY DIGITAL 30, IXY DIGITAL 30a
- PowerShot A60, PowerShot A70, PowerShot A75, PowerShot A300, PowerShot A310
- Fujifilm:
- FinePix A303 (serial 3100****, 3101****, 3JA4****, 3JA5****)
- FinePix F410 (serial 3100****-3105****, 32A1****, 32A6****, 32A7****, 32A9****)
- FinePix F700 (serial 3312****, 3313****, 33A0****, 3402****, 34A1****)
- FinePix S2Pro (serial 310110**-310115**, 320000**-320008**, 330000**-340001**)
- Konica Minolta:
- DiMAGE 7i, DiMAGE 7Hi, DiMAGE A1, DiMAGE F300, DiMAGE S414, DiMAGE Xi, DiMAGE Xt, DiMAGE X20
- Digital Genba Kantoku DG-2, DG-3Z, DG-4W
- Sony:
- DSC-F717
- DSC-P2, DSC-P7, DSC-P8, DSC-P10, DSC-P12, DSC-P31, DSC-P32, DSC-P51, DSC-P52, DSC-P71, DSC-P72, DSC-P92
- DSC-U10, DSC-U20, DSC-U30, DSC-U60
- DSC-V1
- MVC-CD250, MVC-CD400, MVC-CD500
- MVC-FD100, MVC-FD200
Digital video cameras
- Canon:
- Elura 40 MC, Elura 50
- FV40, FV50, FV300, FV400
- IXY DV3, IXY DV5
- MV5i, MV5i MC, MV6i MC, MV600i, MV630i, MV650i, MV700i, MV730i, MV750i
- ZR60, ZR65 MC, ZR70MC, ZR80, ZR85, ZR90
- Sony:
- CCD-MC100
- CCD-TRV106K, CCD-TRV107E, CCD-TRV116, CCD-TRV118, CCD-TRV128,
CCD-TRV218E, CCD-TRV228, CCD-TRV228E, CCD-TRV318, CCD-TRV328,
CCD-TRV418, CCD-TRV418E, CCD-TRV428, CCD-TRV428E
- DCR-DVD91E, DCR-DVD100, DCR-DVD100E, DCR-DVD101, DCR-DVD101E, DCR-DVD200, DCR-DVD200E, DCR-DVD300
- DCR-HC14E, DCR-HC15, DCR-HC15E, DCR-HC16E, DCR-HC18E, DCR-HC20, DCR-HC20E, DCR-HC30, DCR-HC30E
- DCR-IP5, DCR-IP5E, DCR-IP7E, DCR-IP45, DCR-IP45E, DCR-IP55, DCR-IP55E
- DCR-PC101, DCR-PC101E, DCR-PC101K, DCR-PC103E, DCR-PC105,
DCR-PC105E, DCR-PC105K, DCR-PC106E, DCR-PC107E, DCR-PC108, DCR-PC108E,
DCR-PC115, DCR-PC115E, DCR-PC120, DCR-PC120E
- DCR-TRV14E, DCR-TRV16, DCR-TRV16E, DCR-TRV18, DCR-TRV18E,
DCR-TRV18K, DCR-TRV19, DCR-TRV19E, DCR-TRV22, DCR-TRV22E, DCR-TRV22K,
DCR-TRV24E, DCR-TRV25, DCR-TRV25E, DCR-TRV27, DCR-TRV27E, DCR-TRV27PK,
DCR-TRV33, DCR-TRV33E, DCR-TRV33K, DCR-TRV33PK, DCR-TRV38, DCR-TRV38E,
DCR-TRV39, DCR-TRV40, DCR-TRV40E, DCR-TRV50, DCR-TRV50E, DCR-TRV147E,
DCR-TRV240E, DCR-TRV250, DCR-TRV250E, DCR-TRV255E, DCR-TRV260,
DCR-TRV265, DCR-TRV265E, DCR-TRV340, DCR-TRV340E, DCR-TRV361,
DCR-TRV460, DCR-TRV460E, DCR-TRV461E, DCR-TRV740, DCR-TRV740E,
DCR-TRV840, DCR-TRV940, DCR-TRV940E, DCR-TRV950, DCR-TRV950E
- DCR-VX2000, DCR-VX200E, DCR-VX2100, DCR-VX2100E
Professional camcorders
- Sony:
- DSR-250, DSR-250P
- DSR-PD150, DSR-PD150P, DSR-PD170, DSR-PD170P, DSR-PDX10, DSR-PDX10P
Other products
今天在wikipedia上逛了很多时间。wikipedia在IT架构方面的经验,对于我们构建网站极有参考价值,因为wikipedia提供的这些信息非常详细和确凿。(以下是我的简单总结,仅供参考,准确信息请访问参考资料)
wikipedia目前一年大概可以募集约10万USD的捐款。其中90%都用于购置服务器等硬件以及租用机房/带宽等费用,另外来自大公司捐赠的hosting资源(如yahoo),包括服务器/IDC资源等。
数据库服务器:MySql,7台,AMD64平台,4~16GB内存,FedoraCore3;
Cache服务器:squid,~17台,P4,3~4GB内存,1U机架服务器,FedoraCore3;
Squid 大部份應付未登入使用者的需求,快取命中率達75%,有效的減輕Apache的負載。負載平衡是以Round-Robin DNS法來達成。
Web服务器:Apache,49台,P4,1~4GB内存,1U机架服务器,FedoraCore2;
運行PHP,且搭配Turck的PHP快取系統以增進效能。這些伺服器以NFS共享工作目錄,以實現同步運作
其他服务器:~8台,用于NFS、DB dump、DNS、社区运作,如email, irc等,机器比较杂,配置较低,运行较老版本的linux
总共83台服务器;说明LAMP已经非常成熟可用于世界级的大网站应用。
目前wikipedia的服务器访问量平均在1400req/s,峰值到2000req/s。流量方面,数据库服务器的流量大约在8MB/s(单机?);
软件方面,mediawiki的最新版本的代码量大约为13万行(PHP代码);
下图为wikipedia网络架构
参考资料
* Wikipedia meta
* wikipedia server原始资料,中文