- 博客(23)
- 收藏
- 关注
转载 angular http ajax header
myAppModule.config(['$httpProvider', function($httpProvider) { $httpProvider.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';}]);转载于:https://www.cnblogs.com/weberypf/p/832...
2018-01-22 16:54:00 212
转载 javascript 实现htmlEncode htmlDecode
屌屌的写法。。function htmlEncode(value){ //create a in-memory div, set it's inner text(which jQuery automatically encodes) //then grab the encoded contents back out. The div never exists on the ...
2016-10-27 15:31:00 153
转载 windows下的python扩展包下载地址
比如lxml什么的Unofficial Windows Binaries for Python Extension Packagespip install xxx.whl转载于:https://www.cnblogs.com/weberypf/p/5303103.html
2016-03-21 18:49:00 344
转载 php版DES
class DES{ var $key; var $iv; //偏移量 function DES( $key, $iv=0 ) { //key长度8例如:1234abcd $this->key = $key; if( $iv == 0 ) { $this->...
2016-02-29 17:37:00 117
转载 .net mvc web api 大坑B
public object Test(string x){ return x;}当你的.net mvc web api里有这么个方法时。你想$.post("api/xxx/test",{"x":"ttt"},function(data){ console.log(data);});对不起,404改一改代码,加一个...
2015-12-11 13:03:00 77
转载 新浪云(SAE)使用没有内置的django版本
SAE自带的django目前到1.5版本,如果要使用更高的版本,则需要把django包同代码一起上传。以1.7.3为例先从SAE svn签出代码,默认1是根目录1. 1目录下创建文件夹 site-packages ,把django包copy到此文件夹 django包在python安装目录中 如 C:\Python27\Lib\site-packages\djang...
2015-02-05 10:49:00 84
转载 微信朋友圈分享页面(JS-SDK 1.0)
微信更新sdk后大量分享朋友圈代码失效,标题 缩略图 描述无法自定义新版SDK分享文章步骤1.绑定域名 (方法参考 http://mp.weixin.qq.com/wiki/7/aaa137b55fb2e0456bf8dd9148dd613f.html )2.服务端 需要生成签名供分享页面的js接口使用 用到 noncest...
2015-01-22 11:09:00 101
转载 System.Data.SQLite.EF6
2015.1.21到目前为止这个破玩意不支持code first 建数据库 建表代替方案 SQL Server Compact--------------------------------------------------转载于:https://www.cnblogs.com/weberypf/p/4240354.html...
2015-01-21 22:52:00 232
转载 centos 安装git server
安装httpd git# yum install httpd git建空仓库# cd /var/cache/git/# mkdir gittest.git && cd gittest.git# git --bare initInitialized empty Git repository in /var/cache/git/# git upda...
2014-06-14 10:55:00 97
转载 log4net重复记日志
<root>和<logger>两个节点同时存在,可能会记两份日志。原因:logger 继承root只要在配置文件里的logger加上属性additivity="false" 就可以了转载于:https://www.cnblogs.com/weberypf/archive/2013/01/22/2871249.html...
2013-01-22 13:43:00 260
转载 The length of the query string for this request exceeds the configured maxQueryStringLength value
如果你的webserver收到这个信息:1.你是否真的需要这么长的url2.如果需要,你可能需要配置以下内容搞定<httpRuntime enableVersionHeader="false" maxUrlLength="20480" maxQueryStringLength="20480" requestPathInvalidCharacters...
2012-08-31 11:00:00 544
转载 各种分享api
function shareApi(target, img, content, url) { switch (target) { case 0: return "http://v.t.sina.com.cn/share/share.php?pic=" + img + "&...
2012-02-09 18:33:00 106
转载 chrome
chrome下<a href="javascript:void(0)">click</a>$("a").click(function(){ location.hash = "xxx"; }第一次点会跳锚点,第二次不会跳鸟。解决:$("a").click(function(){ location.hash = "xxx";window.loca...
2012-02-06 19:01:00 74
转载 IE6
var str = "abc";var r = str[0];IE6下会得到undefined....囧。好记~转载于:https://www.cnblogs.com/weberypf/archive/2012/01/19/2327500.html
2012-01-19 16:54:00 85
转载 Windows下配置使用MemCached
工具:memcached-1.2.6-win32-bin.zip MemCached服务端程序(for win)Memcached Manager win下的MemCached管理工具Memcached .NET client Library C#/.NET memcached 客户端dll...
2011-02-18 15:57:00 130
转载 试一下用word发布一篇文章
1、打开Word 2007,点击"发布"››"博客": 2、在打开的窗口中点击"管理帐户": 3、然后点击"新建": 4、博客提供商选择"其他",点击"下一步": 5、"API"选择"MetaWeblog","博客文章URL"输入:http://www.cnblogs.com/你的博客名称/services...
2010-12-01 13:02:00 100
转载 Windows 2008 R2下安装Exchange 2010 (14.0.639.21)的必要条件
环境:Windows 2008 R2Exchange installation 必备:· 域控:The forest functional level must be at least Windows Server 2003 native.· Exchange服务器:确保在你的Windows 2008R2上安装...
2010-05-08 16:03:00 109
转载 Active Driectory 操作(转来放起来,不要丢了)
IntroductionWhen it comes to programmatically accessing Microsoft's Active Directory a lot of people seem to have quite a difficult time tying all the pieces together to accomplish exactl...
2010-03-02 14:18:00 741
转载 ASP.NET 把集合导出为Excel的一个助手类
转别人的,做了个小小改动,增加了一个重载,可以在把集合数据读入Excel之后再增加自定义的一些输出。publicclassExcelHelper{/**////<summary>///将一组对象导出成EXCEL///</summary>///<typeparamn...
2009-07-03 14:35:00 61
转载 汇编语言程序设计 检测点1.1
1. 一个CUP的寻址能力为8KB,那么他的地址总线宽度:分析:寻址能力8KB ,即1024*8=8192个内存单元。 8192 = 2的13次方。所以地址总线宽度为13知识点:微机存储器的内存单元是字节。1个内存单元是1个字节,即8位(Bit)一个CPU有N根地址线,则可以说这个CPU的地址总线宽度为N,这样的CP...
2009-06-30 18:14:00 105
转载 汉字转拼音的一个类(C#)
publicclassChs2py{/**////<summary>///将汉字转换成为拼音///</summary>privatestaticint[]pyvalue=newint[]{-20319,-20317,-20304,-20295,-...
2009-06-26 14:02:00 107
转载 对象当前正在其他地方使用 异常
这个错误 不太好找。据说是由于多个线程同时操作一个对象造成的。我是使用多线程,然后子线程里面设置界面按钮是否可见时出错了。。之后把设置UI的一些东西加锁就OK了。解决这个问题就是,加锁。但是,在哪里加锁,,还真不好找~~系统异常提示在窗体的Show方法那里提示对象正在被使用。。好难找。。 转载于:https://www.cnblogs.com/weberypf/arc...
2009-06-25 10:47:00 1985
转载 关于IE无法打开站点XX已终止操作问题
在页面还没有ready的时候就调用了htmlObject的appendChild或者innerHTML操作,这样会在IE上弹出一个对话框:“Internet Explorer无法打开站点,已终止操作”(1)在appendChild或者innerHTML操作处判断document.readyState=="complete", 若为否,则setTimeout若干秒之后重新作这个操...
2009-04-15 13:20:00 121
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人