<?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>Little Fox is Learning</title>
	<atom:link href="http://corababy.net/tech/feed/" rel="self" type="application/rss+xml" />
	<link>http://corababy.net/tech</link>
	<description>People are designed for lots of things, but loneliness isn&#039;t one of them.</description>
	<lastBuildDate>Thu, 20 Aug 2009 23:16:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>尽信书? 无书? 边读书边思考?</title>
		<link>http://corababy.net/tech/2009/08/21/%e5%b0%bd%e4%bf%a1%e4%b9%a6-%e6%97%a0%e4%b9%a6-%e8%be%b9%e8%af%bb%e4%b9%a6%e8%be%b9%e6%80%9d%e8%80%83/</link>
		<comments>http://corababy.net/tech/2009/08/21/%e5%b0%bd%e4%bf%a1%e4%b9%a6-%e6%97%a0%e4%b9%a6-%e8%be%b9%e8%af%bb%e4%b9%a6%e8%be%b9%e6%80%9d%e8%80%83/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 23:16:44 +0000</pubDate>
		<dc:creator>little fox</dc:creator>
				<category><![CDATA[Thinking]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[产品策划]]></category>
		<category><![CDATA[产品设计]]></category>

		<guid isPermaLink="false">http://corababy.net/tech/?p=54</guid>
		<description><![CDATA[我是在昨天才异常清晰的明白, 自己所处的位置是那样最底层的最底层.
当相同的事情用不同的视角和分析方法去思考的时候就会发现其中的截然不同之处.
我才理解到, 那些建立在好玩基础之上而促使自己去光顾的网站, 是可以用理论化的科学依据去作解释的.
比如, 它可以让我和朋友交流并保持联系.
比如, 它可以满足我消磨时光的无聊感.
比如, 它可以令自己找到炫耀和展示的地方.
而每一样事物在被创造直到抵达终极的使用者的位置是经过一份漫长和隐忍的过程, 也许免不了的长篇论断, 也不能无视在开发过程中的曲折和艰险, 更无法预知那个和角色模型对应的实实在在的使用者会不会真正的喜欢.
这是赌注, 也是需要极大勇气的冒险.
重要的并非是实现的过程, 毕竟在实现的时候, 内心已经有了一枚明确和清晰的目标.
真正困难的是探索, 没有照明的工具, 没有任何光亮的来源, 在黑暗中, 最容易迷失的就是方向感.
书上说应该如何, 应该按照怎样的流程.
书上说的对, 但是不全面, 书上总是不会考虑的突发状况和新生事物. 书上会用已经存在的那些, 书上的探索精神却是在真正去做的过程中一步一步发掘而来的.
尽信书不如无书, 不过, 书还是要看, 只是相信什么, 思考什么似乎要重新规划了.
++好孩子珊瑚++
]]></description>
			<content:encoded><![CDATA[<p>我是在昨天才异常清晰的明白, 自己所处的位置是那样最底层的最底层.</p>
<p>当相同的事情用不同的视角和分析方法去思考的时候就会发现其中的截然不同之处.</p>
<p>我才理解到, 那些建立在好玩基础之上而促使自己去光顾的网站, 是可以用理论化的科学依据去作解释的.</p>
<p>比如, 它可以让我和朋友交流并保持联系.<br />
比如, 它可以满足我消磨时光的无聊感.<br />
比如, 它可以令自己找到炫耀和展示的地方.</p>
<p>而每一样事物在被创造直到抵达终极的使用者的位置是经过一份漫长和隐忍的过程, 也许免不了的长篇论断, 也不能无视在开发过程中的曲折和艰险, 更无法预知那个和角色模型对应的实实在在的使用者会不会真正的喜欢.<br />
这是赌注, 也是需要极大勇气的冒险.</p>
<p>重要的并非是实现的过程, 毕竟在实现的时候, 内心已经有了一枚明确和清晰的目标.</p>
<p>真正困难的是探索, 没有照明的工具, 没有任何光亮的来源, 在黑暗中, 最容易迷失的就是方向感.</p>
<p>书上说应该如何, 应该按照怎样的流程.</p>
<p>书上说的对, 但是不全面, 书上总是不会考虑的突发状况和新生事物. 书上会用已经存在的那些, 书上的探索精神却是在真正去做的过程中一步一步发掘而来的.</p>
<p>尽信书不如无书, 不过, 书还是要看, 只是相信什么, 思考什么似乎要重新规划了.</p>
<p>++好孩子珊瑚++</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fcorababy.net%2Ftech%2F2009%2F08%2F21%2F%25e5%25b0%25bd%25e4%25bf%25a1%25e4%25b9%25a6-%25e6%2597%25a0%25e4%25b9%25a6-%25e8%25be%25b9%25e8%25af%25bb%25e4%25b9%25a6%25e8%25be%25b9%25e6%2580%259d%25e8%2580%2583%2F&amp;linkname=%E5%B0%BD%E4%BF%A1%E4%B9%A6%3F%20%E6%97%A0%E4%B9%A6%3F%20%E8%BE%B9%E8%AF%BB%E4%B9%A6%E8%BE%B9%E6%80%9D%E8%80%83%3F"><img src="http://corababy.net/tech/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://corababy.net/tech/2009/08/21/%e5%b0%bd%e4%bf%a1%e4%b9%a6-%e6%97%a0%e4%b9%a6-%e8%be%b9%e8%af%bb%e4%b9%a6%e8%be%b9%e6%80%9d%e8%80%83/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[读书笔记]UCD火花集 &#8211; 人物角色设计</title>
		<link>http://corababy.net/tech/2009/08/13/%e8%af%bb%e4%b9%a6%e7%ac%94%e8%ae%b0ucd%e7%81%ab%e8%8a%b1%e9%9b%86-%e4%ba%ba%e7%89%a9%e8%a7%92%e8%89%b2%e8%ae%be%e8%ae%a1/</link>
		<comments>http://corababy.net/tech/2009/08/13/%e8%af%bb%e4%b9%a6%e7%ac%94%e8%ae%b0ucd%e7%81%ab%e8%8a%b1%e9%9b%86-%e4%ba%ba%e7%89%a9%e8%a7%92%e8%89%b2%e8%ae%be%e8%ae%a1/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 05:16:06 +0000</pubDate>
		<dc:creator>little fox</dc:creator>
				<category><![CDATA[Reading Note]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[ucd火花集]]></category>
		<category><![CDATA[人物角色设计]]></category>

		<guid isPermaLink="false">http://corababy.net/tech/?p=42</guid>
		<description><![CDATA[人物角色设计

&#34;人物角色&#34;是一个工具, 用来帮助产品设计人员和团队成员了解并记住用户需求.
&#160;
角色的每一个属性, 都是从大量的真实数据中提炼出来的. 
&#160;
因而, 任何脱离数据基础的角色, 并不具有说服力, 更不可能对产品决策产生任何正面影响.

来自Angela老师的&#8221;角色是用户的可视化界面&#8221;

人物角色(Personas)本质上可以说是&#34;针对网站目标群体的部分真实特征的描述&#34;.
&#160;
如何使人物真实可信:
&#160;
1) 每个角色能代表所关注的真正用户
&#160;
2) 角色的属性和描述是精确而完整的.
&#160;
3) 这一组角色能涵盖所有的用户


那么是不是可以认为人物角色起到了具象化的作用, 把很多抽象的, 散乱的, 无章的数据进行分析再整合, 相同类型的人格类型, 或者说性格聚合在一起, 再进行符合设计需求的加工和修饰.
就像是写小说, 来源于生活, 所以读起来真实可信, 高于生活, 所以更加引人入胜. 不一定会在生活中找到完全的一摸一样的人, 但是会发现这一类型人们的影子, 在潜意识中形成这样一种感觉: 人物角色是真真实实存在的.
来自白鸦老师的&#8221;让人物角色站到你的面前&#8221;

角色设计是&#34;通过创建典型用户来代表具有不同目标的用户从而满足具有类似目标和需求的用户群&#34;.
&#160;
产品设计者可以站在用户的角度考虑问题, 从而把设计者的注意力集中在用户需求和目标上.
&#160;
角色设计可以更加真实亲近的在线典型用户, 具象化服务对象, 让产品设计更有针对性.
&#160;
角色设计的前提是, 你能够很好很准确的了解和把握产品即将面对的用户群的特征, 以及其特征性的行为模式.

角 色设计的阻力原来是来自于设计师自己么? 或者说很大程度上是来自于设计师本身的. 想来, 这个现象原来是那样普遍和深入. 而常常作为旁观者的其他人似乎习惯于这样一种模式, 我想, 还是责任感在作怪吧. 当我们缺乏责任感的时候会仅仅看到属于自己的那一部分, 而之前和之后的事情无论结果是怎样, 我们都只是充当倾听者和接受者的角色.
如果说角色设计占有的是一席重要位置的话, 我在此处就跌倒了. 回想仅仅是自己对博客的设计, 就已经充满了150%的主观性, 而我从来不知道谁会来读, 读哪个分类下面的文字, 是不是喜欢, 看来在这件事情上我在乎的, 是我自己的感受, 仅仅是我自己的.
那些以自我为中心的潜意识理念是需要在这个学习过程中剔除的, 舍弃与得到, 代价一致, 但结局会完全不同.
自省是靠近目标的第一步.
++好孩子珊瑚++
]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: Courier New;"><strong>人物角色设计</strong></span></p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">&quot;人物角色&quot;是一个工具, 用来帮助产品设计人员和团队成员了解并记住用户需求.
&nbsp;
角色的每一个属性, 都是从大量的真实数据中提炼出来的. 
&nbsp;
因而, 任何脱离数据基础的角色, 并不具有说服力, 更不可能对产品决策产生任何正面影响.</pre></div></div>

