免費沒好貨~免費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掉了….靠北邊走….
實在有夠鳥的~還好~有外掛工具可以輔助…

joomla 測試~

看到它的架構~
感覺起來~真的蠻不錯的~
但是….這個CMS級的系統~
拿來當Blog~功能卻不怎麼樣….
xml-rpc上傳圖片會失敗….
中文化…其實還好…
後台管理蠻複雜的~
不適合給一般使用者使用
倒是很多學校~大型公司使用
小公司哦….那就算了唄…

中文化小組說~他唸起來像「君啦」
可是~唸起來應該像~「豬母啦」~
哈哈~以後就叫他豬母系統好了….

wordpress 二次開發

外面一堆文章說wordpress的使用者編碼是MD5
其實~測試的結果是~他可以接受2種編碼
第一種編碼~我不確定是什麼編碼方式~
長的像這樣 $P$BU2RGPBzC0ITA918rljQxn.EYW3ul5/
第二種編碼~MD5 hash
長的像這樣 481ab5322e207670008856dafdb74bda
假設~我們使用MD5編碼去改「忘記」的密碼(mysql/phpmyadmin)
是可以登入的~但是….登入之後~MD5編碼會被改掉
所以…..再用原來的password登入之後~
就會登入失敗~
所以…如果要做二次發的時候
……..怎麼辦咧
還是有可能前台後來進進出出…
只好蠻幹~登入之前這麼做
查看看這個使用者在不在~不在的話~就insert這個使用者
如果在的話….就去更新密碼
但是….問題又來了~
wordpress的使用者權限是記在wp_usermeta中~該不會又要再塞一次值吧!
實在給他#$%^&*()(*&^%$……..遜到爆

DOM-XML issue of PHP

I use a package to generor the rss feed, but it show the message as below.

Warning: require_once(class.DomDocument.inc.php) [function.require-once]: failed to open stream: No such file or directory in…

The it will show me the fatal erro, It could not load file ‘class.DomDocument.inc.php’.
But the file does not include in the package.
And I could run these file in another server, so I guest the question made from a addon of php.

I modify the code to get the debug message:
class.RSSItemList.inc.php
class.ObjectList.inc.php
class.RSSItem.inc.php
class.RSS_V_200.inc.php
class.RSS_V_abstract.inc.php
class.DomDocument.inc.php <—-it does not include this file in the package.

I research the data in the google, someone says that , it need the libxml2 library.
But in the default ver. of apache in the linux platform, it include already.
And I research the others file about the XML and DOM.
Finaly, I got the answer, It need php-domxml addon.
Just install it through yum, and don’t forget restart apache.
Let the apache reload the php.ini , and it will load the addon for php.

command as below.
yum install php-domxml
service httpd restart

session還是記錄一下時間比較好

在linux平台上進行php程式開發時,session可以指定路徑存放~
而且裡面的內容是純文字檔~
假設在session中記錄了相關的資料~
答案~密碼~動作就被看光光了~
所以~在存在session中的資料~重要的~還是要加密一下~

另外,在某些borswer開啟下~就會記錄開啟的session編號~
所以~如果在session中沒有記錄上次執行的時間
那麼 …session不會timeout~永遠都有效~
這是多麼恐怖的一件事啊~
難怪某社群網站~被我用這種方式打造出來的機器人玩翻掉..
一直timeout也很怪~
那session判斷的程式~也含更新session中時間的功能的話~
也許就不會有這樣的問題了…
只是~會花一點點效能~

被白痴的IE7打敗

我有一個Hosting網站~
今天~我從CPenel 下載了Detial的Web access log來看
很自然的~他給我了一個壓縮下載檔
而裡面的檔名~自然就是xxx.abc.com
我個人的習慣~會把這個檔案解出來
放在桌面上~當然這個xxx.abc.com是文字檔(Unix)
我通常會用notepad++來開啟
好巧不巧…我用IE來開這個網站
不巧~小弟我又是懶人一枚
我就是直接打網址xxx.abc.com
結果…他問我是不是要開啟檔案
哇咧…我才在想~我的網站有防毒的保証
該不會被掛(木)馬了吧~
後來~我懂了~
xxx.abc.com視為執行檔~
沒有輸入”http://”的網址…他會從桌面先找
我就說~怎麼用firefox測都沒有問題~
但是IE測起來有問題…真的是被打敗了
難怪~桌面上東西多~執行起來就很慢