<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d6154817622702903944\x26blogName\x3d%E2%97%8B%E3%80%82o%E5%82%BB%E3%80%83%E4%BB%94%E3%80%83%E4%BB%94o%E3%80%82\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dSILVER\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttps://vincent1303.blogspot.com/search\x26blogLocale\x3dzh_TW\x26v\x3d2\x26homepageUrl\x3dhttp://vincent1303.blogspot.com/\x26vt\x3d682101390609131817', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

省電小巧的Plug Computer

2009年2月26日 星期四 by ○。o傻〃仔〃仔o。


沈欣蓓/編譯
2009/02/26 下午1:01

晶片製造商Marvell正在推動一種新的電腦類型:Plug Computer。它是一款以更小的體積提供近似於一般PC效能的設備,而且只需要極低的耗電量。Plug Computer的運作平台SheevaPlug是用來取代家用Server的電腦設備,讓使用者不需要透過一般PC,同樣能夠執行各種軟體服務。

根據供應商表示,Marvell的Plug Computer可替使用者節省不少能源,當一般電腦用來做為家用Server時需要25到100瓦的耗電量,而它的耗電量則不到5瓦。

Sheeva處理器具備高效能線速(wire-speed)特性,讓使用者願意用Plug Computer取代一臺PC。SheevaPlug平台包括Marvell的Kirkwood系列系統單晶片(System-on-chip, SOC)1.2GHz CPU、512MB Flash以及512MB的DRAM記憶體。該設備並具備USB 2.0傳輸介面,讓使用者能夠用來連接硬碟或其他周邊設備以執行應用程式,目前使用者還無法用來執行微軟的Vista作業系統,不過標準的Linux可 以。

Plug Computer價格經濟便宜,供應商能夠搭配軟體和Plug Computer一併銷售,提供消費者或是小型企業當做簡單的家用伺服器。Plug Computer可針對不同需求細分市場族群,進而提供加值或具不同特性需求的解決方案。此外,家用辦公室(Home-Office)的消費者也能藉由這 套產品影音檔案共享或資料備份服務。

目前SheevaPlug開發套件售價為99美元。


source : http://news.networkmagazine.com.tw/server-and-storage/2009/02/26/10955/

Link from

Gmail服務再度中斷 原因還在查

by ○。o傻〃仔〃仔o。


去年8月,Gmail連續發生三次服務中斷的情況,去年10月,Gmail再度出槌,而且Google花了24小時才修復完畢。


Google證實,Gmail服務在格林威治時間(GMT)周二(2/24)早上九點半(約台灣周二下午五點半)的時候發生中斷,時間約兩個半小時,但迄今中斷原因不明。

Gmail網站可靠性經理Acacio Cruz在部落格中說明,Google工程師仍在調查造成Gmail服務中斷的根本原因。昨天使用者連上Gmail時,有些用戶會被要求填入所謂的 CAPTCHA字母,Cruz亦表示,這是在用戶不斷嘗試存取Gmail時都會發生的狀況,以確定欲登入的用戶是否為本人。

CAPTCHA為「Completely Automated Public Turing test to tell Computers and Humans Apart」的縮寫,由系統自動產生一個含有字母的扭曲圖片,並要求使用者輸入正確字母,以辨識回應的對象並非電腦而是人類。

Cruz除了為Gmail服務中斷道歉外,也強調這並非經常發生。此次Gmail服務中斷影響了Gmail及Google Apps的使用者,目前Gmail在全球約有1.13億使用者,僅次於微軟的Hotmail及Yahoo Mail。

去年8月,Gmail連續發生三次服務中斷的情況,去年10月,Gmail再度出槌,而且Google花了24小時才修復完畢。

雖然Gmail看起來似乎頻頻當機,不過Google企業服務產品管理總監Matthew Glotzbach在去年澄清,因為有太多人採用Gmail,因此就算Gmail只出現小小的問題,都會引來不對等的大量關注,因為事實上Gmail的可 用性高於Google所保證的99.9%。(編譯/陳曉莉)

Source: http://www.ithome.com.tw/itadm/article.php?c=53625

Link from

How-To: Upgrade to Ubuntu 9.04 and ext4

2009年2月25日 星期三 by ○。o傻〃仔〃仔o。


Getting started

If you’re the kind of person who likes to give software and platforms a test drive early on then I’m sure you’ve been keeping a close eye on Ubuntu 9.04 Jaunty Jackalope and it’s fresh support for the ext4 file system.

If you’re interested in upgrading to Ubuntu 9.04 then it’s pretty painless and requires one command. Before you get started, please note that the current stage of the Ubuntu 9.04 release is still alpha.

This means that this release is not yet deemed stable and you should not be surprised if you encounter a nasty bug. That being said, I have been using Ubuntu 9.04 for a couple of alpha releases with no major problems and fast updates and fixes on a daily basis.

If you would like to wait until the final version is released then you can mark your calendars for April 23, 2009 and upgrade then. If you’re curious and ready for some exciting changes then please continue reading. ;)

Please take a look at the know issues for the latest release of Ubuntu 9.04 Jaunt Jackalope to make sure you still want to continue with the upgrade. You can find links to release news for each alpha and on up to the final release here.

Upgrade to Ubuntu 9.04

  1. Press Alt+F2 to open the run dialog.
  2. Copy and paste update-manager -d into the dialog and press enter.
  3. When the Update Manager appears, it should prompt you of the availability of an upgrade. Press the upgrade button and follow the few instructions.

After upgrading, you may need to enable hardware drivers for your video card. If you’re using nVidia, then you’ll be happy to see that driver version 180 is now recommended for Jaunty!

You may not notice, but updating your version of Ubuntu does not automatically convert your file system from ext3 to ext4. This is something you will need to manually change with a few commands.

Also note that after converting your file system to ext4, only files created after the conversion will be created in extends mode. This means that files that already exist will still be in ext3 format, but will work flawlessly with the ext4 file system. If you wish to have a complete ext4 file system then you will most likely be required to perform a fresh install of Ubuntu 9.04.

Follow updates from kernel.org on how to convert from ext3 to ext4, or refer to this page in the case that the below information becomes outdated.

Converting ext3 to ext4

To convert an existing ext3 filesystem to use ext4, use the command

$ tune2fs -O extents,uninit_bg,dir_index /dev/DEV

WARNING: Once you run this command, the filesystem will no longer be mountable using the ext3 filesystem!

After running this command, you MUST run fsck:

$ fsck -pf /dev/DEV

NOTE: by doing so, new files will be created in extents format, but this will not convert existing files. However, they can be transparently read by Ext4.

WARNING: It is NOT recommended to resize the inodes using resize2fs, as this is known to corrupt some filesystems.

Conclusion

If you’ve successfully upgraded to Ubuntu 9.04 then it’s time for you to sit back and relax!

You’ll continue to see updates to Ubuntu 9.04 that will update your system all the way up to the stable release of Ubuntu 9.04 by April 23, 2009. You will see fewer and fewer updates after this point with most of the updates being security based.

Enjoy!


source : http://kyleabaker.com/2009/02/23/how-to-upgrade-to-ubuntu-904-and-ext4/

Link from

查毒后U盘文件丢失 成都开审杀毒第一案

2009年2月24日 星期二 by ○。o傻〃仔〃仔o。


“我真是太冤枉了,当了优盘杀毒第一案被告!”2月23日,成都市一家个体打印部老板张先生在法庭上大倒苦水。他说自己按照常规程序为前来打印文件的客户赵先生查杀优盘病毒,却被指责为间谍。这也是全国首例因优盘杀毒引发的官司。

查杀病毒后丢失关键文件

去年7月3日, 赵先生走进了张先生的打印店要求打印优盘内的一些文件。“接待他的店员发现赵先生优盘感染了病毒”,张先生解释说,每位客户来打印资料时店员都要先查杀一 次病毒,“如果客户不愿意杀毒,我们只能请他到别处打印,这也是保护店内电脑的无奈之举。”经过赵先生同意,店员为其删除了优盘内一些病毒。


赵先生宣读起诉书

见店员不停按下删除键的赵先生起了疑心,他要求自己操作电脑,“我仔细看了才发现提示框里写着文件将被删除,文件的拷贝将被移动到备份区。但店 员告诉我删除的不是文件而是病毒,我也就按照她的说法继续点删除键。”赵先生说,杀毒完成后他发现优盘内有些文件不见了,其中包括十余份没来得及备份的重 要文件。

店主被指使用间谍程序


赵先生告诉四川新闻网记者,自己是中国发明协会会员,打印材料是为自己新发明申报专利的文件,丢失文件则包括过去申报专利的材料和一些没来得及 申报专利的产品构想初稿。“我怀疑这家打印店的电脑里装有间谍软件,因为操作提示中说文件的拷贝被移动到了备份区,店主很可能窃取了我的文件。”随后,赵 先生立即拨打了报警电话。

“我真是冤枉死了!我根本不认识赵先生,事先也不知道他优盘里有什么东西,况且他要打印的文件都在,我什么都没有做啊!”张先生与店员向警方解释说自己完全是按照常规的杀毒程序在进行操作,不可能误删赵先生的文件,更不可能从事间谍活动。

优盘主人索要数千元赔偿

在警方和工商所协调无果的情况下,赵先生向法院提起了诉讼,要求张先生赔偿两千多元损失,“这仅仅是文件录入费和误工费等方面的损失,丢失文件 是无价的。如果发现店主利用我丢失的文件申报专利,我还要另外索赔。”法庭上赵先生说由于自己没有电脑,优盘内的文件是请人录入的,由此产生了录入费和误 工费。

“从内心来讲,我并不认为店员做错了什么,也不愿意赔偿。但考虑到赵先生家住剑阁县,为解决这件事确实产生了车旅费,我愿意就此向他支付三百元。”张先生在法庭上表示,当天自己没有为赵先生打印文件,也没有收取任何费用,自己是出于息事宁人的想法才作出让步的。

由于赵先生坚持赔偿数额不得少于两千元,双方没有当庭达成调解协议,案件主审法官宣布将择日宣判本案。

Source : http://www.cnbeta.com/articles/77814.htm

Link from

來自Toshiba的iphone 2g 16mb版

by ○。o傻〃仔〃仔o。


http://lh4.ggpht.com/_Uu0QcEZqr3U/SaNmlghG_JI/AAAAAAAAFAM/zrrM2_FojkQ/iphone.jpg


Iphone 2g 16MB 只售 HKD 3,200.00起 有意請到 : http://hk.f2.page.auctions.yahoo.com/hk/auction/b10020550?u=rosegirlz89

Link from

Citrix免費釋出高階虛擬化平台XenServer

by ○。o傻〃仔〃仔o。


吳明宜/編譯
2009/02/24 上午8:30

Citrix將把虛擬化平台XenServer大方釋放給任何需要的人。雖然之前Xen hypervisor已是免費產品,但Citrix現在決定將多節點的管理軟體也免費釋出。

集中管理工具包括實體到虛擬,以及虛擬到虛擬環境的轉換工具、集中化組態工具及XenMotion技術,可將虛擬機器從一台伺服器搬到另一台上而無需中斷服務。

然而如果使用者想享用自動化、動態供應、工作流(workflow)協同、高可用性,並和儲存系統整合,就需花錢購買該公司的Essential for XenServer,它是以每台實體伺服器1,500到5,000美元計價。

Citrix XenServer在3月底之前可由Citrix網站及其他下載入口網站取得。Citrix Essentials for XenServer則在4月 7日可從Citrix經銷商處購得。XenServer Essentials可由citrix.com/freesenserver下載。


