高山流水
msgbartop
动之则分,静之则合,无过不及,随曲就伸。
msgbarbottom

20 九 06 君子安于贫——也对阿忆的工资单说几句废话

阿忆据说是名人,所以在“去年底正式调入北大之前,早已挣够传说中的外快”,钱挣够了嘛,回到学校洗洗铜臭,沾沾书香,提高一下生活品位,当然是一件令人艳羡的事情,所以,哪怕北大给的工资再低,阿忆也是要去的,那可是北大啊,那可是北大教授啊!
可惜阿忆要拿工资单说事,说就说了,干嘛列出来呢?列出来就列出来了嘛,干嘛又不列清楚呢?呵呵,可能小子愚笨,不清楚如果说清楚了就没有质疑争辩的余地了,那还写出来炒什么?
其实,阿忆生活绝对是过得滋滋润润,滋润到可以为了心爱的学院省点钱而从不去报销,可以为了“人格”而放弃医疗保障等福利。我就不行了,每次出差什么的,该报销的如实报销,每次头痛感冒口腔溃疡什么的,一定老老实实去校医室开单买药,没人格啊,谁让咱们没有外快呢:(
一样在同类型的单位工作,当然阿忆的级别要比我的高两个级别,收入当然比我的高两个级别,我乐见阿忆为高校教师喊穷,也感谢阿忆为高校教师喊穷,的确非常多的高校教师很穷,安于贫困,乐于传道,不过我质疑,阿忆不是这其中之一。
我们国家还有很多人,一辈子可能都没拿过阿忆一个月拿到的这么多钱,真正的贫穷,阿忆似乎缺少切实的体会和震撼,建议他多关怀民间疾苦,不要活得这么自私,毕竟,您可是国子监的教授,要传授给学生的,不仅仅是技艺,还有心系天下苍生的慈悲心怀。
阿忆原文链接:无脑人,请你给俺指条出路,让俺们都照着去走

Tags: , ,

16 九 06 行行色色之二

Tags: , ,

16 九 06 行行色色之一

Tags: , ,

14 九 06 如何在不接网线的情况下使网卡配置生效

How to reserve your network adapter
configration without connecting?

检索词:网卡配置、不接网线、拔掉网线、网卡生效

keywords:network adapter configration、link state、Media
Sensing、connecting
今天老大在笔记本上配置了个vmware,用来安装linux,为了方便,笔记本当然不是随时都插着网线的,但拔掉网线之后,windows
xp里面的网卡的网络配置全部失效了,怎样才能够保证在不接网线的情况下是网卡设置生效呢?
在网上查了些文档,不是很多,绝大部分的解决办法是做一个自连的水晶头,然后插上(如果是千兆网卡还需要将网卡的配置改为100M),这种做法比较无聊啦,哈哈。当然也有解决方法是增加一个虚拟网卡,这个没试过,应该也可以的吧。
最后还是在msdn上找到了答案,其实只需要改动一个注册表值,让系统不检查网络的连接状态即可,具体操作如下:

打开注册表(regedit),找到以下键值:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters
增加一个DWORD项,项名为:DisableDHCPMediaSense,键值设为1,然后重启服务器即可。

原文内容参考如下:

Windows contains the “Media Sensing” feature. You may use
this feature on a Windows-based computer using Transmission Control
Protocol/Internet Protocol (TCP/IP) to detect whether your network
media is in a “link state.” A “link state” is defined as the
physical media connecting or inserting itself on the network. For
example, assuming a 10bt or 100bt physical media, Ethernet network
adapters and hubs typically have a “link” light to indicate the
current connection status. This is the same condition in which
Windows can detect a link. Whenever Windows detects a “down” state
on the media, it removes the bound protocols from that adapter
until it is detected as “up” again. There may be situations where
you may not want your network adapter to detect this state, and you
can configure this by editing the registry.

To prevent your network adapter from detecting the link state,
follow these steps.

Note NetBEUI and IPX do not recognize Media Sense.

1. Use Registry Editor (Regedt32.exe) to view the
following key in the registry:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters

Add the following registry value:

Value Name: DisableDHCPMediaSense

Data Type: REG_DWORD -Boolean

Value Data Range: 0, 1 (False, True) Default: 0 (False)

Description: This parameter controls DHCP Media Sense behavior. If
you set this value data to 1, DHCP, and even non-DHCP, clients
ignore Media Sense events from the interface. By default, Media
Sense events trigger the DHCP client to take an action, such as
attempting to obtain a lease (when a connect event occurs), or
invalidating the interface and routes (when a disconnect event
occurs).

2. Restart your computer.

Note In Windows Server 2003, the function which controls
Media Sense was added to the cluster system. Even if the
DisableDHCPMediaSense is not set or 0 (False) is set in the
registry, the cluster system is changing Media Sense into disabled.
Then, because of the system which wants to make Media Sense enable,
the DisableClusSvcMediaSense registry value was introduced in the
SP1. You can set ON/OFF of the control function of the cluster
system by using the following registry subkey:

- Key: HKEY_LOCAL_MACHINE\Cluster\Parameters

- Value Name: DisableClusSvcMediaSense

- Data Type: REG_DWORD -Boolean

- Data Range: 0, 1 (False, True) - Default: 0 (False).

The DisableClusSvcMediaSense is default 0 (False). Therefore, the
control function is ON and Media Sense is disabled. You can set the
DisableClusSvcMediaSense to 1 (True). Then, the control function is
OFF. After that, you can use the DisableDHCPMediaSense registry to
set enable/disable of Media Sense. This is similar to the cluster
environment of the Windows 2000 Server.

Note If you disable the “Media Sensing” feature, you may
experience problems. For example, if you have a computer that has
two network adapters and you disable the “Media Sensing” feature,
if one network adapter does not work, it is unbound. Additionally,
if a default gateway is configured, associated routes are removed
so that all traffic goes through the other network adapter.

In another example, if the “Media Sensing” feature is disabled when
you disconnect the network cable from the computer, the “Local Area
Connection” icon in the notification area displays a “Network cable
is unplugged” status message. Additionally, you receive a “Media
State …..: Cable Disconnected” message when you run the
ipconfig command. However, in this case, the network adapter
is bound to TCP/IP. To verify that the network adapter is bound to
TCP/IP, view the route table. To view the route table, use the
route print command. The route table shows the IP address of
the network adapter. You can also use the ping command to
ping the IP address of your network adaptor to verify that the
network adapter is bound to TCP/IP.

Tags: , ,

12 九 06 实现RSS订阅的两个简单方式

其实,RSS阅读器从服务器获取的就是一个XML文件,所以我们可以通过提供静态XML文件或封装了XML数据的HTTP流方式提供服务。
对于第一种,我想可能是大多数图书馆最方便实施的,只要更新一下原有的信息发布程序(例如新闻系统),在提交新数据的时候,同时更新相应的XML文件,即可实现订阅服务。
然后,这一种方式不适合实现一些更多需求的功能,比如,某读者定义了他只需要的一部分订阅服务,那么我们的推送应该根据该读者的预定义,只提供其感兴趣的内容,这时,就需要以第二种方式,当读者请求的时候,再从数据库中获取相关信息实时发送给他。
现在有很多相关的辅助工具或程序可以很好的利用,ROME是用JAVA写的开源程序,遵循Apache
Software License
,运行环境需要J2SE 1.4+和JDOM
1.0
,它能转换并解析当前的所有聚合格式,当前版本为0.8Beta。
下载 ,教程API文档

Tags: ,