<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://rss.isdada.com/styles/podcast2.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://rss.isdada.com" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/asflex" type="application/rss+xml"></fs:self_link><lastBuildDate>Fri, 11 Nov 2011 08:04:58 GMT</lastBuildDate><title>达达的Blog</title><description>达达的Blog dada's blog,About ria,web developer,software developer and so on.</description><image><url>http://www.feedsky.com/feed/asflex/sc/gif</url><title>达达的Blog</title><link>http://www.isdada.com</link></image><link>http://www.isdada.com</link><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>1</sy:updateFrequency><language>en</language><pubDate>Fri, 11 Nov 2011 08:07:25 GMT</pubDate><item><title>PHP获取UserAgent的小故障解决一例</title><link>http://item.feedsky.com/~feedsky/asflex/~8103076/575699474/5131866/1/item.html</link><content:encoded>&lt;p&gt;刚刚碰到个很奇怪的问题，iPad发出的网络请求无法获取User-Agent，而使用浏览器去请求就可以正常获取。&lt;br /&gt;
iPad中，是使用ASIHttpRequest去发出请求的，NSLog了一下User-Agent，发现其中有中文，因为如果没有指定ASIHttpRequest发出的请求的User-Agent的话，ASIHttpRequest会默认的建立一个User-Agent。&lt;br /&gt;
结构是：appName, appVersion, deviceName, OSName, OSVersion, locale&lt;br /&gt;
其中appName默认是CFBundleDisplayName，这个在中文程序中一般为中文。所以只要修改这里就可以了。&lt;br /&gt;
在ASIHttpRequest.m的第4091行可以看到+ (NSString *)defaultUserAgentString 这个getter，修改其中的代码即可。怎么修改就不提了吧？&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/575699474/asflex/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/asflex/~8103076/575699474/5131866/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.isdada.com/could-not-get-user-agent-in-ph.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>刚刚碰到个很奇怪的问题，iPad发出的网络请求无法获取User-Agent，而使用浏览器去请求就可以正常获取。 iPad中，是使用ASIHttpRequest去发出请求的，NSLog了一下User-Agent，发现其中有中文，因为如果没有指定ASIHttpRequest发出的请求的User-Agent的话，ASIHttpRequest会默认的建立一个User-Agent。 结构是：appName, appVersion, deviceName, OSName, OSVersion, locale 其中appName默认是CFBundleDisplayName，这个在中文程序中一般为中文。所以只要修改这里就可以了。 在ASIHttpRequest.m的第4091行可以看到+ (NSString *)defaultUserAgentString 这个getter，修改其中的代码即可。怎么修改就不提了吧？&lt;img src=&quot;http://www1.feedsky.com/t1/575699474/asflex/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/asflex/~8103076/575699474/5131866/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Mac/iOS</category><category>iOS</category><category>ASIHttpRequest</category><pubDate>Fri, 11 Nov 2011 16:04:58 +0800</pubDate><author>达达</author><comments>http://www.isdada.com/could-not-get-user-agent-in-ph.html#comments</comments><guid isPermaLink="false">http://www.isdada.com/?p=1975</guid><dc:creator>达达</dc:creator><fs:srclink>http://www.isdada.com/could-not-get-user-agent-in-ph.html</fs:srclink><fs:srcfeed>http://www.isdada.com/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/asflex/~8103076/575699474/5131866</fs:itemid></item><item><title>R.I.P Steve Jobs</title><link>http://item.feedsky.com/~feedsky/asflex/~8103076/575699475/5131866/1/item.html</link><content:encoded>&lt;p&gt;今天对于所有的果粉来说是灰色的一天。那位神再也不会站在那舞台上说:”There is one more thing!”&lt;br /&gt;
R.I.P Steve Jobs!&lt;br /&gt;
&lt;img class=&quot;aligncenter size-full wp-image-1967&quot; title=&quot;t_hero&quot; src=&quot;http://www.isdada.com/wp-content/uploads/2011/10/t_hero.png&quot; alt=&quot;&quot; width=&quot;600&quot; height=&quot;450&quot; /&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/575699475/asflex/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/asflex/~8103076/575699475/5131866/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.isdada.com/r-i-p-steve-jobs.html/feed</wfw:commentRss><slash:comments>2</slash:comments><description>今天对于所有的果粉来说是灰色的一天。那位神再也不会站在那舞台上说:”There is one more thing!” R.I.P Steve Jobs!&lt;img src=&quot;http://www1.feedsky.com/t1/575699475/asflex/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/asflex/~8103076/575699475/5131866/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Mac/iOS</category><pubDate>Thu, 06 Oct 2011 15:43:19 +0800</pubDate><author>达达</author><comments>http://www.isdada.com/r-i-p-steve-jobs.html#comments</comments><guid isPermaLink="false">http://www.isdada.com/?p=1966</guid><dc:creator>达达</dc:creator><fs:srclink>http://www.isdada.com/r-i-p-steve-jobs.html</fs:srclink><fs:srcfeed>http://www.isdada.com/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/asflex/~8103076/575699475/5131866</fs:itemid></item><item><title>豆瓣助手</title><link>http://item.feedsky.com/~feedsky/asflex/~8103076/575699476/5131866/1/item.html</link><content:encoded>&lt;p&gt;写了个Chrome插件：豆瓣助手&lt;/p&gt;
&lt;p&gt;更方便地浏览豆瓣。&lt;/p&gt;
&lt;p&gt;目前只有一个功能：高亮楼主发帖&lt;/p&gt;
&lt;p&gt;下载地址:&lt;a href=&quot;https://chrome.google.com/webstore/detail/mephekkffgkpkpihdahjgaankigdglfk&quot; target=&quot;_blank&quot;&gt;https://chrome.google.com/webstore/detail/mephekkffgkpkpihdahjgaankigdglfk&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;如果无法访问Chrome Web Store，请到这个地址下载&lt;a href=&quot;http://dbassi.sinaapp.com/&quot; target=&quot;_blank&quot;&gt;http://dbassi.sinaapp.com/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;
&lt;br/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img class=&quot;aligncenter size-full wp-image-1964&quot; title=&quot;tl&quot; src=&quot;http://www.isdada.com/wp-content/uploads/2011/09/tl.png&quot; alt=&quot;&quot; width=&quot;440&quot; height=&quot;280&quot; /&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/575699476/asflex/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/asflex/~8103076/575699476/5131866/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.isdada.com/doubanassistant.html/feed</wfw:commentRss><slash:comments>1</slash:comments><description>写了个Chrome插件：豆瓣助手 更方便地浏览豆瓣。 目前只有一个功能：高亮楼主发帖 下载地址:https://chrome.google.com/webstore/detail/mephekkffgkpkpihdahjgaankigdglfk 如果无法访问Chrome Web Store，请到这个地址下载http://dbassi.sinaapp.com/ &amp;#160;&lt;img src=&quot;http://www1.feedsky.com/t1/575699476/asflex/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/asflex/~8103076/575699476/5131866/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>Sun, 11 Sep 2011 20:14:38 +0800</pubDate><author>达达</author><comments>http://www.isdada.com/doubanassistant.html#comments</comments><guid isPermaLink="false">http://www.isdada.com/?p=1960</guid><dc:creator>达达</dc:creator><fs:srclink>http://www.isdada.com/doubanassistant.html</fs:srclink><fs:srcfeed>http://www.isdada.com/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/asflex/~8103076/575699476/5131866</fs:itemid></item><item><title>达达的Google Reader分享 [2011-09-07]</title><link>http://www.google.com/reader/shared/18193734792450381243#2011-09-07</link><guid>http://www.google.com/reader/shared/18193734792450381243#2011-09-07</guid><pubDate>Wed, 07 Sep 2011 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://coolshell.cn/articles/5426.html' title='link to ..'&gt;简明 Vim 练级攻略&lt;/a&gt;&lt;br/&gt;&lt;div&gt;vim的学习曲线相当的大（参看各种文本编辑器的学习曲线），所以，如果你一开始看到的是一大堆VIM的命令分类，你一定会对这个编辑器失去兴趣的。下面的文章翻译自《Learn Vim Progressively》，我觉得这是给新手最好的VIM的升级教程了，没有列举所有的命令，只是列举了..&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://coolshell.cn/articles/5426.html</fs:srclink><fs:srcfeed>http://www.google.com/reader/public/atom/user/18193734792450381243/state/com.google/broadcast</fs:srcfeed><fs:itemid>feedsky/asflex/~7219557/595028947/5131866</fs:itemid></item><item><title>使用monit检测mongodb进程的配置脚本</title><link>http://item.feedsky.com/~feedsky/asflex/~8103076/575699477/5131866/1/item.html</link><content:encoded>&lt;p&gt;monit是一款非常不错的进程监控程序，占用资源极少。官网：&lt;a href=&quot;http://mmonit.com/monit/&quot; target=&quot;_blank&quot;&gt;http://mmonit.com/monit/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;可以使用monit来监控系统负载，进程是否正常运行等。&lt;/p&gt;
&lt;p&gt;最近每天凌晨使用crontab统计数据的时候，map reduce 计算过大，容易造成mongodb崩溃，在没有检查出明确的问题之前，为了确保正常运行，所以需要在mongodb挂掉的时候自动重启，因此就找到了这么一段脚本（From：&lt;a href=&quot;https://gist.github.com/345611&quot; target=&quot;_blank&quot;&gt;https://gist.github.com/345611&lt;/a&gt;）&lt;/p&gt;
&lt;pre class=&quot;chili&quot;&gt;&lt;code class=&quot;&quot;&quot;&quot;&quot;&gt;
check process mongodb with pidfile /db/path/mongod.lock
group database
start program = &amp;quot;/etc/init.d/mongodb start&amp;quot;
stop program = &amp;quot;/etc/init.d/mongodb stop&amp;quot;
if failed host 127.0.0.1 port 28017 protocol http
and request &amp;quot;/&amp;quot; with timeout 10 seconds then restart
if 5 restarts within 5 cycles then timeout
&lt;/code&gt;&lt;/pre&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/575699477/asflex/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/asflex/~8103076/575699477/5131866/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.isdada.com/check-mongodb-process-by-monit.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>monit是一款非常不错的进程监控程序，占用资源极少。官网：http://mmonit.com/monit/ 可以使用monit来监控系统负载，进程是否正常运行等。 最近每天凌晨使用crontab统计数据的时候，map reduce 计算过大，容易造成mongodb崩溃，在没有检查出明确的问题之前，为了确保正常运行，所以需要在mongodb挂掉的时候自动重启，因此就找到了这么一段脚本（From：https://gist.github.com/345611）&lt;img src=&quot;http://www1.feedsky.com/t1/575699477/asflex/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/asflex/~8103076/575699477/5131866/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Ubuntu</category><category>Linux</category><category>monit</category><category>MongoDB</category><pubDate>Mon, 05 Sep 2011 10:02:04 +0800</pubDate><author>达达</author><comments>http://www.isdada.com/check-mongodb-process-by-monit.html#comments</comments><guid isPermaLink="false">http://www.isdada.com/?p=1956</guid><dc:creator>达达</dc:creator><fs:srclink>http://www.isdada.com/check-mongodb-process-by-monit.html</fs:srclink><fs:srcfeed>http://www.isdada.com/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/asflex/~8103076/575699477/5131866</fs:itemid></item><item><title>批量删除目录下的.svn文件</title><link>http://item.feedsky.com/~feedsky/asflex/~8103076/575699478/5131866/1/item.html</link><content:encoded>&lt;p&gt;有时候复制了一个svn库中的目录到其他svn库中，原来的信息也被带过来了（当然可以用export），目录比较多的情况下，手动删除肯定不方面（况且默认还隐藏了.svn &amp;#8211; -），其实很简单，使用rm和find命令很快解决问题&lt;/p&gt;
&lt;pre class=&quot;chili&quot;&gt;&lt;code class=&quot;&quot;&quot;&gt;

