Tuesday, October 18, 2011

Daily Bookmarks 20111018

python
python at sa note – such another note site
http://www.sanote.org/?cat=13
How to change urllib User-Agent - Articles
http://wolfprojects.altervista.org/changeua.php
Consistent hashing implemented simply in Python - amix.dk
http://amix.dk/blog/post/19367
webresize.py
http://www.mm-log.com/system/files/mm%20extern%20webresize.py_.txt
朱隸安貓囈語錄: Flickr to Picasa 搬家script~~
http://julianshen.blogspot.com/2011/07/flickr-to-picasa-script.html
Python Course: Text Classification in Python
http://www.python-course.eu/text_classification_python.php


Hadoop初体验——搭建hadoop简单实现文本数据全局排序 - Leo Zhang - 博客园
http://www.cnblogs.com/vivounicorn/archive/2011/09/20/2182433.html
代码托管 bitbucket.org | {:web=>:wxianfeng}
http://wxianfeng.com/2011/03/04/hg
UserAgentString.com - Chrome version 14.0.835.94
http://www.useragentstring.com/
wikipediadownloader.py - wikiteam - tools for archiving wikis - Google Project Hosting
http://code.google.com/p/wikiteam/source/browse/trunk/wikipediadownloader.py
Python筆記:產生N-gram以及簡單頻率統計 @ Freedom is not free :: 痞客邦 PIXNET ::
http://hambao.pixnet.net/blog/post/18823664-python%E7%AD%86%E8%A8%98%EF%BC%9A%E7%94%A2%E7%94%9Fn-gram%E4%BB%A5%E5%8F%8A%E7%B0%A1%E5%96%AE%E9%A0%BB%E7%8E%87%E7%B5%B1%E8%A8%88

Gentoo
制作一张最小系统的gentoo安装光盘 - Steven的日志 - 网易博客
http://colder.blog.163.com/blog/static/17394661820114308749227/

Sunday, October 16, 2011

Daily Bookmarks 20111015

Case
PHP教學-CKeditor網頁編輯器與CKfinder上傳整合應用 | ♣梅問題‧教學網【Minwt】♣
http://www.minwt.com/?p=2848
How To: Creating a Simple Plugin for TinyMCE | alligatorsneeze.com
http://www.alligatorsneeze.com/how-creating-simple-plugin-tinymce
10 best WYSIWYG Text and HTML Editors for Your Next Project
http://www.1stwebdesigner.com/design/10-best-wysiwyg-text-and-html-editors-for-your-next-project/
WYSIWYG-HTML Edit
http://www.webresourcesdepot.com/category/goodies/wysiwyg-html-edit/
NicEdit - WYSIWYG Content Editor, Inline Rich Text Application
http://nicedit.com/index.php

python
Getting Started with virtualenv (Isolated Python Environments) | Mitch Fournier
http://mitchfournier.com/2010/06/25/getting-started-with-virtualenv-isolated-python-environments/
virtualenv — virtualenv v1.6.4 documentation
http://www.virtualenv.org/en/latest/
Installation instructions — pip 1.0.2 documentation install virtualenv not root user
http://www.pip-installer.org/en/latest/installing.html
Python于Web 2.0网站的应用 - QCon Beijing 2010
http://www.slideshare.net/hongqn/qcon2010-3881323

Thursday, October 13, 2011

Daily Bookmarks 20111013

【转】关键字提取算法之TF-IDF扫盲 - 码农.KEN - 博客园
http://www.cnblogs.com/ken-zhang/archive/2010/06/20/1761108.html
machine learning in biomedicine: pubmedpy: a simple module for fetching and tf-idf encoding biomedical texts
http://mlbiomedicine.blogspot.com/2009/07/pubmedpy-simple-module-for-fetching-and.html
Dennis Ritchie: 1941-2011
http://www.muppetlabs.com/~breadbox/rip-dmr.html
协同过滤 « 等待另一个人的奥林匹斯
http://blog.odichy.org/tag/%E5%8D%8F%E5%90%8C%E8%BF%87%E6%BB%A4
《挖掘社交网络(影印版)》——O'Reilly 北京
http://oreilly.com.cn/index.php?func=book&isbn=978-7-5641-2686-5
TFIDF与文章分类 - leen2010 - 博客大巴
http://leen2010.blogbus.com/logs/124793554.html
Myxberry's Blog: TF 和 IDF
http://myxberry.blogspot.com/2008/11/tf-idf.html
TF/IDF – eph's blog
http://blog.ieph.net/archives/tag/tfidf
TFIDF - Lighter - 賴特筆記
http://www.lighter.idv.tw/program/php/62-tfidf.html

A quick foray into linear algebra and Python: tf-idf
http://timtrueman.com/a-quick-foray-into-linear-algebra-and-python-tf-idf/

python
使用python提取英文文章中的单词及出现的次数(原创) - 冰山一角 - 51Testing软件测试网 51Testing软件测试网-中国软件测试人的精神家园 - Powered by X-Space
http://www.51testing.com/?uid-61753-action-viewspace-itemid-154953
用python提取百度贴吧的小说 - ToddNet2012 - 博客园
http://www.cnblogs.com/ToddNet2012/archive/2011/10/05/2199554.html
MyProject / ExtMainText —— 提取html文档正文 | Elias的个人主页
http://www.elias.cn/MyProject/ExtMainText

The Python textcluster Package | dave dash
http://davedash.com/2010/07/08/the-python-textcluster-package/



keyword extraction - Google 搜尋
http://www.google.com.tw/search?hl=zh-TW&q=keyword+extraction&oq=keyword+ex&aq=0&aqi=g7g-m3&aql=&gs_sm=e&gs_upl=8306l13403l0l15061l11l11l0l1l1l0l267l2265l0.3.7l10l0
Automatic Terminology Extraction - Homepage of Cheng-Zhi Zhang
https://sites.google.com/site/zhangczhomepage/terminology-extraction

Wednesday, October 12, 2011

Daily Bookmarks 20111012

How To Write A Simple Web Crawler In Ruby
http://www.skorks.com/2009/07/how-to-write-a-web-crawler-in-ruby/
Search Fundamentals – Basic Indexing
http://www.skorks.com/2010/01/search-fundamentals-basic-indexing/
CodeKata How to become a better devloper
http://codekata.pragprog.com/

http://blog.csdn.net/huanhuolang/article/details/6287224
Huge CSV and XML Files in Python - Irrational Exuberance
http://lethain.com/handling-very-large-csv-and-xml-files-in-python/
Lazy Method for Reading Big File in Python? - Stack Overflow
http://stackoverflow.com/questions/519633/lazy-method-for-reading-big-file-in-python
海量文档查同或聚类问题 -- Locality Sensitive Hash 算法 - fxjwind - 博客园
http://www.cnblogs.com/fxjwind/archive/2011/07/05/2098642.html


Data Structures and Algorithms with Object-Oriented Design Patterns in Python
http://www.brpreiss.com/books/opus7/Algorithm Education in Python
http://www.ece.uci.edu/~chou/py02/python.html
Desperado's World: Soring Algorithm - Python Implementation
http://minchuanwang.blogspot.com/2008/09/soring-algorithm-python-implementation.html
Dijkstra's algorithm for shortest paths « Python recipes « ActiveState Code
http://code.activestate.com/recipes/119466-dijkstras-algorithm-for-shortest-paths/
python - Finding k-nearest neighbors for a given vector? - Stack Overflow
http://stackoverflow.com/questions/5684370/finding-k-nearest-neighbors-for-a-given-vector



Monday, October 10, 2011

Daily Bookmarks 20111010

python
beautifulsoup解析中文网页乱码问题解决_初生牛犊要怕虎_百度空间
http://hi.baidu.com/luowenhan2008/blog/item/50ce6e0b1737aa0a94ca6bee.html
Weka使用笔记_初生牛犊要怕虎_百度空间
http://hi.baidu.com/luowenhan2008/blog/item/e9e37f19f20093a14bedbce8.html
初学python,感受和C的不同 | Windstorm
http://www.kunli.info/2008/06/22/c-python/
Neo4j Blog: Modeling categories in a graph database
http://blog.neo4j.org/2010/03/modeling-categories-in-graph-database.html
利用orange进行关联规则挖掘 » 超群.com的博客
http://www.fuchaoqun.com/2008/08/data-mining-with-python-orange-association_rule/



Neo4j 中文資源 Chinese Guide
http://neo4j.tw/
数据挖掘讲座9 Association Analysis:FP-growth and Others_百度文库
http://wenku.baidu.com/view/5bd123283169a4517723a394.html

