Friday, October 14, 2011

G12 HTC Desire S so on机器获取root权限

之前如的g12,港版原封,so on,一直没有获取root权限,虽然系统的应用删除不掉,但是还不至于影响我的使用,但是最近电子市场被GFW fuck这件事情让我对获取root权限更加重视起来。

咱不是玩手机的,所以只能Google之了,找的很辛苦,因为大多数都是so off的机器获取root的办法,还有些人说so on的机器便so off只能找奸商,我靠,奸商不也是自己破解,所以还是自己动手来搞。

声明这些都不是我原创,是从hiapk转载过来的。

首先是由so on变成so off http://bbs.hiapk.com/thread-1931799-1-1.html,step by step即可,最后可以check自己的机器成了so off

然后是so off获取root HTC G12台*湾最新ROM版本1.47.950.3以及ROOT最优方法,后者我只是选择了部分步骤。即小白级、低级人员操作方法中的2、3、4,因为我不想刷机,这几步step by step就ok了

Saturday, October 8, 2011

Steve Jobs’ death

乔布斯逝去,tim cook、larry page、gat、obama都表达了自己的看法

苹果内部



Tim Cook: "No words can adequately express our sadness at Steve's death"


Tim Cook, who took over for Steve Jobs as Apple CEO in August of 2011, has sent a new e-mail to employees in the wake of Steve Jobs' recent death. In the e-mail seen by Ars Technica, Cook addresses Apple's employees to announce that Jobs has passed and offers reflections on Jobs' influence on the company. Below is the full text of the e-mail:
Team,

I have some very sad news to share with all of you. Steve passed away earlier today.

Apple has lost a visionary and creative genius, and the world has lost an amazing human being. Those of us who have been fortunate enough to know and work with Steve have lost a dear friend and an inspiring mentor. Steve leaves behind a company that only he could have built, and his spirit will forever be the foundation of Apple.

We are planning a celebration of Steve’s extraordinary life for Apple employees that will take place soon. If you would like to share your thoughts, memories and condolences in the interim, you can simply email rememberingsteve@apple.com.

No words can adequately express our sadness at Steve’s death or our gratitude for the opportunity to work with him. We will honor his memory by dedicating ourselves to continuing the work he loved so much.

Tim

The e-mail address given in Cook's message is the same as the one Apple has publicly posted on its website. If you have further stories and memories to share, we'd love to hear them in the comments.

Google的两位




I am very, very sad to hear the news about Steve. He was a great man with incredible achievements and amazing brilliance. He always seemed to be able to say in very few words what you actually should have been thinking before you thought it. His focus on the user experience above all else has always been an inspiration to me. He was very kind to reach out to me as I became CEO of Google and spend time offering his advice and knowledge even though he was not at all well. My thoughts and Google's are with his family and the whole Apple family.



Sergey Brin  -  2011-10-6  -  公开


From the earliest days of Google, whenever Larry and I sought inspiration for vision and leadership, we needed to look no farther than Cupertino. Steve, your passion for excellence is felt by anyone who has ever touched an Apple product (including the macbook I am writing this on right now). And I have witnessed it in person the few times we have met.

On behalf of all of us at Google and more broadly in technology, you will be missed very much. My condolences to family, friends, and colleagues at Apple.


Gates




I’m truly saddened to learn of Steve Jobs’ death. Melinda and I extend our sincere condolences to his family and friends, and to everyone Steve has touched through his work.

Steve and I first met nearly 30 years ago, and have been colleagues, competitors and friends over the course of more than half our lives.

The world rarely sees someone who has had the profound impact Steve has had, the effects of which will be felt for many generations to come. 

For those of us lucky enough to get to work with him, it’s been an insanely great honor.  I will miss Steve immensely. 

The White House Blog


President Obama on the Passing of Steve Jobs: "He changed the way each of us sees the world."


Posted by Kori Schulman on October 05, 2011 at 09:15 PM EDT

Following the loss of visionary Apple co-founder Steve Jobs, President Obama released this statement:
Michelle and I are saddened to learn of the passing of Steve Jobs. Steve was among the greatest of American innovators - brave enough to think differently, bold enough to believe he could change the world, and talented enough to do it.

