香港車房術語

尺   舦連桿   Track Rod
盤   汽缸    Cylinder
遮   活塞    Piston

V牙  飛輪齒環  Fly Whell Ring-Gear
士撻  起動機   Starter
分火  分電器   Distributor
分泵  制動泵   Brake Slave Cylinder
手制  停泊制動器 Parking Brake
水泵  水泵    Water Pump
水滾  過熱    Over Heat
水箱  散熱器   Radiator
水膽  節溫器、節熱器、恆溫器 Thermostat
火位  點火時間  Timing
火咀  火花塞   Spark Plug
包魚  制動卡鉗  Brake Caliper
司筒  汽缸襯套  Cylinder Liner
白金  斷電器   Contact Breaker
灰士  保險絲   Fuse
尾牙  差速器   Differential Assembly
沙樽  貯液-乾燥過濾器 Receiver / AC Dryer
冬菇  扭力變換器 Torque converter〔自動波〕
杯士  軸襯    Bushing
波莊  等速接頭  Ball Joint
波箱  變速箱   Gear Box
快子  挺桿    Push Rod
油門  節流閥   Throttle Valve
油箱  油箱    Fuel Tank
狗骨  防傾桿拉桿 Engine Torque Rod
直濕  傳動軸   Propeller Shaft
咳鈎  電壓調器  Voltage Regulator
哇佬  活門、汽門、活瓣 Valve
炭精  炭擦 (發電機內)  Carbon Brush
迫力  制動器   Brake
索制  線圈    Solenoid
爭口  墊片    Gasket
啤令  軸承    Bearing
掃牙  齒輪撞擊  Gear Crush
頂巴  引擎室拉桿 Upper Strut Tower Bar
偈油  潤滑油   Oil Lubricating Oil / Lubricant
軚箱  迴旋走球式 Recirculating Rall Type
搖臂  搖臂    Rocker Arm
腳制  腳踏制動器 Brake Pedal / Foot Brake
電池  電池    Battery
蓋佬  點火線圈  Ignition Coil
盤頂  汽缸蓋   Cylinder Head
蝦鬚  防傾桿   Anti-roll Bars / sway bar
遮呤  活塞環   Piston Rings
橫濕  傳動軸(前輪驅動) Drive Shaft
橫濕  半軸(尾輪驅動) Half Shaft
頭擔  前懸掛   Front Suspension  
尾擔  尾懸掛   Tail Suspension
總泵  總泵    Master Cylinder / Brake cylinder
黏度  黏度    Viscosity
雞髀  下搖臂   Lower Control Arm
襯轆  張緊輪   Belt Tensioner / Idler Pulley
碟煞  碟形制動器 Disk Break

CV莊 等速萬向節 Constant Velocity Joint
八爪魚 分電器   Distributor / Ignition Wire Set
三星針 浮子閥   Float Valve
士必子 點火開關(鎖匙制) Ignition Switch
大力鼓 真空助力器 Brake Booster or Brake Servo
大力鼓 真空輔助泵 Vacuum Servo
大銀幕 擋風玻璃  Windscreen / Windshield
內傾角 內傾角   Kingpin Inclination
天梯牙 齒棒小齒輪式 Rack AND Pinion
比重計 比重計   Hydro Meter / Specific Gravity
水箱水 冷卻液   Coolant
火咀線 高壓線   High Tension Cord
外傾角 外傾角   Camber
打南磨 交流發電機 Alternator
打南磨 直流發電機 Dynamo
老鼠仔 分電臂   Rotor Arm
老鼠尾 電容器〔白金點火〕 Thermostat  
冷凝器 冷凝器   Condenser
吸必打 化油器、汽化器 Car Burettor
快子躉 挺桿    Tappet
和尚頭 萬向接頭  Ball Joint
波子軚 迴旋走球式 Recirculating Rall Type
油壓錶 潤滑油壓力指示錶 Oil Pressure Gauge
狗骨頭 防傾桿拉桿 Engine Torque Rod
後傾角 後傾角   Gaster
架冷濕 曲軸〔芥蘭濕〕 Crankshaft
冧迫力 鼓型制動器 Drum Brake
迫力皮 制動片   Brake Pad
迫力喉 制動油壓喉 Brake Line / Pipe
迫力掌 制動掌   Brake Shoe
迫力鼓 制動鼓   Drake Drum
迫力碟 制動碟   Brake Rotor / Disk
凍Coil  蒸發器   Evaporator
鬼面罩 水箱護罩  Radiator Grille
偈油泵 潤滑油泵  Oil Pump
偈油隔 潤滑油過濾器 Oil Filter
偈油燈 潤滑油壓力指示燈 Oil Pressure Lamp
偈油錶 潤滑油壓力指示錶 Oil Pressure Gauge
偈躉膠 引擎吸震膠 Engine mounting
絲瓜坑 花鏈    Spline
極力子 離合器   Clutch
電池水 電解液   Electrolyte
電池頭 電池頭   Battery Teminal
電油泵 燃油泵   Fuel Pump
電油喉 燃油管   Fuel Line / Fuel Hose
電油隔 燃料過濾器 Fuel Strainer
電油隔 燃油過濾器 Fuel Filter
電油錶 燃油存量錶 Fuel Gauge
電容器 電容器   Capacitor
蓋佬線 高壓線   High Tension Cord
銅索牙 同步器   Synchronizer
熱度錶 冷卻水溫度錶 Water Temp Gauge
蝴蝶掩 天風    Throttle Body
豬仔腳 連桿    Connecting Rod
輪前束 輪前束   Toe In
輪後束 輪後束   Toe Out
攝嘩佬 氣門間隙調整 Valve adjustment
橫濕頭 等速萬向節 Constant Velocity Joint

