<?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>Dallas Lu &#187; Ubuntu</title> <atom:link href="http://dallaslu.com/category/ubuntu/feed/" rel="self" type="application/rss+xml" /><link>http://dallaslu.com</link> <description>幻想牢骚 奇淫巧技</description> <lastBuildDate>Sun, 18 Dec 2011 09:56:58 +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>HashMap和HashTable的区别</title><link>http://dallaslu.com/hashmap-hashtable/</link> <comments>http://dallaslu.com/hashmap-hashtable/#comments</comments> <pubDate>Fri, 08 Apr 2011 08:24:06 +0000</pubDate> <dc:creator>卢达</dc:creator> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[Java]]></category> <guid
isPermaLink="false">http://dallaslu.com/?p=1147</guid> <description><![CDATA[从来没用过 HashTable ，本来我对他们两个有什么关系一点都不感兴趣；可是到底为神马面试时候都会问到这个题目呢？本着再一再二不再三的原则，转帖一枚，自勉。 Hashtable和HashMap类有三个重要的不同之处。第一个不同主要是历史原因。Hashtable是基于陈旧的Dictionary类的，HashMap是Java 1.2引进的Map接口的一个实现。 也许最重要的不同是Hashtable的方法是同步的，而HashMap的方法不是。这就意味着，虽然你可以不用采取任何特殊的行为就可以在一个多线程的应用程序中用一个Hashtable，但你必须同样地为一个HashMap提供外同步。一个方便的方法就是利用Collections类的静态的synchronizedMap()方法，它创建一个线程安全的Map对象，并把它作为一个封装的对象来返回。这个对象的方法可以让你同步访问潜在的HashMap。这么做的结果就是当你不需要同步时，你不能切断Hashtable中的同步（比如在一个单线程的应用程序中），而且同步增加了很多处理费用。 第三点不同是，只有HashMap可以让你将空值作为一个表的条目的key或value。HashMap中只有一条记录可以是一个空的key，但任意数量的条目可以是空的value。这就是说，如果在表中没有发现搜索键，或者如果发现了搜索键，但它是一个空的值，那么get()将返回null。如果有必要，用containKey()方法来区别这两种情况。]]></description> <content:encoded><![CDATA[<p>从来没用过 HashTable ，本来我对他们两个有什么关系一点都不感兴趣；可是到底为神马面试时候都会问到这个题目呢？本着再一再二不再三的原则，转帖一枚，自勉。</p><p><span
id="more-1147"></span>Hashtable和HashMap类有三个重要的不同之处。第一个不同主要是历史原因。Hashtable是基于陈旧的Dictionary类的，HashMap是Java 1.2引进的Map接口的一个实现。</p><p>也许最重要的不同是Hashtable的方法是同步的，而HashMap的方法不是。这就意味着，虽然你可以不用采取任何特殊的行为就可以在一个多线程的应用程序中用一个Hashtable，但你必须同样地为一个HashMap提供外同步。一个方便的方法就是利用Collections类的静态的synchronizedMap()方法，它创建一个线程安全的Map对象，并把它作为一个封装的对象来返回。这个对象的方法可以让你同步访问潜在的HashMap。这么做的结果就是当你不需要同步时，你不能切断Hashtable中的同步（比如在一个单线程的应用程序中），而且同步增加了很多处理费用。</p><p>第三点不同是，只有HashMap可以让你将空值作为一个表的条目的key或value。HashMap中只有一条记录可以是一个空的key，但任意数量的条目可以是空的value。这就是说，如果在表中没有发现搜索键，或者如果发现了搜索键，但它是一个空的值，那么get()将返回null。如果有必要，用containKey()方法来区别这两种情况。</p> ]]></content:encoded> <wfw:commentRss>http://dallaslu.com/hashmap-hashtable/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Java 文件上传</title><link>http://dallaslu.com/java-jsp-servlet-commons-upload/</link> <comments>http://dallaslu.com/java-jsp-servlet-commons-upload/#comments</comments> <pubDate>Tue, 28 Apr 2009 15:01:50 +0000</pubDate> <dc:creator>卢达</dc:creator> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[互联网络]]></category> <category><![CDATA[Java]]></category> <guid
isPermaLink="false">http://dallaslu.com/?p=838</guid> <description><![CDATA[Jsp servlet 中，在 enctype 为 multipart/form-data 的表单中取其他参数，url 传递中文参数。]]></description> <content:encoded><![CDATA[<p>最近用到文件上传，遇见几个小问题，隔了几天才解决。包括在 enctype 为 multipart/form-data 的表单中取其他参数，url 传递中文参数等。</p><p><span
id="more-838"></span></p><p>先说下表单。要想传文件，必须指定表单属性：<code>enctype=" multipart/form-data"</code> 。如果还想在这样的表单中添加其他文本域，那么抱歉， <code>request.getParameter("xxx")</code> 的办法永远取不到值了。可能你需要查阅所使用的上传组件的 API 文档 (如 <a
href="http://www.cnblogs.com/luwenyan/archive/2008/03/29/1128380.html">SmartUpload</a>)，来看看有没有办法了。</p><p>但是，我只是期望上传文件的同时得知此文件属于哪个 post 。传这个 post_id ，让我十分无奈 —— 我总不能放在 session 里面吧？</p><h2>用 action 来传递简单参数</h2><p>最后没辙了，把<strong>参数直接写在表单的 action 里：action="upload?id=1989" </strong>。还真管用。在servlet 的 doPost 方法中 <code>request.getParameter("id")</code> 一取一个准儿（时而去到时而取不到，那是见鬼了），没想到这个 Google 不会的问题，就这么解决了。</p><p>还是 PHP 简单直观，3个数组就解决了这个问题。很久前曾为这个问题困惑：action中指定url （GET方法）的 POST 表单提交到 servlet 后，触发的是 doPost 还是 doGet 方法？简单测试之后，结果是：<strong>只执行了 doPost 方法</strong>。</p><p>现在遇到问题，就受到上面的测试结果影响，干扰了思路 —— 其实无论调用那种方法，其参数 request 是一样的。</p><h2>GET 方法传中文参数</h2><p>我在 Google 上面的问题的时候，发现很多人问这个问题。有人提出了复杂的 JS + Java类来实现。我通常只转下编码就 OK 了啊，这问题没那么复杂吧？</p><pre>String name = request.getParameter("name");
name = new String ( name.getBytes("ISO-8859-1" ) ,"GBK" );</pre><h2>文件上传</h2><p>捎带说一下。使用的是Apache组织的commons项目中的FileUpload。需要下载的有：</p><div
class="download"><p><a
title="commons FileUpload -- ( 链接到下载页面，非真实下载链接 )" href="http://commons.apache.org/downloads/download_fileupload.cgi">FileUpload</a></p><p><a
title="commons IO -- ( 链接到下载页面，非真实下载地址 )" href="http://commons.apache.org/downloads/download_io.cgi">IO</a></div><p>另，还有人<a
href="http://xiaoduan.blog.51cto.com/502137/137909">提到用软件去下载 API 网页</a>，其实上面的压缩包里就有了文档了。安排好 jar 包之后，就可以测试一下了。</p><blockquote><p><span
style="color: #008000"><em>&lt;!-- file.html --&gt;</em></span></p><p><span
style="color: #0000ff">&lt;</span><span
style="color: #800000">form</span> <span
style="color: #ff0000">action</span><span
style="color: #0000ff">="upload.jsp"</span> <span
style="color: #ff0000">method</span><span
style="color: #0000ff">="post"</span> <span
style="color: #ff0000">enctype</span><span
style="color: #0000ff">="multipart/form-data"</span><span
style="color: #0000ff">&gt;</span><br
/> <span
style="color: #0000ff">&lt;</span><span
style="color: #800000">input</span> <span
style="color: #ff0000">type</span><span
style="color: #0000ff">="file"</span> <span
style="color: #ff0000">name</span><span
style="color: #0000ff">="upload"</span> <span
style="color: #0000ff">&gt;</span><br
/> <span
style="color: #0000ff">&lt;</span><span
style="color: #800000">input</span> <span
style="color: #ff0000">type</span><span
style="color: #0000ff">="submit"</span><span
style="color: #0000ff">&gt;</span><br
/> <span
style="color: #0000ff">&lt;/</span><span
style="color: #800000">form</span><span
style="color: #0000ff">&gt;</span></p></blockquote><p>Jsp 比较方便，如果在 servlet 中应用记得捕获异常。建立好 upload 文件夹来存文件。</p><blockquote><p><span
style="color: #008000"><em>&lt;!-- upload.jsp --&gt;</em></span></p><div><span
style="color: #0000ff">&lt;</span><span
style="color: #800000">%@</span> page <span
style="color: #ff0000">pageEncoding</span><span
style="color: #0000ff">="gbk"</span><span
style="color: #800000"> %</span><span
style="color: #0000ff">&gt;</span><br
/> <span
style="color: #0000ff">&lt;</span><span
style="color: #800000">%@page</span> <span
style="color: #ff0000">import</span><span
style="color: #0000ff">="org.apache.commons.fileupload.DiskFileUpload" </span><span
style="color: #800000">%</span><span
style="color: #0000ff">&gt;</span><br
/> <span
style="color: #0000ff">&lt;</span><span
style="color: #800000">%@page</span> <span
style="color: #ff0000">import</span><span
style="color: #0000ff">="java.util.List" </span><span
style="color: #800000">%</span><span
style="color: #0000ff">&gt;</span><br
/> <span
style="color: #0000ff">&lt;</span><span
style="color: #800000">%@page</span> <span
style="color: #ff0000">import</span><span
style="color: #0000ff">="org.apache.commons.fileupload.FileItem" </span><span
style="color: #800000">%</span><span
style="color: #0000ff">&gt;</span><br
/> <span
style="color: #0000ff">&lt;</span><span
style="color: #800000">%@page</span> <span
style="color: #ff0000">import</span><span
style="color: #0000ff">="java.io.File"</span><span
style="color: #800000"> %</span><span
style="color: #0000ff">&gt;</span><br
/> <span
style="color: #0000ff">&lt;</span><span
style="color: #800000">%</span></div><p><span
style="color: #008000"><em>&lt;!-- 很无奈，WP 编辑器总是把 尖括号变成 &amp;lt;，而被 pre 标签包裹的，它又不管了 --&gt;</em></span></p></blockquote><pre>DiskFileUpload upload = new DiskFileUpload();
List list = upload.parseRequest(request);
for(int i=0; i &lt; list.size(); i++)    {
FileItem item = (FileItem)list.get(i);
item.write(new File(request.getRealPath(&quot;/upload&quot;), item.getName() ) ); }</pre><blockquote><p><span
style="color: #800000">%</span><span
style="color: #0000ff">&gt;</span></p></blockquote> ]]></content:encoded> <wfw:commentRss>http://dallaslu.com/java-jsp-servlet-commons-upload/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>被 Ubuntu 9.04 给体验了</title><link>http://dallaslu.com/the-circle-of-ubuntu-intrepid-jaunty-hardy-intrepid/</link> <comments>http://dallaslu.com/the-circle-of-ubuntu-intrepid-jaunty-hardy-intrepid/#comments</comments> <pubDate>Mon, 30 Mar 2009 12:38:47 +0000</pubDate> <dc:creator>卢达</dc:creator> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[ATI]]></category> <category><![CDATA[Jaunty]]></category> <category><![CDATA[升级]]></category> <guid
isPermaLink="false">http://dallaslu.com/?p=786</guid> <description><![CDATA[3月27日，Ubuntu 9.04 beta 发布了。这个升级过程带给我的惊吓，丝毫不少于惊喜。各位用 A卡的同学，更新发行版的时候，一定要保持清醒、冷静，并择黄道吉日，沐浴更衣之后再动手。]]></description> <content:encoded><![CDATA[<p>Ubuntu 9.04 beta 发布了。我克制着，克制着。最后还是在周五，开始了灰常刺激的系统升级。为什么这么说呢，因为这个升级过程带给我的惊吓，丝毫不少于惊喜。</p><p><span
id="more-786"></span>我一直都使用官方的软件源，这次也是。中午开始下载，速度100+KB/s ；晚上回来一看，还是在下载，10KB/s 。后来熬到凌晨3点，还是在下载。我觉得不能再傻等下去了，果断地点了取消。</p><h2>Ubuntu “9.02”</h2><p>这些都是没有问题的。噩梦开始于我准备去吃东西的时候，顺手点了一下更新管理器的“安装更新”按钮。吃完回到电脑前，屁股一挨着椅子，就意识到我犯了一个低智商的错误：安装完更新，当前系统一半是 8.10 一半是9.04。</p><p>事实果然如此，在这个 Ubuntu “9.02” 的环境下，我运行不了任何程序了，包括更新管理器。好吧，我重启。在启动登陆管理器的时候，屏幕黑黑的，鼠标的图标一直在转。</p><p>一直在转……</p><p>Ctrl+Alt+F2。命令行里打开无线网卡，顽强地继续更新。</p><p>经过漫长的一段时间。我准备好迎接惊喜的情绪，激活了显示器——屏幕下方一片通红，上方有5列相同的文本，绿色，字极小。</p><p>我不甘心啊，重启进修复模式，修复包，修复X。这次有了更加让人心寒的变化：整个屏幕泛起了极光，变化万千；忽然又展现出条条杠杠，看起来跟花布料似的。</p><h2>极光再现</h2><p>马上开始曲线救国，进 Vista 下载光盘镜像，然后刻碟。其实完全可以不必刻碟，硬盘安装也不错。不过套用论坛里常见的句式，“光盘安装是王道”，我还是谨慎地用光盘吧。</p><p>进入 Live CD，极光一闪而过，居然进了桌面了。感觉还真是不赖，安装着系统，一边看着 Google Reader ，一边推特。顺带提一下，我终于赢了一把 Ubuntu 自带的黑白棋游戏，一年了都没赢过，真不容易。</p><p>后来眼看进度条差俩格了，又一片极光。</p><h2>A 卡惹的祸</h2><p>我早就听说 9.04的 A卡驱动有问题，但我太过乐观了。经此一番折腾，我这乐观改观望了。还是装回 8.10 吧。但是手头只有 8.04的光盘，所以趁今天外出，装好 8.04 后又升级到 8.10。</p><p>再次体验到，把 home 挂载到单独的分区是多么多么的重要。软件是可以随时安装的，但是你的配置和数据只有你电脑上的那一份。另，我把 Firefox 的浏览记录保存天数从 10000天改成 3 天，这速度马上就上来了。</p><p>等正式版出来了，我还是继续观望，一定要克制。</p><p
class="ohno">各位用 A卡的同学，更新发行版的时候，一定要保持清醒、冷静，并择黄道吉日，沐浴更衣之后再动手。</p> ]]></content:encoded> <wfw:commentRss>http://dallaslu.com/the-circle-of-ubuntu-intrepid-jaunty-hardy-intrepid/feed/</wfw:commentRss> <slash:comments>11</slash:comments> </item> <item><title>iBus 输入法平台</title><link>http://dallaslu.com/scim-fictx-vs-ibus/</link> <comments>http://dallaslu.com/scim-fictx-vs-ibus/#comments</comments> <pubDate>Wed, 25 Mar 2009 11:06:06 +0000</pubDate> <dc:creator>卢达</dc:creator> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[iBus]]></category> <guid
isPermaLink="false">http://dallaslu.com/?p=728</guid> <description><![CDATA[我以使用 scim 大半年的经验提醒你，它真的真的不好用。所以，如果你现在还在使用 scim ，并且对其没有特殊情结的话，建议你尝试一下 iBus 。]]></description> <content:encoded><![CDATA[<p>Ubuntu 中自带的输入法平台是 scim ，但是它经常性地崩溃，并且引诱 FireFox、Pidgin 等重要程序集体停止响应。所以某天实在是无法忍受，尝试了其他输入法，现在正在用的是 ibus 。</p><p><span
id="more-728"></span>scim 的关于信息中写的是2004，而且开发 scim 的来自清华的苏哲同学已经去开发另外一款输入法平台了。所以先尝试了一下<br
/> fcitx 。体验也不是很好。尽管 iBus 安装文件大得离谱，但在这种没有退路的情况下还是安装了。</p><p>我以使用 scim 大半年的经验提醒你，它真的真的不好用。所以，如果你现在还在使用 scim ，并且对其没有特殊情结的话，建议你尝试一下 iBus 。</p><p>关于安装，请参考：《<a
href="http://www.lirui.name/post/148.html" target="_blank">Ubuntu 8.10 英文环境下安装ibus输入法笔记</a>》。通过此文的方法，即使没有安装中文环境，也可以使用中文输入法。</p><div
class="smile"><h2>优点</h2><h3 style="padding-left: 30px">拼音词库来自搜狗拼音</h3><p
style="padding-left: 30px">这个比较爽的哈，打起字来如行云流水。哈哈。而且还支持双拼，有多种方案可供选择。</p><p
style="padding-left: 30px"><a
href="http://file.dallaslu.com/2009/03/haha.png" rel="lightbox[728]"><img
class="alignnone size-medium wp-image-781" src="http://file.dallaslu.com/2009/03/haha-300x54.png" alt="haha" width="300" height="54" /></a></p><p
style="padding-left: 30px">在<a
href="http://code.google.com/p/ibus/">iBus 的项目主页</a>，你还可以下载到其他输入发的码表，如郑码、Anthy（日文）。</p><h3 style="padding-left: 30px">兼容性更好</h3><p
style="padding-left: 30px">scim 应该是兼容最差的了吧。总之上面提到的应用程序停止响应的情况几乎是没有了。</p><h3 style="padding-left: 30px">简单</h3><p
style="padding-left: 30px">尽管 fictx 的配置十分的强大，iBus 的体积十分的庞大，我还是喜欢这个看起来比较简单的 iBus。安装和配置都很简单，词库很大，选词也比较科学。</p></div><div
class="sad"><h2>缺点</h2><p>遗憾的发现，缺点竟然不少于优点。但是我依然推荐。</p><h3 style="padding-left: 30px">五笔</h3><p
style="padding-left: 30px">五笔很不好用，前几天才给 scim 弄上了万能五笔，而 iBus 中的五笔对于我们只使用简体字的低俗用户来说基本是残废一个。不过已经<a
href="http://mineral.javaeye.com/blog/262309" target="_blank">有人整理好了 五笔词库</a> 。不过万能五笔目前还没戏。</p><h3 style="padding-left: 30px">速度</h3><p
style="padding-left: 30px">不少人说 iBus 速度很慢。经过一个星期的使用，感觉还是完全可以接受的。据说新版本（1.1.0）有所改善？不过我用的是源里面的，V0.1.1，并非最新版。</p><h3 style="padding-left: 30px">繁体字</h3><p
style="padding-left: 30px">偶尔也响应下XX的号召，使用繁体字。搞不好以后会有繁体字等级考试，所以要打好提前量。但是，我还是比较喜欢通过拼音和五笔直接输入繁体字。iBus 这点上做得不够。我知道 Hack 下词库可能搞定，但我不会。</p></div><p>好了，我准备去升级到  1.1.0 了。留给你无尽的幻想吧。</p> ]]></content:encoded> <wfw:commentRss>http://dallaslu.com/scim-fictx-vs-ibus/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>玩转Pidgin</title><link>http://dallaslu.com/kiss-the-sexy-pidgin/</link> <comments>http://dallaslu.com/kiss-the-sexy-pidgin/#comments</comments> <pubDate>Sun, 01 Mar 2009 15:02:19 +0000</pubDate> <dc:creator>卢达</dc:creator> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[Pidgin]]></category> <category><![CDATA[即时通讯]]></category> <guid
isPermaLink="false">http://dallaslu.com/?p=647</guid> <description><![CDATA[Ubuntu 自带的 Pidgin ，支持多款聊天协议。你可以它同时登录你的 Gtalk/MSN/QQ/ICQ/校内/飞信 等等帐号，可以对不同 IM 中的好友进行统一管理。]]></description> <content:encoded><![CDATA[<p>Ubuntu 自带的 Pidgin ，支持多款聊天协议。你可以它同时登录你的 Gtalk/MSN/QQ/ICQ/校内/飞信 等等帐号，可以对不同 IM 中的好友进行统一管理。安装好了Ubuntu 之后，可以在 应用程序&gt;互联网&gt; 中找到它。</p><p><span
id="more-647"></span>初次启动会提示你添加帐号。我们可以从<strong>协议</strong>列表中看到 Pidgin 支持的协议还真是不少。</p><p><img
class="alignnone size-full wp-image-648" src="http://file.dallaslu.com/2009/03/addaccount.png" alt="addaccount" width="394" height="494" /></p><p>使用起来及其简单吧，选择协议之后填上密码就OK了。值得一提的是，通过安装插件，就还可以登录更多类型的协议。</p><h2>更多的协议</h2><h3 style="padding-left: 30px">用 Pidgin 登录飞信</h3><p
style="padding-left: 30px">前往<a
href="http://forum.ubuntu.org.cn/viewtopic.php?t=100260" target="_blank">Ubuntu 中文论坛</a> 下载相应的文件。例如，在下载到的 fetion_v0.98-4.X86-32.tar.gz 上<strong>右键&gt;解压到此处</strong>得到 libfetion.so；执行 <strong>应用程序&gt;附件&gt;终端</strong>，执行命令 <code>sudo gnome-open ~/.purple/plugins/</code> ，输入密码；将 libfetion.so 复制到打开的文件夹中。然后打开 <strong>Pidgin&gt;帐户&gt;管理帐户&gt;添加</strong> ，就可以看到 fetion 协议了吧。（服务器填写：221.130.44.193）</p><h3 style="padding-left: 30px">用 Pidgin 登录Facebook</h3><p
style="padding-left: 30px">前往 <a
href="http://code.google.com/p/pidgin-facebookchat/" target="_blank">该插件项目主页</a> 下载 .deb 格式的软件包，下载之后直接双击运行，再单击一下 <strong>安装软件包</strong> 稍等即可。然后重启一下 Pidgin 即可看到 Facebook 协议。</p><h3 style="padding-left: 30px">用 Pidgin 登录校内通</h3><p
style="padding-left: 30px">话说，发现很多人不登录QQ却要登录校内，校内也网页底部集成了聊天。这次不用安装插件了，添加新帐户，协议选择为 XMPP（实际上 Gtalk 也使用该协议）。用户名填写校内 ID，即登录校内后地址栏  home.do?id= 后面的那一坨数字；域名填写为 www.xiaonei.com ；切换到<strong>高级</strong>选项卡，<strong>连接服务器</strong>填写为 talk.xiaonei.com ，OK。</p><h3 style="padding-left: 30px">用Pidgin 登录 Skype</h3><p
style="padding-left: 30px">这个麻烦了一些，而且，使用该协议的同时需要开着 Skype……安装 Skype 先，<a
href="http://skype.tom.com/download/linux.html" target="_blank">下载 Deb 包 </a> （选择 Debian Etch 类型）。再前往<a
href="http://eion.robbmob.com/" target="_blank">插件主页</a>，有 .deb 安装包 和 .so 文件下载，这次不必细说了，选择其一下载。具体可参考 <a
href="http://www-user.tu-chemnitz.de/~tali/2007/11/30/skype-plugin-for-pidgin/" target="_blank">Liang Tao 的介绍</a>。</p><h2>强大的功能</h2><p>Pidgin 是一款很有效率的 IM 软件，列举两个功能，更多自己请自己发掘～</p><h3 style="padding-left: 30px">好友千里眼</h3><p
style="padding-left: 30px">QQ中里面有这个功能的吧，收费服务。现在免费无限制使用了，嘎嘎。在任意好友图标上<strong>右键&gt;添加好友千里眼</strong>，哗，很强大吧。在 <strong>工具&gt;好友千里眼 </strong>中可以进行统一管理。</p><h3 style="padding-left: 30px">合并联系人</h3><p
style="padding-left: 30px">我们可能添加了某人的 Gtalk 和 MSN ，那么，在好友图标上 <strong>右键&gt;展开</strong> ，看到什么？然后我们另拖一个联系人过去。</p><p
style="padding-left: 30px"><img
class="alignnone size-full wp-image-650" src="http://file.dallaslu.com/2009/03/friends.png" alt="friends" width="259" height="94" /></p><p
style="padding-left: 30px">这样，我们就不必去关心具体的协议，从而能够更直观地管理好友了。</p><h2>实用的插件</h2><p>在<strong>工具&gt;插件</strong>中可以看到预装的插件，喜欢折腾的同学自己折腾吧。</p><h3 style="padding-left: 30px">短信通知插件 gSMS</h3><p
style="padding-left: 30px">离线消息各大 IM 都有，短信通知就没了吧？用这款插件，当你离开电脑时，别人的消息就会直接发到你的手机上。感谢 Google 吧。关于<a
href="http://linuxtoy.org/archives/gsms-plugin-for-pidgin.html" target="_blank">使用介绍</a>，不过，插件主页貌似挂了，可以暂时用一年前的对付一下，<a
href="http://file.dallaslu.com/2009/03/gsms.so" target="_blank">下载</a>。</p><h3 style="padding-left: 30px">Twitter</h3><p
style="padding-left: 30px"><span
style="text-decoration: line-through">眼睛一亮是吧，不过，作为 Twitter 的客户端我们有更多的选择，这里只是提一下。插件主页。</span> 主页也挂了？请参考《<a
href="http://lorz.me/be-a-twitter-on-pidgin/">Pidgin 上玩 Twitter</a>》</p><p>有点意犹未尽的感觉吧，这里有一篇 Windows 用户写的经验：<a
href="http://www.lirui.name/post/95.html" target="_blank">让 Pidgin 如虎添翼的十大插件</a>。</p><p>如果你读到这里，我不得不承认你很有折腾精神。看看官方的<a
href="http://developer.pidgin.im/wiki/ThirdPartyPlugins" target="_blank">插件目录</a>吧。</p><p>另，Pidgin 还支持其他系统，所以即使你没有安装 Ubuntu ，依然能在 Windows 下体验。Pidgin 不像 QQ 这么普遍，装机必备，所以你可以来个移动版的，放在U盘里，数据、程序随身携带。</p><div
class="download"><p><a
href="http://pidgin.im/download/" target="_blank">下载Pidgin</a></p><p><a
href="http://portableapps.com/apps/internet/pidgin_portable" target="_blank">下载便携版Pidgin</a></div><p>好吧，就到这里吧。</p> ]]></content:encoded> <wfw:commentRss>http://dallaslu.com/kiss-the-sexy-pidgin/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>体验Ubuntu之Wubi安装</title><link>http://dallaslu.com/kiss-ubuntu-with-installing-in-wubi/</link> <comments>http://dallaslu.com/kiss-ubuntu-with-installing-in-wubi/#comments</comments> <pubDate>Thu, 26 Feb 2009 11:19:10 +0000</pubDate> <dc:creator>卢达</dc:creator> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[Wubi]]></category> <guid
isPermaLink="false">http://dallaslu.com/?p=633</guid> <description><![CDATA[下载好 Ubuntu 的 iso 文件之后，可以安全的体验Ubuntu而不对现有的Windows操作系统造成影响。]]></description> <content:encoded><![CDATA[<p>下载好 Ubuntu 的 iso 文件之后，可以安全的体验Ubuntu而不对现有的Windows操作系统造成影响。</p><p>把 iso 刻录成碟，或者使用虚拟光驱加载，或者干脆直接用 WinRar 软件解压到硬盘都可以。</p><p><span
id="more-633"></span></p><p>运行目录里的 umenu.exe.</p><p><img
class="alignnone size-full wp-image-637" src="http://file.dallaslu.com/2009/02/umenu.png" alt="umenu" width="498" height="356" /></p><p>选择 ［在Windows 中安装］。</p><p><img
class="alignnone size-full wp-image-639" src="http://file.dallaslu.com/2009/02/setting.png" alt="setting" width="493" height="357" /></p><p>写上密码之后，选择安装即可。稍后片刻。</p><p><img
class="alignnone size-full wp-image-638" src="http://file.dallaslu.com/2009/02/process.png" alt="process" width="496" height="361" /></p><p>提示重启时，重新启动即可。</p><p><img
class="alignnone size-full wp-image-636" src="http://file.dallaslu.com/2009/02/os.png" alt="os" width="437" height="173" /></p><p>在操作系统选单中即可看见 Ubuntu 的选项。进去体验一下吧。</p><p><img
class="alignnone size-full wp-image-640" src="http://file.dallaslu.com/2009/02/splash.png" alt="splash" width="378" height="193" /></p><p>初次启动时系统还需要进行一些初始化的工作。</p><p><img
class="alignnone size-full wp-image-641" src="http://file.dallaslu.com/2009/02/copying.png" alt="copying" width="430" height="144" /></p><p>至于卸载也十分简单，在 Windows 的 添加与删除程序 中即可像普通程序一样卸载。</p><p><a
href="http://file.dallaslu.com/2009/02/remove.png" rel="lightbox[633]"><img
class="alignnone size-medium wp-image-642" src="http://file.dallaslu.com/2009/02/remove-300x217.png" alt="remove" width="300" height="217" /></a></p><p>光盘镜像下载地址：<a
href="http://www.ubuntu.com/getubuntu/download" target="_blank">http://www.ubuntu.com/getubuntu/download</a></p><p>－－－－－－－－</p><p>博客慌得快长草了。恢复更新咯。</p> ]]></content:encoded> <wfw:commentRss>http://dallaslu.com/kiss-ubuntu-with-installing-in-wubi/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>Ubuntu 下使用 QQ</title><link>http://dallaslu.com/how-to-use-tencent-qq-im-in-ubuntu-linux/</link> <comments>http://dallaslu.com/how-to-use-tencent-qq-im-in-ubuntu-linux/#comments</comments> <pubDate>Mon, 05 Jan 2009 01:16:41 +0000</pubDate> <dc:creator>卢达</dc:creator> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[即时通讯]]></category> <category><![CDATA[Pidgin]]></category> <category><![CDATA[QQ]]></category> <guid
isPermaLink="false">http://dallaslu.com/?p=598</guid> <description><![CDATA[在 Ubuntu Linux 中使用腾讯官方软件 Linux QQ 和 Pidgin 来登录QQ。]]></description> <content:encoded><![CDATA[<p>相信很多人关心能否在 Ubuntu Linux 中使用 QQ。如果是半年前，可能还要麻烦不少。你可以使用腾讯官方发布的 Linux QQ，或者使用 Pidgin等 IM 客户端。</p><p><span
id="more-598"></span>访问 <a
href="http://im.qq.com/qq/linux/" target="_blank">http://im.qq.com/qq/linux/</a> ，下载 DEB 包，直接打开，在出现的窗口中点安装软件包，输入密码，稍等即可。</p><p>在“应用程序”-&gt;“互联网”菜单中可以找到“腾讯QQ”。</p><p><img
class="alignnone size-full wp-image-600" src="http://file.dallaslu.com/2009/01/screenshot-qq.png" alt="screenshot-qq" width="260" height="500" /></p><p>登录体验一下吧。</p><p>但是当前版本与 Windows 下的 QQ 相比，少了很多东西：</p><ul><li>广告</li><li>语音视频</li><li>添加自定义表情</li><li>一堆无用的面板</li></ul><p>相当的精简，一反腾讯风格。而且还可以用标签方式来管理聊天窗口。</p><p>Pidgin 也是一款优秀的 IM 客户端，不需要安装，Ubuntu 默认即有。</p><p>首次运行会提示添加帐号。</p><p><img
class="alignnone size-full wp-image-601" src="http://file.dallaslu.com/2009/01/pidgin-add-account.png" alt="pidgin-add-account" width="410" height="486" /></p><p>简单填写之后点保存就可以。Pidgin 的 QQ 功能简单，只能满足基本的聊天需求。也许你注意到了，Pidgin支持很多协议的聊天工具，如果你有其他的 IM 帐号，可以使用 Pidgin 窗口的“帐户”-&gt;“管理帐户”来添加一个新的帐户；这样只用一个软件就可以登录很多帐号了，甚至还可以<a
title="《在Pidgin中设置登录校内通》－小段段日记" href="http://wk32.com/post/196.html" target="_blank">登录校内通</a>。（Pidgin 也有Windows版本，<a
href="http://www.pidgin.im/download/windows/" target="_blank">下载</a>）</p> ]]></content:encoded> <wfw:commentRss>http://dallaslu.com/how-to-use-tencent-qq-im-in-ubuntu-linux/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>Ubuntu 系列文章预告</title><link>http://dallaslu.com/a-series-of-articles-about-ubuntu-linux-start/</link> <comments>http://dallaslu.com/a-series-of-articles-about-ubuntu-linux-start/#comments</comments> <pubDate>Sun, 04 Jan 2009 13:05:31 +0000</pubDate> <dc:creator>卢达</dc:creator> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Windows]]></category> <guid
isPermaLink="false">http://dallaslu.com/?p=595</guid> <description><![CDATA[我准备写一系列的文章，来讲述在 Ubuntu 下都能干什么，以便打消某些人的疑虑。]]></description> <content:encoded><![CDATA[<p>我认识很多 Windows 的深度用户，他们感叹 Vista 的界面精美，XP 的稳定高效；有些人有着强烈的安全意识，使用过各种杀毒软件，每天乐于花几个小时进行全盘扫描；而有些人根本没有安全意识，自己的电脑被所有人的优盘插来插去，变成了一个毒笼。</p><p><span
id="more-595"></span>他们还有一些特征：</p><ul><li>最喜欢的浏览器是 IE6，偶尔用上了IE7却千方百计地把菜单栏搞出来，并且关闭标签浏览；</li><li>经常重新安装系统，然后手动配置新系统，乐此不疲，甚至每次安装系统前都要进行全盘格式化；</li><li>通过百度搜索来访问某一常用网站；</li><li>从来不用 Word2007，只因为其他人在用 Word2003；</li><li>从来不使用笔记本的休眠功能；</li><li>擅长整理磁盘碎片；</li><li>习惯在桌面上右键点刷新；</li><li>习惯格式化优盘；</li><li>所装软件除了少数免费的，统统是盗版；</li><li>……</li></ul><p>当然，说这些并没有嘲笑的意思。他们就是我的大学同学，就读于软件工程专业。 学习的内容包括 MS SQL、VC++、ASP.NET、JSP等，对于 Linux 的印象只限于某节课在机房中用过的老版本红旗 Linux，和虚拟机中的命令行。</p><p>我很想给他们一个建议，为什么不试试 Ubuntu Linux ？</p><div
id="attachment_121" class="wp-caption alignnone" style="width: 212px"><img
class="size-full wp-image-121" src="http://file.dallaslu.com/2008/06/ubuntulogo.png" alt="Ubuntu" width="202" height="55" /><p
class="wp-caption-text">Ubuntu</p></div><p>至少，使用 Ubuntu 半年以来，我用得很爽。我刚开始用的时候，有人问我这个操作系统都能做什么，后来有几个人也在我的忽悠之下开始尝试。现在 Ubuntu 已经占据了我硬盘的一半，另外一个操作系统是笔记本附带的 OEM 版 Vista。我使用 Windows 的时间越来越少了。</p><p>所以我准备写一系列的文章，假想向我的同学讲述在 Ubuntu 下都能干什么，以打消那些对此感兴趣的人的疑虑，与各位 Ubuntu 爱好者交流使用经验。</p><p>或者，您先看看 <a
href="http://ubuntu.org.cn" target="_blank">Ubuntu中文站</a>？</p><p>本类 RSS 订阅地址：<a
href="http://lorz.me/category/ubuntu/feed/" target="_blank">http://lorz.me/category/ubuntu/feed/</a> ，欢迎订阅。推荐使用 <a
href="http://www.google.com/reader" target="_blank">Google Reader</a>、<a
href="http://www.xianguo.com" target="_blank">鲜果</a>、<a
href="http://mail.qq.com" target="_blank">QQ邮箱阅读空间</a>。</p> ]]></content:encoded> <wfw:commentRss>http://dallaslu.com/a-series-of-articles-about-ubuntu-linux-start/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>本地调试 WordPress</title><link>http://dallaslu.com/wordpress-local-debugging/</link> <comments>http://dallaslu.com/wordpress-local-debugging/#comments</comments> <pubDate>Thu, 11 Dec 2008 15:33:48 +0000</pubDate> <dc:creator>卢达</dc:creator> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Windows]]></category> <guid
isPermaLink="false">http://dallaslu.com/?p=489</guid> <description><![CDATA[如何在本地搭建 LAMP 环境，运行 WordPress ，以方便对主题、程序的调试更改。]]></description> <content:encoded><![CDATA[<p>因为前几次改主题的时候把一些判断写死了。所以之后的更改基本都是在线完成。要崩溃了，所以决定还是把写死的判断改回来，在本地调试。下面给出我使用的本地搭建 WordPress 环境的方法。<br
/> <span
id="more-489"></span></p><h2>Ubuntu Linux 系统</h2><p>当然咯，最方便的是使用源里的。</p><p><code>sudo apt-get install wordpress</code></p><p>现在我的源里默认的是 WordPress 2.5.1 。我曾经尝试过的，安装完之后莫名其妙，WordPress 不知道被安装到哪里去了，倒是 php 、apache2 等依赖程序安装了。所以最好还是一步一步来吧。</p><h3>安装 Apache2+PHP5+MySQL</h3><p><code>sudo apt-get install apache2 libapache2-mod-security libapache2-mod-php5 php5 php5-gd mysql-server php5-mysql phpmyadmin</code></p><p>其中 libapache2-mod-security 可以不装，还可以选装 mysql-admin 。</p><h3>配置php.ini</h3><p><code>sudo gedit /etc/php5/apache2/php.ini</code></p><p>如果有下面这句，前面有分号的话去掉分号；没有则自己加上这句。<br
/> <code>extension=mysql.so</code></p><h3>GD库的安装</h3><p>sudo apt-get install php5-gd<br
/> 记得装完重启apache<br
/> sudo /etc/init.d/apache2 restart</p><h3>启用 mod_rewrite 模块</h3><p>sudo a2enmod rewrite</p><h3>phpMyAdmin</h3><p>默认并不是安装在 /var/www下面的而是在 /usr/share/phpmyadmin，你可以把 phpmyadmin 复制过去，或者创建一个链接，然后把链接复制过去。然后在浏览器里打开 <a
href="http://localhost/phpmyadmin" target="_blank">http://localhost/phpmyadmin</a> ，选择权限－&gt;添加用户，当然这个不是最重要的，而是建立新数据库。</p><h3>安装 WordPress</h3><p>可以去<a
href="http://wordpress.org/download/" target="_blank">官方网站下载</a> ，或者下载 <a
href="http://code.google.com/p/wpcn/downloads/list" target="_blank">中文版</a> 。解压之，放在网站根目录里面。注意一下文件夹权限，不可写的话会有问题的。然后访问你的 WordPress 输入数据库、用户名就可以了。</p><p>如果你发现自定义永久链接不能生效的话，编辑<code>/etc/apache2/sites-available/default</code> 这个站点缺省配置文件。找到<code>AllowOverRide None</code>，更改为<code>AllowOverRide All</code>，记住有多个地方要改。<code>sudo /etc/init.d/apache2 restart</code> 重启apache，也可以用 <code>sudo /etc/init.d/apache2 fore-reload</code> 强制重载配置文件。</p><h2>Windows系统</h2><p>推荐使用 PHPnow 。你可以访问 <a
href="http://phpnow.org" target="_blank">官方网站</a> ，如果不能访问下载链接，请自行搜索。</p><p>如果系统有同类软件件，请先停止或卸载，否则会占默认端口！请关闭迅雷，会占端口！</p><blockquote><p>解压：解压到任意目录；（不能含有中文！例如 "桌面"）<br
/> 安装：运行 Init.cmd 进行初始化；<br
/> 使用：.htdocs 为网站主目录。执行 PnCp.cmd 进行设置或管理。</p><p>注意：卸载前必须执行 Stop.cmd！<br
/> 使用 PnCp.cmd 进行设置和管理。</p></blockquote><p>把 WordPress 的文件夹复制到 htdocs 目录里，然后参考 Ubuntu 里面的方法即可。</p> ]]></content:encoded> <wfw:commentRss>http://dallaslu.com/wordpress-local-debugging/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Reinstall Ubuntu 8.10 from iso in disk</title><link>http://dallaslu.com/reinstall-ubuntu-8-10-from-iso-in-disk/</link> <comments>http://dallaslu.com/reinstall-ubuntu-8-10-from-iso-in-disk/#comments</comments> <pubDate>Sun, 16 Nov 2008 18:51:58 +0000</pubDate> <dc:creator>卢达</dc:creator> <category><![CDATA[Ubuntu]]></category> <guid
isPermaLink="false">http://dallaslu.com/?p=335</guid> <description><![CDATA[Because of some reasons , I finally divide to restall Ubuntu 8.10 , but my CD-rom  does not work just the moment . So , I have to "Intall Ubuntu 8.10 in Ubuntu 8.10 from iso in disk" .]]></description> <content:encoded><![CDATA[<p>Because of some reasons , I finally divide to restall Ubuntu 8.10 , but my CD-rom  does not work just the moment . So , I have to "Intall Ubuntu 8.10 in Ubuntu 8.10 from iso in disk" . But , there is a problem when the Intaller asks us to part the disk . Em ,  then I find something helpful here :</p><blockquote><p><a
href="http://www.redbots.cn/ubuntu/2008/11/05/3482.htm" target="_blank">http://www.redbots.cn/ubuntu/2008/11/05/3482.htm</a></p></blockquote><p>It says , that is suit to <strong>alternate </strong>iso , but I also achieve with desktop iso .</p><p>Now , the installer is running ,and I can sail on the web , the ubuntu live cd is magical , isn't it ?</p><p><em>Some pictures druing installing:</em></p><p><span
id="more-335"></span></p><p><a
href="http://file.dallaslu.com/2008/11/screenshot-e5ae89e8a385.png" rel="lightbox[335]"><img
class="alignnone size-medium wp-image-336" src="http://file.dallaslu.com/2008/11/screenshot-e5ae89e8a385-300x214.png" alt="" width="300" height="214" /></a></p><p><a
href="http://file.dallaslu.com/2008/11/screenshot-installing.png" rel="lightbox[335]"><img
class="alignnone size-medium wp-image-337" src="http://file.dallaslu.com/2008/11/screenshot-installing-300x84.png" alt="" width="300" height="84" /></a></p><p>Why I speak in English now is that I can't type in Chinese ,but it doesn't matter , though my English is poor .</p><p>To be continued ...</p><p>－－－－－－－11月17日 18：35 更新－－－－－－－</p><p>请注意第一张截图，我没有挂载 swap 分区，只是顺手给格式化了。因为我的 iso 文件就是放在这个分区里的，在重新安装之前我把这个区格式化为 fat32 了，当然其他格式比如 ext3 也可以。当从硬盘启动 livecd 之后，要把挂载 iso 的区给卸了，正如上面给出的链接上的页面所说，如果不卸载这个区，会出现安装到分区过程时显示空白的问题。</p><p>那么，安装之后，进入新的系统，做些必要的操作比如修改源、更新之类的事之后，就可以参考 <a
title="自动挂载交换分区" href="http://lorz.me/auto-mount-swap-in-ubuntu/" target="_self">这篇文章</a> 来搞定 Swap 分区。</p><p>呃，我现在使用起来很爽，之前的系统因为一再升级，累计的毛病我都懒得去弄，嘿嘿，都是自己胡乱搞东西的后遗症。把 /home 挂载到单独的分区真是爽哈～</p> ]]></content:encoded> <wfw:commentRss>http://dallaslu.com/reinstall-ubuntu-8-10-from-iso-in-disk/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
