关于中医和中药

在没有读方舟子的《批评中医》之前,我对中医和中药的认识比较模糊、模楞两可,而现在似乎对中医和中药形成了非常清晰的态度,就此感谢老方,我以前是对他大大误读了,只知道他是爱出风头的打假斗士,实在不了解他是一个如此出色的科普作家,以后定会多读老方的书。

自勉

多见人少说话

脸皮要厚反应要慢

多读书多旅游多办事

经风雨见世面

害怕的事不要躲

该办的事赶紧办

少查资料多行动

人生总要冒风险

多犯错少规划不后悔

慢慢练习做决断

生活一向有两面

养成乐观的好习惯

博文及博客的重新分类

博客最近出现了一些新的变化,主要是图书情报类博客的批量涌入,这是一个可喜的现象,但这也导致博客首页面同质内容大量增加,为解决此问题,采取如下措施

大连旅游记事

7月18日早,乘坐卧铺车,全家人追随特殊的团体来到大连。这是一次非常重要的旅程,对于老婆孩子来说有了很多的第一次,和我一样,旅行的见闻和人际冒险都是她们最需要的精神食物。

校内IP判定的用途与研发计划

现在手里的IP列表已经涵盖了哈尔滨所有校区、威海校区、深研院,具备了判定广义校内的基本条件,并已将IP判定模块正式用于today。

today阅读权限开发完毕测试运行

today阅读权限主要包括如下几个模块:

1、发文用户阅读权限选择

已经部署完毕,增加新闻和修改新闻均调试正常

2、文章权限分析模块

采用了能想到的最优算法,基本不影响新闻的载入速度

3、校内用户判定模块

这是阅读权限功能的核心。基本达成了设计目标,首先是校内IP的判定(目前采用的IP表为哈尔滨校区和深圳研究生院),如果用户IP属于校内IP,则完成校内用户的判定。如果非校内IP则自动转向CAS(统一身份认证系统),如认证通过也完成校内用户的判定。只允许校内阅读的新闻实现了对校内IP用户的免打扰,对出差在外的校内的用户也也给出了合理的访问渠道。

校内IP的判定颇费些脑筋,最终的结果还是相当喜人,没有读任何文件,IP控制列表只用短短一行的内存变量即搞定,感觉性能甚优。如测试无碍,困扰我许久的校内用户判定问题基本大功告成。

today前台将与统一身份认证系统接口

校方一直有想法认为today应该封闭在校内,但事实上today包罗万象,虽然不乏应该限于校内的小圈子的信息,但也有公开招聘、招标、招生宣传这样的信息需要面向校外,因此允许发文者自行选择校内还是校外应该是更为合理的方案。

XMLHTTP 与 ServerXMLHTTP的区别

XMLHTTP vs ServerXMLHTTP

 

XMLHTTP

ServerXMLHTTP

1

Works on Windows 98, 95 and ME

Requires at least Windows NT 4 with IE5.01 .

2

 

Does not have a means of waiting for an async call other than using another thread to handle the response via onreadystatechange.

 

Another technique is to loop on the main thread, polling the readystate property.

For example:

 While xmlhttp.readystate <> 4

   ' async request not complete yet; still waiting

 Wend

 

But this is not as efficient as the ServerXMLHTTP's WaitForResponse method

Has a waitForResponse method with a timeout when using async calls.

3

 

Allows configuring timeouts when sending messages.

4

Is designed for single-user, desktop applications, such as running in a browser-based app.

 

XMLHTTP's assumption that it is used only in single-user environments has security implications.

Do not use XMLHTTP in multi-user scenarios such as on IIS/ASP servers.

Also, in various cases, XMLHTTP may display UI dialogs (to collect credentials).

Supports multi-user, server-based applications, such as ASP apps.

5

Because XMLHTTP is designed for single-user client applications and is based on WinInet, it enforces strict limits on the number of simultaneous connections to a given server.

The limit is either 2 or 4 (depending on HTTP version).

The ServerXMLHTTP component does not impose any limits on the number of connections to a server.

6

XMLHTTP integrates with the IE browser's cache, which may cause problems in which "stale" response data is returned.

ServerXMLHTTP does not implement a cache.

7

XMLHTTP is HTTP/1.1 compliant.

XMLHTTP does support HTTP/1.1 chunking.

ServerXMLHTTP reports itself as an HTTP/1.0 client.

The reason is that ServerXMLHTTP does not support the HTTP/1.1 response "chunking" feature, which is required for 1.1 compliance.

8

By using the IE browser's proxy settings, XMLHTTP can take advantage of IE's auto-detection of proxy servers.

If IE is configured to access sites via a proxy server, then all requests made via XMLHTTP will also go through the proxy.

However, IE (and thus XMLHTTP) can be configured to bypass the proxy server for certain sites (assuming that a direct connection to the target server can be made).

This is done in the "Tools/Internet Options/Connections/LAN Settings" dialog in IE.

The "Bypass proxy server for local addresses" option should be checked to have the proxy server bypassed for intranet sites.

ServerXMLHTTP does not support any auto-detection or discovery of proxy servers; you must explicitly specify the name of the proxy server using the proxycfg.exe utility.

Can be configured with WinHTTP proxy config to access other machines directly (no proxy server).

9

The XMLHTTP component in MSXML 3.0 supports automatic gzip decompression;

ServerXMLHTTP does not.

10

 

ServerXMLHTTP in MSXML 3.0 SP1 supports SSL certificates.

11

重用Socket端口,或者有Socket端口缓存.

没有缓存,每次连接都会启用一个新的Socket端口.

12

 

默认的CodePageUTF8.

默认时,URL被先转换为UTF8编码.

对today进行图片减肥

自2010年8月today后台编辑器更换以来,没有进行上传图片尺寸的限制,这一失误现在看来后果很严重。

MS XMLHTTP组件的奇异故障

在升级完一个名为kb2524375的补丁后不久,晚上回家发现博客首页无法显示,源文件全部都是乱码,一头冷汗。

将该补丁删除,故障依旧。一番胡乱折腾,差点没有陷入乱码误区,好在灵光一现怀疑可能是XMLHTTP组件出现故障,

将组件创建方法由:

server.CreateObject("Microsoft.XMLHTTP")

改为:Server.CreateObject("MSXML2.ServerXMLHTTP")

或 Server.CreateObject("Msxml2.XMLHTTP")

系统恢复正常。

分页:[«]6[7][8][9][10][11][12][13][14][15][16][17][18][19][20][»]