Hiroshi Y.

    • About
    • Privacy Policy
  • [Daily Digest] 2013-07-05

    2013-07-05

    Online resources:

    • 瀚海星空 | 使用nutch和solr建立搜索引擎
    • 釐清文林苑都更案協商破局真相 | 苦勞網
    • 網路中立性需不需要立法?

    Murmurs:

    • 在浴室滑倒,額頭撞破,但是由於身體狀況使然,竟不覺得有多疼痛,反倒慶幸手好腳好、頭沒腦震盪,週末可以正常出席 DrupalCamp Taipei。啊,我也要學習小海夶的正面思考!
    • 耐得住煩,方才開始覺得 Solr 與 Nutch 不那麼阿雜。
  • [Daily Digest] 2013-07-04

    2013-07-04

    Online resources:

    • 沒緩拆! 農陣:大埔4農戶仍告急 – 新頭殼 newtalk
    • 新台灣新聞週刊 – 郭益全為一粒米鞠躬盡瘁
    • TASVideos / Emulator Resources / NES Accuracy Tests 寫紅白機模擬器也要 TDD
    • 用jQuery的都是傻子? | island205
    • 滑鼠之父Douglas Engelbart逝世 享年88歲 | 即時新聞 | iThome online
    • 無料3D格闘ゲームエンジン「EF-12」の野望 | スラッシュドット・ジャパン
    • 「父のパソコンを超えろ」シャープX68000のカタログが時空を超えて無料配布 – ITmedia eBook USER
    • 如何恢复丢失的两个月数据——“下厨房”技术团队分析总结6.26数据库事故
    • 安全問題 | Jedi’s BLOG
    • 保護你的隱私,從 PGP 開始!
    • 民主国家,民众为什么走上街头? – 纽约时报中文网 国际纵览 好像有台灣的影子

    Murmurs:

    • 昨晚重現了《深夜食堂》的奶油拌飯,真的好吃!用益全香米原本就很香了,加上奶油更是相得益彰。
    • 埃及再度變天。

     

  • Solr 4.3.1, Tomcat 7.0.26, Ubuntu 12.04

    2013-07-04

    我嘗試用一種比較不那麼髒的方法來配置,過程中有需要 chown 的地方就自己留意。

    1. 先從套件庫裝 Tomcat 7.0.26
    2. 再到 Solr 網站下載 Solr 4.3.1.tgz,在 $HOME 底下解開 (~/solr-4.3.1/*)
    3. sudo mkdir -p /opt/solr/home/solr && cd /opt/solr/home/solr
    4. sudo cp -R ~/solr-4.3.1/example/solr/* .
    5. cd /opt/solr
    6. sudo cp -R ~/solr-4.3.1/contrib .
    7. sudo cp -R ~/solr-4.3.1/dist .
    8. sudo mkdir /opt/solr/home/solr/lib
    9. sudo cp ~/solr-4.3.1/example/lib/ext/* /opt/solr/home/solr/lib
    10. sudo cp ~/solr-4.3.1/example/resources/log4j.properties /opt/solr/home/solr/lib
    11. cd /usr/share/tomcat7/lib && sudo ln -s /opt/solr/home/solr/lib/* .
    12. sudo cp ~/solr-4.3.1/dist/solr-4.3.1.war /var/lib/tomcat7/webapps

    基本安全防護(參考 [How to disable solr admin page – Stack Overflow], [SolrSecurity – Solr Wiki]):

    1. /var/lib/tomcat7/conf/tomcat-users.xml 加入一個 Solr 管理用角色 solr-admin <role rolename="solr-admin"/>
    2. 分配一個使用者 solr-manager,指定他的角色是 solr-admin <user username="solr-manager" password="youdonno" roles="solr-admin"/>
    3. /var/lib/tomcat7/webapps/solr/WEB-INF/web.xml 內設定要保護的資料異動 URI
  • [Daily Digest] 2013-07-03

    2013-07-03

    Online resources:

    • 怀念_why先生——whytheluckystiff
    • 改善 Programmer 生活的 SQL 技巧 // Speaker Deck
    • LinuxKD: Using LLVM based Go compiler – llgo
    • Beware Of HTML5 Development Risks — Dark Reading
    • Keeping our Focus on What’s Next | Yahoo! AltaVista 終於被正式宣告賜死…
    • 鱼翅与中国新娘 – 纽约时报中文网 国际纵览

    Murmurs:

    • 不清醒的時候不要多說話,此時「言多必失」的機率急遽升高。
  • EPGrab,把 DVB 數位電視的 EPG 電子節目表輸出成 XMLTV 格式

    2013-07-03

    EPGrab,是我拿 tv_grab_dvb 來改的一個小程式,算是對自己想過的〈不曉得有沒有辦法推 XMLTV 讓電視台廣為採用〉的一個起步。我修正了幾個地方,讓多位元組字元可以正常顯示。

    根據 DVB 標準規範 EN 300 468,以及《台灣數位電視相關影音技術規範》,台灣(代碼 0x14)的 DVB 資訊文字編碼,很可能一開始就被誤讀,之後便一路錯下去,很多自由軟體、開放源碼軟體的實作都用 Big5,實則應該是「採用 Unicode/UTF16-BE 編碼 (encoding),ISO10646 字集 (character set),但是至少應該能夠顯示 Big5 有收錄的字」。包括 LinuxTV dvb-apps, Me-TV, Kaffeine 等,都弄錯了,或曾經弄錯。

    tv_grab_dvb 的情況則更微妙,作者除了同樣弄錯台灣的編碼,亦沒有考慮到多位元組字元的情況,而使用 strlen() 函式去偵測節目資訊的字串長度,遇到 0x00 開頭的字元編碼,就直接掛了。我只好把這個問題修掉,否則此程式幾乎在台灣無用武之地。

    基礎設施有了,接下來是拿輸出的 XMLTV 檔案來玩…。

  • [Daily Digest] 2013-07-02

    2013-07-02

    Online resources:

    • JavaScript is Untyped : O3noBLOG(注意留言回應)
    • awsong/MMSEGO: Chinese word splitting algorithm MMSEG in GO (MMSEG)
    • Statically Recompiling NES Games into Native Executables with LLVM and Go – Andrew Kelley
    • How FPGAs work, and why you’ll buy one

    Murmurs:

    • 為什麼重新做起老掉牙的「網摘」?因為警覺到「靠山山倒,靠自己最好」(Thanks Google Reader)。
    • 跟同事聊起去打擊場練球的事,首先要找一隻合手的球棒。
←上一頁 下一頁→
「Hui-Hong YOU」的個人頭像

「喵喔,我是貓。」

  • GitHub
  • Mail

Hiroshi Y.

個人雜記

使用 WordPress 設計

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT