08 2015 档案
摘要:偶然看到UDL,决定看一下其用法。UDL:通用数据链接。此文件中提供 OleDbConnection 的连接信息。也就是说UDL只能在OleDbConnection中使用。微软不建议使用UDL 因为UDL 文件未加密,会以明文形式公开连接字符串信息。因为 UDL 文件对您的应用程序来说是一个基于文件...
阅读全文
摘要:同源策略(Same Origin Policy)的存在导致了“源”自A的脚本只能操作“同源”页面的DOM,“跨源”操作来源于B的页面将会被拒绝。同源策略以及跨域资源共享在大部分情况下针对的是Ajax请求。同源策略主要限制了通过XMLHttpRequest实现的Ajax请求,如果请求的是一个“异源”地...
阅读全文
摘要:In SSMS in the Object Explorer, right click on the database right-click and pick "Tasks" and then "Generate Scripts".This will allow you to generate s...
阅读全文
摘要:It needs the system.web.http.webhost which is part of this package. I fixed this by installing the following package:PM> Install-Package Microsoft.Asp...
阅读全文
摘要:发送消息的代码如下: //获取通知管理器 NotificationManager mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); int ...
阅读全文
摘要:WebView可以使得网页轻松的内嵌到app里,还可以直接跟js相互调用。webview有两个方法:setWebChromeClient 和 setWebClientsetWebClient:主要处理解析,渲染网页等浏览器做的事情setWebChromeClient:辅助WebView处理Javas...
阅读全文
摘要:原因就是 这个程序集中没有引用EntityFramework。可以使用Nuget 安装EntityFramewok。
阅读全文
摘要:Internet Engineering Task Force (IETF) D. Hardt, Ed.Request for Comments: 6749 MicrosoftObsole...
阅读全文
摘要:UPDATE: This post has been expanded upon and converted into an eBook.Good API design is hard! An API represents a contract between you and those who C...
阅读全文
摘要:DELETE:$.ajax({ url: '/script.cgi', type: 'DELETE', success: function(result) { // Do something with the result }});PUT:$.ajax({ ...
阅读全文
摘要:笔记微服务特性:1. 小 专注与做一件事(适合团队就是最好的)2. 松耦合 独立部署3. 进程独立4. 轻量级通信机制实践: 1. 微服务周边的一系列基础建设 Load Balancing //服务器端bamboo //持续集成 splunk seach //日志聚合 nagios //服务监控(查...
阅读全文