学习资料
自己动手,为你的MACBOOK开启64位
二 21st
-
什么是mac的64位架构?
- 默认情况下,Snow Leopard总是开启32位内核;如果你的CPU是Core 2或者Core i7的话,系统会在运行程序时自动启动Universal Binary中的64位部分(这里的Universal是32位Intel和64位Intel的Universal,不是指PPC和Intel的),因为默认的32位内核可以运行64位程序。
但是,如果你想从内核就变成完全的64位,那么需要你的Mac还具备一个条件,就是你的EFI必须是64位的。EFI是固件用户接口,这里指的是你的固件必须是64位的,鉴于这个不是很好判别,我这里也没有苹果完整的列表能够说明哪一个型号的机器是64位的固件。 More >
- 默认情况下,Snow Leopard总是开启32位内核;如果你的CPU是Core 2或者Core i7的话,系统会在运行程序时自动启动Universal Binary中的64位部分(这里的Universal是32位Intel和64位Intel的Universal,不是指PPC和Intel的),因为默认的32位内核可以运行64位程序。
python 3.1 兼容问题一则:pickle 操作时文件读写模式
二 20th
python 3升级变化颇多,这些天遇到不少,比如 pickle:
import pickle
shoplist = ['apple','food','noodle']
f = open('temp1.txt','wb')
pickle.dump(shoplist,f)
f.close()
f = open('temp1.txt','rb')
print(pickle.load(f))
f.close()
初始调试的时候,按照习惯设置打开模式为‘w’或者‘r’,报错:
Pickler(file, protocol, fix_imports=fix_imports).dump(obj)
TypeError: must be str, not bytes
搜索老外论坛得到原因:
For one thing, don't name your list "list", as that's a reserved word in Python (try list('12345') ), same thing with file... But that modification won't help you.
I'm assuming you've got a new version of Python installed, as the method you're using will only work in earlier versions of python.
•
•
•
•
pickle.dump(obj, file[, protocol, *, fix_imports=True])¶
Write a pickled representation of obj to the open file object file. This is equivalent to Pickler(file, protocol).dump(obj).
The optional protocol argument tells the pickler to use the given protocol; supported protocols are 0, 1, 2, 3. The default protocol is 3; a backward-incompatible protocol designed for Python 3.0.
Specifying a negative protocol version selects the highest protocol version supported. The higher the protocol used, the more recent the version of Python needed to read the pickle produced.
The file argument must have a write() method that accepts a single bytes argument. It can thus be a file object opened for binary writing, a io.BytesIO instance, or any other custom object that meets this interface.
If fix_imports is True and protocol is less than 3, pickle will try to map the new Python 3.x names to the old module names used in Python 2.x, so that the pickle data stream is readable with Python 2.x.
That's from the 3.1 docs; note that you must open your files in binary mode now. So for dumping use 'wb', and loading use 'rb'.
原来python 3以后必须使用模式‘wb’和‘rb’(load时)。
MBA 面试要点
二 20th
转自:http://lkbbs.mba.org.cn/read.php?tid=52273
通常面试官们寻求的信息有12种,了解这些要点并能有准备地谈及每个要点和你本人相关的地方,就能够使你准备得更好,并对面试进程把握得更好。把你的12种观点当作核心信息,为展现你最好的技能和管理潜质而准备。结合你自己的信息,尝试着大声回答每个问题,然后评价你的进步,可能你会发现,简明扼要、轻松流畅的谈论这些问题,你还需要、更多的练习。
1.职业热情
问一下自己:“为什么有兴趣从事管理工作?你觉得你对管理工作充满激情吗?如果是的话,为什么?”最好给出一些具体的例子。这些例子可以是你带领团队向顶量销售业绩挑战,也可以是你在某一产品项目组中从产品研发到最后上市中的任何一件事情。 More >
Python 3.1 主要语法笔记
二 19th
1, ” 和 “” 完全一样
2, ‘’‘ 和“”“表示不带转义字符创
3, r’ 表示自然语法字符串(还不太明白)
4, 几个特殊运算符//, and ,or ,not,**
5,代码块用缩进表示,不用{}
6,函数定义
def functionName( p1,p2…pn=default):
缩进后表示函数体,无结束标志 More >
MAC的选择:Eclipse Galileo for Mac: Cocoa or Carbon?
二 18th
Eclipse Galileo (3.5) is released today. Mac users downloading the new release will notice that, unlike previous releases, they have some interesting choices to make. They need to choose between “Mac OS X (Carbon)” and “Mac OS X (Cocoa)”. There’s also a third choice, which is currently not mainstream, the “Mac OS X (Cocoa) 64 bit”. So, which version is right for you?
网上流传的2010mba联考英语答案
一 13th
考试中心答案已出,本人是武大研究生部一小虾米,上传英语阅读答案:DABCC ACBDB AADCB ACCBD
0
考试中心答案已出,本人是武大研究生部一小虾米,上传英语阅读答案:DABCC ACBDB AADCB ACCBD
MBA入学面试需要策略
一 10th
通常面试官们寻求的信息有12种,了解这些要点并能有准备地谈及每个要点和你本人相关的地方,就能够使你准备得更好,并对面试进程把握得更好。把你的12种观点当作核心信息,为展现你最好的技能和管理潜质而准备。结合你自己的信息,尝试着大声回答每个问题,然后评价你的进步,可能你会发现,简明扼要、轻松流畅的谈论这些问题,你还需要、更多的练习。
1.职业热情
问一下自己:“为什么有兴趣从事管理工作?你觉得你对管理工作充满激情吗?如果是的话,为什么?”最好给出一些具体的例子。这些例子可以是你带领团队向顶量销售业绩挑战,也可以是你在某一产品项目组中从产品研发到最后上市中的任何一件事情。
2.动机和目的 More >
拆迁经济学
一 10th
标题拆迁经济学日期 2009年12月30日 1997年,我到处找房子,终于找到这栋完美的维多利亚式小别墅,它靠近水边,景色优美……我把每一分钟闲暇时间都用来装修它,让它变成了我的梦想之家。我把它刷成了浅橙色,因为这是我最爱的颜色。1998年,一个地产经纪人跑来给我出了个价,说是要代表某匿名买家买下这栋房子。我跟她说,这房子我完全没想过要卖。但她说,要是我不卖的话,房子会被政府征用。她的建议是放弃算了,谁斗得过政府呀。
——美国“钉子户”苏赛特·凯洛在美国国会参议员司法委员会上的证词
◎李鸿谷
各国“钉子户”的起点事件以及原因,大体上都差不多。果然,与地产经纪人未谈妥的当年,美国康涅狄格州新伦敦市政府征用了凯洛的房子,并将之转交给一家私人开发商。凯洛当然不服,她与新伦敦市政府的诉讼案一直打到了最高法院。7年后,2005年,美国最高法院以5比4的微弱多数做出判决,支持新伦敦市政府,宣布本次征用合法。
对凯洛而言,这当然是一起未能获胜的诉讼。不过,这种拆 More >