CONTAINING_RECORD 这样的一个宏,我看了它的定义,如下:#define
CONTAINING_RECORD(address, type, field) ((type *)( (PCHAR)(address) -
(ULONG_PTR)(&((type*)0)->field)))cla...
分类:
其他好文 时间:
2014-05-09 04:21:01
阅读次数:
330
当是只有一列数的时候系统就不认定它是一个Object[]
而是一个String所以回报一个,java.lang.String cannot be cast to
[Ljava.lang.Object错误信息。解决办法,让他返回两个,再取值
分类:
其他好文 时间:
2014-05-09 03:15:45
阅读次数:
301
newton板已经发布了,下面接着整理我调试的一个小小的方面,蓝牙的功能实现以及测试:
转载请注明出处:http://blog.csdn.net/wang_zheng_kai
3.2. Bluetooth Function Test
141
142 1)View the Bluetooth MAC address and device names:hcitool dev
143...
分类:
其他好文 时间:
2014-05-09 01:32:21
阅读次数:
265
程序运行时候崩溃,提示object cannot be nil
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'
提示如上面。
请问怎么解决...
分类:
其他好文 时间:
2014-05-09 01:31:55
阅读次数:
558
什么是assign,copy,retain之间的区别?assign:
简单赋值,不更改索引计数(Reference Counting)。copy:
建立一个索引计数为1的对象,然后释放旧对象retain:释放旧的对象,将旧对象的值赋予输入对象,再提高输入对象的索引计数为1retain是指针拷贝,co...
分类:
其他好文 时间:
2014-05-09 00:08:47
阅读次数:
419
错误日志1:06-13 10:55:50.410: E/KVLog(1129):Error
info:java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams06-13
10:55:50.423: E/KVLog(1...
分类:
移动开发 时间:
2014-05-08 23:50:45
阅读次数:
2753
Linux系统:Ubuntu12.04NagiosLinux客户端需要安装NRPE进行数据收集,如果在Ubuntu系统下安装过程中遇到下面的错误提示:checkingforSSLlibraries...configure:error:Cannotfindssllibraries那么可能是缺少sudoapt-getinstallopensslsudoapt-getinstalllibssl-dev如果nrpe-2.15..
分类:
移动开发 时间:
2014-05-08 17:02:07
阅读次数:
404
这道题采用穷举法。 1 /** 2 * Given a string containing only
digits, 3 * restore it by returning all possible valid IP address combinations.
4 ...
分类:
其他好文 时间:
2014-05-08 09:17:22
阅读次数:
248
其实很简单,就是实用lpadmin命令,下面给出一个例子:
printername="YOUR_PRINTER_NAME"
location="LOCATION INFO"
gui_display_name="HP Color LaserJet M600 in Office for Example"
address="ipp://printserver.yourcompany.org/YOUR_...
分类:
其他好文 时间:
2014-05-08 06:05:55
阅读次数:
303
1 调用发送短信功能:Uri smsToUri =
Uri.parse("smsto:");Intent sendIntent = new Intent(Intent.ACTION_VIEW,
smsToUri);sendIntent.putExtra("address", "123456");//...
分类:
移动开发 时间:
2014-05-07 20:37:58
阅读次数:
639