<?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; OSS</title> <atom:link href="http://yongsun.me/category/oss/feed/" rel="self" type="application/rss+xml" /><link>http://yongsun.me</link> <description>Yong Sun&#039;s Blog</description> <lastBuildDate>Mon, 19 Mar 2012 02:29:22 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>Setup Laconica on SAMP stack</title><link>http://yongsun.me/2009/03/setup-laconica-on-samp-stack/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=setup-laconica-on-samp-stack</link> <comments>http://yongsun.me/2009/03/setup-laconica-on-samp-stack/#comments</comments> <pubDate>Fri, 13 Mar 2009 14:10:19 +0000</pubDate> <dc:creator>yongsun</dc:creator> <category><![CDATA[OSS]]></category> <category><![CDATA[laconica]]></category> <category><![CDATA[OpenSolaris]]></category> <category><![CDATA[samp]]></category> <guid
isPermaLink="false">http://yongsun.wordpress.com/2009/03/13/setup-laconica-on-samp-stack/</guid> <description><![CDATA[Basically the similar steps as described in Quick Start Guide on Ubuntu 8.04. Install amp-dev (or webstack packages) on OpenSolaris (or Solaris production release), and install SunStudio and GNU autotools (JDS CBE toolset is recommended). Download the latest laconica archive &#8230; <a
href="http://yongsun.me/2009/03/setup-laconica-on-samp-stack/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Basically the similar steps as described in <a
href="http://laconi.ca/trac/wiki/Ubuntu%208.04%20Server%20Quick%20Start">Quick Start Guide on Ubuntu 8.04</a>.</p><ol><li>Install amp-dev (or <a
href="http://www.sun.com/software/webstack/">webstack</a> packages) on OpenSolaris (or Solaris production release), and install SunStudio and GNU autotools (JDS <a
href="http://dlc.sun.com/osol/jds/downloads/cbe/">CBE</a> toolset is recommended).</li><li>Download the latest laconica <a
href="http://laconi.ca/laconica-0.7.2.1.tar.gz">archive file</a>, and extract to <code>apache2/2.2/htdocs</code>, and edit the <code>httpd.conf</code> to enable <code>&quot;AllowOverride All&quot;</code> for htdocs directory.</li><li>Edit config.php, setup mysql databases, configure fancy URL, as described in <a
href="http://laconi.ca/trac/wiki/Ubuntu%208.04%20Server%20Quick%20Start">above document</a>.</li><li>Download <a
href="http://www.sphinxsearch.com/downloads/sphinx-0.9.8.1.tar.gz">sphinx-0.9.8.1</a> and apply this <a
href="http://yongsun.me/yongsun/resource/sphinx-0.9.8.1-solaris-ss12.diff">patch</a> for sunstudio C++ compiler, build and install it as following,</li><blockquote><p><code>$ export PATH=$PATH:/path/to/mysql/bin<br
/>$ ./configure; make; pfexec make install<br
/>$ cd api/libsphinxclient; ./configure LDFLAGS=&quot;-lsocket -lnsl&quot;; \<br
/>&gt; make; pfexec make install<br
/></code></p></blockquote><li>Use pecl(1) to install <a
href="http://pecl.php.net/package/sphinx">sphinx php extension</a>, while you need export CC to SunStudio, otherwise, it would uses gcc even it's not in your $PATH. (Thanks to&nbsp;<a
href="http://yongsun.me/natarajan">Sriram Natarajan</a>&nbsp;for this tip, I used to download and build it&nbsp;manually.)</li><blockquote><p><code>$ </code><code>export CC=/opt/SUNWspro/bin/cc<br
/>$ pecl install sphinx</code><code><br
/></code></p></blockquote><li>Enable DNS and set it prior to NIS, otherwise email validation would fail.</li></ol> ]]></content:encoded> <wfw:commentRss>http://yongsun.me/2009/03/setup-laconica-on-samp-stack/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>A simple python script to backup your roller blog.</title><link>http://yongsun.me/2009/02/a-simple-python-script-to-backup-your-roller-blog/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=a-simple-python-script-to-backup-your-roller-blog</link> <comments>http://yongsun.me/2009/02/a-simple-python-script-to-backup-your-roller-blog/#comments</comments> <pubDate>Tue, 10 Feb 2009 12:19:34 +0000</pubDate> <dc:creator>yongsun</dc:creator> <category><![CDATA[OSS]]></category> <guid
isPermaLink="false">http://yongsun.wordpress.com/2009/02/10/a-simple-python-script-to-backup-your-roller-blog/</guid> <description><![CDATA[I tried to find some backup tools for jroller, some only backs up the recent 30 entries in RSS feed, some does not handul unicode characters. By referring the python/xmlrpclib and MetaWeblog API documents, I wrote a simple backup tool, &#8230; <a
href="http://yongsun.me/2009/02/a-simple-python-script-to-backup-your-roller-blog/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>I tried to find some backup tools for jroller, some only backs up the recent 30 entries in RSS feed, some does not handul unicode characters. By referring the <a
href="http://docs.python.org/library/xmlrpclib.html">python/xmlrpclib</a> and <a
href="http://www.metaweblogapi.com/metaweblog-api-specification.html">MetaWeblog API</a> documents, I wrote a simple backup tool, you could download it <a
href="http://yongsun.me/yongsun/resource/roller_backup.py">here</a>. (But I did not find a good way to get tags for entries.) You may need to modify the global variables, like blogid/user/passwd.</p><pre name="code" class="python">#!/usr/bin/python
import xmlrpclib
blogid = 'yongsun'
user = 'yong.sun@sun.com'
passwd = '**********'
host = 'http://blogs.sun.com'
server = xmlrpclib.ServerProxy(host+'/roller-services/xmlrpc', use_datetime=True)
num = 1000
... ...
... ...
</pre><p>Please note that the passwd is the &quot;Weblog Client API Password&quot;, it's probably your original login password, anyway, you could set it in your <a
href="https://blogs.sun.com/roller-ui/profile.rol">profile</a> page.</p> ]]></content:encoded> <wfw:commentRss>http://yongsun.me/2009/02/a-simple-python-script-to-backup-your-roller-blog/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Tip: building packages with different base names in one spec file</title><link>http://yongsun.me/2009/02/tip-building-packages-with-different-base-names-in-one-spec-file/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tip-building-packages-with-different-base-names-in-one-spec-file</link> <comments>http://yongsun.me/2009/02/tip-building-packages-with-different-base-names-in-one-spec-file/#comments</comments> <pubDate>Mon, 09 Feb 2009 00:10:33 +0000</pubDate> <dc:creator>yongsun</dc:creator> <category><![CDATA[OSS]]></category> <guid
isPermaLink="false">http://yongsun.wordpress.com/2009/02/09/tip-building-packages-with-different-base-names-in-one-spec-file/</guid> <description><![CDATA[As you may know, %package devel %files devel will build a package, named as %{name}-devel, while sometime, you want to name it with a different basename, then you could do this, %package -n foobar %files -n foobar]]></description> <content:encoded><![CDATA[<p>As you may know,</p><pre>%package devel
%files devel
</pre><p>will build a package, named as %{name}-devel, while sometime, you want to name it with a different basename, then you could do this,</p><pre>%package -n foobar
%files -n foobar
</pre>]]></content:encoded> <wfw:commentRss>http://yongsun.me/2009/02/tip-building-packages-with-different-base-names-in-one-spec-file/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>what&#039;s the &#039;chash&#039; in ips manifest?</title><link>http://yongsun.me/2008/12/whats-the-chash-in-ips-manifest/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=whats-the-chash-in-ips-manifest</link> <comments>http://yongsun.me/2008/12/whats-the-chash-in-ips-manifest/#comments</comments> <pubDate>Wed, 10 Dec 2008 09:51:51 +0000</pubDate> <dc:creator>yongsun</dc:creator> <category><![CDATA[OSS]]></category> <category><![CDATA[IPS]]></category> <category><![CDATA[OpenSolaris]]></category> <guid
isPermaLink="false">http://yongsun.wordpress.com/2008/12/10/whats-the-chash-in-ips-manifest/</guid> <description><![CDATA[chash: the sha1 hash of the compressed file. While if you manually compress the file with gzip -n -9, you would find the sha1 value is still different with the one in the manifest file. By looking into ips/pkg's source &#8230; <a
href="http://yongsun.me/2008/12/whats-the-chash-in-ips-manifest/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>chash: the sha1 hash of the compressed file.</p><p>While if you manually compress the file with <code>gzip -n -9</code>, you would find the sha1 value is still different with the one in the manifest file. By looking into ips/pkg's source code, it turns out that the head used in ips/pkg is a little different with the one <code>gzip(1)</code> generated,</p><p><code>-0000000 1f 8b 08 00 00 00 00 00 02 <span
style="color:#ff0000;">ff</span><br
/>+0000000 1f 8b 08 00 00 00 00 00 02 <span
style="color:#0003ff;">03</span></code></p><p>The last byte is to indicate the OS type, '03' stands for 'Unix', 'ff' means 'Unknown', refer to <a
href="http://www.gzip.org/zlib/rfc-gzip.html">RFC1952</a>. After you change the OS type to 'ff' in your manually compressed file, you would see the sha hash values are just the same.</p> ]]></content:encoded> <wfw:commentRss>http://yongsun.me/2008/12/whats-the-chash-in-ips-manifest/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>localization and gettext in python</title><link>http://yongsun.me/2008/12/localization-and-gettext-in-python/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=localization-and-gettext-in-python</link> <comments>http://yongsun.me/2008/12/localization-and-gettext-in-python/#comments</comments> <pubDate>Mon, 08 Dec 2008 20:21:58 +0000</pubDate> <dc:creator>yongsun</dc:creator> <category><![CDATA[OSS]]></category> <guid
isPermaLink="false">http://yongsun.wordpress.com/2008/12/08/localization-and-gettext-in-python/</guid> <description><![CDATA[import gettext ''' gettext module will use the encoding specified in Content-Type header for Gnu mo files, and convert the message strings to unicode. Here you could sepcify the *output* encoding to others. ''' gettext.bind_textdomain_codeset('gedit', codeset='UTF-8') ''' gettext module will &#8230; <a
href="http://yongsun.me/2008/12/localization-and-gettext-in-python/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<pre name="code" class="python">import gettext
'''
gettext module will use the encoding specified in Content-Type header for
Gnu mo files, and convert the message strings to unicode. Here you could
sepcify the *output* encoding to others.
'''
gettext.bind_textdomain_codeset('gedit', codeset='UTF-8')
'''
gettext module will try to retrieve messages from /usr/share/locale by
default, otherwise you need to explicitly set it.
'''
gettext.bindtextdomain ('gedit', '/usr/share/locale')
_ = lambda msg: gettext.dgettext ('gedit', msg)
N_ = lambda msg: msg
print _("Save")
</pre>]]></content:encoded> <wfw:commentRss>http://yongsun.me/2008/12/localization-and-gettext-in-python/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>My presentation on SunTech Days 2008 - Beijing</title><link>http://yongsun.me/2008/11/my-presentation-on-suntech-days-2008-beijing/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=my-presentation-on-suntech-days-2008-beijing</link> <comments>http://yongsun.me/2008/11/my-presentation-on-suntech-days-2008-beijing/#comments</comments> <pubDate>Sun, 30 Nov 2008 23:52:48 +0000</pubDate> <dc:creator>yongsun</dc:creator> <category><![CDATA[OSS]]></category> <guid
isPermaLink="false">http://yongsun.wordpress.com/2008/11/30/my-presentation-on-suntech-days-2008-beijing/</guid> <description><![CDATA[SunTech Days 2008 - Beijing分会场所有演讲的slides和录音，都可以在SDN上下载了。下面是我负责的topic： 将开源套件移植到OpenSolaris &#160;音频下载 讲义下载]]></description> <content:encoded><![CDATA[<p>SunTech Days 2008 - Beijing分会场所有演讲的slides和录音，都可以在<a
href="http://developers.sun.com.cn/events/techday2008/beijing.html">SDN</a>上下载了。下面是我负责的topic：</p><p><b>将开源套件移植到OpenSolaris</b><br
/> <a
target="_blank" href="http://download.developers.sun.com.cn/event/sun_tech_day_china/2008/20081121_beijing_day1/track3/4_TD09_pkgporting_yong_sun.mp3"><img
border="0" align="absmiddle" width="16" height="16" src="http://developers.sun.com.cn/export/sites/default/events/techday2008/images/mp3.gif" />&nbsp;音频下载</a> <a
target="_blank" href="http://download.developers.sun.com.cn/event/sun_tech_day_china/2008/20081121_beijing_day1/track3/4_TD09_pkgporting_yong_sun.pdf"><img
border="0" align="absmiddle" width="17" vspace="3" height="16" src="http://developers.sun.com.cn/export/sites/default/events/techday2008/images/pdf.gif" />讲义下载</a></p> ]]></content:encoded> <wfw:commentRss>http://yongsun.me/2008/11/my-presentation-on-suntech-days-2008-beijing/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Enable &quot;suspend to RAM&quot; on my laptop</title><link>http://yongsun.me/2008/11/enable-suspend-to-ram-on-my-laptop/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=enable-suspend-to-ram-on-my-laptop</link> <comments>http://yongsun.me/2008/11/enable-suspend-to-ram-on-my-laptop/#comments</comments> <pubDate>Wed, 26 Nov 2008 07:40:38 +0000</pubDate> <dc:creator>yongsun</dc:creator> <category><![CDATA[OSS]]></category> <guid
isPermaLink="false">http://yongsun.wordpress.com/2008/11/26/enable-suspend-to-ram-on-my-laptop/</guid> <description><![CDATA[原来一直错怪了Solaris的电源管理。我的Dell笔记本型号是Latitude D620, 这个型号的S3-support缺省并没有打开。在/platform/i86pc/kernel/drv/ppm.conf中可以看到，D630缺省是打开的（当然Sun大部分的x86/64工作站缺省也是打开的）。 可以手工编辑/etc/power.conf，添加S3-support enable，来开启这个功能。然后执行下面的命令， $ /usr/sbin/pmconfig$ /usr/sbin/svcadm restart hal 这样，Gnome在你退出时会提供suspend的选项，也可以使用gnome-power-manager来配置何时执行suspend的选项。我尝试了在打开compiz 3D特效的情况下执行suspend操作，也是可以安全唤醒的。唤醒后无线网络也依然可用。 真是太棒了！我再也不用羡慕使用Linux的笔记本用户了！]]></description> <content:encoded><![CDATA[<p>原来一直错怪了Solaris的电源管理。我的Dell笔记本型号是Latitude D620, 这个型号的<code>S3-support</code>缺省并没有打开。在<code>/platform/i86pc/kernel/drv/ppm.conf</code>中可以看到，D630缺省是打开的（当然Sun大部分的x86/64工作站缺省也是打开的）。</p><p>可以手工编辑<code>/etc/power.conf</code>，添加<code>S3-support enable</code>，来开启这个功能。然后执行下面的命令，</p><p><code>$ /usr/sbin/pmconfig<br
/>$ /usr/sbin/svcadm restart hal<br
/></code></p><p>这样，Gnome在你退出时会提供suspend的选项，也可以使用<code>gnome-power-manager</code>来配置何时执行suspend的选项。我尝试了在打开compiz 3D特效的情况下执行suspend操作，也是可以安全唤醒的。唤醒后无线网络也依然可用。</p><p>真是太棒了！我再也不用羡慕使用Linux的笔记本用户了！</p> ]]></content:encoded> <wfw:commentRss>http://yongsun.me/2008/11/enable-suspend-to-ram-on-my-laptop/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>build matplotlib-0.98.3 on Solaris with SunStudio 12</title><link>http://yongsun.me/2008/11/build-matplotlib-0-98-3-on-solaris-with-sunstudio-12/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=build-matplotlib-0-98-3-on-solaris-with-sunstudio-12</link> <comments>http://yongsun.me/2008/11/build-matplotlib-0-98-3-on-solaris-with-sunstudio-12/#comments</comments> <pubDate>Mon, 03 Nov 2008 08:43:43 +0000</pubDate> <dc:creator>yongsun</dc:creator> <category><![CDATA[OSS]]></category> <category><![CDATA[Python]]></category> <category><![CDATA[sunstudio]]></category> <guid
isPermaLink="false">http://yongsun.wordpress.com/2008/11/03/build-matplotlib-0-98-3-on-solaris-with-sunstudio-12/</guid> <description><![CDATA[1. Set the CBE environment (/opt/jdsbld/bin/env.sh), and export CC=$CXX, so that /usr/lib/python2.4/pycc would eventually use the C++ compiler in SunStudio. 2. Download the source code from http://matplotlib.sourceforge.net, then apply the following patch, --- setupext.py 2008-08-04 02:15:22.000000000 +0800 +++ setupext.py 2008-11-03 &#8230; <a
href="http://yongsun.me/2008/11/build-matplotlib-0-98-3-on-solaris-with-sunstudio-12/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>1. Set the CBE environment (/opt/jdsbld/bin/env.sh), and export CC=$CXX, so that /usr/lib/python2.4/pycc would eventually use the C++ compiler in SunStudio.</p><p>2. Download the source code from <a
href="http://matplotlib.sourceforge.net">http://matplotlib.sourceforge.net,</a> then apply the following patch,</p><pre>--- setupext.py	2008-08-04 02:15:22.000000000 +0800
+++ setupext.py	2008-11-03 17:08:41.387138200 +0800
@@ -218,6 +218,8 @@ def get_win32_compiler():
 win32_compiler = get_win32_compiler()
 if sys.platform == 'win32' and win32_compiler == 'msvc':
     std_libs = []
