import urllib2,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path();
os.makedirs( ...
分类:
其他好文 时间:
2014-08-09 00:19:46
阅读次数:
262
由于浏览器安全方面的限制,大多数 "Ajax" 请求遵守同源策略;请求无法从不同的域、子域或协议成功地取回数据。如果在不同域下访问就会出现提示:
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1' is therefore not allowed access.
因此解决方法:
1.采用同域策略,在同一域名下。
2.在服务端设置属性,如:php服务端...
分类:
Web程序 时间:
2014-08-08 16:04:36
阅读次数:
297
遍历窗口,获得控件句柄1 EnumChildWindows(hwndDlg, (WNDENUMPROC)EnumChildProc, NULL);回调函数 1 BOOL CALLBACK EnumChildProc(HWND hwnd, LPARAM lParam ) 2 { 3 char ...
分类:
其他好文 时间:
2014-08-08 15:15:36
阅读次数:
324
通常定义Controller时一般都定义成public:package net.mingyang.modules.system;@Controller@RequestMapping("/control/system/config")public class ConfigController{ ...
分类:
Web程序 时间:
2014-08-08 12:06:15
阅读次数:
268
我们有的时候有这样的需要,允许一人用户查看修改其它用户的文件,但不允许删除。用一个普通用户执行一个命令,但这个命令的运行身份是root。因为linux系统权限设置过于简单,像做这些事情就需要用到facl了。facl是fileaccesscontrollist的缩写。当一个用户访问一个文件时,文..
分类:
其他好文 时间:
2014-08-08 02:09:55
阅读次数:
288
-------------------------------------------------------------------------------------------------------RBAC(Role Based Access Control),意为基于角色的访问控制,这里用...
分类:
其他好文 时间:
2014-08-07 22:57:14
阅读次数:
260
在html页面head标签之间添加以下标识可以避免大多数浏览器缓存: <meta?http-equiv="Pragma"?content="no-cache"?/>???
<meta?http-equiv="Cache-Control"?content="no-cache"?/>
<meta?http-equiv="E...
分类:
Web程序 时间:
2014-08-07 19:28:10
阅读次数:
249
private void SetTextReadOnly(Control ctr, bool blReadOnly) { ctr.Controls.Cast().Select(s => s).ToList().ForEach(s => ...
分类:
其他好文 时间:
2014-08-07 18:30:21
阅读次数:
170
学习与使用ASP.NET MVC这样久,还是对asp.net念念不忘。能否在asp.net mvc去显示aspx或是user control呢?这个灵感(算不上灵感,只能算是想法)是来自前些天有写过一篇《多个视图结果显示于一个共用预览视图内》http://www.cnblogs.com/insus/...
分类:
Web程序 时间:
2014-08-07 12:46:39
阅读次数:
247
In one embodiment, the present invention includes a directory to aid in maintaining control of a cache coherency protocol. The directory can be couple...
分类:
数据库 时间:
2014-08-07 00:42:27
阅读次数:
496