<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>Egist’s digest and thoughts

  
     twttr.anywhere(function(twitter) {
              twitter.hovercards();
     });
  
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

try {
var pageTracker = _gat._getTracker("UA-9332993-2");
pageTracker._trackPageview();
} catch(err) {}</description><title>From Egist Li</title><generator>Tumblr (3.0; @egistli)</generator><link>http://blog.egistli.com/</link><item><title>Site to Phone - Send links or text from your browser to your phone</title><description>&lt;a href="http://sitetophone.com/"&gt;Site to Phone - Send links or text from your browser to your phone&lt;/a&gt;: &lt;p&gt;A free chrometophone clone but supports iOS. Not really great but works.&lt;/p&gt;
&lt;p&gt;Btw, if you want something polished check &lt;a href="http://pushbrowserapp.com/" target="_blank"&gt;PushBrowser&lt;/a&gt; which is a paid app does almost the same thing but looks prettier and easier to use.&lt;/p&gt;</description><link>http://blog.egistli.com/post/24172348721</link><guid>http://blog.egistli.com/post/24172348721</guid><pubDate>Fri, 01 Jun 2012 10:43:17 +0800</pubDate></item><item><title>Graph API Explorer - Facebook 開發人員</title><description>&lt;a href="https://developers.facebook.com/tools/explorer?method=GET&amp;path=795210386"&gt;Graph API Explorer - Facebook 開發人員&lt;/a&gt;: &lt;p&gt;不錯方便哦&lt;/p&gt;</description><link>http://blog.egistli.com/post/24171102660</link><guid>http://blog.egistli.com/post/24171102660</guid><pubDate>Fri, 01 Jun 2012 10:24:48 +0800</pubDate></item><item><title>Web First for Mobile | High Performance Web Sites</title><description>&lt;a href="http://www.stevesouders.com/blog/2012/05/16/web-first-for-mobile/"&gt;Web First for Mobile | High Performance Web Sites&lt;/a&gt;</description><link>http://blog.egistli.com/post/23984906717</link><guid>http://blog.egistli.com/post/23984906717</guid><pubDate>Tue, 29 May 2012 14:24:03 +0800</pubDate></item><item><title>20 leading web designers' desks for your inspiration | Feature | .net magazine</title><description>&lt;a href="http://www.netmagazine.com/features/20-leading-web-designers-desks-your-inspiration"&gt;20 leading web designers' desks for your inspiration | Feature | .net magazine&lt;/a&gt;: &lt;p&gt;!!!!!!!!!!!&lt;/p&gt;</description><link>http://blog.egistli.com/post/23282780108</link><guid>http://blog.egistli.com/post/23282780108</guid><pubDate>Fri, 18 May 2012 17:03:55 +0800</pubDate></item><item><title>"整體來說，很明顯地不管什麼時候，當我們會在意如何去塑造自己留給別人的印象之下，我們反而更無法冷靜地思考。以男性為例，只要想像能跟女性發生互動就可以讓他們的大腦變得有點遲鈍。"</title><description>“整體來說，很明顯地不管什麼時候，當我們會在意如何去塑造自己留給別人的印象之下，我們反而更無法冷靜地思考。以男性為例，只要想像能跟女性發生互動就可以讓他們的大腦變得有點遲鈍。”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;&lt;a href="http://case.ntu.edu.tw/blog/?p=11127" target="_blank"&gt;【認知科學】為什麼跟女生互動會讓男生的認知能力降低？ « CASE PRESS&lt;/a&gt;&lt;/em&gt;</description><link>http://blog.egistli.com/post/23086592059</link><guid>http://blog.egistli.com/post/23086592059</guid><pubDate>Tue, 15 May 2012 11:52:53 +0800</pubDate></item><item><title>"Facebook承认了这样一种趋势：即Facebook每个用户为其带来的收入在减少，而这一趋势在Facebook最近的季度财报中也可见一二。为什么会有这种情况？实际是因为Facebook的移动端用户增长..."</title><description>“Facebook承认了这样一种趋势：即Facebook每个用户为其带来的收入在减少，而这一趋势在Facebook最近的季度财报中也可见一二。为什么会有这种情况？实际是因为Facebook的移动端用户增长迅猛。但是，Facebook在移动端的生财能力又远不及传统的电脑桌面端。所以，算下来每个用户的价值就被稀释了”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;&lt;a href="http://www.36kr.com/p/108507.html" target="_blank"&gt;恐慌：Facebook和Google消化不了“移动”，但又必须消化 | 36氪&lt;/a&gt;&lt;/em&gt;</description><link>http://blog.egistli.com/post/23076326874</link><guid>http://blog.egistli.com/post/23076326874</guid><pubDate>Tue, 15 May 2012 09:22:32 +0800</pubDate></item><item><title>xdite's smalltalk: 舊金山之旅，用全新的角度看世界</title><description>&lt;a href="http://xdite-smalltalk.tumblr.com/post/22819891265"&gt;xdite's smalltalk: 舊金山之旅，用全新的角度看世界&lt;/a&gt;: &lt;p&gt;&lt;a class="tumblr_blog" href="http://xdite-smalltalk.tumblr.com/post/22819891265" target="_blank"&gt;xdite-smalltalk&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;這次去美國玩其實是我一直以來的心願。Railsconf + 舊金山自由行。去了快三個禮拜。花了超過 100K（我爸媽看到這個數字應該會抓狂…)。但要我說，這錢花的真的超值得！&lt;/p&gt;
&lt;p&gt;首先去 Railsconf 這件事，讓我開了不少眼界。能看到人家專業的 Conf 是怎樣舉辦的。神人是怎樣挑講題的。講者和大會的視野…etc. 關於這部分我有寫了三篇文章。&lt;/p&gt;
&lt;p&gt;緊接著去 Railsconf 之後是兩週的 舊金山 / 灣區 自由行。這是目前還沒有寫出來的部分。&lt;/p&gt;
&lt;p&gt;我真的推薦大家有生之年要去進行一次這樣的旅行。如果你正在作網路業更要去看看，可以徹底改變你看待事情的角度。&lt;/p&gt;
&lt;p&gt;…&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://blog.egistli.com/post/23011052413</link><guid>http://blog.egistli.com/post/23011052413</guid><pubDate>Mon, 14 May 2012 09:20:44 +0800</pubDate></item><item><title>Ben Alman » jQuery special events</title><description>&lt;a href="http://benalman.com/news/2010/03/jquery-special-events/#api-setup"&gt;Ben Alman » jQuery special events&lt;/a&gt;</description><link>http://blog.egistli.com/post/22903766408</link><guid>http://blog.egistli.com/post/22903766408</guid><pubDate>Sat, 12 May 2012 22:56:38 +0800</pubDate></item><item><title>Google Analytics Easy Dashboard Javascript Library</title><description>&lt;a href="http://analytics-api-samples.googlecode.com/svn/trunk/src/reporting/javascript/ez-ga-dash/docs/user-documentation.html"&gt;Google Analytics Easy Dashboard Javascript Library&lt;/a&gt;: &lt;p&gt;Google 推出的 Google Analytics Easy Dashboard library，標榜比較好操作 google analytics…&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;This library is designed to create an easy way to build a custom Google Analytics Dashboard on your own page.&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://blog.egistli.com/post/22829554277</link><guid>http://blog.egistli.com/post/22829554277</guid><pubDate>Fri, 11 May 2012 13:57:23 +0800</pubDate></item><item><title>Motion-layouts</title><description>&lt;a href="http://malkomalko.github.com/motion-layouts/"&gt;Motion-layouts&lt;/a&gt;: &lt;p&gt;mind-blowing, the power of DSL&lt;/p&gt;</description><link>http://blog.egistli.com/post/22781323964</link><guid>http://blog.egistli.com/post/22781323964</guid><pubDate>Thu, 10 May 2012 23:25:57 +0800</pubDate></item><item><title>"【名稱】：艱苦卓絕
【拼音】：jiān kǔ zhuó..."</title><description>“【名稱】：艱苦卓絕&lt;br/&gt;
【拼音】：jiān kǔ zhuó jué&lt;br/&gt;
【釋義】：堅忍刻苦的精神超過尋常。&lt;br/&gt;
【出處】：《宋史·邵雍傳》：“始為學，即堅苦刻厲，寒不爐，暑不扇，夜不席者數年。”&lt;br/&gt;
【例子】：用儒家之道德，故艱苦卓厲者絕無，而冒沒奔競者皆是。（章炳麟《諸子學略說》）”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;加油加油！！！&lt;/em&gt;</description><link>http://blog.egistli.com/post/22780410807</link><guid>http://blog.egistli.com/post/22780410807</guid><pubDate>Thu, 10 May 2012 22:57:13 +0800</pubDate></item><item><title>domInteractive property</title><description>&lt;a href="http://msdn.microsoft.com/en-us/library/ie/ff974716(v=vs.85).aspx"&gt;domInteractive property&lt;/a&gt;: &lt;p&gt;有這個東西～～！&lt;/p&gt;</description><link>http://blog.egistli.com/post/22382775971</link><guid>http://blog.egistli.com/post/22382775971</guid><pubDate>Fri, 04 May 2012 22:30:09 +0800</pubDate></item><item><title>Avoid ReferenceError in Javascript</title><description>&lt;p&gt;As mentioned in the previous post, a reference comprises two parts: base value and reference name, for example: in the reference &amp;#8220;window.console&amp;#8221;, &amp;#8220;window&amp;#8221; is the base value and &amp;#8220;console&amp;#8221; is the reference name. The ReferenceError is raised when the base value of a reference could not been resolved. The easiest way to check variables is using &lt;em&gt;typeof&lt;/em&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;if(typeof undefinedVar === &amp;#8216;undefined&amp;#8217;) {}&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It works across all situations without raising ReferenceError, but writing this kind of checks is really tedious.&lt;/p&gt;
&lt;p&gt;So, how can we avoid ReferenceError without typing &amp;#8220;typeof &amp;#8230;&amp;#8221; all the time?&lt;/p&gt;
&lt;p&gt;To sum it up, just check global object properties like below no matter where the code is (global scope or function scope):&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;if(window.console) {&lt;/p&gt;
&lt;p&gt;    // do something with console object&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Any other variables such as function arguments or local variables in the function scopes, check them like this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;(function(window, undefined){&lt;/p&gt;
&lt;p&gt;    var foo = aFunctionMayReturnUndefined();&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;    if(foo) {&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;        //do something with foo&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;    }&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;    if(window.console) {&lt;/p&gt;
&lt;p&gt;    }&lt;/p&gt;
&lt;p&gt;})(window)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The only requirement of this defined checking is declaring local variables in your function correctly.&lt;/p&gt;</description><link>http://blog.egistli.com/post/22256885397</link><guid>http://blog.egistli.com/post/22256885397</guid><pubDate>Wed, 02 May 2012 23:05:00 +0800</pubDate><category>js</category></item><item><title>第一個寫法會出現 ReferenceError 的原因，是因為 javascript 無法找到 gy 屬性的 base...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_m3cji6fELN1qzv94so1_400.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;第一個寫法會出現 ReferenceError 的原因，是因為 javascript 無法找到 gy 屬性的 base value。但如果直接指名 base value 為 window，即使 window 物件沒有 gy 屬性，還是不會出現 ReferenceError。&lt;/p&gt;
&lt;p&gt;詳細請參考這篇：http://javascriptweblog.wordpress.com/2010/08/16/understanding-undefined-and-preventing-referenceerrors/&lt;/p&gt;</description><link>http://blog.egistli.com/post/22191407401</link><guid>http://blog.egistli.com/post/22191407401</guid><pubDate>Tue, 01 May 2012 21:44:30 +0800</pubDate><category>javascript</category></item><item><title>Rendering: repaint, reflow/relayout, restyle / Stoyan's phpied.com</title><description>&lt;a href="http://www.phpied.com/rendering-repaint-reflowrelayout-restyle/"&gt;Rendering: repaint, reflow/relayout, restyle / Stoyan's phpied.com&lt;/a&gt;</description><link>http://blog.egistli.com/post/21780389721</link><guid>http://blog.egistli.com/post/21780389721</guid><pubDate>Wed, 25 Apr 2012 21:05:51 +0800</pubDate></item><item><title>Modern Web Development</title><description>&lt;a href="http://jtaby.com/2012/04/23/modern-web-development-part-1.html?utm_source=html5weekly&amp;utm_medium=email"&gt;Modern Web Development&lt;/a&gt;</description><link>http://blog.egistli.com/post/21780371896</link><guid>http://blog.egistli.com/post/21780371896</guid><pubDate>Wed, 25 Apr 2012 21:05:11 +0800</pubDate></item><item><title>Declarative Programming and Autosubscribe - Zero Wind :: Jamie Wong</title><description>&lt;a href="http://jamie-wong.com/2012/04/16/declarative-programming-and-autosubscribe/"&gt;Declarative Programming and Autosubscribe - Zero Wind :: Jamie Wong&lt;/a&gt;</description><link>http://blog.egistli.com/post/21257175315</link><guid>http://blog.egistli.com/post/21257175315</guid><pubDate>Tue, 17 Apr 2012 13:38:22 +0800</pubDate></item><item><title>Zepto.js: the aerogel-weight jQuery-compatible JavaScript library</title><description>&lt;a href="http://zeptojs.com/"&gt;Zepto.js: the aerogel-weight jQuery-compatible JavaScript library&lt;/a&gt;</description><link>http://blog.egistli.com/post/21150027351</link><guid>http://blog.egistli.com/post/21150027351</guid><pubDate>Sun, 15 Apr 2012 23:45:34 +0800</pubDate></item><item><title>Meteor</title><description>&lt;a href="http://www.meteor.com/"&gt;Meteor&lt;/a&gt;: &lt;p&gt;nodejs-based 把前後端直接串起來的 webapp framework&lt;/p&gt;</description><link>http://blog.egistli.com/post/20964999098</link><guid>http://blog.egistli.com/post/20964999098</guid><pubDate>Thu, 12 Apr 2012 22:46:39 +0800</pubDate></item><item><title>覺得 websocket 跟 nodejs 很好玩，但是又不知道該寫什麼來練習 orz </title><description>&lt;p&gt;覺得 websocket 跟 nodejs 很好玩，但是又不知道該寫什麼來練習 orz &lt;/p&gt;</description><link>http://blog.egistli.com/post/20011611953</link><guid>http://blog.egistli.com/post/20011611953</guid><pubDate>Wed, 28 Mar 2012 00:14:39 +0800</pubDate></item></channel></rss>

