第一次发文章,格式不太规范,不过以后会逐渐改正的,请大家多多指正public class
Pager { private string _pageurl; private int _pagecount; private int
_currentpage...
分类:
其他好文 时间:
2014-05-09 23:18:55
阅读次数:
335
搭建hadoop集群的时候一定会用到的就是SSH免密码登录[hadoop@hadoop1 ~]$
ssh-keygen -t rsaGenerating public/private rsa key pair.Enter file in which to
save the key (/home/ha...
分类:
系统相关 时间:
2014-05-09 23:10:11
阅读次数:
471
在ASP.NET使用javascript的一点小技巧
我们在进行ASP.NET开发时,经常会用到一些javascript脚本,比如:
private void Button1_Click(object sender, System.EventArgs e)
{
Response.Write( "alert('OK');") ;
}
经常是重复的书写这些脚本,如果我们能做成一个相...
分类:
编程语言 时间:
2014-05-09 21:12:11
阅读次数:
268
1、通过一个Data.java实例类,可以实现全局数据保存,这里就不多说了,学Java的都知道。
2、Android特有的Application,是应用的入口,运行贯穿整个app运行过程,可以在这个类中定义全局变量
public class baseApplication extends Application {
private float screenWidth;
pri...
分类:
移动开发 时间:
2014-05-09 20:50:24
阅读次数:
406
如何获得 Windows 操作系统的版本
很多时候我们需要知道Windows操作系统的版本,使用下面这个API函数可以做到。
Option Explicit
Private Declare Function GetVersionEx Lib "kernel32" Alias "GetVersionExA" (lpVersionInformation As OSVERSIONINFO) As ...
作为一名程序员,你的代码量有多少,有空可以测测的。public class ItemCount
{ private static int lineCount;//表示代码行数 private static int fileCount;//表示文件个数
private static ...
分类:
其他好文 时间:
2014-05-09 20:28:02
阅读次数:
365
class Student { private string _name; public int
Age = 0; public static void Test() { Student stu = new ...
分类:
其他好文 时间:
2014-05-09 20:27:01
阅读次数:
305
org.hibernate.PropertyAccessException: Null
value was assigned to a property JavaBean修改:private Boolean
sex;原因:数据库字段值为NULL,int 类型不能赋值为NULL,只能为0,但有些实际应...
分类:
数据库 时间:
2014-05-09 19:59:18
阅读次数:
318
//定义一个委托 public delegate int DoSomething(int
count); //BeginInvoke 的回调函数 private static void Execute(IAsyncResult async) ...
分类:
Web程序 时间:
2014-05-09 19:51:27
阅读次数:
422
使用一个Dao生产类(工厂模式)产生自己所需的Dao;Factory设计为单例模式:class
DaoFactory{ //自己实例化一个对象,以便其他类调用获得Dao private static DaoFactory daoFactory;
//私有构造,不允许其他类实例化 privat...
分类:
其他好文 时间:
2014-05-09 19:33:21
阅读次数:
223