<?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>LiangXu Wang &#187; firefox</title>
	<atom:link href="http://wlx.westgis.ac.cn/tag/firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://wlx.westgis.ac.cn</link>
	<description>technology backup/share</description>
	<lastBuildDate>Sat, 14 Jan 2012 03:56:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>实现了一个SCAR的zotero translator</title>
		<link>http://wlx.westgis.ac.cn/603/</link>
		<comments>http://wlx.westgis.ac.cn/603/#comments</comments>
		<pubDate>Wed, 27 May 2009 14:55:30 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Program]]></category>
		<category><![CDATA[RS]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[SCAR]]></category>
		<category><![CDATA[translator]]></category>
		<category><![CDATA[zotero]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/?p=603</guid>
		<description><![CDATA[SCAR: Science of Cold and Arid Regions 是所里新办的一个期刊，看了几篇文章，打算摘录下来，zotero却不支持，需要自己再写一个转换器(translator)，花了一下午的时间，终于搞出来了，暂时不支持搜索功能。 把下面的代码保存到zotero下的translator目录，给个名字，如SCAR.js，然后重新启动一下FIREFOX，应该就可以使用了。 { "translatorID":"d5770df3-b41a-45cb-bb3a-261948c9af49", "translatorType":4, "label":"SCAR", "creator":"Liangxu Wang&#60;wangliangxu＠gmail.com&#62;", "target":"http://www.scar.ac.cn/hhkxen/ch/reader", "minVersion":"1.0", "maxVersion":"", "priority":100, "inRepository":true, "lastUpdated":"2009-5-27 22:33:00" } function detectWeb(doc, url) { var articleRe = /view_abstract.aspx/; var s = articleRe.exec(url); if(s) { return "journalArticle"; } &#8230; <a href="http://wlx.westgis.ac.cn/603/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>SCAR: Science of Cold and Arid Regions 是所里新办的一个期刊，看了几篇文章，打算摘录下来，zotero却不支持，需要自己再写一个转换器(translator)，花了一下午的时间，终于搞出来了，暂时不支持搜索功能。<br />
把下面的代码保存到zotero下的translator目录，给个名字，如SCAR.js，然后重新启动一下FIREFOX，应该就可以使用了。</p>
<p><code>{<br />
    "translatorID":"d5770df3-b41a-45cb-bb3a-261948c9af49",<br />
    "translatorType":4,<br />
    "label":"SCAR",<br />
    "creator":"Liangxu Wang&lt;wangliangxu＠gmail.com&gt;",<br />
    "target":"http://www.scar.ac.cn/hhkxen/ch/reader",<br />
    "minVersion":"1.0",<br />
    "maxVersion":"",<br />
    "priority":100,<br />
    "inRepository":true,<br />
    "lastUpdated":"2009-5-27 22:33:00"<br />
}</p>
<p>function detectWeb(doc, url) {<br />
    var articleRe = /view_abstract.aspx/;<br />
    var s = articleRe.exec(url);</p>
<p>    if(s) {<br />
        return "journalArticle";<br />
    } else {<br />
        return "multiple";<br />
    }</p>
<p>    return false;<br />
}</p>
<p>function scrape(doc) {<br />
    var nsResolver = null;</p>
<p>    var itemType = "journalArticle";<br />
    var newItem = new Zotero.Item(itemType);<br />
    Zotero.debug(itemType);</p>
<p>    // 标题<br />
    var title = doc.getElementById('EnTitle').textContent;<br />
    Zotero.debug("Title:"+title);<br />
    newItem.title = title;</p>
<p>    // 附件，网页快照<br />
    var snapName = title + " (SCAR)";<br />
    Zotero.debug(snapName);<br />
    newItem.attachments.push({document:doc, title:snapName, mimeType:"text/html"});<br />
    //Zotero.debug(doc);</p>
<p>    //关键词<br />
    var keys=doc.getElementById('EnKeyWord');<br />
    var tags=keys.getElementsByTagName('u');<br />
    var i=0;<br />
    for(i=0;i&lt;tags.length;i++){<br />
      newItem.tags.push(tags[i].textContent);<br />
      Zotero.debug("tag:"+tags[i].textContent);<br />
    }<br />
    //摘要<br />
    var abstract=doc.getElementById('EnAbstract');<br />
    newItem.abstractNote = Zotero.Utilities.trim(abstract.textContent);<br />
    // 出版社<br />
    newItem.publicationTitle = 'Sciences in Cold and Arid Regions';<br />
    newItem.ISSN='1674-3822';<br />
    newItem.url = doc.location.href;<br />
    //出版时间<br />
    var ref=doc.getElementById('ReferenceText').textContent;<br />
    if (ref.match(/,(\d+).+Sciences in Cold and Arid Regions,(\d+)\((\d+)\):(.+)\./))<br />
    {<br />
      newItem.volume=ref.match(/,(\d+).+Sciences in Cold and Arid Regions,(\d+)\((\d+)\):(.+)\./)[2];<br />
      newItem.issue=ref.match(/,(\d+).+Sciences in Cold and Arid Regions,(\d+)\((\d+)\):(.+)\./)[3];<br />
      newItem.pages=ref.match(/,(\d+).+Sciences in Cold and Arid Regions,(\d+)\((\d+)\):(.+)\./)[4];<br />
      newItem.date=ref.match(/,(\d+).+Sciences in Cold and Arid Regions,(\d+)\((\d+)\):(.+)\./)[1];<br />
    }<br />
    //作者<br />
    if (ref.match(/(.+),\d+\.+/))<br />
    {<br />
      authors=ref.match(/(.+),\d+\.+/)[1].split(',');<br />
      for(i=0;i&lt;authors.length-1;i++) {<br />
        newItem.creators.push(Zotero.Utilities.cleanAuthor(authors[i], "author", true));<br />
      }<br />
      author=authors[authors.length-1].split('and');<br />
      for(i=0;i&lt;author.length;i++) {<br />
        newItem.creators.push(Zotero.Utilities.cleanAuthor(author[i], "author", true));<br />
      }<br />
    }<br />
    Zotero.debug("finished.");<br />
    newItem.complete();<br />
}</p>
<p>function doWeb(doc, url) {<br />
    var namespace = doc.documentElement.namespaceURI;<br />
    var nsResolver = null;</p>
<p>    if(detectWeb(doc, url) == "multiple") {<br />
        Zotero.debug("Enter multiple~");<br />
        // TODO: implement the multiple function.<br />
    } else {<br />
        var urls = [url];<br />
    }<br />
    Zotero.debug(urls);<br />
    // 下面对每条url进行解析<br />
    Zotero.Utilities.processDocuments(urls, scrape, function() { Zotero.done(); });<br />
    Zotero.wait();<br />
}</code><br />
也可以直接下载：<a href='http://wlx.westgis.ac.cn/uploads/2009/05/scar.js'>scar.js</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/603/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu flash方块字的解决</title>
		<link>http://wlx.westgis.ac.cn/495/</link>
		<comments>http://wlx.westgis.ac.cn/495/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 08:26:59 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[中文]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/?p=495</guid>
		<description><![CDATA[其实很简单： sudo mv /etc/fonts/conf.d/49-sansserif.conf /etc/fonts/conf.d/49-sansserif.conf.bak 参考： http://wiki.ubuntu.org.cn/index.php?title=Firefox&#038;variant=zh-cn]]></description>
			<content:encoded><![CDATA[<p>其实很简单：</p>
<blockquote><p>sudo mv /etc/fonts/conf.d/49-sansserif.conf /etc/fonts/conf.d/49-sansserif.conf.bak
</p></blockquote>
<p>参考：</p>
<p>http://wiki.ubuntu.org.cn/index.php?title=Firefox&#038;variant=zh-cn</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/495/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用ubuntu gutsy tribe2</title>
		<link>http://wlx.westgis.ac.cn/394/</link>
		<comments>http://wlx.westgis.ac.cn/394/#comments</comments>
		<pubDate>Sun, 01 Jul 2007 14:01:37 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[anjuta]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[gutsy]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xrandr]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/394/</guid>
		<description><![CDATA[这是ubuntu gutsy的第二个alpha版本，忍不住把当前的系统直接升级了，主要是因为我在VitrualBox里试验的ubuntu gutsy一直超慢，但没有任何问题。 升级比较简单，我使用cn99的源，速度飞快。 存在的几个问题： 1、anjuta 2.20无法使用了。 经检查，是库的问题，重新符号化就可以了： sudo ln -s /usr/lib/libbfd.so /usr/lib/libbfd-2.17.50.so 2、Firefox有奇怪的问题 多数情况下没有问题，但有时候页面会失去键盘响应，就是无法输入，有时无法点击连接，非常奇怪的问题，还没有发现什么规律，但出现的几率很大。 还没有发现别的问题，同时要赞一下xrandr 1.2，功能非常强，在我的i915显卡上，可以比较好的支持。 在使用前，若要进行双屏显示，需要把原来的xorg.conf进行处理。主要的就是简化device设置，以及去掉Monitor的刷新率设置，在Screen里加上Virtual桌面大小设置。 进入X后，可以运行xrandr，看看当前支持的显示器。 wlx@cngis:~$ xrandr Screen 0: minimum 320 x 200, current 2304 x 1024, maximum 2304 x 1024 VGA connected 1280&#215;1024+0+0 (normal left &#8230; <a href="http://wlx.westgis.ac.cn/394/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>这是ubuntu gutsy的第二个alpha版本，忍不住把当前的系统直接升级了，主要是因为我在VitrualBox里试验的ubuntu gutsy一直超慢，但没有任何问题。</p>
<p>升级比较简单，我使用cn99的源，速度飞快。</p>
<p>存在的几个问题：<br />
1、anjuta 2.20无法使用了。<br />
经检查，是库的问题，重新符号化就可以了：</p>
<blockquote><p>sudo ln -s /usr/lib/libbfd.so /usr/lib/libbfd-2.17.50.so</p></blockquote>
<p>2、Firefox有奇怪的问题<br />
多数情况下没有问题，但有时候页面会失去键盘响应，就是无法输入，有时无法点击连接，非常奇怪的问题，还没有发现什么规律，但出现的几率很大。</p>
<p>还没有发现别的问题，同时要赞一下xrandr 1.2，功能非常强，在我的i915显卡上，可以比较好的支持。<br />
在使用前，若要进行双屏显示，需要把原来的xorg.conf进行处理。主要的就是简化device设置，以及去掉Monitor的刷新率设置，在Screen里加上Virtual桌面大小设置。<br />
进入X后，可以运行xrandr，看看当前支持的显示器。</p>
<blockquote><p>wlx@cngis:~$ xrandr<br />
Screen 0: minimum 320 x 200, current 2304 x 1024, maximum 2304 x 1024<br />
VGA connected 1280&#215;1024+0+0 (normal left inverted right) 376mm x 301mm<br />
   1280&#215;1024      60.0*+   75.0     59.9<br />
   1152&#215;864       75.0     74.8<br />
   1024&#215;768       84.9     75.1     70.1     60.0<br />
   832&#215;624        74.6<br />
   800&#215;600        84.9     72.2     75.0     60.3     56.2<br />
   640&#215;480        84.6     75.0     72.8     66.7     60.0<br />
   720&#215;400        70.1<br />
LVDS connected 1024&#215;768+1280+0 (normal left inverted right) 246mm x 184mm<br />
   1024&#215;768       60.0*+<br />
   800&#215;600        60.3<br />
   640&#215;480        59.9<br />
TMDS-1 disconnected (normal left inverted right)<br />
TV disconnected (normal left inverted right)
</p></blockquote>
<p>然后就可以使用xrandr命令指定双屏的设置：</p>
<blockquote><p>wlx@cngis:~$ xrandr &#8211;output VGA &#8211;left-of LVDS
</p></blockquote>
<p>若要修改分辨率，直接执行：</p>
<blockquote><p>wlx@cngis:~$ xrandr -s 1280&#215;1024
</p></blockquote>
<p>不过，xserver-xorg-video-intel 2.0的驱动，在i915的显卡上，现在还不能支持大于2048&#215;2048的虚拟桌面。象我的两个显示器，一个1280&#215;1024，一个1024&#215;768，加起来正好超过了限制，所以就失去了dri的能力。可惜，我的大显示器不能旋转，否则就可以满足需求了。当然也可以强制两个1024&#215;768，但看着感觉不舒服。</p>
<p>BTW：evince的标注功能还没有完成，期待这个soc项目能早日发布。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/394/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>MR Tech Local Install：实用的FIREFOX扩展</title>
		<link>http://wlx.westgis.ac.cn/248/</link>
		<comments>http://wlx.westgis.ac.cn/248/#comments</comments>
		<pubDate>Thu, 14 Sep 2006 13:28:52 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[local-install]]></category>
		<category><![CDATA[tor]]></category>

		<guid isPermaLink="false">http://wlxblog.westgis.ac.cn/248/</guid>
		<description><![CDATA[前面曾经提到安装TOR后，无法在FIREFOX 2.0上安装torbutton扩展，今天试验了其他几个proxy切换插件，都不是很好用。 无意中看到了MR Tech Local Install这个插件，安装后就可以安装torbutton了，使用起来没有任何问题。 畅通无阻的网络真好！]]></description>
			<content:encoded><![CDATA[<p>前面曾经提到<a href="http://wlxblog.westgis.ac.cn/223/">安装TOR</a>后，无法在FIREFOX 2.0上安装torbutton扩展，今天试验了其他几个proxy切换插件，都不是很好用。<br />
无意中看到了<a href="https://addons.mozilla.org/firefox/421/">MR Tech Local Install</a>这个插件，安装后就可以安装torbutton了，使用起来没有任何问题。<br />
畅通无阻的网络真好！</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/248/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flash7播放youtube问题以及定制livecd</title>
		<link>http://wlx.westgis.ac.cn/245/</link>
		<comments>http://wlx.westgis.ac.cn/245/#comments</comments>
		<pubDate>Thu, 14 Sep 2006 05:40:54 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[livecd]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://wlxblog.westgis.ac.cn/245/</guid>
		<description><![CDATA[目前的flash palyer 7.0在FIREFOX 2.0b1中播放youtube的视频时总是有问题： 播放是好的，但在播放结束时会把FIREFOX搞死。 根据这个帖子 If it makes you feel a bit more at ease, youtube occasionally freezes firefox on my computer as well. I&#8217;m using firefox with aoss (I start firefox by using &#8216;aoss firefox&#8217;) and it had &#8230; <a href="http://wlx.westgis.ac.cn/245/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>目前的flash palyer 7.0在FIREFOX 2.0b1中播放youtube的视频时总是有问题：<br />
播放是好的，但在播放结束时会把FIREFOX搞死。</p>
<p>根据这个<a href="http://www.ubuntuforums.org/showthread.php?t=222263&#038;page=2">帖子</a></p>
<blockquote><p>If it makes you feel a bit more at ease, youtube occasionally freezes firefox on my computer as well. I&#8217;m using firefox with aoss (I start firefox by using &#8216;aoss firefox&#8217;) and it had been working until recently. Sometimes things go really well, some other times it just hangs.</p>
<p>I&#8217;m using firefox 1.5.05 with Shockwave Flash 7.0 r25. I noticed it started to hang recently, when youtube added those fancy video links at the end of the movies.</p>
<p>My guess, however, is that flash support for linux is buggy, and not youtube&#8217;s code. It hangs as well on some other flashes randomly. It also happens when I&#8217;m not using it through aoss.</p>
<p>I noticed that it freezes a lot less when there is no audio playing or it isn&#8217;t on that fancy screen with video links at the end of the movie, so I usually start and pause the video before switching pages.</p>
<p>By the way, does macromedia ever intends to release an update for linux flash?</p></blockquote>
<p>估计这个问题可能是FLASH 7和9之间的不兼容问题？<br />
google了一下，又发现了另外一个有趣的内容，<a href="http://blogs.adobe.com/penguin.swf/2006/09/customizing_ubuntu_live_cd_606_1.html">定制UBUNTU的LIVE CD</a>，这个是FLASH9的开发人员的一个BLOG。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/245/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>breezy尝鲜</title>
		<link>http://wlx.westgis.ac.cn/116/</link>
		<comments>http://wlx.westgis.ac.cn/116/#comments</comments>
		<pubDate>Tue, 27 Sep 2005 14:37:42 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[breezy]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[skype]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[w3m]]></category>

		<guid isPermaLink="false">http://blog.mygis.org/116/</guid>
		<description><![CDATA[其实，也不是我想尝鲜，由于错误的操作，在升级的时候使SKYPE出现问题，最后FIREFOX也起不来了（这边的网络要先firefox然后才能上网，呵呵，导致了死循环），幸亏W3M还能用，尝试了几次，才知道如何用w3m登录网关。 上网后，改成了breezy的源，然后开始更新，大约700兆的内容。起来后x崩溃，经检查，是显卡驱动的问题，i915的驱动需要单独更新：sudo apt-get install xserver-xorg-i810 X起来后，增加了skype的源，但居然不能安装。 breezy里已经没有libqt102c了，不能dpkg，也不能apt，最后还是google到了，使用一个旧版本就没有问题了。参考 http://www.mneylon.com/blog/archives/2005/09/25/skype-on-breezy/]]></description>
			<content:encoded><![CDATA[<p>其实，也不是我想尝鲜，由于错误的操作，在升级的时候使SKYPE出现问题，最后FIREFOX也起不来了（这边的网络要先firefox然后才能上网，呵呵，导致了死循环），幸亏W3M还能用，尝试了几次，才知道如何用w3m登录网关。<br />
上网后，改成了breezy的源，然后开始更新，大约700兆的内容。起来后x崩溃，经检查，是显卡驱动的问题，i915的驱动需要单独更新：sudo apt-get install xserver-xorg-i810<br />
X起来后，增加了skype的源，但居然不能安装。<br />
breezy里已经没有libqt102c了，不能dpkg，也不能apt，最后还是google到了，使用一个旧版本就没有问题了。参考</p>
<p>http://www.mneylon.com/blog/archives/2005/09/25/skype-on-breezy/</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/116/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>text are not shown in ubuntu firefox flash?</title>
		<link>http://wlx.westgis.ac.cn/99/</link>
		<comments>http://wlx.westgis.ac.cn/99/#comments</comments>
		<pubDate>Tue, 05 Jul 2005 06:44:35 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[msttcorefonts]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://blog.mygis.org/99/</guid>
		<description><![CDATA[This is a strange problem. Flash text can not be shown in Ubuntu hoary, mozilla firefox 1.04, the reason is some fonts lack in the system. Just install msttcorefonts can solve this.]]></description>
			<content:encoded><![CDATA[<p>This is a strange problem.<br />
Flash text can not be shown in Ubuntu hoary, mozilla firefox 1.04,<br />
the reason is some fonts lack in the system.<br />
Just install msttcorefonts can solve this. </p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/99/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