CAM帶 正時帶   Timing Belt
CAM濕 凸輪軸   Camshaft
冷卻風扇 冷卻風扇  Cooling Fan
冷氣提升 怠速空氣控制閥 IACV – Idle Air Control Valve
前輪角度 前輪角度  Wheel Alignment
迫力總泵 制動線泵  Master Cylinder
風Choke 阻風門   Choke Valve
風扇皮帶 風扇皮帶  Fan Belt
極力子碟 離合器碟  Clutch Dise
盤頂淨口 汽缸蓋墊片 Cylinder Head Casket
轉向系統 轉向系統  Steering System

冷缸運水套 冷缸運水套 Cylinder Jacket
汽車轉向節 汽車轉向節 Spindle
極力子啤令 止推軸承  Withdraw / Release Bearing

碟型制動器 碟型制動器 Disk Brake
離合器總成 離合器總成 Clutch Cover Assembly
點火提前裝置 點火提前裝置 Timing Advance Mechanism

錫號:禮敬

黎小英

自幼識世情
待人兼恭敬
體弱多勞碌
凡事勿心驚
積德行仁又捨己
仗義心田自歡喜
學道可明方便意
一心歸依從今起

錫號為 禮敬

趙太子祖師

李展覺師兄開乩
陽曆二零一五年十月廿十一日
乙未年九月初九日

錫號:禮頌

黃嬌

遇事式從容
街知常稱頌
心思如細密
習道自啟蒙
夢(裡)常遇見仙山
心底亂絮尚疑難
入道可達尋智理
融貫神伏闖玄關

錫號為 禮頌

趙太子祖師

李展覺師兄開乩

陽曆二零一五年十月廿十一日
乙未年九月初九日

錫號:禮奉

陳穎欣

慈懷現仁風
百幸虔供奉
心存乃至孝
德行表敬衷
忠信仁義乃致道
福壽註生皆有數
悟者能持孝悌依
今生得澤好果報

錫號為 禮奉

趙太子祖師

李展覺師兄開乩
陽曆二零一五年十月廿十一日
乙未年九月初九日

How to test a POP server by using telnet

Source : http://www.anta.net/misc/telnet-trouble … /pop.shtml

How to test a POP server by using telnet

What you need

The host name of the POP server (for use in the telnet command)
The POP user name (for use in the USER command)
The user’s POP password (for use in the PASS command)

Encryption

For added security, you can encrypt your POP connection. This requires that your server supports SSL or TLS and that you have access to an SSL/TLS client program, for example OpenSSL, to use instead of telnet.

As the port number normally is 995, an example OpenSSL command would be openssl s_client -connect pop.example.com:995 -quiet. (If you would like to see the public key of the server, as well as some other encryption-related information, omit -quiet.) The server should then start a POP session, displaying a greeting such as the +OK InterMail POP3 server ready example below.

What to do

The DELE command flags messages for deletion. Use it only if you want to delete mail.

The initial telnet: > symbolises your shell prompt.

