/// /// 图形细化 /// /// /// public unsafe Bitmap ToThinner(Bitmap srcImg) { int iw = src...
分类:
Windows开发 时间:
2015-01-25 06:29:47
收藏:
0 评论:
0 赞:
0 阅读:
483
Given a string, find the length of the longest substring T that contains at most 2 distinct characters.For example, Given s =“eceba”,T is "ece" which ...
分类:
其他 时间:
2015-01-25 06:29:37
收藏:
0 评论:
0 赞:
0 阅读:
238
LP(Linear programming,线性规划)是一种优化方法,在优化问题中目标函数和约束函数均为向量变量的线性函数,LP问题可描述为:min xs.t. A·x b Aeq·x=beq vlb x vub其中 ,...
分类:
其他 时间:
2015-01-25 06:29:27
收藏:
0 评论:
0 赞:
0 阅读:
356
/// /// 二值化图像 /// /// /// private static unsafe Bitmap Binaryzation(Bitmap bmp) { Bit...
分类:
Windows开发 时间:
2015-01-25 06:29:17
收藏:
0 评论:
0 赞:
0 阅读:
482
Class:服务类/GeocoderClass:服务类/GeocoderResult百度地图Demo Class:服务类/GeocoderGeocoder()创建一个地址解析器的实例getLocation(point:Point, callback:function[, options: Locat...
分类:
其他 时间:
2015-01-25 06:29:07
收藏:
0 评论:
0 赞:
0 阅读:
218
没什么特别的东西,网上烂大街的C/S框架。(基于windows 7 + python 3.4)为了实现中文聊天,我加入了一点修改:msg.encode('utf-8') # msg 为输入(且将要发送出)的信息data.decode('utf-8') # data 为接收的信息这样做的原因是 sen...
分类:
编程语言 时间:
2015-01-25 06:28:37
收藏:
0 评论:
0 赞:
0 阅读:
411
关于mongodb,就不多说了,我也来安装体验一下。mongodb安装我安装的版本:mongodb-win32-i386-2.6.71、在D盘建立文件夹 d:\mogondb,创建文件夹d:\mongodb\data\db、d:\mongodb\data\log,分别用来安装db和日志文件,在log...
分类:
数据库技术 时间:
2015-01-25 06:28:27
收藏:
0 评论:
0 赞:
0 阅读:
313
#include#include#include#include#includeusing namespace std;#define INF 100000000int u[6000],v[6000],w[6000];int first[6000],next[6000];int coun[6000]...
分类:
其他 时间:
2015-01-25 06:28:07
收藏:
0 评论:
0 赞:
0 阅读:
280
#include#include#include#includeusing namespace std;char mat[50][50];int n,m;int ans;int op[4][2]={0,1,0,-1,1,0,-1,0};bool ok(int x,int y){ if(0<=x...
分类:
其他 时间:
2015-01-25 06:27:57
收藏:
0 评论:
0 赞:
0 阅读:
184
Building a Space StationTime Limit:1000MSMemory Limit:30000KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionYou are a membe...
分类:
其他 时间:
2015-01-25 06:27:47
收藏:
0 评论:
0 赞:
0 阅读:
155
div垂直居中 css div盒子上下垂直居中,让DIV盒子在任何浏览器中任何分辨率的显示屏浏览器中处于水平居中和上下垂直居中。div垂直居中常用于单个盒子,如一个页面里只有一个登录布局,使用div css让这个登录布局水平和css垂直居中。这里介绍一种最简单兼容性最好的水平居中与上下垂直居中的方法...
分类:
Web开发 时间:
2015-01-25 06:27:37
收藏:
0 评论:
0 赞:
0 阅读:
320
写一个MVC项目,做URL验证。
分类:
微信 时间:
2015-01-25 06:27:27
收藏:
0 评论:
0 赞:
0 阅读:
609
好久没写了,有些东西做过都快忘了,赶紧记一下。现在来实现一个简单的相机程序。原文地址http://www.cnblogs.com/rossoneri/p/4246134.html当然需要的话可以直接调用系统的camera程序,但自己实现会使用更自由。呐,既然要用实现相机,那就需要先了解一下调用cam...
分类:
移动平台 时间:
2015-01-25 06:27:17
收藏:
0 评论:
0 赞:
0 阅读:
358
本篇将简单整理Direct3D 10的初始化,具体内容参照《Introductionto3DGameProgrammingwithDirectX 10》(中文版有汤毅翻译的电子书《DirectX 10 3D游戏编程入门》)。Direct3D 10的初始化可分为以下几个步骤:1.填充一个DXGI_SW...
分类:
其他 时间:
2015-01-25 06:26:57
收藏:
0 评论:
0 赞:
0 阅读:
425
本篇将简单整理Direct3D 10的计时器实现,具体内容参照《Introductionto3DGameProgrammingwithDirectX 10》(中文版有汤毅翻译的电子书《DirectX 10 3D游戏编程入门》)。1.高精度性能计数器Direct3D10使用高精度性能计数器(精度达微秒...
分类:
其他 时间:
2015-01-25 06:26:47
收藏:
0 评论:
0 赞:
0 阅读:
371
#include#include#include#includeusing namespace std;char mat[20][20];int ans[15];int n;bool ok(int x,int y){ int tx,ty; int ans[15]; int temp...
分类:
其他 时间:
2015-01-25 06:26:27
收藏:
0 评论:
0 赞:
0 阅读:
286
原文地址:http://wxg6203.iteye.com/blog/680830最近因为工作需要开始学习Ejb3,遇到了一个让我很郁闷的事情,做一下小小的总结——小心new InitialContext()。在做客户端的时候,发现连接服务器,搜索数据库,然后返回结果集。每一次执行的时候,第一次总要...
分类:
其他 时间:
2015-01-25 06:26:17
收藏:
0 评论:
0 赞:
0 阅读:
283
spark的Executor是执行task的容器。和java的executor概念类似。===================start executor runs task============================->CoarseGrainedExecutorBackend::rec...
分类:
其他 时间:
2015-01-25 06:26:07
收藏:
0 评论:
0 赞:
0 阅读:
322
标准的说法是在词典中取出与给定字符串编辑距离最短的词.首先是编辑距离Levenshtein distance的计算, 通过建立两个字符串的矩阵得到, 优化算法是Wagner–Fischer algorithm, 通过DP可以将计算量降低到O(n2)因为计算编辑距离需要耗费相当的时间, 所以这个问题的...
分类:
其他 时间:
2015-01-25 06:25:57
收藏:
0 评论:
0 赞:
0 阅读:
671
我们知道 在IE 和chrome中都是支持base标签的 但博主在最近的网站开发中遇到一个问题。就是在IE的js中的window.location,? base标签会失效。 那么我们该如何解决这个问题呢。。 其实很简单 我们直接用dom得到base标签的 值?
?
var baseLink = document.getElementsByTagName("base")[0 ...
分类:
其他 时间:
2015-01-25 02:10:57
收藏:
0 评论:
0 赞:
0 阅读:
249