• 2007-02-17

    肖申克的救赎 — Get busy living, or get busy dying

    Views: 12859 | 1 Comment

    今晚花了两个半钟头把"肖申克的救赎(The Shawshank Redemption)"看了一遍, 情节很紧凑, 时间刚刚好. 留下映像就是这句话: Get busy living, or get busy dying.

    Dufresne 原是银行副总裁, 被误判两个终身监禁. 在监狱中他帮典狱长和所有的狱警理财, 并帮助典狱长洗黑钱, 因此得到了较好的关押环境. 但是, 典狱长只想把他当做免费的工人, 并且终生在监狱中为他工作. 在 Dufresne 偶然获得一个可以翻案的机会时, 典狱长杀死了证人 -- 这是在Dufresne 被关押19年之后.

    没有人知道, Dufresne 已经挖了十几年的越狱通道, 已经挖通. 几天后的一个晚上, 在雷电的掩护下他从通道进入下水道, 逃出了监狱.

    在最后一次帮典狱长洗黑钱时, Dufresne 调换了档案. 因此, 他出狱后立即从银行取走了典狱长的所有存款, 并将典狱长的罪行公之于众, 使得典狱长饮弹自杀. Dufresne 逃出监狱后到太平洋的某个地方生活.

    Posted by ideawu at 2007-02-17 22:10:15
  • 2007-02-11

    把Firefox的播放背景音乐功能去掉

    Views: 20230 | No Comments

    我最烦网页播放背景音乐, 而且是默认就播放, 你说你烦不烦人啊, 你给个按钮我想听就点不行啊.

    把Firefox的播放背景音乐功能去掉. 方法:

    修改这个文件: C:\Documents and Settings\<Your Name>\Application Data\Mozilla\Firefox\pluginreg.dat

    看到类似:

    5
    0|application/pdf|Acrobat Portable Document Format|pdf|$
    1|application/vnd.fdf|Acrobat Forms Data Format|fdf|$
    2|application/vnd.adobe.xfdf|XML Version of Acrobat Forms Data Format|xfdf|$
    3|application/vnd.adobe.xdp+xml| Acrobat XML Data Package|xdp|$
    4|application/vnd.adobe.xfd+xml|Adobe FormFlow99 Data File|xfd|$

    把不要的行去掉. 前面的5表示这里有5条记录, 你删除一些记录后记得要修改这个值.

    Posted by ideawu at 2007-02-11 12:24:18 Tags:
  • 2007-02-04

    转到 Windows 平台的事需要考虑

    Views: 14021 | 3 Comments

    Windows 下有 VC, 有 FrontPage, 有DW, 有 PHOTOSHOP, 可我都用不着. 想看下影片, 还得忍受缓慢的软件启动速度, 以及弹出广告, 在 Linux 下的 Mplayer 只需要不到一秒就可以打开任意大小的影片. 于是我下载了 Mplayer 的 Windows 版本, 太糟糕. 要命的是, 用其它的播放软件, 我想快进, 还得伸手去用鼠标去拖动滑块, 根本就没有准确性可言, 还可能假死.

    花了30秒启动PS后, 发现画一个渐变的图片竟然画不出来, 太打击我了, 明明是中文版, 明明图标是渐变工具, 可画出来颜色还是平铺.

    Windows 的窗口不能随意置顶, 而且滚屏时必须切换窗口, 这很不方便,  特别是我需要一边查看一个文档同时编辑另一个文档的时候.

    Windows 刚安装完后启动速度倒是很快, 40秒, 一旦安装了一些软件还有 Apache + MySQL + Tomcat, 速度就降到 100 秒左右, 与 Linux 一样.

    我原想回到 Windows 下做界面开发, 不过, 即使有 VC 有 .NET, 我也做不出什么, 界面不是凭空产生的. 还是老老实实地在 Linux 研究基础的网络协议吧. 协议开发出来了, 用什么语言不是问题.

    在把 Windows 的启动项 从 GRUB 的最后一位移动到第一位3天后, 它又回到了最后一位.

    ps: 学校的网络终于好了.

    Posted by ideawu at 2007-02-04 14:03:04
  • 2007-01-31

    我要转到 Windows 平台了

    Views: 14761 | 1 Comment

    完全在 Linux 下学习和工作一年半之后, 我要回到 Windows 开发了. Linux 下做 Web 开发效率很高, 做服务器很方便. 不过, 我要开发商业的底层软件. 我希望能买一个笔记本电脑用来开发 Windows 程序, 现在的台式机继续做 Linux, 日常工作就在 Linux 下, 开发 Windows 程序才使用 Windows.

    Posted by ideawu at 2007-01-31 12:10:44
  • 2007-01-28

    P2P穿透NAT的思路

    Views: 13380 | No Comments

    在微软的 NAT 技术文档"How NAT Works"中可以发现:

    http://technet2.microsoft.com/WindowsServer/en/library/0f4bad59-5237-4452-a693-708ac61fe1671033.mspx 如果无法打开, 你自己到微软的网站搜索得到链接.

    If a client on the private network makes a TCP connection to two different computers on the public network from the same source port, the NAT driver will choose different source ports for those mappings.

    If a client on the private network sends UDP packets to two different computers on the public network from the same source port, the NAT driver will use the same source port for both mappings.

    所以必须使用 UDP 穿透. TCP 穿透据说已经实现, 但是太依赖技巧性, 而且不成熟.

    How NAT determines whether an inbound packet matches an existing dynamic or static mapping.

    For UDP, however, an inbound packet must match only the protocol, destination address, and destination port of a mapping — the source address and source port of the packet are effectively ignored. This “loose matching behavior” applies only if the private port is greater than 1024. Allowing this behavior for ports below 1024 would introduce a security risk...

    NAT 对内网同一个 IP:PORT 使用同一条映射, 所以任何机器都可以根据这条映射, 往内网 IP:PORT 对应的 公网 IP:PORT 发送 UDP 数据报(会被 NAT 转发给内网 IP:PORT).

    要让其它人能知道这条映射, 内网 IP:PORT 只需要在 NAT 的 UDP idle-time 时间内往固定的外网服务器发送报告, 外网服务器就可以从 UDP 包中提取 公网 IP:PORT.

    另外, 一篇 rfc 草案也能帮助你: http://midcom-p2p.sourceforge.net/draft-ford-midcom-p2p-01.txt

    Posted by ideawu at 2007-01-28 10:20:55
  • 2007-01-24

    最近和广告者干上了

    Views: 8199 | No Comments

    主要是禁IP, 如果朋友你有黑名单, 能否共享下, 发到我邮箱里, 成分感谢!
    72.232.
    72.237.
    60.217.227.1
    165.229.47.

    Posted by ideawu at 2007-01-24 08:22:52
|<<<105106107108109110111112113>>>| 109/138 Pages, 825 Results.