Python良民证算法rev 2
以前发过一个良民证算法
现在发现了一个碉堡的新办法:
get_id = lambda s: s + '1X864209753'[int(s, 13) % 11]
来自newsmth的python版:
发信人: Andor (珍惜), 信区: Python
标 题: Re: Python的良民证算法,有 …
Posted
archive
This blog is rated R⃣ , viewer discretion is advised
以前发过一个良民证算法
现在发现了一个碉堡的新办法:
get_id = lambda s: s + '1X864209753'[int(s, 13) % 11]
来自newsmth的python版:
发信人: Andor (珍惜), 信区: Python
标 题: Re: Python的良民证算法,有 …
Posted
archive
钻石其实是宇宙中——最常见的晶体之一。。。本来应该非常便宜,但是价格是人为捧高的。
毛子在70年代发现了一个陨石坑。。。。。。。。。。大概有几万亿克拉的钻石。。。
世 …
Posted
archive
iPhone 5 1601分
http://browser.primatelabs.com/geekbench2/1030202
HTC One X 1697分
http://browser.primatelabs.com/geekbench2/989732
Galaxy S III 1781分
http://browser.primatelabs.com/geekbench2/1026099
值得注意的是,iPhone 5的内存和stream IO性能屌爆了。Android被爆出翔了。
Posted
archive
统计了一下属于CBS Interactive旗下的网站
bnet.com.cn BNET 商业英才网
cnetnews.com.cn CNET 科技资讯网
cheshi.com 网上车市
ea3w.com 万维家电网
fengniao.com 蜂鸟网 …
Posted
archive
开门!顺丰快递来查水表来了!
新闻报道:
http://www.wtsp.com/politics/article/272378/36/Secret-Service-investigates-teens-tweet-about-Obama
Posted
archive
见过堵车的没见过这么堵车的
然后11路也可以堵车
Posted
archive
成都 https://twitter.com/CGChengduAir
魔都 https://twitter.com/CGShanghaiAir
妖都 https://twitter.com/Guangzhou_Air
帝都 https://twitter.com/BeijingAir
Posted
archive
最近一些项目感受:
关于主管:
盲目造成的附加 …
Posted
archive
Posted
archive
今天研究了一下这个玩意。先说结论:
com …
Posted
archive
对github wiki的一些感受
wiki和source code是分开的repo。其实像google code那样内嵌的多好。
由于分开的repo导致git submodule操作起来不方便。
markdown语法太弱。不支持anchor?
wiki无法自动生成段落交互导航,长一点的文档就不适合了。
wiki pages显示不支持用户格式,比如txt之类的。
恩。总之没有完美的东西。但 …
Posted
archive
Barack Obama
University of California $491,868
Microsoft Corp $443,748
Google Inc $357,382
DLA Piper $331,715
Harvard University $317,516
Mitt Romney
Goldman Sachs $676,080
JPMorgan Chase & Co $520,299
Morgan Stanley $513,647
Bank of America $510,728
Credit Suisse Group $427,560
Ron Paul …
Posted
archive
http://staff.tumblr.com/post/380346543/theme-recovery
这么脑残的feature也有,还是标记一下吧。
Posted
archive
今天学习到了一个碉堡的斐波那契求和函数:
1
2
3
5
8
13
21
34
55
89...
1235955...
1/89 == 0.011235955056179775
母函数 这种技巧都忘记好久啦。。
还有类 …
Posted
archive
别人辛辛苦苦做的Flash游戏放在kongregate上,合肥暴风动漫 就直接抄袭过来了。说不定只是反编译swf汉化了一下。。。
更新1:国内报道
Posted
archive
For example, I want to download version 22.0.1229.2
Old URL, no longer works
http://dl.google.com/chrome/install/1229.2/chrome_installer.exe
New URL:
http://cache.pack.google.com/edgedl/chrome/win/22.0.1229.2_chrome_installer.exe
Fuck Google's bootstrappers downloader which is slow like shit …
Posted
archive
这货是弱智发明出来报复社会的么?
带安装器还叫个锤子便携啊?尼玛。
Posted
archive
来自最近很牛的一个帖子
《赫敏为什么不能嫁给哈利——《哈利波特》中的历史、文化与政治》
Posted
archive
从这里知道的
放一个别人拍的
感觉不错啊。哈哈。
Posted
archive
关于email,我最早是263用户,然后sina,sina太渣了,就逃到yahoo,msn,最后定居在126,因为当时网易的CDN还是很快的。
用了这么多年,发现很多邮件找不到了,结果是 …
Posted
archive
http://translate.google.com/translate_a/ex?sl=zh-CN&tl=en&q=%E5%9B%A7
还是很好玩。
Posted
archive
什么是奥运精神?奥运精神不是金牌精神,而是把来自各地的人联系团结在一起的精神。
左边是来自Great Britain的Andrew Turner,右边是来自Joma …
Posted
archive
Posted
archive
这货要被罚单了。
Posted
archive
最近看imgur有了shuffle模式,发现了这个喜闻乐见的东西。
Posted
archive
kevin85825 发表于 2012-7-21 13:12 机锋论坛 » 三星 i9300(Galaxy S III)论坛
逛了逛这个板块,实在是看不下去了,虽然也有个别朋友知道是三大运营商 …
Posted
archive
发信人: timepp (时间调色板), 信区: NewSoftware
标 题: [原创]控制台使用consolas加中文雅黑字体的方法
发信站: 水木社区 (Fri Jul 27 11:32:10 2012), 站内
中间很多坑,能达到截图的效 …
Posted
archive
太爽了啊有木有!
关于3D打印机的一些简介:
Home FDM 3d printers are much more affordable than the professional grade ones that can easily reach over $20,000. The quality isn't -as- good as the professional grade ones, but it's getting there.
They typically use two …
Posted
archive
hetman wrote:
The idea of the patent system in itself is actually quite elegant. Government grants a temporary monopoly in exchange for the public disclosure of an invention. Everyone wins! The person issued the patent can more easily profit from their invention because they can work in the open. Society …
Posted
archive
The Gentleperson's Guide To Forum Spies
http://cryptome.org/2012/07/gent-forum-spies.htm
spies cointelpro disinformation
This recently leaked document describes modern COINTELPRO techniques for manipulating Internet forums. Observant readers may have noticed these techniques being used in familiar online forums. Part of modern media literacy includes understanding these techniques …
Posted
archive
自行移动的垃圾箱,准确装入抛物线落地的垃圾!
感觉碉堡了啊有木有!
从代码看应该是OpenCV。不知道摄像头装哪里的呢?
Posted
archive
成都地铁规划 2005-2020
Posted
archive
原来现在都流行直接背矿泉水了。
Posted
archive
最近的项目需要用代码去读取一些Google Spreadsheet的数据,看了下Google官方的Spreadsheet API,读取数据这些好说,就是xml格式我比较讨厌。于是想用alt=json
这个json输出API,试用发现,对于ClientLogin(浏 …
Posted
archive
科学家很难向英国政府解释清楚希格斯场,所以在1993年,英国科学部长威廉•瓦多格列佛(William Waldegrave)向科学家发起了挑战,让他们用 …
Posted
archive
吐槽不能。这工程师就是99%打酱油的。
Posted
archive
in this senario
Before client sends verify receipt to developer server, the receipt data can be recorded and replayed to developer server,
suppose the receipt data is <receipt-something>
, it's verified, and buy transaction has finished.
add a space to receipt data <receipt-something><space>
submit to developer server again
developer server …
Posted
archive
让你丫的2+2不等于5!!!!
import sys
import ctypes
pyint_p = ctypes.POINTER(ctypes.c_byte*sys.getsizeof(5))
five = ctypes.cast(id(5), pyint_p)
print(2 + 2 == 5) # False
five.contents[five.contents[:].index(5)] = 4
print(2 + 2 == 5) # True (must be sufficiently large values of 2 there...)
Posted
archive
youtube看这里:
youku看这里:
其实这个片子是一群留学生拍的,不是成都zf拍的。
Published on Jun 5, 2012 by Moore Mandy
We are group of Chinese students study media in the UK,we love pandas and our hometown,so we made this …
Posted
archive
['radio_option6393', 'radio_option6398', 'radio_option6403', 'radio_option6408', 'radio_option6413', 'radio_option6418', 'radio_option6423', 'radio_option6428', 'radio_option6433'].map(function(s){document.getElementById(s).checked='checked'});document.getElementById('radioq10').textContent='ok';form1.submit()
因为鼠标点击那个页面太蛋痛了。
评价大于100元的订单可以获得2个积分,蚊子肉也是肉,所 …
Posted
archive
新闻在这里
LG和三星AMOLED核心技术外泄 或流入中国和台湾
韩国三星和LG下一代显示器面板“AM-OLED”和“WHITE-OLED”的核心技术被曝遭外泄。资料或流向中国大陆和台湾地区等韩国 …
Posted
archive
发信人: hcl (盐酸), 信区: DigiHome
标 题: 问一下现在小家电的变压器都是什么原理?
发信站: 水木社区 (Thu Jun 28 02:26:13 2012), 站内
我记得十几 …
Posted
archive
今日忙着装修,想买一个炒锅,家里的建议都是说,现在的不锈、无油烟、不粘锅的炒锅,用了特富龙,可能会中毒。于是下定决心 …
Posted
archive
reminds me of the Monolith
Posted
archive
A Song of Ice and Fire的Westeros众城堡们!
[
[
Posted
archive
今天无聊逛 /r/gaming ,贴几个好玩的
我觉得dragon age最好玩的mod之一就是这个Slap Morrigan。很多quest你做完了大家都赞同,就Morrigan 来一个 disapprove -5 。一个耳光送上。赶 …
Posted
archive
SELECT DISTINCT v.fname, v.lname, i.year, i.location, i.report_file
FROM Incident AS i
LEFT JOIN V(ictim?)... -- presumably v.incident_id = i.id
LEFT JOIN Keyword AS k ON k.incident_id = i.id
WHERE i.year BETWEEN 1947 AND 1966
AND i.type = 'HOMICIDE'
AND v.sex = 'F' …
Posted
archive