other
聊聊这次找Google实习的过程 | Windstorm
http://www.kunli.info/2011/04/10/google-summer-intern-2011/
Reddit联合创始人Alexis Ohanian谈创业经验:Reddit之所以成为Reddit | 36氪
http://www.36kr.com/p/15746.html

开发技术 « 等待另一个人的奥林匹斯 分析各種類的推薦方式~~~~  推荐系统资料整理之二:常用相似度计算方法
http://blog.odichy.org/category/%E5%BC%80%E5%8F%91%E6%8A%80%E6%9C%AF
How Reddit ranking algorithms work - amix.dk
http://amix.dk/blog/post/19588

LaUDMS开发社区
http://166.111.131.53/trac/Test/wiki


Must be read
Programmer's Tracer » SinaMood基于新浪微博的信息挖掘2
http://blog.meecoder.com/archives/276

Sunday, October 09, 2011

Daily Bookmarks 20111009

How to change urllib User-Agent - Articles
http://wolfprojects.altervista.org/changeua.php

DNA soso search engine
dnasearchengine - a DNA search engine like google - Google Project Hosting
http://code.google.com/p/dnasearchengine/
joyfire 王乐珩 » 腾讯的DNA搜索引擎
http://wangleheng.net/2011/10/soso_dna_search_engine/

Saturday, October 08, 2011

Daily Bookmarks 20111008

Practical Data Analysis in Python
http://www.slideshare.net/hmason/practical-data-analysis-in-python
Building a very easy text classifier in python | Ulrich Scheller, Software Developer
http://www.ulrich-scheller.de/?p=52

Python Course: Introduction into Text Classification 理論
http://www.python-course.eu/text_classification_introduction.php
Building Decision Trees in Python - O'Reilly Media
http://onlamp.com/pub/a/python/2006/02/09/ai_decision_trees.html
Ian Bicking: a blog :: lxml: an underappreciated web scraping library
http://blog.ianbicking.org/2008/12/10/lxml-an-underappreciated-web-scraping-library/
Beautiful Soup documentation
http://www.crummy.com/software/BeautifulSoup/documentation.zh.html

Best way to sort 1M records in Python - Stack Overflow
http://stackoverflow.com/questions/1180240/best-way-to-sort-1m-records-in-python


Google Search
python classify - Google 搜尋
http://www.google.com.tw/search?q=python+classify&hl=zh-TW&prmd=imvnsb&ei=dz-PTpHgPKiUiQeZ-aCXDg&start=10&sa=N&biw=1235&bih=663

Tools
web-classify - 用于网页分类的python工具包 - Google Project Hosting
https://code.google.com/p/web-classify/
Python | 一步一步学python - Part 3
http://www.91python.com/archives/category/python/page/3



IR Class
Web Retrieval and Mining (Fall 2008)
http://irlab.csie.ntu.edu.tw/wm2008/index.html
Search Engines: Information Retrieval in Practice
http://www.search-engines-book.com/
CS 6913 Spring 2011 Home Page CS 6913: Web Search Engines (Spring 2011)
http://cis.poly.edu/cs912/

分類語料
搜狗实验室资料下载 - 文本分类语料库
http://www.sogou.com/labs/dl/c.html
Tutorial - python-data-mining-platform - PyMining - 基于Python的数据挖掘平台(Data-mining platform based on Python) - Google Project Hosting
http://code.google.com/p/python-data-mining-platform/wiki/Tutorial
为什么Hadoop将一定会是分布式计算的未来? - LeftNotEasy - 博客园
http://www.cnblogs.com/LeftNotEasy/archive/2011/08/27/why-map-reduce-must-be-future-of-distributed-computing.html

Solve
search substring in list of strings - Python
http://bytes.com/topic/python/answers/629979-search-substring-list-strings
Find Key by Value in Python Dictionary - drumcoder.co.uk
http://drumcoder.co.uk/blog/2010/sep/11/find-key-value-python-dictionary/
Extracting plain text from HTML
http://www.effbot.org/zone/textify.htm
Mappings and Dictionaries — Building Skills in Python
http://homepage.mac.com/s_lott/books/python/html/p02/p02c05_maps.html

Thursday, October 06, 2011

Daily Bookmarks 20111006

python读文件一定行数的读取 - 小白私生活
http://androidpython.appspot.com/2011/03/17/%E8%A1%8C%E8%AF%BB%E5%8F%96.html
Web数据抓取库:sitedigger_redice's Blog
http://www.redicecn.com/html/blog/webscraping/2010/1221/209.html
《Python自然语言处理》学习笔记索引 - 一块努力的牛皮糖 - 博客园
http://www.cnblogs.com/yuxc/archive/2011/08/29/2157415.html
python下读取邮件列表,并过滤邮件,然后调用网页发短信 - 肖小胖的博客 - ITeye技术网站
http://flowercat.iteye.com/blog/253289
如何用python过滤html标签和准确的提取内容_skeryl的空间--ubuntu & Java& python_百度空间
http://hi.baidu.com/skeryl/blog/item/c1807f7a4977bfe52f73b301.html


Must Be Read
Python实现协同过滤
http://www.slideshare.net/jingc/python-3394066
Python Web数据抓取(xpath版)_redice's Blog
http://www.redicecn.com/html/Python/20101112/190.html
过滤字符串,小试python速度 | Jean - 记录成长历程
http://www.zhangyiqun.net/919.html
列表过滤重复值怎么过滤 - Python - ChinaUnix.net
http://bbs.chinaunix.net/thread-1667989-1-1.html
Fastest way to uniqify a list in Python - Peterbe.com (Peter Bengtsson on Python, Django, Zope, Kung Fu, London and photos)
http://www.peterbe.com/plog/uniqifiers-benchmark
急求助:python中文兼容问题,striing/list/dict不同显示结果?_百度知道
http://zhidao.baidu.com/question/96083697.html
Python中如何将一个List按照中文排序? | 曲径通幽
http://wfxiang.info/?p=241
ping不見路: Python 3.0 的新玩意(第一部)
http://pingyeh.blogspot.com/2008/12/python-30.html
Dive Into Python 中文版 - 2.6. Filtering lists
http://www.kuqin.com/diveinto_python_document/apihelper_filter.html
[转]Python中文排序
http://abloz.com/2010/01/03/transfer-python-sort-chinese.html
将文本倒过来写防敏感词
http://abloz.com/2010/07/27/i-will-write-the-name-backwards.html
Python 中文排序 [Python俱乐部]
http://www.pythonclub.org/python-basic/chinese-sort
The Anatomy of a Search Engine
http://infolab.stanford.edu/~backrub/google.html
PYnotes good site post must be read
http://www.pynotes.info/post/10/




Book Site
How to Implement a Search Engine Part 1: Create Index | Arden Dertat
http://www.ardendertat.com/2011/05/30/how-to-implement-a-search-engine-part-1-create-index/
Introduction to Information Retrieval
http://nlp.stanford.edu/IR-book/information-retrieval-book.html

Tuesday, October 04, 2011

Daily Bookmarks 20111003

High-performance XML parsing in Python with lxml
http://www.ibm.com/developerworks/xml/library/x-hiperfparse/#listing4
使用由 Python 编写的 lxml 实现高性能 XML 解析
http://www.ibm.com/developerworks/cn/xml/x-hiperfparse/
XML组, 网络与移动数据管理实验室, OrientX, 中国人民大学数据库研究组
http://idke.ruc.edu.cn/projects/xml_cn.htm#dataman_nav
Home, WAMDM, Database Group at Renmin University of China
http://idke.ruc.edu.cn/wamdm/
Xiaofeng Meng's Homepage
http://idke.ruc.edu.cn/xfmeng/cindex%20new.htm
数据工程与知识工程教育部重点实验室
http://deke.ruc.edu.cn/home/show/42

ToRead

Build a Web spider on Linux
http://www.ibm.com/developerworks/library/l-spider/
Working with XML Documents and Python - Python
http://www.devshed.com/c/a/Python/Working-with-XML-Documents-and-Python/
XML DB python record - Google 搜尋
http://www.google.com.tw/search?aq=f&gcx=w&ix=c2&sourceid=chrome&ie=UTF-8&q=XML+DB+python+record
Sorting XML Records with ElementTree
http://effbot.org/zone/element-sort.htm
python - Searching a normal query in an inverted index - Stack Overflow

http://stackoverflow.com/questions/3944910/searching-a-normal-query-in-an-inverted-index

Data


CSE 124: Lab 3 - Distributed Search Engine
http://cseweb.ucsd.edu/classes/fa07/cse124/lab3/index.html