+elif sys.platform == 'sunos5':
+    std_libs = ['Crun', 'Cstd']
 else:
     std_libs = ['stdc++', 'm']
@@ -298,6 +300,7 @@ def check_for_freetype():
         for d in basedirs:
             module.include_dirs.append(os.path.join(d, 'freetype2'))
+    module.include_dirs.append('/usr/include')
     print_status("freetype2", get_pkgconfig_version('freetype2'))
     if not find_include_file(module.include_dirs, 'ft2build.h'):
         print_message(
--- src/_backend_gdk.c	2008-08-04 02:14:18.000000000 +0800
+++ src/_backend_gdk.c	2008-11-03 17:31:32.896210699 +0800
@@ -62,6 +62,7 @@ static PyMethodDef _backend_gdk_function
     { NULL, NULL, 0 }
 };
+extern "C"
 DL_EXPORT(void)
 init_backend_gdk(void)
 {</pre><p>3. Then build and install,</p><pre>$ python setup.py build
$ pfexec python setup.py install</pre><p><strong>Note</strong>: this version of matplotlib requires numpy-1.1 or higher version, you need build and install a newer one since solaris only has 1.0.4.</p> ]]></content:encoded> <wfw:commentRss>http://yongsun.me/2008/11/build-matplotlib-0-98-3-on-solaris-with-sunstudio-12/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>build scipy-0.6.0 on Solaris with SunStudio 12</title><link>http://yongsun.me/2008/10/build-scipy-0-6-0-on-solaris-with-sunstudio-12/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=build-scipy-0-6-0-on-solaris-with-sunstudio-12</link> <comments>http://yongsun.me/2008/10/build-scipy-0-6-0-on-solaris-with-sunstudio-12/#comments</comments> <pubDate>Fri, 31 Oct 2008 10:45:23 +0000</pubDate> <dc:creator>yongsun</dc:creator> <category><![CDATA[OSS]]></category> <category><![CDATA[Python]]></category> <category><![CDATA[sunstudio]]></category> <guid
isPermaLink="false">http://yongsun.wordpress.com/2008/10/31/build-scipy-0-6-0-on-solaris-with-sunstudio-12/</guid> <description><![CDATA[I finally got some clues about how to build scipy with SunStudio and Sun Performance library from this discussion thread. And here are the steps I sumerized: 1. Download the source tar file of scipy, SciPy 0.6.0 tarball, and extract &#8230; <a
href="http://yongsun.me/2008/10/build-scipy-0-6-0-on-solaris-with-sunstudio-12/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>I finally got some clues about how to build scipy with SunStudio and Sun Performance library from this <a
href="http://projects.scipy.org/pipermail/scipy-user/2008-July/017464.html">discussion thread</a>. And here are the steps I sumerized:</p><p>1. Download the source tar file of scipy, <a
class="http" href="http://prdownloads.sourceforge.net/scipy/scipy-0.6.0.tar.gz?download">SciPy 0.6.0 tarball</a>, and extract it to anywhere. Apply the following changes to /usr/lib/python2.4/vendor-packages/numpy/distutils/fcompiler/sun.py, since f77compat library is not available on x86/x64 platform,</p><pre>--- sun.py.orig	2008-10-31 18:30:17.519425733 +0800
+++ sun.py	2008-10-31 18:30:23.842495794 +0800
@@ -38,7 +38,7 @@
         return ['-xtarget=generic']
     def get_libraries(self):
         opt = []
