最近碰到一台 Windows XP 无法获得 DHCP 服务器分配的 IP 地址,但若指定 IP 地址则能上网 。辗转好久才找到解决办法:
首先检查 Services 里 DHCP Client 是否启动;
其次试着运行 netsh winsock reset /catalog ——我也不清楚这干嘛用的。
最后重启一下 Windows XP 就能获得 DHCP 服务器分配的地址。
最近碰到一台 Windows XP 无法获得 DHCP 服务器分配的 IP 地址,但若指定 IP 地址则能上网 。辗转好久才找到解决办法:
首先检查 Services 里 DHCP Client 是否启动;
其次试着运行 netsh winsock reset /catalog ——我也不清楚这干嘛用的。
最后重启一下 Windows XP 就能获得 DHCP 服务器分配的地址。
Magento grid is flexible to customise. A lot of options can be controlled by addColumn(). I knew the parameters could be header, width, type, index, but I just found a new one sortable. I am thinking where I can get a complete list of parameters for addColumn(). The best way I can imagine is searching magento source and find the file which contains all words of “header width type index sortable”. File search in eclipse can not do this kind search, so I am thinking google desktop search.
I have not used google desktop search for a while. Last time I used it, it only has windows version. Today I am glad find google desktop search linux version is available. Up to now, my favourite google programmes, chrome, picasa, and google desktop, all embrace linux users.
It reminds me a piece of news that google stop offering staff windows as operation system. I regard this is competition between google and microsoft, none of my business. However, google makes programmes independent of windows, which really benefits me.
What else left in windows which has to be in windows?
我是在 VirtualBox 下运行 Windows,经常碰到 IETester 一启动就崩溃,个别时候则能用上十几分钟才崩。总结了一下,发现运行 IETester 前先开一个 IE 窗口,就能很大程度上延迟 IETester 的崩溃。不晓得我的情况有没有典型性。
虽然这个窍门只能延迟 IETester 的崩溃,但我已经很满意了,毕竟 IETester 是一年半载用一次。
我对 PDT 还不熟,碰到很多问题,都分不清究竟是我不会用,还是 PDT 本身的错。其中一个安装在 Fedora 上的 PDT 已经用了有些日子了,配置被我改来改去,所以更加分不清是谁的错。今天狠狠心,全新下载安装了 PDT Galileo SR1 for win32 版。本来想离 Windows 远一些的,无奈,相对来说,我在 Windows 下用 PDT 比 Fedora 下更久一些,出了问题也更容易定位是什么问题。
几个小时折腾下来,终于有了结论:
I recently installed Windows XP in VirtualBox, and did all necessary updates, including IE 8. However, IE 8 kept crashing. At first, I thought it was a problem with VirtualBox or its Guest Additions. The same problem exists in kvm. Then I thought it was a general problem of running IE 8 in virtual machines.
But inspired by a comment of IE 8, I downloaded IE8-WindowsXP-x86-ENU.exe and re-installed IE 8. The problem has gone. I never expected I have to install IE 8 twice to get it working properly in a newly installed (clean) Windows XP.
总的来说,Linux 比 Windows 更适合于我。买了新机子,第一天就把 Vista 换成了 Fedora,要是有更多的 OEM 机型预装 Linux 或 No OS (e.g. Extra Value from ebuyer.com) 可供选择就好了。
但迄今发现有两件事 Windows 能做到但 LInux 做不到。
一是 UPnP 客户端。UPnP 好像是微软推出的?虽然它要借助支持 UPnP 的路由器才能实现,虽然大部分路由系统用的是 Linux,但 UPnP 客户端只能在 Windows 下实现。
二是误删除文件的恢复。我指被 deleted 但没有进 Trash 也未被 shredded 的文件。在 Windows 的文件系统下可以事后补救(用第三方的工具恢复),在 ext 文件系统下得事先安装工具才能恢复误删的文件。
或许我会发现更多的 Windows 能而 Linux 不能的任务,或许下个 Fedora 发行版能实现更多的不能。
MyBook World Edition 基于 Linux,却是面向 Windows 用户的产品。Linux 用户怎么访问它?我一时犯傻了。
因为我早就破解了我的 MyBook World 的根密码,所以我首先想着用 root 身份、sftp 方式去访问 MyBook World。但是 Windows 用户上载到 MyBook World 的文件所有者是 www-data, root 上载上去的文件 www-data 不可写。我无从得知 www-data 的初始密码,否则我就用 www-data 身份、sftp 方式去访问 MyBook World。如果我强行修改 www-data 初始密码,万一把 MyBook World 搞瘫痪了,一个 network drive 只能当 external drive 用就不值了。
好长时间以后才想到,Fedora 自带 Connect to server -> Windows share 就可以 samba client 去访问 MyBook World。Samba 本来就是为 Windows 和 Linux 之间的通讯开发的,但现在两台 Linux 的机器,因为要照顾到其他 Windows 用户,所以只能用 Samba 来对话。
不管怎么说,问题解决了。只留下一个小小的问题—— Windows 下,\\ip address or netbios name 就可以看到所有的共享文件夹,在 Fedora 的 Connect to server -> Windows share 则必须把共享文件夹作为 share 的名字输入后才能连接,如果只输入 ip address or netbios name 则出现 Cannot display location “smb://ip address or netbios name/” ,no application is registered as handling this file. 那怎么查看所有共享文件夹?
在个人桌面应用领域,我也早就想跟 Windows 说 byebye,但一直懒于重装系统。
最近换了台 64位的服务器,虽然硬件指标跟原来的比较,除了 32位升级到64位,其他方面并未有太多提升,但性能却强劲不少。既然服务器的性能能有这么大的提升,为什么不把我的桌面也提升一下?一直埋没了64位的 CPU 两年多,突然很想见识一下它在 64位操作系统下的表现。
于是下载了 Fedora x86_64,擦除了厂商的出厂分区,一键恢复 Windows 也没了,彻底投入 Linux 怀抱。
When I tried to restore from bkf file created by Windows in-built System Tool Backup and Restore, I was not aware another colleague was accessing (read access) this file. At the last page of Restore wizard, it threw an error with a nonsense error message – “(the file name).bkf Disk 1 is not found”. The error message scared me because this bkf file is my only backup file I have. I do not have any other file like Disk 1, Disk 2. If this file is corrupted, nothing else I can fallback.
I was released when I retried after my colleague finishing reading the file. Everything successfully restored when I had exclusive access to the bkf file.
我早该想到 Windows 的错误提示往往不是它字面的意思。
早就想用 Linux 的备份工具,但是很惭愧,还没熟练掌握,所以重要的备份还是在 Windows 下完成。
很多地方在解释 Linux 软连接时都喜欢把它比作 Windows 的快捷方式(当然它们是有实质区别的),而且在解释硬连接时找不到 Windows 下的对应事物。
但,我绝没有想到 Windows XP 也能建立如同 Linux 下的硬连接(真正意义上的硬连接,最简单的办法就是下载 Link Shell Extension 来用),据说 Vista 还能建软连接。是不是我的思维太激进了,总认为 Windows 要成为末日黄花?我看到在 Linux 下很普通的技术在 Windows 里也有就觉得很惊奇。