摘要: 1.首先在/etc/apt下新建apt.conf文件touch apt.conf2.编辑这个文件vi touch apt.conf3.输入Acquire::http::Proxy “http://yourproxyaddress:proxyport”;代理服务器地址:端口号;注意大小写 阅读全文
posted @ 2014-09-28 11:26 valentine is me 阅读(1471) 评论(0) 推荐(0) 编辑
摘要: 今天使用Win32 Disk Manager创建Ubuntu server 12.04启动盘,写完后U盘变为2.1MB。解决:打开运行-〉diskpart,进入后输入list disk,列出磁盘列表图中我的U盘已还原至1997MB,原本是2.1MB,输入 select disk 盘号,也就是 sel... 阅读全文
posted @ 2014-09-26 14:34 valentine is me 阅读(1337) 评论(0) 推荐(0) 编辑
摘要: 使用final禁止重载属性、方法、禁止继承 阅读全文
posted @ 2014-09-22 10:15 valentine is me 阅读(115) 评论(0) 推荐(0) 编辑
摘要: B extend A,如果attribute或function被指定为private,则无法继承;如果被指定为protected,可以被继承。 阅读全文
posted @ 2014-09-22 10:08 valentine is me 阅读(168) 评论(0) 推荐(0) 编辑
摘要: php支持构造函数,初始化任务PHP支持函数重载,函数名可相同,参数个数或参数类型不同的函数析构函数,销毁类前执行一些操作 阅读全文
posted @ 2014-09-22 09:34 valentine is me 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1.Human-Computer Interation->HCIhow people interact with technology三个维度:1.user:可以是老人、儿童,一个人、一个团队,等等。2.Task:简单的任务,到复杂的数据分析3.Context:即便用户一样,任务一样,环境不同也可能... 阅读全文
posted @ 2014-09-17 12:50 valentine is me 阅读(376) 评论(0) 推荐(0) 编辑
摘要: nl2br:ucfirst/ucwords: 阅读全文
posted @ 2014-09-15 12:01 valentine is me 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 使用range函数可以自动创建有规律的数组range(1,10,2); 起始,结束,步进值range('a','z'); 阅读全文
posted @ 2014-09-15 11:17 valentine is me 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 比如在windos中,使用`command`,来调用系统命令输出结果: 阅读全文
posted @ 2014-09-15 10:22 valentine is me 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 使用@抑制住警告,可做出提示处理$file="C:\\1.txt";@fp=fopen($file,'r');// if the file is not exist, it won't throw an exception//handle the exception manuallyif(!fp)... 阅读全文
posted @ 2014-09-15 10:06 valentine is me 阅读(116) 评论(0) 推荐(0) 编辑