cd /some/of/your/folders/

rm -rf `find . -type d -name .svn`

&lt;/code&gt;&lt;/pre&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/575699478/asflex/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/asflex/~8103076/575699478/5131866/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.isdada.com/delete-dotsvn-dictionary-by-rm.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>有时候复制了一个svn库中的目录到其他svn库中，原来的信息也被带过来了（当然可以用export），目录比较多的情况下，手动删除肯定不方面（况且默认还隐藏了.svn &amp;#8211; -），其实很简单，使用rm和find命令很快解决问题&lt;img src=&quot;http://www1.feedsky.com/t1/575699478/asflex/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/asflex/~8103076/575699478/5131866/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Linux</category><category>Linxu</category><category>Uinx</category><category>Mac</category><category>Mac/iOS</category><pubDate>Wed, 31 Aug 2011 16:28:37 +0800</pubDate><author>达达</author><comments>http://www.isdada.com/delete-dotsvn-dictionary-by-rm.html#comments</comments><guid isPermaLink="false">http://www.isdada.com/?p=1954</guid><dc:creator>达达</dc:creator><fs:srclink>http://www.isdada.com/delete-dotsvn-dictionary-by-rm.html</fs:srclink><fs:srcfeed>http://www.isdada.com/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/asflex/~8103076/575699478/5131866</fs:itemid></item><item><title>在键盘上敲出文本的苹果Logo</title><link>http://item.feedsky.com/~feedsky/asflex/~8103076/575699479/5131866/1/item.html</link><content:encoded>&lt;p&gt;今天Steve Jobs宣布辞去Apple CEO，虽然知道这一天迟早都要到来，不过还是挺遗憾和伤感的。&lt;/p&gt;
&lt;p&gt;相信很多朋友想在键盘上直接敲出苹果的Logo，Google了一下，很简单&lt;/p&gt;
&lt;p&gt;先按住键盘上的Shift+Alt，然后按下K就可以了&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/575699479/asflex/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/asflex/~8103076/575699479/5131866/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.isdada.com/%e5%9c%a8%e9%94%ae%e7%9b%98%e4%b8%8a%e6%95%b2%e5%87%ba%e6%96%87%e6%9c%ac%e7%9a%84%e8%8b%b9%e6%9e%9clogo.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>今天Steve Jobs宣布辞去Apple CEO，虽然知道这一天迟早都要到来，不过还是挺遗憾和伤感的。 相信很多朋友想在键盘上直接敲出苹果的Logo，Google了一下，很简单 先按住键盘上的Shift+Alt，然后按下K就可以了 &lt;img src=&quot;http://www1.feedsky.com/t1/575699479/asflex/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/asflex/~8103076/575699479/5131866/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Mac/iOS</category><pubDate>Thu, 25 Aug 2011 23:24:32 +0800</pubDate><author>达达</author><comments>http://www.isdada.com/%e5%9c%a8%e9%94%ae%e7%9b%98%e4%b8%8a%e6%95%b2%e5%87%ba%e6%96%87%e6%9c%ac%e7%9a%84%e8%8b%b9%e6%9e%9clogo.html#comments</comments><guid isPermaLink="false">http://www.isdada.com/?p=1948</guid><dc:creator>达达</dc:creator><fs:srclink>http://www.isdada.com/%e5%9c%a8%e9%94%ae%e7%9b%98%e4%b8%8a%e6%95%b2%e5%87%ba%e6%96%87%e6%9c%ac%e7%9a%84%e8%8b%b9%e6%9e%9clogo.html</fs:srclink><fs:srcfeed>http://www.isdada.com/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/asflex/~8103076/575699479/5131866</fs:itemid></item><item><title>iOS中各个图标的尺寸大小</title><link>http://item.feedsky.com/~feedsky/asflex/~8103076/575699480/5131866/1/item.html</link><content:encoded>&lt;p&gt;原文是Apple 的 &lt;a href=&quot;http://developer.apple.com/library/iOS/#documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html&quot; target=&quot;_blank&quot;&gt;Custom Icon and Image Creation Guidelines&lt;/a&gt; 做一下备忘吧&lt;/p&gt;
&lt;p&gt;给retina屏幕用的图标的命名是@2x哦，曾经犯了个错，写成了@x2，显示不正确=。=&lt;/p&gt;
&lt;div&gt;
&lt;table class=&quot;graybox&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;5&quot;&gt;
&lt;caption class=&quot;tablecaption&quot;&gt;&lt;strong&gt;自定义图标尺寸&lt;/strong&gt;&lt;/caption&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;th class=&quot;TableHeading_TableRow_TableCell&quot; scope=&quot;col&quot;&gt;描述&lt;/th&gt;
&lt;th class=&quot;TableHeading_TableRow_TableCell&quot; scope=&quot;col&quot;&gt;Size for iPhone and iPod touch (in pixels)&lt;/th&gt;
&lt;th class=&quot;TableHeading_TableRow_TableCell&quot; scope=&quot;col&quot;&gt;Size for iPad (in pixels)&lt;/th&gt;
&lt;th class=&quot;TableHeading_TableRow_TableCell&quot; scope=&quot;col&quot;&gt;指南&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td scope=&quot;row&quot;&gt;Application icon (&lt;strong&gt;required&lt;/strong&gt;)&lt;/td&gt;
&lt;td&gt;57 x 57&lt;/p&gt;
&lt;p&gt;114 x 114 (high resolution)&lt;/td&gt;
&lt;td&gt;72 x 72&lt;/td&gt;
&lt;td&gt;&lt;span class=&quot;content_text&quot;&gt;&lt;a href=&quot;#//apple_ref/doc/uid/TP40006556-CH14-SW2&quot;&gt;“Application Icons”&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td scope=&quot;row&quot;&gt;App Store icon (&lt;strong&gt;required&lt;/strong&gt;)&lt;/td&gt;
&lt;td&gt;512 x 512&lt;/td&gt;
&lt;td&gt;512 x 512&lt;/td&gt;
&lt;td&gt;&lt;span class=&quot;content_text&quot;&gt;&lt;a href=&quot;#//apple_ref/doc/uid/TP40006556-CH14-SW2&quot;&gt;“Application Icons”&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td scope=&quot;row&quot;&gt;Small icon for Spotlight search results and Settings (recommended)&lt;/td&gt;
&lt;td&gt;29 x 29&lt;/p&gt;
&lt;p&gt;58 x 58 (high resolution)&lt;/td&gt;
&lt;td&gt;50 x 50 for Spotlight search results&lt;/p&gt;
&lt;p&gt;29 x 29 for Settings&lt;/td&gt;
&lt;td&gt;&lt;span class=&quot;content_text&quot;&gt;&lt;a href=&quot;#//apple_ref/doc/uid/TP40006556-CH14-SW10&quot;&gt;“Small Icons”&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td scope=&quot;row&quot;&gt;Document icon (recommended for custom document types)&lt;/td&gt;
&lt;td&gt;22 x 29&lt;/p&gt;
&lt;p&gt;44 x 58 (high resolution)&lt;/td&gt;
&lt;td&gt;64 x 64&lt;/p&gt;
&lt;p&gt;320 x 320&lt;/td&gt;
&lt;td&gt;&lt;span class=&quot;content_text&quot;&gt;&lt;a href=&quot;#//apple_ref/doc/uid/TP40006556-CH14-SW15&quot;&gt;“Document Icons”&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td scope=&quot;row&quot;&gt;Web clip icon (recommended for web applications and websites)&lt;/td&gt;
&lt;td&gt;57 x 57&lt;/p&gt;
&lt;p&gt;114 x 114 (high resolution)&lt;/td&gt;
&lt;td&gt;72 x 72&lt;/td&gt;
&lt;td&gt;&lt;span class=&quot;content_text&quot;&gt;&lt;a href=&quot;#//apple_ref/doc/uid/TP40006556-CH14-SW11&quot;&gt;“Web Clip Icons”&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td scope=&quot;row&quot;&gt;Toolbar and navigation bar icon (optional)&lt;/td&gt;
&lt;td&gt;Approximately 20 x 20&lt;/p&gt;
&lt;p&gt;Approximately 40 x 40 (high resolution)&lt;/td&gt;
&lt;td&gt;Approximately 20 x 20&lt;/td&gt;
&lt;td&gt;&lt;span class=&quot;content_text&quot;&gt;&lt;a href=&quot;#//apple_ref/doc/uid/TP40006556-CH14-SW8&quot;&gt;“Icons for Navigation Bars, Toolbars, and Tab Bars”&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td scope=&quot;row&quot;&gt;Tab bar icon (optional)&lt;/td&gt;
&lt;td&gt;Approximately 30 x 30&lt;/p&gt;
&lt;p&gt;Approximately 60 x 60 (high resolution)&lt;/td&gt;
&lt;td&gt;Approximately 30 x 30&lt;/td&gt;
&lt;td&gt;&lt;span class=&quot;content_text&quot;&gt;&lt;a href=&quot;#//apple_ref/doc/uid/TP40006556-CH14-SW8&quot;&gt;“Icons for Navigation Bars, Toolbars, and Tab Bars”&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td scope=&quot;row&quot;&gt;Launch image (&lt;strong&gt;required&lt;/strong&gt;)&lt;/td&gt;
&lt;td&gt;320 x 480&lt;/p&gt;
&lt;p&gt;640 x 960 (high resolution)&lt;/td&gt;
&lt;td&gt;For portrait:&lt;/p&gt;
&lt;ul class=&quot;simple&quot;&gt;
&lt;li&gt;768 x 1004&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For landscape:&lt;/p&gt;
&lt;ul class=&quot;simple&quot;&gt;
&lt;li&gt;1024 x 748&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
&lt;td&gt;&lt;span class=&quot;content_text&quot;&gt;&lt;a href=&quot;#//apple_ref/doc/uid/TP40006556-CH14-SW5&quot;&gt;“Launch Images”&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/575699480/asflex/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/asflex/~8103076/575699480/5131866/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.isdada.com/ios-icon-size.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>原文是Apple 的 Custom Icon and Image Creation Guidelines 做一下备忘吧 给retina屏幕用的图标的命名是@2x哦，曾经犯了个错，写成了@x2，显示不正确=。= 自定义图标尺寸 描述 Size for iPhone and iPod touch (in pixels) Size for iPad (in pixels) 指南 Application icon (required) 57 x 57 114 x 114 (high resolution) 72 x 72 “Application Icons” App Store icon (required) 512 x 512 512 x 512 “Application Icons” Small icon &lt;a href='http://www.isdada.com/ios-icon-size.html'&gt;[...]&lt;/a&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/575699480/asflex/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/asflex/~8103076/575699480/5131866/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>ICON</category><category>Mac/iOS</category><category>iOS</category><pubDate>Tue, 16 Aug 2011 23:32:47 +0800</pubDate><author>达达</author><comments>http://www.isdada.com/ios-icon-size.html#comments</comments><guid isPermaLink="false">http://www.isdada.com/?p=1946</guid><dc:creator>达达</dc:creator><fs:srclink>http://www.isdada.com/ios-icon-size.html</fs:srclink><fs:srcfeed>http://www.isdada.com/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/asflex/~8103076/575699480/5131866</fs:itemid></item><item><title>nginx添加strip插件，去除页面中的空白符</title><link>http://item.feedsky.com/~feedsky/asflex/~8103076/575699481/5131866/1/item.html</link><content:encoded>&lt;p&gt;nginx官方有个strip插件，可以去除页面中的空白符（空格，回车，制表符等）&lt;/p&gt;
&lt;p&gt;在ubuntu下需要重新编译一下，主要参考：&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://wiki.nginx.org/Modules&quot; target=&quot;_blank&quot;&gt;http://wiki.nginx.org/Modules&lt;/a&gt; &lt;a href=&quot;http://wiki.nginx.org/3rdPartyModules&quot; target=&quot;_blank&quot;&gt;http://wiki.nginx.org/3rdPartyModules&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id=&quot;more-1943&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;下载nginx的源代码，可以使用apt-get source 也可以使用wget去&lt;a href=&quot;http://nginx.org&quot; target=&quot;_blank&quot;&gt;nginx.org&lt;/a&gt;下载（&lt;a href=&quot;http://www.nginx.org/en/download.html&quot; target=&quot;_blank&quot;&gt;http://www.nginx.org/en/download.html&lt;/a&gt;）&lt;/p&gt;
&lt;p&gt;下载strip 插件：&lt;/p&gt;
&lt;pre class=&quot;chili&quot;&gt;&lt;code class=&quot;&quot;&quot;&quot;&quot;&gt;