Saturday, March 05, 2011

A little bit of Python: copy files, parsing a tab-delimited file

Good example:

A little bit of Python: copy files, parsing a tab-delimited file
October 21, 2010
Ben Chapman

Here’s our little snippet of Python for the week. We need to rename some jpeg files from the cryptic emplid.jpg form supplied by the parking office to something a little easier for humans to parse, like Chapman_Ben.jpg. Here’s one way to do it, assuming that you’ve already managed to generate a list of emplid to name mappings by querying a database or Excel spreadsheet or what have you.

參考來源:

"A little bit of Python: copy files, parsing a tab-delimited file October 21, 2010 Ben Chapman Here’s our little snippet of Python for the week. We need to rename some jpeg files from the cryptic emplid.jpg form supplied by the parking office to something a little easier for humans to parse, like Chapman_Ben.jpg. Here’s one way to do it, assuming that you’ve already managed to generate a list of emplid to name mappings by querying a database or Excel spreadsheet or what have you."
- A little bit of Python: copy files, parsing a tab-delimited file | Ben Chapman (在「Google 網頁註解」中檢視)

Monday, January 03, 2011

Daily Bookmarks 20110103

[轉]#ifndef, #define, #endif的用法(整理) @ H's 手札 :: 痞客邦 PIXNET ::
http://huenlil.pixnet.net/blog/post/24339151

Saturday, January 01, 2011

Monday, December 20, 2010

Daily Bookmarks 20101220

a crawler using wget and xargs
http://www.xcombinator.com/2010/09/06/a-crawler-using-wget-and-xargs/
某分布式应用实践一致性哈希的一些问题 – Tim[后端技术]
http://timyang.net/architecture/consistent-hashing-practice/
kite1988的专栏 - CSDN博客 dblp
http://blog.csdn.net/kite1988/archive/2010/01.aspx

Text Processing in Python (a book)
http://gnosis.cx/TPiP/
命令行CURL教程 | Andy's Blog
http://www.21andy.com/blog/20080602/1154.html

Sunday, December 19, 2010

Daily Bookmarks 20101219

Artificial Intelligence - 人工智慧研究部落格
http://ai.mmdays.com/

中国人民大学数据库研究组面向领域的Deep Web数据集成项目
http://idke.ruc.edu.cn/domain_integration/help.htm
仲子说
http://www.wangzhongyuan.com/index.php
RUC DB-IIR 语义web与知识网格小组
http://iir.ruc.edu.cn/project/kg.jsp
林宣華的知識入口 - Knowledge Management
http://www.wke.csie.ncnu.edu.tw/scripts/shlin/index.asp?Sort=&View=&UID=&bClassIMG=&ViewName=&CID=56
piaip's Using (lib)SVM Tutorial
http://ntu.csie.org/~piaip/docs/svm/
The MetaQuerier Project at UIUC
http://metaquerier.cs.uiuc.edu/
QProber: Classifying and Searching "Hidden-Web" Text Databases
http://qprober.cs.columbia.edu/
Deep Web - Wikipedia, the free encyclopedia
http://en.wikipedia.org/wiki/Deep_Web
Regular Expressions in grep
http://www.robelle.com/smugbook/regexpr.html
Web数据抽取 - Google 搜尋
http://www.google.com.tw/search?q=Web%E6%95%B0%E6%8D%AE%E6%8A%BD%E5%8F%96&hl=zh-TW&prmd=ivns&ei=X9wMTbv_BMPIce6nhLsG&start=20&sa=N
乐思网络信息采集系统 -- 用于信息资源整合与网页数据抓取,网站抓取,信息采集技术
http://www.knowlesys.cn/cn/products/web_data_miner.htm

Wednesday, December 15, 2010

Monday, December 13, 2010

Daily Bookmarks 20101213

Benson's Personal Blog: 八月 2009
http://bensontw.blogspot.com/2009_08_01_archive.html
专题:Linux下的文件共享服务全攻略_51CTO.COM
http://os.51cto.com/art/201010/231947.htm
Linux下的NFS快速配置教程与安全策略(1) - 51CTO.COM
http://os.51cto.com/art/201010/231717.htm
CentOS 5.5上安装openvpn全过程 - 51CTO.COM
http://os.51cto.com/art/201011/234004.htm

kite1988的专栏 - CSDN博客 DBLP 中文

http://blog.csdn.net/kite1988/archive/2010/01.aspx

Zeal's Blog · 计算机工程专业,如何找paper?
http://zeal.haliluya.org/blog/2006/05/26/how-to-find-computer-engineering-papers/
Benchmarking D2RQ v0.1
http://www4.wiwiss.fu-berlin.de/bizer/d2rq/benchmarks/index01.html
a crawler using wget and xargs
http://www.xcombinator.com/2010/09/06/a-crawler-using-wget-and-xargs/

Thursday, December 09, 2010

Daily Bookmarks 20101209

Consistent hashing - Wikipedia, the free encyclopedia
http://en.wikipedia.org/wiki/Consistent_hashing
A Web Crawler in Perl | Linux Journal
http://www.linuxjournal.com/article/2200?page=0,0
Scraping Links With PHP
http://www.developertutorials.com/tutorials/php/scraping-links-with-php-8-01-05-958/
使用php simple html dom parser解析html标签 | Jphp-1号蟋蟀-关注PHP
http://www.init09.com/php/use-php-simple-html-dom-parser-html-tag.html
Parallel web scraping in PHP: cURL multi functions
http://www.developertutorials.com/tutorials/php/parallel-web-scraping-in-php-curl-multi-functions-375/
PHP Simple HTML DOM Parser
http://simplehtmldom.sourceforge.net/index.htm
[PHP] 使用 cURL + HTTP REFERER + Cookie + File:自製 my_wget 下載資料存到檔案 @ 第二十四個夏天後 :: 痞客邦 PIXNET ::
http://changyy.pixnet.net/blog/post/26475606
PHP 使用 CURL 同步抓取多個網頁 | Tsung's Blog
http://plog.longwin.com.tw/programming/2009/10/07/php-multi-thread-curl-2009
Key-Value 系統 分類整理 (NoSQL) | Fred Chu
http://fred.oracle1.com/weblog/2010/02/23/key-value-nosql-system-category-2009/
brad's life - Contributing to Open Source projects
http://brad.livejournal.com/2409049.html

檢索
我思故我在_博客_检索_百度空间 Good site
http://hi.baidu.com/rodimus/blog/category/%BC%EC%CB%F7

Tuesday, December 07, 2010

Daily Bookmarks 20101207

進階gdb
http://www.study-area.org/cyril/opentools/opentools/x1265.html
........: VIM
http://anrris-lab.blogspot.com/2009/08/vim.html

工程師的家 - 《五級》星星題--菱形
http://ehome.hifly.to/showthread.php?threadid=232
Virtual Memory
http://www.cs.duke.edu/~narten/110/nachos/main/node34.html#SECTION00074000000000000000
CSC546 - Operating Systems
http://condor.depaul.edu/~glancast/546class/docs/lec7.html

lighttpd 支援的項目 | Gea-Suan Lin's BLOG
http://blog.gslin.org/archives/2006/03/09/439/lighttpd-%E6%94%AF%E6%8F%B4%E7%9A%84%E9%A0%85%E7%9B%AE
flv streaming with lighttpd
http://blog.lighttpd.net/articles/2006/03/09/flv-streaming-with-lighttpd

High Scalability - High Scalability - YouTube Architecture
http://highscalability.com/youtube-architecture
YouTube: The Platform
http://techcrunch.com/2008/03/12/youtube-the-platform/
YouTube架构学习 - hideto - JavaEye技术网站
http://hideto.javaeye.com/blog/129726
Top 10 Largest Databases in the World -Good site
http://www.focus.com/fyi/operations/10-largest-databases-in-the-world/

Hash Maps with linear probing and separate chaining | Daniel Graziotin
http://task3.cc/308/hash-maps-with-linear-probing-and-separate-chaining/
SparkNotes: Hash Tables: Coding up a Hash Table
http://www.sparknotes.com/cs/searching/hashtables/section3.rhtml

ncache - Project Hosting on Google Code
http://code.google.com/p/ncache/
新浪使用的开源项目及开放平台 – 拾豆网
http://www.ctoof.com/archives/3002
Tags:memcacheq - 回忆未来[张宴] - 服务器系统架构与底层研发
http://blog.s135.com/tags/memcacheq/



