<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1175291116276710141</id><updated>2024-09-05T07:46:30.387-07:00</updated><category term="java"/><category term="bash"/><category term="c++"/><category term="git"/><category term="c#"/><category term="html"/><category term="mac"/><category term="osx"/><category term="xcode"/><category term="CSS"/><category term="Google Code"/><category term="M$"/><category term="javascript"/><category term="msys"/><category term="ruby"/><category term="windows"/><category term="GData"/><category term="GPG"/><category term="IRC"/><category term="appscript"/><category term="autoit"/><category term="batch"/><category term="c"/><category term="emacs"/><category term="github"/><category term="gui"/><category term="gvim"/><category term="homebrew"/><category term="iPython"/><category term="jQuery"/><category term="obj-c"/><category term="org-mode"/><category term="perl"/><category term="python"/><category term="qt4"/><category term="script"/><category term="sort"/><category term="svn"/><category term="weechat"/><title type='text'>Superbil.Code</title><subtitle type='html'>程式的表現力是無限</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sb-code.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sb-code.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Superbil</name><uri>http://www.blogger.com/profile/11542562016258025986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>54</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1175291116276710141.post-3365248786884080587</id><published>2014-06-09T21:00:00.001-07:00</published><updated>2014-06-09T21:00:26.971-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IRC"/><category scheme="http://www.blogger.com/atom/ns#" term="weechat"/><title type='text'>Setup weechat</title><content type='html'>自己使用 weechat 已經好一陣子，但是一直都沒有使用 &lt;a href=&quot;http://freenode.net/irc_servers.shtml#ssl&quot;&gt;SSL&lt;/a&gt; 連線 (爆)，所以根據 &lt;a href=&quot;http://blog.ijliao.info/archives/2014/04/02/5307/&quot;&gt;大大的設定&lt;/a&gt;，一路順手就把 SSL 和 &lt;a href=&quot;http://freenode.net/sasl/&quot;&gt;freenode 的 SASL&lt;/a&gt; 都設定好了。&lt;br /&gt;
&lt;br /&gt;
不過自己的帳號在這期間使用還有一些小變數，那就是我有使用 &lt;a href=&quot;https://freenode.net/faq.shtml#groupregistration&quot;&gt;nickname group&lt;/a&gt; 來註冊不同的 nick name 到同一個帳號底下。&lt;br /&gt;
&lt;br /&gt;
簡單試過，在設定 SASL 的時候，還是要設定到主要申請的那個 username，而不能填入其他 group 裡面的 nickname&lt;br /&gt;
&lt;br /&gt;
還有一個就是評證設定的路徑，archlinux 的話要先用 pacman 安裝 ca-certificates ，才會在在 /etc/ssl/certs/ca-certificates.crt 找到&lt;br /&gt;
&lt;br /&gt;
然後在 weechat 裡面設定&lt;br /&gt;
&lt;pre class=&quot;brush: bash&quot;&gt;/set weechat.network.gnutls_ca_file /etc/ssl/certs/ca-certificates.crt
/set irc.server.freenode.address chat.freenode.net/6697
/set irc.server.freenode.ssl on
/set irc.server.freenode.ssl_dhkey_size 1024&lt;/pre&gt;&lt;br /&gt;
就可以正常使用 :)&lt;br /&gt;
&lt;br /&gt;
相關連接：&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://wiki.archlinux.org/index.php/WeeChat&quot;&gt;WeeChat - ArchWiki&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://blog.ijliao.info/archives/2014/04/02/5307/&quot;&gt;weechat @ 小隔間裡的人生&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://sb-code.blogspot.com/feeds/3365248786884080587/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1175291116276710141/3365248786884080587' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/3365248786884080587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/3365248786884080587'/><link rel='alternate' type='text/html' href='http://sb-code.blogspot.com/2014/06/setup-weechat.html' title='Setup weechat'/><author><name>Superbil</name><uri>http://www.blogger.com/profile/11542562016258025986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1175291116276710141.post-9094303114856553534</id><published>2013-09-05T09:39:00.002-07:00</published><updated>2014-05-26T08:26:03.996-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="GPG"/><category scheme="http://www.blogger.com/atom/ns#" term="homebrew"/><category scheme="http://www.blogger.com/atom/ns#" term="mac"/><category scheme="http://www.blogger.com/atom/ns#" term="perl"/><title type='text'>install caff on Mac</title><content type='html'>最近參加了幾次 signing-party，在會後都會收到制式的內容和 key，查了一下才發現是用了 caff 這個工具。&lt;br /&gt;
&lt;br /&gt;
在 homebrew 上試查 caff 也沒有？！後來才發現有 signing-party 這個小工具， caff 就在裡面。&lt;br /&gt;
&lt;br /&gt;
為了裝這個 perl 的工具，在直接下 homebrew 的安裝之後，才會發現需要其他幾個 perl 的元件，照安裝就可以&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
安裝過程如下：&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/Superbil/6452635.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
接下來就照正常的使用 caff 流程就可以簡化認證這件事啦！&lt;br /&gt;
&lt;br /&gt;
&gt; caff &lt;keyid&gt;&lt;br /&gt;
&lt;br /&gt;
[修正] 2015.05.26 使用 local 的 perl 安裝法，避免 sudo</content><link rel='replies' type='application/atom+xml' href='http://sb-code.blogspot.com/feeds/9094303114856553534/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1175291116276710141/9094303114856553534' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/9094303114856553534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/9094303114856553534'/><link rel='alternate' type='text/html' href='http://sb-code.blogspot.com/2013/09/install-caff-on-mac.html' title='install caff on Mac'/><author><name>Superbil</name><uri>http://www.blogger.com/profile/11542562016258025986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1175291116276710141.post-8037430327324439038</id><published>2013-06-03T19:23:00.001-07:00</published><updated>2013-06-03T19:23:57.238-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="xcode"/><title type='text'>提升 Xcode 開發速度的工具</title><content type='html'>&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://hokilatw.blogspot.tw/2013/05/xcode.html&quot;&gt;天天算optima，人生就會optima了嗎: Xcode 小工具&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://bradleylin.net/blog/speed-up-your-ios-development&quot;&gt;快速開發 iOS app ( 開發篇 )&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://revealapp.com/&quot;&gt;Reveal App&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
先做一個記錄，有使用心得再寫一篇 XD&lt;br /&gt;
&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sb-code.blogspot.com/feeds/8037430327324439038/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1175291116276710141/8037430327324439038' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/8037430327324439038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/8037430327324439038'/><link rel='alternate' type='text/html' href='http://sb-code.blogspot.com/2013/06/xcode.html' title='提升 Xcode 開發速度的工具'/><author><name>Superbil</name><uri>http://www.blogger.com/profile/11542562016258025986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1175291116276710141.post-6326091491664195661</id><published>2013-05-03T00:41:00.001-07:00</published><updated>2013-05-03T00:45:07.513-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="emacs"/><category scheme="http://www.blogger.com/atom/ns#" term="org-mode"/><title type='text'>升級到 org-mode 8.x 出現 org-with-silent-modifications(nil)</title><content type='html'>&lt;br /&gt;
&lt;pre&gt;Invalid function: org-with-silent-modifications&lt;/pre&gt;&lt;br /&gt;
升級 org-mode 到 8.0.2 之後，若遇到上面的問題，要把 session 給清掉&lt;br /&gt;
&lt;br /&gt;
做法就是 &lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;M-x desktop-clear&lt;/pre&gt;&lt;br /&gt;
然後重開 emacs&lt;br /&gt;
&lt;br /&gt;
參考資料：&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://comments.gmane.org/gmane.emacs.orgmode/70880&quot;&gt;Org-Mode for GNU Emacs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://orgmode.org/Changes.html#sec-1&quot;&gt;Org mode for Emacs – Release notes&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://sb-code.blogspot.com/feeds/6326091491664195661/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1175291116276710141/6326091491664195661' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/6326091491664195661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/6326091491664195661'/><link rel='alternate' type='text/html' href='http://sb-code.blogspot.com/2013/05/org-mode-8x-org-with-silent.html' title='升級到 org-mode 8.x 出現 org-with-silent-modifications(nil)'/><author><name>Superbil</name><uri>http://www.blogger.com/profile/11542562016258025986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1175291116276710141.post-3413801645341403854</id><published>2013-03-21T11:09:00.000-07:00</published><updated>2013-03-21T11:15:21.356-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash"/><category scheme="http://www.blogger.com/atom/ns#" term="git"/><category scheme="http://www.blogger.com/atom/ns#" term="svn"/><title type='text'>git svn tag 轉換成真實的 tag</title><content type='html'>通常使用 git-svn 抓取 svn 的時候會下這樣的指令：&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: bash&quot;&gt;git svn clone https://remote.server/svn/ -s response
&lt;/pre&gt;&lt;br /&gt;
這樣可以把 svn 轉換成 git 匯入，但是 svn 的 tag 並沒有轉換成 git 的版本&lt;br /&gt;
&lt;br /&gt;
接下來只要抓下的目錄下再輸入以下的指令就可以轉換成 git 使用的 tag&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: bash&quot;&gt;git for-each-ref refs/remotes/tags \
--shell --format=&quot;r=%(refname:short) t=\${r#tags/}&quot; | \
while read e ; do eval &quot;$e&quot;; \
git tag -f $t refs/remotes/$r; \
git branch -d -r $r; \
done
&lt;/pre&gt;&lt;br /&gt;
相關文章：&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://gitready.com/advanced/2009/02/16/convert-git-svn-tag-branches-to-real-tags.html&quot;&gt;git ready » convert git-svn tag branches to real tags&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://sb-code.blogspot.com/feeds/3413801645341403854/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1175291116276710141/3413801645341403854' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/3413801645341403854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/3413801645341403854'/><link rel='alternate' type='text/html' href='http://sb-code.blogspot.com/2013/03/git-svn-tag-tag.html' title='git svn tag 轉換成真實的 tag'/><author><name>Superbil</name><uri>http://www.blogger.com/profile/11542562016258025986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1175291116276710141.post-1432343779473977782</id><published>2013-03-21T11:00:00.000-07:00</published><updated>2013-03-21T11:00:10.577-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git"/><category scheme="http://www.blogger.com/atom/ns#" term="mac"/><title type='text'>git fetch 遇到的怪問題</title><content type='html'>&lt;br /&gt;
在使用 git-svn-fetch 的時候 系統竟然吐出這樣的 log&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: bash&quot;&gt;fatal: Cannot open &#39;.git/9YHRNPjFMp&#39;: Resource temporarily unavailable
hash-object -w --stdin-paths --no-filters: command returned error: 128

error closing pipe: Bad file descriptor at /usr/local/Cellar/git/1.8.2/libexec/git-core/git-svn line 0
error closing pipe: Bad file descriptor at /usr/local/Cellar/git/1.8.2/libexec/git-core/git-svn line 0
&lt;/pre&gt;&lt;br /&gt;
同樣的來源在不同的電腦上跑就可以正常 fetch ，後來發現是直接在虛擬碟 (nas) 上使用的關係&lt;br /&gt;
&lt;br /&gt;
只要在實體硬碟上 fetch 就能正常運作了&lt;br /&gt;
&lt;br /&gt;
相關文章：&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://stackoverflow.com/questions/7362709/git-pull-fails-with-bad-pack-header-error&quot;&gt;Git pull fails with bad pack header error - Stack Overflow&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://sb-code.blogspot.com/feeds/1432343779473977782/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1175291116276710141/1432343779473977782' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/1432343779473977782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/1432343779473977782'/><link rel='alternate' type='text/html' href='http://sb-code.blogspot.com/2013/03/git-fetch.html' title='git fetch 遇到的怪問題'/><author><name>Superbil</name><uri>http://www.blogger.com/profile/11542562016258025986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1175291116276710141.post-3386832200828134641</id><published>2012-08-28T19:28:00.000-07:00</published><updated>2012-08-28T19:28:44.370-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iPython"/><category scheme="http://www.blogger.com/atom/ns#" term="mac"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><category scheme="http://www.blogger.com/atom/ns#" term="qt4"/><title type='text'>ipython GUI on mac</title><content type='html'>I use homebrew, easy_install to install all package.&lt;br /&gt;
&lt;br /&gt;
You will need zmq, pyzmq, pygments, pyqt, ipython&lt;br /&gt;
&lt;br /&gt;
First you need to use homebrew install zmq, pyqt.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: bash&quot;&gt;brew install zmq pyqt&lt;/pre&gt;&lt;br /&gt;
and install ipython, pygments, pyzmq&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: bash&quot;&gt;easy_install pyzmq pygments ipython&lt;/pre&gt;&lt;br /&gt;
then you done it.&lt;br /&gt;
&lt;br /&gt;
try to use &lt;br /&gt;
&lt;pre class=&quot;brush: bash&quot;&gt;ipython qtconsole&lt;/pre&gt;to try it!</content><link rel='replies' type='application/atom+xml' href='http://sb-code.blogspot.com/feeds/3386832200828134641/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1175291116276710141/3386832200828134641' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/3386832200828134641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/3386832200828134641'/><link rel='alternate' type='text/html' href='http://sb-code.blogspot.com/2012/08/ipython-gui-on-mac.html' title='ipython GUI on mac'/><author><name>Superbil</name><uri>http://www.blogger.com/profile/11542562016258025986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1175291116276710141.post-6416593814188143661</id><published>2011-12-21T21:18:00.000-08:00</published><updated>2011-12-21T21:18:58.638-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="GData"/><category scheme="http://www.blogger.com/atom/ns#" term="obj-c"/><category scheme="http://www.blogger.com/atom/ns#" term="osx"/><title type='text'>上傳圖片到Google contact</title><content type='html'>基於&lt;a href=&quot;http://code.google.com/intl/zh-TW/apis/contacts/docs/2.0/reference.html#Photos&quot;&gt;Google Contact Photos定義&lt;/a&gt;, 但是一直找不到在&lt;a href=&quot;http://code.google.com/p/gdata-objectivec-client/&quot;&gt;gdata-objectivec-client&lt;/a&gt;中&lt;a href=&quot;http://code.google.com/intl/zh-TW/apis/contacts/docs/3.0/developers_guide.html#AddUpdating_photo&quot;&gt;上傳圖片&lt;/a&gt;的方法，自己試出來的方法如下&lt;br /&gt;
&lt;br /&gt;
code on &lt;a href=&quot;http://pastie.org/3055753&quot;&gt;Pastie&lt;/a&gt;,&lt;a href=&quot;https://gist.github.com/1508976&quot;&gt;gist&lt;/a&gt;&lt;br /&gt;
&lt;pre class=&quot;brush: cpp&quot;&gt;- (GDataEntryContact *)uploadPhotoWithContactService:(GDataServiceGoogleContact *)contactService contact:(GDataEntryContact *)targetContact photoData:(NSData *)photoData
{
    GDataEntryBase *uploadPhotoEntry = [GDataEntryBase entry];
    
    // file path on iOS don&#39;t need
    NSString *mimeType = [GDataUtilities MIMETypeForFileAtPath:nil
                                               defaultMIMEType:@&quot;image/*&quot;];
    
    [uploadPhotoEntry setUploadMIMEType:mimeType];
    [uploadPhotoEntry setUploadData:photoData];
    // |setShouldUploadDataOnly| will only upload data without entry data
    [uploadPhotoEntry setShouldUploadDataOnly:YES];
    
    NSURL *postURL = [[targetContact photoLink] URL];
    __block GDataEntryContact *newContactEntry = nil;
    __block NSError *newError = nil;
    
    [contactService fetchEntryByUpdatingEntry:uploadPhotoEntry forEntryURL:postURL completionHandler:^(GDataServiceTicket *ticket, GDataEntryBase *entry, NSError *error) {
        newContactEntry = (GDataEntryContact *)entry;
        newError = error;
    }];
    return newContactEntry;
}&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://sb-code.blogspot.com/feeds/6416593814188143661/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1175291116276710141/6416593814188143661' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/6416593814188143661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/6416593814188143661'/><link rel='alternate' type='text/html' href='http://sb-code.blogspot.com/2011/12/google-contact.html' title='上傳圖片到Google contact'/><author><name>Superbil</name><uri>http://www.blogger.com/profile/11542562016258025986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1175291116276710141.post-8532982365176852572</id><published>2011-07-26T23:15:00.000-07:00</published><updated>2011-12-20T16:38:33.206-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash"/><category scheme="http://www.blogger.com/atom/ns#" term="git"/><category scheme="http://www.blogger.com/atom/ns#" term="msys"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>call git extensions from msys</title><content type='html'>&lt;pre class=&quot;brush: bash&quot;&gt;GitE=&#39;/C/Progra~1/GitExtensions/GitExtensions.exe&#39;

$GitE browse &#39;pwd&#39; &amp;
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://sb-code.blogspot.com/feeds/8532982365176852572/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1175291116276710141/8532982365176852572' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/8532982365176852572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/8532982365176852572'/><link rel='alternate' type='text/html' href='http://sb-code.blogspot.com/2011/07/call-git-extensions-from-msys.html' title='call git extensions from msys'/><author><name>Superbil</name><uri>http://www.blogger.com/profile/11542562016258025986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1175291116276710141.post-5320316607032343347</id><published>2011-03-31T03:18:00.000-07:00</published><updated>2011-03-31T03:28:52.070-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash"/><category scheme="http://www.blogger.com/atom/ns#" term="gvim"/><category scheme="http://www.blogger.com/atom/ns#" term="msys"/><title type='text'>call gvim on msys</title><content type='html'>my gvim in on &lt;b&gt;d:/Program Files/Vim&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
/usr/local/bin/gvim&lt;br /&gt;
&lt;pre class=&quot;brush: bash&quot;&gt;/d/Program\ Files/Vim/vim74/gvim.exe &quot;$*&quot;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://sb-code.blogspot.com/feeds/5320316607032343347/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1175291116276710141/5320316607032343347' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/5320316607032343347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/5320316607032343347'/><link rel='alternate' type='text/html' href='http://sb-code.blogspot.com/2011/03/call-gvim-on-msys.html' title='call gvim on msys'/><author><name>Superbil</name><uri>http://www.blogger.com/profile/11542562016258025986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1175291116276710141.post-8199552461663621039</id><published>2010-11-08T00:57:00.000-08:00</published><updated>2010-11-08T00:57:59.791-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="html"/><title type='text'>IE8 X-UA-Compatible重繪問題</title><content type='html'>IE8在讀到舊版的css之後會造成重繪問題。本來這樣設定在第一次讀取的之後還是錯誤的，然後再次讀取（重新整理）之後就正確。&lt;br /&gt;
&lt;pre class=&quot;brush: html&quot;&gt;&amp;lt;head&amp;gt;
…
&amp;lt;meta http-equiv=&amp;quot;X-UA-Compatible&amp;quot; content=&amp;quot;IE=8&amp;quot; /&amp;gt;
&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;…&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;&lt;/pre&gt;&lt;br /&gt;
測試出來的解法為，在呼叫Style的前面和後面都用這個語法包上。&lt;br /&gt;
&lt;pre class=&quot;brush: html&quot;&gt;&amp;lt;head&amp;gt;
…
&amp;lt;meta http-equiv=&amp;quot;X-UA-Compatible&amp;quot; content=&amp;quot;IE=8&amp;quot; /&amp;gt;
&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;…&amp;lt;/style&amp;gt;
&amp;lt;meta http-equiv=&amp;quot;X-UA-Compatible&amp;quot; content=&amp;quot;IE=8&amp;quot; /&amp;gt;
&amp;lt;/head&amp;gt;&lt;/pre&gt;如此一來，在讀到舊版的時候就會是正確的&lt;br /&gt;
&lt;br /&gt;
自己想到可能的原因有，style設定檔是內崁入html，在呼叫的時候的順序問題(?)，所以用此方法可以解決。&lt;br /&gt;
&lt;br /&gt;
而且，這個方法若移除上方的那個，依舊是錯誤&lt;br /&gt;
&lt;br /&gt;
當然！最好的辦法是重新寫過CSS，不這就不在這篇的分享範圍裡了 XD</content><link rel='replies' type='application/atom+xml' href='http://sb-code.blogspot.com/feeds/8199552461663621039/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1175291116276710141/8199552461663621039' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/8199552461663621039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/8199552461663621039'/><link rel='alternate' type='text/html' href='http://sb-code.blogspot.com/2010/11/ie8-x-ua-compatible.html' title='IE8 X-UA-Compatible重繪問題'/><author><name>Superbil</name><uri>http://www.blogger.com/profile/11542562016258025986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1175291116276710141.post-3844421592618194777</id><published>2010-10-18T00:35:00.000-07:00</published><updated>2011-02-13T18:20:00.521-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="M$"/><title type='text'>Keep Focused 自行修改版</title><content type='html'>Keep Focused 這個好用的小工具一直有一些問題，在找到&lt;a href=&quot;http://keepfocused.codeplex.com/&quot;&gt;原始出處&lt;/a&gt;後，就自己動手把他修了一下，並且把修完的patch也回給作者&lt;br /&gt;
&lt;br /&gt;
功能依舊很簡單，若我做的版本有什麼問題，也請在&lt;a href=&quot;http://github.com/Superbil/Keep-Focused/issues&quot;&gt;這裡回報給我&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
自己修正的&lt;a href=&quot;http://github.com/Superbil/Keep-Focused&quot;&gt;原始碼在這&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
更新內容：&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;新增最後視窗位置儲存於設定檔&lt;/li&gt;
&lt;li&gt;新增改變TaskList路徑&lt;/li&gt;
&lt;li&gt;當休息5分鐘結束後，顯示提示訊息&lt;/li&gt;
&lt;li&gt;修正工作清單未正確存入檔案之問題 [beta 2]&lt;/li&gt;
&lt;li&gt;視窗重新配制設計 [0.3.3]&lt;/li&gt;
&lt;li&gt;增加正體中文支援 [0.3.3]&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;主程式檔案下載 &lt;a href=&quot;http://github.com/Superbil/Keep-Focused/downloads&quot;&gt;這裡&lt;/a&gt;&amp;nbsp;&lt;b&gt;&lt;a href=&quot;http://www.mediafire.com/?7h5hg29j4q30vt5&quot;&gt;分流&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
中文版檔案下載&amp;nbsp;&lt;a href=&quot;http://github.com/Superbil/Keep-Focused/downloads&quot;&gt;這裡&lt;/a&gt;&amp;nbsp;&lt;b&gt;&lt;a href=&quot;http://www.mediafire.com/?5chk212bnxill25&quot;&gt;分流&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
PS.中文版內有zh-TW這個資料夾，跟主程式放在同一目錄下即可&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sb-code.blogspot.com/feeds/3844421592618194777/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1175291116276710141/3844421592618194777' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/3844421592618194777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/3844421592618194777'/><link rel='alternate' type='text/html' href='http://sb-code.blogspot.com/2010/10/keep-focused.html' title='Keep Focused 自行修改版'/><author><name>Superbil</name><uri>http://www.blogger.com/profile/11542562016258025986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1175291116276710141.post-5924529696681617778</id><published>2010-10-01T22:27:00.000-07:00</published><updated>2010-10-01T22:27:50.518-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash"/><category scheme="http://www.blogger.com/atom/ns#" term="osx"/><title type='text'>[Mac]多帳號同時登入 Dropbox</title><content type='html'>&lt;script src=&quot;http://gist.github.com/607338.js&quot;&gt; &lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;參考文件：
&lt;li&gt;&lt;a href=&quot;http://mkhere.blogspot.com/2010/03/dropbox-mac.html&quot;&gt;Dropbox 在 Mac 上的密技&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://sb-code.blogspot.com/feeds/5924529696681617778/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1175291116276710141/5924529696681617778' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/5924529696681617778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/5924529696681617778'/><link rel='alternate' type='text/html' href='http://sb-code.blogspot.com/2010/10/mac-dropbox.html' title='[Mac]多帳號同時登入 Dropbox'/><author><name>Superbil</name><uri>http://www.blogger.com/profile/11542562016258025986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1175291116276710141.post-276305613568288374</id><published>2010-09-26T00:40:00.001-07:00</published><updated>2010-09-26T00:42:19.856-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash"/><category scheme="http://www.blogger.com/atom/ns#" term="osx"/><title type='text'>找出類型為檔案並變更其權限</title><content type='html'>&lt;pre class=&quot;brush: bash&quot;&gt;find . -type f -print -exec chmod -x &#39;{}&#39; \;&lt;/pre&gt;&lt;br /&gt;
註：ecec的結尾一定要是&#39;\;&#39;</content><link rel='replies' type='application/atom+xml' href='http://sb-code.blogspot.com/feeds/276305613568288374/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1175291116276710141/276305613568288374' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/276305613568288374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/276305613568288374'/><link rel='alternate' type='text/html' href='http://sb-code.blogspot.com/2010/09/blog-post.html' title='找出類型為檔案並變更其權限'/><author><name>Superbil</name><uri>http://www.blogger.com/profile/11542562016258025986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1175291116276710141.post-1624219520098846348</id><published>2010-09-25T04:27:00.000-07:00</published><updated>2010-09-25T04:37:47.112-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash"/><category scheme="http://www.blogger.com/atom/ns#" term="git"/><title type='text'>把兩個遠端git合併成一個再push回去</title><content type='html'>會做這件事除了練習git remote之外，當做是一種技巧。&lt;br /&gt;
&lt;br /&gt;
這次主要是把自己寫的&lt;a href=&quot;http://gist.github.com/171579&quot;&gt;vimrc&lt;/a&gt;和&lt;a href=&quot;http://gist.github.com/171581&quot;&gt;gvimrc&lt;/a&gt;和併成一個(成果合併在&lt;a href=&quot;http://gist.github.com/171579&quot;&gt;vimrc&lt;/a&gt;這個裡面了)&lt;br /&gt;
&lt;br /&gt;
過程如下：&lt;br /&gt;
&lt;pre class=&quot;brush: bash&quot;&gt;# 把主要的那個clone下來
git clone git@gist.github.com:171579.git my_vimrc
# 移到目標目錄
cd my_vimrc
# 新增一個新的遠端連接點並tag為gvimrc
git remote add gvimrc git@gist.github.com:171581.git
# 抓取gvimrc內容
git fetch
# 建一個新的branch命名為gvimrc並把遠端指到這個gvimrc
git checkout -b gvimrc gvimrc/master
# 換回master
git checkout master
# 合併gvimrc到master
git merge gvimrc
# 把合併的結果push出去,這會push到vimrc這個
git push&lt;/pre&gt;&lt;br /&gt;
參考文件：&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://progit.org/book/ch3-5.html&quot;&gt;Pro Git - Remote Branches&lt;/a&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://sb-code.blogspot.com/feeds/1624219520098846348/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1175291116276710141/1624219520098846348' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/1624219520098846348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/1624219520098846348'/><link rel='alternate' type='text/html' href='http://sb-code.blogspot.com/2010/09/gitpush.html' title='把兩個遠端git合併成一個再push回去'/><author><name>Superbil</name><uri>http://www.blogger.com/profile/11542562016258025986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1175291116276710141.post-4349349881319267039</id><published>2010-09-20T06:47:00.000-07:00</published><updated>2010-09-20T06:48:29.631-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash"/><category scheme="http://www.blogger.com/atom/ns#" term="git"/><category scheme="http://www.blogger.com/atom/ns#" term="xcode"/><title type='text'>Mac OSX 下專用的 Git ignore file</title><content type='html'>設定家目錄下的.gitignore為通用設定檔&lt;br /&gt;
&lt;pre class=&quot;brush: bash&quot;&gt;git config --global core.excludesfile ~/.gitignore&lt;/pre&gt;&lt;br /&gt;
參考一些Xode的暫存檔更新後，內容如下&lt;br /&gt;
&lt;script src=&quot;http://gist.github.com/504935.js&quot;&gt; &lt;/script&gt;&lt;br /&gt;
若有興趣的可以用&lt;a href=&quot;http://gist.github.com/504935&quot;&gt;git抓取原始碼&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
PS.原來gist也能用git回來或是push回去阿，實在是太有趣了 XD</content><link rel='replies' type='application/atom+xml' href='http://sb-code.blogspot.com/feeds/4349349881319267039/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1175291116276710141/4349349881319267039' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/4349349881319267039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/4349349881319267039'/><link rel='alternate' type='text/html' href='http://sb-code.blogspot.com/2010/09/mac-osx-git-ignore-file.html' title='Mac OSX 下專用的 Git ignore file'/><author><name>Superbil</name><uri>http://www.blogger.com/profile/11542562016258025986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1175291116276710141.post-7280655830697462453</id><published>2010-09-17T01:37:00.000-07:00</published><updated>2010-09-17T01:37:27.617-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash"/><title type='text'>把iTunes 10的圖示從直式換回橫式</title><content type='html'>在終端機執行重開即可&lt;br /&gt;
&lt;pre class=&quot;brush: bash&quot;&gt;defaults write com.apple.iTunes full-window -1&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://sb-code.blogspot.com/feeds/7280655830697462453/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1175291116276710141/7280655830697462453' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/7280655830697462453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/7280655830697462453'/><link rel='alternate' type='text/html' href='http://sb-code.blogspot.com/2010/09/itunes-10.html' title='把iTunes 10的圖示從直式換回橫式'/><author><name>Superbil</name><uri>http://www.blogger.com/profile/11542562016258025986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1175291116276710141.post-8571879731959090092</id><published>2010-09-14T04:02:00.000-07:00</published><updated>2010-09-14T04:02:39.990-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git"/><title type='text'>用homebrew裝git+svn</title><content type='html'>預設定的git沒有git-svn的功能，在&lt;a href=&quot;http://github.com/mxcl/homebrew/issues/issue/43&quot;&gt;這篇文章&lt;/a&gt;查到方法&lt;br /&gt;
&lt;pre class=&quot;brush: bash&quot;&gt;brew install git --with-svn&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://sb-code.blogspot.com/feeds/8571879731959090092/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1175291116276710141/8571879731959090092' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/8571879731959090092'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/8571879731959090092'/><link rel='alternate' type='text/html' href='http://sb-code.blogspot.com/2010/09/homebrewgitsvn.html' title='用homebrew裝git+svn'/><author><name>Superbil</name><uri>http://www.blogger.com/profile/11542562016258025986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1175291116276710141.post-4300707069538174330</id><published>2010-08-19T06:56:00.000-07:00</published><updated>2010-08-19T06:56:43.073-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="html"/><category scheme="http://www.blogger.com/atom/ns#" term="script"/><title type='text'>更新syntaxhighlighter到3.0.83</title><content type='html'>基於很久沒有更新，順手直接把server上2.x版的換掉，目前看來都是好的！&lt;br /&gt;
&lt;br /&gt;
Great!! &lt;br /&gt;
&lt;pre class=&quot;brush: html&quot;&gt;&lt;span&gt;如此順利真好！&lt;/span&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://sb-code.blogspot.com/feeds/4300707069538174330/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1175291116276710141/4300707069538174330' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/4300707069538174330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/4300707069538174330'/><link rel='alternate' type='text/html' href='http://sb-code.blogspot.com/2010/08/syntaxhighlighter3083.html' title='更新syntaxhighlighter到3.0.83'/><author><name>Superbil</name><uri>http://www.blogger.com/profile/11542562016258025986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1175291116276710141.post-5142068053891372545</id><published>2010-08-07T03:33:00.000-07:00</published><updated>2010-08-07T03:33:06.964-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="appscript"/><title type='text'>Mac上自製靜音按鈕</title><content type='html'>系統預設裡面找不到靜音的熱鍵，只好自製&lt;br /&gt;
&lt;br /&gt;
功能很簡單，若已經是靜音的狀態再執行一次就會回復&lt;br /&gt;
&lt;script src=&quot;http://gist.github.com/512662.js?file=mute.scpt&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://sb-code.blogspot.com/feeds/5142068053891372545/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1175291116276710141/5142068053891372545' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/5142068053891372545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/5142068053891372545'/><link rel='alternate' type='text/html' href='http://sb-code.blogspot.com/2010/08/mac.html' title='Mac上自製靜音按鈕'/><author><name>Superbil</name><uri>http://www.blogger.com/profile/11542562016258025986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1175291116276710141.post-6099112069079151590</id><published>2009-07-17T06:35:00.000-07:00</published><updated>2009-07-17T06:36:07.104-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="autoit"/><title type='text'>twow 釣魚小程式</title><content type='html'>簡易釣魚助手&lt;br /&gt;
&lt;br /&gt;
功能：自動拋竿、收魚竿&lt;br /&gt;
&lt;br /&gt;
請自行下載，並用autoit編譯它&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;stalk&quot;&gt;謎之聲：其實是為了測試github才丟出來的XD&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://github.com/Superbil/twow-fishingbot/tree&quot;&gt;code&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://sb-code.blogspot.com/feeds/6099112069079151590/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1175291116276710141/6099112069079151590' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/6099112069079151590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/6099112069079151590'/><link rel='alternate' type='text/html' href='http://sb-code.blogspot.com/2009/07/twow.html' title='twow 釣魚小程式'/><author><name>Superbil</name><uri>http://www.blogger.com/profile/11542562016258025986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1175291116276710141.post-5851329891069630945</id><published>2009-04-18T09:28:00.000-07:00</published><updated>2010-09-25T04:43:13.684-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash"/><category scheme="http://www.blogger.com/atom/ns#" term="git"/><category scheme="http://www.blogger.com/atom/ns#" term="xcode"/><title type='text'>自動建立XCode專用的git ignore file</title><content type='html'>寫了一個簡單的建立git程式&lt;br /&gt;
&lt;br /&gt;
工作流程如下：&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;呼叫Git init程式,建立基本git資料庫&lt;/li&gt;
&lt;li&gt;產生.gitignore&lt;/li&gt;
&lt;li&gt;產生.gitattributes&lt;/li&gt;
&lt;li&gt;把兩個檔案加入git資料庫&lt;/li&gt;
&lt;li&gt;加上初始註解&lt;/li&gt;
&lt;/ol&gt;&lt;script src=&quot;http://gist.github.com/596761.js&quot;&gt; &lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://sb-code.blogspot.com/feeds/5851329891069630945/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1175291116276710141/5851329891069630945' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/5851329891069630945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/5851329891069630945'/><link rel='alternate' type='text/html' href='http://sb-code.blogspot.com/2009/04/xcodegit-ignore-file.html' title='自動建立XCode專用的git ignore file'/><author><name>Superbil</name><uri>http://www.blogger.com/profile/11542562016258025986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1175291116276710141.post-7115344220347172997</id><published>2008-09-14T06:46:00.000-07:00</published><updated>2010-08-19T06:48:33.973-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><category scheme="http://www.blogger.com/atom/ns#" term="html"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><title type='text'>程式碼高亮度過濾</title><content type='html'>本來是使用CSS對pre做出明顯的差別，但是後來覺得這樣程式碼的閱讀性還是很低，因此把&lt;a href=&quot;http://code.google.com/p/syntaxhighlighter/&quot;&gt;syntaxhighlighter&lt;/a&gt;裝上。&lt;br /&gt;
&lt;pre class=&quot;brush: css&quot;&gt;/*Code*/
pre {
  display: block;
  font-family: &#39;Courier New&#39;;
  font-size: 9pt;
  overflow: auto;
  border: 1px solid #ccc;
  padding: 10px 10px 10px 21px;
  max-height: 1200px;
  line-height: 1.2em;
  letter-spacing: 0px;
  color: #000;
  background: #ccc url(code_bg.gif) left top repeat-y;
}&lt;/pre&gt;CSS連接碼，一定要放在編輯HTML，Head之中&lt;br /&gt;
&lt;pre class=&quot;brush: html&quot;&quot;&gt;&amp;lt;link href=&#39;你的目錄/Styles/SyntaxHighlighter.css&#39; rel=&#39;stylesheet&#39; type=&#39;text/css&#39;/&amp;gt;&lt;/pre&gt;Javascript連接檔，在旁邊開一個HTML/JavaScript，名稱留白，放入即可&lt;br /&gt;
&lt;pre class=&quot;brush: js&quot;&gt;&amp;lt;script language=&amp;quot;javascript&amp;quot; src=&amp;quot;你的目錄/Scripts/shCore.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script language=&amp;quot;javascript&amp;quot; src=&amp;quot;你的目錄/Scripts/shBrushCSharp.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script language=&amp;quot;javascript&amp;quot; src=&amp;quot;你的目錄/Scripts/shBrushCpp.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script language=&amp;quot;javascript&amp;quot; src=&amp;quot;你的目錄/Scripts/shBrushJava.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script language=&amp;quot;javascript&amp;quot; src=&amp;quot;你的目錄/Scripts/shBrushPhp.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script language=&amp;quot;javascript&amp;quot; src=&amp;quot;你的目錄/Scripts/shBrushJScript.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script language=&amp;quot;javascript&amp;quot; src=&amp;quot;你的目錄/Scripts/shBrushRuby.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script language=&amp;quot;javascript&amp;quot; src=&amp;quot;你的目錄/Scripts/shBrushSql.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script language=&amp;quot;javascript&amp;quot; src=&amp;quot;你的目錄/Scripts/shBrushXml.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script language=&amp;quot;javascript&amp;quot; src=&amp;quot;你的目錄/Scripts/shBrushCss.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script language=&amp;quot;javascript&amp;quot;&amp;gt;
dp.SyntaxHighlighter.ClipboardSwf = &#39;你的目錄/Scripts/clipboard.swf&#39;;
dp.SyntaxHighlighter.BloggerMode();
dp.SyntaxHighlighter.HighlightAll(&#39;code&#39;);
&amp;lt;/script&amp;gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://sb-code.blogspot.com/feeds/7115344220347172997/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1175291116276710141/7115344220347172997' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/7115344220347172997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/7115344220347172997'/><link rel='alternate' type='text/html' href='http://sb-code.blogspot.com/2008/09/blog-post_14.html' title='程式碼高亮度過濾'/><author><name>Superbil</name><uri>http://www.blogger.com/profile/11542562016258025986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1175291116276710141.post-4224197150258150808</id><published>2008-09-01T01:58:00.000-07:00</published><updated>2008-09-14T05:35:35.172-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c++"/><title type='text'>計算兩者之間花了多少時間</title><content type='html'>&lt;a href=&quot;http://pastie.org/263877&quot;&gt;code&lt;/a&gt;&lt;br /&gt;
&lt;pre name=&quot;code&quot; class=&quot;cpp&quot;&gt;#include &amp;lt;iostream&amp;gt;

using namespace std;

int main ()
{
  time_t start,end;
  // save input string
  char szInput [256];
 
  // count start
  time (&amp;amp;start);
  printf (&amp;quot;Please, enter your name: &amp;quot;);
  gets (szInput);
  // count stop
  time (&amp;amp;end);
  // save cost time dif = end - start
  double dif = difftime (end,start);
  printf (&amp;quot;Hi %s.\n&amp;quot;, szInput);
  printf (&amp;quot;You have taken %.2lf seconds to type your name.\n&amp;quot;, dif );
 
  system(&amp;quot;pause&amp;quot;);
}&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://sb-code.blogspot.com/feeds/4224197150258150808/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1175291116276710141/4224197150258150808' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/4224197150258150808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/4224197150258150808'/><link rel='alternate' type='text/html' href='http://sb-code.blogspot.com/2008/09/blog-post.html' title='計算兩者之間花了多少時間'/><author><name>Superbil</name><uri>http://www.blogger.com/profile/11542562016258025986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1175291116276710141.post-6613130719615261318</id><published>2008-08-30T02:30:00.000-07:00</published><updated>2008-09-14T06:25:04.184-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><title type='text'>中置轉成後置</title><content type='html'>&lt;a href=&quot;http://pastie.org/263051&quot;&gt;code&lt;/a&gt;&lt;br /&gt;
&lt;pre name=&quot;code&quot; class=&quot;java&quot;&gt;package javahomework;

import javax.swing.JOptionPane;

class postfix {
 private char stack[], z[];
 private int pri[] = { 0, 1, 1, 2, 2, 3 };
 private char oper[] = { &#39;(&#39;, &#39;+&#39;, &#39;-&#39;, &#39;*&#39;, &#39;/&#39;, &#39;^&#39; };
 private int top, n, a;
 private String postfix = &amp;quot;&amp;quot;;
 private char x[], y;

 public postfix() {
  n = 50;
  top = 0;
  a = 0;
  stack = new char[n];
  z = new char[n];
 }

 public String infix_to_postfix(String infix) {
  int i = 0, j = infix.length();
  x = infix.toCharArray();
  for (i = 0; i &amp;lt; j; i++) {
   switch (x[i]) {
   case &#39;(&#39;:
    push(x[i]);
    break;
   case &#39;)&#39;:
    y = pop();
    while (!empty() &amp;amp;&amp;amp; y != &#39;(&#39;) {
     z[a++] = y;
     y = pop();
    }
    break;
   case &#39;+&#39;:
   case &#39;-&#39;:
   case &#39;*&#39;:
   case &#39;/&#39;:
   case &#39;^&#39;:
    y = top();
    while (pre(y) &amp;gt;= pre(x[i])) {
     z[a++] = pop();
     y = top();
    }
    push(x[i]);
    break;
   default:
    z[a++] = x[i];
   }
  }
  while (!empty()) {
   z[a++] = pop();
  }
  for (i = 0; i &amp;lt;= a - 2; i++) {

   postfix += z[i];
   postfix += &amp;quot; &amp;quot;;
  }
  return postfix;
 }

 private boolean empty() {
  return (top &amp;lt; 0) ? true : false;
 }

 private boolean full() {
  return (top &amp;gt;= n - 1) ? true : false;
 }

 private void push(char sta) {
  stack[++top] = sta;
 }

 private char pop() {
  return stack[top--];
 }

 private char top() {
  return stack[top];
 }

 private int pre(char op) {
  for (int i = 0; i &amp;lt; 6; i++)
   if (oper[i] == op)
    return pri[i];
  return -1;
 }

 private void check(char x, char y) {
  y = top();
  while (pre(y) &amp;gt;= pre(x)) {
   postfix += pop();
   y = top();
  }
  push(x);
 }

}

public class HW18 {

 public static void main(String arg[]) {
  String input = JOptionPane.showInputDialog(null,
    &amp;quot;Please input string (ex.1+2-3)&amp;quot;);
  postfix p = new postfix();
  JOptionPane.showMessageDialog(null, 
    String.valueOf(p.infix_to_postfix(input)));
 }
}&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://sb-code.blogspot.com/feeds/6613130719615261318/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1175291116276710141/6613130719615261318' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/6613130719615261318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1175291116276710141/posts/default/6613130719615261318'/><link rel='alternate' type='text/html' href='http://sb-code.blogspot.com/2008/08/blog-post_30.html' title='中置轉成後置'/><author><name>Superbil</name><uri>http://www.blogger.com/profile/11542562016258025986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>