Sunday, January 1, 2012

盘点下2012-1

流水帐记录大事件


  • 完成论文

  • 拿到驾照

  • 毕业了

  • 北漂,开始在度娘的工作

  • 转正


学业:

写论文的过程非常好的描绘了一幅power law分布图,最后差点没难产。答辩的过程中老板提前走了,没有最终合影成功,算是一个遗憾吧。没有要学校坑爹的毕业照,一来是研究生的生活对于本科来说简直天上人间(别想歪),二来照片做得是在太差,把照片的电子档搞到手之后扔在了box.net,这样大家都好了。



工作:

苦逼的研究生升级为苦逼码农,老人说对比实习时候的我,哥带来的欢乐已经弱于当年(都是苦逼闹的有没有)。吐槽能力和概率下降,流氓能力下降、愤青指数上升。

被扔在海里,结果没有被淹死,然后就修炼升级了,于是在技术上也被升级了。

生活:

校园:

各种happy啊

工作:

说一点北京和南京的区别吧,从生活的总体享受上来说,已经差了一大截了(富二代、官二代、榜上大腿的请无视,四环内同学请绕行)。

空气质量差,当然南京也不好,但是不像北京都TMD的要爆表了有木有,pm2.5吓死人啊,小时候得亏喝过××奶粉、吃过地沟油,要不顶不住。

干燥,这个因人而异,好处是省得晒被子,坏处是夜里都得爬起来喝水,太坑爹了。

以上两点直接导致我颇费3600买了个净化器and加湿器,京东账户直逼金牌- -,不过确实效果不错(已经过滤社会认同影响力带来的判断)

超市贵,特指家乐福,到金润发面前就是个渣。

消费过程中,遇到的服务水平较南京差,当然好处是简单直接

在北京生活的过程中要特别感谢老婆在生活上的造诣,让我得以天天可以得瑟,mua mua mua

其他:

参加过几场婚礼,蒋狗的、哥的、凯子的,还有落下的,老大和马驴的,在这里一并祝福他们

修炼:

肉体:夏季踢球,没有比赛了玩乒乓,天冷了玩羽毛球,来年要健身,ps,期间去滑雪,很赞,发现我还蛮有天赋:)

灵魂:思考时间增多,读了几本闲书、很是震撼,推荐下《叔本华美学随笔》和《影响力》,决定以后多读点好书,入了kindle touch,多读书

Thursday, December 22, 2011

csdn的邮箱

csdn的邮箱丑事今天闹得沸沸扬扬了,更是有网友专门统计了密码的分布情况,我也无聊理工一把,统计下注册邮箱吧 - -

数据:www.csdn.net.sql 6428632行,包含用户名、密码、注册邮箱

top 100的注册邮箱后缀如下:

点评一下:

  1. qq和网易邮箱遥遥领先,这个正符合国内邮箱的现状

  2. gmail.com不是很给力我觉得是晚出生,大家已经用其他的邮箱注册过了,希望这个能够成长

  3. sina和sohu的不给力显然是,在后来体验不行,刚开始还有人用,后来日渐少了

  4. yahoo.com.cn、yahoo.cn数字大概是进军中国的那段时期建立的基础吧,现在也不行了

  5. hotmail.com显然是抱了msn的大腿

  6. 值得注意的是.seu.cn结尾的那些上榜的学校,有上交、西交、浙大等、也是无聊理工居多哈哈,符合程序员分布

  7. 还有huawei.com,看得出huawei的人经常逛csdn啊,内部的wiki不知道建设的如何?


qq.com    1909280
163.com    1740884
126.com    796352
sina.com    348518
yahoo.com.cn    203274
hotmail.com    200273
gmail.com    185130
sohu.com    103293
yahoo.cn    86101
tom.com    71085
yeah.net    52795
21cn.com    49928
QQ.COM    38002
vip.qq.com    34868
139.com    28218
163.COM    25965
QQ.com    25653
263.net    24576
sina.com.cn    18967
live.cn    18656
sina.cn    18523
yahoo.com    18252
foxmail.com    16209
163.net    15043
msn.com    14023
eyou.com    13239
126.COM    11520
yahoo.com.tw    10718
huiseo.cn    8492
csoftmail.cn    7120
citiz.net    6548
vip.sina.com    5333
189.cn    4817
etang.com    4211
chinaren.com    3913
yahoo.com.hk    3857
neusoft.com    2925
wormsoft.cn    2779
SINA.COM    2617
bdqnok-cp.com.cn    2550
sogou.com    2544
live.com    2491
qq.COM    2407
mail.china.com    2154
china.com    2141
mail.ustc.edu.cn    2034
huawei.com    1910
sjtu.edu.cn    1872
vip.163.com    1833
371.net    1788
10pig.com.cn    1781
YAHOO.COM.CN    1718
zte.com.cn    1662
cp-bdqnok.com.cn    1631
company-mail.cn    1554
msn.cn    1491
netease.com    1475
HOTMAIL.COM    1472
uggsrock.com    1362
bjtu.edu.cn    1321
hotmail.com.tw    1311
owlpic.com    1276
siteposter.net    1274
SOHU.COM    1245
2008.sina.com    1170
elong.com    1153
TOM.COM    1054
yahoo.co.jp    1047
x263.net    1038
chongseo.com    1032
bofthew.com    1021
Hotmail.com    996
tyldd.com    991
139.COM    983
fudan.edu.cn    980
marketnet.com.cn    962
newline.net.cn    954
stu.xjtu.edu.cn    928
online.sh.cn    920
msa.hinet.net    919
zju.edu.cn    871
king.com    869
Gmail.com    853
cmmail.com    835
56.com    826
cpok-bdqn.com.cn    817
123.com    801
china.com.cn    795
zj.com    793
fm365.com    758
71mail.com.cn    750
avl.com.cn    739
bdqncpok.com.cn    719
mails.tsinghua.edu.cn    717
21CN.COM    693
GMAIL.COM    690
bit.edu.cn    690
Qq.com    655
mail.nankai.edu.cn    637
lzu.cn    615