强人推出恋爱约会指南!单身男女青年必备~ - 希奇古怪志 - 鲜为人志
http://www.i-oo.com/post/607.html
鲜为人摘_鲜为人摘 | 乐自有我
http://www.i-oo.net/a/xianzhai/

Chrome 的 WebSocket 測試 « Chui-Wen Chiu's Note
http://chuiwenchiu.wordpress.com/2009/12/14/chrome-%E7%9A%84-websocket-%E6%B8%AC%E8%A9%A6/

Monday, December 06, 2010

Daily Bookmarks 20101206

UCI Data Cleaning and Entity Resolution Project.
http://www.ics.uci.edu/~dvk/GDF/
WEST: Modern Technologies for Web People Search (IEEE ICDE 2009)
http://www.ics.uci.edu/~dvk/pub/ICDE09_dvk_WEST.html

Faceted Search
分面搜索(Faceted Search) – 腾讯CDC Good site
http://cdc.tencent.com/?p=1401
Search « Alibaba.com UED
http://www.aliued.com/tag/search/
LinkedIn Search: A Look Beneath the Hood
http://thenoisychannel.com/2010/01/31/linkedin-search-a-look-beneath-the-hood/
kafka0102的边城客栈 » 一周技术文档分享
http://www.kafka0102.com/2010/02/46.html
kafka0102的边城客栈 » 分享Poppen.de架构经验
http://www.kafka0102.com/2010/04/96.html
kafka0102的边城客栈 » 使用Zoie构建实时检索系统
http://www.kafka0102.com/2010/05/119.html
kafka0102的边城客栈 » twitter的新搜索架构
http://www.kafka0102.com/2010/10/347.html
People You May Know — Now With Faceted Search!
http://thenoisychannel.com/2010/05/15/people-you-may-know-now-with-faceted-search/

[Facebook] 計算粉絲團內特定文章的按"讚"數
http://patw.idv.tw/blog/archives/136
並行 HTTP請求在PHP中使用PECL的HTTP類 [答案:HttpRequestPool類]
http://zh-tw.w3support.net/index.php?db=so&id=168951
7-2 網頁抓取與分析:進階篇
http://mirlab.org/jang/books/perl/getWebPage02.asp?title=7-2%20%BA%F4%AD%B6%A7%EC%A8%FA%BBP%A4%C0%AAR%A1G%B6i%B6%A5%BDg
Roger Jang's Home Page 清華大學張智星
http://neural.cs.nthu.edu.tw/jang/

Wednesday, December 01, 2010

Daily Bookmarks 20101201

BBS to WordPress via XML-RPC 實作說明 | 野貓的零碎生活片段
http://blog.wildcat.tw/?p=206
Tweetrank
http://tweetrank.me/
HadoopDB Quick Start Guide
http://hadoopdb.sourceforge.net/guide/quick_start_guide.html#SECTION00030000000000000000
HadoopDB Join Testing on 3-Node Cluster @ 第二十四個夏天後 :: 痞客邦 PIXNET ::
http://changyy.pixnet.net/blog/post/25684989
HadoopDB
http://www.bullogger.com/blogs/dbanotes/archives/315847.aspx
[周报全文]HadoopDB混合数据库问世-周报全文-CNW.com.cn!
http://www.cnw.com.cn/weekly/htm2009/20090805_179407.shtml






boxing computer
框计算_互动百科
http://www.hudong.com/wiki/%E6%A1%86%E8%AE%A1%E7%AE%97
百度槓Google 強打框計算 - 線上國度 - 網路文化 - udn數位資訊
http://mag.udn.com/mag/digital/storypage.jsp?f_ART_ID=208892
百度“框計算”一周年 發布新標識_新華網
http://big5.xinhuanet.com/gate/big5/news.xinhuanet.com/eworld/2010-08/21/c_12469187.htm

框计算
框計算是什麼? What is box computing? « 搜尋引擎 « 台灣搜尋引擎優化與行銷研究院:SEO:SEM Good site


YTS
Yahoo! 把 Traffic Server 的 source code 放出來了 | Gea-Suan Lin's BLOG
http://blog.gslin.org/archives/2009/10/30/2133/yahoo-%E6%8A%8A-traffic-server-%E7%9A%84-source-code-%E6%94%BE%E5%87%BA%E4%BE%86%E4%BA%86
Yahoo釋出雲端運算加速器 "Traffic Server" ,個人想法分享 @ Min's Web Life: 談網路產業研究與生活閒聊 :: 痞客邦 PIXNET ::
http://miin1130.pixnet.net/blog/post/24670966
雅虎开源Traffic Server | BING必应CHENG
http://www.52bingcheng.com/2009/11/01/traffic_server/

Tuesday, November 30, 2010

Daily Bookmarks 20101130

MongoDB与Tokyo Tyrant性能比较(1):基础CRU操作 - 老赵点滴 - 追求编程之美 Good
http://blog.zhaojie.me/2010/02/mongodb-tokyo-tyrant-benchmark-1-basic-cru-operations.html
理想的Tokyo Tyrant | 青春舞曲
http://shawnma.xomud.com/2010/06/ideal-tokyo-tyrant/
東京暴君臥軌記 Tokyo Tyrant on Rails « hiroshi yui
http://ghostsinthelab.org/?p=1934
Using Tokyo Tyrant in Production — The AboutUs Weblog
http://blog.aboutus.org/2009/08/11/using-tokyo-tyrant-in-production/
NFS,Memcached,Tokyo tyrant实现session共享性能测试_跳动的鬼魂_百度空间
http://hi.baidu.com/yts_dayou/blog/item/dbbfab349122051d91ef398e.html
tokyocabinet « SpawN
http://www.lixiaodou.cn/tag/tokyocabinet/
吴道林的博客 » Tokyo Cabinet数据库的四种数据结构说明 good site about use
http://wudaolin.com/?p=69
ACID - Wikipedia, the free encyclopedia
http://en.wikipedia.org/wiki/ACID
Tokyo Cabinet 的四种数据结构 - Willko's Blog - JavaEye技术网站 簡易用法
http://willko.javaeye.com/blog/506728
Rails Talk Tokyo Cabinet Database with Ruby on Rails (Ruby case good)
http://railstalk.com/2009/8/9/tokyo-cabinet-database-with-ruby-on-rails

Tokyo Tyrant备份和还原--展示过去,展望未来[周灵杰] Goood site
http://zhliji2.blogspot.com/2009/04/tokyo-trant.html

Sameer Parwani » Tokyo Cabinet and Tokyo Tyrant
http://sameerparwani.com/posts/tokyo-cabinet-and-tokyo-tyrant


ssh应用实例: NAT穿透 « Li's Blog
http://blog.lilinux.net/2010/02/ssh-instance/
轻量级开源简单队列服务 HTTPSQS 1.3 版本发布-仲伟涛-ZOL博客
http://blog.zol.com.cn/1905/article_1904914.html

other Good site
PK with php! - 记录与PHP的PK经历
http://www.pkphp.com/
阿福的技术BLOG_博客_Linux_百度空间
http://hi.baidu.com/ah__fu/blog/category/Linux/index/1
五种开源协议的比较(BSD,Apache,GPL,LGPL,MIT)
http://www.awflasher.com/blog/archives/939
ini_set()的注意事项


Monday, November 29, 2010

Daily Bookmarks 20101129

Tokyocabinet/Tokyotyrant文档大合集
http://www.162cm.com/p/tokyotyrant.html#toc4
转贴:zz 分布式key-value存储方案介绍:Cassandra,LightCloud,TokyoCabinet 百度空间_应用平台
http://apps.hi.baidu.com/share/detail/7086038
redis - Project Hosting on Google Code
http://code.google.com/p/redis/

How FriendFeed uses MySQL to store schema-less data - Bret Taylor's blog
http://bret.appspot.com/entry/how-friendfeed-uses-mysql

FriendFeed 使用 MySQL 的经验 - DBA Notes
http://www.dbanotes.net/arch/friendfeed_mysql.html

Friendfeed的MySQL key/value存储 – Tim[后端技术]
http://timyang.net/data/friendfeed-mysql-schema-less/





海量小文件存储 » 超群.com的博客 Goood
http://www.fuchaoqun.com/2009/04/deal-with-tons-of-small-files/

keven的路 » Tokyo Cabinet 合輯
http://blog.wantongchina.com/?tag=tokyo-cabinet

Tokyo Cabinet: Beyond Key-Value Store - igvita.com
Tokyo Cabinet - Smile的日志 - 网易博客 Gooood
Tokyo Cabinet & Tokyo Tyrant | Ferrari != Ferrari Good plurk