wget http://wiki.nginx.org/images/6/63/Mod_strip-0.1.tar.gz

tar xvzf Mod_strip-0.1.tar.gz

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;然后进入nginx目录&lt;/p&gt;
&lt;pre class=&quot;chili&quot;&gt;&lt;code class=&quot;&quot;&quot;&quot;&quot;&gt;
&amp;lt;pre&amp;gt;./configure \
  --prefix=/usr \
  --sbin-path=/usr/sbin/nginx \
  --conf-path=/etc/nginx/nginx.conf \
  --error-log-path=/var/log/nginx/error.log \
  --pid-path=/var/run/nginx/nginx.pid  \
  --lock-path=/var/lock/nginx.lock \
  --user=nginx \
  --group=nginx \
  --with-http_ssl_module \
  --with-http_flv_module \
  --with-http_gzip_static_module \
  --http-log-path=/var/log/nginx/access.log \
  --http-client-body-temp-path=/var/tmp/nginx/client/ \
  --http-proxy-temp-path=/var/tmp/nginx/proxy/ \
  --http-fastcgi-temp-path=/var/tmp/nginx/fcgi/
  --add-module=/home/isdada/mod_strip&amp;lt;/pre&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;chili&quot;&gt;&lt;code class=&quot;&quot;&quot;&quot;&quot;&gt;

