pip install pyopenssl on windows的两个小问题

Unable to find vcvarsall.bat
安装visualstudio 2010然后修改msvc9compiler.py中vc_env = query_vcvarsall(VERSION, plat_spec)为vc_env = query_vcvarsall(10.0, plat_spec)

error: command ‘mt.exe’ failed with exit status 31
修改 msvc9compiler.py中ld_args.append(‘/MANIFESTFILE:’ + temp_manifest)下增加ld_args.append(‘/MANIFEST’)

英文常用后缀

一、名词后缀 常见的此类后缀及其具体含义如下:

1.-ster,-eer,-er(or)意为:从事某种职业或参与某种活动的人(person engaged in an occupation or activity)例词:gamester,gangster,songster,engineer,profiteer,mountaineer,auctioneer,driver,teacher,director,actor,professor

2.-let意为:小或者不重要的东西(small,unimportant things)例词:booklet,leaflet,starlet

3.-ette意为:1)小的东西(small)例词:cigarette 2)假的东西(imitation)例词:leatherette 3)女性(female)例词: usherette

4.-ess意为:女性(female)例词:actress,poetess,hostess,paintress

5.-hood意为:时期(status;etc.)例词:boyhood,childhood,manhood

6.-ship意为:才能,状态,资格,品质等(skill,state,condition,status,quality)例词:leadership,friendship,membership,lectureship,sportsmanship

7.-ful意为:量(the amount which noun contains)例词:cupful,handful, mouthful,spoonful

8.-tion,-ion意为:1)状态,行动等(state;action;etc.)例词:action,oppression,possession,education,starva- tion 2)机构等(institution;etc.)例词: organization,foundation

9.-ment意为:状态,行动等(state; action;etc.)例词:movement,enslavement,pavement

10.-al意为:动作(action)例词:arrival,refusal,revival,recital,removal

11.-age意为:程度,数量等(extent; amount;etc.)例词:wastage,coverage, acreage,shrinkage,breakage,hostage

12.-ness;-ity(ty)意为:状态,品质(state;quality;etc.)例词:happiness, usefulness,selfishness,kindness,rapidity,activity,sanity,changeability

13.-ism意为:道义,主义,学说等(doctrine of,practice of)例词:idealism, impressionism,absenteeism,racism

二、动词后缀 常见的此类后缀及其具体含义如下:

1.-ify意为:转为,变为(to turn into,to make or become)例词:beautify, diversify,simplify

2.-ize;-en意为:使……,变得……(to make or become ;to make into)例词:modernize,popularize,legalize,hospitalize,symbolize,ripen,widen,heighten,threaten

3.-ate意为:增加,使……(give or add,make or become)例词:originate, hydrogenate,validate,differentiate

三、形容词后缀: 常见的此类后缀及其具体含义如下:

1.-ful意为:充满,有(full of;hav- ing;giving;etc.)例词:useful,pitiful, hopeful,helpful,forgetful,thankful, fearful

2.-less意为:没有,无(without;not giving)例词:speechless,childless,harmless,hopeless,meaningless

3.-ly意为:有……品质的(having the qualities of)例词:beastly,manly, brotherly,friendly

4.-like意为:像……的(like)例词: childlike,statesmanlike,tiger-like

5.-y;-ish意为:像……一般的(somewhat like)例词:meaty,sandy, silky,hairy,leafy,watery,foolish,girlish,blackish,thinnish

6.-some意为:像……一样的;引起……的;有……品质的(like;causing; having the quality of)例词:troublesome,burdensome,wholesome,tiresome,bothersome

7.-able(ible)意为:能……的;可以……的(able to be ;capable)例词: changeable,readable,drinkable,comfortable,expansible,convincible

8.-ed意为:有……的(having,etc.)例词:wooded,pointed,moneyed, odd-shaped

9.-al意为:有……属性的,……类型的(nature of,typical of)例词:cultural,personal,regional,musical

10.-ary(ory)意为:属于……的,与……相连的(belonging to;connected with)例词:revolutionary,imaginary, contradictory

11.-ous意为:富含……的;有……品质的;像……的(full of;having the quality of;like)例词:glorious,erroneous,malicious,gracious

12.-ic(ical)意为:……类的;属于……的(typical of;belonging to)例词: historic,historical,methodic,methodical,dramatic,heroic

13.-ive意为:有……属性的;有某种倾向的(having the nature or quality of;given or tending to)例词:attractive, talkative,restrictive,defensive,preventive,constructive,sensitive

四、副词后缀 常见的此类后缀及其具体含义如下:

1.-ly意为:以……方式(in a…manner;etc.) 例词:happily, boldly,attentive- ly,strangely

2.-ward(s)意为:表示方式或动作的方向(manner and direction of movement)例词:onward(s),backward(s),earthward(s),homeward(s),eastward(s)

3.-wise意为:1)按照……方式(in the manner of)例词:crabwise,clockwise2)就……而言(as far as …is concerned)例词:weatherwise ,educationwise

linux 查看系统硬件加载的驱动

lspci -v
hwinfo

- -!

