Changes with nginx 1.4.3 08 Oct 2013 *) Bugfix: a segmentation fault might occur in a worker process if the ngx_http_spdy_module was used with the "client_body_in_file_only" directive. *) Bugfix: a segmentation fault might occur on start or during reconfiguration if the "try_files" directive was used with an empty parameter. *) Bugfix: the $request_time variable did not work in nginx/Windows. *) Bugfix: in the ngx_http_auth_basic_module when using "$apr1$" password encryption method. Thanks to Markus Linnala. *) Bugfix: in the ngx_http_autoindex_module. *) Bugfix: in the mail proxy server.
想去香港看哥儿几个演唱会,听消失的光阴
乌鲁木齐出差归来
整理整理,在这里写个介绍,值得去的地方。
Sublime Text 2 for macos 破解
转的,不贴图了。
—–BEGIN LICENSE—–
hiwanz
Unlimited User License
EA7E-26838
5B320641E6E11F5C6E16553C438A6839
72BA70FE439203367920D70E7DEB0E92
436D756177BBE49EFC9FBBB3420DB9D3
6AA8307E845B6AB8AF99D81734EEA961
02402C853F1FFF9854D94799D1317F37
1DAB52730F6CADDE701BF3BE03C34EF2
85E053D2B5E16502F4B009DE413591DE
0840D6E2CBF0A3049E2FAD940A53FF67
—–END LICENSE—–
近期学习PYTHON第二版,这里放一些心得吧
这本书以版本2为模板,我的MAC装了3,一些东西是不一样的,记录在这里(陆续)
(1) raw_input 全被 input 代替了
(2) print 语句打印字符串
2版中可以用 print "hello!" 即可
3版中必须用括号把字符串括起来,比如 print ("hello!")
(3) 字符串和数字连接
2版中用
years = 12
print " he is " + years + " years olds!"
3版需要指定类型
years = 12
print (" he is " + str(years) + " years olds!")
(4) cmp函数没有了
Mac下快速锁屏(转)
Windows 下用习惯了Win+ L快捷键锁屏,那么Mac下如何操作呢,小编提供两种不用安装任何软件无毒无副作用的方法。
首先开启进入睡眠或开始屏幕保护程序后要求输入密码,在系统偏好设置 – 安全性与隐私。
方法一:
1、Finder – 应用程序 – 实用工具 – 钥匙串访问,或者点击 Mac 屏幕右上角的放大镜按钮 Spotlight 搜索“钥匙串”;
2、点击 Mac 顶部菜单栏的“钥匙串访问”,选择“偏好设置”;
3、勾选第一项“在菜单栏中显示钥匙串状态”;
4、Mac 顶部菜单栏会多出一个锁图标,想锁屏的时候点击选择第一项“锁定屏幕”。
方法二:
有洁癖的童鞋不喜欢菜单栏的那个锁,那么试试方法二吧。
1、系统偏好设置 – Mission Control – 触发角;
2、活跃的屏幕角,选择一个角,设置成“将显示器置入睡眠状态”;
3、每次把鼠标移动到那个角上的时候,立即执行了该项动作,类似鼠标手势一样。
两种方法,选择自己喜欢的一种吧。
更新mac自带的python(转)
sudo rm -R /System/Library/Frameworks/Python.framework/Versions/2.7 把第一步里安装好的Python目录移到原本系统所持有的目录位置。 sudo mv /Library/Frameworks/Python.framework/Versions/3.3 /System/Library/Frameworks/Python.framework/Versions 第三步,修改文件所属的Group 设置Group为wheel,原来系统自带的就是这样的。 sudo chown -R root:wheel /System/Library/Frameworks/Python.framework/Versions/3.3 第四步,更新一下Current的Link 在Versions的目录里有一个Current的link,是指向当前的Python版本,原始是指向系统自带的Python2.7.2,我们把它删除后,link就失效了,所以需要重新链一下 sudo rm /System/Library/Frameworks/Python.framework/Versions/Current sudo ln -s /System/Library/Frameworks/Python.framework/Versions/3.3 /System/Library/Frameworks/Python.framework/Versions/Current 第五步,重新链接可执行文件 1) 先把系统原来的执行文件删掉 sudo rm /usr/bin/pydoc sudo rm /usr/bin/python sudo rm /usr/bin/pythonw sudo rm /usr/bin/python-config 2) 建立新的链接 sudo ln -s /System/Library/Frameworks/Python.framework/Versions/3.3/bin/pydoc3.3 /usr/bin/pydoc sudo ln -s /System/Library/Frameworks/Python.framework/Versions/3.3/bin/python3.3 /usr/bin/python sudo ln -s /System/Library/Frameworks/Python.framework/Versions/3.3/bin/pythonw3.3 /usr/bin/pythonw sudo ln -s /System/Library/Frameworks/Python.framework/Versions/3.3/bin/python3.3m-config /usr/bin/python-config 最后,更新一下.bash_profile文件 vi ~/.bash_profile (只要能编辑就行)�6�5插入新的Python路径 # Setting PATH for Python 3.3 # The orginal version is saved in .bash_profile.pysave PATH="/System/Library/Frameworks/Python.framework/Versions/3.3/bin:${PATH}" export PATH 打开命令行,输入python,如下:$ python Python 3.3.2 (v3.3.2:d047928ae3f6, May 13 2013, 13:52:24) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type “help”, “copyright”, “credits” or “license” for more information. >>>
海关规定,5公斤以下食品无税
今天陪朋友去海关取奶粉,海关说5公斤以下食品无税,记住了啊,超六公斤就收税。我们8公斤,按10%收关税,交了120块
IPV6该提到议事日程上来了
很多网站都已经支持了IPV6,想想也是,IPV4 32位地址的确干不过128位的IPV6,这么说可能不太准确,不过,放眼未来,IPV4只能成为IPV6的兼容协议存在,而不会是相反的结果。
今天跟同事约好,6月搭个简单的测试环境,比较现在很多应用都支持了IPV6,试试现有的运行稳定的应用如果换了IPV6会有什么始料不及的情况出现,按常理,应该是能正常过度的 :)
生了一场病,好几年没生病了
一场病,突然就来了,浑身难受,关节疼,发高烧到39度,当时摸着腿都觉得能摊鸡蛋了。其实,生病也是挺好的,第一身体放松了,生病之前腰一直疼,生病以后突然好了;第二,耐得住寂寞,只能在床上躺着,起来头晕的厉害,有一段时间睡了醒醒了睡,听不见电话,短信,也看不了微博微信,就这么浑浑噩噩大半天。
要说生病给了我什么启发?世事无常,学会接受就好,该得病得病,该吃药吃药,该休息休息。