Source : http://news.networkmagazine.com.tw/software-application/2009/02/24/10873/

Link from

Facebook:我们错了,请别删除你的帐户

2009年2月20日 星期五 by ○。o傻〃仔〃仔o。


最近Facebook在网站上公布了新修订版的用户使用条款,使得Facebook对所有用户提交照片,视频和其他内容拥绝对的控制权限,比如用户的私密信息,照片等,这引起了用户的强烈不满,有的用户甚至考虑删除帐号。之后它移除新的用户使用条款,恢复到原来的条款(去年9月23日修订)。


"Over the past few days, we have received a lot of feedback about the new terms we posted two weeks ago. Because of this response, we have decided to return to our previous Terms of Use while we resolve the issues that people have raised.

If you want to share your thoughts on our new terms, check out our group Facebook Bill of Rights and Responsibilities."

现在用户准备删除Facebook帐户时,会出现以下提示:

Facebook对于之前采用新修订的用户使用条款事件表示"这是个错误",现在已经恢复了原来的使用条款。而且帐户一旦删除所有的内容将丢失无法恢复。

Source : http://www.cnbeta.com/articles/77519.htm

Link from

金山毒霸推出中文病毒名系统规范

by ○。o傻〃仔〃仔o。


在本月18日金山毒霸发布的最新版本安装包首次提出了"中国病毒中国杀"的理念,独创了"中文病毒名"系统规范.
据悉,新的安装包对金山毒霸查到的病毒做了中文名标识,让用户更清楚的了解到被处理掉的病毒属于哪种类型;对一些较为严重的病毒,还对应有专门的中文病毒名.用户若想了解该病毒的详细信息,点击病毒名后可以链接到金山毒霸的官方网站查看到该病毒的详细信息.

金 山毒霸此次安装包推出的"中文病毒名"系统,采用中文名+病毒种类的方式命名,不仅让用户一眼便知病毒的种类及可能带来的威胁,而且更重要的是让用户能清 楚直观的记住病毒的名称,以便再次出现时,能更好的应对.比如用户耳熟能详的"灰鸽子"、 "机器狗"、"磁碟机"、"猫癣"等病毒名,都将在拦截后显示.

此外,金山毒霸病毒及木马样本数量增加了近6万种,可拦截更多的恶意网址.此外,漏洞补丁数量增加13种,并且优化了漏洞下载模块.不仅如此,该安装包新增的"文件监控信任区域"功能,可极大的提高杀毒软件效率,降低系统资源占用.

Source : http://www.cnbeta.com/articles/77533.htm

Link from

GMail更新,可全面自定义外观

by ○。o傻〃仔〃仔o。


Google周四对Gmail的主题功能做出改进,使用户可以自己选择页面各种元素的颜色,例如背景、链接、标签和文字.此前Gmail的主题功能仅支持用户从现有主题中进行选择,而不支持用户自定义.不过,无论用户对页面进行怎样的改变,彩色的Gmail标志都不会被更改,这可能会使一些主题爱好者感到失望.

http://img.cnbeta.com/newsimg/090220/0844150879696160.png?tag=mncol;txt

Link from

Facebook修改使用條款遭炮轟

2009年2月18日 星期三 by ○。o傻〃仔〃仔o。


Facebook在2月初修改使用條款,引來部落格的大肆批評及各大媒體的引用報導,讓Facebook不得不祭出官方聲明。

知名的社交網站Facebook今年2月初修改了使用條款,刪除使用者可移除使用者內容及取消授權的語句,而引來消費者部落格Consumerist的大肆批評,及各大媒體的引用報導,讓Facebook不得不祭出官方聲明。

此一被刪除的使用條款內容為「使用者隨時都可以移除帳號內容,當這些內容被移除時,Facebook所取得的授權也會自動失效,但該公司會保有該帳號內容的複製存檔。」

Consumerist認為,在修改後,代表的是Facebook將永遠能夠使用使用者所上傳的所有內容或資訊,就算使用者移除這些內容,Facebook仍將有使用權限。有媒體諷刺,這意味著你一日為Facebook會員,就終身是該站的會員。

此一事件曝露了網路使用者的隱私權隱憂,在使用者加入特定網站或使用特定服務時,通常必須先簽署一份使用條款同意文件,但很少有使用者會認真去瀏覽這些動輒數千字的使用條款,經常就直接按下了同意。同時,在網路服務的使用條款中,不免發生服務與隱私權衝突的情況。

Facebook執行長Mark Zuckerberg在部落格中 強調,Facebook用戶仍有資訊擁有及控制權,該站的原則是使用者擁有自己的資料而且可以控制他們要與誰分享這些資料,因此,當使用者要在 Facebook上分享資訊時,首先必須授權給Facebook,讓網站能夠將這些資料分享給使用者要分享的友人,如果沒有該授權,那麼Facebook 便無法協助使用者分享這些資訊。

至於各界認為新的條款可讓Facebook永遠使用這些資訊,Zuckerberg則解釋,當使用者與友人分享訊息時,會製造兩份訊息複本,一份 存在使用者已寄送訊息的資料匣中,另一份則存於在友人的收信匣中,就算使用者移除了他在Facebook上的帳號,該名友人仍會持有該訊息的複本,這是 Facebook更新該使用條款的原因之一。

Zuckerberg認為,使用者想要完全控制及擁有他們的資訊,所以他們可以隨時關閉這些資訊的存取服務,但另一方面,使用者也想要把其他友人 與之分享的電子郵件、照片,或電話號碼等資訊帶到其他服務,並讓這些服務存取這些友人的資訊,這是兩個非常懸殊的立場,但現在並沒有一個可以讓使用者與友 人分享電子郵件帳號,又同時掌控友人能否與其他人或是其他服務分享該資訊的系統。

Zuckerberg亦表示,現在正處於開放網路世界一個有趣的時機點,這些問題都將會逐漸迎刃而解,他們未來亦可能會犯錯,但作為資料分享的領導品牌,他們將會認真解決相關的問題。(編譯/陳曉莉)

Link from

雅虎奇摩:09年繼續擁抱開放 / 電子商務

by ○。o傻〃仔〃仔o。


展望2009年,雅虎奇摩預計將持續加大在電子商務的推行力道,今年也將會讓台灣最受歡迎的無名小站,有更多的API開放。


展望2009年,Yahoo!奇藦今日(2/17)宣布公司組織調整的同時表示,今年將持續擁抱開放的策略,以及電子商務。

雖然2008年全球面臨金融風爆,不過國內網路龍頭雅虎奇摩整體業績仍逆勢成長30%,主要成長力道則來自電子商務和關鍵字廣告。而在展望2009年,雅虎奇摩預計將持續加大在電子商務的推行力道。

去年年中買下國內的網路購物業者興奇科技,正式在網路購物與PC home正面交鋒後,再加上既有的拍賣平台,以及去年年底開始公開召商的超級商城,雅虎奇摩的電子商務三大版圖正式成形。雅虎並在今年將這三大事業合併入公司改組後的電子商務事業群。

Yahoo!奇藦今天宣布改組後的三大事業群為:媒體、電子商務,及產品。其中媒體事業群負責網路廣告的業務,包括陳列式(Display)及搜尋廣告;產品事業部則主掌包括雅虎首頁(媒體資訊服務)、搜尋及通訊、無名及社群等雅虎的服務與產品。

Yahoo!奇摩總經理洪小玲引述資策會資料表示,2008年台灣電子商務的市場規模產值已達2430億元,但仍只佔總體零售市場的4%,相較於美國的9%顯然還有很大的成長空間。

而在電子商務方面,去年完成與興奇的合併之後,今年台灣雅虎預計將把重點放在超級商城以及「品牌旗艦館」。其中超級商城是與PChome商店街及樂天市場等競爭的開店平台;而品牌旗艦館則是在去年開始上線,吸引美妝、3C等各式消費產品品牌業者入駐。

持續開放策略
去年以來雅虎全球就不斷地在推廣Y! OS(Yahoo! Open Strategy)開放策略,去年夏季,Yahoo!技術長更為此親自來台推廣。而台灣的Yahoo!奇摩也跟隨此策略,並在9月時首度舉辦開放外部人員參加的創意日(Open Hack Day)。

延續去年的開放政策,雅虎奇摩承諾要開放更多API給開發者。洪小玲表示,將釋出更多的網路資源給網路使用者及開發者。而在Maps、知識+,及搜尋開放之後,今年也將會讓台灣最受歡迎的無名小站,有更多的API開放。

Source : http://www.ithome.com.tw/itadm/article.php?c=53498

Link from

Install Ubuntu 8.1 in Virtual PC 2007 for iPhone SDK / Android SDK development

by ○。o傻〃仔〃仔o。


Install Linux in VMWare is rather straight forward but in Microsoft Virtual PC, it will have screen display problem and fail during installation. The following guide describe the steps involved for the installation, the only pitfall is that sound is not working for the virtual machine of Ubuntu in Virtual PC 2007

Requirement:
Windows XP Pro or above
Microsoft Virtual PC 2007 is free, you can download it from
http://www.microsoft.com/windows/downloads/virtualpc/default.mspx

Ubuntu 8.1 is also free
you should download the 32 bit Intel i386 Desktop version
http://www.ubuntu.com/getubuntu/download
MD5 (ubuntu-8-1.10-desktop-i386.iso) = 24ea1163ea6c9f5dae77de8c49ee7c03

Here are the steps to install Ubuntu 8.1 in Virtual PC 2007.

(1) Setup the new Virtual Machine in VPC 2007 and mount the iso image (ubuntu-8-1.10-desktop-i386.iso).

The virtual machine setting is : Harddisk Size 8G (after installation of SDKs and packages of this guide, it will take up about 5G)

Ram 512MB (more ram is not that useful in this VM)

(2) Inside the Ubuntu Install Screen, first Press "F4" and Select "Safe Graphics mode"

