<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.sthelse.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feed.sthelse.com" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/SthElse" type="application/rss+xml"></fs:self_link><lastBuildDate>Tue, 22 Nov 2011 13:00:00 GMT</lastBuildDate><title>Let's try Sth. Else!</title><description>NEVER STOP THINKING</description><image><url>http://www.feedsky.com/feed/SthElse/sc/gif</url><title>Let's try Sth. Else!</title><link>http://www.sthelse.com</link></image><link>http://www.sthelse.com</link><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>1</sy:updateFrequency><language>en</language><pubDate>Tue, 22 Nov 2011 13:00:00 GMT</pubDate><item><title>A man walks into a bar</title><link>http://item.feedsky.com/~feedsky/SthElse/~7833333/579543417/5942712/1/item.html</link><content:encoded>&lt;p&gt;&lt;strong&gt;A man walks into a bar  and asks the bartender  for a glass of water.&lt;/p&gt;
&lt;p&gt;The bartender pulls out  a shotgun&amp;#8230;&lt;/strong&gt; &lt;img src='http://www.sthelse.com/wp-includes/images/smilies/icon_arrow.gif' alt=':arrow:' class='wp-smiley' /&gt;  &lt;/p&gt;
&lt;br /&gt;&lt;h3&gt;相关日志&lt;/h3&gt;&lt;li&gt;暂无相关日志&lt;/li&gt;&lt;/li&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/579543417/SthElse/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/SthElse/~7833333/579543417/5942712/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.sthelse.com/2011/11/a-man-walks-into-a-bar/feed/</wfw:commentRss><slash:comments>0</slash:comments><description>A man walks into a bar  and asks the bartender  for a glass of water.
The bartender pulls out  a shotgun&amp;#8230;   
相关日志暂无相关日志&lt;img src=&quot;http://www1.feedsky.com/t1/579543417/SthElse/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/SthElse/~7833333/579543417/5942712/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>心情日志</category><pubDate>Tue, 22 Nov 2011 21:00:00 +0800</pubDate><author>SthElse</author><comments>http://www.sthelse.com/2011/11/a-man-walks-into-a-bar/#comments</comments><guid isPermaLink="false">http://www.sthelse.com/?p=1136</guid><dc:creator>SthElse</dc:creator><fs:srclink>http://www.sthelse.com/2011/11/a-man-walks-into-a-bar/</fs:srclink><fs:srcfeed>http://www.sthelse.com/feed</fs:srcfeed><fs:itemid>feedsky/SthElse/~7833333/579543417/5942712</fs:itemid></item><item><title>像报纸一样的电子纸</title><link>http://item.feedsky.com/~feedsky/SthElse/~7833333/579543418/5942712/1/item.html</link><content:encoded>&lt;p&gt;&lt;a href=&quot;http://www.sthelse.com/wp-content/uploads/2010/08/lg-display-19-inch-e-ink.jpg&quot; onclick=&quot;return hs.expand(this);&quot; class=&quot;highslide-image&quot;&gt;&lt;img src=&quot;http://www.sthelse.com/wp-content/uploads/2010/08/lg-display-19-inch-e-ink-150x150.jpg&quot; alt=&quot;e-ink-paper&quot; title=&quot;Click to enlarge&quot; / class=&quot;sided alignleft&quot;&gt;&lt;/a&gt;正当同国兄弟 Samsung 放弃其电子纸开发，全面转用 LCD 的时候，LG 却宣布把电子纸推向一个新高峰。 &lt;/p&gt;
&lt;p&gt;根据 SEC filing 的消息，LG 正准备于今年年底大量生产 9.7 寸的彩色电子纸及19寸的可弯曲电子纸。&lt;/p&gt;
&lt;p&gt;由于数据太小，LG 具体生产的产品是什么，我们只好用猜的。虽然 LG 并非 Amazon Kindle 的电子纸生产商，但 9.7寸刚好是 Amazon Kindle DX 的尺寸，加上 Amazon 面对 iPad 的竞争，换一个供货商，早点推出彩色电子纸也并非不可能。&lt;/p&gt;
&lt;p&gt;&lt;span id=&quot;more-1132&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;至于 19寸可弯曲电子纸，LG 正准备大量生产的可能就是上图的东西，像报纸一样的电子纸。如果生活上的报纸全部变成这种电子纸报纸，那我们是不是就跟《哈利波特》里一样在看预言家日报？&lt;/p&gt;
&lt;p&gt;&lt;a class=&quot;related-link&quot; href=&quot;http://www.engadget.com/2010/08/26/lg-putting-9-7-inch-color-19-inch-flexible-e-paper-displays-int/&quot; target=&quot;_blank&quot;&gt;引用来源&lt;/a&gt;&lt;/p&gt;
&lt;br /&gt;&lt;h3&gt;相关日志&lt;/h3&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/08/friendly-chinese-chess-shape-u-disk/&quot; title=&quot;亲切的象棋造型U盘&quot;&gt;亲切的象棋造型U盘&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/08/power-tower-can-also-be-a-work-of-art/&quot; title=&quot;电塔也可以是艺术品！&quot;&gt;电塔也可以是艺术品！&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/08/beijing-will-be-built-for-small-passenger-cars-from-the-bottom-through-the-three-dimensional-fast-bus-transport-system/&quot; title=&quot;北京将兴建让小客车从下方通过的『立体快巴』运输系统&quot;&gt;北京将兴建让小客车从下方通过的『立体快巴』运输系统&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/07/develops-potato-powered-batteries/&quot; title=&quot;开发马铃薯电池&quot;&gt;开发马铃薯电池&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/06/china-will-soon-realize-the-plane-a-cell-phone/&quot; title=&quot;中国即将实现飞机上打手机？&quot;&gt;中国即将实现飞机上打手机？&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/05/photoshop-puppet-warp-function/&quot; title=&quot;新 Photoshop 的怪功能：Puppet Warp&quot;&gt;新 Photoshop 的怪功能：Puppet Warp&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/05/led-lights-can-be-used-to-wireless-internet/&quot; title=&quot;LED灯光可以用来无线上网&quot;&gt;LED灯光可以用来无线上网&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/01/cheers-to-finger-power/&quot; title=&quot;用手指充电的电池&quot;&gt;用手指充电的电池&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/12/007-office-mini-tool-is-missing-everything-relevant/&quot; title=&quot;凌凌漆要你命三千办公室版&quot;&gt;凌凌漆要你命三千办公室版&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/12/transparent-eliminates-opacity-improves-road/&quot; title=&quot;车辆交通新系统：背投前方影像&quot;&gt;车辆交通新系统：背投前方影像&lt;/a&gt;&lt;/li&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/579543418/SthElse/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/SthElse/~7833333/579543418/5942712/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.sthelse.com/2010/08/like-a-newspaper-e-paper/feed/</wfw:commentRss><slash:comments>18</slash:comments><description>正当同国兄弟 Samsung 放弃其电子纸开发，全面转用 LCD 的时候，LG 却宣布把电子纸推向一个新高峰。 
根据 SEC filing 的消息，LG 正准备于今年年底大量生产 9.7 寸的彩色电子纸及19寸的可弯曲电子纸。
由于数据太小，LG 具体生产的产品是什么，我们只好用猜的。虽然 LG 并非 Amazon Kindle 的电子纸生产商，但 9.7寸刚好是 Amazon Kindle DX 的尺寸，加上 Amazon 面对 iPad 的竞争，换一个供货商，早点推出彩色电子纸也并非不可能。

至于 19寸可弯曲电子纸，LG 正准备大量生产的可能就是上图的东西，像报纸一样的电子纸。如果生活上的报纸全部变成这种电子纸报纸，那我们是不是就跟《哈利波特》里一样在看预言家日报？
引用来源
相关日志亲切的象棋造型U盘电塔也可以是艺术品！北京将兴建让小客车从下方通过的『立体快巴』运输系统开发马铃薯电池中国即将实现飞机上打手机？新 Photoshop 的怪功能：Puppet WarpLED灯光可以用来无线上网用手指充电的电池凌凌漆要你命三千办公室版车辆交通新系统：背投前方影像&lt;img src=&quot;http://www1.feedsky.com/t1/579543418/SthElse/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/SthElse/~7833333/579543418/5942712/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>paper</category><category>创意无限</category><pubDate>Mon, 30 Aug 2010 20:18:45 +0800</pubDate><author>SthElse</author><comments>http://www.sthelse.com/2010/08/like-a-newspaper-e-paper/#comments</comments><guid isPermaLink="false">http://www.sthelse.com/?p=1132</guid><dc:creator>SthElse</dc:creator><fs:srclink>http://www.sthelse.com/2010/08/like-a-newspaper-e-paper/</fs:srclink><fs:srcfeed>http://www.sthelse.com/feed</fs:srcfeed><fs:itemid>feedsky/SthElse/~7833333/579543418/5942712</fs:itemid></item><item><title>JAVA 统计输入字符串单词个数</title><link>http://item.feedsky.com/~feedsky/SthElse/~7833333/579543419/5942712/1/item.html</link><content:encoded>&lt;p&gt;在一个项目中需要实现一个统计用户输入字符串中单词个数的功能，例如：&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;用户输入：&lt;/strong&gt;&lt;br /&gt;
aaa ddd bbb&lt;br /&gt;
ccc;ddd;aaa&lt;br /&gt;
afa;&amp;#038;*(eee&lt;br /&gt;
eee*&amp;#038;aaa&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;打印输出：&lt;/strong&gt;&lt;br /&gt;
aaa : 3&lt;br /&gt;
afa : 1&lt;br /&gt;
bbb : 1&lt;br /&gt;
ccc : 1&lt;br /&gt;
ddd : 2&lt;br /&gt;
eee : 2&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;注意事项：&lt;/strong&gt;&lt;br /&gt;
1. 统计所输入字符串的单词个数（大小写字母和数字均构成单词）&lt;br /&gt;
2. 空行后开始显出输出&lt;br /&gt;
3. 输出的单词统计需按字典顺序（a-z）排序&lt;/p&gt;
&lt;p&gt;由于打印输出时要求按照字典顺序输出，在使用存储结构时，我开始想到了&lt;a href=&quot;http://download.oracle.com/javase/6/docs/api/java/util/TreeMap.html&quot; target=&quot;_blank&quot;&gt;TreeMap&lt;/a&gt;。下面是我用&lt;a href=&quot;http://download.oracle.com/javase/6/docs/api/java/util/TreeMap.html&quot; target=&quot;_blank&quot;&gt;TreeMap&lt;/a&gt;完成的实现方案：&lt;/p&gt;
&lt;p&gt;&lt;span id=&quot;more-1122&quot;&gt;&lt;/span&gt;  &lt;/p&gt;
&lt;pre class=&quot;brush: java;&quot;&gt;
/**
 * Author: Beck
 * Date: 2010-08-30
 * Version: 1.0
 */

