class Program { static void Main(string[] args) {
//需要将对象的状态保存起来 持久化 //序列化: 将对象的状态持久化到某1中设备上(磁盘.) ...
分类:
其他好文 时间:
2014-05-29 04:13:06
阅读次数:
211
之前安装的C#环境变量:%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;D:\Program
Files\Microsoft SQL...
分类:
其他好文 时间:
2014-05-28 04:12:26
阅读次数:
233
using System;using System.ServiceProcess;using
System.Diagnostics;using System.Threading;namespace ServiceControllerSample{
class Program { ...
分类:
其他好文 时间:
2014-05-28 04:09:58
阅读次数:
189
面向切面编程(AOP是Aspect Oriented
Program的首字母缩写),我们知道,面向对象的特点是继承、多态和封装。而封装就要求将功能分散到不同的对象中去,这在软件设计中往往称为职责分配。实际上也就是说,让不同的类设计不同的方法。这样代码就分散到一个个的类中去了。这样做的好处是降低了代码...
分类:
其他好文 时间:
2014-05-27 23:48:56
阅读次数:
544
#!/bin/bash# Program to output a go source file
with user informationCURRENT_TIME=$(date +"%x %r %Z")cat <<
EOF/* Author:$USER CreatedAt:$CURRENT_TIME...
分类:
其他好文 时间:
2014-05-27 17:49:29
阅读次数:
283
用管理员身份运行CMD> cd C:\Program
Files\mongodb\bin> C:\Program Files\mongodb\bin>mongod --dbpath
"C:\Program Files\mongodb\data\db" --logpath "C:\Program Fi...
分类:
数据库 时间:
2014-05-27 16:12:25
阅读次数:
337
错误1error MSB6006: “CL.exe”已退出,代码为
-1073741502。C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets62在64位电脑下使用...
分类:
其他好文 时间:
2014-05-26 17:11:05
阅读次数:
402
首先要配置的是Android SDK中带有的adb工具:
解压并打开下载好的Android SDK,找到platform-tools文件夹,
右击我的电脑-->属性--->高级系统设置--->环境变量;
建议只在用户变量中设置;
如果有PATH环境变量就双击进行编辑,拷贝找到的platform-tools文件夹的全路径,例如:
D:\Program Files\adt-bundle-wi...
分类:
移动开发 时间:
2014-05-25 21:11:40
阅读次数:
373
继续并发专题~
这次介绍CyclicBarrier:看一眼API的注释:
/**
* A synchronization aid that allows a set of threads to all wait for
* each other to reach a common barrier point. CyclicBarriers are
* useful in program...
分类:
编程语言 时间:
2014-05-25 18:15:06
阅读次数:
316
一、开发环境
Win8.1 64位、VS2013、MySQL5.5.37
64位
MySQL安装目录为:C:\Program Files\MySQL\MySQL Server 5.5
二、配置工程环境
首先创建一个控制台空项目,打开VS2013,文件--> 新建项目 --> 常规 --> 选择“空项目”
因为我们要使用MySQL数据库...
分类:
数据库 时间:
2014-05-25 04:45:09
阅读次数:
442