<?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>Evolution Intelligence</title>
	<atom:link href="http://ei.appspot.com/feed" rel="self" type="application/rss+xml" />
	<link>http://ei.appspot.com</link>
	<description>为革命保护智力</description>
	<lastBuildDate>Mon, 14 Feb 2011 14:53:29 +0000</lastBuildDate>
	<language>zh-cn</language>
	<sy:updatePeriod>daily</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>Micolog-Python 0.7</generator>
		<item>
		<title>对挥剑自宫的Nokia说两句</title>
		<link>http://ei.appspot.com/?p=162002</link>
		<comments>http://ei.appspot.com/?p=162002#comments</comments>
		<pubDate>Mon, 14 Feb 2011 14:53:29 +0000</pubDate>
		<dc:creator>monkeyXite</dc:creator>
				<category><![CDATA[Career ]]></category>


		<guid isPermaLink="false">http://ei.appspot.com/?p=162002</guid>
		<description><![CDATA[None]]></description>
			<content:encoded><![CDATA[<strong>“欲练神功，挥剑自宫”
</strong>
<p>请问大家，对这对面临共同的强大对手而组成的联盟，有信心么？</p>

<p>这种苟且的联盟，不正恰恰表明了对手的强大，以及自身的短视、方寸皆乱、杀鸡取卵、急功近利吗？当Nokia自己对自己都没有信心的时候，当Nokia自己都在像个无头苍蝇乱撞的时候，怎么能够给千万开发者以信心？</p>

<p>当资本反手是云覆手是雨时，受伤的有绞尽脑汁的工程师，终生奉献在Nokia的员工，有视Nokia为信仰的铁杆Fans，有籍信仰所凝聚的开发者。当资本握手的那一刻，灰飞烟灭。</p>

<p>从这种合作，我没有看到北欧蓝血的隐忍，只有资本的狞笑和无义。当Nokia空降兵CEO自掘坟墓时，可惜了一干老臣，陪葬的还会有谁？</p>

<strong>“挥剑自宫, 未必成功”
</strong>

<p>最后，请Nokia一定要给Qt找一个配的上的买家。。。</p>

<p>本文网址:<a href="http://ei.appspot.com/?p=162002">http://ei.appspot.com/?p=162002</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ei.appspot.com/feed/comments</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item><item>
		<title>Python食谱1.3.判断对象是否为类字符串</title>
		<link>http://ei.appspot.com/?p=158001</link>
		<comments>http://ei.appspot.com/?p=158001#comments</comments>
		<pubDate>Fri, 14 Jan 2011 15:56:38 +0000</pubDate>
		<dc:creator>monkeyXite</dc:creator>
				<category><![CDATA[Coding ]]></category>


		<guid isPermaLink="false">http://ei.appspot.com/?p=158001</guid>
		<description><![CDATA[None]]></description>
			<content:encoded><![CDATA[Python食谱1.3.判断对象是否为类字符串
By digitalsatori on 一月 5th, 2009
作者:Luther Blissett
中文翻译：Tony Gu

问题
如何判断传递给函数或方法的参数是字符串（更准确的说，是否是“类字符串”对象）？

解决方法
判断是否是字符串或Unicode对象的一个简单快速的方法是使用Python内置的isinstance和basestring:
 <pre class="brush: python">
  def isAString(anobj):
      return isinstance(anobj, basestring)
</pre>

讨论
对大多数的程序员来说，解决这类问题最先想到的办法就是类型判断：
 <pre class="brush: python">
 def isExactlyAString(anobj):
    return type(anobj) is type('')
</pre>
但是这种方法很不好。因为它完全忽略了Python的一个强项：平滑的基于特征的多态性。这类判断将Unicode对象，用户自定义的str子类的实例，以及其它用户自定义的“类字符串"的实例排除在外。

而菜谱中提供的这种使用Python内置函数isinstance的方法就要好得多。内置类型basestring恰好能配合这种方法。basestring是str和unicode类型的共同基类，而用户自定义的作为basestring的子类的“类字符串”类型也能被上述的方法接受。basestring实际上是一个“空的”类型，就像object,所以继承它并不费周折。

但遗憾的是，这种看起来经典的isinstance判断法却无法接受UserString实例这种明显的“类字符串”对象，要知道UserString类来自于Python标准库中的UserString模块。原因当然是因为它不是继承自basestring.如果我们要支持这样的类型，直接判断对象的行为是否与字符串类似就可以了，比如：
 <pre class="brush: python">
  def isStringLike(anobj):
    try: anobj + ''
    except: return False
    else: return True
</pre>

这个isStringLike函数要比“解决方法”中的isAString方法要复杂些，运行起来也慢一些，但是它确实在接受str和Unicode对象的同时也能接受UserString类和其他“类字符串”类型的实例。

Python类型判断的的一般方法被称作“类鸭判断”：如果它走起来象鸭子，叫起来象鸭子，那么对我们来说它已经足够“类鸭”了。isStringLike函数只做到了叫得象鸭子这个程度，或许这也就足够了。如果你需要检测anobj对象更多的类字符串特征,只要简单的在try语句的表达式中添加更多相关属性判断，比如：
 <pre class="brush: python">
  try: anobj.lower()+anobj+ ''
</pre>

按照我的经验，象isStringLike函数这样的简单判断就已经足够了。

对于类型校验（或其他校验任务）最Python式的方法就是直接尝试执行需要作的任何任务，同时检测并处理任何因为某些特殊场合而产生的错误或异常。这种方法叫做“先做再纠错”（EAFP--"It's easy to ask forgiveness than permission'")。try/except是使用这种EAFP的关键工具。一般情况下,正如本文中的例子，我们只选择使用很简单的判断任务，(比如,连接一个空字串)，而不用去处理全部的对象属性（比如字符串对象所有的操作和方法）。

参见
Pyhton的函数库参考的关于isinstance和basestring的内容，和Python in a Nutshell



<p>本文网址:<a href="http://ei.appspot.com/?p=158001">http://ei.appspot.com/?p=158001</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ei.appspot.com/feed/comments</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item><item>
		<title>sailing</title>
		<link>http://ei.appspot.com/?p=57001</link>
		<comments>http://ei.appspot.com/?p=57001#comments</comments>
		<pubDate>Sun, 06 Jun 2010 12:02:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Life ]]></category>


		<guid isPermaLink="false">http://ei.appspot.com/?p=57001</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div><img style="padding:0px 10px 10px 10px;" src="http://ei.appspot.com/media/agJlaXINCxIFTWVkaWEY2a0DDA" width="280" alt="image176526256.jpg" title="image176526256.jpg" /></div><div style="margin-top:10px">Eventhough I can not saillng all by myself, I am becoming to understand why swidish men like sailing. <br/><br/> <br clear="all"/><div class="iblogger-location-wrapper"/>Mobile Blogging from <a class="iblogger-location" href="http://maps.google.com/maps?ll=59.2693,17.9227">here</a>.</div></div><div class="iblogger-footer"><br clear="all"/><p style="text-align:right;font-size:10px;">[Posted with <a href="http://illuminex.com/iBlogger/index.html">iBlogger</a> from my iPhone]</p><br/></div>

<p>本文网址:<a href="http://ei.appspot.com/?p=57001">http://ei.appspot.com/?p=57001</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ei.appspot.com/feed/comments</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item><item>
		<title>Steve Jobs 讨厌Flash的真正原因</title>
		<link>http://ei.appspot.com/2010/05/3/50001.html</link>
		<comments>http://ei.appspot.com/2010/05/3/50001.html#comments</comments>
		<pubDate>Mon, 03 May 2010 03:19:12 +0000</pubDate>
		<dc:creator>monkeyXite</dc:creator>
				<category><![CDATA[Career ]]></category>
<category><![CDATA[Google ]]></category>
<category><![CDATA[Mac ]]></category>
<category><![CDATA[Zen ]]></category>


		<guid isPermaLink="false">http://ei.appspot.com/?p=50001</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>看到了一片由<a href="http://www.antipope.org/charlie/blog-static/">Charlie Stross</a>精彩的文章<a href="http://www.antipope.org/charlie/blog-static/2010/04/why-steve-jobs-hates-flash.html">The real reason why Steve Jobs hates Flash</a>，一时兴起，翻译过来(品论也不乏深刻，可惜太多无力翻译，品论大家自己去看)，供大家鉴赏:</p>
<p>───────────────────────────</p>
<p>这周以来科技圈里有些有趣的消息传了出来...</p>
<p>首先，Apple 与 Adobe的世仇，伴随<a href="http://www.apple.com/hotnews/thoughts-on-flash/">Steve Jobs的一封公开信</a>有着越演越列的趋势，在这封公开信中他解释了为何Adobe的Flash多媒体格式将永远不会允许进入由OSX分支而来的iPhone/iPad的<a href="http://en.wikipedia.org/wiki/1984_%28advertisement%29">理想纯粹的桃园</a>。</p>
<p><img style="float: left; margin: 5px;" src="../media/agJlaXINCxIFTWVkaWEYgfcCDA" alt="31C7952C-E8F4-44AD-BC53-4133CAE3772C.jpg" width="98" height="116" />接着，<a href="http://www.theregister.co.uk/2010/04/28/hp_on_palm_buy/">HP正在收购Palm</a>，多半是为了WebOS──有谣言说他们打算部署一系列基于WebOS的平板电脑来于iPad抗衡。与此同时，<a href="http://gizmodo.com/5527824/hp-slate-is-dead-on-arrival-says-techcrunch">他们正在灭掉自己即将出世的Window7平板</a>，就像<a href="http://gizmodo.com/5527442/microsoft-cancels-innovative-courier-tablet-project">微软正在灭掉Courier这个平板项目</a>一样。</p>
<p>最后，gizmodo(不，也许应该说是，基于当前的状况，<a href="http://news.cnet.com/8301-13579_3-20003446-37.html">一个不带偏见的信息来源</a>）发标了一篇有意思的文章但到了Apple的<a href="http://gizmodo.com/5427058/apple-gestapo-how-apple-hunts-down-leaks">Worldwide Loyalty Team </a>(依我看，应该翻译成遍布全球的锦衣卫），这个内部的团队是专门处理跟踪并阻止信息泄露这样的任务的。</p>
<p>毫不夸张的来说，Apple的苛刻的安全政策是任何具有保密性质的公司中执行最为严格的，而这些公司往往都是在涉及到军方的合同中采取相应的保密措施。但是，尽管这样，像拥有控制强迫症的Steve Jobs对于iPad所忍受的那样（以及Apple周围那些显然带有绝望的奋力追赶的竞争者们）继续忍受一些考验。到底是发生了什么？</p>
<p>我有一个理论，它是这样的：Steve Jobs相信他是在为Apple的未来赌一把，为这家市值超过2000亿的公司的未来赌一把，以一种孤注一掷的方式进入一个全新的市场。HP已经清醒过来了并且闻到了森林大火的味道，晚了那么2到3年；而微软已经陷入了一个焦油泥潭，无法自拔，而那烧向他们的大火就是即将烧尽他们所生存的整个生态系统。空气中到处都是恐慌的气味，这就是为什么...</p>
<p>我们知道自从90年代中期以来，互联网就是计算机的未来。随着带宽的增加，数据已经无需风存在我们桌面电脑的硬盘之中：数据和交互手段是能够随着我们来到这个我们生活的世界的。Modem承载了.com 1.0；而宽带技术承载齐了.com 2.0.现在，几乎所有的人都预测所谓的.com 3.0，将会有4G移动通信网络（LTE或者是WiMax，看你打算上那条船了）以及无处不在WIFI的所驱动。WIFI和4G协议将会在短期内提供50-150Mbps的速率给你口袋中的不管什么样的设备，通过空气。(3G已然可以提供6Mbps, 也差不多是在上个千年之交时固定宽带所能够提供的。而且在东京已经有ISP在通过WiMax为家庭提供固定宽带服务。而这服务已经和我在2005年Cable Modem（应该指的是和国内歌华宽带差不多的通过闭路电视布网的宽带）的速度差不多快了）</p>
<p>已经说滥了提高光纤网路的速度是多昂贵的了。USA是发达国家中宽带水平最差的地区之一，因为宽带是通过早已安装好的闭路电视承载的（基于已有的设施布网在早期或许会节约成本，然而却限制约束了线路 ），但是转而使用宽带无线的方式会弥补这一差距，如果频率可用的话（另见：关闭模拟电视和电台来腾地）。 毕竟，部署单个宽光线到一个无线基站的方式要比部署n多窄带光线来实现光纤到户容易地多。</p>
<p>不管怎样，简言之Steve Jobs的策略性难题就在于：我们所熟知的PC产业将会在30年左右消亡。</p>
<p>PC正在成为原材料。除去性能在不断的提升，PC和笔记本电脑的实际价格在以10年50%的速度下跌。一个典型的netbook或桌面PC的利润率不足10%。至今为止，在利润塌陷的泥沼中Apple还幸存的原因在于他们瞄准了高端市场──如果将他们是汽车制造商，他们会是奔驰，宝马，保时捷和美洲虎组合体。但是，不管怎样，基本的价格是在下跌。此外，任何价位的市场，PC的发展都已经饱和了。也就是说，任何能够买得起PC的人都已经有了一台。此外，在发展中国家，市场还在增──但是这是在价格金字塔的底部，利润率极低几乎可以忽略。</p>
<p>与此同时，无线宽带即将到来。就像发生的一样，各种组织和用户将会不断的将他们数据迁徙至云（阅读：到服务器集群所组成的高层匿名数据仓库，而这些又由一些大型的公司，如Google所拥有和维护）。软件将作为一种服务提供给各地的用户，无论他们盯着的设备是什么样的（不管是他们的手机，笔记本电脑，平板电脑，电视机或者是直接植入了大脑，随便什么形式）。（为什么是这样？好吧，这是所有的人所相信的──至少是在这个行业里边的人。因为它提供了一直挣钱的一种方式，通过以服务的方式销售软件（Saas），从而去除硬件成本将会趋于零所带来的影响。并且，恩，云会让你将很多麻烦讨厌的维护工作外包出去，就像磁盘管理，备份，防病毒这样的破事）</p>
<p>让我来拿iPhone 以及iPad的操作系统来说明，它们不仅仅是苹果电脑整个新纪元的开始，与前任相比，它们不仅仅是用户界面有所不同，其差异就像原先的Macintosh继承自PC命令行。相反，它们是一个巨大的雄心勃勃的尝试，要让苹果掌控计算机的未来，到那时摩尔定律放慢，个人计算机业务将会沦陷，进入一个盈利的洼地。</p>
<p>App Store以及iTunes Store告诉Steve Jobs 对销售渠道的掌控是至关重要的。即使他能销售的设备在消减，只要他能够掌控数据（或者说app）的租金，那么他就有商业模式来运营。他而且可以掌控质量（先不提它是怎样定义的），排除恶意软件，并挟持对手。一个良好耕耘的应用程序商店，实际上是招揽顾客的源泉。 而且它也是一个强大工具，来促进这些应用程序所在的操作系统的发展。 操作系统，硬件平台，以及应用程序定义了一个生态系统。</p>
<p>Apple极力在尝试驱动一个新的生态系统的成长（它将对抗有着26年历史的Macintosh体系），使其在5年内成熟壮大。这是有时间期限的，因为在此期间内他们预期云计算的演进将机一步扁平化现有的PC行业。除非Apple能够在2015年以前彻底的转型成为另一种类型的公司，否则他们将会PC产业其他同类一样在那时灰飞烟灭──仅存的将是利润率微乎其微的提供必要生产必需品的设备内部提供商。</p>
<p>这种迹象在Mac圈比比皆是。今年，将是首次，<a href="http://developer.apple.com/wwdc/ada/index.html">苹果设计奖在WWDC'10只授予iPhone和iPad应用程序</a> 。 Mac应用程序不在考虑范围之内，它们对Apple新的世外桃源生态系统的围墙没有任何贡献。</p>
<p>在这个时期内，任何威胁到app store平台成长的伎俩将会被抵制，毫不留情的。Steve Jobs一定坚信他（或者一个助理）所写的关于 Flash 的思考：&ldquo;Flash 是一个跨平台的开发工具。Adobe 的目标不是帮助开发者写出最好的 iPhone、iPod 和 iPad 软件，他们的目标是帮助开发者写跨平台软件&rdquo;。并且他的确不希望跨平台应用会从他的应用程序生态系统分散注意力和精力。其远景是帮助一个将软件作为武器的一家硬件公司从长期转型为一个拥有硬件附属部门的云计算公司，几乎和Google差不多，如果你瞥到并认为谷歌的Nexus One走的是正道的话。 另外一种道路就是加入变得无足轻重的PC行业，陷入漫长的死亡螺旋。</p>
<p>让我们遥想5年后来进入未来吧...</p>
<p>LTE将会在这。WiMax将会在这。我们将会看到类似于<a href="http://en.wikipedia.org/wiki/MiFi">MiFi</a>这样的4G便携路由器，不同之处在于能够提供50-100Mbps的互联网链接能力。（与此同时，地面光纤实地速度将突破了50 - 100Mbps，除非在发达地区的新建筑已批准了千兆和更快的链接安装）。互联网将越发的移动化。对于手机的显示屏幕变化还好，然而对角线7 - 8厘米的屏幕对于超过40-45岁的人眯缝着眼来看还是太小：因此屏幕更大的平板电脑将占据市场。</p>
<p>随处可用的50+Mbps的数据速率意味着你不需要在本地硬盘保存数据；它可以存在于其他什么地方的服务器上，当你需要的时候流向你的平板设备。</p>
<p>据悉苹果正在大量投资于适合作为云端的数据中心。 有传言说：&ldquo;iTunes10&rdquo;将有会成为所谓的一种云服务，饕餮你的音乐和视频库并流向你在Apple注册的任何设备。 对于电子邮件来说有MobileMe，办公文件有iWork.com。之后将会有更多 ，非常多。</p>
<p>到2015 ipad 将会进化。 将有7&ldquo;/18厘米屏幕的小型便携版，以及较大的台式机版。最重要的是，他们将使用新的处理器，无论是今天的Atom处理器（记住，苹果要求开发人员只使用苹果的编译器工具链意味着，之后苹果可以很容易的迁徙到基于另一种CPU构架的应用商店）或<a href="http://en.wikipedia.org/wiki/ARM_architecture">Cortex A9那样的ARM内核</a> ── 双核，2GHz，会比现在的设备快得多...或者，能量效率大大高于目前的设备...或着说在同等性能水平下更节能。但是，在它真正的闪光点──其价值主张将会导致投资者分流大量的现金流进行投资，从而加速个人电脑产业的沦陷──将驱使外部投资与苹果生态系统相结合。</p>
<p>2015年，如果您在使用iPad，我敢打赌，你不会因为家庭宽带而烦恼；无论身处何地你都能够得到你想要的数据。 你不用为备份操心，因为你的数据是在苹果公司的云存储。 您将不必理会软件更新的事，因为所有的东西都在后台自动运行，没有任何麻烦事：也蠕虫或病毒或恶意软件的麻烦也不会有。 当然，与你的netbook(如果你是Microsoft的铁杆的话)相比，你将会为你得到的用户体验付更多的费用的──但你也不必担心<a href="http://news.cnet.com/8301-1009_3-20003074-83.html">防病毒软件破坏你的电脑 </a>。 因为你所实用的并不是现在世界上所谓的&ldquo;电脑&rdquo;。 您将会被四周的设备环绕，让你无论以任何方式，可以随时访问你所需要的数据。</p>
<p>这就是为什么，硅谷上方弥漫着恐慌气息的原因。 这就是为什么苹果公司变成了神经质的安全纳粹，为什么惠普刚刚在一个即将到来的主要平台上抛弃了微软，却舍得斥资十几亿买一个几乎倒闭的公司，这是为什么每个人都害怕Google：</p>
<p>个人电脑的演进，几乎走到了尽头，大家都在想办法找到能够在这场剧变中生存下来的策略。</p>
<p>&nbsp;</p>

<p>本文网址:<a href="http://ei.appspot.com/2010/05/3/50001.html">http://ei.appspot.com/2010/05/3/50001.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ei.appspot.com/feed/comments</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item><item>
		<title>Our latest song</title>
		<link>http://ei.appspot.com/?p=20001</link>
		<comments>http://ei.appspot.com/?p=20001#comments</comments>
		<pubDate>Tue, 16 Mar 2010 14:53:56 +0000</pubDate>
		<dc:creator>None</dc:creator>
				<category><![CDATA[fun ]]></category>


		<guid isPermaLink="false">http://ei.appspot.com/?p=20001</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Lucida Grande;"><strong>Chiisana Tenohira</strong></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Lucida Grande;"><strong><br /> </strong></p>
<blockquote>
<p>a wa seea teia</p>
<p>am nufu wuni jan-mn dou</p>
<p>dayi zai daiyi tai dayitai jiu do&mdash;&mdash;ai</p>
<p>ji ei sai gu</p>
<p>ma lo ma dai co novang &nbsp;no</p>
<p>you nam tei ou</p>
<p>jih tai tanm don</p>
<p>a walataya so fang ni&nbsp;</p>
<p>yi laveryou cada</p>
<p>com nali coyi wu shi de lvmi nitu ka shi tai</p>
<p>now yigu nowyi dowu gang dei</p>
<p>ji-e sai nai kang noyi her no</p>
<p>you ku li do&nbsp;</p>
<p>qi zju kang ni gou ga shih dei</p>
<p>soyishtei naka</p>
<p>yi tai-whoshewuno</p>
<p>so yishitei dayi tei</p>
<p>daiyi teia ju ta-sh</p>
<p>&nbsp;</p>
</blockquote>
<p>Recorded by marcia :P</p>

<p>本文网址:<a href="http://ei.appspot.com/?p=20001">http://ei.appspot.com/?p=20001</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ei.appspot.com/feed/comments</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item><item>
		<title>Tough Time is Coming</title>
		<link>http://ei.appspot.com/?p=14002</link>
		<comments>http://ei.appspot.com/?p=14002#comments</comments>
		<pubDate>Sun, 07 Mar 2010 14:00:08 +0000</pubDate>
		<dc:creator>None</dc:creator>
				<category><![CDATA[Career ]]></category>


		<guid isPermaLink="false">http://ei.appspot.com/?p=14002</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>2 mix-inproject are coming and no backup for me during these time. </p>  <p>I have to drop some interesting stuff during these time.</p>  <p>3 month later, maybe I can get rid of these things and rise up some one to be my backup in this project.</p>  <p><a href="http://pic.googleyixia.com/1/liang/yosemite-winter-storm.jpg">Yosemite Winter Storm</a> | Tarzan Panorama     <br /><img alt="" src="http://pic.googleyixia.com/1/liang/yosemite-winter-storm.jpg" /></p>  <p>God help who help himself.</p>

<p>本文网址:<a href="http://ei.appspot.com/?p=14002">http://ei.appspot.com/?p=14002</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ei.appspot.com/feed/comments</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item><item>
		<title>HOTFIX: Administrator privileges gone@SnowLeopord10.6.2</title>
		<link>http://ei.appspot.com/?p=13001</link>
		<comments>http://ei.appspot.com/?p=13001#comments</comments>
		<pubDate>Thu, 18 Feb 2010 15:22:59 +0000</pubDate>
		<dc:creator>None</dc:creator>
				<category><![CDATA[Mac ]]></category>


		<guid isPermaLink="false">http://ei.appspot.com/?p=13001</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>I ran into this problem with my PowerBook. My other Mac's were ok.<br /><br />Step 1: Boot in single user mode (Single user mode bypasses the GUI, which is all the visual stuff, and gives you something called "root access") by pressing Command + S (Apple+S) when the first shade of blue appears on the screen, and holding it down until the screen turns black with white text.<br /><br />Step 2: Wait for all the code stuff to load. Now, the first thing we need to do in single user mode is mount the hard drive so we can edit it. You enter this command in : /sbin/mount -uw /<br /><br />It should say something about removing orphaned unlinked files.<br /><br />Step 3: We are going to delete a little file that tells your computer every time you start up that you've completed the setup by entering this commmand: rm /var/db/.applesetupdone<br /><br />It should just bump down, waiting fotr the next command if it worked.<br /><br />Step 4: Now type, reboot<br /><br />Step 5: It should shut down and reboot. Than, a setup window will appear, asking you what language you want your computer to be in, just like you see when you setup a newly purchased Mac.<br /><br />WARNING: A welcome video will play after you select the language. It has some pretty cool music, but if your in a room with other people, I'd mute it right after the video starts.<br /><br />Step 6: Setup the computer. Select "DO NOT TRANSFER MY DATA". Don't worry, all your old stuff will still be there. Choose your internet connection and network, here is where you need your WEP or security password if you have one.<br /><br />Step 7: Create a new local account to administer that computer. You usually want to enter the name of the computer as the longname, and the shortname what you'll log in as. Say your computer's old name was "Frank's Computer", than just put Frank as the longname, because it will automatically as "'s Computer" at the end. MAKE SURE THAT BOTH USERNAMES ARE DIFFERENT FROM THE EXSISTING ONES, OTHERWISE IT WILL OVERWRITE.<br /><br />Step 8: Finish the setup, and you should automatically be logged into your new administrator account.<br /><br />After logging into your admin account, go to system preferences and open the accounts pane. Select your old account and enable it as an admin account. Logout of the one you have just made and re- login using your original account. You now should be an administrator again. You can go back to system preferences and delete the account you made in the exercise.<br /><br /><br />ps - in step 7 it is really important about the account names. I used BillyGates as mine.</p>

<h4>相关阅读</h4>
<ul>
    
    <li><a href="http://ei.appspot.com/2008/11/16/94.html">Mac OS X Privileges reconvery tips</a></li>
    
    <li><a href="http://ei.appspot.com/2008/05/8/88.html">iPython in MacOS autoComplete and highlight configure</a></li>
    
    <li><a href="http://ei.appspot.com/2006/06/10/67.html">Google web服务快捷键大全</a></li>
    
</ul>
<p>本文网址:<a href="http://ei.appspot.com/?p=13001">http://ei.appspot.com/?p=13001</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ei.appspot.com/feed/comments</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item><item>
		<title>iPortable SnowLeopord with iPhoneSDK 3.2Beta1 </title>
		<link>http://ei.appspot.com/?p=11002</link>
		<comments>http://ei.appspot.com/?p=11002#comments</comments>
		<pubDate>Wed, 17 Feb 2010 08:18:46 +0000</pubDate>
		<dc:creator>None</dc:creator>
				<category><![CDATA[Mac ]]></category>


		<guid isPermaLink="false">http://ei.appspot.com/?p=11002</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><img style="padding:0px 10px 10px 10px;" title="image567330800.jpg" src="../media/agJlaXIMCxIFTWVkaWEY4V0M" alt="image567330800.jpg" width="280" align="left" />For now, I could use HP PC laptop as my devMac, though there are some disadvantage:<br />1. No WIFI driver<br />2. No sound driver<br />3. No directly monitor turning method. <br /><br />Anyway I thought these disadvantage make it perfect to develop more efficiently, as there is no internet&amp;multimedia to discentral your tasks;)</p>
<div class="iblogger-location-wrapper">Mobile Blogging from <a class="iblogger-location" href="http://maps.google.com/maps?ll=37.9689,112.5297">here</a>.</div>
<div class="iblogger-footer"><br />
<p style="text-align:right;font-size:10px;">[Posted with <a href="http://illuminex.com/iBlogger/index.html">iBlogger</a> from my iPhone]</p>
</div>

<p>本文网址:<a href="http://ei.appspot.com/?p=11002">http://ei.appspot.com/?p=11002</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ei.appspot.com/feed/comments</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item><item>
		<title>Back to stockholm, watch and learn</title>
		<link>http://ei.appspot.com/?p=9005</link>
		<comments>http://ei.appspot.com/?p=9005#comments</comments>
		<pubDate>Fri, 29 Jan 2010 11:10:57 +0000</pubDate>
		<dc:creator>None</dc:creator>
				<category><![CDATA[Career ]]></category>


		<guid isPermaLink="false">http://ei.appspot.com/?p=9005</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>Attend the workshop these days, very tuff arrangement, though, learn a lot form the WS:</p>
<ol>
<li>Alway remember the big picture when you got the task. Know what's your target and what your listener's desire, persevered is</li>
<li>Peace and patient. Learn a lot from another colleague. You should not rush or immunize especially in the meeting.</li>
<li>Pay attention to integrating daily job. Collection of small things can be great.</li>
</ol>
<p><img src="../media/agJlaXIMCxIFTWVkaWEYmE4M" alt="201001291855.jpg" width="480" height="360" /><br /> Peaceful Winter in Sweden<br /> There are still alot of work to do with this task, and I already think I am becoming better and better.</p>
<p>PS: In Arland airport, I've seen a group of ugly corrupt chinese gov guy when they get their <strong>cash refund back with their <span style="font-weight: normal;">official passport(因公护照)<strong>. U</strong>nbelievable situation, they almost run out the all EUR in the refund center, get their fund again and again, one stack after one stack of 500EURO cash. The first time I saw that situation and they don't even hesitated to proclaim that situation in front of us.&nbsp;&nbsp;Shame on them!!!</span></strong></p>
<div class="posttagsblock"><a rel="tag" href="http://technorati.com/tag/career">career</a>, <a rel="tag" href="http://technorati.com/tag/zen">zen</a></div>

<h4>相关阅读</h4>
<ul>
    
    <li><a href="http://ei.appspot.com/2009/03/12/98.html">The first change of this year is comming soon</a></li>
    
    <li><a href="http://ei.appspot.com/2008/10/15/93.html">Probation Period Ended</a></li>
    
    <li><a href="http://ei.appspot.com/2007/12/31/86.html">写在2007年的尾巴尖上</a></li>
    
</ul>
<p>本文网址:<a href="http://ei.appspot.com/?p=9005">http://ei.appspot.com/?p=9005</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ei.appspot.com/feed/comments</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item><item>
		<title>iPad, furture for mobility</title>
		<link>http://ei.appspot.com/?p=10004</link>
		<comments>http://ei.appspot.com/?p=10004#comments</comments>
		<pubDate>Fri, 29 Jan 2010 10:17:17 +0000</pubDate>
		<dc:creator>None</dc:creator>
				<category><![CDATA[Mac ]]></category>


		<guid isPermaLink="false">http://ei.appspot.com/?p=10004</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>As Jobs said, apple is already the No.1 Mobile Device Company.</p>
<p><img style="float:left;" src="../media/agJlaXIMCxIFTWVkaWEYkk4M" alt="201001291756.jpg" width="200" height="218" /> Now, this No.1 provide their solutions for filling the gap between SmartPhone and Laptop. Though, we can not satisfy that this is the one shall shock our chin off, it might be cause by our over expectation or too much imagination from Sci-Fi novel and movie.......</p>
<p>There are lot of discuss about Pros and Cons of this device based on Jobs introduction for now, maybe Cons are much over Pros as Cons of apple device seems more attractive for readers:</p>
<ol>
  <li>Flash: actually, we do not rely on that for modern web interface as we did before. And for performance point-of-view, get rid of that bound is pretty good choice for such mobile device. Flash is too "heavy" for mobile device. Another thing is that for apple, they always want everything keep in hand...... Feel bad for Adobe, they have to face tuff situation for post-Flash era.</li>

  <li>Mulitask: not big deal for future. Do you really believe that iPod firmware only stay in 3.2 after 2 months? Apple seems just don't wanna to rush for that: Just like all HW resource seems disappear when they announce new "3Gs iPhone", only just few patch for old "iPhone" update. But as you can image they just put the resource for another thing, then iPod born. How about iPhoneOS? Do you really believe that all SW resource are just working for a "3.2 demo" during 2009.9 until now?? When OS4.0 coming, you will find multitask is not an issue anymore just like Copy-Paste for Old iPhoneOS .... Actually, IMO, i don't think that will be a problem just as other SW issue.</li>

  <li>No camera. Pity, but not a big deal</li>

  <li>No Phone call. we already got VOIP, right?</li>

  <li>More like iPhone other than Mac. Their final trade-off solution. What's the most critical issue for mobile device? Almost battery. So, I thought we understand why they choose iPhone-like architecture.</li>
</ol>
<p>My analysis is too optimism? We will see half year later</p>
<p>iPhone SW dev platform is more attractive for me , I found another reason I could dive into Object-C/Cocoa/iPhond SDK for now... Good Luck!</p>

<div class="posttagsblock"><a href="http://technorati.com/tag/apple" rel="tag">apple</a>, <a href="http://technorati.com/tag/iPad" rel="tag">iPad</a></div>

<p>本文网址:<a href="http://ei.appspot.com/?p=10004">http://ei.appspot.com/?p=10004</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ei.appspot.com/feed/comments</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
