解决Ajax跨域问题:Origin xx is not allowed by Access-Control-Allow-Origin.今天一个Ajax跨域问题,纠结我半天,记录之。 title 测试Ajax跨域问题没有结果,chrome用F12 下查看错误 得知:XMLH...
分类:
数据库 时间:
2014-08-22 22:26:59
阅读次数:
358
在使用LOAD DATA LOCAL INFILE时遇到:ERROR 1148 (42000): The used command is not allowed with this MySQL version解决办法:1、启动mysql时添加--local_file=1选项;2、在my.cnf的[m...
分类:
其他好文 时间:
2014-08-22 09:18:15
阅读次数:
285
例子:@{Html.Telerik().Splitter().Name("MainSplitter") .Orientation(SplitterOrientation.Vertical) .Panes(vPanes => { vPanes.Add() ...
分类:
其他好文 时间:
2014-08-21 11:13:03
阅读次数:
171
把写好的sql脚本,并在mssqlmanager里面编译成功的存储过程脚本复制到vs项目下,出现错误信息如下:SQL71006: Only one statement is allowed per batch. A batch separator, such as 'GO', might be re...
分类:
数据库 时间:
2014-08-21 11:12:33
阅读次数:
1281
mysql根据配置文件会限制server接受的数据包大小。有时候大的插入和更新会受max_allowed_packet 参数限制,导致写入或者更新失败。查看目前配置show VARIABLES like '%max_allowed_packet%';显示的结果为:+-----------------...
分类:
数据库 时间:
2014-08-20 19:36:43
阅读次数:
199
Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted array A =[1,1,1,2,2,3],Your function should ret...
分类:
其他好文 时间:
2014-08-20 13:53:12
阅读次数:
168
Follow up for "Search in Rotated Sorted Array":What if duplicates are allowed?Would this affect the run-time complexity? How and why?Write a function ...
分类:
其他好文 时间:
2014-08-20 13:47:32
阅读次数:
224
[root@athController~]#novalistERROR:Anunexpectederrorpreventedtheserverfromfulfillingyourrequest.(OperationalError)(1040,‘Toomanyconnections‘)NoneNone(HTTP500)解决办法:key_buffer=64Mmax_allowed_packet=16Mthread_stack=192Kthread_cache_size=8myisam-recover=B..
分类:
数据库 时间:
2014-08-20 10:35:46
阅读次数:
437
sshd问题:A protocol error occurred. Change of username or service not allowed在研究Linux安全的时候遇到一个问题,原本打算修改linux直接远程root登陆,修改为sshd的配置文件后Nano /etc/ssh/sshd_c...
分类:
其他好文 时间:
2014-08-19 18:08:35
阅读次数:
411
一、控制器 <?php if (!defined(‘BASEPATH‘)) ??? exit(‘No direct script access allowed‘); class Topics extends CI_Controller { ??? function __construct() ??? { ??????? parent::__cons...
分类:
数据库 时间:
2014-08-19 01:04:43
阅读次数:
309