By building one of the planet’s most successful companies from his garage, he exemplified the spirit of American ingenuity.  By making computers personal and putting the internet in our pockets, he made the information revolution not only accessible, but intuitive and fun.  And by turning his talents to storytelling, he has brought joy to millions of children and grownups alike. Steve was fond of saying that he lived every day like it was his last.  Because he did, he transformed our lives, redefined entire industries, and achieved one of the rarest feats in human history: he changed the way each of us sees the world.

The world has lost a visionary. And there may be no greater tribute to Steve’s success than the fact that much of the world learned of his passing on a device he invented. Michelle and I send our thoughts and prayers to Steve’s wife Laurene, his family, and all those who loved him.


附:


jobs的在斯坦福的演讲jobs在斯坦福的演讲

Monday, September 26, 2011

What is a good explanation of Latent Dirichlet Allocation

晚上在Quora溜达,看到了个问题,关于LDA的,关于寻找LDA的一个良好的解释

众人合力得到了一个很赞的解释,这里我把最直观的解释翻译(部分翻译,有的部分还是英语表达更好)过来吧,同时来在学习的过程中对概率的一些知识进行了回顾(概率学了居然都忘了,只有模糊的印象)

场景


假设有下面的句子集合



  • I ate a banana and spinach smoothie for breakfast

  • I like to eat broccoli and bananas.

  • Chinchillas and kittens are cute.

  • My sister adopted a kitten yesterday.

  • Look at this cute hamster munching on a piece of broccoli.


LDA是一种自动发现这些句子中包含的主题(topics)的方法。比如,给定这些句子和两个主题,LDA可能会产生下面的这些:




  • Sentences 1 and 2: 100% Topic A

  • Sentences 3 and 4: 100% Topic B

  • Sentence 5: 60% Topic A, 40% Topic B

  • Topic A: 30% broccoli, 15% bananas, 10% breakfast, 10% munching, ... (at which point, you could interpret topic A to be about food)

  • Topic B: 20% chinchillas, 20% kittens, 20% cute, 15% hamster, ... (at which point, you could interpret topic B to be about cute animals)


问题是,LDA如何做发现这些的?


LDA Model