11.1. pickle — Python object serialization — Python v2.7.1 documentation
http://docs.python.org/library/pickle.html
descriptor:Python Idiom: dictionary - 樂多日誌


http://blog.roodo.com/descriptor/archives/7727261.html

paoding-rose - Project Hosting on Google Code
http://code.google.com/p/paoding-rose/

青岛生物能源与过程研究所超级运算中心
http://scc.qibebt.cas.cn/introduction.php

Tokyo Tyrant - Tokyo Cabinet网络接口 - 开源中国社区
http://www.oschina.net/p/tokyo+tyrant

量子统计—免费网站流量统计,您的数据分析专家
http://www.linezing.com/

天天成长的博客
http://ddgrow.com/

第二次Hadoop开发者沙龙 雅虎北京研发中心 童琨 - 视频 - 优酷视频 - 在线观看
http://v.youku.com/v_show/id_XOTI1MzE5MTY=.html

为什么企业对NoSQL不感兴趣?101001-黄富强的博客-科学网
http://www.sciencenet.cn/m/user_content.aspx?id=368853

为什么Quora不使用NoSQL来做数据存储 « a db thinker's home
http://www.dbthink.com/?p=553

你需要知道的关于NoSQL数据库的10件事 « a db thinker's home
http://www.dbthink.com/?p=630

C

专注高品质网络解决方案服务提供商-一天创想(北京)科技有限公司
http://www.itbeing.com/

CDB

CDB(Constant DataBase)_旅 行_百度空间
http://hi.baidu.com/enter775/blog/item/06aff7d442c10008a08bb7a0.html
hash_ring

简评 Taobao Tair: 四不像 - fcicq’s blog-beta
http://www.fcicq.net/wp/?p=914

Sunday, November 28, 2010

Wednesday, November 24, 2010

Daily Bookmarks 20101124

Apache Axis - 维基百科,自由的百科全书
http://zh.wikipedia.org/zh/Apache_Axis


MC104 :: 觀看文章 - [轉貼] 貝式過濾法 (Bayesian filtering)
http://www.backup.idv.tw/viewtopic.php?t=1832


mongoDB « ChibaKuma's iNote Goood
http://chibakuma.net/blog/?cat=8


PHP 程式 學習 筆記本: apache 壓力測試結果.
http://calos-tw.blogspot.com/2010/03/apache.html


PHP 程式 學習 筆記本: [引用]Distributed Filesystem / Database , Database Optimization, NoSQL
http://calos-tw.blogspot.com/2010/03/distributed-filesystem-database.html


Mongodb | 遨遊飛翔 install
http://blog.shian.tw/mongodb.html





Large Scale Data Processing with MongoDB Map/Reduce (Part 1:Background)
http://steveeichert.com/2010/03/18/large-scale-data-processing-with-mongodb.html


NoSQL数据库探讨之一 - 为什么要用非关系数据库? - robbin的自言自语 - JavaEye技术网站
http://robbin.javaeye.com/blog/524977


使用 PHP 将 SQL 转换为 XML
http://www.ibm.com/developerworks/cn/xml/x-query2xml/


Python/XML HOWTO
http://pyxml.sourceforge.net/topics/howto/xml-howto.html


Python & XML: Chapter 1: Python and XML
http://oreilly.com/catalog/pythonxml/chapter/ch01.html


PythonXml - PythonInfo Wiki
http://wiki.python.org/moin/PythonXml


PyXMLFAQ -- Python XML Frequently Asked Questions
http://www.rexx.com/~dkuhlman/pyxmlfaq.html


Perl & XML: Chapter 3: XML Basics: Reading and Writing
http://oreilly.com/catalog/perlxml/chapter/ch03.html


Parsing XML documents with Perl's XML::Simple
http://articles.techrepublic.com.com/5100-10878_11-5363190.html


NoSQL 文档数据库 MongoDB - Bory.Chan
http://blog.chenlb.com/2010/03/nosql-mongodb.html


Joe Horn 的啟示錄 » [PHP] 試玩 MongoDB 的資料關聯
http://www.joehorn.idv.tw/archives/2010/08/08/840/
MongoDB — Documentation
http://docs.symfony-reloaded.org/guides/doctrine/MongoDB.html

安装 Tokyo Cabinet 和 Tokyo Tyrant - Bory.Chan
http://blog.chenlb.com/2009/03/install-tokyo-cabinet-and-tokyo-tyrant-start-ttserver.html

Tokyo Cabinet -- 小型 DBM + Tokyocabinet For PHP Extension -- 轉po -=- E.D.P 涼 ...Eat Diving Play -- EDP MyBlog
http://blog.twix.idv.tw/myblog/view/75

Fillano's Learning Notes | 練習開發 php extension - Tokyo Cabinet
http://fillano.blog.ithome.com.tw/post/257/64937

技术起点 » Tokyo Cabinet高效的键值数据库
http://www.xinqdian.com/index.php/archives/22/

采用tokyo cabinet搭建表格型DBM--展示过去,展望未来[周灵杰]
http://zhliji2.blogspot.com/2009/05/tokyo-cabinetdbm.html

Berkeley DB_百度百科
http://baike.baidu.com/view/1281930.html?wtp=tt


嵌入式数据库系统Berkeley DB -gooooooooooooooood IBM
http://www.ibm.com/developerworks/cn/linux/l-embdb/index.html

利用Tokyo Tyrant构建兼容Memcached协议、支持故障转移、高并发的分布式key-value持久存储系统[原创] - 回忆未来[张宴] - 服务器系统架构与底层研发
http://blog.s135.com/post/362/


XML.com: Converting Between XML and JSON
http://www.xml.com/pub/a/2006/05/31/converting-between-xml-and-json.html

Tuesday, November 23, 2010

Saturday, November 20, 2010

Daily Bookmarks 20101120

通过PHP curl向腾讯微博发送广播全过程 « bang’s blog
http://blog.bang590.net/tech/1406/


網路歷史編年紀錄
http://www.wretch.cc/blog/gohigh666/8707977

Thursday, November 18, 2010

Daily Bookmarks 20101118

NoSQL数据库性能比较:MongoDB、Redis、Tokyo Tyrant - MySQL性能与调优 - TT数据库
http://www.searchdatabase.com.cn/showcontent_39157.htm


NoSQL的必要性和效率、成本分析 - MySQL开发 - TT数据库
http://www.searchdatabase.com.cn/showcontent_38986.htm


解析MongoDB的内部构造 - MySQL开发 - TT数据库
http://www.searchdatabase.com.cn/showcontent_41876.htm



社交网络数据库技术分析 - MySQL开发 - TT数据库
http://www.searchdatabase.com.cn/showcontent_38401.htm


Tokyo Tyrant(ttserver)在大数据量下的不稳定案例 - MySQL性能与调优 - TT数据库
http://www.searchdatabase.com.cn/showcontent_36766.htm


Production Deployments - MongoDB
http://www.mongodb.org/display/DOCS/Production+Deployments


Mongodb | 遨遊飛翔
http://blog.shian.tw/mongodb.html


Index of /CloudAgent/examples/c-binding
http://yangacer.twbbs.org/CloudAgent/examples/c-binding/


{|ihower.tw| blog } | 什麼是REST跟RESTful?
http://ihower.tw/blog/archives/1542


Blog/Essay: 非常棒的垃圾信過濾軟體 NOPAM
http://saintus.com/blog_read.php?topic=ch&f=20051015-223243


tokyo - 搜索 - TT数据库 - TechTarget中国
http://www.searchdatabase.com.cn/search.aspx?cx=006311256994434649565:dv5h1scnzoy&cof=FORID:9&q=tokyo

Sunday, October 24, 2010

Daily Bookmarks 20101024

WWW::Mechanize && Google Group
http://fayland.org/journal/GoogleGroup.html

mechanize 教程
http://blog.hieee.com/2010/08/23/

python mechanize
 http://blog.cycu.org/?e=125

http://www.higherpass.com/Perl/Tutorials/Using-Www-mechanize/3/

http://funningboy.blogspot.com/2010_02_01_archive.html

Saturday, October 23, 2010

blog

fyblog
http://www.flyy.info/index.php

Saturday, October 16, 2010

Friday, October 15, 2010

Search by Hashing

Search by Hashing
intro.

參考來源:

"Some of the most common search algorithms are serial search, binary search and search by hashing. The tool for comparing the performance between the different algorithms is called run-time analysis. Here, we present search by hashing, and discuss the performance of this method. But first, we present a simple search method, the serial search and its run-time analysis."
- Search by Hashing (在「Google 網頁註解」中檢視)