严重声明:本文所有文字(包括汉字、拼音、拉丁字母、斯拉夫字母,日语假名,阿拉伯字母,单词、句子、图片、影像、录音,以及前述之各种任意组合等等)均为随意敲击键盘所出,用于检验本人电脑键盘录入、屏幕显示的机械、光电性能,完全不代表本人观点。如需要详查请直接与键盘发明者及生产厂商法人代表联系。谢绝跨省。

GNUTLS错误”Base64 Decoding Error”

服务器上面的apache添加了一个gnutls的证书,启动报错:

GnuTLS: Failed to Import Private Key ‘xxx.private.key’: (-207) Base64 unexpected header error.

查找问题原因:

Turns out that what it actually means is not “Base64 decoding error”. What it actually means is “You didn’t remove the pass phrase from the key”.

To do that:

$ cp foo.key foo.key.orig
$ openssl rsa -in foo.key.orig --out foo.key

自动挡档位含义

P(Parking):停车
R(Reverse):倒挡。
N(Neutral):空挡。
D(Drive):前进挡。

OBD-II 接口针脚说明

Pin 1 ……SAE J2411, GM single wire CAN;通用公司单线 CAN-BUS
Pin 2 ……ISO 11519-4 (Bus+)(SAE J1850), 和10号脚同时使用, 41.6 Kbps PWM脉宽调制单线用法:只用2号脚1根线通讯10.4 Kbps VPW可变脉宽调制 byte header + CRC,  no ”checksum” or ”inter-byte separation” (In Frame response byte ?)
Pin 3 …… Chrysler, CCD+ (not OBD) ;克莱斯勒 CCD-BUS网线 H 线
Pin 4 …… 底盘地 Chassis ground
Pin 5 …… 逻辑地 Signal ground
Pin 6 …… ISO 15765-4;CAN-BUS 高速诊断线 (H 线) ,250/500 kbit/s
Pin 7 ……. KWP1281或KWP2000 协议诊断线 (K线), 波特率10400/多数厂家默认KPW2000诊断线
Pin8 …….. 点火开关打开有电 IG+;点火开关 ON/Off 状态识别用途
Pin9 …….. 7号脚不方便用时,启用*KWP1281或KWP2000 协议诊断线 (K线), 波特率10400
Pin10 ……. ISO 11519-4 (Bus-)(SAE J1850), 和 2号脚同时使用, 41.6 Kbps PWM脉宽调制
Pin 11 …… Chrysler, CCD- (not OBD) ;克莱斯勒 CCD-BUS网线 L 线
Pin 12 …… * K 线 制造厂保留用
Pin 13 …… * K 线 制造厂保留用
Pin 14 …… ISO 15765-4;CAN-BUS 高速诊断线 (L 线) ,250/500 kbit/s 
Pin 15 …… KWP1281或KWP2000 协议诊断线 (K线);7P不够用或控制单元过多时启用
Pin 16 …… 电瓶正极 BAT+

怎样知道汽车使用哪一种OBD-II通讯协议?

通用汽车和轻型卡车使用SAE J1850 VPW(可变脉冲宽度调制)通讯模式,克莱斯勒和所有欧洲及大部分亚洲进口汽车产品使用ISO9141通讯模式,福特使用SAE J1850 PWM(脉冲宽度调制)通讯模式,这其中也有一些变异,比如象凯迪拉克CATERA,德国欧宝使用欧洲ISO9141协议

 

在1996年和以后的车辆中,你可通过OBD-Ⅱ 插头来判断其通讯协议:
Pin 2 Pin 6 Pin 7 Pin 10 Pin 14 Pin 15 Standard
must have - - must have - - J1850 PWM
must have - - - - - J1850 VPW
- - must have - - may have* ISO9141/14230
- must have - - must have - ISO15765 (CAN)

J1850 VPW—这个插头在引脚2、4、5和10,有一个金属插片,但10脚没有。

ISO9141-2─这个插头在引脚2、4、7、15和16有一个金属插片。
 J1850 PWM─这个插头在引脚2、4、5、10和16,有一个金属插片。
除了引脚2,7,10,和 15,这个插头还必须有引脚 4 (车身地),5 (信号地),and 16 (电源)。这意味着:
PWM 这个插头还必须有引脚  2, 4, 5, 10, 和 16。
VPW  这个插头还必须有引脚  2, 4,5, 和 16,但没有 10。
ISO 这个插头还必须有引脚  4, 5, 7, 和 16。 15 脚可能有也可能没有。

OBD II 的5种协议:
J1850 PWM AND VPW
ISO9141
ISO14230
CAN (ISO15765/SAE J2480)

Oracle Database 10g Express Edition 最大连接数的修改方法

Oracle XE默认连接数好像是40个,如果process超出这个数字,再次申请连接就会被拒绝。

1,用system用户登录:

sqlplus system/password@xe

2,执行以下命令:

alter system set session_cached_cursors=200 scope=spfile;

alter system set session_max_open_files=200 scope=spfile;

alter system set sessions=20 scope=spfile;

alter system set license_max_sessions=200 scope=spfile;

alter system set license_sessions_warning=200 scope=spfile;

alter system set processes=200 scope=spfile;

3,重启Oracle XE数据库服务。

限制普通用户su权限

1: /etc/pam.d/su
#auth required pam_wheel.so use_uid
2: /etc/login.defs
SU_WHEEL_ONLY yes