import java.util.*;
import java.util.regex.*;
import java.io.*;

public class WordCnt {

	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in));
		System.out.println(&amp;quot;Please input words:&amp;quot;);
		StringBuffer sb = new StringBuffer();
		String line = null;

		//Read input streams till line is null.
		while ((line = br.readLine()) != null) {
			sb.append(line);
			if (line.length() == 0) {
				break;
			}
		}

		//Using expression pattern to get words.
		Pattern expression = Pattern.compile(&amp;quot;[a-zA-Z0-9]+&amp;quot;);
		String s = sb.toString();
		Matcher matcher = expression.matcher(s);

		//In this version, using TreeMap to put keys and values.
		TreeMap&amp;lt;Object, Integer&amp;gt; myTreeMap = new TreeMap&amp;lt;Object, Integer&amp;gt;();

		int n = 0;
		Object word = null;
		Object num = null;

		//Counting words.
		while (matcher.find()) {
			word = matcher.group();
			n++;
			if (myTreeMap.containsKey(word)) {
				num = myTreeMap.get(word);
				Integer count = (Integer) num;
				myTreeMap.put(word, new Integer(count.intValue() + 1));
			} else {
				myTreeMap.put(word, new Integer(1));
			}

		}

		//Output statistics.
		System.out.println(&amp;quot;Total words: &amp;quot; + n);
		Iterator&amp;lt;Object&amp;gt; iter = myTreeMap.keySet().iterator();
		Object key = null;
		while (iter.hasNext()) {
			key = iter.next();
			System.out.println((String) key + &amp;quot;:&amp;quot; + myTreeMap.get(key));
		}

	}

}
&lt;/pre&gt;
&lt;p&gt;运行结果如图所示：&lt;br /&gt;
&lt;img src=&quot;http://www.sthelse.com/wp-content/uploads/2010/08/WordCnt.jpg&quot; alt=&quot;WordCnt&quot; title=&quot;WordCnt&quot; width=&quot;458&quot; height=&quot;283&quot; class=&quot;aligncenter size-full wp-image-1123&quot; /&gt;&lt;/p&gt;
&lt;p&gt;需要注意的是：由于TreeMap使用的是红黑树的数据结构，在每Add一个key时都会进行一次排序计算，导致整个算法的性能不是很高。因此我在接下来的改进的解决方案中使用了&lt;a href=&quot;http://download.oracle.com/javase/6/docs/api/java/util/Map.html&quot; target=&quot;_blank&quot;&gt;Map&lt;/a&gt;来进行存储，到最后排序时，才对&lt;a href=&quot;http://download.oracle.com/javase/6/docs/api/java/util/Map.html&quot; target=&quot;_blank&quot;&gt;Map&lt;/a&gt;中的key进行一次sort。代码如下：&lt;/p&gt;
&lt;pre class=&quot;brush: java;&quot;&gt;
/**
 * Author: Beck
 * Date: 2010-08-30
 * Version: 1.1
 */

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;

public class WordCnt {
   public static void main(String[] args) throws Exception {
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      WordCounter counter = new WordCounter();
      String s = null;

      while((s = br.readLine()) != null) {
         if(s.length() == 0) {
            br.close();
            break;
         }

         counter.add(s);
      }

      counter.printResult();
   }
}

class WordCounter {
   public WordCounter() {
   }

   public void add(String line) {
      StringBuffer sb = new StringBuffer();

      for(int i = 0; i &amp;lt; line.length(); i++) {
         boolean add = false;
         char c = line.charAt(i);

         if(c &amp;gt;= 'a' &amp;amp;&amp;amp; c &amp;lt;= 'z' || c &amp;gt;= 'A' &amp;amp;&amp;amp; c &amp;lt;= 'Z') {
            sb.append(c);

            if(i == line.length() - 1) {
               add = true;
            }
         }
         else {
            add = true;
         }

         if(add &amp;amp;&amp;amp; sb.length() &amp;gt; 0) {
            String word = sb.toString();
            Integer count = map.get(word);

            if(count == null) {
               map.put(word, 1);
            }
            else {
               map.put(word, ++count);
            }

            sb = new StringBuffer();
         }
      }
   }

   public void printResult() {
      Set keySet = map.keySet();
      String[] keys = new String[keySet.size()];
      keySet.toArray(keys);
      Arrays.sort(keys);

      for(int i = 0; i &amp;lt; keys.length; i++) {
         System.out.println(keys[i] + &amp;quot; : &amp;quot; + map.get(keys[i]));
      }
   }

   private Map&amp;lt;String, Integer&amp;gt; map = new HashMap&amp;lt;String, Integer&amp;gt;();
}
&lt;/pre&gt;
&lt;p&gt;如果你有效率更高的解决方法，也欢迎你来告诉我 &lt;img src='http://www.sthelse.com/wp-includes/images/smilies/icon_confused.gif' alt=':???:' class='wp-smiley' /&gt;  &lt;/p&gt;
&lt;br /&gt;&lt;h3&gt;相关日志&lt;/h3&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/07/java-to-insert-in-the-main-table-record-id-from-the-table-for-the-main-table-as-a-foreign-key/&quot; title=&quot;java.sql 在主表中插入记录后 从表获取主表ID作为外键&quot;&gt;java.sql 在主表中插入记录后 从表获取主表ID作为外键&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/06/tomcat-jsp-to-achieve-301-redirect/&quot; title=&quot;tomcat+jsp网站中实现301重定向&quot;&gt;tomcat+jsp网站中实现301重定向&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/12/unicode-transferred-into-chinese/&quot; title=&quot;JAVA中Unicode如可转成中文?&quot;&gt;JAVA中Unicode如可转成中文?&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/11/qt-introduction-in-twwln-in-nokia/&quot; title=&quot;让程序开发人员更加省力的Qt 4.6&quot;&gt;让程序开发人员更加省力的Qt 4.6&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/11/ultraedit-macro-functions-using-full-width-half-angle-conversion/&quot; title=&quot;利用UltraEdit的宏功能进行全角/半角转换&quot;&gt;利用UltraEdit的宏功能进行全角/半角转换&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/09/find-widow-in-file/&quot; title=&quot;查找文件中的孤行&quot;&gt;查找文件中的孤行&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/09/javascript-how-to-focus-in-textbox-to-the-specified-location/&quot; title=&quot;javascript如何定位到文本框指定位置&quot;&gt;javascript如何定位到文本框指定位置&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/09/understand-what-is-erp/&quot; title=&quot;让你明白什么是ERP&quot;&gt;让你明白什么是ERP&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/09/an-apue-exercise/&quot; title=&quot;一道APUE习题 &quot;&gt;一道APUE习题 &lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/02/regular-expression-sample/&quot; title=&quot; 正则表达式一例&quot;&gt; 正则表达式一例&lt;/a&gt;&lt;/li&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/579543419/SthElse/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/SthElse/~7833333/579543419/5942712/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.sthelse.com/2010/08/number-of-statistical-input-string-word-count-java/feed/</wfw:commentRss><slash:comments>0</slash:comments><description>在一个项目中需要实现一个统计用户输入字符串中单词个数的功能，例如：
用户输入：
aaa ddd bbb
ccc;ddd;aaa
afa;&amp;#038;*(eee
eee*&amp;#038;aaa
打印输出：
aaa : 3
afa : 1
bbb : 1
ccc : 1
ddd : 2
eee : 2
注意事项：
1. 统计所输入字符串的单词个数（大小写字母和数字均构成单词）
2. 空行后开始显出输出
3. 输出的单词统计需按字典顺序（a-z）排序
由于打印输出时要求按照字典顺序输出，在使用存储结构时，我开始想到了TreeMap。下面是我用TreeMap完成的实现方案：
  

