# 立即重新启动计算机echo "b" > /proc/sysrq-trigger# 立即关闭计算机echo "o" > /proc/sysrq-trigger# 导出内存分配的信息 (可以用/var/log/message 查看)echo "m" > /proc/sysrq-trigger# 导出...
分类:
其他好文 时间:
2014-07-16 21:49:59
阅读次数:
181
(Message App)The app just take the last 7 digits from a contact, then it does not create a converstion with the name of the contact that you are texti...
分类:
其他好文 时间:
2014-07-16 21:43:29
阅读次数:
203
在论坛上看到过有人说字符串常量存储在只读区域,不能写只能读;而字符数组是栈上,可读可写。#include#includeint main(){ /*字符数组存储于动态内存中,可以进行赋值操作*/ char message[]={'h','e','l','l','\0'}; message[2]='a...
分类:
其他好文 时间:
2014-07-16 21:31:45
阅读次数:
162
昨天修改了一个工具,编译后本机运行正常,但放到服务器上执行却不行,提示:message:GetOleDbSchemaTable requires an open and available Connection. The connection's current state is closed重新检...
分类:
数据库 时间:
2014-07-13 08:24:44
阅读次数:
228
打算整理一下对 Android Framework 中多线程相关知识的理解,主要集中在 Framework 层的 Thread, Handler, Looper, MessageQueue, Message, AysncTask,当然不可避免地要涉及到 native 方法,因此也会分析 dalvik 中和线程以及消息处理相关的代码:如 dalvik 中的 C++ Thread 类以及 MessageQueue 类。本文将从一个使用 Thread 的简单 应用入手,引入 Thread 这个话题,接下来的几篇文...
分类:
移动开发 时间:
2014-07-11 08:34:39
阅读次数:
241
android的Setting往往用PreferenceActivity来写的
我们在建立layout文件:
<CheckBoxPreference
android:key="new_message_notify"
android:title="新消息通知"
android:defaultValue="true"...
分类:
其他好文 时间:
2014-07-11 00:05:34
阅读次数:
317
/**
* Main method to run the object
* $message 消息内容
* $deviceToken 这里是iphone手机唯一的Token码(记得去掉空格)
* $badge 就是应用图标右上角那个数字
* $sound 消息的声音
* $apnsCert 证书路径
* $p...
分类:
移动开发 时间:
2014-07-10 23:53:40
阅读次数:
357
Clairewd’s message
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 3228 Accepted Submission(s): 1248
Problem Description
Clairew...
分类:
其他好文 时间:
2014-07-10 23:45:38
阅读次数:
286
当AlertView只有一个按钮时,将取消按钮的文字设置成“确定”UIAlertView*alert=[[UIAlertViewalloc]initWithTitle:@"例子"message:@"消息"delegate:selfcancelButtonTitle:@"确定"otherButtonTitles:nil];如果只有两个按钮时,将otherButton的第一个按钮设置为“确定”UIAlert..
分类:
其他好文 时间:
2014-07-10 18:39:45
阅读次数:
206
日志的分离1)初学syslogvoidopenlog(constchar*ident,intoption,intfacility);voidsyslog(intpriority,constchar*format,...);voidcloselog(void);facilityThefacilityargumentisusedtospecifywhattypeofprogramisloggingthemessage.Thisletstheconfigurationfilespecifythatm..
分类:
其他好文 时间:
2014-07-10 18:03:51
阅读次数:
386