定時發文外掛測試

之前下載了一個外掛,讓系統在有新文章發佈時,自動寄送郵件。

但是我好奇的一件事就是~
如果我使用預約發文的時候會出現什麼樣的情形

什麼叫做預約發文呢?就是文章我先在wordpress寫好
設定好發文的時間,然後系統在那個時間來幫我公佈文章

測試1
wordpress在指定的時間時是否能夠正確發文
因為…發文還是要掛進Cron Job中

測試2
就是如果wordpressw如果正確發文
那外掛會不會正確的發信

時間設定好囉!再來就看結果囉!

鳥鳥的Blogger

Blogger提供了一個功能,就是可以讓使用者透過電子郵件來張貼文章
對於我來說~真的很方便~
尤其是我轉寄信之後,我都會把郵件刪掉
三不五時想起…我不是看過這篇文章嗎?
結果~當然就找不到囉~
Blogger這個post via mail的功能就派的上用途
三不五時有一些靈感也可以貼上去~
變成了一個萬用筆記本

Read more

網路行動辦公室

今天在別人家網站看到的[小白的窩]~
看到他介紹了一些web2.0的辦公至軟體
我就轉貼過來囉!

Email – Gmail
Office – Google Docs
行事曆 – Google Calendar
備忘錄 – Netvibes PostIt widget
大檔寄送 – YouSendIt
PDF編輯 – PDFEscape
螢幕錄製 / Viewlet製作 – ScreenToaster
心智圖 – MindMeister
製圖(Visio) – Gliffy
簡單修圖 – Picnik
複雜編、繪圖(Photoshop) – SumoPaint
轉檔 – Zamzar
線上硬碟 – Box.netBadongo
英漢字典 – 雅虎字典
即時通 – Meebo

他說用IE6/IE7可能執行上會有些問題~
可以的話~還是用firefox會好些~
有機會再來試試囉~

破解WordPress 佈景主題的編碼

有些布景主題,為要怕你動他的連結~
通常來說 會在footer.php中加編碼
編碼長的像下面的樣子

假設 你用了這個佈景主題…
那你就增加了作者網站的反向連結~
設計的越好~越多人用~反向連結就越多~
當然…對作者網站的排名是有幫助的
如果是這樣~也就還好
但是~如果上面放了木馬~
哪該怎麼辦?
ps.從官方網站來的~比較不用擔心

今天看到一篇文章~
教大家怎麼去把編碼的foot.php破解掉
放上我們要用的東西

其實概念很簡單~
在index.php中~把呼叫footer的前後做記號

再來~開啟網頁~
找尋剛才我們加入的<!— Fotter開始 –>

看到了沒~原來他裡面放了好幾個連結
而且還有google的追蹤碼~
這個追蹤碼是javascript
如果~他要放個病毒~也可以~
接下來~
把開始和結束之間的內容進行修改~
再回存fotter.php(整個蓋掉)
就完成破解的動作
那麻~有沒有破不了的
當然有….
不過…我還沒有遇到

免費沒好貨~免費DNS~小心你不能順利操作~

我利用freedns的publish doman建了幾個subdomain
名子又短又好記~但是~卻是我痛苦的開始
之前~以為是DNS更新的問題~等TTL過去就好~
那時~也順利的把sitemap加了進去
但是~今天去看~sitemap的提交一直有問題~
明明就是同樣的系統~同樣樣的版本~
但是~別的站提交sitemap卻一點問題也沒有~
重新提交無效~想說刪掉重要提交好了~
但是~卻新增不回去了~

上了網查了一下~有一篇文章這麼說的~網址在這~
After trying multiple times over a course of a month or so, I decided to investigate. What I found was a bit surprising: freedns.afraid.org (my dynamic DNS provider) blocks all requests from Google! I couldn’t believe it!

A bit pissed, I emailed Joshua Anderson (the maintainer of FreeDNS) about it. He asked for my domain name and stated that Google can now access my site. He didn’t respond to the portion of my email asking why Google is blocked in the first place.

Well, Google is now able to download my sitemap, but I will have to wait a LOOONG time before I show up in Google again. It took me a while the first time, and I’m basically starting again as if I’m reborn.

I also enlisted in a secondary DNS service, EditDNS.net, just in case there are some other surprises in afraid.org’s services. Hopefully if any queries to afraid.org’s servers fail, EditDNS will come through successfully.

