1. 访问 basic 基础目录下的 web 目录
出现图1 的错误 :
Invalid Configuration – yii\base\InvalidConfigException
解决: 找到文件 config/web.php
添加配置如图2 :'cookieValidationKey' => 'cookiemykey',
注意:需...
分类:
其他好文 时间:
2015-06-09 17:10:20
阅读次数:
111
【题目链接】给定一句英语,要求你编写程序,将句中所有单词的顺序颠倒输出。输入格式:测试输入包含一个测试用例,在一行内给出总长度不超过80的字符串。字符串由若干单词和若干空格组成,其中单词是由英文字母(大小写有区分)组成的字符串,单词之间用1个空格分开,输入保证句子末尾没有多余的空格。输出格式:每个测...
分类:
其他好文 时间:
2015-06-09 16:48:37
阅读次数:
91
class Count{ public int Count(String a){ int n = a.length(); int result = 0; int num = 0; int p = 0; int L1 = a.indexOf('('); int R1 = a.inde...
分类:
编程语言 时间:
2015-06-09 16:42:58
阅读次数:
125
Basic CalculatorImplement a basic calculator to evaluate a simple expression string.The expression string may contain open(and closing parentheses), t...
分类:
其他好文 时间:
2015-06-09 16:40:54
阅读次数:
115
【题目连接】一个数组A中存有N(N>0)个整数,在不允许使用另外数组的前提下,将每个整数循环向右移M(M>=0)个位置,即将A中的数据由(A0A1……AN-1)变换为(AN-M…… AN-1A0A1……AN-M-1)(最后M个数循环移至最前面的M个位置)。如果需要考虑程序移动数据的次数尽量少,要如何...
分类:
编程语言 时间:
2015-06-09 16:35:17
阅读次数:
169
为了用spark,先学下scala。参考教程:http://meetfp.com/zh/scala-basic在线编译:http://meetfp.com/tryout其它资料:http://scalachina.com/node/16 http://blog.csdn.net/mapdi...
分类:
其他好文 时间:
2015-06-09 16:33:13
阅读次数:
123
My first try was DFS by intuition, but it ended up with MLE. So, the expected solution is to use stack:class Solution { struct Node { Nod...
分类:
其他好文 时间:
2015-06-09 15:25:31
阅读次数:
115
This problem gets much trickier than Contains Duplicate and Contains Duplicate II.The basic idea is to maintain a window of k numbers. For each new nu...
分类:
其他好文 时间:
2015-06-09 13:18:23
阅读次数:
144
linux常见的压缩文件扩展名
*.Z compress 程序压缩的文件;
*.gz gzip
程序压缩的文件;
*.bz2 bzip2
程序压缩的文件;
*.tar tar 程序打包的数据,并没有压缩过;
*.tar.gz tar 程序打包的文件,其中并且经过 gzip 的压缩
*.tar.bz2 tar 程序打...
分类:
系统相关 时间:
2015-06-08 21:39:31
阅读次数:
161
HTTPRequestHeader请求头Accept指定客户端能够接收的内容类型。如Accept:text/plain,text/html
Accept-Charset浏览器可以接受的字符编码集。如Accept-Charset:iso-8859-5
Accept-Encoding指定浏览器可以支持的web服务器返回内容压缩编码类型。如Accept-Encoding:compress,gzip
..
分类:
Web程序 时间:
2015-06-08 20:01:05
阅读次数:
352