telnet: > telnet pop.example.com pop3
telnet: Trying 192.0.2.2...
telnet: Connected to pop.example.com.
telnet: Escape character is '^]'.
server: +OK InterMail POP3 server ready.
client: USER MyUsername
server: +OK please send PASS command
client: PASS MyPassword
server: +OK MyUsername is welcome here
client: LIST
server: +OK 1 messages
server: 1 1801
server: .
client: RETR 1
server: +OK 1801 octets
server: Return-Path: sender@example.com
server: Received: from client.example.com ([192.0.2.1])
server: by mx1.example.com with ESMTP
server: id <20040120203404.CCCC18555.mx1.example.com@client.example.com>
server: for <recipient@example.com>; Tue, 20 Jan 2004 22:34:24 +0200
server: From: sender@example.com
server: Subject: Test message
server: To: recipient@example.com
server: Message-Id: <20040120203404.CCCC18555.mx1.example.com@client.example.com>
server:
server: This is a test message.
server: .
client: DELE 1
server: +OK
client: quit
server: +OK MyUsername InterMail POP3 server signing off.

錫號:禮依

得道非輕易
堅誠自皈依
若願已既定
丹成享餌時

參習玄功已有基
莫比他才嘆自啤
功成果滿須著力
勤修匪懈達知機

錫號:禮依

趙太子祖師

陽曆:二零一五年十月四日 李展覺開機

儒略日的計算

設Y為給定年份,M為月份,D為該月日期(可以帶小數)。
若M > 2,Y和M不變,若 M =1或2,以Y–1代Y,以M+12代M,換句話說,如果日期在1月或2月,則被看作是在前一年的13月或14月。
對格裡高利曆有 :A = INT(Y/100) B = 2 – A + INT(A/4)
對儒略曆,取 B = 0
要求的儒略日即為:JD = INT(365.25(Y+4716))+INT(30.6001(M+1))+D+B-1524.5
使用數值30.6取代30.6001才是正確的,但我們仍使用30.6001,以確保總能取得恰當的整數。事實上可用30.601甚至30.61來取代30.6001。例如,5乘30.6精確等於153,然而大多數電腦不能精確表示出30.6,這導致得出一個152.999 9998的結果,它的整數部分為152,如此算出的JD就不正確了。
下表列出了一些曆日所對應的儒略日,可作測試程式之用。
2000年 1月 1.5日 2451 545.0
1987年 1月27.0日 2446 822.5
1987年 6月19.5日 2446 966.0
1988年 1月27.0日 2447 187.5
1988年 6月19.5日 2447 332.0
1900年 1月 1.0日 2415 020.5
1600年 1月 1.0日 2305 447.5
1600年12月31.0日 2305 812.5
837年 4月10.3日 2026 871.8
-1000年 7月12.5日 1356 001.0
-1000年 2月29.0日 1355 866.5
-1001年 8月17.9日 1355 671.4
-4712年 1月 1.5日 0.0

Dynamic DNS updates with nsupdate and BIND 9

Ref: Grig Gheorghiu(2012), http://agiletesting.blogspot.hk/2012/03 … e-and.html

I first saw nsupdate mentioned on the devops-toolchain mailing list as a tool for dynamically updating DNS zone files from the command line. Since this definitely beats manual editing of zone files, I’d thought I’d give it a try. My setup is BIND 9 on Ubuntu 10.04. I won’t go into the details of setting up BIND 9 on Ubuntu — see a good article about this here.

It took me a while to get nsupdate to work. There are lots of resources out there, but as usual it’s hard to separate the grain from the chaff. When everything was said and done, the solution was relatively simple. Here it is.

Generate TSIG keys

# dnssec-keygen -r /dev/urandom -a HMAC-MD5 -b 512 -n HOST myzone.com

This generates 2 files of the form:

-rw——- 1 root bind 122 2012-03-21 15:47 Kmyzone.com.+157+02058.key
-rw——- 1 root bind 229 2012-03-21 15:47 Kmyzone.com.+157+02058.private

Note that I specified /dev/urandom as the source of randomness, which may not meet your security requirements. When I didn’t specify the -r /dev/urandom parameter, the dnssec-keygen command appeared to hang.

Also note that the type of the key needs to be HOST (specified via -n HOST).

Add key to DNS master server configuration and allow updates

I modified /etc/bind/named.conf.local and added a ‘key’ section:

key “myzone.com.” {
algorithm hmac-md5;
secret “JKlA76FvmGboEQ8R2yoc9AtpFqkIncH5yf2mXY+s8m6a/RRC0thUVGnqrJSO1QKhzlnkbxTjmArap+WuVW9iLQ==”;
};