-        opt.extend(['fsu','sunmath','mvec','f77compat'])
+        opt.extend(['fsu','sunmath','mvec'])
         return opt
 if __name__ == '__main__':
</pre><p>and apply the following patch,</p><p> <code><br
/> --- scipy/sparse/sparsetools/sparsetools.h&nbsp;&nbsp;&nbsp; 2007-09-22 15:55:25.000000000 +0800<br
/>+++ scipy/sparse/sparsetools/sparsetools.h&nbsp;&nbsp;&nbsp; 2008-10-31 17:54:47.317379521 +0800<br
/>@@ -22,6 +22,7 @@</p><p>&nbsp;#include &lt;vector&gt;<br
/>&nbsp;#include &lt;algorithm&gt;<br
/>+#include &lt;functional&gt;</p><p>&nbsp;/*</code></p><p>2. Set CBE environment (/opt/jdsbld/bin/env.sh), and the following environment variables,</p><pre>$ export LDFLAGS="-lCrun -lCstd"
$ export LAPACK=/opt/SUNWspro/lib/libsunmath.so
$ export BLAS=/opt/SUNWspro/lib/libsunperf.so
</pre><p>3. Then build, install, and test</p><pre>$ python setup.py build
$ pfexec setup.py install
$ cd ~ # don't run the test under the source directory
$ python
&gt;&gt;&gt; import scipy
&gt;&gt;&gt; scipy.test()
</pre><p>Though, you would see several errors, most of the tests passed.</p> ]]></content:encoded> <wfw:commentRss>http://yongsun.me/2008/10/build-scipy-0-6-0-on-solaris-with-sunstudio-12/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>调整 OpenSolaris nVIDIA 显卡外接投影仪的分辨率</title><link>http://yongsun.me/2008/10/%e8%b0%83%e6%95%b4-opensolaris-nvidia-%e6%98%be%e5%8d%a1%e5%a4%96%e6%8e%a5%e6%8a%95%e5%bd%b1%e4%bb%aa%e7%9a%84%e5%88%86%e8%be%a8%e7%8e%87/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e8%25b0%2583%25e6%2595%25b4-opensolaris-nvidia-%25e6%2598%25be%25e5%258d%25a1%25e5%25a4%2596%25e6%258e%25a5%25e6%258a%2595%25e5%25bd%25b1%25e4%25bb%25aa%25e7%259a%2584%25e5%2588%2586%25e8%25be%25a8%25e7%258e%2587</link> <comments>http://yongsun.me/2008/10/%e8%b0%83%e6%95%b4-opensolaris-nvidia-%e6%98%be%e5%8d%a1%e5%a4%96%e6%8e%a5%e6%8a%95%e5%bd%b1%e4%bb%aa%e7%9a%84%e5%88%86%e8%be%a8%e7%8e%87/#comments</comments> <pubDate>Thu, 30 Oct 2008 15:38:21 +0000</pubDate> <dc:creator>yongsun</dc:creator> <category><![CDATA[OSS]]></category> <category><![CDATA[OpenSolaris]]></category> <guid
isPermaLink="false">http://yongsun.wordpress.com/2008/10/30/%e8%b0%83%e6%95%b4-opensolaris-nvidia-%e6%98%be%e5%8d%a1%e5%a4%96%e6%8e%a5%e6%8a%95%e5%bd%b1%e4%bb%aa%e7%9a%84%e5%88%86%e8%be%a8%e7%8e%87/</guid> <description><![CDATA[我所使用的是Dell的一款笔记本，配备了nVIDIA的显卡。当外接投影仪的时候，用nvidia-settings(1)自动检测（Detect Displays），可以发现有另一个model（因为是VGA输出，所以通常是CRT-0），但是这个screen的分辨率不能调整、且仅为640x480。这对进行演讲来说非常不方便。可以用如下方法来解决： 先点击“Save to X Configuration File”将这个设置保存到X的配置文件中，即/etc/X11/xorg.conf， 然后编辑该配置文件，定位到ModelName为“CRT-0”的那个Monitor Section，调整水平和垂直刷新，例如： &#160;&#160;&#160; HorizSync 31.5 - 64.3&#160;&#160;&#160; VertRefresh 40.0 - 150.0 然后退出并重启X，再运行nvidia-settings，就可以看到CRT-0有更多的分辨率可以选择了，不过好像只有4:3的分辨率可选。 详细信息可以参考nVIDIA驱动的README。]]></description> <content:encoded><![CDATA[<p>我所使用的是Dell的一款笔记本，配备了nVIDIA的显卡。当外接投影仪的时候，用nvidia-settings(1)自动检测（Detect Displays），可以发现有另一个model（因为是VGA输出，所以通常是CRT-0），但是这个screen的分辨率不能调整、且仅为640x480。这对进行演讲来说非常不方便。可以用如下方法来解决：</p><ul><li>先点击“Save to X Configuration File”将这个设置保存到X的配置文件中，即/etc/X11/xorg.conf，</li><li>然后编辑该配置文件，定位到ModelName为“CRT-0”的那个Monitor Section，调整水平和垂直刷新，例如：<p>&nbsp;&nbsp;&nbsp; HorizSync 31.5 - 64.3<br
/>&nbsp;&nbsp;&nbsp; VertRefresh 40.0 - 150.0</p></li><li>然后退出并重启X，再运行nvidia-settings，就可以看到CRT-0有更多的分辨率可以选择了，不过好像只有4:3的分辨率可选。</li></ul><p>详细信息可以参考nVIDIA驱动的<a
href="http://http.download.nvidia.com/solaris/1.0-8762/README/index.html">README</a>。</p> ]]></content:encoded> <wfw:commentRss>http://yongsun.me/2008/10/%e8%b0%83%e6%95%b4-opensolaris-nvidia-%e6%98%be%e5%8d%a1%e5%a4%96%e6%8e%a5%e6%8a%95%e5%bd%b1%e4%bb%aa%e7%9a%84%e5%88%86%e8%be%a8%e7%8e%87/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