make

make install

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;然后停掉nginx，把编译好的拷贝到/usr/sbin下&lt;/p&gt;
&lt;pre class=&quot;chili&quot;&gt;&lt;code class=&quot;&quot;&quot;&quot;&quot;&gt;

/etc/init.d/nginx stop

cp objs/nginx /usr/sbin

/etc/init.d/nginx start

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;OK了，大功告成&lt;/p&gt;
&lt;p&gt;环境是ubuntu server 11.04，其他发行版本的大同小异：）&lt;/p&gt;
&lt;p&gt;实测对css文件去空白字符有点问题，对html没发现有什么问题。&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/575699481/asflex/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/asflex/~8103076/575699481/5131866/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.isdada.com/nginx-add-strip-module-reduce-page-size.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>nginx官方有个strip插件，可以去除页面中的空白符（空格，回车，制表符等） 在ubuntu下需要重新编译一下，主要参考： http://wiki.nginx.org/Modules http://wiki.nginx.org/3rdPartyModules 下载nginx的源代码，可以使用apt-get source 也可以使用wget去nginx.org下载（http://www.nginx.org/en/download.html） 下载strip 插件： 然后进入nginx目录 然后停掉nginx，把编译好的拷贝到/usr/sbin下 OK了，大功告成 环境是ubuntu server 11.04，其他发行版本的大同小异：） 实测对css文件去空白字符有点问题，对html没发现有什么问题。&lt;img src=&quot;http://www1.feedsky.com/t1/575699481/asflex/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/asflex/~8103076/575699481/5131866/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Ubuntu</category><category>Linux</category><category>strip</category><category>nginx</category><category>module</category><pubDate>Mon, 15 Aug 2011 11:25:54 +0800</pubDate><author>达达</author><comments>http://www.isdada.com/nginx-add-strip-module-reduce-page-size.html#comments</comments><guid isPermaLink="false">http://www.isdada.com/?p=1943</guid><dc:creator>达达</dc:creator><fs:srclink>http://www.isdada.com/nginx-add-strip-module-reduce-page-size.html</fs:srclink><fs:srcfeed>http://www.isdada.com/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/asflex/~8103076/575699481/5131866</fs:itemid></item><item><title>iOS 中监测屏幕旋转</title><link>http://item.feedsky.com/~feedsky/asflex/~8103076/575699482/5131866/1/item.html</link><content:encoded>&lt;p&gt;今天下午发现，在UITabBar的子显示对象的- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 有点问题，屏幕旋转了，只是调用了UITabBar的shouldAutorotateToInterfaceOrientation，容器内部的显示对象并不会做出反应。那么只能检测屏幕的旋转事件了再做出相应的动作了&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre class=&quot;chili&quot;&gt;&lt;code class=&quot;&quot;&quot;&quot;&quot;&gt;