Isn’t blocking Google such a bad idea? I wonder what the reasoning behind it is. I don’t see freedns.afraid.org having any trouble getting listed by Google.

UPDATE: FreeDNS has updated their FAQ to address the Google issue. Here’s an excerpt:

QUOTE:

The official policy is this:
1) At around 4AM PST each night, the previous 24 hours worth of domain
additions are made visible to Google. (subdomain edits and updates are
instant).

2) No subdomains created via the shared domain system are visible to
Google. You must own the domain its self that you are creating a
subdomain off of to have it visible to Google by default.

看到FAQ~心都涼一半了~
每天早上4點(PST:太平洋標準時間),Google可以看到這一天中的變化。
透過免費的域名所副建的副域名,是無法被Google看見的,域名的管理者,其所創建的副域名,才可以被Google看見。

看來~我的域名要搬家了~

還是看英文站快一點~
中文的都沒有人討論~

ps.重灌狂人只有說:可以建立副域名,卻沒有說建了這樣的副域名之後,會有什麼樣的限制。

wordpress post_tag and category 限制

原本想說~wordpress的post_tags當成keyword資料來源:
但是 因為 之前提到的 wordpress 資料庫過度正規化[請參閱 wordpress 資料庫正規化之我思….」
所以造成文章在更新tags及category時相當的麻煩
都想說~反正麻煩一次就好了~就來蠻幹好了~
看了一下資料庫的結構

2009-03-15_210652.png
看了資料庫結構~
真的很想哭~
name是index~(我的臉色變了)
slug是從name編碼來的~
slug是unique~就就是說~category及tags不能重覆~
OH-MY-GOD
category分類的名稱不能當成post_tag的名稱
這樣講怎麼合理~
假設一個資料豐富的站
有一個分類叫作「電腦科技」
剛好有一篇文章~在講環保節能減碳的~
談到Google的電腦科技~是造成電力浪費的主因之一~
糟了~加了關鍵字~自動bypass掉了….靠北邊走….
實在有夠鳥的~還好~有外掛工具可以輔助…

雞媽媽的媽媽-freedns系統

話說~midphase(Anhosting)只能用addon domain
必須要借助外部dns server
而….freedns就是本次實驗的目標~
但是這個目標讓我在申請pp.ru域名時~吃盡苦頭

Bind 8 / Bind 9兩個不同版本的DNS解析對設定造成嚴重的問題
我在RISN中設定的DNS server 只有2個
ns1.afraid.org ns2.afraid.org
因為根據DNS的規範~DNS只要設定2個就好
相說~設到4個就比較沒有意思~反正全球DNS Server同部完
2個和4個DNS Server並不會影響解析
但是~好笑的是~
freeedns 回報給RISN的DNS Server是4個
也就是說上下游的DNS Server並不相同
造成Lame Server(跛腳)

就會收到通知信~
主旨:xxx.PP.RU: zone check failed
————————– english ———————————
Dear Madam/Sir, We are sorry to notify that the check of ‘xxx.PP.RU’
DNS-servers has failed with the following error(s):

1. NS records list for xxx.PP.RU. provided in the domain template
is different from the one contained at ns2.afraid.org.(66.252.1.255, 66.252.1.255)

ns2.afraid.org. – ‘ns1.afraid.org. ns2.afraid.org. ns3.afraid.org. ns4.afraid.org.’
domain template – ‘ns1.afraid.org. ns2.afraid.org.’

2. NS records list for xxx.PP.RU. provided in the domain template
is different from the one contained at ns1.afraid.org.(67.19.72.206, 67.19.72.206)

ns1.afraid.org. – ‘ns1.afraid.org. ns2.afraid.org. ns3.afraid.org. ns4.afraid.org.’
domain template – ‘ns1.afraid.org. ns2.afraid.org.’

Please try to correct the problems before the next check retry in 3 hours.

See the DNS recommendations at http://www.ripn.net/nic/rfc/rfc1912.txt
if you need help.

Thank you,
RIPN mail processor.
Sat Mar 14 08:06:49 2009 Moscow, Russia.

阿不就把伺服器設回去就好~
因為~DNS還沒有確認完成~
這個域名並不能算是我已經申請完成的~
所以~並不能登入RISN後台去改設定~
怎麼辦咧…..弄了一天~
每次都要等3個小時~
連進去~freedns 狀態一直是Broken
想說~是新加入會員的關係~
所以~帳號還沒有開通
但是~到昨天中午就滿48小時了
我直接去讀ns1.afraid.org的設定資料
已經是正確的~但是看到的DNS資料是4筆
後來~今天早上四點~我找到設定的方式~

用寄信的方式來設定
收件人:[email protected]
主址:空白
內容:
action: update
passwd:登入RISN的密碼
#[DOMAIN TEMPLATE]#
domain:xxx.pp.ru
type:CORPORATE
descr:Descirpt of your site
comp-d:subdomain1
comp-d:subdomain2
admin-o:ZZZ-ORG-RIPN
bill-o:ZZZ-ORG-RIPN
nserver:ns1.afraid.org.
nserver:ns2.afraid.org.
nserver:ns3.afraid.org.
nserver:ns4.afraid.org.

mnt-by:ZZZ-MNT-RIPN
source: RIPN
#[TEMPLATES END]#

寄信出去之後~沒有多久~就會收到變更的通知信~

Dear Madam/Sir,

Here are results of processing your request:

> From: 你的信箱
> Subject:
> Date: Sun, 15 Mar 2009 03:49:59 +0800
> Msg-Id: <[email protected]>

> action: update
> password: XXXXX
> #[DOMAIN TEMPLATE]#
> domain:xxx.pp.ru
> type:CORPORATE
> descr:personal test domain
> comp-d:www
> comp-d:ftp
> admin-o:ZZZ-ORG-RIPN
> bill-o:ZZZ-ORG-RIPN
> nserver:ns1.afraid.org.
> nserver:ns2.afraid.org.
> nserver:ns3.afraid.org.
> nserver:ns4.afraid.org.

> mnt-by:ZZZ-MNT-RIPN
> source: RIPN
Read-Only fields ‘source’,’domain’,’type’,’admin-o’ are not updated now.

PREVIOUS OBJECT:

domain: xxx.PP.RU
type: CORPORATE
* descr: e-business online
* comp-d: dns
* comp-d: www
* comp-d: ftp
admin-o: ZZZ-ORG-RIPN
bill-o: ZZZ-ORG-RIPN
nserver: ns1.afraid.org.
nserver: ns2.afraid.org.
* new-nserver: ns1.afraid.org.
* new-nserver: ns2.afraid.org.
mnt-by: ZZZ-MNT-RIPN
created: 2009.03.13
changed: 2009.03.14
state: Not delegated
source: RIPN

REPLACED BY:

domain: xxx.PP.RU
type: CORPORATE
* descr: personal test domain
* comp-d: www
* comp-d: ftp
admin-o: ZZZ-ORG-RIPN
bill-o: ZZZ-ORG-RIPN
nserver: ns1.afraid.org.
nserver: ns2.afraid.org.
* new-nserver: ns1.afraid.org.
* new-nserver: ns2.afraid.org.
* new-nserver: ns3.afraid.org.
* new-nserver: ns4.afraid.org.
mnt-by: ZZZ-MNT-RIPN
created: 2009.03.13
changed: 2009.03.14
state: Not delegated
source: RIPN

*******************************************************
*** actual change of nameservers will be performed ***
*** only after the zone checking is complete ***
*** (current DNS-servers are in field ‘nserver’ ***
*** new DNS-servers are in field ‘new-nserver’) ***
*** ***
*** In case of empty field ‘new-nserver’ ***
*** zone checking will not be performed, ***
*** domain delegation may be suspended ***
*******************************************************

Domain will be delegated after zone checking is complete.

> #[TEMPLATES END]#

Your current request counter: 1.
You may send us 119 in this hour.

Thank you,
RIPN mail processor.
Sat Mar 14 22:51:02 MSK 2009
Moscow, Russia.

成功的變更了 DNS
也就在剛才…收到通知信
DNS確認完成~
這個域名到手了~
跟我重新申請的域名同時到手….
哇咧….這是的…花了快三天才進來
這個雞婆的freedns還真的讓我吃盡苦頭
(RISN 太多俄文了~丟給Google翻譯…無法確定是不是翻對)

Anyway 這個經驗…代價不小