Friday, December 9, 2011

使用javascript代码来猜测你访问过的站点

声明:山寨的,来自visipisi

The javascript code on this page attempts to guess if you have recently visited a website by loading an image from the target website. If the loading completes fast (less than 10ms), it is highly likely that it was loaded from browser's local cache as the network latency and speed of most Internet connections cannot deliver sub 10ms speed. If it takes longer, it's not in the cache. To avoid polluting the cache, the loading is interrupted at the 10ms mark. This is important because any subsequent tests will yield the same results.

根据你load的这些站点的image的速度来判断是否从本地cache load的,假如很久,就不是从cache来的。

Although the idea is simple, two factors affect the speed and accuracy of the test: the speed at which the browser loads content from its cache, and the realtimeness of the OS and the browser event system to allow interrupting the request at a precise time.

只是把load的时间由10ms改为了50ms(考虑中国国情)

查看这里:http://www.econsh.com/test_what_u_visit.html

Wednesday, November 30, 2011

programming languages and their statements

最近看了《黑客与画家》,其中有一点感受就是语言的能力是有差异的,姑且不去研究究竟谁是老大,了解各种语言的优劣总是没有害处的,正巧在hack news上看到了这篇文章programming languages and their statements,关于各个语言以及对这些语言的陈述,同时还可以对各种语言进行对比。按照字母序罗列了50种语言,如下:

programming languages



  1. Ada

  2. Agda

  3. APL

  4. Assembler

  5. AWK

  6. C

  7. C#

  8. C++

  9. Clojure

  10. Cobol

  11. Common Lisp

  12. Coq

  13. D

  14. Delphi

  15. Eiffel

  16. ELisp

  17. Erlang

  18. F#

  19. Factor

  20. Forth

  21. Fortran

  22. Go

  23. Groovy

  24. Haskell

  25. Haxe

  26. Io

  27. J

  28. Java

  29. Javascript

  30. Lua

  31. Mathematica

  32. Matlab

  33. Mozart-Oz

  34. Objective C

  35. O'Caml

  36. Pascal

  37. Perl

  38. PHP

  39. Prolog

  40. Python

  41. R

  42. REBOL

  43. Ruby

  44. Scala

  45. Scheme

  46. Shell

  47. Smalltalk

  48. Standard ML

  49. TCL

  50. Visual Basic 


每种语言对应的页面大概如下:

  1. 说明在这系列活动中有多少人响应了该语言

  2. 罗列该语言在哪些statement的rank较高或者较低,各10条,从这些statements中我们很容易了解该语言适合做什么以及不适合做什么

  3. 然后列出和这种语言最像以及最不像的5种语言,方面比较

  4. 提供和某种语言比较的功能,选择某种语言既可以比较

  5. 关于这个语言的所有陈述(排名越高说明赞成的人越多),从这个可以进一步了解该语言,当然更好的了解语言的方法应该是去使用它,但是可能不是每个人都能够这么做


举个python的例子,如下

Python




Based on 87822 responses from 7295 people, we've built up the following picture of Python











