2007年3月4日 星期日

Ptt2Pixnet V0.21

在Pixnet發表的第一篇文章... 
前面的文章都是在ptt2發表的... 
因為Ptt2 Blog不知道為啥...爛掉了... 
之前連看版備份都爛掉了...不過這兩天好像修好的樣子... 

所以...寫了一個簡單的程式... 讀取Ptt2的.DIR... 
照著.DIR的結構把文章全部讀出來... 
然後再照著MT匯出檔的定義格式把它寫進另外一個文字檔... 

由於MT的匯出檔必需要是UTF-8... 
不過PTT2的備份檔是Big5... 
所以在檔案裡面加上iconv來做轉檔的動作... 
不過iconv轉utf-8...像是宏碁的碁...
用iconv轉檔會有錯誤...
加上-c參數強制轉換...所以某些字在轉出後的檔案會有問題...
建議可以從第一個檔案自己手動轉成UTF-8的檔案...

另外由於BBS的文章有使用到一個"1B"的ASCII字元... 跳脫字元...
這個字元在BBS裡面是用來顯示ASCii Code用的開頭字元... 
如果文章越是花花綠綠...這個字元用的越多... 
這個字元會造成檔案沒有辦法匯入Pixnet... 
在此要感謝站長ieon幫我找出這個問題... 
為了避免匯不進Pixnet...所以把這個字元全部替換成^... 

這支程式參考了Maple精華區... 
itoc長輩寫的 "transbrd.c 將 Sob/Ptt/WD 的單一看板轉換至 Maple3"... 
不然就要啃ptt的source才看的懂.DIR的格式了... 

檔案下載
http://fileho.com/download/b82e2569461/ptt2pixnet-V0.21.7z.html
http://myweb.hinet.net/home1/mosquito/ptt2pixnet/ptt2pixnet_V0.21.7z
請使用7-zip或是新版winrar解壓縮...

使用教學...
下載檔案之後...解壓縮...放進一個資料夾中...
接著將ptt2的看板備份根目錄...解壓縮到同一個資料夾中...
執行命令提示字元...
在該資料夾下鍵入convert 看板名稱
就會轉出看板名稱.txt與result.txt
看板名稱.txt是直接轉出的檔案...big5編碼...
result.txt是再經過iconv轉碼的檔案...utf-8編碼...
匯入到pixnet請使用result.txt...或是使用看板名稱.txt自行轉成utf-8再匯入...

由於寫的非常的醜....所以暫時不放出Source...
因為懶...所以很多防呆措施沒寫...如果不按照建議格式輸入...最慘可能會有電腦爆炸的疑慮...
因為忙...所以有一些可以增加的功能...但是大概都不會寫...XD

如果使用之後造成電腦不會動、螢幕爆炸、CPU過熱...
皆與作者無關...
如果使用之後長高長壯、罩杯升級、電腦跑的比以前順暢、考試都考一百分...
也與作者無關...可以不用感謝我...


另外...
由於我搬家習慣搬的完整一點...
加上我在pixnet沒有看到喜歡的樣板...
所以把我在ptt2使用的樣板抄到pixnet來用...
因為樣板會亂掉...
所以東抄一點西抄一點讓樣板接近原來的樣子...
我跟CSS很不熟...所以如果有啥問題我也不保證能夠解決...
在我奇妙的IE跟神奇的Firefox看是正常的...
有興趣的請自行到pixnet取用...

2006年7月5日 星期三

◇ 2006.07.05,89S51 Programer v0.1 by Serial Port

作者: mosquito520 (我在夜裡飛翔...) 看板: mosquito520
標題: 89S51 Programer v0.1 by Serial Port
時間: Wed Jul 5 02:49:48 2006

[Chinese Traditional]
89S51燒錄程式 v0.1
透過Com1的控制線對89S51進行燒錄...

由於printer port在NB上越來越少見...
加上我之前做的線不能work...

所以改以RS232對89S51進行燒錄...
找到一個大陸的程式可以透過RS232去燒...
功能還算齊全...用的也還可以...
http://www.ourchip.com/NZILIAO/Other/89S_ISP/index.htm
不過因為內碼不同造成亂碼...
某些時候用起來很痛苦...
所以決定自己照著datasheet寫一個...

89S51 燒錄程式 v0.1

功能
可以讀取intel hex檔
透過RS232...經RS232準位轉換IC轉成TTL準位...寫入89S51

電路
請參照http://www.ourchip.com/NZILIAO/Other/89S_ISP/index.htm

步驟
1.Open Serial port
2.Program enable
(如果上面沒有顯示255.255.255.105...請重新設定reset為高準位)
3.Read sign byte(這個好像可以跳過= =;)
4.File Open
5.Write