The key name can be anything you want. The secret is the actual key, which can be found in both of the files generated by dnssec-keygen.

I also added an allow-update directive to the zone that I wanted to modify via nsupdate. This is still in /etc/bind/named.conf.local:

zone “myzone.com” {

type master;
file “/var/lib/bind/myzone.com.db”;
allow-update { key “myzone.com.”; };
};

I then restarted bind9 on the master DNS server via ‘service bind9 restart’. I checked /var/log/daemon.log to make sure there were no errors during the restart.

Note that you can use a more finely grained control over which operations you allow for the updates. See the ‘Allowing Updates’ section in this ‘Secure DDNS Howto’ document.

Use nsupdate to do remote updates

On a remote trusted host of your choice, copy the private file generated by dnssec-keygen, and create a file containing the desired updates to the zone file on the master. This file is of the form:

# cat nsupdate.txt
server master.dns.server.myzone.com
debug yes
zone myzone.com.
update add testnsupdate.myzone.com. 86400 CNAME ns1
show
send

Then run nsupdate and specify the kddey and the file you just created:

# nsupdate -k Kmyzone.com.+157+02058.private -v nsupdate.txt

If everything goes well, you should see something like this in the debug output of nsupdate (because we specified ‘debug yes’ in the nsupdate.txt file):

;; UPDATE SECTION:

testnsupdate.myzone.com. 86400 IN CNAME ns1

;; TSIG PSEUDOSECTION:

myzone.com. 0 ANY TSIG hmac-md5.sig-alg.reg.int. 1332788750 300 16 UxiMG7+X2RejWzQ9rkuPaQ== 3305 NOERROR 0

Reply from update query:

;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: 3305

;; flags: qr ra ; ZONE: 0, PREREQ: 0, UPDATE: 0, ADDITIONAL: 1

;; TSIG PSEUDOSECTION:

myzone.com. 0 ANY TSIG hmac-md5.sig-alg.reg.int. 1332788857 300 16 KBubhEggwBHnPlbmlQ7iTw== 3305 NOERROR 0

On the master DNS server, you should see something like this in /var/log/daemon.log:

Mar 26 12:07:37 dns01 named[14952]: client 10.0.10.133#58265: signer “myzone.com” approved

Mar 26 12:07:37 dns01 named[14952]: client 10.0.10.133#58265: updating zone ‘myzone.com/IN’: adding an RR at ‘testnsupdate.myzone.com’ CNAME

Mar 26 12:07:37 dns01 named[14952]: zone myzone.com/IN: sending notifies (serial 2012032104)

Mar 26 12:07:37 dns01 named[14952]: client 10.0.10.121#50790: transfer of ‘myzone.com/IN’: IXFR started

Mar 26 12:07:37 dns01 named[14952]: client 10.0.10.121#50790: transfer of ‘myzone.com/IN’: IXFR ended

One other important note: the modifications made with nsupdate take effect immediately on the DNS master server (and they also get pushed from there to slave servers), but they are not written immediately to the actual DNS zone file on disk on the master server. Instead, a journal file is used, in the same directory as the zone file. The journal entries get applied periodically to the main zone file. If you restart bind9, the journal entries also get applied.

That’s about it. If everything went well, you now have an API of sorts into your Bind 9 server. Now go automate all the things!

巧算莊家的持倉量和成本

轉載:http://t.yicai.com/b/439864/
夜漫漫个人博客

巧算莊家的持倉量和成本