Search by Hashing

Search by Hashing
intro.

參考來源:

"Search by Hashing"
- Search by Hashing (在「Google 網頁註解」中檢視)

Sunday, October 03, 2010

Run a command at boot with Gentoo

Normally in Gentoo you would want to create an init script via rc-update to start a service at boot. However if there are a few miscellaneous commands you would like to run you can add them to local.start.

The local.start init script is similar to rc.local in other distributions. It is the last init script to be run after all other services have been started at the end of the boot process.

Add your commands to local.start file located here.
/etc/conf.d/local.start

You can also make commands run when the system is shutdown. These commands should be placed in local.stop located here.
/etc/conf.d/local.stop

1 Comment
gentooShareThis

參考來源:

"Add your commands to local.start file located here. /etc/conf.d/local.start You can also make commands run when the system is shutdown. These commands should be placed in local.stop located here. /etc/conf.d/local.stop"
- Run a command at boot with Gentoo | WiredRevolution.com (在「Google 網頁註解」中檢視)

Gentoo init.d rc-update 寫法

Gentoo init.d rc-update 寫法
滿獨特方面的如果要再開機就載入某些程式的話可以用的方式

參考來源:

"注意到了嗎?因為我們沒有定義depend() 所以會有dependency warning,但是我們定義的start()就會有正確執行出來。 這種作法我個人認為是相當高度模組化的作法,不同於debian, redhat, mandrake,suse等其他Linux distribution甚至FreeBSD, 一般執行 rc script都是自己寫shell script,使用大量的case conditional來判斷自訂的start|stop|restart 行為,甚至FreeBSD還會判斷start|stop|restart的大小寫,增加rc script的複雜性以及撰寫與維護難度,gentoo這作法只要 follow他的runscript style來寫,"
- Gentoo Taiwan 討論區 • 檢視主題 - 想請問有關no-ip的開機自動執行辦法 (在「Google 網頁註解」中檢視)

Saturday, October 02, 2010

Daily Bookmarks 20101002

rsync - intro
http://www.ntu.beautifulworldco.com/weblog/?p=385

http://news.ols3.net/techdoc/old/rsync.htm

让Google Calendar显示在LINUX桌面
http://blog.netoearth.com/html/201008/%E8%AE%A9google-calendar%E6%98%BE%E7%A4%BA%E5%9C%A8linux%E6%A1%8C%E9%9D%A2.htm

Linux VNC 虛擬桌面
http://cha.homeip.net/blog/2010/09/2643.html

Quick reStructuredText

Quick reStructuredText

http://docutils.sourceforge.net/docs/user/rst/quickref.html
Being a cheat-sheet for reStructuredText
Updated $Date: 2009-07-14 10:05:34 -0400 (Tue, 14 Jul 2009) $

Copyright: This document has been placed in the public domain.

The full details of the markup may be found on the reStructuredText page. This document is just intended as a reminder.

參考來源:

"Quick reStructuredText http://docutils.sourceforge.net/docs/user/rst/quickref.html Being a cheat-sheet for reStructuredText Updated $Date: 2009-07-14 10:05:34 -0400 (Tue, 14 Jul 2009) $ Copyright: This document has been placed in the public domain. The full details of the markup may be found on the reStructuredText page. This document is just intended as a reminder."
- Quick reStructuredText (在「Google 網頁註解」中檢視)

Friday, October 01, 2010

Port Forwarding(SSH tunneling)

Port Forwarding(SSH tunneling)
張貼者: barkley 於 1/25/2010 01:09:00 上午 | 2010/01/25
透過 ssh and sshd 能夠轉移 TCP 通訊的傳輸
但是需要先瞭解難以理解且愚蠢的語法
-L clientport:host:hostport

參考來源: 熱血OB: Port Forwarding(SSH tunneling) (在「Google 網頁註解」中檢視)

Remote port forwarding - exposing an internal webserver

Example 4: Remote port forwarding - exposing an internal webserver