PS.燒錄時Reset腳必須要為高準位...
如果Program enable沒有顯示255.255.255.105...
請重新設定reset為高準位...
因為Serial Port的輸出腳不夠...所以Reset請手動處理= =;

下載
http://mosquito.myweb.hinet.net/89S51/89S51_Programer_V0.1.rar

當初因為寫的很醜所以不大想放出來= ="
不過有些問題沒有解決...加上懶的弄了...
所以乾脆放出來...
PS.使用版本為VB6

原始碼採用GPL授權
http://mosquito.myweb.hinet.net/89S51/89S51_Programer_V0.1_source.7z


[English]
89S51 Programer v0.1
Programing 89S51 by Serial port output line...

becuse new notebook isn't buildin printer port...
and i'm made one by LPT...
but it's doesn't work...;(

so i try to find another way to programing...
there has a program can satisfy my request in a electronic site in china...
it's look like stable?= =
http://www.ourchip.com/NZILIAO/Other/89S_ISP/index.htm
but becuse it's used GB to describe state...
some time it's hard to recognize what happen in programing...
so i decide to made one by myself...

89S51 Programer v0.1

Function
it's can read intel Hex format file
programing 89S51 by RS232 and level converter IC...

Circuit
refer http://www.ourchip.com/NZILIAO/Other/89S_ISP/index.htm

Step
1.Open Serial port
2.Program enable
if it's doesn't show 255.255.255.105...
reset Pin RST to High level...
3.Read sign byte(it's look like not necessary)
4.File Open
5.Write

Hint.
When you're programing...
reset ping must be high level...
if you press Program enable and it's doesn't show 255.255.255.105...
please reset pin rst to high level...
becuse serial port output pin isn't enough...
so...control reset pin must doing by your self...= ="

Download link
http://mosquito.myweb.hinet.net/89S51/89S51_Programer_V0.1.rar

Because it's dirty...so i didn't release it before...
but it's has some problem need to fix...and i've no time to fix it...
so i release it under GPL lisence...
feel free to use:)
PS.it's build under Vistual Basic 6

Source
http://mosquito.myweb.hinet.net/89S51/89S51_Programer_V0.1_source.7z

--
I hate nuclear weapons.
Therefore I'm a member of the Silient Service.
Today I become independent of my country which permits itself to make wars.
Today I've got free!

--
※ 發信站: 批踢踢兔(ptt2.cc)
◆ From: 220.133.140.180

2006年5月10日 星期三

◇ 2006.05.10,我打錯Email了...

作者: mosquito520 (我在夜裡飛翔...) 看板: mosquito520
標題: 我打錯Email了...
時間: Wed May 10 02:57:38 2006

剛才收到的一封信...

Please take the gmail address off of your page or we will have to
disable your account.

-------- Forwarded Message --------
From: a mosquito
To: abuse@no-ip.com
Subject: mosquito.myvnc.com
Date: Tue, 9 May 2006 05:33:15 -0400

This page refers to the email address mosquito@gmail.com as the
contact for support:

http://www.mosquito.myvnc.com/mailopen.php

Please alert your user that mosquito@gmail.com is not his address or
take it down. My spam is increasing almost exponentially and I'm
getting angry messages from the people who are not getting support.

Thank you

NO-IP發mail給我...
因為mosquito@gmail.com跟NO-IP檢舉...
有個不是他弄的網頁上出現了他的Email Address...
造成他多了據說非常多的spam mail...

難怪我想說...
弄到現在怎麼都沒人發mail給我跟我說有啥問題...
原來是我打錯了...XD

看樣子NO-IP跟本尊都很不爽= =;
NO-IP發過來的信也很不客氣...
不過是我造成的錯誤...
趕快把網頁改正過來...
發封mail道歉= =;

這個還要發嗎?
邀請函沒了...被一堆人洗光光...
當初也只是好意...
沒想到被濫用...
還擺了個烏龍...


最近過的越來越迷糊了...

--
I hate nuclear weapons.
Therefore I'm a member of the Silient Service.
Today I become independent of my country which permits itself to make wars.
Today I've got free!

--
※ 發信站: 批踢踢兔(ptt2.cc)
◆ From: 220.133.140.180

Racknerd可不可以升級?搬VPS?搬遷的Step by Step (Racknerd 2024 Black Friday 新方案)

 先附上Racknerd 2024 Black Friday 新方案 RAM CPU core 空間 流量 頻寬 價格 1   G 1核 20G 1.5T/月 1Gbps $10.99/年 2.5G 2核 40G 3.0T/月 1Gbps $18.93/年 3   G 2核 60...