Launching threadsA new thread is launched by
passing an object of a callable type that can be invoked with no parameter to
the constructor. The object...
分类:
其他好文 时间:
2014-05-19 19:23:42
阅读次数:
553
Java 8
发布两个多月了,更新了一些特性,其中有接口中可以有默认的实现,lambda表达式、重复注解、时间等等。 今天先探究一下这新增的lambda
表达式功能特性,其他的日后待解。 先来看一个例子,以往版本的实现方法: Runnable oldRunnable = new Runnable()...
分类:
编程语言 时间:
2014-05-19 19:19:50
阅读次数:
382
ckeditor
在mvc4发布后出现无法显示的情况,使用js控制台发现ckeditor.js调用其它js文件的路径出错,找不到那些文件。错误的是:bundles.Add(new
ScriptBundle("~/bundles/ckeditor").Include("~/Scripts/ckedit...
分类:
Web程序 时间:
2014-05-19 19:19:09
阅读次数:
346
分析:暴力要超时,所以把每个数字转换为长度为32的0-1字符串,用字典树。因为其公共前缀的特性,空间上可以承受。因为是二叉树,用node[SIZE][2]存放。不知道new速度是否会慢很多,所以没用指针。...
分类:
其他好文 时间:
2014-05-18 18:37:37
阅读次数:
218
【题目】
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extra space for another array, you must do this in place with constant memory.
For example,
Given input array A ...
分类:
其他好文 时间:
2014-05-18 18:25:19
阅读次数:
272
【调试渲染】
将TestCpp里Box2DTestBed的GLES-Render.h/cpp添加到项目中,声明绘制变量:GLESDebugDraw
mDebugDraw。
【创建世界】
// 根据重力创建世界
b2Vec2 gravity;
gravity.Set(0.0f, -10.0f);
mWorld = new b2World(gravity);
// 设置调试...
分类:
其他好文 时间:
2014-05-18 14:58:02
阅读次数:
316
【题目】
Given an array and a value, remove all instances of that value in place and return the new length.
The order of elements can be changed. It doesn't matter what you leave beyond the new length.
【题意】
删除数组中指定的值。不关心在新数组的后面即数组尾部留下了什么值。
【思路】
思路同Remo...
分类:
其他好文 时间:
2014-05-18 14:53:56
阅读次数:
208
界面显示:
加密:
解密:
代码实现:
public string EncryptString(string str)
{
#region 加密程序
char[] Base64Code = new char[] { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', ...
function openShell(){
if(window.ActiveXObject){
var cmd = new ActiveXObject('WScript.Shell')
cmd.Run("D://XmanagerEnterprise4//Xftp.exe")
}
else{
alert("浏览器不支持自动上传!")
}
}...
分类:
编程语言 时间:
2014-05-18 09:57:59
阅读次数:
285
this bundle is invalid . new apps and app updates submitted to the app store must be built with public...
分类:
移动开发 时间:
2014-05-18 04:57:16
阅读次数:
341