All statements



  1. I would use this language for casual scripting

  2. This language would be good for teaching children to write software

  3. This language is good for beginners

  4. Code written in this language is very readable

  5. I find this language easy to prototype in

  6. I would use this language as a scripting language embedded inside a larger application

  7. It is easy to tell at a glance what code in this language does

  8. This language excels at text processing

  9. I would use this language to write a command-line app

  10. This language is well suited for an agile development approach using short iterations.

  11. I would use this language for a web project

  12. This language has a good community

  13. This language has a good library distribution mechanism.

  14. This language encourages writing code that is easy to maintain.

  15. Libraries in this language tend to be well documented.

  16. This language has a wide variety of agreed-upon conventions, which are generally adhered to reasonably well, and which increase my productivity

  17. This language is best for very small projects

  18. I would use this language for a desktop GUI project

  19. The resources for learning this language are of high quality

  20. This is a high level language

  21. This language is expressive

  22. I find code written in this language very elegant

  23. This language is good for scientific computing

  24. Third-party libraries are readily available, well-documented, and of high quality

  25. I often write things in this language with the intent of rewriting them in something else later

  26. This language encourages writing reusable code.

  27. I use this language out of choice

  28. I usually use this language on solo projects

  29. I enjoy using this language

  30. This language has well-organized libraries with consistent, carefully thought-out interfaces

  31. I can imagine this will be a popular language in twenty years time

  32. This language is very flexible

  33. I can imagine using this language in my day job

  34. I rarely have difficulty abstracting patterns I find in my code

  35. This language is well documented

  36. I regularly use this language

  37. There are many good open-source tools for this language

  38. I would use this language for writing server programs

  39. There is a wide variety of open source code written in this language

  40. I would like to write more of this language than I currently do

  41. It is easy to debug programs written in this language when it goes wrong

  42. This language excels at symbolic manipulation

  43. This language has unusual features that I often miss when using other languages

  44. Programs written in this language tend to play well with others

  45. When I run into problems my colleagues can provide me with immediate help with this language

  46. Code written in this language tends to be terse

  47. I still discover new features of this language on a fairly regular basis

  48. This language has a very coherent design

  49. Code written in this language will usually run in all the major implementations if it runs in one of them.

  50. I would list this language on my resume

  51. I would recommend most programmers learn this language, regardless of whether they have a specific need for it

  52. This language is good for numeric computing

  53. I usually use this language on projects with many other members

  54. This language is best for very large projects

  55. This language has a very rigid idea of how things should be done

  56. This language has a very dogmatic community

  57. This language is likely to have a strong influence on future languages

  58. When I write code in this language I can be very sure it is correct

  59. Learning this language significantly changed how I use other languages.

  60. I know many other people who use this language

  61. I know this language well

  62. Code written in this language tends to be very reliable

  63. There are many good tools for this language

  64. Learning this language improved my ability as a programmer

  65. This language is easier to use for it's problem domain by removing unneeded expressiveness (such as not being Turing complete).

  66. This language is good for distributed computing

  67. I would use this language for mobile applications

  68. This language has a high quality implementation

  69. This language is likely to be a passing fad

  70. I use many applications written in this language

  71. If this language didn't exist, I would have trouble finding a satisfactory replacement

  72. This language is large

  73. This language matches it's problem domain particularly well.

  74. It's unusual for me to discover unfamiliar features

  75. This is a mainstream language

  76. This language has many features which feel "tacked on"

  77. I find it easy to write efficient code in this language

  78. This language is built on a small core of orthogonal features

  79. This language is likely to be around for a very long time

  80. The semantics of this language are much different than other languages I know.

  81. This language excels at concurrency

  82. This language is minimal

  83. There are many good commercial tools for this language

  84. I use a lot of code written in this language which I really don't want to have to make changes to

  85. I would use this language for writing embedded programs

  86. This language is frequently used for applications it isn't suitable for

  87. If my code in this language successfully compiles, there is a good chance my code is correct.

  88. I would use this language for writing programs for an embedded hardware platform

  89. This language allows me to write programs where I know exactly what they are doing under the hood

  90. I enjoy playing with this language but would never use it for "real code"

  91. This language has a niche in which it is great

  92. Programs written in this language will usually work in future versions of the language

  93. It is too easy to write code in this language that looks like it does one thing but actually does something else

  94. I am sometimes embarrassed to admit to my peers that I know this language

  95. Code written in this language tends to be verbose

  96. Programs written in this language tend to be efficient

  97. This language is suitable for real-time applications

  98. I am reluctant to admit to knowing this language

  99. I learned this language early in my career as a programmer

  100. The thought that I may still be using this language in twenty years time fills me with dread

  101. This language has a strong static type system

  102. This is a low level language

  103. Developers who primarily use this language often burn out after a few years

  104. This language has a niche outside of which I would not use it

  105. I often feel like I am not smart enough to write this language

  106. This language makes it easy to shoot yourself in the foot

  107. This language has an annoying syntax

  108. There is a lot of accidental complexity when writing code in this language

  109. I often get angry when writing code in this language

  110. Writing code in this language is a lot of work

  111. This language is unusually bad for beginners





Saturday, November 26, 2011

Could Not Find HelloAndroid.apk! win7

开始折腾下android,第一个遇到的问题自然要记下

按照官方的教程一步一步走来,helloword居然不能work,错误如下
Could Not Find HelloAndroid.apk!

这里这里都搜到了相关问题的描述,不过在我这里不work,因为我没有相应的路径,不过欣慰的是他的部分方法我拿过来用就ok了
把我的市区设置成美帝的市区时区,然后run helloworld 就ok了,随后既可以将市区时区更改回来:)