1 if (activity != null && activity.getCurrentFocus() != null2 && activity.getCurrentFocus().getWindowToken() != null) {3 ...
分类:
移动开发 时间:
2014-07-11 21:47:04
阅读次数:
173
UDP通信是无连接通信,客户端在发送数据前无需与服务器端建立连接,即使服务器端不在线也可以发送,但是不能保证服务器端可以收到数据。服务器端代码:C#代码staticvoidMain(string[]args){UdpClientclient=null;stringreceiveString=null...
分类:
其他好文 时间:
2014-07-11 19:57:07
阅读次数:
201
一、问题的由来永远不要直接使用undefined进行变量判断使用字符串"undefined"对变量进行判断这里,undefined是原始值,在JS中undefined出现只有两种情况,一种是变量未定义。一种是定义了变量,但是没有赋值。如果这个地方person未定义,那么利用person===unde...
分类:
编程语言 时间:
2014-07-11 19:44:33
阅读次数:
318
Java流的正确关闭方式:放在finally里,且先判断null。
分类:
编程语言 时间:
2014-07-11 10:10:46
阅读次数:
430
Hive学习路线图Hadoop家族系列文章,主要介绍Hadoop家族产品,常用的项目包括Hadoop, Hive, Pig, HBase, Sqoop, Mahout, Zookeeper, Avro, Ambari, Chukwa,新增加的项目包括,YARN, Hcatalog, Oozie, C...
分类:
其他好文 时间:
2014-07-11 08:48:52
阅读次数:
291
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace C_编辑基础
{
class Person
{
public string Name; //因为Name没有赋值,而它是string类型的,所以它的默认值就是Null
...
分类:
其他好文 时间:
2014-07-11 08:15:47
阅读次数:
184
收到RECEIVE_REQ_MSG消息时会执行下面的代码,这里因为某种原因m_receiverSlaverController的值仍为NULL,并没有指向具体的CReceiverSlaverController类。执行到ReceiveHandler函数时,在ReceiveHandler函数中,会通过CReceiverSlaverController类的成员变量m_measurementAgent(...
分类:
其他好文 时间:
2014-07-10 21:29:11
阅读次数:
192
设计一个类,我们只能生成该类的一个实例。单线程可用,多线程不安全:public class Singleton { private static Singleton instance = null; private Singleton() { } public static ...
分类:
其他好文 时间:
2014-07-10 16:24:37
阅读次数:
145
1、用非空列 修改 空列update z_taxidriverset mobile=zzdhwhere mobile is null and zzdh is not null2、用全外连接 创建 一个 表格 ,表格的某列中取一定范围的值create table c asselect a.1 a.2 ...
分类:
其他好文 时间:
2014-07-10 15:49:32
阅读次数:
150
hibernate中的HQL语句查询,类似于SQL; 1 public class SearchTest { 2 public static void main(String[] args){ 3 Session session = null; 4 Trans...
分类:
其他好文 时间:
2014-07-10 14:49:15
阅读次数:
225