上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 45 下一页
摘要: python2.x默认不支持中文输出,需要在py的开头添加#coding: utf-8在pycharm里面,选项,editor,file and code templates,选择python script,改成下面的即可。#coding: utf-8def run(): print("hel... 阅读全文
posted @ 2013-12-18 11:53 自由出土文物 阅读(5572) 评论(0) 推荐(0) 编辑
摘要: 安装 vim ~/.profile 检查环境 一键安装 如果提示WARNING: The Python bz2 extension was not compiled. Missing the bzip2 lib?,则 设置为全局 mac下,vim ~/.pip/pip.conf 阅读全文
posted @ 2013-12-13 21:44 自由出土文物 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 关闭双显卡,使用集成显卡,32位可以用独显跑起来,但是64位的wheezy只能兼容集成显卡,不知道为啥,否则会在某些usb插入/或者拔出来以后,重启提示failed to execute /lib/udev/mtp-probe机器假死。 阅读全文
posted @ 2013-12-11 22:14 自由出土文物 阅读(328) 评论(0) 推荐(0) 编辑
摘要: vim /etc/iptables.rule文件内容如下*filter# Allows all loopback (lo0) traffic and drop all traffic to 127/8 that doesn't use lo0-A INPUT -i lo -j ACCEPT-A INPUT ! -i lo -d 127.0.0.0/8 -j REJECT# Accepts all established inbound connections-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT# Allows a 阅读全文
posted @ 2013-12-08 20:24 自由出土文物 阅读(5347) 评论(0) 推荐(0) 编辑
摘要: sudo apt-get install planner 阅读全文
posted @ 2013-12-08 16:02 自由出土文物 阅读(203) 评论(0) 推荐(0) 编辑
摘要: vim /etc/ssh/sshd_config,修改port为你想要的端口invoke-rc.d ssh restart客户端连接:ssh 142.4.125.90 -l root -p8751 阅读全文
posted @ 2013-12-08 13:55 自由出土文物 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 冷静下来看了下,貌似聽简单,蛋疼,忙完才发现,弄的时候咋没发现,靠push,present等可以全部用下面这个api搞定- (void)performSegueWithIdentifier:(NSString *)identifier sender:(id)senderidentifier是那个两个viewController之间的连接线,直接用鼠标右键拖动vc1到vc2,就会问,亲,你是push,还是model,还是custom?custom还不知道,push和model都用这个搞定了很好很强大 阅读全文
posted @ 2013-12-03 20:45 自由出土文物 阅读(184) 评论(0) 推荐(0) 编辑
摘要: asi没法用了,蛋疼了,在af和mk之间纠结,感觉af不适合我的口味,解析和网络耦合相对似乎重了点mk似乎默认的不支持下载的断点续传,这里参考网上的代码处理了下,0修改mk的库,下面是实现的代码//// RootViewController.m// webTest//// Created by mmc on 13-11-24.// Copyright (c) 2013年 mmc. All rights reserved.//#import "RootViewController.h"#import "MKNetworkEngine.h"@implemen 阅读全文
posted @ 2013-11-24 19:40 自由出土文物 阅读(3665) 评论(0) 推荐(0) 编辑
摘要: 测试url如下 测试代码 或者,cmd里面 route.php里面 阅读全文
posted @ 2013-11-21 21:40 自由出土文物 阅读(5538) 评论(0) 推荐(0) 编辑
摘要: readelflddnmobjdump 阅读全文
posted @ 2013-11-20 08:38 自由出土文物 阅读(245) 评论(0) 推荐(0) 编辑
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 45 下一页