//保持屏幕常亮
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP, LOCK_TAG);
mWakeLo...
分类:
移动开发 时间:
2014-07-29 18:04:13
阅读次数:
236
1. jstat -gc pid 可以显示gc的信息,查看gc的次数,及时间。 其中最后五项,分别是young gc的次数,young gc的时间,full gc的次数,full gc的时间,gc的总时间。 2.jstat -gccapacity pid 可以显示,VM内存中三代(young,ol....
分类:
Web程序 时间:
2014-07-29 16:43:02
阅读次数:
261
importjava.awt.Color;
importjava.awt.Font;
importjava.awt.event.KeyEvent;
importjava.awt.event.KeyListener;
importjava.awt.event.MouseAdapter;
importjava.awt.event.MouseEvent;
importjava.util.Random;
importjavax.swing.JFrame;
importjavax.swing.JLabel;
imp..
分类:
其他好文 时间:
2014-07-29 15:26:19
阅读次数:
268
PyGObject is a Python extension module that gives clean and consistent access to the entire GNOME software platform through the use of GObject Introspection. PyGObject provides full support of GObject Introspection and all of its features (callbacks, GVari...
分类:
编程语言 时间:
2014-07-29 13:04:47
阅读次数:
343
# 1 - Import libraryimport pygamefrom pygame.locals import *import mathimport random# 2 - Initialize the gamepygame.init()width, height = 640, 480scre...
分类:
编程语言 时间:
2014-07-29 11:06:46
阅读次数:
643
DescriptionThe Happy Desert is full of sands. There is only a kind of animal called camel living on the Happy Desert. ‘Cause they live here, they need...
分类:
其他好文 时间:
2014-07-28 23:44:04
阅读次数:
329
首页你要下载full版本的 而不是stander版本 你可以在ckeditor\samples\plugins\toolbar 目录下方找到官方说明 官方说明有2种方式1toolbar 2 toolbargroup 以下是我google翻译的 此示例演示页面编辑器加载满工具栏...
分类:
其他好文 时间:
2014-07-28 16:59:44
阅读次数:
401
7. write a function cn random an array.public class xiaodan_random { Random rand = new Random(); public void swap(int[] array, int i, int j){ ...
分类:
其他好文 时间:
2014-07-28 15:27:23
阅读次数:
206
spool d:\eagle2_2014_5_9_init.log; set feedback off; set define off; prompt -----初始化数据 start--- @D :\projects\Eagle_V2\04Code\v2.0\eagle2\resources\database\full\coc\coc-initialize.sql @D :\p...
分类:
数据库 时间:
2014-07-26 15:42:11
阅读次数:
586
1 前期准备: 下载虚拟机和CentOS安装源VMware-workstation-full-10.0.3-1895310CentOS-7.0-1406-x86_64-DVD.iso2 虚拟机配置-1 打开虚拟机-2-3-4-5-6-7也可以使用默认的处理器数量:1-8我修改了此虚拟机内存为2G-9...
分类:
其他好文 时间:
2014-07-26 14:45:00
阅读次数:
242