// Do any additional setup after loading the view from its nib.

//----- SETUP DEVICE ORIENTATION CHANGE NOTIFICATION -----

UIDevice *device = [UIDevice currentDevice]; //Get the device object

[device beginGeneratingDeviceOrientationNotifications]; //Tell it to start monitoring the accelerometer for orientation

NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; //Get the notification centre for the app

[nc addObserver:self //Add yourself as an observer

selector:@selector(orientationChanged:)

name:UIDeviceOrientationDidChangeNotification

object:device];

&amp;amp;nbsp;

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre class=&quot;chili&quot;&gt;&lt;code class=&quot;&quot;&quot;&quot;&quot;&gt;

- (void)orientationChanged:(NSNotification *)note

{

UIView *ftView = [self.view viewWithTag:200];

if([[UIDevice currentDevice] orientation] == UIDeviceOrientationLandscapeLeft || [[UIDevice currentDevice] orientation] == UIDeviceOrientationLandscapeRight)

{

[ftView setFrame:CGRectMake(0, 0, 480, 200)];

}else

{

[ftView setFrame:CGRectMake(0, 0, 320, 360)];

}

}

&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt; ref:&lt;a href=&quot;http://www.ios-developer.net/iphone-ipad-programmer/development/notifications/orientation-change-notification&quot; target=&quot;_blank&quot;&gt;http://www.ios-developer.net/iphone-ipad-programmer/development/notifications/orientation-change-notification&lt;/a&gt;&lt;/pre&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/575699482/asflex/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/asflex/~8103076/575699482/5131866/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.isdada.com/how-to-detect-device-orientation-changed-in-ios.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>今天下午发现，在UITabBar的子显示对象的- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 有点问题，屏幕旋转了，只是调用了UITabBar的shouldAutorotateToInterfaceOrientation，容器内部的显示对象并不会做出反应。那么只能检测屏幕的旋转事件了再做出相应的动作了 &amp;#160; &amp;#160; &amp;#160;  ref:http://www.ios-developer.net/iphone-ipad-programmer/development/notifications/orientation-change-notification&lt;img src=&quot;http://www1.feedsky.com/t1/575699482/asflex/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/asflex/~8103076/575699482/5131866/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Mac/iOS</category><category>iOS</category><pubDate>Sun, 14 Aug 2011 18:01:26 +0800</pubDate><author>达达</author><comments>http://www.isdada.com/how-to-detect-device-orientation-changed-in-ios.html#comments</comments><guid isPermaLink="false">http://www.isdada.com/?p=1938</guid><dc:creator>达达</dc:creator><fs:srclink>http://www.isdada.com/how-to-detect-device-orientation-changed-in-ios.html</fs:srclink><fs:srcfeed>http://www.isdada.com/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/asflex/~8103076/575699482/5131866</fs:itemid></item></channel></rss>