<p><strong>来自Angela老师的&#8221;角色是用户的可视化界面&#8221;</strong></p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">人物角色(Personas)本质上可以说是&quot;针对网站目标群体的部分真实特征的描述&quot;.
&nbsp;
如何使人物真实可信:
&nbsp;
1) 每个角色能代表所关注的真正用户
&nbsp;
2) 角色的属性和描述是精确而完整的.
&nbsp;
3) 这一组角色能涵盖所有的用户</pre></div></div>

<p><span style="font-family: Courier New;"><br />
那么是不是可以认为人物角色起到了具象化的作用, 把很多抽象的, 散乱的, 无章的数据进行分析再整合, 相同类型的人格类型, 或者说性格聚合在一起, 再进行符合设计需求的加工和修饰.<br />
就像是写小说, 来源于生活, 所以读起来真实可信, 高于生活, 所以更加引人入胜. 不一定会在生活中找到完全的一摸一样的人, 但是会发现这一类型人们的影子, 在潜意识中形成这样一种感觉: 人物角色是真真实实存在的.</span></p>
<p><span style="font-family: Courier New;"><strong>来自白鸦老师的&#8221;让人物角色站到你的面前&#8221;</strong></span></p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">角色设计是&quot;通过创建典型用户来代表具有不同目标的用户从而满足具有类似目标和需求的用户群&quot;.
&nbsp;
产品设计者可以站在用户的角度考虑问题, 从而把设计者的注意力集中在用户需求和目标上.
&nbsp;
角色设计可以更加真实亲近的在线典型用户, 具象化服务对象, 让产品设计更有针对性.
&nbsp;
角色设计的前提是, 你能够很好很准确的了解和把握产品即将面对的用户群的特征, 以及其特征性的行为模式.</pre></div></div>

