泳裤王子不在
This is tclh123's second blog which is host by the lovely GAE. BTW, fuck the GFW.
rss
email
twitter
facebook
  • Home
  • <li class="page_item"><a href="/About" target="">About</a></li>

Use Octpress

0 Comments
Posted on 十一月 28 2012
<div class="post-content"> <p>繁杂的生活中让人更加萌生追求极简的欲望,心血来潮就打算那拿octopress再搭个博客(希望这个博客能够让我心宁静)。</p> <p><em>以下皆为回忆,可能由于某种原因记错,仅供参考&hellip;</em></p> <p> <a href="/155002" class="e_more">..更多</a>

Tags:  
Categories:

rvm使用淘宝ruby镜像

0 Comments
Posted on 十一月 28 2012
<p>身为程序猿,生在中国,也算是一种悲哀。</p> <p>把&nbsp;/usr/local/rvm/config/db (我是OSX)中&nbsp;ftp.ruby-lang.org/pub/ruby 替换为&nbsp;ruby.taobao.org/mirrors/ruby 即可。</p>

Tags:  
Categories:

[笔记整理]Regular Expression / 正则表达式

0 Comments
Posted on 十一月 14 2012
<p><span style="font-style: italic;">2012.3.12笔记 by tclh123 - 自学版</span></p> <hr /> <p>&nbsp;</p> <h2>1、基本符号</h2> <table> <tbody> <tr> <th>符号</th> <th>名称</th> <th>匹配规则</th> </tr> <tr> <td>.</td> <td>单点</td> <td>除换行外任意字符</td> </tr> <tr> <td>*</td> <td>星号</td> <td>前面的匹配可以出线<span style="text-decoration: underline;">任意次</span></td> </tr> <tr> <td>+</td> <td>加号</td> <td>前面的匹配出线至少一次</td> </tr> <tr> <td>{n}</td> <td>大括号指定</td> <td>前面的匹配恰出现n次</td> </tr> <tr> <td>{n,m}</td> <td>大括号指定,拓展</td> <td>前面的匹配出现n~m次</td> </tr> <tr> <td>?</td> <td>问号</td> <td>匹配0次或1次</td> </tr> <tr> <td>[]</td> <td>方括号</td> <td>指定匹配集</td> </tr> <tr> <td>[^..]</td> <td>非</td> <td>取反集</td> </tr> <tr> <td>[ - ]</td> <td>连字符</td> <td>如,[0-9]、[a-z]</td> </tr> <tr> <td>()</td> <td>括号</td> <td>可以用来分组(,返回的第一组是所有匹配)</td> </tr> </tbody> </table> <h2> <a href="/163001" class="e_more">..更多</a>

Tags:  
Categories:

sublime text 2 for osx / python build system

0 Comments
Posted on 十月 28 2012
<p>为了达到与<a href="/139001">这个</a>同样的效果。</p> <p>&nbsp;</p> <pre class="brush: jscript;fontsize: 100; first-line: 1; ">{ "cmd": ["bash", "-c", "python -u '${file}' &amp;&amp; chmod a+x '${file}' &amp;&amp; open -a terminal '${file}'"], "selector": "source.python", "variants": [ { "name": "Run", "cmd": ["bash", "-c", "python -u '${file}' &amp;&amp; chmod a+x '${file}' &amp;&amp; '${file}'&lt;'${file_path}/${file_base_name}.in'&gt;'${file_path}/${file_base_name}.out'"] } ] }</pre> <p>&nbsp;</p> <p>&nbsp;</p>

Tags: sublime  python 
Categories:

wordpress multisite using subdomain/ iis + url rewrite module 2.0 / web.config