/**
 * Author: Beck
 * Date: 2010-08-30
 * Version: 1.0
 */

import java.util.*;
import java.util.regex.*;
import java.io.*;

public class WordCnt {

	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in));
		System.out.println(&amp;#34;Please input words:&amp;#34;);
		StringBuffer sb = new StringBuffer();
		String line [...]&lt;img src=&quot;http://www1.feedsky.com/t1/579543419/SthElse/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/SthElse/~7833333/579543419/5942712/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>count</category><category>word</category><category>Program</category><category>program</category><category>java</category><pubDate>Mon, 30 Aug 2010 19:57:24 +0800</pubDate><author>SthElse</author><comments>http://www.sthelse.com/2010/08/number-of-statistical-input-string-word-count-java/#comments</comments><guid isPermaLink="false">http://www.sthelse.com/?p=1122</guid><dc:creator>SthElse</dc:creator><fs:srclink>http://www.sthelse.com/2010/08/number-of-statistical-input-string-word-count-java/</fs:srclink><fs:srcfeed>http://www.sthelse.com/feed</fs:srcfeed><fs:itemid>feedsky/SthElse/~7833333/579543419/5942712</fs:itemid></item><item><title>亲切的象棋造型U盘</title><link>http://item.feedsky.com/~feedsky/SthElse/~7833333/579543420/5942712/1/item.html</link><content:encoded>&lt;p&gt;&lt;a href=&quot;http://www.sthelse.com/wp-content/uploads/2010/08/umemo1.jpg&quot; onclick=&quot;return hs.expand(this);&quot; class=&quot;highslide-image&quot;&gt;&lt;img src=&quot;http://www.sthelse.com/wp-content/uploads/2010/08/umemo1-150x150.jpg&quot; alt=&quot;chinese_chess_umemo&quot; title=&quot;Click to enlarge&quot; class=&quot;alignleft sided&quot;/&gt;&lt;/a&gt;这种象棋造型的U盘还是挺有特色的。居然还是在老外的网站上看到的。 &lt;img src='http://www.sthelse.com/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' /&gt;  &lt;/p&gt;
&lt;p&gt;共有2、4、8GB三种选择，造型随机出货，分别为美金16、19、31美元。&lt;/p&gt;
&lt;p&gt;不过，还有全部买下的棋子（2GB），要价449美元，约人民币3,049元。不知有没有人考虑买来下象棋的。所以啊，赶紧国产，本来就是中国象棋嘛！&lt;/p&gt;
&lt;p&gt;&lt;span id=&quot;more-1115&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.sthelse.com/wp-content/uploads/2010/08/umemo2.jpg&quot; alt=&quot;chinese_chess_umemo2&quot; title=&quot;chinese_chess_umemo2&quot; width=&quot;600&quot; height=&quot;450&quot; class=&quot;aligncenter size-full wp-image-1117&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://usb.brando.com/usb-chinese-chess-flash-drive_p01801c041d15.html&quot; target=&quot;_blank&quot;&gt;引用来源&lt;/a&gt;&lt;/p&gt;
&lt;br /&gt;&lt;h3&gt;相关日志&lt;/h3&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/11/the-worlds-most-technology-products/&quot; title=&quot;全世界最囧的科技产品&quot;&gt;全世界最囧的科技产品&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/11/super-talent-introduces-worlds-first-usb-3-0-flash-drive/&quot; title=&quot;Super Talent 发布全球首款USB3.0优盘&quot;&gt;Super Talent 发布全球首款USB3.0优盘&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/10/keyboard-style-card-reader/&quot; title=&quot;键盘按键造型的读卡器&quot;&gt;键盘按键造型的读卡器&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/08/like-a-newspaper-e-paper/&quot; title=&quot;像报纸一样的电子纸&quot;&gt;像报纸一样的电子纸&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/08/power-tower-can-also-be-a-work-of-art/&quot; title=&quot;电塔也可以是艺术品！&quot;&gt;电塔也可以是艺术品！&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/08/beijing-will-be-built-for-small-passenger-cars-from-the-bottom-through-the-three-dimensional-fast-bus-transport-system/&quot; title=&quot;北京将兴建让小客车从下方通过的『立体快巴』运输系统&quot;&gt;北京将兴建让小客车从下方通过的『立体快巴』运输系统&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/07/develops-potato-powered-batteries/&quot; title=&quot;开发马铃薯电池&quot;&gt;开发马铃薯电池&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/06/china-will-soon-realize-the-plane-a-cell-phone/&quot; title=&quot;中国即将实现飞机上打手机？&quot;&gt;中国即将实现飞机上打手机？&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/05/photoshop-puppet-warp-function/&quot; title=&quot;新 Photoshop 的怪功能：Puppet Warp&quot;&gt;新 Photoshop 的怪功能：Puppet Warp&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/05/led-lights-can-be-used-to-wireless-internet/&quot; title=&quot;LED灯光可以用来无线上网&quot;&gt;LED灯光可以用来无线上网&lt;/a&gt;&lt;/li&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/579543420/SthElse/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/SthElse/~7833333/579543420/5942712/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.sthelse.com/2010/08/friendly-chinese-chess-shape-u-disk/feed/</wfw:commentRss><slash:comments>5</slash:comments><description>这种象棋造型的U盘还是挺有特色的。居然还是在老外的网站上看到的。   
共有2、4、8GB三种选择，造型随机出货，分别为美金16、19、31美元。
不过，还有全部买下的棋子（2GB），要价449美元，约人民币3,049元。不知有没有人考虑买来下象棋的。所以啊，赶紧国产，本来就是中国象棋嘛！


引用来源
相关日志全世界最囧的科技产品Super Talent 发布全球首款USB3.0优盘键盘按键造型的读卡器像报纸一样的电子纸电塔也可以是艺术品！北京将兴建让小客车从下方通过的『立体快巴』运输系统开发马铃薯电池中国即将实现飞机上打手机？新 Photoshop 的怪功能：Puppet WarpLED灯光可以用来无线上网&lt;img src=&quot;http://www1.feedsky.com/t1/579543420/SthElse/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/SthElse/~7833333/579543420/5942712/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>chess</category><category>usb</category><category>disk</category><category>创意无限</category><pubDate>Fri, 27 Aug 2010 13:57:49 +0800</pubDate><author>SthElse</author><comments>http://www.sthelse.com/2010/08/friendly-chinese-chess-shape-u-disk/#comments</comments><guid isPermaLink="false">http://www.sthelse.com/?p=1115</guid><dc:creator>SthElse</dc:creator><fs:srclink>http://www.sthelse.com/2010/08/friendly-chinese-chess-shape-u-disk/</fs:srclink><fs:srcfeed>http://www.sthelse.com/feed</fs:srcfeed><fs:itemid>feedsky/SthElse/~7833333/579543420/5942712</fs:itemid></item><item><title>电塔也可以是艺术品！</title><link>http://item.feedsky.com/~feedsky/SthElse/~7833333/579543421/5942712/1/item.html</link><content:encoded>&lt;p&gt;&lt;a href=&quot;http://www.sthelse.com/wp-content/uploads/2010/08/metalman.jpg&quot; onclick=&quot;return hs.expand(this);&quot; class=&quot;highslide-image&quot;&gt;&lt;img src=&quot;http://www.sthelse.com/wp-content/uploads/2010/08/metalman-150x150.jpg&quot; alt=&quot;metalman&quot; title=&quot;Click to enlarge&quot; class=&quot;sided alignleft&quot;/&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;电塔多年来都是那个呆样子，真要说它不好看也不至于，但就是一根根非常工业化的铁架子，四处林立。&lt;/p&gt;
&lt;p&gt;不过美国麻省的建筑设计公司 Choi+Shine 试图改变这一点 &amp;#8212; 他们为冰岛设计的这一系列的电塔称为「巨人的国度」，每一个电塔在输电的功能之外，也都是户外的大型装置艺术作品。&lt;/p&gt;
&lt;p&gt;Choi+Shine 设计了不少可能的造型，除了上图中的几个之外，继续阅读里还有一些。&lt;/p&gt;
&lt;p&gt;&lt;span id=&quot;more-1111&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;虽然说是为冰岛设计的，但冰岛会不会采用也是个未知数。希望能有哪一国的政府能让这个成真啊！&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.sthelse.com/wp-content/uploads/2010/08/metalman-02.jpg&quot; alt=&quot;&quot; title=&quot;metalman-02&quot; width=&quot;541&quot; height=&quot;331&quot; class=&quot;aligncenter size-full wp-image-1112&quot; /&gt;&lt;/p&gt;
&lt;br /&gt;&lt;h3&gt;相关日志&lt;/h3&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/08/like-a-newspaper-e-paper/&quot; title=&quot;像报纸一样的电子纸&quot;&gt;像报纸一样的电子纸&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/08/friendly-chinese-chess-shape-u-disk/&quot; title=&quot;亲切的象棋造型U盘&quot;&gt;亲切的象棋造型U盘&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/08/beijing-will-be-built-for-small-passenger-cars-from-the-bottom-through-the-three-dimensional-fast-bus-transport-system/&quot; title=&quot;北京将兴建让小客车从下方通过的『立体快巴』运输系统&quot;&gt;北京将兴建让小客车从下方通过的『立体快巴』运输系统&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/07/develops-potato-powered-batteries/&quot; title=&quot;开发马铃薯电池&quot;&gt;开发马铃薯电池&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/06/china-will-soon-realize-the-plane-a-cell-phone/&quot; title=&quot;中国即将实现飞机上打手机？&quot;&gt;中国即将实现飞机上打手机？&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/05/photoshop-puppet-warp-function/&quot; title=&quot;新 Photoshop 的怪功能：Puppet Warp&quot;&gt;新 Photoshop 的怪功能：Puppet Warp&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/05/led-lights-can-be-used-to-wireless-internet/&quot; title=&quot;LED灯光可以用来无线上网&quot;&gt;LED灯光可以用来无线上网&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/01/cheers-to-finger-power/&quot; title=&quot;用手指充电的电池&quot;&gt;用手指充电的电池&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/12/007-office-mini-tool-is-missing-everything-relevant/&quot; title=&quot;凌凌漆要你命三千办公室版&quot;&gt;凌凌漆要你命三千办公室版&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/12/transparent-eliminates-opacity-improves-road/&quot; title=&quot;车辆交通新系统：背投前方影像&quot;&gt;车辆交通新系统：背投前方影像&lt;/a&gt;&lt;/li&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/579543421/SthElse/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/SthElse/~7833333/579543421/5942712/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.sthelse.com/2010/08/power-tower-can-also-be-a-work-of-art/feed/</wfw:commentRss><slash:comments>4</slash:comments><description>电塔多年来都是那个呆样子，真要说它不好看也不至于，但就是一根根非常工业化的铁架子，四处林立。
不过美国麻省的建筑设计公司 Choi+Shine 试图改变这一点 &amp;#8212; 他们为冰岛设计的这一系列的电塔称为「巨人的国度」，每一个电塔在输电的功能之外，也都是户外的大型装置艺术作品。
Choi+Shine 设计了不少可能的造型，除了上图中的几个之外，继续阅读里还有一些。

虽然说是为冰岛设计的，但冰岛会不会采用也是个未知数。希望能有哪一国的政府能让这个成真啊！

相关日志像报纸一样的电子纸亲切的象棋造型U盘北京将兴建让小客车从下方通过的『立体快巴』运输系统开发马铃薯电池中国即将实现飞机上打手机？新 Photoshop 的怪功能：Puppet WarpLED灯光可以用来无线上网用手指充电的电池凌凌漆要你命三千办公室版车辆交通新系统：背投前方影像&lt;img src=&quot;http://www1.feedsky.com/t1/579543421/SthElse/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/SthElse/~7833333/579543421/5942712/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>land of giants</category><category>创意无限</category><pubDate>Wed, 18 Aug 2010 18:00:09 +0800</pubDate><author>SthElse</author><comments>http://www.sthelse.com/2010/08/power-tower-can-also-be-a-work-of-art/#comments</comments><guid isPermaLink="false">http://www.sthelse.com/?p=1111</guid><dc:creator>SthElse</dc:creator><fs:srclink>http://www.sthelse.com/2010/08/power-tower-can-also-be-a-work-of-art/</fs:srclink><fs:srcfeed>http://www.sthelse.com/feed</fs:srcfeed><fs:itemid>feedsky/SthElse/~7833333/579543421/5942712</fs:itemid></item><item><title>北京将兴建让小客车从下方通过的『立体快巴』运输系统</title><link>http://item.feedsky.com/~feedsky/SthElse/~7833333/579543422/5942712/1/item.html</link><content:encoded>&lt;p&gt;&lt;a href=&quot;http://www.sthelse.com/wp-content/uploads/2010/08/hugebus.jpg&quot; onclick=&quot;return hs.expand(this);&quot; class=&quot;highslide-image&quot;&gt;&lt;img src=&quot;http://www.sthelse.com/wp-content/uploads/2010/08/hugebus-150x150.jpg&quot; alt=&quot;hugebus&quot; title=&quot;点击放大查看&quot; class=&quot;alignleft sided&quot;/&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;为了解决大小客车抢道让交通一团乱，甚至是其它空气污染、噪音等万年问题，深圳一家叫做华世未来的公司，最近对外展示了一套有趣的大众运输解决方案，并且叫做『立体快巴』，一如上面的模型所示，这东西最大的特色，就是可以让小客车从下方通过。&lt;/p&gt;
&lt;p&gt;整体来说，立体快巴在概念上，跟轻轨地铁算是相当接近，不仅跟一般行车共享道路，车站也可以配合天桥、建筑物来设置，另外也不用跟兴建一般公交车需要的大型停车场，上下车的方式，也很特别，同时还有号称世界第一的接力式供电系统，以及跟飞机一样从侧面来的逃生系统；在兴建所需的成本跟时间上，跟轻轨系统一样，跟一般传统的地铁相比，不仅快速（若采用轨道，根据设计者估计为一年铺设 40 公里，一般要耗时三年）也较为低廉；承载方面，四节车厢的设计，最多可以容纳 1,200 名乘客，行驶的最高时速为 40 公里。&lt;/p&gt;
&lt;p&gt;&lt;span id=&quot;more-1103&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;而挑高共道的设计，或许会有人担心从下面来『碰碰』的问题，这部份设计者则是提出了一些感应提示的系统，不仅是会提醒过高的车辆绕道，也让在底下的小客车不容易『碰壁』，转弯时也设计为优先让快巴通过，算是相当周全的考虑了（但是感觉关键还是在其它车辆驾驶爆走的可能性&amp;#8230;）；而这套系统将抢先在北京的一个生态城设置，预计今年底动工，第一阶段总长度 186 公里。 &lt;img src='http://www.sthelse.com/wp-includes/images/smilies/icon_cool.gif' alt=':cool:' class='wp-smiley' /&gt;  &lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.sthelse.com/wp-content/uploads/2010/08/hugebus02082010.jpg&quot; alt=&quot;hugebus&quot; title=&quot;hugebus&quot; class=&quot;alignleft size-full wp-image-1105&quot; /&gt;&lt;/p&gt;
&lt;br /&gt;&lt;h3&gt;相关日志&lt;/h3&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/08/like-a-newspaper-e-paper/&quot; title=&quot;像报纸一样的电子纸&quot;&gt;像报纸一样的电子纸&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/08/friendly-chinese-chess-shape-u-disk/&quot; title=&quot;亲切的象棋造型U盘&quot;&gt;亲切的象棋造型U盘&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/08/power-tower-can-also-be-a-work-of-art/&quot; title=&quot;电塔也可以是艺术品！&quot;&gt;电塔也可以是艺术品！&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/07/develops-potato-powered-batteries/&quot; title=&quot;开发马铃薯电池&quot;&gt;开发马铃薯电池&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/06/china-will-soon-realize-the-plane-a-cell-phone/&quot; title=&quot;中国即将实现飞机上打手机？&quot;&gt;中国即将实现飞机上打手机？&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/05/photoshop-puppet-warp-function/&quot; title=&quot;新 Photoshop 的怪功能：Puppet Warp&quot;&gt;新 Photoshop 的怪功能：Puppet Warp&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/05/led-lights-can-be-used-to-wireless-internet/&quot; title=&quot;LED灯光可以用来无线上网&quot;&gt;LED灯光可以用来无线上网&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/01/cheers-to-finger-power/&quot; title=&quot;用手指充电的电池&quot;&gt;用手指充电的电池&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/12/007-office-mini-tool-is-missing-everything-relevant/&quot; title=&quot;凌凌漆要你命三千办公室版&quot;&gt;凌凌漆要你命三千办公室版&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/12/transparent-eliminates-opacity-improves-road/&quot; title=&quot;车辆交通新系统：背投前方影像&quot;&gt;车辆交通新系统：背投前方影像&lt;/a&gt;&lt;/li&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/579543422/SthElse/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/SthElse/~7833333/579543422/5942712/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.sthelse.com/2010/08/beijing-will-be-built-for-small-passenger-cars-from-the-bottom-through-the-three-dimensional-fast-bus-transport-system/feed/</wfw:commentRss><slash:comments>5</slash:comments><description>为了解决大小客车抢道让交通一团乱，甚至是其它空气污染、噪音等万年问题，深圳一家叫做华世未来的公司，最近对外展示了一套有趣的大众运输解决方案，并且叫做『立体快巴』，一如上面的模型所示，这东西最大的特色，就是可以让小客车从下方通过。
整体来说，立体快巴在概念上，跟轻轨地铁算是相当接近，不仅跟一般行车共享道路，车站也可以配合天桥、建筑物来设置，另外也不用跟兴建一般公交车需要的大型停车场，上下车的方式，也很特别，同时还有号称世界第一的接力式供电系统，以及跟飞机一样从侧面来的逃生系统；在兴建所需的成本跟时间上，跟轻轨系统一样，跟一般传统的地铁相比，不仅快速（若采用轨道，根据设计者估计为一年铺设 40 公里，一般要耗时三年）也较为低廉；承载方面，四节车厢的设计，最多可以容纳 1,200 名乘客，行驶的最高时速为 40 公里。

而挑高共道的设计，或许会有人担心从下面来『碰碰』的问题，这部份设计者则是提出了一些感应提示的系统，不仅是会提醒过高的车辆绕道，也让在底下的小客车不容易『碰壁』，转弯时也设计为优先让快巴通过，算是相当周全的考虑了（但是感觉关键还是在其它车辆驾驶爆走的可能性&amp;#8230;）；而这套系统将抢先在北京的一个生态城设置，预计今年底动工，第一阶段总长度 186 公里。   

相关日志像报纸一样的电子纸亲切的象棋造型U盘电塔也可以是艺术品！开发马铃薯电池中国即将实现飞机上打手机？新 Photoshop 的怪功能：Puppet WarpLED灯光可以用来无线上网用手指充电的电池凌凌漆要你命三千办公室版车辆交通新系统：背投前方影像&lt;img src=&quot;http://www1.feedsky.com/t1/579543422/SthElse/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/SthElse/~7833333/579543422/5942712/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Beijing</category><category>3D</category><category>China</category><category>创意无限</category><category>bus</category><pubDate>Wed, 04 Aug 2010 20:01:32 +0800</pubDate><author>SthElse</author><comments>http://www.sthelse.com/2010/08/beijing-will-be-built-for-small-passenger-cars-from-the-bottom-through-the-three-dimensional-fast-bus-transport-system/#comments</comments><guid isPermaLink="false">http://www.sthelse.com/?p=1103</guid><dc:creator>SthElse</dc:creator><fs:srclink>http://www.sthelse.com/2010/08/beijing-will-be-built-for-small-passenger-cars-from-the-bottom-through-the-three-dimensional-fast-bus-transport-system/</fs:srclink><fs:srcfeed>http://www.sthelse.com/feed</fs:srcfeed><fs:itemid>feedsky/SthElse/~7833333/579543422/5942712</fs:itemid></item><item><title>java.sql 在主表中插入记录后 从表获取主表ID作为外键</title><link>http://item.feedsky.com/~feedsky/SthElse/~7833333/579543423/5942712/1/item.html</link><content:encoded>&lt;p&gt;在MySQL中，使用auto_increment类型的id字段作为表的主键，并用它作为其他表的外键，形成“主从表结构”，这是数据库设计中常见的用法。但是在具体生成id的时候，我们的操作顺序一般是：先在主表中插入记录，然后获得自动生成的id，以它为基础插入从表的记录。&lt;/p&gt;
&lt;p&gt;这里面有个困难，就是插入主表记录后，如何获得它对应的id。通常的做法，是通过“&lt;strong&gt;&lt;span style=&quot;color: #008000;&quot;&gt;select max(id) from tablename&lt;/span&gt;&lt;/strong&gt;”的做法，但是显然这种做法需要考虑并发的情况，需要在事务中对主表加以“X锁“，待获得&lt;span style=&quot;color: #ff0000;&quot;&gt;max(id)&lt;/span&gt;的值以后，再解锁。这种做法需要的步骤比较多，有些麻烦，而且并发性也不好。有没有更简单的做法呢？&lt;/p&gt;
&lt;p&gt;&lt;span id=&quot;more-1095&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;答案之一是通过&lt;strong&gt;&lt;span style=&quot;color: #008000;&quot;&gt;select LAST_INSERT_ID()&lt;/span&gt;&lt;/strong&gt;这个操作。乍一看，它和&lt;strong&gt;&lt;span style=&quot;color: #008000;&quot;&gt;select max(id)&lt;/span&gt;&lt;/strong&gt;很象，但实际上它是线程安全的。也就是说它是具体于数据库连接的。下面通过实验说明：&lt;/p&gt;
&lt;p&gt;1、在连接1中向A表插入一条记录，A表包含一个&lt;span style=&quot;color: #ff0000;&quot;&gt;auto_increment&lt;/span&gt;类型的字段。&lt;/p&gt;
&lt;p&gt;2、在连接2中向A表再插入一条记录。&lt;/p&gt;
&lt;p&gt;3、结果：在连接1中执行&lt;strong&gt;&lt;span style=&quot;color: #008000;&quot;&gt;select LAST_INSERT_ID()&lt;/span&gt;&lt;/strong&gt;得到的结果和连接2中执行&lt;strong&gt;&lt;span style=&quot;color: #008000;&quot;&gt;select LAST_INSERT_ID()&lt;/span&gt;&lt;/strong&gt;的结果是不同的；而在两个连接中执行&lt;strong&gt;&lt;span style=&quot;color: #008000;&quot;&gt;select max(id)&lt;/span&gt;&lt;/strong&gt;的结果是相同的。&lt;br /&gt;
其实在MSSQL中&lt;span style=&quot;color: #ff0000;&quot;&gt;&lt;em&gt;&lt;strong&gt;SCOPE_IDENTITY()&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;和&lt;span style=&quot;color: #ff0000;&quot;&gt;&lt;em&gt;&lt;strong&gt;IDENT_CURRENT()&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;的区别和这里是类似的。使用&lt;em&gt;&lt;strong&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;SCOPE_IDENTITY()&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;可以获得插入某个IDENTITY字段的当前会话的值，而使用&lt;em&gt;&lt;strong&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;IDENT_CURRENT()&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;会获得在某个IDENTITY字段上插入的最大值，而不区分不同的会话。&lt;/p&gt;
&lt;p&gt;注：使用&lt;strong&gt;&lt;span style=&quot;color: #008000;&quot;&gt;select last_insert_id()&lt;/span&gt;&lt;/strong&gt;时要注意，当一次插入多条记录时，只是获得第一次插入的id值，务必注意！&lt;/p&gt;
&lt;p&gt;当然，我们还可以使用另一种更加便捷的方法：在JDBC追加记录后，使用API获得新追加记录的主键值。&lt;/p&gt;
&lt;p&gt;这个实现使用了&lt;strong&gt;Statement&lt;/strong&gt;的&lt;em&gt;&lt;strong&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;getGeneratedKeys&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;方法,&lt;br /&gt;
当&lt;strong&gt;Statement&lt;/strong&gt;追加了一条记录后，可以直接调用&lt;em&gt;&lt;strong&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;getGeneratedKeys&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;方法获得新追加记录的&lt;span style=&quot;color: #ff0000;&quot;&gt;key&lt;/span&gt;。&lt;/p&gt;
&lt;p&gt;测试程序如下：&lt;/p&gt;
&lt;pre class=&quot;brush: java;&quot;&gt;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;

public class GetGenerateKey {

    public static void main(String[] args) throws Exception {
        create();
    }

    public static void create()throws Exception {
        System.setProperty(&amp;quot;jdbc.drivers&amp;quot;, &amp;quot;com.mysql.jdbc.Driver&amp;quot;);
        Connection conn = DriverManager.getConnection(&amp;quot;jdbc:mysql://localhost:3306/jdbc&amp;quot;, &amp;quot;root&amp;quot;, &amp;quot;&amp;quot;);
        Statement st = conn.createStatement();
        String sql = &amp;quot;insert into user (name, birthday, money) values ('beck', '1949-10-01', 60)&amp;quot;;
        st.executeUpdate(sql, Statement.RETURN_GENERATED_KEYS);
        ResultSet rs = st.getGeneratedKeys();
        if (rs.next()) {
            int id = rs.getInt(1);
            System.out.println (&amp;quot;生成记录的key为 ：&amp;quot; + id);
        }
        st.close();
        conn.close();
    }
}
&lt;/pre&gt;
&lt;p&gt;程序运行结果：&lt;br /&gt;
生成记录的key为 ：9&lt;/p&gt;
&lt;p&gt;数据库的记录为：&lt;/p&gt;
&lt;pre class=&quot;brush: plain;&quot;&gt;
+----+----------+------------+-------+
| id | name     | birthday   | money |
+----+----------+------------+-------+
| 9  | beck     | 1949-10-01 |    60 |
+----+----------+------------+-------+
&lt;/pre&gt;
&lt;p&gt;总结：这个API方法提供的好处就是不用重新再执行一次查询获得新记录的key值。减少了工作量和服务器的负担。&lt;/p&gt;
&lt;p&gt;注意点，在执行executeUpdate方法的时候，要指定返回生成key的选项。&lt;/p&gt;
&lt;p&gt;参考资料：&lt;a href=&quot;http://java.sun.com/javase/6/docs/api/java/beans/Statement.html&quot; target=&quot;_blank&quot;&gt;http://java.sun.com/javase/6/docs/api/java/beans/Statement.html&lt;/a&gt;&lt;/p&gt;
&lt;br /&gt;&lt;h3&gt;相关日志&lt;/h3&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2008/12/useful-wordpress-sql-hacks/&quot; title=&quot;WordPress数据库操作&quot;&gt;WordPress数据库操作&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/08/number-of-statistical-input-string-word-count-java/&quot; title=&quot;JAVA 统计输入字符串单词个数&quot;&gt;JAVA 统计输入字符串单词个数&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/12/unicode-transferred-into-chinese/&quot; title=&quot;JAVA中Unicode如可转成中文?&quot;&gt;JAVA中Unicode如可转成中文?&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/10/th-use-of-foreign-keys-in-mysql-to-achieve-cascading-delete/&quot; title=&quot;在MySQL中利用外键实现级联删除&quot;&gt;在MySQL中利用外键实现级联删除&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/09/find-widow-in-file/&quot; title=&quot;查找文件中的孤行&quot;&gt;查找文件中的孤行&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/02/regular-expression-sample/&quot; title=&quot; 正则表达式一例&quot;&gt; 正则表达式一例&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/02/compile-java-code-in-a-java-program/&quot; title=&quot;Compile Java code in a Java program&quot;&gt;Compile Java code in a Java program&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/01/oracle10g-installation-tips-on-rhel5/&quot; title=&quot;在RHEL5上安装Oracle Database 10g Release 2小贴士&quot;&gt;在RHEL5上安装Oracle Database 10g Release 2小贴士&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/01/ms-sql-server-2000-olap-setup/&quot; title=&quot;SQL Server 2000 OLAP 配置和应用&quot;&gt;SQL Server 2000 OLAP 配置和应用&lt;/a&gt;&lt;/li&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/579543423/SthElse/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/SthElse/~7833333/579543423/5942712/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.sthelse.com/2010/07/java-to-insert-in-the-main-table-record-id-from-the-table-for-the-main-table-as-a-foreign-key/feed/</wfw:commentRss><slash:comments>3</slash:comments><description>在MySQL中，使用auto_increment类型的id字段作为表的主键，并用它作为其他表的外键，形成“主从表结构”，这是数据库设计中常见的用法。但是在具体生成id的时候，我们的操作顺序一般是：先在主表中插入记录，然后获得自动生成的id，以它为基础插入从表的记录。
这里面有个困难，就是插入主表记录后，如何获得它对应的id。通常的做法，是通过“select max(id) from tablename”的做法，但是显然这种做法需要考虑并发的情况，需要在事务中对主表加以“X锁“，待获得max(id)的值以后，再解锁。这种做法需要的步骤比较多，有些麻烦，而且并发性也不好。有没有更简单的做法呢？

答案之一是通过select LAST_INSERT_ID()这个操作。乍一看，它和select max(id)很象，但实际上它是线程安全的。也就是说它是具体于数据库连接的。下面通过实验说明：
1、在连接1中向A表插入一条记录，A表包含一个auto_increment类型的字段。
2、在连接2中向A表再插入一条记录。
3、结果：在连接1中执行select LAST_INSERT_ID()得到的结果和连接2中执行select LAST_INSERT_ID()的结果是不同的；而在两个连接中执行select max(id)的结果是相同的。
其实在MSSQL中SCOPE_IDENTITY()和IDENT_CURRENT()的区别和这里是类似的。使用SCOPE_IDENTITY()可以获得插入某个IDENTITY字段的当前会话的值，而使用IDENT_CURRENT()会获得在某个IDENTITY字段上插入的最大值，而不区分不同的会话。
注：使用select last_insert_id()时要注意，当一次插入多条记录时，只是获得第一次插入的id值，务必注意！
当然，我们还可以使用另一种更加便捷的方法：在JDBC追加记录后，使用API获得新追加记录的主键值。
这个实现使用了Statement的getGeneratedKeys方法,
当Statement追加了一条记录后，可以直接调用getGeneratedKeys方法获得新追加记录的key。
测试程序如下：

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;

public class GetGenerateKey {

    public static void main(String[] args) throws Exception {
        create();
    }

    public static void create()throws Exception {
       [...]&lt;img src=&quot;http://www1.feedsky.com/t1/579543423/SthElse/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/SthElse/~7833333/579543423/5942712/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>sql</category><category>foreign key</category><category>Program</category><category>java</category><category>DataBase</category><pubDate>Thu, 29 Jul 2010 22:01:42 +0800</pubDate><author>SthElse</author><comments>http://www.sthelse.com/2010/07/java-to-insert-in-the-main-table-record-id-from-the-table-for-the-main-table-as-a-foreign-key/#comments</comments><guid isPermaLink="false">http://www.sthelse.com/?p=1095</guid><dc:creator>SthElse</dc:creator><fs:srclink>http://www.sthelse.com/2010/07/java-to-insert-in-the-main-table-record-id-from-the-table-for-the-main-table-as-a-foreign-key/</fs:srclink><fs:srcfeed>http://www.sthelse.com/feed</fs:srcfeed><fs:itemid>feedsky/SthElse/~7833333/579543423/5942712</fs:itemid></item><item><title>如何让所有浏览器状态栏隐藏真实的URL</title><link>http://item.feedsky.com/~feedsky/SthElse/~7833333/579543424/5942712/1/item.html</link><content:encoded>&lt;p&gt;&lt;a href=&quot;http://www.sthelse.com/wp-content/uploads/2010/07/Hide-Real-URL.jpg&quot; onclick=&quot;return hs.expand(this);&quot; class=&quot;highslide-image&quot;&gt;&lt;img src=&quot;http://www.sthelse.com/wp-content/uploads/2010/07/Hide-Real-URL-150x150.jpg&quot; alt=&quot;hide-Real-URL&quot; title=&quot;点击放大查看&quot; class=&quot;alignleft sided&quot;/&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;早上，老杨发信问我怎么在浏览器的状态栏隐藏真实的URL链接地址。&lt;/p&gt;
&lt;p&gt;例如下面这段html代码，当我们把鼠标指向“点击这里”时，在浏览器的状态栏会显示&lt;strong&gt;&lt;em&gt;http://www.evil.com&lt;/em&gt;&lt;/strong&gt;，而他希望用其他的文本（比如&lt;strong&gt;&lt;em&gt;http://www.pure.com&lt;/em&gt;&lt;/strong&gt;）来替换掉原有的URL地址，以达到某种邪恶的目的 &lt;img src='http://www.sthelse.com/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' /&gt;  （也就是你在指向链接的时候，你以为访问的是&lt;strong&gt;&lt;em&gt;www.pure.com&lt;/em&gt;&lt;/strong&gt;，结果。。。你懂的）。&lt;/p&gt;
&lt;pre class=&quot;brush: xml;&quot;&gt;
	&amp;lt;a href=&amp;quot;http://www.evil.com&amp;quot;&amp;gt;点击这里&amp;lt;/a&amp;gt;
&lt;/pre&gt;
&lt;p&gt;解决方法其实很简单，只要将上面的代码改成：&lt;/p&gt;
&lt;pre class=&quot;brush: xml;&quot;&gt;
	&amp;lt;a href=&amp;quot;http://www.evil.com&amp;quot; onMouseOver=&amp;quot;window.status='http://www.pure.com';
	return true&amp;quot; onMouseOut=&amp;quot;window.status=''&amp;quot;&amp;gt;点击这里&amp;lt;/a&amp;gt;
&lt;/pre&gt;
&lt;p&gt;以上代码很简单，也非常易懂，就是让你在鼠标移到链接上的时候，在浏览器的状态栏里用&lt;strong&gt;&lt;em&gt;http://www.pure.com&lt;/em&gt;&lt;/strong&gt;来取代原来的&lt;strong&gt;&lt;em&gt;http://www.evil.com&lt;/em&gt;&lt;/strong&gt;。但是，问题来了，&lt;span style=&quot;color: #ff0000;&quot;&gt;&lt;strong&gt;以上这段代码只能在IE上才能生效&lt;/strong&gt;&lt;/span&gt;，如果访客用的是&lt;strong&gt;firefox&lt;/strong&gt;或者是&lt;strong&gt;chrome&lt;/strong&gt;要怎么办呢？&lt;/p&gt;
&lt;p&gt;&lt;span id=&quot;more-1080&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;我们可以用一段javascript来解决这个问题，使得在所有的浏览器上都能生效。js代码如下：&lt;/p&gt;
&lt;pre class=&quot;brush: jscript;&quot;&gt;
&amp;lt;script language=&amp;quot;javascript&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;
	function redirect(URL)
	{
	 	document.location=URL;
	 	return false;
	}
&amp;lt;/script&amp;gt;
&lt;/pre&gt;
&lt;p&gt;然后，在链接地址里调用这段js里的fuction，如下：&lt;/p&gt;
&lt;pre class=&quot;brush: xml;&quot;&gt;
	&amp;lt;a href=&amp;quot;http://www.pure.com&amp;quot; onclick=&amp;quot;return
	redirect('http://www.evil.com');&amp;quot;&amp;gt;点击这里&amp;lt;/a&amp;gt;
&lt;/pre&gt;
&lt;p&gt;因为大家都知道，我们看到浏览器状态栏里的文本是在超链接的href属性里定义的文本，也就是上面代码里的&lt;strong&gt;&lt;em&gt;http://www.pure.com&lt;/em&gt;&lt;/strong&gt;。但是当你点击链接的时候，onlick事件中的代码将被调用，这样便跳转到了真实的网址（&lt;strong&gt;&lt;em&gt;http://www.evil.com&lt;/em&gt;&lt;/strong&gt;）。&lt;/p&gt;
&lt;p&gt;这样做的好处就是，让所有的浏览器的状态栏都可以隐藏掉真实的网址，而不仅仅是IE。 &lt;img src='http://www.sthelse.com/wp-includes/images/smilies/icon_confused.gif' alt=':???:' class='wp-smiley' /&gt; &lt;/p&gt;
&lt;br /&gt;&lt;h3&gt;相关日志&lt;/h3&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/09/javascript-how-to-focus-in-textbox-to-the-specified-location/&quot; title=&quot;javascript如何定位到文本框指定位置&quot;&gt;javascript如何定位到文本框指定位置&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/07/if-the-browser-is-transportations/&quot; title=&quot;如果浏览器是交通工具&amp;#8230;&quot;&gt;如果浏览器是交通工具&amp;#8230;&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/05/doraemon-shows-you-how-well-your-browser-is-doing-css3/&quot; title=&quot;哆啦A梦告诉你目前各家浏览器对 CSS3 的支持状况&amp;#8230;&quot;&gt;哆啦A梦告诉你目前各家浏览器对 CSS3 的支持状况&amp;#8230;&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/01/ie-chrome-safari-browser-share-2009-12/&quot; title=&quot;IE 继续沉沦，Chrome 压 Safari 成老三&quot;&gt;IE 继续沉沦，Chrome 压 Safari 成老三&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/01/i-am-using-the-firefox-plug-in/&quot; title=&quot;我正在使用的Firefox插件&quot;&gt;我正在使用的Firefox插件&lt;/a&gt;&lt;/li&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/579543424/SthElse/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/SthElse/~7833333/579543424/5942712/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.sthelse.com/2010/07/how-to-hide-all-browser-status-bar-real-url/feed/</wfw:commentRss><slash:comments>1</slash:comments><description>早上，老杨发信问我怎么在浏览器的状态栏隐藏真实的URL链接地址。
例如下面这段html代码，当我们把鼠标指向“点击这里”时，在浏览器的状态栏会显示http://www.evil.com，而他希望用其他的文本（比如http://www.pure.com）来替换掉原有的URL地址，以达到某种邪恶的目的   （也就是你在指向链接的时候，你以为访问的是www.pure.com，结果。。。你懂的）。

	&amp;#60;a href=&amp;#34;http://www.evil.com&amp;#34;&amp;#62;点击这里&amp;#60;/a&amp;#62;

解决方法其实很简单，只要将上面的代码改成：

	&amp;#60;a href=&amp;#34;http://www.evil.com&amp;#34; onMouseOver=&amp;#34;window.status='http://www.pure.com';
	return true&amp;#34; onMouseOut=&amp;#34;window.status=''&amp;#34;&amp;#62;点击这里&amp;#60;/a&amp;#62;

以上代码很简单，也非常易懂，就是让你在鼠标移到链接上的时候，在浏览器的状态栏里用http://www.pure.com来取代原来的http://www.evil.com。但是，问题来了，以上这段代码只能在IE上才能生效，如果访客用的是firefox或者是chrome要怎么办呢？

我们可以用一段javascript来解决这个问题，使得在所有的浏览器上都能生效。js代码如下：

&amp;#60;script language=&amp;#34;javascript&amp;#34; type=&amp;#34;text/javascript&amp;#34;&amp;#62;
	function redirect(URL)
	{
	 	document.location=URL;
	 	return false;
	}
&amp;#60;/script&amp;#62;

然后，在链接地址里调用这段js里的fuction，如下：

	&amp;#60;a href=&amp;#34;http://www.pure.com&amp;#34; onclick=&amp;#34;return
	redirect('http://www.evil.com');&amp;#34;&amp;#62;点击这里&amp;#60;/a&amp;#62;

因为大家都知道，我们看到浏览器状态栏里的文本是在超链接的href属性里定义的文本，也就是上面代码里的http://www.pure.com。但是当你点击链接的时候，onlick事件中的代码将被调用，这样便跳转到了真实的网址（http://www.evil.com）。
这样做的好处就是，让所有的浏览器的状态栏都可以隐藏掉真实的网址，而不仅仅是IE。  
相关日志javascript如何定位到文本框指定位置如果浏览器是交通工具&amp;#8230;哆啦A梦告诉你目前各家浏览器对 CSS3 的支持状况&amp;#8230;IE 继续沉沦，Chrome 压 Safari 成老三我正在使用的Firefox插件&lt;img src=&quot;http://www1.feedsky.com/t1/579543424/SthElse/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/SthElse/~7833333/579543424/5942712/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>url</category><category>firefox</category><category>hide</category><category>Program</category><category>javasrcipt</category><category>ie</category><pubDate>Fri, 23 Jul 2010 21:01:41 +0800</pubDate><author>SthElse</author><comments>http://www.sthelse.com/2010/07/how-to-hide-all-browser-status-bar-real-url/#comments</comments><guid isPermaLink="false">http://www.sthelse.com/?p=1080</guid><dc:creator>SthElse</dc:creator><fs:srclink>http://www.sthelse.com/2010/07/how-to-hide-all-browser-status-bar-real-url/</fs:srclink><fs:srcfeed>http://www.sthelse.com/feed</fs:srcfeed><fs:itemid>feedsky/SthElse/~7833333/579543424/5942712</fs:itemid></item><item><title>如果浏览器是交通工具…</title><link>http://item.feedsky.com/~feedsky/SthElse/~7833333/579543425/5942712/1/item.html</link><content:encoded>&lt;p&gt;&lt;a class=&quot;highslide-image&quot; onclick=&quot;return hs.expand(this);&quot; href=&quot;http://www.sthelse.com/wp-content/uploads/2010/07/browser_transportation.jpg&quot;&gt;&lt;img class=&quot;alignleft sided&quot; title=&quot;点击放大查看&quot; src=&quot;http://www.sthelse.com/wp-content/uploads/2010/07/browser_transportation-150x150.jpg&quot; alt=&quot;browser_transportation&quot; /&gt;&lt;/a&gt;
&lt;p&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&lt;strong&gt;Firefox&lt;/strong&gt;&lt;/span&gt; &amp;#8211; 改装车，改得好的话马力强跑得快，改不好的话&amp;#8230;会长得蛮蠢的。&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&lt;strong&gt;IE&lt;/strong&gt;&lt;/span&gt; &amp;#8211; 死马一只，大概也没得医了，但逼不得已的时候拿来代步还是可以的。&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&lt;strong&gt;Safari&lt;/strong&gt;&lt;/span&gt; &amp;#8211; 脚踏车，虽然非常有效率，但通常只有骑的人在自我感觉良好。&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&lt;strong&gt;Opera&lt;/strong&gt;&lt;/span&gt; &amp;#8211; Smart，有些人爱得要死，但其它人只会觉得它长得很呆。&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&lt;strong&gt;Chrome&lt;/strong&gt; &lt;/span&gt;- 火箭，非常快，就这样而已。 &lt;img src='http://www.sthelse.com/wp-includes/images/smilies/icon_cool.gif' alt=':cool:' class='wp-smiley' /&gt; &lt;/p&gt;
&lt;br /&gt;&lt;h3&gt;相关日志&lt;/h3&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/07/how-to-hide-all-browser-status-bar-real-url/&quot; title=&quot;如何让所有浏览器状态栏隐藏真实的URL&quot;&gt;如何让所有浏览器状态栏隐藏真实的URL&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/05/doraemon-shows-you-how-well-your-browser-is-doing-css3/&quot; title=&quot;哆啦A梦告诉你目前各家浏览器对 CSS3 的支持状况&amp;#8230;&quot;&gt;哆啦A梦告诉你目前各家浏览器对 CSS3 的支持状况&amp;#8230;&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/01/ie-chrome-safari-browser-share-2009-12/&quot; title=&quot;IE 继续沉沦，Chrome 压 Safari 成老三&quot;&gt;IE 继续沉沦，Chrome 压 Safari 成老三&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/09/javascript-how-to-focus-in-textbox-to-the-specified-location/&quot; title=&quot;javascript如何定位到文本框指定位置&quot;&gt;javascript如何定位到文本框指定位置&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2010/01/i-am-using-the-firefox-plug-in/&quot; title=&quot;我正在使用的Firefox插件&quot;&gt;我正在使用的Firefox插件&lt;/a&gt;&lt;/li&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/579543425/SthElse/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/SthElse/~7833333/579543425/5942712/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.sthelse.com/2010/07/if-the-browser-is-transportations/feed/</wfw:commentRss><slash:comments>2</slash:comments><description>Firefox &amp;#8211; 改装车，改得好的话马力强跑得快，改不好的话&amp;#8230;会长得蛮蠢的。
IE &amp;#8211; 死马一只，大概也没得医了，但逼不得已的时候拿来代步还是可以的。
Safari &amp;#8211; 脚踏车，虽然非常有效率，但通常只有骑的人在自我感觉良好。
Opera &amp;#8211; Smart，有些人爱得要死，但其它人只会觉得它长得很呆。
Chrome - 火箭，非常快，就这样而已。  
相关日志如何让所有浏览器状态栏隐藏真实的URL哆啦A梦告诉你目前各家浏览器对 CSS3 的支持状况&amp;#8230;IE 继续沉沦，Chrome 压 Safari 成老三javascript如何定位到文本框指定位置我正在使用的Firefox插件&lt;img src=&quot;http://www1.feedsky.com/t1/579543425/SthElse/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/SthElse/~7833333/579543425/5942712/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>firefox</category><category>browser</category><category>创意无限</category><category>ie</category><pubDate>Thu, 22 Jul 2010 10:51:05 +0800</pubDate><author>SthElse</author><comments>http://www.sthelse.com/2010/07/if-the-browser-is-transportations/#comments</comments><guid isPermaLink="false">http://www.sthelse.com/?p=1064</guid><dc:creator>SthElse</dc:creator><fs:srclink>http://www.sthelse.com/2010/07/if-the-browser-is-transportations/</fs:srclink><fs:srcfeed>http://www.sthelse.com/feed</fs:srcfeed><fs:itemid>feedsky/SthElse/~7833333/579543425/5942712</fs:itemid></item><item><title>装软件什么的，最讨厌了···</title><link>http://item.feedsky.com/~feedsky/SthElse/~7833333/579543426/5942712/1/item.html</link><content:encoded>&lt;p&gt;&lt;a class=&quot;highslide-image&quot; onclick=&quot;return hs.expand(this);&quot; href=&quot;http://www.sthelse.com/wp-content/uploads/2010/07/soft-install-problem.jpg&quot;&gt;&lt;img class=&quot;alignleft sided&quot; title=&quot;点击放大查看&quot; src=&quot;http://www.sthelse.com/wp-content/uploads/2010/07/soft-install-problem-150x150.jpg&quot; alt=&quot;install-software-most-hate&quot; /&gt;&lt;/a&gt;安装软件、使用软件本来是一件快乐的事，但是偏偏有的软件在安装步骤时会搞「小聪明」，或者连问都不问就自作主张的装在它默认预设的地方，这些其实都是小问题，但是累积起来可是会气死人，今次就来发一下牢骚，诉说安装软件时最讨厌的几个地方。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;讨厌一，预设安装在 C盘还没得改&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;最讨厌连问都不问就把软件安装在C:\ 盘！每次安装新或升级软件时，我总会特别注意预设安装的地方，因为不喜欢很多软件去占据装有操作系统的 C 盘。我喜欢把 C 修改成 D，D 盘里放着我许多喜欢或试用的软件，若不幸重装时，也能从这里知道哪些没重新安装到。&lt;/p&gt;
&lt;p&gt;但是，很多软件在安装时，却完全跳过这一项选择，好像一副「这个问题还需要问？交给我最放心」的自负模样，然后安装完就发现，全都装到 C 盘去&amp;#8230;&amp;#8230;请问是有什么特殊任务一定要装在 C 盘？还是怕使用者把软件乱安装到其它盘去、弄坏了系统、搞乱了路径，使得电脑自爆？&lt;/p&gt;
&lt;p&gt;&lt;span id=&quot;more-1056&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;讨厌二，安装步骤的陷阱&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;这个问题众所皆知，让我们在安装软件时，犹如在玩侦探游戏，深怕一个不小心的「下一步」就让你的首页被绑架、IE 多出工具列、奇怪的软件下载。我也曾经（现在也还是）是那种安装软件时一直按下一步的人，尤其是安装非中文的软件，几乎都是下一步、下一步到完成。&lt;/p&gt;
&lt;p&gt;但是很多的陷阱就藏在这些安装步骤里，只要你忘了或没看到或看不懂，让这些已经预设打勾的内容进行到下一步，就会使你在安装完软件后，「突然」发现不知怎么解决的一堆问题。最后当然是拜一拜Google大神，才解决问题所在，所以千万不要让你的「下一步」变成千古恨啊。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;讨厌三，谁说一开机就要「启动」你？&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;很多软件都犯了大头症，觉得自己很伟大、计算机使用者每天一定会用到它，所以一定得在电脑开机时先启动，十分为使用者着想，真是足～～讨厌的啦！我的电脑已经买了 N 年，虽说不是跑不动但也希望开机能开快一点，总是有很多知名的软件在安装时，也没问电脑开机时需不需同时启动，便很好心预设开启，有的更绝，安装时没选随开机启动，但还是照常列入启动行列，所以在安装选项里是问爽的就是了？&lt;/p&gt;
&lt;p&gt;好，你会自动启动，我就手动关掉，但是，这些软件不自行开机启动是会被工程师灭绝还是如何，再度开机或是过一阵子它便会又重返启动行列，更别提重新安装或升级时又再来坚守启动选项了。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;讨厌四，乱装资料夹&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;我对于数据夹，喜欢将它分类好，超讨厌不请自来的东西，这种感觉就好像有人随便开了我房门，偷偷放了一箱自认会让我觉得好用方便的东西，然后自觉做了善事般的离去。我不需要，好吗～～我喜欢保持「我的文件」的清爽，但是总会发现里头多了一堆软件预设的数据夹，一个还好，反正软件商可能怕我找不到储存的数据，但是一次装了三个，有没有这么重要啊？难道就不可以设一个专属数据夹后再于里头多开三个、五个？&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;其实，最最讨厌的是，安装的时候让你填写CDKEY。。。&lt;/span&gt; &lt;img src='http://www.sthelse.com/wp-includes/images/smilies/icon_cry.gif' alt=':cry:' class='wp-smiley' /&gt; &lt;/p&gt;
&lt;br /&gt;&lt;h3&gt;相关日志&lt;/h3&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2009/01/happy-new-year/&quot; title=&quot;Happy New Year!&quot;&gt;Happy New Year!&lt;/a&gt;&lt;li&gt;&lt;a href=&quot;http://www.sthelse.com/2008/12/elapse-poems/&quot; title=&quot;那些流逝的乐章···&quot;&gt;那些流逝的乐章···&lt;/a&gt;&lt;/li&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/579543426/SthElse/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/SthElse/~7833333/579543426/5942712/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.sthelse.com/2010/07/install-software-most-hate-issues/feed/</wfw:commentRss><slash:comments>3</slash:comments><description>安装软件、使用软件本来是一件快乐的事，但是偏偏有的软件在安装步骤时会搞「小聪明」，或者连问都不问就自作主张的装在它默认预设的地方，这些其实都是小问题，但是累积起来可是会气死人，今次就来发一下牢骚，诉说安装软件时最讨厌的几个地方。
讨厌一，预设安装在 C盘还没得改
最讨厌连问都不问就把软件安装在C:\ 盘！每次安装新或升级软件时，我总会特别注意预设安装的地方，因为不喜欢很多软件去占据装有操作系统的 C 盘。我喜欢把 C 修改成 D，D 盘里放着我许多喜欢或试用的软件，若不幸重装时，也能从这里知道哪些没重新安装到。
但是，很多软件在安装时，却完全跳过这一项选择，好像一副「这个问题还需要问？交给我最放心」的自负模样，然后安装完就发现，全都装到 C 盘去&amp;#8230;&amp;#8230;请问是有什么特殊任务一定要装在 C 盘？还是怕使用者把软件乱安装到其它盘去、弄坏了系统、搞乱了路径，使得电脑自爆？

讨厌二，安装步骤的陷阱
这个问题众所皆知，让我们在安装软件时，犹如在玩侦探游戏，深怕一个不小心的「下一步」就让你的首页被绑架、IE 多出工具列、奇怪的软件下载。我也曾经（现在也还是）是那种安装软件时一直按下一步的人，尤其是安装非中文的软件，几乎都是下一步、下一步到完成。
但是很多的陷阱就藏在这些安装步骤里，只要你忘了或没看到或看不懂，让这些已经预设打勾的内容进行到下一步，就会使你在安装完软件后，「突然」发现不知怎么解决的一堆问题。最后当然是拜一拜Google大神，才解决问题所在，所以千万不要让你的「下一步」变成千古恨啊。
讨厌三，谁说一开机就要「启动」你？
很多软件都犯了大头症，觉得自己很伟大、计算机使用者每天一定会用到它，所以一定得在电脑开机时先启动，十分为使用者着想，真是足～～讨厌的啦！我的电脑已经买了 N 年，虽说不是跑不动但也希望开机能开快一点，总是有很多知名的软件在安装时，也没问电脑开机时需不需同时启动，便很好心预设开启，有的更绝，安装时没选随开机启动，但还是照常列入启动行列，所以在安装选项里是问爽的就是了？
好，你会自动启动，我就手动关掉，但是，这些软件不自行开机启动是会被工程师灭绝还是如何，再度开机或是过一阵子它便会又重返启动行列，更别提重新安装或升级时又再来坚守启动选项了。
讨厌四，乱装资料夹
我对于数据夹，喜欢将它分类好，超讨厌不请自来的东西，这种感觉就好像有人随便开了我房门，偷偷放了一箱自认会让我觉得好用方便的东西，然后自觉做了善事般的离去。我不需要，好吗～～我喜欢保持「我的文件」的清爽，但是总会发现里头多了一堆软件预设的数据夹，一个还好，反正软件商可能怕我找不到储存的数据，但是一次装了三个，有没有这么重要啊？难道就不可以设一个专属数据夹后再于里头多开三个、五个？
其实，最最讨厌的是，安装的时候让你填写CDKEY。。。  
相关日志Happy New Year!那些流逝的乐章···&lt;img src=&quot;http://www1.feedsky.com/t1/579543426/SthElse/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/SthElse/~7833333/579543426/5942712/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>software</category><category>心情日志</category><pubDate>Wed, 21 Jul 2010 18:25:38 +0800</pubDate><author>SthElse</author><comments>http://www.sthelse.com/2010/07/install-software-most-hate-issues/#comments</comments><guid isPermaLink="false">http://www.sthelse.com/?p=1056</guid><dc:creator>SthElse</dc:creator><fs:srclink>http://www.sthelse.com/2010/07/install-software-most-hate-issues/</fs:srclink><fs:srcfeed>http://www.sthelse.com/feed</fs:srcfeed><fs:itemid>feedsky/SthElse/~7833333/579543426/5942712</fs:itemid></item></channel></rss>