仔细来说,LDA使用混合的主题来代表文档(documents),这些主题将文档中的词(words)按照概率划分到不同的主题。LDA做了如下的假设,当你写文档的是,你会做如下的事情



  • Decide on the number of words N the document will have (say, according to a Poisson distribution).



  • Choose a topic mixture for the document (according to a Dirichlet distribution over a fixed set of K topics). For example, assuming that we have the two food and cute animal topics above, you might choose the document to consist of 1/3 food and 2/3 cute animals.

  • Generate each word in the document by:

  • ....First picking a topic (according to the multinomial distribution that you sampled above; for example, you might pick the food topic with 1/3 probability and the cute animals topic with 2/3 probability).

  • ....Then using the topic to generate the word itself (according to the topic's multinomial distribution). For instance, the food topic might output the word "broccoli" with 30% probability, "bananas" with 15% probability, and so on.


考虑到这种生成(generate)文档的模型,LDA试图从文档追溯一些topics,很可能是这些topics生成了这些文档。


样例


举个例子,根据上述model,当产生某个特定文档D的时候,你会这么做:



  • Decide that D will be 1/2 about food and 1/2 about cute animals.

  • Pick 5 to be the number of words in D.

  • Pick the first word to come from the food topic, which then gives you the word "broccoli".

  • Pick the second word to come from the cute animals topic, which gives you "panda".

  • Pick the third word to come from the cute animals topic, giving you "adorable".

  • Pick the fourth word to come from the food topic, giving you "cherries".

  • Pick the fifth word to come from the food topic, giving you "eating".


上述流程其实就是模拟人写文档的一个过程,这个由LDA model生成的文档为"broccoli panda adorable cherries eating"(LDA是一系列words的模型)


学习(ML)


首先假定有一个文档集合,已经选择了K个topics用于发现,希望使用LDA来学习出每个文档的主题表示(topic representation),以及每个主题相关的词(words)。怎么做呢?一种方法如下(collapsed Gibbs sampling):



  • Go through each document, and randomly assign each word in the document to one of the K topics.(对每个文档,将每个word随机赋予某个topic)

  • Notice that this random assignment already gives you both topic representations of all the documents and word distributions of all the topics (albeit not very good ones).(这种随机赋值也是一种学习的结果,不过我们需要去改进,方法就是迭代)

  • So to improve on them, for each document d...

  • ....Go through each word w in d...

  • ........And for each topic t, compute two things: 1) p(topic t | document d) = the proportion of words in document d that are currently assigned to topic t, and 2) p(word w | topic t) = the proportion of assignments to topic t over all documents that come from this word w. Reassign w a new topic, where you choose topic t with probability p(topic t | document d) * p(word w | topic t) (according to our generative model, this is essentially the probability that topic t generated word w, so it makes sense that we resample the current word's topic with this probability). (Also, I'm glossing over a couple of things here, such as the use of priors/pseudocounts in these probabilities.)(计算文档属于某topic的概率p(t|d)以及word属于topic的概率p(w|t),然后根据这个来计算当把某word w赋予一个新的topic的时候的概率,即p(t|d)*p(w|t))

  • ........In other words, in this step, we're assuming that all topic assignments except for the current word in question are correct, and then updating the assignment of the current word using our model of how documents are generated.(每次计算某word属于某topic概率的时候,假定其他word的topic是确定的,)

  • After repeating the previous step a large number of times, you'll eventually reach a roughly steady state where your assignments are pretty good. So use these assignments to estimate the topic mixtures of each document (by counting the proportion of words assigned to each topic within that document) and the words associated to each topic (by counting the proportion of words assigned to each topic overall).(迭代直到收敛,使用最后的值来表示每个文档的主题表示,以及每个topic 的words表示)



这个学习过程有点多,因此稍稍解释了一下,这个过程和PageRank很像吧,都是开始随机赋值,然后更新值,迭代直到收敛。

相关概率知识


看的过程中发现自己的概率都忘光了,于是看得时候把相应的概念在wiki上翻了出来,虽没都看透,但起码有个感性的理解了


狄利克雷分布是一个连续多随机变量分布,理解这个需要了解下面的知识


先验概率:简称先验,一个不确定量p的先验,是一个人在没有考虑数据的时候对于p的不确定性的判断,是这样一个概率分布。一个简单的例子是,假如p是选民会选A的比例,p的先验概率不能考虑民意调查,即选民不参考其他会影响他的vote的data。

对应的,后验概率如下:


后验概率是把相关的data考虑进去的条件概率,后验概率分布是从一次实验中得到的不确定量p的分布,再进一步,共轭先验。


假如概率先验分布p(θ)和后验分布p(θ|x)的分布是同一种分布,那么这就叫共轭分布,而该先验称为共轭先验。如p(θ)是服从高斯分布的,而p(θ|x)也是服从高斯分布的,那么这两个分布成为共轭分布。

这上述几个概念都是属于贝叶斯统计的


贝叶斯统计是统计的一个分支,在贝叶斯统计中,关于现实世界的真实状态的证据都是用贝叶斯概率http://en.wikipedia.org/wiki/Bayesian_probability来表达的,贝叶斯概率是关于概率的一种不同的解释,属于置信概率的范畴。概率的贝叶斯解释可以看作是逻辑的延伸,使得可以对不确定量进行推理。

参考文献:











Tuesday, August 23, 2011

如何通过不编程成为一个好的程序员

daily hack news看到推荐的一篇文章,原文是比较老的,2007年,How To Become a Better Programmer by Not Programming