0 Comments
Posted on 十月 26 2012
<p>上次配好wp多人博客后,使用时发现点击固定链接后会报404,想必是当时url rewrite没做好。</p> <p>这次去看,发现当时是根据wp的提示用了.htaccess文件来做url重写的,果断二了,哥用的是iis饿。。</p> <p>(因为学院官网是asp.net的,然后我要做subdomain又不能带端口,所以就没法用apache了。。。</p> <p>上网查了下iis下替代.htaccess的貌似是httpd.ini,然后又各种查搞不出来啊 - -。</p> <p>然后搜到<a href="http://www.helicontech.com/forum/18684-WordPress_Multisite_Permalinks_IIS6.html">这个</a>,开始有点无力了.....</p> <p>然后换了个思路...发现可以用web.config这样...<a href="http://lauragentry.com/blog/2010/07/30/how-to-create-a-wordpress-3-0-multisite-network-on-a-windows-server-using-sub-directories/">这里</a>..(有点不一样,他用的是subdirectory</p> <p>然后发现了貌似很吊的<a href="http://www.iis.net/downloads/microsoft/url-rewrite">iis url rewrite 2.0</a>...</p> <p>然后对比着wp给的.htaccess重写规则改写成web.config了...</p> <p> <a href="/151001" class="e_more">..更多</a>

Tags:  
Categories:

google app engine sdk directory on macos/osx

0 Comments
Posted on 十月 15 2012
<p>mac上google app engine的目录:</p> <p>/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine</p> <p><strong>Reference</strong></p> <p>http://www.joelennon.ie/2011/03/25/using-pydev-for-google-app-engine-development-on-a-mac/</p>

Tags:  
Categories:

Macbook pro 装 Ubuntu12.4 的BCM4331无线网卡驱动

1 Comments
Posted on 十月 6 2012
<p>google了半天,后来终于找到这篇靠谱的。:P</p> <p>另外这里有<a href="http://www.oschina.net/question/54100_27378">一篇</a>讲mbp装Ubuntu兼容性的,另<a href="https://help.ubuntu.com/community/MacBookPro7-1/Maverick">英文原文</a>。</p> <p>&nbsp;</p> <p>更新下各下载地址,</p> <p>http://www.lwfinger.com/b43-firmware/broadcom-wl-5.100.138.tar.bz2</p> <p>http://pkgs.fedoraproject.org/repo/pkgs/b43-fwcutter/b43-fwcutter-015.tar.bz2/628e030565222a107bc40300313cbe76/b43-fwcutter-015.tar.bz2</p> <p>http://ubuntuone.com/4Z8eqdGF1jcooqUoY4IsPN</p> <p>http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2011-08-27.tar.bz2</p> <p>&nbsp;</p> <hr /> &nbsp; <p> <a href="/142001" class="e_more">..更多</a>

Tags: mbp  ubuntu  linux  网卡驱动 
Categories:

XQuartz-2.7.3.dmg下载地址,x11 for mac...

0 Comments
Posted on 十月 2 2012
<p>原来官网链接貌似被墙了...</p> <p>http://download.cnet.com/XQuartz-X11/3000-2094_4-10912185.html</p>

Tags:  
Categories:

sublime text 2 for osx,build system,open terminal window

0 Comments
Posted on 十月 1 2012
<p>MyCpp.sublime-build</p> <pre class="brush: jscript;fontsize: 100; first-line: 1; ">{ "cmd": ["bash", "-c", "g++ '${file}' -o '${file_path}/${file_base_name}' &amp;&amp; open '${file_path}/${file_base_name}'"], "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", "working_dir": "${file_path}", "selector": "source.c, source.c++", "variants": [ { "name": "Run", "cmd": ["bash", "-c", "g++ '${file}' -o '${file_path}/${file_base_name}' &amp;&amp; '${file_path}/${file_base_name}'&lt;'${file_path}/${file_base_name}.in'&gt;'${file_path}/${file_base_name}.out'"] } ] } </pre> <p>第二个Run方法是利用管道重定向输入输出了。</p> <h3>Reference</h3> <ul> <li>http://stackoverflow.com/questions/11601423/how-to-run-programs-in-an-external-console-with-sublime-text</li> <li>http://www.google.com.hk/search?q=open+terminal&amp;client=pub-1895553756377946&amp;channel=9593578544&amp;forid=1&amp;prog=aff&amp;hl=zh-CN</li> <li>http://www.wikihow.com/Open-Applications-Using-Terminal-on-Mac</li> </ul>

Tags:  
Categories:

[转载] Wordpress Rewrite / Permalink内部过程分析

0 Comments
Posted on 九月 30 2012
<p>头很晕,啃不动,容我以后再啃。。</p> <p>http://wordpress.org.cn/thread-36958-1-1.html</p>

Tags: php  apache  wordpress 
Categories:
« Older Entries


About Me

    Harry Lee
    Student in Software Engineering
    [email protected], Zhejiang
    [email protected]Xidian University
    more...

Feeds

  • Entries (RSS)
  • Comments (RSS)
  • 订阅到 Google Reader
  • 订阅到 抓虾
  • 订阅到 鲜果
  • 订阅到 QQ

Popular Posts

  • Macbook pro 装 Ubuntu12.4 的BCM4331无线网卡驱动(9479)
  • rvm使用淘宝ruby镜像(6944)
  • [转载] Wordpress Rewrite / Permalink内部过程分析(6664)
  • XQuartz-2.7.3.dmg下载地址,x11 for mac...(6598)
  • wordpress multisite using subdomain/ iis + url rewrite module 2.0 / web.config(6513)
  • google app engine sdk directory on macos/osx(6291)
  • sublime text 2 for osx,build system,open terminal window(6076)
  • sublime text 2 for osx / python build system(5890)

Recent Posts

  • Use Octpress
  • rvm使用淘宝ruby镜像
  • [笔记整理]Regular Expression / 正则表达式
  • sublime text 2 for osx / python build system
  • wordpress multisite using subdomain/ iis + url rewrite module 2.0 / web.config
  • google app engine sdk directory on macos/osx
  • Macbook pro 装 Ubuntu12.4 的BCM4331无线网卡驱动
  • XQuartz-2.7.3.dmg下载地址,x11 for mac...

Recent Comments

Categories

Archives

Blog roll


  • Home
  • <li class="page_item"><a href="/About" target="">About</a></li>
  • Login
Powered by Google App Engine  |   Designed by WebTreats  |   由 xuming 提供 Micolog程序