Remote port forwarding is sometimes useful for granting temporary access to services on clients which are otherwise unreachable (perhaps the client has an unreachable rfc1918 address behind a NAT or firewall). If the client is not configured to accept inbound SSH connections, this can be done with remote port forwarding on an outbound connection. (For OpenSSH, note that you may need to set "GatewayPorts yes" in "sshd_config" to achieve on the server what "ssh -g" would do on the client (allow any host to connect to the forwarded port).

Consider a PC which is running a webserver but is protected by firewall rules to accept no inbound connections (except from itself). Furthermore imagine this host has the unrouted private address 192.168.1.1 and can access the internet only outbound through a NAT. If you believe it is not too risky, you can briefly make that server publicly available with ssh port forwarding (such as while you're on the phone with someone) if you think the risk of serving sensitive data to a random hacker while it is publicly exposed is acceptably low and you can ssh from the PC to a host with a public address. To do so, you can establish an ssh connection such as this:

ssh -R4567:localhost:80 some-server
which will make it look like your PC's webserver is a server on "some-server" at port: 4567. Anyone who connects to:
http://some-server:4567/some/path
will get the same webpage you get on your PC when you connect to:
http://localhost:80/some/path

參考來源:

"ssh -R4567:localhost:80 some-server which will make it look like your PC's webserver is a server on "some-server" at port: 4567. Anyone who connects to: http://some-server:4567/some/path"
- NDC Logical Firewall - SSH Port Forwarding (在「Google 網頁註解」中檢視)

Promise Supertrak SX6000 Raid Card

Promise Supertrak SX6000 Raid Card
Q1.System 不要 Build 在 Array 內?

近來用一台 N 年前的高檔機器 HP LC2000 NetServer,其 CPU 為 P3-533 想說這機器放著也是放著,剛好拿來當 Backup Server 剛好,反正只裝 NFS Server 相信 P3-533 應該夠用了,安裝的 Raid Card 為 Promise SX6000,找到在 Google 上找到了一下些相關問題,順便就貼一下,主要是說 SX6000 所 Build 的 Array 最好是不要讓 System 也在內不然在系統 boot 時會出現不明的錯誤

參考來源:

"Q1.System 不要 Build 在 Array 內? 近來用一台 N 年前的高檔機器 HP LC2000 NetServer,其 CPU 為 P3-533 想說這機器放著也是放著,剛好拿來當 Backup Server 剛好,反正只裝 NFS Server 相信 P3-533 應該夠用了,安裝的 Raid Card 為 Promise SX6000,找到在 Google 上找到了一下些相關問題,順便就貼一下,主要是說 SX6000 所 Build 的 Array 最好是不要讓 System 也在內不然在系統 boot 時會出現不明的錯誤。"
- 不自量力 の Weithenn: Promise Supertrak SX6000 Raid Card (在「Google 網頁註解」中檢視)

CentOS 5.2+Raid 0+LVM+ISCSI配置详解

系统环境:CentOS 5.2

硬件配置:ASUS P5GC-MX +Intel E2160+Kinston 1GB 667*2+D-Link 530 1Gbps

硬盘1:Seagate 80GB/7200S/8MB/SATA

硬盘2:Seagate 1TB/7200S/32MB/SATA

硬盘3:Seagate 1TB/7200S/32MB/SATA

參考來源: CentOS 5.2+Raid 0+LVM+ISCSI配置详解 - LingPing的日志 - 网易博客 (在「Google 網頁註解」中檢視)

Thursday, September 30, 2010

vim 支援 utf-8 中文

經理解消化之後,在自己的 .vimrc 加入了以下的設定,令 vim/gvim 遇到中文檔時,懂得選擇正確的編碼。而在建立新檔時,也自動以 utf-8 編碼:

“Default encoding
set fileencodings=utf-8,big5,gbk,latin1
set fileencoding=utf-8

實驗証明,這已能滿足大部份所需,讀寫都不成問題。最後,有時要強迫改變檔案的編碼,所以再加入以下設定:

“Hot key to switch between Big5 and UTF-8
set =^U
set =^B
map :set fileencoding=utf-8
map :set fileencoding=big5

參考來源:

"經理解消化之後,在自己的 .vimrc 加入了以下的設定,令 vim/gvim 遇到中文檔時,懂得選擇正確的編碼。而在建立新檔時,也自動以 utf-8 編碼: “Default encoding set fileencodings=utf-8,big5,gbk,latin1 set fileencoding=utf-8 實驗証明,這已能滿足大部份所需,讀寫都不成問題。最後,有時要強迫改變檔案的編碼,所以再加入以下設定: “Hot key to switch between Big5 and UTF-8 set <C-u>=^U set <C-b>=^B map <C-u> :set fileencoding=utf-8<CR> map <C-b> :set fileencoding=big5<CR>"
- vim 支援 utf-8 中文 « 有涯小札 (在「Google 網頁註解」中檢視)

FreeBSD 的系統改為 UTF8

要將 FreeBSD 的系統改為 UTF8 只需修改下面這個檔案
#vi /etc/csh.cshrc

setenv LC_ALL zh_TW.UTF-8
setenv LANG zh_TW.UTF-8
setenv CLICOLOR
set color
setenv LSCOLORS ExGxFxdxCxDxDxBxBxExEx

改完後先登出後再登入輸入 locale 就可看到如下的系統預設語系已經不是 C
#locale
LANG=zh_TW.UTF-8
LC_CTYPE=”zh_TW.UTF-8″
LC_COLLATE=”zh_TW.UTF-8″
LC_TIME=”zh_TW.UTF-8″
LC_NUMERIC=”zh_TW.UTF-8″
LC_MONETARY=”zh_TW.UTF-8″
LC_MESSAGES=”zh_TW.UTF-8″
LC_ALL=zh_TW.UTF-8

參考來源:

"要將 FreeBSD 的系統改為 UTF8 只需修改下面這個檔案 #vi /etc/csh.cshrc setenv LC_ALL zh_TW.UTF-8 setenv LANG zh_TW.UTF-8 setenv CLICOLOR set color setenv LSCOLORS ExGxFxdxCxDxDxBxBxExEx 改完後先登出後再登入輸入 locale 就可看到如下的系統預設語系已經不是 C #locale LANG=zh_TW.UTF-8 LC_CTYPE=”zh_TW.UTF-8″ LC_COLLATE=”zh_TW.UTF-8″ LC_TIME=”zh_TW.UTF-8″ LC_NUMERIC=”zh_TW.UTF-8″ LC_MONETARY=”zh_TW.UTF-8″ LC_MESSAGES=”zh_TW.UTF-8″ LC_ALL=zh_TW.UTF-8"
- Bryan手札-生活記趣 » FreeBSD 系統 utf8 化 (在「Google 網頁註解」中檢視)

Wednesday, September 29, 2010

Git原始碼管理

文章範圍
安裝 和 設定 Git
Git 基本操作
長樹枝了(分叉成不同的版本)
Ruby on Rails 上使用
Git 維護
本文章的來源大部分是由 Git 官方網站裡的基本 和更先進一點的教學翻譯的, 然後加入了自己寫的範例。 Railscasts裡的資料也有參考到。 此文章的內容會談到 Git 基本管理, 維護, 還有資料分枝。 此文章不會談到架設自己的 Git 伺服器 或 push 跟 pull 等跟別人合作的方法。

參考來源:

"文章範圍 安裝 和 設定 Git Git 基本操作 長樹枝了(分叉成不同的版本) Ruby on Rails 上使用 Git 維護 本文章的來源大部分是由 Git 官方網站裡的基本 和更先進一點的教學翻譯的, 然後加入了自己寫的範例。 Railscasts裡的資料也有參考到。 此文章的內容會談到 Git 基本管理, 維護, 還有資料分枝。 此文章不會談到架設自己的 Git 伺服器 或 push 跟 pull 等跟別人合作的方法。"
- 國網中心 Web 2.0 技術推廣 » Blog Archive » Git 原始碼管理 (在「Google 網頁註解」中檢視)

php中用strlen、mb_strlen函数计算中英文混排字符串长度

比较strlen和mb_strlen
当字符全是英文字符的时候,两者是一样。这里主要比较一下,中英文混排的时候,两个计算结果。(测试时编码方式是UTF8)
";
echo mb_strlen($str,"UTF8");
//输出结果
//14
//6
?>

參考來源:

"比较strlen和mb_strlen 当字符全是英文字符的时候,两者是一样。这里主要比较一下,中英文混排的时候,两个计算结果。(测试时编码方式是UTF8) <?php $str="中文a字1符"; echo strlen($str); echo "<br />"; echo mb_strlen($str,"UTF8"); //输出结果 //14 //6 ?>"
- php中用strlen、mb_strlen函数计算中英文混排字符串长度-php自学网 (在「Google 網頁註解」中檢視)

PHP字符串处理的十个技巧

2.截取文本,创建一个摘要

新闻性质的网站通常会截取一个大约200字左右的段落,并在次段落的末尾加上省略号来形成一个摘要,这时,你可以使用substr_replace()函数来实现此功能。由于篇幅的原因,这里只演示对40个字符的限制:

1
$article = "BREAKING NEWS: In ultimate irony, man bites dog.";
2

3
$summary = substr_replace($article, "...", 40);
4

5
//$summary = "BREAKING NEWS: In ultimate irony, man bi..."

參考來源:

"2.截取文本,创建一个摘要 新闻性质的网站通常会截取一个大约200字左右的段落,并在次段落的末尾加上省略号来形成一个摘要,这时,你可以使用substr_replace()函数来实现此功能。由于篇幅的原因,这里只演示对40个字符的限制: 1 $article = "BREAKING NEWS: In ultimate irony, man bites dog."; 2   3 $summary = substr_replace($article, "...", 40); 4   5 //$summary = "BREAKING NEWS: In ultimate irony, man bi...""
- PHP字符串处理的十个技巧 – Onexin ! Team (在「Google 網頁註解」中檢視)

PHP strip_tags() Function

Definition and Usage

The strip_tags() function strips a string from HTML, XML, and PHP tags.

Syntax

strip_tags(string,allow)

參考來源:

"Definition and Usage The strip_tags() function strips a string from HTML, XML, and PHP tags. Syntax strip_tags(string,allow)"
- PHP strip_tags() Function (在「Google 網頁註解」中檢視)

set coursorline-vim

vim
还可以修饰一下条横线:

:highlight CursorLine guibg=lightblue ctermbg=lightgray

參考來源:

"还可以修饰一下条横线: :highlight CursorLine guibg=lightblue ctermbg=lightgray]"
- Linux系统管理 - SALogs - 专注于Linux相关技术、Web架构 (在「Google 網頁註解」中檢視)

set cursorcolumn 無效note

2010年6月3日 ... 2、只有在gnome或gvim环境下set cursorcolumn命令才会生效,终端模式无效。 分享一份Vim7.2用户手册中文版点击下载. 原创文章,转载请注明: 转 ..

參考來源:

"2010年6月3日 ... 2、只有在gnome或gvim环境下set cursorcolumn命令才会生效,终端模式无效。 分享一份Vim7.2用户手册中文版点击下载. 原创文章,转载请注明: 转 .."
- set cursorcolumn gnome - Google 搜尋 (在「Google 網頁註解」中檢視)

php big utf8轉換

在某些機器上採big5 ,
從php送進去的utf8需要轉換成big5

big5 轉 utf-8
PHP 程式碼:
$str=iconv("big5","UTF-8",$str);

utf-8 轉 big5
PHP 程式碼:
$str=iconv("UTF-8","big5",$str);

參考來源:

"big5 轉 utf-8 PHP 程式碼: $str=iconv("big5","UTF-8",$str); utf-8 轉 big5 PHP 程式碼: $str=iconv("UTF-8","big5",$str);"
- php big5跟utf-8互轉的指令 (在「Google 網頁註解」中檢視)

Tuesday, September 28, 2010

qsort詳解--ref

是对一个二维数组的进行排序:

int a[1000][2]; 其中按照a[i][0]的大小进行一个整体的排序,其中a[i][1]必须和a[i][0]一起移动交换。

qsort(a,1000,sizeof(int)*2,comp);

int comp(const void *a,const void *b)
{
return ((int *)a)[0]-((int *)b)[0];
}

參考來源: 王博 (在「Google 網頁註解」中檢視)

Monday, September 27, 2010

CGI Programming 101: Chapter 12: Searching and Sorting

CGI Programming 101: Chapter 12: Searching and Sorting

Name Description
search-cgi.html Search CGI - Straight Looping (source code)
search.html Search CGI - Straight Looping (example)
search2-cgi.html Search CGI - Using grep (source code)
search2.html Search CGI - Using grep (example)
search3-cgi.html Search CGI - Using grep (with an array and a hash) (source code)
search4-cgi.html Search CGI - Straight Looping/Multiple Keywords (source code)
search4.html Search CGI - Straight Looping/Multiple Keywords (example)
sortedcat-cgi.html Kite Catalog Sorted By Price (source code)
sortedcat.cgi Kite Catalog Sorted By Price (example)

參考來源:

"CGI Programming 101: Chapter 12: Searching and Sorting Name Description search-cgi.html Search CGI - Straight Looping (source code) search.html Search CGI - Straight Looping (example)"
- CGI Programming 101: Chapter 12: Searching and Sorting (在「Google 網頁註解」中檢視)

Sunday, September 26, 2010

讓Firefox使用RAMDisk

讓Firefox使用RAMDisk

紀錄一下設定流程

Ubuntu使用RAMDisk很容易,不用另外裝套件,這是Kernel內建的功能,所以跟Linux發行版也沒太大關係。(好像從Kernel 2.6開始提供)

Google了一些資料,幾乎大家的作法都是另外在/tmp底下建立一個新目錄,然後到/etc/fstab設定tmpfs,最後再掛載。其實不用這麼麻煩,系統早就有準備 RAMDisk讓你用了,位置在/dev/shm,預設可用空間是實體記憶體的一半。(/etc/fstab檔案中看不到/dev/shm,所以很多人以為要自己建立)

Firefox到about:config,新增一個 browser.cache.disk.parent_directory字串,值設成/dev/shm,然後別忘記把browser.cache.disk.enable設成true,這樣就完工了。重新啟動Firefox就可以使用RAMDisk,很簡單

參考來源:

"讓Firefox使用RAMDisk 紀錄一下設定流程 Ubuntu使用RAMDisk很容易,不用另外裝套件,這是Kernel內建的功能,所以跟Linux發行版也沒太大關係。(好像從Kernel 2.6開始提供) Google了一些資料,幾乎大家的作法都是另外在/tmp底下建立一個新目錄,然後到/etc/fstab設定tmpfs,最後再掛載。其實不用這麼麻煩,系統早就有準備 RAMDisk讓你用了,位置在/dev/shm,預設可用空間是實體記憶體的一半。(/etc/fstab檔案中看不到/dev/shm,所以很多人以為要自己建立) Firefox到about:config,新增一個 browser.cache.disk.parent_directory字串,值設成/dev/shm,然後別忘記把browser.cache.disk.enable設成true,這樣就完工了。重新啟動Firefox就可以使用RAMDisk,很簡單"
- 在gentoo中为firefox设置ramdisk_雕刻刀_百度空间 (在「Google 網頁註解」中檢視)

Gentoo Linux on T43 (14) 内存虚拟盘加速系统

Gentoo Linux on T43 (14) 内存虚拟盘加速系统
目录

内核选项
创建内存盘
启动时自动创建
利用内存盘
更新 2008-03-24
延展阅读
对于一个喜欢折腾系统的人来说,为笔记本电脑建立内存虚拟盘,来弥补笔记本小硬盘天然的性能瓶颈问题,总是免不了的。

參考來源:

"Gentoo Linux on T43 (14) 内存虚拟盘加速系统 目录 内核选项  创建内存盘 启动时自动创建 利用内存盘  更新 2008-03-24 延展阅读 对于一个喜欢折腾系统的人来说,为笔记本电脑建立内存虚拟盘,来弥补笔记本小硬盘天然的性能瓶颈问题,总是免不了的。"
- Gentoo Linux on T43 (14) 内存虚拟盘加速系统 | DB2 学习笔记 (在「Google 網頁註解」中檢視)

論中原武術文化-禪宗自然門

煉精化氣又叫“易骨”,是形意拳的第一層功夫,目的在於練出明勁,即示形於外的剛猛之勁,同時還要打通任督二脈,完成小周天功。煉氣化神又叫“易筋”,是形意拳的第二層功夫,目的在於練出暗勁,即剛中含柔的勁,同時還要打通奇經八脈,完成大周天功,使氣血貫通周身。煉神還虛是形意拳的最高境界,又叫“易髓”,目的在於練出化勁,也就是將暗勁練到至柔至順,剛柔相濟,即所謂“陰陽混成,剛柔悉化”。拳經說:“拳無拳,意無意,無意之中是真意。”“有心有意都是假,拳到無心方見奇。”就是指化勁而言。這才是武學的極致。

參考來源:

"煉精化氣又叫“易骨”,是形意拳的第一層功夫,目的在於練出明勁,即示形於外的剛猛之勁,同時還要打通任督二脈,完成小周天功。煉氣化神又叫“易筋”,是形意拳的第二層功夫,目的在於練出暗勁,即剛中含柔的勁,同時還要打通奇經八脈,完成大周天功,使氣血貫通周身。煉神還虛是形意拳的最高境界,又叫“易髓”,目的在於練出化勁,也就是將暗勁練到至柔至順,剛柔相濟,即所謂“陰陽混成,剛柔悉化”。拳經說:“拳無拳,意無意,無意之中是真意。”“有心有意都是假,拳到無心方見奇。”就是指化勁而言。這才是武學的極致。"
- 論中原武術文化 (禪 宗 自 然 門) (在「Google 網頁註解」中檢視)

com.lang.c FAQ list Q 1.32 char a[] char *p

Q: What is the difference between these initializations?

char a[] = "string literal";
char *p = "string literal";
My program crashes if I try to assign a new value to p[i].

參考來源:

"Q: What is the difference between these initializations? char a[] = "string literal"; char *p = "string literal"; My program crashes if I try to assign a new value to p[i]."
- Question 1.32 (在「Google 網頁註解」中檢視)

可是我聽說 char a[ ] 和 char *a 是一樣的。

7.2 可是我聽說 char a[ ] 和 char *a 是一樣的。

並非如此。(你所聽說的應該跟函數的形式參數有關;參見問題 6.4) 數組不是指針。 數組定義 char a[6] 請求預留 6 個 字符的位置, 並用名稱 ``a" 表示。也就是說, 有一個稱為 ``a" 的位置, 可以放入 6 個字符。 而指針申明 char *p, 請求一個位置放置一個指 針, 用名稱 ``p" 表示。 這個指針幾乎可以指向任何位置: 任何字符和 任何連續的字符, 或者哪裡也不指(參見問題 5.1 和 1.10)。

參考來源:

"7.2 可是我聽說 char a[ ] 和 char *a 是一樣的。 並非如此。(你所聽說的應該跟函數的形式參數有關;參見問題  6.4) 數組不是指針。 數組定義 char a[6] 請求預留 6 個 字符的位置, 並用名稱 ``a" 表示。也就是說, 有一個稱為 ``a" 的位置, 可以放入 6 個字符。 而指針申明 char *p, 請求一個位置放置一個指 針, 用名稱 ``p" 表示。 這個指針幾乎可以指向任何位置: 任何字符和 任何連續的字符, 或者哪裡也不指(參見問題 5.1 和  1.10)。"
- 7.2 可是我聽說 char a[ ] 和 char *a 是一樣的。 (在「Google 網頁註解」中檢視)

my_memicmp from internet

int my_tolower(char ch)

{

if(ch >= 'A' && ch <= 'Z')

return (ch + 0x20);

return ch;

}

int my_memicmp(const void *buffer1,const void *buffer2,int count)

{

int f = 0;

int l = 0;

while (count--)

{

if ( (*(unsigned char *)buffer1 == *(unsigned char *)buffer2) ||

((f = my_tolower( *(unsigned char *)buffer1 )) ==

(l = my_tolower( *(unsigned char *)buffer2 ))) )

{

buffer1 = (char *)buffer1 + 1;

buffer2 = (char *)buffer2 + 1;

}

else

break;

}

return ( f - l );

}

參考:

參考來源:

"int my_memicmp(const void *buffer1,const void *buffer2,int count)"
- memicmp ( )【C语言库函数源代码】 - string.h - ammana_babi (在「Google 網頁註解」中檢視)

Saturday, September 25, 2010

Linux大小寫轉換方法

以下以小写转大写为例
(1)sed:
cat file | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'

(2)tr:
cat file | tr a-z A-Z
cat file | tr "[:lower:]" "[:upper:]"

(3)perl:
$string="abcdef";
$string =~ tr/[a-z]/[A-Z]/;
or
$string=uc($string); #大小转小写用lc,具体参见perldoc -f lc与perdoc -f uc

參考來源:

"以下以小写转大写为例 (1)sed: cat file | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'   (2)tr: cat file | tr a-z A-Z cat file | tr "[:lower:]" "[:upper:]"   (3)perl: $string="abcdef"; $string =~ tr/[a-z]/[A-Z]/; or $string=uc($string); #大小转小写用lc,具体参见perldoc -f lc与perdoc -f uc"
- Linux下大小写转换的方法小结 - TIPs - 冷月无声 (在「Google 網頁註解」中檢視)