# 立即重新启动计算机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系统定义了弹出框,支持我们自定义布局:
public AlertDialog getEditCustomDialog() {
LayoutInflater inflater = getLayoutInflater();
View view = inflater.inflate(R.layout.custom_message_rename, null);
AlertDi...
分类:
其他好文 时间:
2014-07-13 00:12:45
阅读次数:
349
在前文《Android多线程分析之二:Thread的实现》中已经详细分析了Android Thread 是如何创建,运行以及销毁的,其重点是对相应 native 方法进行分析,今天我将聚焦于 Android Framework 层多线程相关的类:Handler, Looper, MessageQueue, Message 以及它们与Thread 之间的关系。可以用一个不太妥当的比喻来形容它们之间的关联:如果把 Thread 比作生产车间,那么 Looper 就是放在这车间里的生产线,这条生产线源源不断地从 ...
分类:
移动开发 时间:
2014-07-12 18:20:56
阅读次数:
303
最近手头上的项目学到了好多,现都将之分享出来:一.js1.js全局变量:前文中若有需要保存的变量Message,而以后也要用到这个值,使用$.message = message,在下次使用时可直接用$.message得到,在我的工程里是这 样使用的:$.serviceName = json.dat....
分类:
Web程序 时间:
2014-07-12 16:04:06
阅读次数:
191
/**
* Main method to run the object
* $message 消息内容
* $deviceToken 这里是iphone手机唯一的Token码(记得去掉空格)
* $badge 就是应用图标右上角那个数字
* $sound 消息的声音
* $apnsCert 证书路径
* $p...
分类:
移动开发 时间:
2014-07-10 23:53:40
阅读次数:
357
当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