时间限制:10000ms单点时限:1000ms内存限制:256MB描述Finally, you come to the interview room. You know that a Microsoft interviewer is in the room though the door is lo...
分类:
其他好文 时间:
2014-10-20 00:32:35
阅读次数:
291
============问题描述============ 大家好,我在使用百度云推送SDK的时候发现在AVD中可以正常收到推送通知,而在手机上却没办法收到。在Logcat中发现这么一句shouldStopSelf-------localPriority=360;otherpackageName=co...
分类:
其他好文 时间:
2014-10-19 22:59:56
阅读次数:
307
取消ubuntu的自动锁定
很多时候,离开电脑一回,但是回来的时候,电脑就锁住了,还得他妈的输入密码。怎么取消呢?
windows系统设置屏幕保护即可,linux也是在屏幕保护里面设置。
执行:system - preferences - screemsaver
取消最下面lock选线的勾勾。
即可。...
分类:
系统相关 时间:
2014-10-19 21:25:59
阅读次数:
320
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" co...
分类:
Web程序 时间:
2014-10-19 18:42:55
阅读次数:
306
1 一个资源同时可以有多个读写,但是只能有一个写锁2 用flag代表锁的状态,#define un_lock 0#define r_lock1 //上一把读锁加一个r_lock#define w_lock -1伪代码1 LOCK_Rpthread_lock(resource.mutex)while(...
分类:
其他好文 时间:
2014-10-19 12:51:23
阅读次数:
150
防火墙打不开肯定是"windows Firewall"服务没有启动。ICS服务启动不了能够通过下面方法解决:1、找到本地连接,单击左键--属性--共享--勾选(√)--确定,如以上步骤不能开启ICS服务,则需进行例如以下操作2、执行--输入“services.msc”--找到“internet co...
1.首先在code.h中查看PyCodeObject的struct 1 typedef struct { 2 PyObject_HEAD 3 int co_argcount; /* #arguments, except *args */ 4 int co_nlo...
分类:
编程语言 时间:
2014-10-19 09:02:53
阅读次数:
287
一、实验环境:rhel1——dhcp服务器——ip:192.168.1.20/24client——xp——获取ip为192.168.1.20-192.168.1.100之间二、具体配置步骤:(1.)服务端:1.安装dhcp服务端软件:umount/dev/cdrommount/dev/cdrom/mntvim/etc/yum.repos/aaa.repoyum-yinstlldhcp*vim/etc/dhcpd.co..
分类:
系统相关 时间:
2014-10-19 01:29:06
阅读次数:
238
指向函数的指针,顾名思义,不用解释。而指针函数是返回值为某一类型指针的函数(这个简单)指向函数的指针: 写在前面的话,注意指向函数的指针不可以直接拿来写函数体,至于为什么,我还没有搞懂,例如: int (*comp) (const void*, const void*){} 这样是不行的 无论用co...
分类:
其他好文 时间:
2014-10-18 01:52:36
阅读次数:
222
#include
#include
using namespace std;
template
class Singleton {
public:
static T *instance() {
if (object == NULL) {
mtx.lock();
if (object == NULL) object = new T;
mtx.unlock();
}...
分类:
编程语言 时间:
2014-10-18 00:45:37
阅读次数:
226