<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>素心如何天上月 &#187; General</title> <atom:link href="http://yongsun.me/category/general/feed/" rel="self" type="application/rss+xml" /><link>http://yongsun.me</link> <description>Yong Sun&#039;s Blog</description> <lastBuildDate>Sat, 17 Dec 2011 16:17:35 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>Gibbs采样的粗浅理解</title><link>http://yongsun.me/2011/10/gibbs%e9%87%87%e6%a0%b7%e7%9a%84%e7%b2%97%e6%b5%85%e7%90%86%e8%a7%a3/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=gibbs%25e9%2587%2587%25e6%25a0%25b7%25e7%259a%2584%25e7%25b2%2597%25e6%25b5%2585%25e7%2590%2586%25e8%25a7%25a3</link> <comments>http://yongsun.me/2011/10/gibbs%e9%87%87%e6%a0%b7%e7%9a%84%e7%b2%97%e6%b5%85%e7%90%86%e8%a7%a3/#comments</comments> <pubDate>Thu, 27 Oct 2011 01:39:07 +0000</pubDate> <dc:creator>yongsun</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[Gibbs Sampling]]></category> <category><![CDATA[LDA]]></category> <guid
isPermaLink="false">http://yongsun.me/?p=1674</guid> <description><![CDATA[前段时间一直在看LDA，原论文采用的Variational Inference有点看不懂，后来看到很多人推崇Gibbs采样是求LDA参数的一种非常有效的方式，于是就埋头去看Gibbs采样去了。不过还是有些云里雾里，这里记下一些自己粗浅的理解，请大家批评指正… 1. MC积分巧妙的把对解析式的积分，拆解成一个概率期望问题，并通过大量采样来得到近似的期望；为了将采样集中在概率比较大的地方，提出了多种采样方法，例如rejection，importance，sampling-importance-resampling等等，MCMC就是其中的一种… 2. MCMC中的MH算法所构造的Markov链，其状态节点x^(t)，是在样本空间X上，⑴ 其构造方法是具有Markov性质的 ⑵ 且MH kernel满足交换性 P(j→k) π_j = P(k→j) π_k；因此MH构造的是一个非周期不可约稳定收敛的马氏链… 3. 而因为Gibbs采样是MH算法的一种特例（α==1)，因此可以保证Gibbs抽取的样本，也构成一个非周期不可约稳定收敛的马氏链；Gibbs采样适用于样本是两维或以上的情况；通过积分去除掉相关但是不感兴趣的变量，称为“collapsed”的Gibbs采样；并且个人的一个感觉是，观测量所直接依赖的那些变量是不能被积分掉的，否则无法有效的进行抽样… 4. Gibbs采样中的概率 P(z_i&#124;Z_\i)，（其中Z_\i表示不含有z_i的向量），只是用来进行下一个随机采样（z_i的采样服从这个条件概率的分布），而最后反复迭代得到的关于z的分布，可以用count(z)/sample_numbers，来近似得到。而这个P(z)也是Gibbs采样形成的Markov链的收敛后的概率分布… 参考： Markov Chain Monte Carlo and Gibbs Sampling An Introduction to MCMC for Machine Learning Gibbs Sampling for the Uninitiated &#8230; <a
href="http://yongsun.me/2011/10/gibbs%e9%87%87%e6%a0%b7%e7%9a%84%e7%b2%97%e6%b5%85%e7%90%86%e8%a7%a3/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>前段时间一直在看LDA，原论文采用的Variational Inference有点看不懂，后来看到很多人推崇Gibbs采样是求LDA参数的一种非常有效的方式，于是就埋头去看Gibbs采样去了。不过还是有些云里雾里，这里记下一些自己粗浅的理解，请大家批评指正…</p><p>1. MC积分巧妙的把对解析式的积分，拆解成一个概率期望问题，并通过大量采样来得到近似的期望；为了将采样集中在概率比较大的地方，提出了多种采样方法，例如rejection，importance，sampling-importance-resampling等等，MCMC就是其中的一种…</p><p>2. MCMC中的MH算法所构造的Markov链，<strong>其状态节点x^(t)，是在样本空间X上</strong>，⑴ 其构造方法是具有Markov性质的 ⑵ 且MH kernel满足交换性 P(j→k) π_j = P(k→j) π_k；因此MH构造的是一个非周期不可约稳定收敛的马氏链…</p><p>3. 而因为Gibbs采样是MH算法的一种特例（α==1)，因此可以保证Gibbs抽取的样本，也构成一个非周期不可约稳定收敛的马氏链；Gibbs采样适用于样本是两维或以上的情况；通过积分去除掉相关但是不感兴趣的变量，称为“collapsed”的Gibbs采样；并且个人的一个感觉是，<strong>观测量所直接依赖的那些变量是不能被积分掉的</strong>，否则无法有效的进行抽样…</p><p>4. Gibbs采样中的概率 P(z_i|Z_\i)，（其中Z_\i表示不含有z_i的向量），只是用来进行下一个随机采样（z_i的采样服从这个条件概率的分布），而最后反复迭代得到的关于z的分布，可以用count(z)/sample_numbers，来近似得到。而这个P(z)也是Gibbs采样形成的Markov链的收敛后的概率分布…</p><p>参考：</p><ol><li><a
href="http://web.mit.edu/~wingated/www/introductions/mcmc-gibbs-intro.pdf">Markov Chain Monte Carlo and Gibbs Sampling</a></li><li><a
href="http://www.cs.ubc.ca/~nando/papers/mlintro.pdf">An Introduction to MCMC for Machine Learning</a></li><li><a
href="www.cs.umd.edu/~hardisty/papers/gsfu.pdf">Gibbs Sampling for the Uninitiated</a></li><li><a
href="http://www.isi.edu/natural-language/people/bayes-with-tears.pdf">Bayesian Inference with Tears</a></li><li><a
href="http://arbylon.net/publications/text-est2.pdf">Parameter Estimation for text analysis</a></li><li><a
href="http://dbgroup.cs.tsinghua.edu.cn/wangyi/lda/lda.pdf">Distributed Gibbs Sampling of Latent Dirichlet Allocation: The Gritty Details</a></li><li><a
href="http://academic.sun.ac.za/statistics/explaining_gibbs.pdf">Explaining the Gibbs Sampler</a></li></ol> ]]></content:encoded> <wfw:commentRss>http://yongsun.me/2011/10/gibbs%e9%87%87%e6%a0%b7%e7%9a%84%e7%b2%97%e6%b5%85%e7%90%86%e8%a7%a3/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>《浪潮之巅》的一点儿读后杂感</title><link>http://yongsun.me/2011/08/%e3%80%8a%e6%b5%aa%e6%bd%ae%e4%b9%8b%e5%b7%85%e3%80%8b%e7%9a%84%e4%b8%80%e7%82%b9%e5%84%bf%e8%af%bb%e5%90%8e%e6%9d%82%e6%84%9f/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e3%2580%258a%25e6%25b5%25aa%25e6%25bd%25ae%25e4%25b9%258b%25e5%25b7%2585%25e3%2580%258b%25e7%259a%2584%25e4%25b8%2580%25e7%2582%25b9%25e5%2584%25bf%25e8%25af%25bb%25e5%2590%258e%25e6%259d%2582%25e6%2584%259f</link> <comments>http://yongsun.me/2011/08/%e3%80%8a%e6%b5%aa%e6%bd%ae%e4%b9%8b%e5%b7%85%e3%80%8b%e7%9a%84%e4%b8%80%e7%82%b9%e5%84%bf%e8%af%bb%e5%90%8e%e6%9d%82%e6%84%9f/#comments</comments> <pubDate>Fri, 12 Aug 2011 17:50:09 +0000</pubDate> <dc:creator>yongsun</dc:creator> <category><![CDATA[General]]></category> <guid
isPermaLink="false">http://yongsun.me/?p=1655</guid> <description><![CDATA[读了《浪潮之巅》，书甚好，不过有一些疑问，例如作者谈到百度只能作为一家区域性的互联网公司，和后来的雅虎一样技术竞争力不强，不能和作为科技公司的google相类比…而且已经不可能再从搜索领域诞生一个和google相当的新兴公司了…可是腾讯和百度相比如何呢？作者却要去腾讯做负责搜索的副总裁… 《浪潮之巅》还提到，李开复是因为美国总部对中国大陆网络管制的方式（注意不是制度）不满，中间的矛盾与压力都集中到他一人身上，终于不堪重负而离开谷歌的…这也和李本人的描述有出入，李的说法是“做想做的事”…如果李是因为不堪重负而离开，其实是可以预见到谷歌中国的未来走势一定不很乐观… 《浪潮之巅》贯穿全书有一条“基因决定论”，感觉有些宿命论的味道，我觉得也许google的基因和sun的基因没什么大不同，都是强调创新，工程师驱动的企业文化，况且sun为google提供了许多的管理和工程高层；但是google的商业模式成功了，sun一直没有找到好的商业模式… 　　 《浪潮之巅》还提到如果Java的商业价值问题，其实Java的商业价值和linux的商业价值是有相似的地方，如果Sun不开放Java标准，可能Java也不会真的发展壮大起来…Linux本身的商业价值可能也是个问题，RedHat不是靠卖Linux发行版来赚钱的，主要还是要靠服务，自己服务都做不过来，还要外包给IBM和HP… 《浪潮之巅》提到Solaris开源的问题，我觉得Solaris开源的晚了，已经被Linux抢了先机；但是开源Solaris，如果还是单纯靠卖硬件，还是一样无以为继；Sun历来还是一个比较open的公司，为Unix贡献了很多，包括NFS等等…Linux很多的特性，都可以说受到Solaris的影响，例如中断处理线程化，systemtap等等… 有人说Sun当初是可以成为服务器领域的苹果，其实如果苹果不是在内容服务上打开局面，仅靠卖个人电子消费品，很难说有现在的成就…没有Music/App store的iPod和iPhone，就算是工业设计一流、精美绝伦，市场潜力又能有多大呢？而且很容易被“山寨”… #浪潮之巅# 还是说回Sun，Sun是被M$打败的么？我觉得比较勉强… Sun更多是被自己打败了，互联网泡沫的时侯硬件卖得太容易了，钱太容易赚了…纯硬件公司是很难维持高高增长的，还会面临“反摩尔”定律的极大压力…互联网泡沫一破，营收就巨幅缩水，立刻被华尔街抛弃了… #浪潮之巅# 提到了RISC和CISC之争，我印象中后来的Intel CPU，虽然指令是CISC的，但指令是最终被翻译为类似RISC的微指令来执行的，另外增加了很多SIMD的指令…兼容性是一个巨大的利益，Intel想搞IA64，被AMD的x64整得灰头土脸，最后基本上停滞下来了… #浪潮之巅# 说到腾讯，我觉得腾讯靠亿万QQ用户为其输血（买Q币，搞一点个性化展示啥的）来赚取高额利润，这个东西好像基础不很牢靠；QZone应该是腾讯转型的起点，不过来的晚了些…在SNS领域被人人和新浪微博占了先机…仅靠IM的优势，恐怕终究不是长久之计… 最后，总而言之，#浪潮之巅# 是本好书，带给自己很多思考，对IT界的历史又多了很多认识和了解…感谢作者，感谢出版商…]]></description> <content:encoded><![CDATA[<p>读了《浪潮之巅》，书甚好，不过有一些疑问，例如作者谈到百度只能作为一家区域性的互联网公司，和后来的雅虎一样技术竞争力不强，不能和作为科技公司的google相类比…而且已经不可能再从搜索领域诞生一个和google相当的新兴公司了…可是腾讯和百度相比如何呢？作者却要去腾讯做负责搜索的副总裁…</p><p>《浪潮之巅》还提到，李开复是因为美国总部对中国大陆网络管制的方式（注意不是制度）不满，中间的矛盾与压力都集中到他一人身上，终于不堪重负而离开谷歌的…这也和李本人的描述有出入，李的说法是“做想做的事”…如果李是因为不堪重负而离开，其实是可以预见到谷歌中国的未来走势一定不很乐观…</p><p>《浪潮之巅》贯穿全书有一条“基因决定论”，感觉有些宿命论的味道，我觉得也许google的基因和sun的基因没什么大不同，都是强调创新，工程师驱动的企业文化，况且sun为google提供了许多的管理和工程高层；但是google的商业模式成功了，sun一直没有找到好的商业模式… 　　</p><p>《浪潮之巅》还提到如果Java的商业价值问题，其实Java的商业价值和linux的商业价值是有相似的地方，如果Sun不开放Java标准，可能Java也不会真的发展壮大起来…Linux本身的商业价值可能也是个问题，RedHat不是靠卖Linux发行版来赚钱的，主要还是要靠服务，自己服务都做不过来，还要外包给IBM和HP…</p><p>《浪潮之巅》提到Solaris开源的问题，我觉得Solaris开源的晚了，已经被Linux抢了先机；但是开源Solaris，如果还是单纯靠卖硬件，还是一样无以为继；Sun历来还是一个比较open的公司，为Unix贡献了很多，包括NFS等等…Linux很多的特性，都可以说受到Solaris的影响，例如中断处理线程化，systemtap等等…</p><p>有人说Sun当初是可以成为服务器领域的苹果，其实如果苹果不是在内容服务上打开局面，仅靠卖个人电子消费品，很难说有现在的成就…没有Music/App store的iPod和iPhone，就算是工业设计一流、精美绝伦，市场潜力又能有多大呢？而且很容易被“山寨”…</p><p>#浪潮之巅# 还是说回Sun，Sun是被M$打败的么？我觉得比较勉强… Sun更多是被自己打败了，互联网泡沫的时侯硬件卖得太容易了，钱太容易赚了…纯硬件公司是很难维持高高增长的，还会面临“反摩尔”定律的极大压力…互联网泡沫一破，营收就巨幅缩水，立刻被华尔街抛弃了…</p><p>#浪潮之巅# 提到了RISC和CISC之争，我印象中后来的Intel CPU，虽然指令是CISC的，但指令是最终被翻译为类似RISC的微指令来执行的，另外增加了很多SIMD的指令…兼容性是一个巨大的利益，Intel想搞IA64，被AMD的x64整得灰头土脸，最后基本上停滞下来了…</p><p>#浪潮之巅# 说到腾讯，我觉得腾讯靠亿万QQ用户为其输血（买Q币，搞一点个性化展示啥的）来赚取高额利润，这个东西好像基础不很牢靠；QZone应该是腾讯转型的起点，不过来的晚了些…在SNS领域被人人和新浪微博占了先机…仅靠IM的优势，恐怕终究不是长久之计…</p><p>最后，总而言之，#浪潮之巅# 是本好书，带给自己很多思考，对IT界的历史又多了很多认识和了解…感谢作者，感谢出版商…</p> ]]></content:encoded> <wfw:commentRss>http://yongsun.me/2011/08/%e3%80%8a%e6%b5%aa%e6%bd%ae%e4%b9%8b%e5%b7%85%e3%80%8b%e7%9a%84%e4%b8%80%e7%82%b9%e5%84%bf%e8%af%bb%e5%90%8e%e6%9d%82%e6%84%9f/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>说说我和朋友的矿机配置</title><link>http://yongsun.me/2011/06/%e8%af%b4%e8%af%b4%e6%88%91%e5%92%8c%e6%9c%8b%e5%8f%8b%e7%9a%84%e7%9f%bf%e6%9c%ba%e9%85%8d%e7%bd%ae/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e8%25af%25b4%25e8%25af%25b4%25e6%2588%2591%25e5%2592%258c%25e6%259c%258b%25e5%258f%258b%25e7%259a%2584%25e7%259f%25bf%25e6%259c%25ba%25e9%2585%258d%25e7%25bd%25ae</link> <comments>http://yongsun.me/2011/06/%e8%af%b4%e8%af%b4%e6%88%91%e5%92%8c%e6%9c%8b%e5%8f%8b%e7%9a%84%e7%9f%bf%e6%9c%ba%e9%85%8d%e7%bd%ae/#comments</comments> <pubDate>Sat, 11 Jun 2011 01:09:04 +0000</pubDate> <dc:creator>yongsun</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[bitcoin]]></category> <category><![CDATA[mining rig]]></category> <guid
isPermaLink="false">http://yongsun.me/?p=1614</guid> <description><![CDATA[因为有一些朋友问起，每次都要单独回复很费事，所以就整理在这里。我和朋友@jackycao只是很初级的矿友，比不得大手笔的玩家，仅供初级矿友们参考，高级矿友勿笑。 CPU: AMD 240E，价格399元，低功耗45W，看中它比较便宜和省电。 主板：技嘉880G或者870G的双显卡槽的主板，价格619~649左右。 电源：建议直接上700W以上的电源，注意支持的显卡电源插口的个数。我们选用的是酷冷至尊的GX750W，价格719元。 内存：随便什么单条2G的内存就好了，大概在110元左右。 硬盘：如果是装Ubuntu，找个8G的U盘就OK了（Ubuntu 11.4 需要4.4G的空间，虽然安装之后占用的空间不到3G）。 显卡：我们配的是HD5870*2，650W左右的电源应该可以支持5870*2或者6970*2，不过6990*2的话需要1000W以上的电源；现在应该是双5850性价比比较高了。 如果要配机箱的话，请注意其支持的显卡长度，我自己用的是酷冷至尊 RC-370-KKN1，价格219元。 TP-Link WR700N迷你无线路由器，89元。我们没有为矿机购买内置或USB的无线网卡，担心Linux的驱动不好找，而TP-Link的这款路由器支持client模式，等同于一个无线卡了，以后还可以用作其他用途。这款路由器的client模式有一些兼容性的问题，请升级到最新的固件，以支持Netgear和D-Link的路由器。]]></description> <content:encoded><![CDATA[<p><img
class="alignnone" src="http://distillery.s3.amazonaws.com/media/2011/06/18/938c901ce29b4f3186e5cf5f8ab47397_7.jpg" alt="" width="612" height="612" /></p><p>因为有一些朋友问起，每次都要单独回复很费事，所以就整理在这里。我和朋友<a
href="http://twitter.com/jackycao">@jackycao</a>只是很初级的矿友，比不得大手笔的玩家，仅供初级矿友们参考，高级矿友勿笑。</p><ol><li>CPU: <a
href="http://www.360buy.com/product/357110.html">AMD 240E</a>，价格399元，低功耗45W，看中它比较便宜和省电。</li><li>主板：<a
href="http://www.newegg.com.cn/Product/A18-114-2MS.htm">技嘉880G</a>或者<a
href="http://www.21fox.com/goods/15092">870G</a>的双显卡槽的主板，价格619~649左右。</li><li>电源：建议直接上700W以上的电源，注意支持的显卡电源插口的个数。我们选用的是<a
href="http://www.newegg.com.cn/Product/77-c13-660.htm">酷冷至尊的GX750W</a>，价格719元。</li><li>内存：随便什么单条2G的内存就好了，大概在110元左右。</li><li>硬盘：如果是装Ubuntu，找个8G的U盘就OK了（Ubuntu 11.4 需要4.4G的空间，虽然安装之后占用的空间不到3G）。</li><li>显卡：我们配的是HD5870*2，650W左右的电源应该可以支持5870*2或者6970*2，不过6990*2的话需要1000W以上的电源；现在应该是双5850性价比比较高了。</li><li>如果要配机箱的话，请注意其支持的显卡长度，我自己用的是<a
href="http://www.newegg.com.cn/Product/11-c09-671.htm">酷冷至尊 RC-370-KKN1</a>，价格219元。</li><li><a
href="http://www.360buy.com/product/391754.html">TP-Link WR700N</a>迷你无线路由器，89元。我们没有为矿机购买内置或USB的无线网卡，担心Linux的驱动不好找，而TP-Link的这款路由器支持client模式，等同于一个无线卡了，以后还可以用作其他用途。这款路由器的client模式有一些兼容性的问题，请升级到最新的固件，以支持Netgear和D-Link的路由器。</li></ol> ]]></content:encoded> <wfw:commentRss>http://yongsun.me/2011/06/%e8%af%b4%e8%af%b4%e6%88%91%e5%92%8c%e6%9c%8b%e5%8f%8b%e7%9a%84%e7%9f%bf%e6%9c%ba%e9%85%8d%e7%bd%ae/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>bitcoin python OpenCL mining setup on Ubuntu 11.04</title><link>http://yongsun.me/2011/06/bitcoin-python-opencl-mining-setup-on-ubuntu-11-04/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=bitcoin-python-opencl-mining-setup-on-ubuntu-11-04</link> <comments>http://yongsun.me/2011/06/bitcoin-python-opencl-mining-setup-on-ubuntu-11-04/#comments</comments> <pubDate>Tue, 07 Jun 2011 17:38:54 +0000</pubDate> <dc:creator>yongsun</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[ATI]]></category> <category><![CDATA[aticonfig]]></category> <category><![CDATA[bitcoin]]></category> <category><![CDATA[GPU]]></category> <category><![CDATA[opencl]]></category> <category><![CDATA[tips]]></category> <category><![CDATA[ubuntu]]></category> <guid
isPermaLink="false">http://yongsun.me/?p=1601</guid> <description><![CDATA[Credits: Thanks to Syke's article on forum.bitcoin.org!!! 0. Install Ubuntu/Drivers/APPSDK/pyopencl Install Ubuntu 11.04 (desktop edition is recommended) on your disk, and install the 3rd party AMD/ATI graphic driver through "System-&#62;Administration-&#62;Additional Drivers". $ sudo apt-get install python-pyopencl subversion git Download AMD &#8230; <a
href="http://yongsun.me/2011/06/bitcoin-python-opencl-mining-setup-on-ubuntu-11-04/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><span
style="color: #0000ff;">Credits</span>: Thanks to Syke's <a
href="http://forum.bitcoin.org/index.php?topic=2636.0">article</a> on <a
href="http://forum.bitcoin.org">forum.bitcoin.org</a>!!!</p><p><strong>0. Install Ubuntu/Drivers/APPSDK/pyopencl</strong></p><ul><li>Install Ubuntu 11.04 (desktop edition is recommended) on your disk, and install the 3rd party AMD/ATI graphic driver through "System-&gt;Administration-&gt;Additional Drivers".</li><li>$ sudo apt-get install python-pyopencl subversion git</li><li>Download <a
href="http://developer.amd.com/sdks/AMDAPPSDK/downloads/Pages/default.aspx">AMD APP SDK</a> for your platform (either 32bits or 64bits), and extracted to somewhere (referred as $SDK_HOME), remove the symbol link /usr/lib/libOpenCL.so (links to nvidia implementation), and cp the *.so files in $SDK_HOME/lib/x86 to /usr/lib; extract the $SDK_HOME/icd-registration.tgz archive, and copy the *.icd files to /etc/OpenCL/vendors.</li><li>if you have multiple GPU, run $ aticonfig --adapter=all --initial, and relogin, then run $SDK_HOME/bin/x86/clinfo, to check if you have all GPU recognized.</li></ul><p><strong>1. Install python-jsonrpc</strong></p><ul><li>$ svn checkout http://svn.json-rpc.org/trunk/python-jsonrpc</li><li>$ cd python-jsonrpc/</li><li>$ sudo python setup.py install</li></ul><p><strong>2. Retrieve and run poclbm mining scripts</strong></p><ul><li>$ git clone http://github.com/m0mchil/poclbm</li><li>$ cd poclbm</li><li>$ python poclbm.py -d 0 --user un --pass pw</li></ul><p><strong>3. aticonfig over ssh (the easiest way)</strong></p><ul><li>$ sudo apt-get install openssh-server</li><li>set autologin when you install/configure ubuntu gdm display manager</li><li>export DISPLAY=:0.0 after you connected to remote miner machine via ssh/telnet</li></ul><p><strong>4. Useful aticonfig commands</strong></p><ul><li>$ aticonfig --od-enable (enable overdrive)</li><li>$ aticonfig --odgc --adapter=all (get clocking information for all adapters)</li><li>$ aticonfig --odgt --adapter=all (get temperature for all adapters)</li><li>$ aticonfig --adapter=0 --pplib-cmd 'get fanspeed 0' (get speed of fan #0 on adapter #0)</li><li>$ aticonfig --odsc=950,1225 --adapter=1 (change the peak clock of adapter #1 to 950MHz)</li></ul><p><strong>5. Over-clocking with AMDOverdriveCtrl</strong></p><ul><li>Download and install the deb package <a
href="http://sourceforge.net/projects/amdovdrvctrl/files/deb%20binaries/">here</a>, and install depended wxgtk packages</li><li>$ AMDOverdriveCtrl -h (check which graphic card is active, and remember the index)</li><li>$ AMDOverdirveCtrl -i &lt;card index&gt; (you need to run it in native X11 environment), tune the parameters, and save it as default.</li><li>move the $HOME/.AMDOverdirveCtrl/default.ovdr to different location, then configure another card</li><li>add AMDOverdirveCtrl -b -i &lt;card index&gt; &lt;profile_file&gt; in your miner start script, note the profile_file must be in the current working directory.</li></ul><p>Note: If you run the miner on multiple GPUs with overclocking, the master branch of poclbm seems not very stable as I experienced, the GPU stops to process anymore after running for a while, that I need a hard reset on my machine. <a
href="http://forum.bitcoin.org/?topic=6458.0">Phoenix</a> (though with poclbm kernel) seems much more stable, and comes up with better performance.</p> ]]></content:encoded> <wfw:commentRss>http://yongsun.me/2011/06/bitcoin-python-opencl-mining-setup-on-ubuntu-11-04/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>bitcoin python OpenCL mining setup on MacOS</title><link>http://yongsun.me/2011/05/bitcoin-python-opencl-mining-setup-on-macos/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=bitcoin-python-opencl-mining-setup-on-macos</link> <comments>http://yongsun.me/2011/05/bitcoin-python-opencl-mining-setup-on-macos/#comments</comments> <pubDate>Sun, 22 May 2011 15:54:43 +0000</pubDate> <dc:creator>yongsun</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[bitcoin]]></category> <category><![CDATA[Mac]]></category> <category><![CDATA[opencl]]></category> <guid
isPermaLink="false">http://yongsun.me/?p=1579</guid> <description><![CDATA[Credits: Thanks to Syke's article on forum.bitcoin.org!!! This is only applicable for Mas OS X Snow Leopard (10.6.x). 0. Download and install bitcoin client for MacOS from bitcoin.org $ cd "$HOME/Library/Application Support/Bitcoin" ### if not exists, run bitcoin client first &#8230; <a
href="http://yongsun.me/2011/05/bitcoin-python-opencl-mining-setup-on-macos/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><span
style="color: #0000ff;">Credits</span>: Thanks to Syke's <a
href="http://forum.bitcoin.org/index.php?topic=2636.0">article</a> on <a
href="http://forum.bitcoin.org">forum.bitcoin.org</a>!!! This is <span
style="color: #ff0000;"><strong>only</strong></span> applicable for Mas OS X Snow Leopard (10.6.x).</p><p><strong>0. Download and install bitcoin client for MacOS from <a
href="http://bitcoin.org">bitcoin.org</a></strong></p><p>$ cd "$HOME/Library/Application Support/Bitcoin" ### if not exists, run bitcoin client first<br
/> $ touch bitcoin.conf<br
/> $ echo "rpcuser=un" &gt; bitcoin.conf<br
/> $ echo "rpcpassword=pw" &gt;&gt; bitcoin.conf<br
/> $ /Applications/Bitcoin.app/Contents/MacOS/bitcoin -server &amp; ### assuming you installed bitcoin in "/Applications"</p><p><strong>1. Install c++ boost libraries with homebrew</strong></p><p>$ brew install boost</p><p>Refer to <a
href="https://github.com/mxcl/homebrew/wiki/installation">https://github.com/mxcl/homebrew/wiki/installation</a>, if you do not have homebrew installed.</p><p><strong>2. Retrieve, build and install <a
href="http://mathema.tician.de/software/pyopencl">pyopencl</a></strong></p><p>$ git clone http://git.tiker.net/trees/pyopencl.git<br
/> $ cd pyopencl<br
/> $ ./configure.py --boost-inc-dir=/usr/local/include \<br
/> --boost-lib-dir=/usr/local/lib \<br
/> --boost-python-libname=boost_python-mt<br
/> $ make<br
/> $ sudo make install</p><p>Note: You may install git via homebrew or installer from <a
href="http://git-osx-installer.googlecode.com">git-osx-installer.googlecode.com</a>.</p><p><strong>3. Install python-jsonrpc</strong></p><p>$ svn checkout http://svn.json-rpc.org/trunk/python-jsonrpc<br
/> $ cd python-jsonrpc/<br
/> $ sudo python setup.py install</p><p><strong>4. Retrieve and run poclbm mining scripts</strong></p><p>$ git clone http://github.com/m0mchil/poclbm<br
/> $ cd poclbm<br
/> $ python poclbm.py -d 0 --user un --pass pw</p><p>P.S., the scripts run well, 58000 khash/s with 4850 on my iMac…</p> ]]></content:encoded> <wfw:commentRss>http://yongsun.me/2011/05/bitcoin-python-opencl-mining-setup-on-macos/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>【预告】SunPinyin做客Beta沙龙</title><link>http://yongsun.me/2010/05/%e3%80%90%e9%a2%84%e5%91%8a%e3%80%91sunpinyin%e5%81%9a%e5%ae%a2beta%e6%b2%99%e9%be%99/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e3%2580%2590%25e9%25a2%2584%25e5%2591%258a%25e3%2580%2591sunpinyin%25e5%2581%259a%25e5%25ae%25a2beta%25e6%25b2%2599%25e9%25be%2599</link> <comments>http://yongsun.me/2010/05/%e3%80%90%e9%a2%84%e5%91%8a%e3%80%91sunpinyin%e5%81%9a%e5%ae%a2beta%e6%b2%99%e9%be%99/#comments</comments> <pubDate>Thu, 27 May 2010 13:18:59 +0000</pubDate> <dc:creator>yongsun</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[betasalon]]></category> <category><![CDATA[sunpinyin]]></category> <guid
isPermaLink="false">http://yongsun.me/?p=1444</guid> <description><![CDATA[http://club.blogbeta.com/2010/05/13-sunpinyin 时间：2010年6月4日星期五晚上，19: 00开始 地点：奇遇花园咖啡馆（问路电话010-88320741） 地址：西直门北展北街9号华远企业号（华远地产）D座一层（地图） 演讲题目：What’s new of SunPinyin 2.0 内容预览： 演讲人简介： 孙勇，SunPinyin项目的Lead Engineer之一，SunPinyin Mac Porting的主要维护者。 个人blog，http://yongsun.me，twitter: @yongsun 参与说明：无需报名，参加免费，点单AA]]></description> <content:encoded><![CDATA[<p><a
href="http://club.blogbeta.com/2010/05/13-sunpinyin">http://club.blogbeta.com/2010/05/13-sunpinyin</a></p><p>时间：2010年6月4日星期五晚上，19: 00开始<br
/> 地点：奇遇花园咖啡馆（问路电话010-88320741）<br
/> 地址：西直门北展北街9号华远企业号（华远地产）D座一层（<a
href="http://storygarden.me/cafe/map">地图</a>）</p><p>演讲题目：What’s new of SunPinyin 2.0</p><p>内容预览：</p><p><iframe
src="http://docs.google.com/present/embed?id=ahtgvwdt62tk_269hjmtsjgb&#038;size=m" frameborder="0" width="555" height="451"></iframe></p><p>演讲人简介：<br
/> 孙勇，SunPinyin项目的Lead Engineer之一，SunPinyin Mac Porting的主要维护者。<br
/> 个人blog，http://yongsun.me，twitter: @yongsun</p><p>参与说明：无需报名，参加免费，点单AA</p> ]]></content:encoded> <wfw:commentRss>http://yongsun.me/2010/05/%e3%80%90%e9%a2%84%e5%91%8a%e3%80%91sunpinyin%e5%81%9a%e5%ae%a2beta%e6%b2%99%e9%be%99/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>Mastering Python in 2 hours</title><link>http://yongsun.me/2010/05/mastering-python-in-2-hours/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mastering-python-in-2-hours</link> <comments>http://yongsun.me/2010/05/mastering-python-in-2-hours/#comments</comments> <pubDate>Tue, 04 May 2010 01:21:07 +0000</pubDate> <dc:creator>yongsun</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[Python]]></category> <guid
isPermaLink="false">http://yongsun.me/?p=1334</guid> <description><![CDATA[这是准备向同事介绍Python v2.x的Slides，很抱歉我成了标题党，“mastering”的说法实在是言过其实的。我只是把一些python常用的用法，以及例如decorator和metaclass等不是很常用但比较常见的用法，罗列在一起。总体还是比较粗糙，也不免有很多遗漏和误谬，请大家多指正了 ...]]></description> <content:encoded><![CDATA[<p>这是准备向同事介绍Python v2.x的Slides，很抱歉我成了标题党，“mastering”的说法实在是言过其实的。我只是把一些python常用的用法，以及例如decorator和metaclass等不是很常用但比较常见的用法，罗列在一起。总体还是比较粗糙，也不免有很多遗漏和误谬，请大家多指正了 ...</p><p><iframe
src="http://docs.google.com/present/embed?id=ahtgvwdt62tk_266hbjxktf6&#038;size=m" frameborder="0" width="555" height="451"></iframe></p> ]]></content:encoded> <wfw:commentRss>http://yongsun.me/2010/05/mastering-python-in-2-hours/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>I&#039;m leaving Sun ...</title><link>http://yongsun.me/2009/08/im-leaving-sun/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=im-leaving-sun</link> <comments>http://yongsun.me/2009/08/im-leaving-sun/#comments</comments> <pubDate>Wed, 19 Aug 2009 02:52:14 +0000</pubDate> <dc:creator>yongsun</dc:creator> <category><![CDATA[General]]></category> <guid
isPermaLink="false">http://yongsun.me/?p=966</guid> <description><![CDATA[It's the hardest decision I ever made, that I'm leaving Sun, tomorrow is my last working day. It's the best ~6 years in my life and career, I really enjoyed working in such a great company, and with you guys, &#8230; <a
href="http://yongsun.me/2009/08/im-leaving-sun/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>It's the hardest decision I ever made, that I'm leaving Sun, tomorrow is my last working day. It's the best ~6 years in my life and career, I really enjoyed working in such a great company, and with you guys, the most talented people. Thanks for your great supports and help for the years.</p><p>I will continue to contribute to <a
href="http://opensolaris.org/os/project/input-method">oso-inputmethod</a> and SunPinyin project as much as I can, as I can not stop my love of SunPinyin. <img
src='http://yongsun.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p>As you may have seen, I'd setup a new blog at <a
href="http://yongsun.me">http://yongsun.me</a>, &nbsp;keep in touch ...</p><p> EMAIL: mail@yongsun.me<br
/>GTALK: findsun@gmail.com<br
/>MSN: findsun@hotmail.com<br
/>FACEBOOK: <a
href="http://facebook.com/sunyong">http://facebook.com/sunyong</a><br
/>TWITTER: <a
href="http://twitter.com/yongsun">http://twitter.com/yongsun</a></p> ]]></content:encoded> <wfw:commentRss>http://yongsun.me/2009/08/im-leaving-sun/feed/</wfw:commentRss> <slash:comments>14</slash:comments> </item> <item><title>moved my blog from wordpress.com to yongsun.me</title><link>http://yongsun.me/2009/08/moved-my-blog-from-wordpress-com-to-yongsun-me/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=moved-my-blog-from-wordpress-com-to-yongsun-me</link> <comments>http://yongsun.me/2009/08/moved-my-blog-from-wordpress-com-to-yongsun-me/#comments</comments> <pubDate>Tue, 04 Aug 2009 18:52:53 +0000</pubDate> <dc:creator>yongsun</dc:creator> <category><![CDATA[General]]></category> <guid
isPermaLink="false">http://yongsun.me/?p=407</guid> <description><![CDATA[I finally registered a domain name (yongsun.me) for myself on godaddy.com, and purchased a "WordPress Hosting" plan. So I deleted yongsun.wordpress.com, and moved it to yongsun.me. Sorry for the inconvenience Here are the new URL and Feed: URL: http://yongsun.me FEED: &#8230; <a
href="http://yongsun.me/2009/08/moved-my-blog-from-wordpress-com-to-yongsun-me/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>I finally registered a domain name (<a
href="http://www.yongsun.me">yongsun.me</a>) for myself on <a
href="http://www.godaddy.com">godaddy.com</a>, and purchased a "WordPress Hosting" plan. So I deleted <a
href="http://yongsun.wordpress.com">yongsun.wordpress.com,</a> and moved it to <a
href="http://www.yongsun.me">yongsun.me</a>. Sorry for the inconvenience <img
src='http://yongsun.me/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /></p><p>Here are the new URL and Feed:</p><blockquote><p>URL: <a
href="http://yongsun.me">http://yongsun.me</a><br
/> FEED: <a
href="http://yongsun.me/feed">http://yongsun.me/feed</a></p></blockquote> ]]></content:encoded> <wfw:commentRss>http://yongsun.me/2009/08/moved-my-blog-from-wordpress-com-to-yongsun-me/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>std::vector::insert (...) with reverse iterator on SunStudio RW STL</title><link>http://yongsun.me/2009/05/stdvectorinsert-with-reverse-iterator-on-sunstudio-rw-stl/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=stdvectorinsert-with-reverse-iterator-on-sunstudio-rw-stl</link> <comments>http://yongsun.me/2009/05/stdvectorinsert-with-reverse-iterator-on-sunstudio-rw-stl/#comments</comments> <pubDate>Tue, 19 May 2009 01:13:14 +0000</pubDate> <dc:creator>yongsun</dc:creator> <category><![CDATA[General]]></category> <guid
isPermaLink="false">http://yongsun.wordpress.com/2009/05/19/stdvectorinsert-with-reverse-iterator-on-sunstudio-rw-stl/</guid> <description><![CDATA[std::vector::insert (...) in SunStudio's RW STL, does not support reverse iterator, a workaround is to use std::copy (...) and back_inserter (...) instead, as following, - &#160;&#160; dest.insert (dest.end(), src.rbegin(), src.rend());+ &#160;&#160; std::copy (src.rbegin(),src.rend(),back_inserter(dest));]]></description> <content:encoded><![CDATA[<p>std::vector::insert (...) in SunStudio's RW STL, does not support reverse iterator, a workaround is to use std::copy (...) and back_inserter (...) instead, as following,</p><p> <code> <span
style="color:#ff0000;">- &nbsp;&nbsp; dest.insert (dest.end(), src.rbegin(), src.rend());</span><br
/><span
style="color:#0003ff;">+ &nbsp;&nbsp; std::copy (src.rbegin(),src.rend(),back_inserter(dest));</span></code></p> ]]></content:encoded> <wfw:commentRss>http://yongsun.me/2009/05/stdvectorinsert-with-reverse-iterator-on-sunstudio-rw-stl/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> </channel> </rss>