摘录里面的几句话:

  • 对于Does accumulating experience through the years necessarily make programming easier?盖茨的回答如下:


    • I think after the first three or four years, it's pretty cast in concrete whether you're a good programmer or not.

    • 3-4年既可以看出来你是否是个好的程序员,编程经验的积累并不能让编程更加容易




  • The older I get, the more I believe that the only way to become a better programmer is by not programming. You have to come up for air, put down the compiler for a moment, and take stock of what you're really doing. Code is important, but it's a small part of the overall process.


    • 你需要离开电脑一会,仔细思量你做的东西,代码很重要,但只是整个过程的一小部分


  • To truly become a better programmer, you have to to cultivate passion for everything else that goes on around the programming.


    • 将热情倾注到编程相关的所有事情上去


  • You won't-- you cannot-- become a better programmer through sheer force of programming alone. You can only complement and enhance your existing programming skills by branching out. Learn about your users. Learn about the industry. Learn about your business.The more things you are interested in, the better your work will be.


    • 加入纯粹靠编程,你不可能成为一个更好的程序员

    • 了解你的用户,了解业界,了解你的生意,你感兴趣的事情越多,你的工作将会越美好


Monday, August 22, 2011

才储分析:您的性格类型倾向为“ ENFP ”

才储分析:您的性格类型倾向为“ ENFP ”(外向 直觉 情感 知觉 倾向度: E70 N52 F83 P52 不假思索指数:19)

热情洋溢、富有想象力。认为生活是充满很多可能性。能很快地将事情和信息联系起来,然后很自信地根据自己的判断解决问题。很需要别人的肯定,又乐于欣赏和支持别人。灵活、自然不做作,有很强的即兴发挥的能力 ,言语流畅。

ENFP型的人充满热情和新思想。他们乐观、自然、富有创造性和自信,具有独创性的思想和对可能性的强烈感受。对于 ENFP型的人来说,生活是激动人生的戏剧。 ENFP型的人对可能性很感兴趣,所以他们了解所有事物中 的深远意义。他们具有洞察力,是热情的观察者,注意常规以外的任何事物。ENFP型的人好奇,喜欢理解而不是判断。 ENFP型的人具有想象力、适应性和可变性,他们视灵感高于一切,常常是足智多谋的发明人。ENFP型的 人不墨守成规,善于发现做事情的新方法,为思想或行为开辟新道路,并保持它们的开放。在完成新颖想法的过程中,ENFP型的人依赖冲动的能量。他们有大量的主动性,认为问题令人兴奋。他们也从周围其他人中得到能 量,把自己的才能与别人的力量成功地结合在一起。 ENFP型的人具有魅力、充满生机。他们待人热情、彬彬有礼、富有同情心,愿意帮助别人解决问题。他们具有出色的洞察力和观察力,常常关心他人的发展。 ENFP型的 人避免冲突,喜欢和睦。他们把更多的精力倾注于维持个人关系而不是客观事物,喜欢保持一种广泛的关系。

您适合的领域有:未有明显的限定领域

您适合的职业有:(倾向度解释、类型盲点及发展建议见MBTI第二步分析)

· 人力资源经理
· 变革管理顾问
· 营销经理
· 企业/团队培训师
· 广告客户经理
· 战略规划人员
· 宣传人员
· 事业发展顾问
· 环保律师
· 研究助理
· 播音员
· 开发总裁
· 广告创意
· 广告撰稿人
· 市场营销和宣传策划
· 市场调研人员
· 公关专家
· 公司对外发言人
· 儿童教育老师
· 大学老师(人文类)
· 心理学工作者
· 心理辅导和咨询人员
· 职业规划顾问
· 社会工作者
· 演讲家
· 记者(访谈类)
· 节目策划和主持人
· 专栏作家
· 剧作家
· 设计师
· 卡通制作者
· 电影、电视制片人

问问自己:我怎样才能更好地服务于人类?回答这个问题并付诸实践。发现你独一无二的天赋,用它来为人类服务,你可以创造出自己所需要的所有财富。当你富有创造里的语言与你的同胞们发生共鸣时,财富就会自动涌现,由潜在的变为实际的,由精神领域的变为物质领域的。

———— 迪帕克

我现在的职业是IT民工,所以只能来计算个相似度了,

· 企业/团队培训师
· 广告客户经理
· 战略规划人员

这些貌似是近的,不过PM之类的我觉得可以有