<p>角 色设计的阻力原来是来自于设计师自己么? 或者说很大程度上是来自于设计师本身的. 想来, 这个现象原来是那样普遍和深入. 而常常作为旁观者的其他人似乎习惯于这样一种模式, 我想, 还是责任感在作怪吧. 当我们缺乏责任感的时候会仅仅看到属于自己的那一部分, 而之前和之后的事情无论结果是怎样, 我们都只是充当倾听者和接受者的角色.</p>
<p>如果说角色设计占有的是一席重要位置的话, 我在此处就跌倒了. 回想仅仅是自己对博客的设计, 就已经充满了150%的主观性, 而我从来不知道谁会来读, 读哪个分类下面的文字, 是不是喜欢, 看来在这件事情上我在乎的, 是我自己的感受, 仅仅是我自己的.</p>
<p>那些以自我为中心的潜意识理念是需要在这个学习过程中剔除的, 舍弃与得到, 代价一致, 但结局会完全不同.</p>
<p>自省是靠近目标的第一步.</p>
<p><strong>++好孩子珊瑚++</strong></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fcorababy.net%2Ftech%2F2009%2F08%2F13%2F%25e8%25af%25bb%25e4%25b9%25a6%25e7%25ac%2594%25e8%25ae%25b0ucd%25e7%2581%25ab%25e8%258a%25b1%25e9%259b%2586-%25e4%25ba%25ba%25e7%2589%25a9%25e8%25a7%2592%25e8%2589%25b2%25e8%25ae%25be%25e8%25ae%25a1%2F&amp;linkname=%5B%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0%5DUCD%E7%81%AB%E8%8A%B1%E9%9B%86%20%26%238211%3B%20%E4%BA%BA%E7%89%A9%E8%A7%92%E8%89%B2%E8%AE%BE%E8%AE%A1"><img src="http://corababy.net/tech/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://corababy.net/tech/2009/08/13/%e8%af%bb%e4%b9%a6%e7%ac%94%e8%ae%b0ucd%e7%81%ab%e8%8a%b1%e9%9b%86-%e4%ba%ba%e7%89%a9%e8%a7%92%e8%89%b2%e8%ae%be%e8%ae%a1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to access remote mysql database in local phpmyadmin</title>
		<link>http://corababy.net/tech/2009/08/08/how-to-access-remote-mysql-database-in-local-phpmyadmin/</link>
		<comments>http://corababy.net/tech/2009/08/08/how-to-access-remote-mysql-database-in-local-phpmyadmin/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 17:04:35 +0000</pubDate>
		<dc:creator>little fox</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[phpmyadmin]]></category>

		<guid isPermaLink="false">http://corababy.net/tech/?p=37</guid>
		<description><![CDATA[I used wamp, so the path is base on the installing path of wamp application.
Go to
[your wamp root path, something like D:\wamp]\apps\phpmyadmin[version id, something like 2.11.6]\config.inc.php
example:

D:\wamp\apps\phpmyadmin2.11.6\config.inc.php

After each $i++, admin can add a new remote database server for local access.
I guess normally we keep the first one for localhost database.
++Cora++
]]></description>
			<content:encoded><![CDATA[<p>I used wamp, so the path is base on the installing path of wamp application.</p>
<p>Go to<br />
<strong>[your wamp root path, something like D:\wamp]\apps\phpmyadmin[version id, something like 2.11.6]\config.inc.php</strong><br />
example:</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">D:\wamp\apps\phpmyadmin2.11.6\config.inc.php</pre></div></div>

<p>After each $i++, admin can add a new remote database server for local access.</p>
<p>I guess normally we keep the first one for localhost database.</p>
<p>++Cora++</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fcorababy.net%2Ftech%2F2009%2F08%2F08%2Fhow-to-access-remote-mysql-database-in-local-phpmyadmin%2F&amp;linkname=How%20to%20access%20remote%20mysql%20database%20in%20local%20phpmyadmin"><img src="http://corababy.net/tech/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://corababy.net/tech/2009/08/08/how-to-access-remote-mysql-database-in-local-phpmyadmin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using jquery to set default value of input box</title>
		<link>http://corababy.net/tech/2009/08/07/using-jquery-to-set-default-value-of-input-box/</link>
		<comments>http://corababy.net/tech/2009/08/07/using-jquery-to-set-default-value-of-input-box/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 15:56:00 +0000</pubDate>
		<dc:creator>little fox</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[defaultValue]]></category>
		<category><![CDATA[inputBox]]></category>

		<guid isPermaLink="false">http://corababy.net/tech/?p=29</guid>
		<description><![CDATA[Well, there are couples of tutorials online to teach us, and also lots of jquery plugin for it. But I feel like I don&#8217;t need that huge functionality for this tiny thing.
So I wrote this one which is just for the little functionality.
Feature:
# default value in input box after page loaded
# on focus,
   [...]]]></description>
			<content:encoded><![CDATA[<p>Well, there are couples of tutorials online to teach us, and also lots of jquery plugin for it. But I feel like I don&#8217;t need that huge functionality for this tiny thing.</p>
<p>So I wrote this one which is just for the little functionality.</p>
<p>Feature:</p>
<p><span style="color: #99ccff;"># default value in input box after page loaded</span></p>
<p><span style="color: #99ccff;"># on focus,</span></p>
<p>   if -> input nothing -> clear to blank,</p>
<p>   else -> keep the previous input value.</p>
<p><span style="color: #99ccff;"># on blur,</span></p>
<p>   if -> input nothing -> back to default value,</p>
<p>   else -> keep the previous input value.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;
  &lt;title&gt;default value for text field&lt;/title&gt;
  &lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery-1.3.2.min.js&quot;&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
&nbsp;
  &lt;input type=&quot;text&quot; id=&quot;inputTxt&quot; defaultval=&quot;你在想什么...&quot; /&gt;
  &lt;input type=&quot;button&quot; id=&quot;submitBtn&quot; value=&quot;提交&quot; /&gt;
&nbsp;
  &lt;/body&gt;
  &lt;script&gt;
  $(document).ready(function(){
      var defaulval = $(&quot;#inputTxt&quot;).attr(&quot;defaultval&quot;);
      var checkInputVal;
      $(&quot;#inputTxt&quot;).focus(function(){
        checkInputAval = checkInput(&quot;#inputTxt&quot;, defaulval);
        if (checkInputAval) {
          setToEmpty(&quot;#inputTxt&quot;);
          $(this).css(&quot;color&quot;,&quot;#000&quot;);
        }
      });
&nbsp;
      $(&quot;#inputTxt&quot;).blur(function(){
        checkInputAval = checkInput(&quot;#inputTxt&quot;, defaulval);
        if (checkInputAval) {
          setToDefault(&quot;#inputTxt&quot;, defaulval);
        }
      });
&nbsp;
      setToDefault(&quot;#inputTxt&quot;, defaulval);
  });
  function setToDefault(element, defaulval) {
    $(element).val(defaulval);
    $(element).css(&quot;color&quot;,&quot;#ccc&quot;);
  }
  function setToEmpty(element) {
    $(element).val(&quot;&quot;);
  }
  function checkInput(element, defaulval) {
    if ($.trim($(element).val()).length == 0) {
        return true;
    }
    if ($.trim($(element).val()) == defaulval) {
        return true;
    }
    return false;
  }
  &lt;/script&gt;
&nbsp;
&lt;/html&gt;</pre></td></tr></table></div>

<p>Feel free to let me know if you find some bugs or would like to give some suggestion. :]</p>
<p>It&#8217;s Cora&#8217;s pleasure to get information from all you guys.</p>
<p><span style="color: #ffcc99;">++Cora++</span></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fcorababy.net%2Ftech%2F2009%2F08%2F07%2Fusing-jquery-to-set-default-value-of-input-box%2F&amp;linkname=Using%20jquery%20to%20set%20default%20value%20of%20input%20box"><img src="http://corababy.net/tech/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://corababy.net/tech/2009/08/07/using-jquery-to-set-default-value-of-input-box/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>在wamp下利用httpd-vhosts.conf设置multiple domain</title>
		<link>http://corababy.net/tech/2009/08/07/%e5%9c%a8wamp%e4%b8%8b%e5%88%a9%e7%94%a8httpd-vhosts-conf%e8%ae%be%e7%bd%aemultiple-domain/</link>
		<comments>http://corababy.net/tech/2009/08/07/%e5%9c%a8wamp%e4%b8%8b%e5%88%a9%e7%94%a8httpd-vhosts-conf%e8%ae%be%e7%bd%aemultiple-domain/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 23:59:21 +0000</pubDate>
		<dc:creator>little fox</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[virtualhost]]></category>
		<category><![CDATA[wamp]]></category>

		<guid isPermaLink="false">http://corababy.net/tech/?p=21</guid>
		<description><![CDATA[在网路上找到很多文字来教大家设置multiple domain, 很多都是在httpd.conf里面实现的. 但最近的开发一直是利用httpd-vhosts.conf, 却一直郁闷在无法设置multiple domain的问题上.
问过X老师之后, 几分钟搞定=.=b, 这家伙一眼就指出了我滴错误&#8230;万恶的粗心大意啊.
所以利用httpd-vhosts.conf其实没有想象中那么纠结.
1)httpd-vhosts.conf文件的设置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
&#60;Directory D:/Wamp2/www&#62;
Order Deny,Allow
Allow from all
Options All
AllowOverride All
&#60;/Directory&#62;
&#160;
&#60;VirtualHost *:80&#62;
    ServerAdmin cora@cora.subsite1.com
    DocumentRoot &#34;D:/Wamp2/www/sub1&#34;
    ServerName cora.subsite1.com
&#60;/VirtualHost&#62;
&#160;
&#60;VirtualHost *:80&#62;
    ServerAdmin cora@cora.subsite1.com
    DocumentRoot &#34;D:/Wamp2/www/sub2&#34;
    ServerName cora.subsite2.com
&#60;/VirtualHost&#62;

2)在apache的httpd.conf设置
在httpd.conf里面, 一定要uncomment

1
2
# Virtual hosts
Include conf/extra/httpd-vhosts.conf

其他都不需要修改, 尤其是documentroot, 如果是在用wamp, 就默认为[FilePath]/www
3)hosts老师
另外, 在 hosts [...]]]></description>
			<content:encoded><![CDATA[<p>在网路上找到很多文字来教大家设置multiple domain, 很多都是在httpd.conf里面实现的. 但最近的开发一直是利用httpd-vhosts.conf, 却一直郁闷在无法设置multiple domain的问题上.<br />
问过X老师之后, 几分钟搞定=.=b, 这家伙一眼就指出了我滴错误&#8230;万恶的粗心大意啊.</p>
<p>所以利用httpd-vhosts.conf其实没有想象中那么纠结.</p>
<p><span style="color: #99ccff;">1)httpd-vhosts.conf文件的设置</span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">&lt;Directory D:/Wamp2/www&gt;
Order Deny,Allow
Allow from all
Options All
AllowOverride All
&lt;/Directory&gt;
&nbsp;
&lt;VirtualHost *:80&gt;
    ServerAdmin cora@cora.subsite1.com
    DocumentRoot &quot;D:/Wamp2/www/sub1&quot;
    ServerName cora.subsite1.com
&lt;/VirtualHost&gt;
&nbsp;
&lt;VirtualHost *:80&gt;
    ServerAdmin cora@cora.subsite1.com
    DocumentRoot &quot;D:/Wamp2/www/sub2&quot;
    ServerName cora.subsite2.com
&lt;/VirtualHost&gt;</pre></td></tr></table></div>

<p><span style="color: #99ccff;">2)在apache的httpd.conf设置</span></p>
<p>在httpd.conf里面, 一定要uncomment</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="language" style="font-family:monospace;"># Virtual hosts
Include conf/extra/httpd-vhosts.conf</pre></td></tr></table></div>

<p>其他都不需要修改, 尤其是documentroot, 如果是在用wamp, 就默认为[FilePath]/www</p>
<p><span style="color: #99ccff;">3)hosts老师</span></p>
<p>另外, 在 hosts 里面要记得加入子域名的指向IP</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">127.0.0.1       cora.subsite1.com
127.0.0.1       cora.subsite2.com</pre></td></tr></table></div>

<p><span style="color: #99ccff;">4)什么是conf文件呢?</span></p>
<p>熊熊说, conf文件就是xml. 其实也不完全是, xml是conf文件的一种流行的格式.</p>
<p>conf常常用ASCII编码, 也有少部分用UTF-8的. 怪不得conf文件默认打开的程序总是notepad涅.</p>
<p>WIKI上时绛紫解释的: <a href="http://en.wikipedia.org/wiki/Configuration_file" target="_blank">http://en.wikipedia.org/wiki/Configuration_file</a></p>
<p><span style="color: #ffcc99;">++好孩子珊瑚++</span></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fcorababy.net%2Ftech%2F2009%2F08%2F07%2F%25e5%259c%25a8wamp%25e4%25b8%258b%25e5%2588%25a9%25e7%2594%25a8httpd-vhosts-conf%25e8%25ae%25be%25e7%25bd%25aemultiple-domain%2F&amp;linkname=%E5%9C%A8wamp%E4%B8%8B%E5%88%A9%E7%94%A8httpd-vhosts.conf%E8%AE%BE%E7%BD%AEmultiple%20domain"><img src="http://corababy.net/tech/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://corababy.net/tech/2009/08/07/%e5%9c%a8wamp%e4%b8%8b%e5%88%a9%e7%94%a8httpd-vhosts-conf%e8%ae%be%e7%bd%aemultiple-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blog Theme Design Review (1) &#8211; Orange Glow</title>
		<link>http://corababy.net/tech/2009/07/29/blog-theme-design-review-1-orange-glow/</link>
		<comments>http://corababy.net/tech/2009/07/29/blog-theme-design-review-1-orange-glow/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 17:08:07 +0000</pubDate>
		<dc:creator>little fox</dc:creator>
				<category><![CDATA[Review of Design]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[review]]></category>

		<guid isPermaLink="false">http://corababy.net/tech/?p=12</guid>
		<description><![CDATA[是第一次对自己的wp theme做回顾, 不太清楚如何能够更加清楚的分析出优点和不足,  先从最早的一个有bakup的设计开始.
orange glow

{COLOR SCHEMA}
#FD9945&#124;#60555D&#124;#F5E2B8&#124;#E6AA75&#124;#98B88E

{GRID}
# 1 column
# main section:
 #1 header: top main navigation and search
 #2 blog logo
 #3 main content: post
 #4 widgets: google friends connect and feed  icon
 #5 footer
{FEATURES}
#top main navigation, 还算是比较清楚的一份导航, 内容链接(&#8220;About&#8221;,  &#8220;Works&#8221;&#8230;)和功能性链接(&#8220;Log in&#8221;)分在导航条的两端.
#search, 不记得从什么时候开始, 喜欢把search form放在相对明显的位置,  也许是对自己博客的导航没有信心, 也许是担心这个没有category list/tag cloud的小站给到访的客人带来了很多不方便,  所以才那样做的吧.
#others, 亦如平常.
{WANT TO [...]]]></description>
			<content:encoded><![CDATA[<p>是第一次对自己的wp theme做回顾, 不太清楚如何能够更加清楚的分析出优点和不足,  先从最早的一个有bakup的设计开始.</p>
<p><strong><span style="color: #ffd5d5;">orange glow</span></strong></p>
<p><a href="http://corababy.net/tech/wp-content/uploads/2009/07/Little-Fox’s-Candy-Castle_1246200818076.png"><img class="alignnone size-medium wp-image-14" title="Little Fox’s Candy Castle_1246200818076" src="http://corababy.net/tech/wp-content/uploads/2009/07/Little-Fox’s-Candy-Castle_1246200818076-300x210.png" alt="Little Fox’s Candy Castle_1246200818076" width="300" height="210" /></a></p>
<p><strong><span style="color: #ffd5d5;">{COLOR SCHEMA}</span></strong></p>
<p>#FD9945|#60555D|#F5E2B8|#E6AA75|#98B88E</p>
<p><img class="alignnone size-full wp-image-13" title="colorschema" src="http://corababy.net/tech/wp-content/uploads/2009/07/colorschema.gif" alt="colorschema" width="312" height="62" /></p>
<p><strong><span style="color: #ffd5d5;">{GRID}</span></strong></p>
<p><span style="color: #80ffff;">#</span> 1 column</p>
<p><span style="color: #80ffff;">#</span> main section:</p>
<p><span style="color: #80ffff;"> #1</span> header: top main navigation and search</p>
<p><span style="color: #80ffff;"> #2</span> blog logo</p>
<p><span style="color: #80ffff;"> #3</span> main content: post</p>
<p><span style="color: #80ffff;"> #4</span> widgets: google friends connect and feed  icon</p>
<p><span style="color: #80ffff;"> #5</span> footer</p>
<p><strong><span style="color: #ffd5d5;">{FEATURES}</span></strong></p>
<p><span style="color: #80ffff;">#top main navigation</span>, 还算是比较清楚的一份导航, 内容链接(&#8220;About&#8221;,  &#8220;Works&#8221;&#8230;)和功能性链接(&#8220;Log in&#8221;)分在导航条的两端.</p>
<p><span style="color: #80ffff;">#search</span>, 不记得从什么时候开始, 喜欢把search form放在相对明显的位置,  也许是对自己博客的导航没有信心, 也许是担心这个没有category list/tag cloud的小站给到访的客人带来了很多不方便,  所以才那样做的吧.</p>
<p><span style="color: #80ffff;">#others</span>, 亦如平常.</p>
<p><strong><span style="color: #ffd5d5;">{WANT TO SAY}</span></strong></p>
<p><span style="color: #80ffff;">#颜色</span></p>
<p>记得Stephen说, 颜色是设计的重要因素之一, 明快的颜色会使阅读的人们内心闪亮起来, 或者说, 不同的颜色会带给阅读的人截然不同的感受,  好的和不好的心情及体验.</p>
<p>从根本上来讲是同意的, 但颜色的作用应该还有很多.</p>
<p>颜色是设计者性情的一种体现, 沉静, 火爆, 奔放, 桀骜, 还是寂寥. 所以即使阅读者会甄别设计的内容是否值得继续花费时间在上面, 但是,  对颜色第一印象的好感还是能够为接下来的甄别加不少的分.</p>
<p>颜色可以创造一致性. 所有的链接是蓝色, 所有的文字是深灰色, 所有的日期是浅灰色, 所有的错误信息室红色&#8230; 这个是不是所谓的用户使用惯性呢?</p>
<p><span style="color: #80ffff;">#细节</span></p>
<p>自己理解的细节是那些不会被察觉, 但是当它们和用户相遇的时候, 用户为之会心一笑的闪光点.</p>
<p>比如, mouse hover的颜色改变, 亮度变化, 以及细致的渲染.</p>
<p>比如, title的小装饰.</p>
<p>比如, image的淡色边框.</p>
<p>比如, 圆角.</p>
<p>我想, 在设计这个theme的时候还是个懒惰的人吧, 没有等到考虑加入细节就匆忙的launch, 其实会在后来的几份设计中发觉,  细节成为那样不可或缺和重要的一员.</p>
<p>有些超出了review的范围, 讲了些不着边际的话, 那么, 继续加油.</p>
<p><strong><span style="color: #ffff80;">++好孩子珊瑚++</span></strong></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fcorababy.net%2Ftech%2F2009%2F07%2F29%2Fblog-theme-design-review-1-orange-glow%2F&amp;linkname=Blog%20Theme%20Design%20Review%20%281%29%20%26%238211%3B%20Orange%20Glow"><img src="http://corababy.net/tech/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://corababy.net/tech/2009/07/29/blog-theme-design-review-1-orange-glow/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>关于split(), 那些被我们遗忘的</title>
		<link>http://corababy.net/tech/2009/07/27/%e5%85%b3%e4%ba%8esplit-%e9%82%a3%e4%ba%9b%e8%a2%ab%e6%88%91%e4%bb%ac%e9%81%97%e5%bf%98%e7%9a%84/</link>
		<comments>http://corababy.net/tech/2009/07/27/%e5%85%b3%e4%ba%8esplit-%e9%82%a3%e4%ba%9b%e8%a2%ab%e6%88%91%e4%bb%ac%e9%81%97%e5%bf%98%e7%9a%84/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 14:38:40 +0000</pubDate>
		<dc:creator>little fox</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[split]]></category>
		<category><![CDATA[竖排]]></category>

		<guid isPermaLink="false">http://corababy.net/tech/?p=6</guid>
		<description><![CDATA[
为&#8221;Little fox is learning&#8221;写皮肤的时候, 在widget title文字竖排的问题上还真的是耗费了很多精神在里面.
其实, 网路上有很多老师讲解关于如何对文字进行竖排版的方法, 但是, 大部分是针对于中文, 为了解决古代诗词排版的难题, 可是, 对英文来讲, 似乎找不到太过对症的办法, 所以还是自己摸索着写了.
本质上需要解决的问题仅仅是, 如何将字符串转化为数组, 前提是没有任何可以供分割的字符, 比如&#8221;;&#8221;, 或者&#8221;,&#8221;.
开始的时候是这样写的:

var i,strCount, tempStr;
tempStr = '';
strCount = inputStr.length;
for (i = 0; i &#38;lt; strCount; i ++) {
  tempStr += inputStr[i] + '&#38;amp;nbsp;';
}
document.write(tempStr);

这样写会错么? 会, 也不会.
当然, firefox, chrome, safari, opera, IE8 都是会通过的, 但是, IE6, 7 却不能够保证.
因为当用compatible view查看的时候发现, 所有的&#8221;inputStr[i]&#8220;都是&#8221;undefined&#8221;.
IE6, 7是无法识别一个字符串作为数组使用么?
也许是.
所以才惊奇的发现了split()的被遗忘掉的功用性.

strCount = [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-10" title="widget title on the right" src="http://corababy.net/tech/wp-content/uploads/2009/07/Capture.JPG" alt="widget title on the right" width="65" height="138" /></p>
<p>为&#8221;Little fox is learning&#8221;写皮肤的时候, 在widget title文字竖排的问题上还真的是耗费了很多精神在里面.</p>
<p>其实, 网路上有很多老师讲解关于如何对文字进行竖排版的方法, 但是, 大部分是针对于中文, 为了解决古代诗词排版的难题, 可是, 对英文来讲, 似乎找不到太过对症的办法, 所以还是自己摸索着写了.</p>
<p>本质上需要解决的问题仅仅是, 如何将字符串转化为数组, 前提是没有任何可以供分割的字符, 比如&#8221;;&#8221;, 或者&#8221;,&#8221;.</p>
<p>开始的时候是这样写的:</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">var i,strCount, tempStr;
tempStr = '';
strCount = inputStr.length;
for (i = 0; i &amp;lt; strCount; i ++) {
  tempStr += inputStr[i] + '&amp;amp;nbsp;';
}
document.write(tempStr);</pre></div></div>

<p>这样写会错么? 会, 也不会.</p>
<p>当然, firefox, chrome, safari, opera, IE8 都是会通过的, 但是, IE6, 7 却不能够保证.</p>
<p>因为当用compatible view查看的时候发现, 所有的&#8221;inputStr[i]&#8220;都是&#8221;undefined&#8221;.</p>
<p>IE6, 7是无法识别一个字符串作为数组使用么?</p>
<p>也许是.</p>
<p>所以才惊奇的发现了split()的被遗忘掉的功用性.</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">strCount = inputStr.length;
tempStr ='';
strArray = str.split('');
for (i=0; i&amp;lt; strCount ; i++) {
  tempStr += strArray[i] +  '&amp;amp;nbsp;';
}</pre></div></div>

<p>这样的方式在IE6,7下也是被通过的, 看来, IE6,7对于js object的要求应该算是苛刻的么?</p>
<p>如果你知道其中原因就告诉我吧.</p>
<p><span style="color: #daec12;"><strong>++好孩子珊瑚++</strong></span></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fcorababy.net%2Ftech%2F2009%2F07%2F27%2F%25e5%2585%25b3%25e4%25ba%258esplit-%25e9%2582%25a3%25e4%25ba%259b%25e8%25a2%25ab%25e6%2588%2591%25e4%25bb%25ac%25e9%2581%2597%25e5%25bf%2598%25e7%259a%2584%2F&amp;linkname=%E5%85%B3%E4%BA%8Esplit%28%29%2C%20%E9%82%A3%E4%BA%9B%E8%A2%AB%E6%88%91%E4%BB%AC%E9%81%97%E5%BF%98%E7%9A%84"><img src="http://corababy.net/tech/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://corababy.net/tech/2009/07/27/%e5%85%b3%e4%ba%8esplit-%e9%82%a3%e4%ba%9b%e8%a2%ab%e6%88%91%e4%bb%ac%e9%81%97%e5%bf%98%e7%9a%84/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