(3) Then press down arrow and highlight the menu "Install Ubuntu" (highlight only and don't press Enter)

(4) Press "F6" to bring up the "Other Options"
Then type "vesa vga=771" at the end of the option line
Then Press "Enter", the installation will start instantly.

Note: If you want other resolution, you can try say vga=791 instead of vga=771

I did not try all these, some of them might not work. The codes are listed out for reference only.

vga=769 means 600x480 8 bits color
vga=785 means 600x480 16 bits color
vga=786 means 600x480 24 bits color
vga=771 means 800x600 8 bits color
vga=788 means 800x600 16 bits color
vga=789 means 800x600 24 bits color
vga=773 means 1024x768 8 bits color
vga=791 means 1024x768 16 bits color
vga=792 means 1024x768 24 bits color

During Installation just choose your timezone and language, you will be asked for the username and password and remember what you type

I choose English Language because I found out that if you choose Chinese, the default folder name will also be in Chinese which is very odd for me. If you choose English, you can enable the lanaguage support in the desktop and add input method later.

I use sdkuser as username for the installation guide below

(5) After installation, it will prompt to restart. But the restart might not work and you have to manually reset the VM in VPC 2007

(6) Then release the mounted iso image and to reset the VM that is in VPC 2007 menu do Action -> Reset



After you have installed the Ubuntu 8.1 in VPC 2007, you will have to start installation the necessary packages in Ubuntu

The purpose of this virtual machine is to develop apps for iPhone SDK and Android SDK. So it will have
(a) llvm-gcc for iPhone toolchain SDK 2.0
(b) Android SDK
(c) Eclipse IDE
(d) apache 2 websever with php and sqlite3 support (so that you can test some http get/post locally and install your local cydia repository as well)
(e) samba and open ssh server (so that you can smb mount it or ssh/scp to it)

(7) Install build essential packages so that you can compile llvm-gcc for iPhone toolchain SDK2.0

you need to open the Terminal and type these commands
 
sudo apt-get update
sudo apt-get install build-essential bison flex


(8) install server packages so that you can have local webserver and ssh and samba server
 
sudo apt-get install apache2 php5 libapache2-mod-php5 php5-cli php5-common php5-cgi php5-sqlite openssh-server samba


Install php5-sqlite3
 
sudo apt-get install php-db php-pear
wget http://us.archive.ubuntu.com/ubuntu/pool/universe/p/php-sqlite3/php-sqlite3_0.5-1_i386.deb
sudo dpkg -i php-sqlite3_0.5-1_i386.deb


(9) Create Project folder for smb mount (guest login ok) so that you can use windows / smb mount the virtual machine folder
(assume sdkuser is the default user account)

mkdir -p /home/sdkuser/Projects 
chmod 777 /home/sdkuser/Projects


edit the smb.conf
sudoedit /etc/samba/smb.conf

and add the followings at the end

 

[Projects]
   comment = Projects Folder Share
   writable = yes
   locking = no
   path = /home/sdkuser/Projects
   public = yes
   browseable = yes
   guest ok = yes
   create mask = 0666
   directory mask = 0777


Note : you have to restart samba server to make the new configuration effective if you need to use it right now

sudo /etc/init.d/samba restart


(10) install jdk6 so that you can compile Andriod app

sudo apt-get install sun-java6-jdk


(11) Download Android SDK http://dl.google.com/android/android-sdk-linux_x86-1.0_r1.zip from http://code.google.com/android/download_list.html

Install the SDK in ~/Android/

mkdir -p ~/Android/ 
sudo unzip ~/Desktop/android-sdk-linux_x86-1.0_r1.zip -d ~/Android/
sudo chown -R sdkuser:sdkuser ~/Andriod


Create sd card & test emulator and create data directory

~/Android/android-sdk-linux_x86-1.0_r1/tools/mksdcard -l SD500M 500M ~/Android/sd500m.img 

~/Android/android-sdk-linux_x86-1.0_r1/tools/emulator -datadir ~/Android -scale 0.7 -sdcard ~/Android/sd500m.img &


(12) Download and Install Eclipse 3.4.1 (you can't use the debian package eclipse which is 3.2 only)
from http://www.eclipse.org/downloads/
http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/ganymede/SR1/eclipse-java-ganymede-SR1-linux-gtk.tar.gz

Install eclipse in /usr/lib

cd /usr/lib; sudo tar -xzvf ~/Desktop/eclipse-java-ganymede-SR1-linux-gtk.tar.gz 


Add main menu & icon for eclipse in GNOME

sudoedit /usr/share/applications/eclipse.desktop 


and save this

 
[Desktop Entry]
Name=Eclipse
Comment=Develop applications in a variety of different programming languages
Exec=/usr/lib/eclipse/eclipse
Icon=eclipse48.png
Terminal=false
Type=Application
Categories=Development;
StartupNotify=true


There is no eclipse icon in the download file eclipse-java-ganymede-SR1-linux-gtk.tar.gz. You can get it from eclipse 3.2.2 package and install it manually

download the eclipse 3.2.2 package
wget http://us.archive.ubuntu.com/ubuntu/pool/universe/e/eclipse/eclipse_3.2.2-5ubuntu2_i386.deb


extract the package and copy the icons to /usr/share/pixmaps/ and clean up
dpkg -x eclipse_3.2.2-5ubuntu2_i386.deb tmp 
sudo cp tmp/usr/share/pixmaps/* /usr/share/pixmaps/
rm -fr tmp


Install Android sdk plug-in for Eclipse
(based on http://code.google.com/android/intro/installing.html#installingplugin)
add this site and install in Eclipse
http://dl-ssl.google.com/android/eclipse/

Edit Eclipse's preference for Andriod (Window -> Preferences -> Android)

SDK location
/home/sdkuser/Android/android-sdk-linux_x86-1.0_r1/

emulator options
-scale 0.7 -sdcard /home/sdkuser/Android/sd500m.img

Test HelloActivity in Eclipse
(a) Create a New Android Project in Eclipse (File -> New -> Project... -> Android -> Android Project)
(b) Choose Create project from existing source and browse to ~/Android/android-sdk-linux_x86-1.0_r1/samples/HelloActivity
(c) Run HelloActivity as Android Application
(d) Then the emulator will start Hello, World! will be on the emulator screen

Note: Please don't set the workspace of Eclipse to the sample project folder
~/Android/android-sdk-linux_x86-1.0_r1/samples/
or else you will get error when importing project from existing source

(13) Install iPhone llvm-gcc and toolchain SDK2.0
Refer to this article and download the file UpgradeToolChain2.tgz and run the build_20.sh to build the llvm-gcc for iPhone

http://www.iphone.org.hk/cgi-bin/ch/topic_show.cgi?id=9359

new!! install ldid in Linux, so that you can fake codesign it

 
cd ~/Projects
wget http://svn.telesphoreo.org/trunk/data/ldid/ldid-1.0.476.tgz
tar -zxf ldid-1.0.476.tgz
cd ldid-1.0.476
g++ -I . -o util/ldid{,.cpp} -x c util/{lookup2,sha1}.c
sudo cp -a util/ldid /usr/bin


If you need to codesign the iPhone binary in Linux
add this to your build script
 
export CODESIGN_ALLOCATE=/usr/toolchain2/pre/bin/arm-apple-darwin9-codesign_allocate; ldid -S $(PROJECTNAME)

(14) test apache2 and php so as to see the php info page in the local webserver

In Firefox browser of Ubuntu enter this address
http://localhost/

enable php5 (sometimes you need this)
a2enmod php5


restart apache server
sudo /etc/init.d/apache2 restart


create this test.php script in /var/www
sudo chown -R sdkuser:sdkuser /var/www 
echo "<?php phpinfo(); ?>" > /var/www/test.php


and see the php server info in Firefox browser of Ubuntu
http://localhost/test.php

(15) create sqlite3 db for testing
 
sudo chown -R sdkuser:sdkuser /var/www
cd /var/www
sqlite3 test.db
sqlite> create table test (id integer primary key, value text);
sqlite> insert into test (value) values('eenie');
sqlite>
sqlite> insert into test (value) values('meenie');
sqlite> insert into test (value) values('miny');
sqlite> insert into test (value) values('mo');
sqlite> select * from test;
sqlite>
sqlite> .exit


and test sqlite3 & php5-sqlite3 by using testdb.php script to test the access to sqlite3 db on webserver

  
<// Version 0.01
<html>
<head><meta http-equiv="Content-Type" content="text-html; charset=UTF-8" /></head>
<title>iPhone Database</title>
<body>
<?php

$ip_dbpath[] = '/var/www/test.db';

// $ip_dbpath[] = '/var/www/sms.db';
// $ip_dbpath[] = '/var/www/call_history.db';
// $ip_dbpath[] = '/var/www/notes.db';
// $ip_dbpath[] = '/var/www/AddressBook.sqlitedb';
// $ip_dbpath[] = '/var/www/Calendar.sqlitedb';

// db location in iPhone /private/var/mobile/Library/SMS/sms.db
// db location in iPhone /private/var/mobile/Library/CallHistory/call_history.db
// db location in iPhone /private/var/mobile/Library/Notes/notes.db
// db location in iPhone /private/var/mobile/Library/AddressBook/AddressBook.sqlitedb
// db location in iPhone /private/var/mobile/Library/Calendar/Calendar.sqlitedb

$ip_dbdesc[] = 'test';

// $ip_dbdesc[] = 'SMS';
// $ip_dbdesc[] = 'Call History';
// $ip_dbdesc[] = 'Notes';
// $ip_dbdesc[] = 'Address Book';
// $ip_dbdesc[] = 'Calendar';

$ip_query[] = 'SELECT * from test order by 1';
// $ip_query[] = 'SELECT date, address, text FROM message order by 1 desc, 2;';
// $ip_query[] = 'SELECT date, address, duration FROM call order by 1 desc;';
// $ip_query[] = 'SELECT creation_date, data, title FROM Note inner join note_bodies on Note.ROWID = note_bodies.note_id order by 1;';
// $ip_query[] = 'SELECT First, Last, Middle, CreationDate, ModificationDate FROM ABPerson;';
// $ip_query[] = 'SELECT start_date, end_date, summary, location, description FROM Event order by 1, 2;';

// $dbcount = sizeof($ip_dbpath);
// if you uncomment the above db & query and add copy the iPhone db , you can list out the content of sqlitedb of iPhone
$dbcount = 1;

for ($dbnum=0;$dbnum<$dbcount;$dbnum++){

try {
   $dbpath = $ip_dbpath[ $dbnum ];
   $dbh = new PDO('sqlite:'.$dbpath);
   $query = $ip_query[ $dbnum ];
   $stmt = $dbh->prepare($query);
   $stmt->execute();
}
catch (PDOException $e) {
   die("Could not open database" . $e->getMessage());
}
$colcount = $stmt->columnCount();
echo "<h1>". $ip_dbdesc[ $dbnum ] . "</h1>";
echo "<table cellpadding=10 border=1>";

   for ($i=0;$i<$colcount;$i++) {
      $meta = $stmt->getColumnMeta($i);
      echo "<td>".$meta["name"]."</td>";
   }

   while ($row = $stmt->fetch()) {
       echo "<tr>";
       for ($i=0;$i<$colcount;$i++) {
         $meta = $stmt->getColumnMeta($i);
         if ($meta["native_type"] == "null") {
           echo "<td> </td>";
         }
         elseif (preg_match("/date$/i", $meta["name"])) {
           echo "<td>". date("j M Y D g.i a", $row&i;)."</td>";
         }
         elseif (preg_match("/[call|sms]$/i", $meta["name"]) && $meta["name"] == "address" && strlen(rtrim($row[ $i])) == 8) {
          echo "<td><A href='Tel:".$row&i;."'>".$row&i;."</A></td>";
         }
         else {
           echo "<td>".$row[ $i]."</td>";
         }
       }
       echo "</tr>";
   }
   echo "</table>";
}
?>
</body>
</html>




Additional Notes
-----------------------
If you need to install flash plugin in firefox
sudo apt-get install flashplugin-nonfree


If you need to install java plugin in firefox
sudo apt-get install sun-java6-plugin


If you need to install xpdf
sudo apt-get install xpdf-reader


If you need to install jedit
  sudo apt-get install jedit


If you need to add Chinese Language Support and Input Method

System -> Administration -> Language Support
Choose Chinese
and Support complex characters

System -> Preferences -> SCIM Input Method Setup

You may need to change the hot-key to turn-on/off SCIM as it may collide with your host OS if you need it. Alternatively, you can change input method in the top menu bar near the date

From : http://www.iphone.org.hk/cgi-bin/ch/topic_show.cgi?id=9608

Link from

iPhone SDK 2.0 in Linux

by ○。o傻〃仔〃仔o。


The building of iPhone gcc in Linux is described in
http://www.saurik.com/id/4

But this guide involved a lot of downloading and patching, so I put all the downloading in one zipped tar file. All you have to do is download it and run the build script in your Linux

I used the Asus eeepc Linux as an example, but others Linux variant / cygwin should be very similar.

Asus eeepc comes with xandros Debian Linux but does not have development tools. This part(A) shows you how to setup the development tools first. Other Linux variant does have development tools and you might want to skip this part and continue on Part B

(A) Install the development tools in eeepc

(1) Launch Terminal (Ctrl-Alt-T) in eeepc

(2) edit the file/etc/apt/sources.list
  sudo vi /etc/apt/sources.list


and add this line to the end of the file "sources.list"
deb http://http.us.debian.org/debian/   stable main


(3) Run these commands in Terminal to install building tools

 
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential bison flex


(B) Download the file to your Linux
UpgradeToolChain2.tgz

The package is very large (about 200M)
You should first goto this websever
http://www.iphonefix.de/

and click the download menu
and username password is generated for every visitor on the fly when you click on the ftp sever link

Inside the ftp server goto the folder
iPhoneToolchain VMWare Image / V3
and download the file UpgradeToolChain2.tgz



MD5 (UpgradeToolChain2.tgz) = b373c0e600d45b1019e2894614b5979b
Size (UpgradeToolChain2.tgz) = 202278454

and extract to /usr
 
cd /usr
sudo tar -xzvf ~/UpgradeToolChain2.tgz


(C) login in as superuser and build the Darwin CC tools and llvm-gcc in Linux
  
su
cd /usr/toolchain2
./build_20.sh

wait for 10 to 20 minutes to complete the buiding of tools and gcc

If you extract the tgz to different folder and want to build it in some other folder, please modify the environment variable toolchain in build_20.sh

(D) Test build your project in Linux
The include files have the iPhone SDK headers so you can test it using some available open source project (without Interface Builder) that using SDK 2.0 headers

For example, download this WinterBoard App Source code from the developer and compile it in Linux
 
wget http://svn.saurik.com/repos/menes/trunk/winterboard/Application.mm

/usr/toolchain2/pre/bin/arm-apple-darwin9-g++ -g0 -O2 -Wall -Werror -o WinterBoard Application.mm \
-framework UIKit -framework Foundation -framework CoreFoundation -lobjc -framework CoreGraphics


If you want to deploy the app to iPhone, you have to codesign it (using ldid in iPhone) and provide the additional required project file in the .app folder e.g. (Info.plist, Icon.png etc)

Enjoy compiling and building iPhone App

Moreover, I have modified a previous VMWare image based on Debian Linux and build the llvm-gcc for iPhone and the toolchain and SDK20 headers there. If you have VMWare workstation or player / VMWare Fusion (Mac OS X), you can use it to build 2.0 iPhone app using ssh or samba mount access. The VMWare image is very large (1.2G compressed).

You should first goto this websever
http://www.iphonefix.de/

and click the download menu
and username password is generated for every visitor on the fly when you click on the ftp sever link

Inside the ftp server goto the folder
iPhoneToolchain VMWare Image / V3
and download the file
iPhoneToolchian_SDK20.rar



MD5 (iPhoneToolchain_SDK20.rar) = 29888ad8a73cf0a9674152c64961c02a
Size (iPhoneToolchain_SDK20.rar) = 1304054096

unrar the file and then use VMWare workstation or VMWare Fusion to open it

login: root
password: toolchain

The instructions are in the README.txt

There are 3 sample projects inside the VMWare image

Source : http://www.iphone.org.hk/cgi-bin/ch/topic_show.cgi?id=9359

Link from

Convert OSX dmg file to img file. IN Linux

by ○。o傻〃仔〃仔o。


download this file on linux:

extract, enter the dir and type:
make
sudo make install

Usage:
dmg2img -i image.img -o newimage.img

now you can mount it from root:
modprobe hfsplus
mount -t hfsplus -o loop newimage.img /folder_you_want

Link from

重要節日假日 2009年 己丑年【牛年】

2009年2月17日 星期二 by ○。o傻〃仔〃仔o。


一月
1月1日  元旦  
1月13日  Micheal Brecker 去世  
1月25日  除夕的來曆, 除夕的由來... 除夕  
1月26日  春節  
1月30日  破五  

二月
2月9日  元宵節  
2月10日  蘆笙節(苗族)  
2月14日  情人節  
2月26日  二月二龍抬頭  

三月
3月8日  三八婦女節  
3月12日  植樹節  
3月15日  315 消費者權益日  

四月
4月1日  愚人節  
4月4日  清明  
4月10日  三月街(白族)  
4月12日  複活節  
4月13日  潑水節(傣曆新年)  
4月18日  媽祖生辰  
4月22日  Mosaic瀏覽器問世  

五月
5月1日  五一勞動節  
5月2日  釋迦牟尼佛聖誕  
5月4日  五四青年節  
5月9日  佛吉祥日  
5月10日  母親節  
5月12日  遷徙節(錫伯族)  
5月28日  端午節  

六月
6月1日  六一兒童節  
6月21日  父親節  

七月
7月7日  七七盧溝橋事變——日本全面侵華的開端  
7月25日  那達慕(蒙古族)  

八月
8月8日  08北京奧運倒計時一周年  
8月14日  火把節(彝族等)  
8月15日  日本正式宣布無條件投降日  
8月26日  七夕  
8月29日  卡特�娜颶風  

九月
9月3日  鬼節(農曆七月十五)  
9月8日  北京國子監首設免費國學講堂  
9月10日  教師節  世界預防自殺日  
9月11日  9·11美國恐怖襲擊事件悼念日  
9月18日  "九·一八"事變爆發  

十月
10月1日  國慶節  
10月3日  中秋節  
10月13日  Netscape瀏覽器問世  
10月16日  結婚紀念日  
10月26日  重陽節  
10月31日  萬聖節前夜  

十一月
11月11日  光棍節  
11月26日  感恩節 

十二月
12月1日  世界艾滋病日  
12月13日  南京大屠殺悼念日  
12月24日  平安夜  
12月25日  聖誕節  
[使用說明]

    * 此列表為 2009年, 重要節日假日所處時間的列表.
    * 點擊標題下的年份或左右箭頭, 可以查看其他年份的重要節日假日所處的時間.
    * 所有 1900-2100 年之內的節日陰曆(農曆)日期都是准確的.
    * 上下 5000 年的特殊日期(比如月周, 節氣等等)都是准確的.
From : http://blog.tom.com/benge_zhao/article/5111.html

Link from

MySQL+Sphinx+SphinxSE安裝 (全文搜索連中文分詞)

by ○。o傻〃仔〃仔o。


一、MySQL+Sphinx+SphinxSE安裝步驟:
  1、安裝python支持(以下針對CentOS系統,其他Linux系統請使用相應的方法安裝)
yum install -y python python-devel

  2、編譯安裝LibMMSeg(LibMMSeg是為Sphinx全文搜索引擎設計的中文分詞軟件包,其在GPL協議下發行的中文分詞法,采用Chih-Hao Tsai的MMSEG算法。LibMMSeg在本文中用來生成中文分詞詞庫。)

  以下壓縮包「sphinx-0.9.8-rc2-chinese.zip」中包含mmseg-0.7.3.tar.gz、sphinx-0.9.8-rc2.tar.gz以及中文分詞補丁。

wget http://www.coreseek.com/uploads/sources/csft3_0b2.tar.gz
wget http://www.coreseek.com/uploads/sources/mmseg3_0b2.tar.gz
unzip sphinx-0.9.8-rc2-chinese.zip
tar zxvf mmseg3_0b2.tar.gz
cd mmseg3_0b2/
./configure
make
make install
cd ../


  3、編譯安裝MySQL 5.1.26-rc、Sphinx、SphinxSE存儲引擎
wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.26-rc.tar.gz/from/http://mirror.x10.com/mirror/mysql/
tar zxvf mysql-5.1.26-rc.tar.gz

tar zxvf csft3_0b2.tar.gz
cd csft3_0b2.tar.gz/
patch -p1 < ../sphinx-0.98rc2.zhcn-support.patch
patch -p1 < ../fix-crash-in-excerpts.patch
cp -rf mysqlse ../mysql-5.1.26-rc/storage/sphinx
cd ../

cd mysql-5.1.26-rc/
sh BUILD/autorun.sh
./configure --with-plugins=sphinx --prefix=/usr/local/mysql1/ --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client --with-big-tables --with-readline --with-ssl --with-embedded-server --enable-local-infile
make && make install
cd ../
檢查下是否安裝好sphinx    show engines; 有個sphinx引擎

cd csft3_0b2.tar.gz/
CPPFLAGS=-I/usr/include/python2.4
LDFLAGS=-lpython2.4
./configure --prefix=/usr/local/sphinx --with-mysql=/usr/local/mysql1
make
make install
cd ../

cp /usr/local/sphinx/etc/sphinx.conf.dist /usr/local/sphinx/etc/sphinx.conf

    4、創建Sphinx索引文件和MySQL數據文件存放目錄

./usr/local/sphinx/bin/indexer test1 --config /usr/local/sphinx/etc/sphinx.conf

/usr/local/mysql1/bin/mysql_install_db --datadir=/usr/local/mysql1/var

    5、創建MySQL配置文件
        (1)、創建配置文件/mysql/3306/my.cnf

        cd mysql-5.1.26-rc/
        cp support-files/my-medium.cnf /mysql/3306/my.cnf
        vim /mysql/3306/my.cnf
        server_id=2(不同於主庫和3406)
        port=3306

        (2)、創建配置文件/mysql/3406/my.cnf
        cd mysql-5.1.26-rc/
        cp support-files/my-medium.cnf /mysql/3306/my.cnf
        vim /mysql/3306/my.cnf
        server_id=3(不同於主庫和3306)
        port=3406
    6、制作一份MySQL slave供搜索引擎使用
    7、創建快捷啟動、停止重啟、殺死MySQL進程的腳本
        cp support-files/mysqlserver /etc/rc.d/init.d/mysql
        vim /etc/rc.d/init.d/mysql
        conf=/mysql/3306/my.cnf
        $bindir/mysqld_safe --defaults-file=/mysql/3306/my.cnf --datadir=$datadir --pid-file=$server_pid_file $other_args >/dev/null 2>&1 &
二、Sphinx配置

1、生成sphinx中文分詞詞庫
    (1)、詞典的構造
   
mmseg -u unigram.txt

該命令執行後,將會產生一個名為unigram.txt.uni的文件,將該文件改名為uni.lib,完成詞典的構造。需要注意的是,unigram.txt 必須為UTF-8編碼。

    (2)、詞典文件格式
....
河 187
x:187
造假者 1
x:1
台北隊 1
x:1
湖邊 1
......

其中,每條記錄分兩行。其中,第一行為詞項,其格式為:[詞條]\t[詞頻率]。需要注意的是,對於單個字後面跟這個字作單字成詞的頻率,這個頻率需要在大量的預先切分好的語料庫中進行統計,用戶增加或刪除詞時,一般不需要修改這個數值;對於非單字詞,詞頻率處必須為1。第二行為占位項,是由於 LibMMSeg庫的代碼是從Coreseek其他的分詞算法庫(N-gram模型)中改造而來的,在原來的應用中,第二行為該詞在各種詞性下的分布頻率。LibMMSeg的用戶只需要簡單的在第二行處填"x:1"即可。

用戶可以通過修改詞典文件增加自己的自定義詞,以提高分詞法在某一具體領域的切分精度,系統默認的詞典文件在data/unigram.txt中。

    (3)、Sphinx+MySQL搜索引擎的中文詞庫

2、創建Sphinx主索引文件、增量索引文件存放目錄
mkdir /usr/local/sphinx/var/data/test1/
mkdir /usr/local/sphinx/var/data/test1stemmed/
3、創建Sphinx配置文件
#in MySQL
CREATE TABLE sphcounter
(
   counterid INTEGER PRIMARY KEY NOT NULL,
   max_doc_id INTEGER NOT NULL
);
#創建這張表用來標識上次重建主索引的id位置
# in sphinx.conf
source src1
{
    type                    = mysql
    sql_host                = localhost
    sql_user                = root
    sql_pass                = 123
    sql_db                    = test
    sql_port                = 3306    # optional, default is 3306
    sql_sock                = /usr/local/mysql1/var/mysql.sock#以上都是用於連接數據庫部分一看就懂
    sql_query_pre            = SET NAMES utf8
    sql_query_pre            =replace into sphcounter \
        select 1,MAX(postid) from pa_gposts  #創建主索引前更改標識位置
    sql_query                = \
        SELECT postid, title,group_id \
                FROM pa_gposts where postid <= \
        (select max_doc_id from sphcounter where counterid=1)#主索引是id小於標識位置的部分
    sql_attr_uint        = group_id#這個部分不被索引,但可以通過這個屬性對結果進行排序
    sql_ranged_throttle    = 0#每個查詢之前先延遲0ms,也就是不延遲
    #sql_query_info        = SELECT * FROM pa_gposts WHERE postid=$id
}
source src1throttled : src1
{
   sql_query_pre=set names utf8
    sql_query=SELECT postid, title \
                FROM pa_gposts where postid >\
                (select max_doc_id from sphcounter where counterid=1) #增量索引是id大於標識位置的部分
}
index test1
{
    source            = src1 #數據源
    path            = /usr/local/sphinx/var/data/test1/test1 #創建索引位置必須有目錄/usr/local/sphinx/var/data/test1/
    docinfo            = extern
    mlock            = 0
    min_word_len        = 1
    charset_type        =  zh_cn.utf-8#支持中文索引必須為zh_cn.utf-8
    charset_dictpath=/root/mmseg-0.7.3/data/ #詞典的目錄,詞典下必須有uni.lib mmseg 生產的詞典
     min_prefix_len    = 0
     min_infix_len        = 1
     ngram_len                = 1
    ngram_chars = U+4E00..U+9FBF, U+3400..U+4DBF, U+20000..U+2A6DF, U+F900..U+FAFF,\
U+2F800..U+2FA1F, U+2E80..U+2EFF, U+2F00..U+2FDF, U+3100..U+312F, U+31A0..U+31BF,\
U+3040..U+309F, U+30A0..U+30FF, U+31F0..U+31FF, U+AC00..U+D7AF, U+1100..U+11FF,\
U+3130..U+318F, U+A000..U+A48F, U+A490..U+A4CF
    html_strip                = 0#不去除HTML標簽
#其他的配置如min_word_len,charset_type,ngrams_chars,ngram_len這些則是支持中文檢索需要設置的內容。

}
index test1stemmed : test1
{
    source                  =src1throttled
    path            = /usr/local/sphinx/var/data/test1stemmed/test1stemmed
}
indexer
{
    mem_limit            = 256M
}
searchd
{
    port                = 3312
    log                    = /usr/local/sphinx/var/log/searchd.log
    query_log            = /usr/local/sphinx/var/log/query.log
    read_timeout        = 5
    max_children        = 30
    pid_file            = /usr/local/sphinx/var/log/searchd.pid
    max_matches            = 1000
    seamless_rotate        = 1
    preopen_indexes        = 0
    unlink_old            = 1
}

4、初始化sphinx中配置的全部索引
/usr/local/sphinx/bin/indexer --all --config /usr/local/sphinx/etc/sphinx.conf
5、創建2個shell腳本,一個用來創建主索引、一個用來創建增量索引(此步可以省略)

    1.創建主索引腳本build_main_index.sh
            #!/bin/sh
            /usr/local/sphinx/bin/searchd --stop>>searchdlog
            /usr/local/sphinx/bin/indexer test1 --config /usr/local/sphinx/etc/sphinx.conf>>mainindexlog
            /usr/local/sphinx/bin/searchd>>searchdlog
    賦予執行權限
        chmod u+x build_main_index.sh
    定時執行腳本
        crontab -e
        添加一行 ./root/build_delta_index.sh
    2.創建增量索引腳本build_delta_index.sh
        #!/bin/sh
        /usr/local/sphinx/bin/searchd --stop >> searchdlog
        /usr/local/sphinx/bin/indexer test1stemmed --config /usr/local/sphinx/etc/sphinx.conf >> deltaindexlog
        /usr/local/sphinx/bin/indexer --merge test1 test1stemmed --config /usr/local/sphinx/etc/sphinx.conf >> deltaindexlog
        /usr/local/sphinx/bin/searchd >> searchdlog

6、啟動Sphinx守護進程
    /usr/local/sphinx/bin/searchd --config /usr/local/sphinx/etc/sphinx.conf
關閉 /usr/local/sphinx/bin/searchd --config /usr/local/sphinx/etc/sphinx.conf --stop
7、配置服務器開機啟動時需要自動執行的命令
8、創建Sphinx存儲引擎表
CREATE TABLE `sphinx` (
  `id` int(11) NOT NULL,
  `weight` int(11) NOT NULL,
  `query` varchar(255) NOT NULL,
  `group_id` int(11) NOT NULL,
  KEY `Query` (`Query`)
) ENGINE=SPHINX CONNECTION='sphinx://localhost:3312/test1';
與一般mysql表不同的是ENGINE=SPHINX CONNECTION='sphinx://localhost:3312/test1';,這�表示這個表采用SPHINXSE引擎,與sphinx的連接串是'sphinx://localhost:3312/test1,test1是索引名稱
根據sphinx官方說明,這個表必須至少有三個字段,字段起什麼名稱無所謂,但類型的順序必須是integer,integer,varchar,分別表示記錄標識document ID,匹配權重weight與查詢query,同時document ID與query必須建索引。另外這個表還可以建立幾個字段,這幾個字段的只能是integer或TIMESTAMP類型,字段是與sphinx的結果集綁定的,因此字段的名稱必須與在sphinx.conf中定義的屬性名稱一致,否則取出來的將是Null值。

比如我在上面有定義了sql_attr_uint= group_id那麼在這個表�頭,你就可以再定義group_id字段。



三、如何通過SQL語句調用搜索引擎
    1。簡單的查詢
        select * from sphinx where query='動畫';
    2。聯合查詢:
        select docs.title from test.pa_gposts docs join sphinx on (docs.postid=sphinx.id) where query='制作;limit=1000';
  
query='關鍵字' ,關鍵字就是你要搜索的關鍵字,如query='CGArt'表示你要全文搜索CGArt

mode,搜索模式,值有:all,any,phrase,boolean,extended,默認是all
    all, 匹配所有查詢詞(默認模式)
    any, 匹配查詢詞中的任意一個
    phrase, 將整個查詢看作一個詞組,要求按順序完整匹配
    boolean, 將查詢看作一個布爾表達式 (參見 節 4.2, 「布爾查詢語法」)
    extended, 將查詢看作一個 Sphinx 內部查詢語言的表達式(參見節 4.3, 「擴展的查詢語法」)

sort,排序模式,必須是relevance,attr_desc,attr_asc,time_segments,extended中的一種,在所有模式中除了relevance外,
       屬性名(或用extended排序)前面都需要一個冒號。
   ... where query='test;sort=attr_asc:group_id';按照group_id升序排序
      ... where query='test;sort=extended:@weight desc,group_id asc';
    relevance 模式, 按相關度降序排列(最好的匹配排在最前面)
   attr_desc 模式, 按屬性降序排列(屬性值越大的越是排在前面)
    attr_asc 模式, 按屬性升序排列(屬性值越小的越是排在前面)
   time_segments 模式, 先按時間段(最近一小時/天/周/月)降序,再按相關度降序
   extended 模式, 按一種類似 SQL 的方式將列組合起來,升序或降序排列。
        RELEVANCE 忽略任何附加的參數,永遠按相關度評分排序。所有其餘的模式都要求額外的排序子句,子句的語法跟具體的模式有關。
            ATTR_ASC,ATTR_DESC 以及 TIME_SEGMENTS 這三個模式僅要求一個屬性名。
        RELEVANCE 模式等價於在擴展模式中按"@weight DESC, @id ASC"排序,
        ATTR_ASC 模式等價於"attribute ASC, @weight DESC, @id ASC",而
        ATTR_DESC 等價於"attribute DESC, @weight DESC, @id ASC"。
        TIME_SEGMENTS 模式 在 TIME_SEGMENTS 模式中,屬性值被分割成「時間段」,然後先按時間段排序,再按相關度排序。
        EXTENDED 模式在 EXTENDED 模式中,您可以指定一個類似 SQL 的排序表達式,但涉及的屬性(包括內部屬性)不能超過 5 個,例如:
                @relevance DESC, group_id ASC, @id DESC
            已知的內部屬性:
                @id (match ID)
              @weight (match weight)
              @rank (match weight)
              @relevance (match weight)
                @rank 和@relevance 只是@weight 的額外別名。

offset,結果記錄集的起始位置,默認是0

limit,從結果記錄集中取出的數量,默認是20條

index,要搜索的索引名稱
  ... where query='test;index=test1';
  ... where query='test;index=test1,test2,test3;';

minid,maxid,匹配最小與最大文檔ID
weights,以逗號分割的分配給sphinx全文檢索字段的權重列表
   ... where query='test;weights=1,2,3;';
filter,!filter,以逗號分隔的屬性名與一堆要匹配的值
   #只包括1,5,19的組
   ... where query='test;filter=group_id,1,5,19;';
  #不包括3,11的組
   ... where query='test;!filter=group_id,3,11';
range,!range,逗號分隔的屬性名一最小與最大要匹配的值
   #從3至7的組
   ... where query='test;range=group_id,3,7;';
   #不包括從5至25的組
   ... where query='test;!range=group_id,5,25;';
maxmatches,每個查詢最大匹配的值
   ... where query='test;maxmatches=2000;';
groupby,group by 方法與屬性
   ... where query='test;groupby=day:published_ts;';
   ... where query='test;groupby=attr:group_id;';
groupsort,group by 的排序
   ... where query='test;gropusort='@count desc';

select count(*) from pa_gposts docs join sphinx on (docs.postid=sphinx.id) where query='動畫;limit=1000';

搜索標題包含動畫
select count(*) from pa_gposts docs join sphinx on (docs.postid=sphinx.id) where query='@title動畫;limit=100000;mode=extended';

四、添加分詞的操作及效果
    1.添加分詞兒童動畫片
        select docs.title from pa_gposts docs join sphinx on (docs.postid=sphinx.id) where query='兒童動畫片;limit=100000';
+--------------------------------------------------------------------------------------------------+
| title                                                                                            |
+--------------------------------------------------------------------------------------------------+
| 兒童動畫片兒童影視/動畫連續劇  迅雷下載集                                     |
| 發精彩兒童動畫片10部,下載從速                                                     |
| 【兒童節專題】【17部經典動畫片下載,附名單】                                  |
| <span style="color:red">[圖]</span>兒童安全教育動畫片《平安》                      |
| 十五部國產兒童動畫片下載                                                             |
| 推薦不用注冊就能下載數千首兒童歌曲、動畫片、遊戲、故事等育兒資源 |
| 求兒童動畫片                                                                               |
| 兒童歌曲、兒童故事、兒童動畫片下載                                              |
| 兒童動畫片--童話合集23部                                                               |
+--------------------------------------------------------------------------------------------------+
9 rows in set (0.00 sec)
        沒添加之前被分割成兒童/動畫片

    vim unigram.txt    添加下面2行(參見2.1.2詞典的格式)
兒童動畫片 1
x:1
    (附)查看分詞
    mmseg -d <dict_dir> tobe_segment.txt
    其中,命令使用『-d』開關指定詞庫文件所在的位置,參數dict_dir為詞庫文件(uni.lib )所在的目錄;tobe_segment.txt 為待切分的文本文件,必須為UTF-8編碼。如果一切正確,mmseg會將切分結果以及所花費的時間顯示到標准輸出上。
    mmseg -d mmseg-0.7.3/data a
    論壇/x �/x 有/x 沒有/x 迪/x 斯/x 尼/x 的/x 小公/x 主/x 動畫片/x ,/x 睡/x 美人/x ,/x 阿/x 拉丁/x ,/x 灰姑娘/x
    2。生成字典
mmseg -u unigram.txt uni.lib
    3。重啟服務器重建索引
mysql restart 因為mysql的告訴緩存所以要重啟mysql

bin/searchd --stop

bin/indexer test1

bin/searchd
    4。查看結果
mysql> select docs.title from pa_gposts docs join sphinx on (docs.postid=sphinx.id) where query='兒童動畫片;limit=100000';
+--------------------------------------------------------------+
| title                                                        |
+--------------------------------------------------------------+
| 發精彩兒童動畫片10部,下載從速                 |
| 十五部國產兒童動畫片下載                         |
| 兒童動畫片兒童影視/動畫連續劇  迅雷下載集 |
| 求兒童動畫片                                           |
| 兒童歌曲、兒童故事、兒童動畫片下載          |
| 兒童動畫片--童話合集23部                           |
+--------------------------------------------------------------+
6 rows in set (0.06 sec)

        添加之後只搜出兒童動畫片

五、增量索引測試

    1。原始數據
    mysql> select docs.title from pa_gposts docs join sphinx on (docs.postid=sphinx.id) where query='詞典;limit=100000';
+-----------------------------------------------------------------------------+
| title                                                                       |
+-----------------------------------------------------------------------------+
| 孕婦小詞典                                                             |
| 征婚魔鬼詞典                                                          |
| 和大家分享一個很棒的在線學習詞典,對小孩很有幫助的 |
| [轉貼]女人流行詞典                                                  |
| 你不得不看的魔鬼詞典                                              |
+-----------------------------------------------------------------------------+
5 rows in set (0.13 sec)
    insert into pa_gposts (title) values('詞典的構造');
    bin/searchd --stop
    2。創建增量索引
    bin/indexer test1stemmed --config /usr/local/sphinx/etc/sphinx.conf
    3。合並索引
    bin/indexer --merge test1 test1stemmed --config /usr/local/sphinx/etc/sphinx.conf
    bin/searchd
    4。查看結果
    mysql> select docs.title from pa_gposts docs join sphinx on (docs.postid=sphinx.id) where query='詞典;limit=100000';
+-----------------------------------------------------------------------------+
| title                                                                       |
+-----------------------------------------------------------------------------+
| 孕婦小詞典                                                             |
| 征婚魔鬼詞典                                                          |
| 和大家分享一個很棒的在線學習詞典,對小孩很有幫助的 |
| [轉貼]女人流行詞典                                                  |
| 你不得不看的魔鬼詞典                                              |
| 詞典的構造                                                             |
+-----------------------------------------------------------------------------+
6 rows in set (0.08 sec)

Source From google

Link from

Bespin - 在雲端寫程式

by ○。o傻〃仔〃仔o。


為什麼我會取這麼奇怪的標題呢?那是因為這個網站:Bespin » Code in the CloudBespin(發音為「倍思拼」)是 Mozilla Lab 的一項新專案,它讓你透過瀏覽器隨時隨地寫程式(怎麼聽起來很悲情∼XD)。Bespin 是一個新服務,你只要開啟瀏覽器,連到它們的網站並登入,就能開始寫程式了。開發初期它們就很注重效能,所以即使你開啟一個數萬行程式碼的檔案,它還是可以運作得很流暢(在 demo 影片裡面是編輯一個三萬多行的檔案)。利用 Bespin 來開發程式有什麼好處呢?

  • 到處都能寫程式:只要你有網路跟瀏覽器,你就能寫程式,而且還能使用你習慣的作業環境。
  • 易於分享:你可以分享你的程式給別人看。
  • 協同作業:很多時候一份程式碼會有許多人修改,你可以看到有誰正在修改同一份文件,而且可以同步看到對方修改的結果。換個角度來說,若是你的程式需要被 review 或是有 bug 要請人幫你看,也就變得很方便,因為對方輸入什麼、或是選取了什麼,你都能立即看到。

Bespin 本身又有什麼特色呢?

  • 效能是它的重點,即使開啟數萬行的大檔案,它還是很流暢(當然這跟個人電腦配備也有關係)
  • 它支援語法高亮度
  • 使用 JavaScript + CSS + HTML(5) 寫成,也就意味著古老的瀏覽器很有可能無法正確運作。所以還在用 IE 的,趕快改用 Firefox / Safari / Opera / Google Chrome 吧!
  • 有個 Dashboard 輕鬆管理你的檔案(請看 demo 影片,那樣的管理方式真的挺方便的)
  • 可以自訂命令,提高個人生產力

這個新專案看起來很真的很有趣阿,可以讓你在公司寫程式,回家還要寫程式,難怪叫做「倍思拼」了 Orz


更多報導請看 Mozilla Labs » Blog Archive » Introducing Bespin

轉自 : http://nelson.pixnet.net/blog/post/23152724

Link from

使用firebug + fireunit做javascript的單元測試

2009年2月16日 星期一 by ○。o傻〃仔〃仔o。


轉自 : http://www.ithome.com.tw/plog/index.php?op=ViewArticle&articleId=22819&blogId=257

在John Resig的blog上看到的,簡單好用的單元測試工具。作者就是......他自己。


條列一下幾個簡單的用法說明:

  • fireunit.ok(Boolean, '測試說明')
    (簡單測試,第一個參數是true時測試結果成功,false時測試失敗。第二個參數是測試的說明。)
  • fireunit.compare(預期結果, 實際結果, '測試說明')
    (比較預期結果與實際結果是否相同,第三個參數是測試的說明。)
  • fireunit.reCompare(預期結果, 實際結果, '測試說明')
    (與compare差不多,但是預期結果是用Regular Expression來表示,所以結果用RE比較是符合的就可通過測試)
  • fireunit.testDone()
    (測試完畢,產生測試結果)

不過fireunit是一個還在開發中的工具,還有許多功能未完善,例如不能比較陣列物件等等,另外TestSuite的功能還未完善(利用網站上 的原始碼把程式更新到最新的版本,還是有問題,目前在localhost上測試是ok,但是file://還有問題)。與Firebug結合是不錯的想 法,我在Resig文章的comment上有看到Zakas試著移植到YUI上,另外也有人提議把他整合成JsUnit的前端。

接下來看一下安裝方法:

  1. 安裝好1.2以上版本的FireBug
  2. fireunit.org,點選Download Latest Extension連結來安裝
  3. 安裝完後,點選下面的Source Code連結
  4. 依序進入chrome/content/fireunit/fireunit.js,然後點選程式碼右上角的[raw],選取全部內容,拷貝後,用這個內容取代安裝好的fireunit內的fireunit.js內容
  5. 接著進入chrome/skin/classic/fireunit.css,同樣點選程式碼右上角的[raw],選取全部內容,拷貝之後,用這個內容取代胺裝好的fireunit內的fireunit.css內容
    (其實架構跟程式都有一些更動,如果要用testsuite功能,更新過會比較好用。東西安裝在哪裡,就請自己找一找了。)

接下來寫一個testsuite做測試(test415.html):

<html>
<body>
<script type="text/javascript">
if(fireunit.forceHttp()) {
fireunit.runTests(
"test414.html",
"test414a.html"
);
}
</script>
</body>
</html>

接下來做簡單的測試檔:(test414.html)

<html>
<body>
<script type="text/javascript">
function trim(str) {
str = str.replace(/^s+/g, '');
str = str.replace(/s+$/g, '');
return str;
}
fireunit.compare('hello there.', trim(' hello there.'), 'trim left side. for test only. for test only for test only. for test only. for test only. trim left side. for test only. for test only for test only. for test only. for test only. trim left side. for test only. for test only for test only. for test only. for test only. trim left side. for test only. for test only for test only. for test only. for test only. trim left side. for test only. for test only for test only. for test only. for test only.');
fireunit.compare('hello there.', trim('hello there. '), 'trim right side.');
fireunit.compare('hello there.', trim(' hello there. '), 'trim both side.');
window.setTimeout(function(){fireunit.testDone();},1000);
</script>
</body>
</html>

另一個測試檔:(test414a.html)

<html>
<body>
<script type="text/javascript">
function trim(str) {
str = str.replace(/^s+/g, '');
str = str.replace(/s+$/g, '');
return str;
}
fireunit.compare('hello there.', trim(' hello there.'), 'trim left side.');
fireunit.compare('hello there.', trim('hello there. '), 'trim right side.');
fireunit.compare('hello there.', trim(' hello there. '), 'trim both side.');
window.setTimeout(function(){fireunit.testDone();},1000);
</script>
</body>
</html>

把檔案放到locahost的apache伺服器的同一個目錄中,透過瀏覽器執行http://localhost/test415.html,打開FireBug,點選Test頁籤,就可以看到測試結果:

Fireunit

稍微補充說明,原始碼的網站內,其實還有wiki,裡面的說明才夠完整。使用上有問題的話,建議到這個wiki看看。另外commit的說明也可以看看,新增了什麼功能。

總之,雖然功能簡單,而且還不夠完整,但是使用起來還蠻方便的。可以期待他未來的發展。


2008-2-12 15:42 補充:

其實fireunit還提供了幾個DOM事件的測試函數,在上面的文章沒提到,包括:

  • fireunit.click(node)
    (模擬在node上的onclick事件來測試node上attach的事件處理程式)
  • fireunit.mouseDown(node)
    (模擬在node上的onmousedown事件來測試node上attach的事件處理程式)
  • fireunit.focus(node)
    (模擬在node上的onfocus事件來測試node上attach的事件處理程式)
  • fireunit.key(node,letter)
    (模擬在node上的onkeypress事件來測試node上attach的事件處理程式)

不過要配合單元測試的進行,這些事件處理程式要根據適當的條件回傳一些處理結果(例如true/false等),才能配合fireunit.ok()或fireunit.compare()來做測試。以下是一個簡單的例子:

<html>
<body>
<div id="target" onclick="this.style.background='gray';return true;">test</div>
</body>
</html>
<script>
fireunit.compare(true, fireunit.click(document.getElementById("target")), "click test");
fireunit.testDone();
</script>

Link from

澳門特產 : 陽光柑味檸檬茶

by ○。o傻〃仔〃仔o。


http://lh3.ggpht.com/_Uu0QcEZqr3U/SZjOvXu5RxI/AAAAAAAAE-w/DbVmtPMY1H0/s512/%E7%9B%B8%E7%89%870104.rotated.jpg
只有澳門先有得賣既柑香茶..

如果想買可以去以下網站有介紹:
http://mo.c9web.com/product/product_s_priceweb.php?rid=7aQLj8MjMtAHzemvDj0VynDAADzH6Bz9MaQW9u1LzV5ZXnhjBu

Link from

銀紙摺衫(t-shirt)

2009年2月13日 星期五 by ○。o傻〃仔〃仔o。


Link from

香港電腦節四月又來過?

by ○。o傻〃仔〃仔o。


一年�次的香港���,今年可能�成一年三次!早前有消息指主�的香港��商�有意在今年年初再度��,昨晚梁主席也��了有�消息。

事�石先生昨晚出席由香港��商�主�的�媒晚宴,席�梁主席透露正��一��深水�����模相若的���,日期��定於四月,但��情�未定,仍需�有�方面商�,但地��意荃�或�塘。

�然一切尚未�定,但石先生相信成事��不低,等得的朋友*,都�睇定�好*。不�荃�及�塘以往�未�行�似活�,到底可以��度搞呢?唔同好似年宵�?

相���:�科林 -��商��媒宵夜聚�

* 等得的 - �意等的
* 睇定�好 - 看清形�,再作�定

Link from

富士通将推“Kindle 2杀手”

2009年2月12日 星期四 by ○。o傻〃仔〃仔o。


富士通即将推出一款新的电子阅读器.这款阅读器的屏幕比Kindle 2更大,并且是彩屏的.这款产品基于富士通的FLEPia技术,厚度为12毫米.该阅读器同时拥有WiFi、USB2.0、SD卡插槽和扬声器等功能,并 采用Windows CE5操作系统,电池可续航50小时.最重要的是,该阅读器采用触摸屏,而不是类似Kindle的键盘.尽管该阅读器各方面性能均好于Kindle 2,但价格也更高,达900美元.

http://img.cnbeta.com/newsimg/090211/0839420363791501.jpg

Source : http://www.cnbeta.com/articles/76741.htm

Link from

SAMSUNG F488 指令 CODE

by ○。o傻〃仔〃仔o。


拋磚引玉:*#0002*28346#
*#06# IMEI
*#1234#軟件
*#1111#軟件
*#2222#硬件
*#0206*8376263#顯示所有版本

*#0*#界面測試模式
*#0228#電池
*2767*3855#總復位
*#4777*8665# GPRS設置
*#232337#藍牙ID

進入後按#號按3下退到最上層菜單!

別瞎設置瞎點啊不認識的就忍忍!

出事別怪我呵呵!

關機鍵退出!

轉自 : http://www.52gc.cn/thread29392.html

Link from

SAMSUNG F488 調整鈴聲大小

by ○。o傻〃仔〃仔o。


[修改鈴聲大小]
按*#0002*28346#進入工程代碼模式裡
連按3次#返回主菜單
選8 Audio
再選7 SAPA2 Config
再選3 SAPA2 SPK
再選3 SAPA2 SPK Ring
再選1 SAPA2 SPK Ring Volume
會出現從0到6級共七級音量 (SAPA2 Volume.READ)
再按下面空白行就出現 keyboard
打 160 按2下確定就會回到 0-6, 如此類推

0.[2]rx:-10.0db (按0打-100 變-10)
1.[2]rx:-3.0db (按0打-30 變-3)
2.[2]rx:2.0db (按0打20 變+2)
3.[2]rx:5.0db (按0打50 變+5)
4.[2]rx:8.0db (按0打80 變+8)
5.[2]rx:12.0db (按0打120 變+12)
6.[2]rx:18.0db (按0打180 變+18)

依照你自己想要的大小輸入,先規劃好鈴聲的7級間距
(最高不得大於240,否則無效。)
接著需要儲存參數檔,否則重新開機會回復原參數。
按#返回主菜單,
選8 Audio
再選7 SAPA2 Config
再選6 SAPA2 Dump Params即自動儲存。
再按 [斷話鍵] 退出

轉自 :http://www.mobile01.com/topicdetail.php?f=217&t=761608

Link from

SAMSUNG F488 調整聽筒音量

by ○。o傻〃仔〃仔o。



調整聽筒音量工程模式 (調整音量 db值 )
*#0002*28346# 進入「工程模式」
#3 次返回到 mani menu 之後 #8(即audio)
then 1 then 3 then 1 就會進入你聽電話的聲音分貝
分別由0-6共七級,就是你 +- 時,每一格的聲音大小
以下方法照做之後,聽筒的聲音大到你受不了
出現 0-6 之後, 想改 0 就按一下 0
畫面閃一下看似沒反應
再按下面空白行就出現 keyboard
打 160 按下 [確定] ,就會回到 0-6畫面, 如此類推
改完 0-6 之後退出就可以了

0= -16 (按0打-160 變-16)
1= -12 (按1打-120 變-12)
2= -8 (按2打-080 變-8)
3= -4 (按3打-040 變-4)
4= -2 (按4打-020 變 -2)
5= 0 (按5打 0 變 0)
6= 2 (按6打 020 變 20)

Audio 工程模式可以改很多的音量
其中包括音樂、分成MP3....,但改音樂聲音還必須做「存檔」的動作

轉自 :http://www.mobile01.com/topicdetail.php?f=217&t=761608

Link from

免費 Acronis True Image 10 序號

2009年2月11日 星期三 by ○。o傻〃仔〃仔o。


Acronis True Image是一個跟Norton Ghost功能類似的軟體,主要就是用來備份、還原電腦系統,或執行整個硬碟對拷、資料備份...等工作,主要是他的執行效率還不錯,軟體本身也相當穩定,所以一直是我很愛用的備份軟體。

 

一、免費取得軟體序號

第1步  開啟「這個網頁」,然後在有標示紅色「*」的欄位中填入你的資料,看不懂的話可以亂填沒關係,「E-mail」這個欄位一定要填寫正確,不然序號沒法順利寄達。全部有標示「*」的欄位都填寫好之後,請按下頁面下方的〔Register me!〕按鈕,送出申請表。

01

 

第2步  過給分鐘後他會寄一封Email給你,上面會有個啟動連結,請按一下上面的網址即可取得序號。如果按進去之後出現錯誤訊息,可能是他們的伺服器太壅塞、出問題了,請再等晚一點按一次就可以收到新序號囉。

02  

 

第3步  按下前一個步驟的啟動連結後,會開啟一個網頁上面會跟你說已經把序號寄給你了,並且會標示「Your password is .…」,請記住這個密碼,晚點登入網站下載軟體時會用到。

03

 

第4步  過幾分鐘之後,我們會收到一封郵件裡面有個serial number,這就是Acronis True Image 10的軟體序號囉。

04

 

 

二、下載Acronis True Image 10軟體

第1步  順利取得序號後,我們可以到「這個網頁」下載Acronis True Image 10 Personal Edition軟體。開啟網頁後,請用你的Email當作帳號,用剛剛收到的密碼來登入網頁、下載檔案。如果忘記密碼多少,可以按一下右邊的「Forgot your password?」查詢你的密碼。

05

 

第2步  登入網站後我們就可以看到之前購買的序號跟軟體下載連結囉。如果按進去都一直沒東西,或者你按了啟動連結卻都一直沒收到序號,請晚一點再試試看就會有囉。

06

 

有了序號、有了軟體之後,就可以把他安裝到你的電腦來用囉。下面是安裝好Acronis True Image 10 Personal Edition軟體之後的畫面。

07

轉自 : http://briian.com/?p=6095

Link from

ESXi Copy/Clone VM (For Esxi To Esxi)

by ○。o傻〃仔〃仔o。


1. In VI create a new directory in the datastore for your new server.
2. Copy the vmdk file from the Windows Server you created 1st into this new directory. Only copy the vmdk file - nothing else.
3. SSH to ESXi server.
4. Navigate to the new directory created above. (cd \vmfs\volumes\datastore1\xxx).
5. Rename the Server to the new name (mv 'Windows1.vmdk' 'Windows2.vmdk').
Need to do this for both files - the vmdk and the *-flat.vmdk
6. Use vi to edit Windows2.vmdk.
7. Find the line near the top that has the old filename listed.
8. Change this filename to the new one and save/exit vi.

Back to VMWare VI client.

1. Make a new VM on this server.
2. Choose 'Custom' and when you get to the 'Select a Disk' portion of creation you will browse the datastore and select this newly renamed vmdk file.

Now just start the new VM and go!


From : http://www.itoverlord.com/esxi-copyclone-vm/

Link from

淘宝网购规则被山东等地立法采纳

by ○。o傻〃仔〃仔o。


近期在山东等地区,淘宝提倡的"7天无理由退换货"等网购规则已被立法时采纳,成为这些地区法定的网购保护措施。
昨日晚间,淘宝公关负责人在接受新浪科技连线时,未明示是否曾主动向山东有关部门自荐过这些网购规则,但他默认淘宝对这些地区的立法工作提供了借鉴作用。
据悉,"7天无理由退换货"不属于我国消费者保护法中的法律条文,多由商家自行承诺而来。此前在一些品牌诚信度高的商场较为多见,淘宝则把它引入 了网购中,作为该公司"消费者保障服务"计划中的一条。 淘 宝"7天无理由退换货"条款具体指,当淘宝买家使用支付宝服务购买支持"7天无理由退换货"的商品,在签收货物(以物流签收单时间为准)后7天内,若因买 家主观原因不愿完成本次交易,卖家有义务向买家提供退换货服务;若卖家未履行其义务,则买家有权按照"7天无理由退换货"服务规则向淘宝发起对该卖家的投 诉,并申请"7天无理由退换货"赔付。

而"消费者保障服务"则是淘宝推出的旨在保障网络交易中消费者合法权益的服务体系,其中"先行赔付"是加入消费者保障服务的必选项,"7天无理由退换货 "、"假一赔三"、"虚拟物品闪电发货"等都是其中的服务之一。加入"消费者保障服务"能给卖家带来可信度高、买家更容易接受等优势。卖家可自行选择加 入,但淘宝将对这些卖家进行申请资料审核,并收取相应的保证金。

据了解,山东于2008年8月1日第十一届人民代表大会常务委员会第五次会议通过的《山东省消费者权益保护条例》规定,对网络、电视等购物商品,如与事前 说明、承诺不一致或有质量问题,消费者7日内可要求退货。新华网的报道则指出,《山东省消费者权益保护条例》于去年10月1日起正式施行。

在一些欧美国家,网络、电视等远程购物在7天或3天之内可无障碍退货。相信这些网购规范在山东等地区的立法采纳,将对整体网购市场有示范作用。

from : http://www.cnbeta.com/articles/76720.htm

Link from

亚马逊kindle 2读书器高级功能全解密

2009年2月10日 星期二 by ○。o傻〃仔〃仔o。


据国外媒体报道,美国网络零售服务商亚马逊周一正式对外发布了其第二代Kindle电子书阅读器。该公司称,与第一代Kindle相比,Kindle 2在产品外观设计、电池续航时间、存储容量及翻页速度等方面都有了不同程度的改进和提高。
以下为Kindle 2电子书阅读器的各项高级功能一览:

Kindle_2_001

外观更灵巧轻薄

Kindle 2重量还不及普通纸质书籍,厚度同普通杂志相差无几,用户可轻松将其放置在手掌中进行各项操作。Kindle 2更加注重人体工程学,并考虑到了用户长时间使用Kindle进行阅读的因素。在长时间阅读情况下,用户往往倾向于单手拿着Kindle。为了方便用户单 独使用左、右手翻页,Kindle在两侧都安排了翻页键。

易用性更高

Kindle 2对内容导航系统进行了改进,以方便用户更能快速、精确查找到自己想要阅读的内容。Kindle 2本身内置了无线互联网连接功能,用户无需通过机顶盒、有线宽带或计算机,就可完成相关阅读材料的下载活动。

电池续航时间延长

与第一代Kindle相比,Kindle 2电池续航时间增加了25%。换句话说,在多数情况下,用户数天内无需对Kindle 2充电。如果用户启用了无线连接功能,则Kindle 2的单次电池续航时间一般为4天左右;如果关闭了无线连接功能,则相应续航时间最长可达2周。也就是说,Kindle 2电池续航时间的长短,将主要取决于用户使用无线连接次数的多少。如果网络连接状态本身不佳,则耗电量也将有所增加。

Kindle 2既可使用普通电源适配器进行充电,也可通过计算机USB 2.0等接口进行充电。通常情况下,Kindle 2单次充电的时间为4小时左右。

支持高速3G网络

Kindle 2可在美国移动运营商Sprint的3G网络中运行,同时采用了亚马逊专门研发的Whispernet内容下载技术,以方便用户在亚马逊Kindle在线 商店中快速查找和下载自己希望阅读的电子书内容。利用Whispernet技术,用户下载一本电子书内容的时间不会超过1分钟。与Wi-Fi无线接入技术 所不同的是,Whispernet无需用户寻找接入"热点"。

亚马逊Kindle 2发布后,还扩大了Kindle无线下载的覆盖范围,目前该下载服务已覆盖美国所有50个州的各大主要城市,这些城市的用户可无线下载书籍、报纸、杂志和 博客等内容。用户仅需交纳内容下载费用,而无线连接费用将由亚马逊来承担。Kindle 2容量为2GB,最多可存储1500本书籍,足以满足长时间外出旅游人士的阅读需要。

屏幕显示增强技术

Kindle 2采用了6英寸显示屏,并引入了新型电子墨水显示技术,目的是使显示屏字迹更接近纸张印刷文字的效果。在Kindle 2上阅读电子书,其阅读体验同台式机、笔记本电脑屏幕上阅读文字截然不同。如果用户对字体大小不满意,可随意对此进行调整。此外,Kindle 2的图片显示效果也更为锐利和清晰。

"听书"功能

如果用户不愿意自己阅读,还可启用Kindle 2的文本朗读功能,Kindle 2将自动识别用户所打开文本内容,然后将其转化为语音,并为用户朗诵这些文字。语音可选择男声和女声,并可调整朗诵速度。

翻页速度提高和添加注释

与第一代Kindle相比,Kindle 2的翻页速度提高了20%左右。利用Kindle 2提供的QWERTY全尺寸键盘,用户可为自己所阅读内容添加注释。此种体验同用户阅读纸质书时在页面空白处添加注释颇为相似。唯一的不同就是,用户可随 时对自己已撰写的注释进行修改和编辑。

个人文档管理

Kindle 2专门为用户提供了个人文档存储空间,用户可借此来管理私人邮件、Word文档和PDF文件等等。此外,该文档管理还支持JPEG、GIF、PNG和BMP等格式的图片。

内置辞典查询功能

Kindle 2内置了《新牛津美国辞典》,该辞典收词量达25万条。如果用户在阅读过程中遇到难词,只需把鼠标移动到该单词上面,Kindle 2就可显示该单词的解释。如果用户对内置辞典的解释还不满意,则可通过无线连接访问维基百科(Wikipedia)网站,以找到更为具体的解释。

搜索功能

Kindle 2用户可在亚马逊Kindle在线服务商店查找相关内容,甚至也可进行其他互联网搜索,如访问维基百科网站等等。

海量下载内容

目前Kindle在线服务商店已能提供23万本电子书籍下载,其他下载内容还包括报纸、杂志和博客等等。美国恐怖小说大王斯蒂芬・金(Stephen King)周一宣布,将向Kindle在线商店独家提供其新作《Ur》。

Source : http://www.cnbeta.com/articles/76662.htm

Link from

新应用使iPhone变身网络服务器

by ○。o傻〃仔〃仔o。


当你看到Apple的广告宣传"there's an app for just about anything" 时,他们并不是在欺骗你,最新的例子?一款出现在日本App Store的iPhone应用:"ServersMan@iPhone"能将该手机变成一个成熟的网络服务器。该应用由日本一个名叫FreeBit的公司开发的,该东京的创投公司因为VNO/ISP提供网络平台而出名。

此应用一旦被安装,因特网上的PC将可以访问iPhone,并可以通过浏览器或者webDAV协议上传或者下载文件。如果PC和iPhone处于同一网络,他们将可以直接进行连接;如果是分开的网络,可以使用FreeBit的VPN软件实现连接。

"ServersMan"的名称据称也是在Sony的"Walkman"上得出的灵感,这也不奇怪,FreeBit聘请了sony前CEO Nobuyuki Idei 担任自己的商业顾问。该应用目前只在日本发布,英文版将在3月份面世,Windows Mobile版本也正在开发中。
serversman.pngcnBeta编译自readwriteweb

�自 : http://www.cnbeta.com/articles/76642.htm

Link from

获得微软授权 Google发布Google Sync

by ○。o傻〃仔〃仔o。


如果您在使用Google Contacts或Calendars又有一台智能手机的话,Google今天推出的产Sync品就非常好用,它可以让你的iPhone,Symbian,BlackBerry和WM系统进行信息同步,该系统采用了Microsoft ActiveSync协议,以推送的模式同步信息,您不需要按下同步按钮就可以完成,例如当您在Google Calendar上做完改动时,信息就将被推送到您的手机.

访问:Google SyncBeta for your mobile phone

�自:http://www.cnbeta.com/articles/76623.htm

Link from

亚马逊新Kindle电子阅读器考虑海外发售

by ○。o傻〃仔〃仔o。


亚马逊周一正式发布了新一代电子阅读器Kindle 2,售价仍为359美元,本月24日起正式发售.
虽然没有降价,但亚马逊对Kindle 2进行了多处升级,并将独家发行史蒂芬・金(Stephen King)的新书.亚马逊CEO杰夫・贝佐斯(Jeff Bezos)称:"与一代产品相比,Kindle 2有明显提升."贝佐斯称,由于对零部件进行了升级,Kindle 2已没有降价空间.Kindle 2采用6英寸显示屏,厚度仅为一代Kindle的1/2.

Kindle 2可存储1500部图书,而Kindle只能存储200部.目前,亚马逊已为Kindle提供了23万部图书,用户下载一部畅销书需要9.99美元.

当前,Kindle仅在美国市场发售.但贝佐斯表示:"正在考虑海外发售事宜."贝佐斯称,Kindle去年第四季度销量十分可观,尽管当前经济低迷,但相信Kindle 2将继续火爆.

2008年,电子阅读器是增长速度最快的产品之一.据美国消费电子协会(CEA)数据显示,电子书阅读器去年营收增长265%.今年,销量预计将增长110%

Kindle_2_001

Amazon's 'Kindle 2': rounder and sexier
 

Kindle_2_002

An official announcement could come later today


�自 : http://www.cnbeta.com/articles/76650.htm

Link from

掌上设备御用 Vmedia超迷你光盘揭秘

by ○。o傻〃仔〃仔o。


新闻来源:小熊在线
尽管很多电脑制造厂商都推出了Netbook上网本,但是由于受限于它的体积,很难将DVD光驱集成到仅有10英寸的上网本中。但是很多消费者又认为,没 有光驱的电脑,似乎不能称之为一台完整而强大的电脑。虽然上网本能下载网络歌曲和观看网络视频,但 是毕竟网络速度也是有限的,WiFi热点也不是随处都有免费的午餐。不过现在像是Netbook这类超便携的移动设备,即将装配上一种新型的光存储媒体 ――Vmedia



这篇文章并不是吹捧昨天的光学存储,更不是谈论今天的蓝光光盘。今天我们谈论的小型光盘,是一种36×36毫米的小型光盘。这个东西其实曾经在上 世纪90年代曾经冒出来过一阵子。不过后来随着技术规格没有最终落定,就未曾大规模上市。它看起来要比普通光盘小很多,下面我们会使用现今一些主流的移动 存储媒体与之作比较。

psp上所使用的UMD光盘,体积为65毫米×64毫米×4.2毫米。Type A:只读单层光碟,最大容量0.9GB。Type B:只读双层光碟最大容量1.8GB。

作为超小型的光盘,该公司宣布,Vmedia可以用来存储电影。它具备1GB的数据存储容量,可以存下整个576P(720X576像素)分辨率的电影。 大约1年后,Vmedia的容量会增加到2GB,而光盘的层数也会增加到2层。同时支持写入操作。Vmedia光盘是基于目前最新的蓝光存储格式,不过要 想正确使用Vmedia光盘,你还需要有一台Vmedia光驱。

Vmedia不仅仅在容量上要胜出PSP的UMD,在体积上更比UMD小了一半之多。


Vmedia迷你光盘

Vmedia迷你光盘与标准的SD卡对比

Vmedia迷你光盘尽在掌中

普通U盘、Vmedia迷你光盘、SD卡、microSD(TransFlash)卡

任何移动设备中都将有一个Vmedia光驱。这就是该公司一直努力的大目标。Netbook现在是一个很好的平台,它的屏幕尺寸类似于常见的 DVD便携播放器。而消费者同时也希望能用上网本随时随地的欣赏影片。Vmedia作为一种非常安全的存储介质会随着Netbook的普及迅速流行起来。

除了上网本领域之外,Vmedia还计划在手机和移动互联网设备(MID)中普及。同时还有USB界面的Vmedia光驱,适用于台式机。在过几个月,Vmedia的光驱即将和我们见面。

传统光盘和Vmedia迷你光盘

Vmedia迷你光盘电影

手机也可以支持Vmedia迷你光盘

Vmedia光盘外部,有一个塑料保护壳。结构类似PSP上使用的UMD光盘。但是体积要比UMD小很多。而Vmedia光驱会采用吸入式光盘。 目前Vmedia公司并没有透露它们有多少内容合作伙伴,不过它们正在努力扩大自己在业内的影响力。现在已经有40家电影制造商宣布支持Vmedia技 术。

预计Vmedia的成本会非常合理,甚至会融合到电影光盘的包装费用中。但是光盘最终的定价,还要取决于内容提供商。

用手机看盘

Vmedia光驱的机械结构

Vmedia光盘插入到手机中的样子

自从网络宽带的普及,很多消费者的光驱就已经隐退山林了。不过笔者认为,网络并不是光盘的杀手。而SD卡这类移动存储媒体,才是光盘的杀手。传统 光盘体积过于庞大,不便于携带。而SD卡这类极端小巧的存储媒体,在如今得到了大规模的普及。但是谁买电影的时候,会用SD卡存储一部影片呢?说到底,还 是移动存储的成本问题。而相对芯片级别的SD卡来说,像是这类Vmedia超迷你光盘的成本更有吸引力。毕竟很多用户的网络带宽并不充裕。下载一部电影需 要等上很长时间。而Vmedia只需插入专用的光驱,即可播放。

Vmedia迷你光盘,在作演示

Vmedia迷你光盘

Vmedia电影碟片

Vmedia的呐喊:光盘没有死
手机上的光驱:Vmedia光盘架构
掌上可舞动 Vmedia设备
非常小巧:什么是Vmedia迷你光盘

Link from