知已知彼,方能百戰百勝。要想在股市中生存和發展,就必須跟莊。要跟莊,就必須摸清莊家的底細,最重要的當然是莊家的持倉量和成本。怎樣才能從K線圖和成交量中巧算莊家的持倉量和成本呢?據認真分析和研究,認為用換手率來計算應當是準確的。
  換手率的計算公式為成交量除以流通股總數乘以100%。因為要計算的是從莊家開始建倉到開始拉升時這段時間的總換手率。因此,根據經驗,以周線圖的參考意義最大。
  參看個股的周K線圖,周均線參數可設定為2、10、20,當周K線圖的均線系統呈多頭排列時,就可以證明該股有莊家介入。只有在莊家大量資金介入時,個股的成交量才會在低位持續放大,這是莊家建倉的特徵。正因為籌碼的供不應求,使股價逐步上升,才使周K線的均線系統呈多頭排列,我們也就可初步認定找到了莊家。
  無論是短線、中線還是長線莊家,其控盤程度最少都應在20%以上,只有控盤達到20%的股票才做得起來,少於20%除非大市極好,否則是做不了莊的。如果控盤在20%-40%之間,股性最活,但浮籌較多,上漲空間較小,拉升難度較高;如果控盤量在40%-60%之間,這檔股票的活躍程度更好,空間更大,這個程度就達到了相對控盤;若超過60%的控盤量,則活躍程度較差,但空間巨大,這就是絕對控盤,大黑馬大多產生在這種控盤區。
  為什麼會有這種規律呢?因為一檔股票流通量的20%一般是鎖定不動的,這些是絕對的長線投資者。而剩餘的80%流通籌碼中,只有其中的20%是最活躍的浮動籌碼,如果你把這20%的籌碼收集完畢,市場上就很少浮籌了,所以能夠大體控盤。而最後的60%就是相對穩定的籌碼,若莊家再吸納一半,即30%,那麼莊家手中的籌碼就是50%的控盤,加上長線投資者的20%,等於莊家控制了70%的籌碼。這樣,莊家就能控制股價的運動方向。這也是大多數莊家所採用的控盤程度。若莊家控盤60%以上,外面的浮籌只有20%。莊家就可以隨心所欲的控制股價。投資者要跟莊時,最好跟持倉量超過50%的莊。當然持倉量越大越好,因為升幅與持倉量大體呈正比的關係。
  一般而言,股價在上升時莊家占的成交量為30%左右,而在下跌時為20%,而上漲時放量,下跌時縮量,我們可初步假設放量:縮量=2:1,則在一段時間內,莊家持倉量為(2×30%)-(1×20%)=60%-20%=40%,即在上升時換手率為100%,以及下跌時換手率亦為100%時,莊家的控籌程度初算結果。
  但這樣計算過於複雜,可粗略計算,在這段換手總率為200%的時間內,莊家可能持籌40%,則當換手總率為100%時可吸納的籌碼應為(40%)/(200%)×100%=20%。
  從周KD指標低位金叉以及周成交量在低位溫和放大之時開始計算,至所計算的那一周為止,把各周成交量加起來為周成交量總量,然後再除以流通盤再乘以100%,即為換手總率。若換手總率為100%時,主力的持倉量為20%,若換手總率為200%時,莊家的持倉量為40%,若換手總率為300%時,莊家的持倉量為60%,若換手總率為400%時,莊家的持倉量為80%。這是依據每換手100%,莊家可吸籌20%的結果推算的,依此類推。
  一般而言,當換手總率達到200%時,莊家會加快吸籌,拉高建倉,因為低價籌碼已沒有了,這是短線介入的良機,而當換手總率達到300%時,莊家基本都已吸足籌碼,接下來莊家是急速拉升或強行洗盤,應從盤口去把握主力的意圖和動向,切忌盲目冒進而被動地從短線變為中線,這時,我們就要參考一下短線指標 KDJ了,特別是60分鐘KDJ指標,若處於較高位置,可等待指標調低後再介入。這樣既可提高資金的利用率又可避免短線被套。
  通過計算換手總率,就可大致判斷主力的建倉及鎖籌程度,這樣可使自己的利潤最大化、時間最短化。特別對分析那些剛上市不久的新股準確率較高。在平時的看盤中,可跟蹤分析那些在低位換手率超過300%的個股,然後綜合其日K線、成交量以及結合一些技術指標來把握介入的最佳時機,必有厚報。
  接著,還要計算莊家的成本,將採用下列兩種方法來估算:
  1、若你用分析軟體則最簡單,用相應的鍵就可估算出換手率及成本價,這是最精確的演算法;
  2、一般而言,中線莊家建倉時間大約在40-60天,即8-12周,取其平均值為10周,則從周K線圖上,10周均價線我們可客觀認為是主力的成本區這種演算法有一定的誤差,但不會偏差10%。
  作為一個莊家,其操盤的個股升幅最少在50%以上,多數為100%。一般而言,一個股票從一波行情的最低點到最高點的升幅若為100%,則莊家的正常利潤是40%,把主力的成本算出以後,然後在這價位上乘以150%,即為莊家的最低目標位元,不管道路是多麼曲折,股價遲早都會到達這個價位,因為莊家若非迫不得已,絕不會虧損離場,莊家資金大,進出兩難,有時,你也拋也拋不出去呢?這是莊家永遠的心痛。
  這就是莊家的底細。看清了莊家的底牌,就可以做到在操作上有的放矢,不再懼怕莊家的軟硬兼施。