Problem Description
A lot of battleships of evil are arranged in a line before the battle. Our commander decides to use our secret weapon to eliminate the battleships. Each of the battleships can be ...
分类:
其他好文 时间:
2015-05-29 23:17:22
阅读次数:
132
原文出处:http://blog.chenlb.com/2010/08/solr-use-custom-query-parser.html由于 Solr 默认的 Query Parser 生成的 Query 一般是 “短语查询”,导致只有很精确的结果才被搜索出来。大部分时候我们要分词后的 Boole...
分类:
其他好文 时间:
2015-05-29 20:02:33
阅读次数:
189
1、验证邮箱(用户名)JS页面中:首先定义变量和正则varusermail = $("#usermail").val();varusername=/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/ ;进行判断//正则表达式判断邮箱if(!use...
分类:
Web程序 时间:
2015-05-29 19:59:57
阅读次数:
147
http://stackoverflow.com/questions/1274432/sqlite-parameters-not-allowing-tablename-as-parameterGenerally one cannot use SQL parameters/placeholders f...
分类:
数据库 时间:
2015-05-29 19:55:56
阅读次数:
201
1.添加一个html页面要将它分为三份 css,vm,js。其中JS改写注意事项KISSY.use('node,xtemplate,event',function(S,Node,XTemplate,EVENT){改成KISSY.add('bops/js/ding-talk',function(S,X...
分类:
其他好文 时间:
2015-05-29 19:44:08
阅读次数:
196
USE DBCenterGOSELECT file_id, name FROM sys.database_files; 查找日志名称USE DBCenter ;GOALTER DATABASE DBCenterSET RECOVERY SIMPLE;--设置简单恢复模式GODBCC SHRINKF....
分类:
数据库 时间:
2015-05-29 18:01:06
阅读次数:
147
NamespaceException: The alias '/rwt-resources' is already in use 该bug发生的第一种情况是:This means that more than one application is started in the same conte....
分类:
其他好文 时间:
2015-05-29 17:34:28
阅读次数:
107
1.user表数据结构 2.修改advanced/common/models/User.php use yii\web\IdentityInterface; class User extends ActiveRecord implements IdentityInterface { //增加方法 p...
给user写相关接口配置:修改UserController.php use yii\rest\ActiveController; use yii\helpers\ArrayHelper; use yii\web\Response; class UserController extends Activ...
1. Use a query string, which appends information onto the URL of the target page. You can use a query string when using a HyperLink control to build n...
分类:
Web程序 时间:
2015-05-29 15:21:16
阅读次数:
118