紐西蘭奇異果「國民健康大健檢」

星期六和同學們去大佳河濱參加「國民健康大健檢」活動,

參加的最大目地是看看能不能抽中KHS單車,
也能順便運動一下,
來這活動的,有一部分應是為了飛輪海,

不過認真闖關的人也不少,路線如下圖


同學們也是很認真的在闖關(共四關),
過程中,印象最深的是飛簷走壁,
因為我在攀岩的最後一步,竟然有點使不上力,

覺得有點糗,花了一分零四秒,
是同學中最久的,
每一關過了,會有一獎品,
闖完四關,會有一顆奇異果可以吃

而它也是今天唯一的戰力品,
因為聽完抽獎的宣佈,
我們沒有一人有中,一整個失望


照片是由Frankie拍攝,取自Simon的網路相簿

打席代號

今天看王建民投球,真是捏一把冷汗,局局都有人上壘,
由於分數很接近,看的很緊張,但最後結果都是好的,
王建民最後也拿到等待已久的第七勝,
球評在講棒球的打席代號,
F9時....我的腦筋一片空白...
啊..忘了是什麼意思
所以還是跑去問了G老大
這樣大概就不會忘記了
參考如下

1=投手 2=捕手 3=一壘手 4=二壘手 5=三壘手 6=游擊手 7=左外野手
8=中外野手 9=右外野手
1B=一壘安打 (依此類推,還有2B、3B)
HR=全壘打
BB(bases on balls)=四壞保送
IBB(intentional bases on balls)=故意四壞保送
HBP(hit by pitch)=觸身球
E3=一壘手失誤 (依此類推)
SAC=犧牲觸擊
SF7=左外野的高飛犧牲打 (依此類推,還有SF8、SF9)
P3=一壘上方飛球接殺 (依此類推,還有P4、P5、P6)
F7=左外野飛球接殺 (依此類推,還有F8、F9)
3F=一壘界外接殺 (依此類推,還有5F、7F、9F)
L6=游擊平飛接殺
K=揮空三振
三振有很多 像是站著被三振、揮棒落空、擦棒被捕、不死三振..
倒K(左右顛倒的K)=站著不動沒揮棒被三振
3U=一壘方向滾地球,一壘手接到自踩壘包
1-3 = 滾地球,投手傳一壘 (依此類推,還有2-3、4-3、5-3、6-3)
DP=雙殺
TP=三殺
FC=野手選擇

暈血症

今天帶著家中的笨笨,

去檢驗所照X光,
然後帶去祟恩動物醫院給醫生看,
醫生說沒什麼問題,就持續給笨笨打點滴,
但慘事…這時發生了,
因為要給笨笨打針,由於我沒有抓好,
被笨笨劃了幾下,啊….
看著我的手開始流血,
醫生雖馬上幫我擦了優典藥水,
但我的臉色開始變的慘白,
就跑出醫院,在外面休息,
唉….我的暈血症又發作了,手開始覺得麻了,
不停地冒冷汗,
心想何時才能擺脫這毛病
免得每次都很丟臉

P.S.笨笨是腸胃炎,希望牠快點好

Drupal for AD認證

最近一陣子都在玩Drupal,由於公司需求,要讓Drupal能夠
經由Active Directory認證,來達成一組帳號,行遍天下的目的,
想當然爾,去問了G老大,
Drupal有支援LDAP及AD的認證,這是不用講的,
就在於如何設定呢……參閱了MartOn所寫的,
怪了,怎麼設就不對,
差點都快瘋了,
才發現DN for non-anonymous search:的地方設錯了,
之前都直接打administrator,
其實是要跟設LDAP一樣,完整的寫出DN,
但cn,ou有可能是中文的(問了Cyrus才發現),
天啊….為了這個問題,我竟然花了那麼久才弄好,唉!!!!
設定如下(請參閱MartOn所寫的會更清楚)


LDAP Integration settings:
Server settings:
Organization name: here I put our Active directory name
LDAP Server: here I put IP adress to a AD controller
LDAP Port: 389
Use Start-TLS encryption Not selected
Store passwords in encrypted form Not select
Login procedure:
Base DNs: here you have to set your DN path to where your users reside.
Example:
If you have a AD named: ad.mycompany.int
And users are stored in the Internal OU (it will automatically look in sub-OUs, so this is the top most)
String is then: OU=Internal,DC=ad,DC=mycompany,DC=int
Username attribute: sAMAccountName
Email attribute:mail
Advanced config:
DN for non-anonymous search: your sys AD account
(請填寫完整DN,就敗在這)
Password for non-anonymous search: password for your sys AD account

LDAP Data settings:
Drupal-LDAP fields mapping
Same, but read-only mode SELECTED
Drupal field - LDAP attribute
mail = mail
the other I have blank, since I do not need them
Editing LDAP attributes directly(Attribute Visibility & Access Control)
Attributes displayed on user pages: Here I checked Last Name, Common Name
Attributes that can be edited by users: Here I have non chosen since I do not want drupal to write back to AD
Advanced configuration
Here is the same as on ldapauth(LDAP Integration)

LDAP Groups settings:
Group is specified in user's DN Not select
Attribute of the DN which contains the group name: OU
Groups are specified by LDAP attributes: SELECTED
Attribute names (one per line): MemberOf
Groups exist as LDAP entries where a multivalued attribute contains
the members' CNs Not Selected
Nodes containing groups (one per line):
Here I have the same DN as in ldapauth(LDAP Integration)
Example:
If you have a AD named: ad.mycompany.int
And users are stored in the Internal OU
(it will automatically look in sub-OUs, so this is the top most)
String is then: OU=Internal,DC=ad,DC=mycompany,DC=int

Attribute holding group members: memberUid