intent的简单用法案例一传值:Intent intent=new Intent();intent.putExtra("extra", "这是页面一传来的值!");intent.setClass(Test_for_intentActivity.this, actpage2.class);start...
分类:
移动开发 时间:
2014-07-07 16:23:06
阅读次数:
322
Problem Description:Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below bina...
分类:
其他好文 时间:
2014-07-07 15:57:05
阅读次数:
252
关于session_start()这个问题,其实网上很多解决的方法,论坛也好多人回答这类的问题, 现在的状况是依然有警告提示Warning:session_start() [function.session-start]: Cannot send session cookie - headers a...
分类:
其他好文 时间:
2014-07-01 21:33:30
阅读次数:
325
使用udp实现,简单,方便,不用三次握手1. 所有部署服务器进程的机器有一个代理进程hagent,用来监听hcm console中发送过来的命令2.hcm需要提供以下命令start :普通方式启动进程stop :停止进程reload :重新载入配置文件resume :恢复方式启动进程(共享内存)ta...
分类:
其他好文 时间:
2014-07-01 20:29:04
阅读次数:
263
如果是KDM、GDM、LightDM,打开~/.xprofile。如果是startx、Slim,打开~/.xinitrc。(没有就新建一个)export GTK_IM_MODULE=fcitxexport QT_IM_MODULE=fcitxexport XMODIFIERS="@im=fcitx"...
分类:
其他好文 时间:
2014-07-01 12:59:02
阅读次数:
586
SDK和ADT为22.6.2版本
工程为4.4.2
新建了一个工程 ,代码编写好后并没有报错,在安装支持后报出如下错误:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.silence.jsonutil/com.silence.jsonutil.MainActivity}: ...
分类:
编程语言 时间:
2014-07-01 08:05:46
阅读次数:
294
start.shJava代码#!/usr/bin/bash##start.sh#@auth:zhoulin@lianchuang.com#SERVER_STATUS(){serv_status=`ps-ef|grepweblogic|grepwebapp|grep-vgrep|grep$1|wc-l...
分类:
Web程序 时间:
2014-06-30 23:05:20
阅读次数:
578
在启动apache服务的时候(service httpd start 启动)出现这个问题。出现这个问题,是因为APACHE的默认端口被占用的缘故.解决方法就是把这个端口占用的程序占用的端口去掉。使用命令:netstat -lnp|grep 80 查看80端口使用如:tcp 0 0 0.0.0.0:8...
分类:
其他好文 时间:
2014-06-30 22:06:35
阅读次数:
319
先看一段代码
#include
#include
#include
#include
#include
static int count = 0;
void set_timer()
{
struct itimerval itv;
itv.it_value.tv_sec = 3; //timer start after 3 seconds later
itv.it...
分类:
系统相关 时间:
2014-06-30 10:31:41
阅读次数:
365
1. start IDLE
“Python 2.5”→“IDLE(Python GUI)”
2. open your source file window
From python shell, select file->open...
3. show debug control
From python shell, select Debug->Debuger
4....
分类:
编程语言 时间:
2014-06-29 22:47:26
阅读次数:
356