/** * 检测访问的ip是否为规定的允许的ip * Enter description here ... */function check_ip(){ $ALLOWED_IP=array('192.168.2.*','127.0.0.1','192.168.2.49'); $IP=ge...
分类:
Web程序 时间:
2015-05-03 23:41:38
阅读次数:
223
1.? UBUNTU的默认root密码是多少,修改root密码 一、Ubuntu的 默认root密码是随机的,即每次开机都有一个新的root密码。我们可以在终端输入命令 sudo passwd,然后输入当前用户的密码, enter, 二、终端会提示我...
分类:
系统相关 时间:
2015-05-03 00:54:33
阅读次数:
220
此方法对 Sublime Text 2 和 3 都有效
打开 Sublime Text,选择 Help -> Enter License,将下面的内容复制进去即可!...
分类:
其他好文 时间:
2015-05-01 14:49:52
阅读次数:
100
1. download .repo file
http://mirrors.163.com/.help/CentOS6-Base-163.repo
2. use winscp enter path /etc/yum.repo.d/
3. rename CentOS-Base.repo to any other name like CentOS-Base.repo.orig
send C...
Exercise 2-1. Write a program that prompts the user to enter a distance in inches andthen outputs that distance in yards, feet, and inches. (For those...
分类:
其他好文 时间:
2015-04-29 08:34:44
阅读次数:
137
调用函数直接修改table数据 在PRD上通常没有权限
但是可以激活sap内置的修改模式 SE16N 修改表数据、增加、删除行项目; 1. Execute tcode SE16N. 2. Type &SAP_EDIT into the command field and press enter. 3...
分类:
其他好文 时间:
2015-04-28 18:07:13
阅读次数:
1096
键盘?(command)、?(option)、?(shift)、?(caps lock)、?(control)、?(return)、?(enter)查看串号方法:在手机的待机状态下输入*#06# ,手机显示的一串数字即为其主板串号,再看机子包装盒上的IMEI号以及取出SIM卡卡托查看 ,看是否都一致...
分类:
系统相关 时间:
2015-04-28 11:07:30
阅读次数:
171
例题1 勇者斗恶龙(The Dragon of Loowater, UVa 11292)
你的王国里有一条n个头的恶龙,你希望雇一些骑士把它杀死(即砍掉所有头)。村里有m个骑士可以雇佣,一个能力值为x的骑士可以砍掉恶龙一个直径不超过x的头,且需要支付x个金币。如何雇佣骑士才能砍掉恶龙的所有头,且需要支付的金币最少?注意,一个骑士只能砍一个头(且不能被雇佣两次)。
【输入格式】...
分类:
其他好文 时间:
2015-04-28 09:48:04
阅读次数:
129
Powershell引号和转义字符单引号:任何情况下都只表示引号内自身的字符。输出:$a="World"<enter>‘Hello,$a’结果:Hello,$a双引号:允许进行变量代换和字符转义。输出:$a="World"<enter>"Hello,$a"结果:Hello,World输出单引号,双引号‘I‘’m$a’结果:I’m$a$a=..
分类:
系统相关 时间:
2015-04-27 23:55:00
阅读次数:
171
1、魔方函数http://www.rafekettler.com/magicmethods.html2、with关键句 class Excutor: def __enter__(self): set things up return t...
分类:
编程语言 时间:
2015-04-27 18:19:43
阅读次数:
147