1: using System; 2: using
System.Collections.Generic; 3: using System.Linq; 4: using System.Text; 5: using
System.Text.RegularExpressions; 6: using Sy...
分类:
其他好文 时间:
2014-05-09 23:52:24
阅读次数:
543
1 public static void main(String[] args) { 2
Integer in1 = 128; 3 Integer in2 = 128; 4 System.out.println(in1 == in2 ); 5...
分类:
其他好文 时间:
2014-05-09 23:50:29
阅读次数:
270
1: 2: using System; 3: using
System.Collections.Generic; 4: using System.Text; 5: using System.IO; 6: using
System.Runtime.Serialization.Formatters.Bi...
分类:
其他好文 时间:
2014-05-09 23:47:37
阅读次数:
333
来篇文章:ASP。NET程序中动态修改web.config中的设置项目 (后台CS代码)
朋友们可以自行测试,我这里都没有问题了,鳖了一上午的问题总算解决了
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
usin...
分类:
Web程序 时间:
2014-05-09 15:08:43
阅读次数:
373
ping 192.168.1.150
开启telnet服务:
net start telnet//start telent
telnet 192.168.1.150 1433
解决类似80端口被占用问题:
netstat -ano 显示端口和pid
禁用http.sys:(可以看到pid 4 80端口的被NT kernel & System 占用)
1. net st...
问题起因项目需要跑在不同的平台上不希望代码中掺杂大量的define宏做平台判断(有洁癖呀~~~)定义一些通用宏来处理只能解决一些类型差异的问题处理将跨平台代码写入不同的文件夹下 os/linux 和 os/win在外部暴露的.h文件加入判断宏//file: public.h
#ifdef WIN32
#include "os/windows/public.h"
#else
#include "os...
分类:
其他好文 时间:
2014-05-09 14:46:23
阅读次数:
246
用cocos2d-android开发android游戏时调用box2d中的newWorld(Vector2,boolean)时,出现如下报错:“java.lang.UnsatisfiedLinkError:Nativemethodnotfound:com.badlogic.gdx.physics.box2d.World.newWorld:(FFZ)J”解决方法:在当前类中添加代码:static{
System.loadLibrary("g..
分类:
移动开发 时间:
2014-05-09 14:28:27
阅读次数:
404
方法一:实验思路:第一步在commands.cfg文件中定义你要使用的检测命令:vi/usr/local/nagios/etc/objects/commands.cfgdefinecommand{command_nametcp60910#命令名command_line$USER1$/check_tcp-H$HOSTADDRESS$-p60910-t60#命令内容,该处调用到check_tcp这个脚本-P后面是端..
分类:
移动开发 时间:
2014-05-09 14:21:11
阅读次数:
402
题目连接:check here~
题意是说给一个字符串,包含'(',')','[',']'四种字符,判断至少需要添加几个字符使所给字符串括号匹配。
区间型动态规划,设dp[i][j]表示在字符串s中i位置到j位置所需要添加的最少的字符(i
有两种情况:
1、dp[i][j] = dp[i+1][j] + 1;
表示:在i到j之间没有与s[i]相匹配的括号,则必须添加一个字符来与之匹配...
分类:
其他好文 时间:
2014-05-09 14:07:36
阅读次数:
230
数据绑定(Data Binding)
数据绑定是把一个值或一组值映射到用户界面控件的过程,这个数据并不一定是来自关系型数据库,通常是来自于程序之外的系统,访问数据,并把它转换复杂的绑定状态的过程还是相当简单的。这就是为什么我们在这一章,而不是在第八章讨论这个主题的原因。下面的例子演示把数据库中的表绑定到组合框:
open System
open System.Collection...
分类:
其他好文 时间:
2014-05-09 13:56:25
阅读次数:
320