使用post请求域名不相同的资源的话,可以用cors跨域。1) 在被请求的项目根目录(root下)下放以下文件crossdomain.xml[html]view plaincopyprint?cross-domain-policy.dtd[html]view plaincopyprint?测试从ht...
分类:
其他好文 时间:
2014-09-28 00:38:00
阅读次数:
843
SVN的merge操作是为了保证主干(trunk)和分支(branch)同步,merge方式有:1、Merge a range of revisions(合并一个范围的版本)2、Reintegrate a branch(复兴合并)3、Merge two different trees(合并两个不同的...
分类:
其他好文 时间:
2014-09-27 14:49:09
阅读次数:
183
远程执行名称(一台)#!/usr/bin/envpythonimportparamikoparamiko.util.log_to_file(‘/tmp/test‘)ssh=paramiko.SSHClient()ssh.load_system_host_keys()ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())ssh.connect(‘192.168.1.61‘,port=22,username=‘root‘,passwor..
分类:
系统相关 时间:
2014-09-26 20:37:09
阅读次数:
233
原始文件Merge.txt Change Set Dev Beta #1 2014...
分类:
其他好文 时间:
2014-09-26 18:16:38
阅读次数:
192
问题描述: CentOS 6.5安装完成 Tomcat 后,访问本地:http://localhost:8080/正确,但局域网内无法访问?。 原因: /etc/init.d/iptables status Table: filter Chain INPUT (policy ACCEPT) num? target???...
分类:
系统相关 时间:
2014-09-25 18:36:17
阅读次数:
278
mysqlPartition(分区)初探表数据量大的时候一般都考虑水平拆分,即所谓的sharding.不过mysql本身具有分区功能,可以实现一定程度 的水平切分.mysql是具有MERGE这种引擎的,就是把一些结构相同的MyIASM表作为一个表使用,但是我觉得 MERGE不如partition实用...
分类:
数据库 时间:
2014-09-25 13:50:08
阅读次数:
248
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 1 /** 2 ...
分类:
其他好文 时间:
2014-09-25 13:02:08
阅读次数:
204
JavaScript是一种在Web开发中经常使用的前端动态脚本技术。在JavaScript中,有一个很重要的安全性限制,被称为“Same- Origin Policy”(同源策略)。这一策略对于JavaScript代码能够访问的页面内容做了很重要的限制,即JavaScript只能访问与包含它的文档 ...
分类:
Web程序 时间:
2014-09-25 10:47:28
阅读次数:
270
1.冒泡排序//基本算法for(i=1;i1){ mergeSort(list[0~list.length/2]); mergeSort(list[list.length/2+1~list.length-1]); merge list...
分类:
其他好文 时间:
2014-09-24 16:49:07
阅读次数:
175
1,代码如下:<?php functionfillRandomString(){ //生成验证码 $char=array_merge(range(0,9),range("a","z"),range("A","Z")); //讲字符串$char打乱 $luan=str_shuffle(implode("",$char)); //从字符串中随机取四位 returnsubstr($luan,0,4); } //创建画布 header..
分类:
Web程序 时间:
2014-09-24 16:34:59
阅读次数:
199