DescriptionGeorge took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to ...
分类:
其他好文 时间:
2014-07-18 15:28:57
阅读次数:
234
Palindrome NumberDetermine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers b...
分类:
其他好文 时间:
2014-07-18 15:17:26
阅读次数:
201
先贴出代码(/etc/my.cnf)如下:#The following options will be passed to all MySQL clients[client]#password = your_passwordport = 3306socket ...
分类:
数据库 时间:
2014-07-18 14:27:38
阅读次数:
292
1 、参数文件及mysql参数 查看mysql 的 my.cnf 配置文件位置命令:>./bin/mysql --help | grep my.cnf 查看mysql 的参数设置命令:mysql>show variables --显示所有参数; // show variables like 'log...
分类:
数据库 时间:
2014-07-18 14:24:56
阅读次数:
342
yii2表关联例如:商品表关联品牌表在控制器中:$goods_info=$goods_model::find()->joinWith('brand')->all();模型中://关联品牌表 public function getbrand(){ return $this->hasMany(Bran....
分类:
其他好文 时间:
2014-07-18 14:14:05
阅读次数:
204
yii2使用中的一些基本的增删改查操作。以用户为例说明:User::find()->all(); //返回所有用户数据;User::findOne($id); //返回 主键 id=1 的一条数据;User::find()->where(['name' => 'ttt'])->one(); /...
分类:
其他好文 时间:
2014-07-18 11:37:42
阅读次数:
209
1.hi/hello!/ Hullo!/How Do you do?(你好)2.(Good)morning/afternoon/evening!(早/下午/晚上(好))3.how are you?/how are you going?/how are you all keeping?(你好吗/最近过...
分类:
其他好文 时间:
2014-07-18 11:36:34
阅读次数:
205
Sorting It All Out
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 26866
Accepted: 9267
Description
An ascending sorted sequence of distinct values...
分类:
其他好文 时间:
2014-07-18 11:33:31
阅读次数:
294
js跳转路径问题
在项目中用JS做跳转,发现ff和ie中出现不一致现象。
无论是window.location.href还是window.open,
@ie中跳转以当前路径开始跳转
@ff中跳转以根目录开始
if (document.all||!!window.ActiveXObject){ //判断是否是...
分类:
Web程序 时间:
2014-07-18 11:32:09
阅读次数:
275
alias ll='ls -alF'一:ls -a --all : do not ignore entries starting with . -A , --almost-all : do not list implied . and .. -l : use a long listing f...
分类:
系统相关 时间:
2014-07-18 10:36:44
阅读次数:
314