/** * Return whether the given throwable is a checked exception: * that is, neither a RuntimeException nor an Error. * @param ex the t...
分类:
编程语言 时间:
2014-10-16 06:16:22
阅读次数:
207
1 class Solution: 2 # @param s, a string 3 # @return a string 4 def reverseWords(self, s): 5 ss = s.split(" ") 6 ss = fil...
分类:
其他好文 时间:
2014-10-16 01:05:21
阅读次数:
146
【题目】
Given a binary tree, return the preorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [1,2,3].
Note: Recu...
分类:
其他好文 时间:
2014-10-15 23:57:11
阅读次数:
229
请见如下一个闭包示例:color = "red";var obj = { color: "blue", getColor: function () { function displayColor() { return this.color; ...
分类:
编程语言 时间:
2014-10-15 23:03:41
阅读次数:
333
近来用ollvm来编译一些代码,主要是需要对so进行一些混淆的操作,发现了一个bug,记录如下:代码段1jintbegin_antidebug()
{
pthread_tantidebugtid;
intret=0;
ret=pthread_create(&antidebugtid,NULL,antidebug_listen_thread,NULL);
if(ret!=0)
{
LOGANTI("Createpthre..
分类:
其他好文 时间:
2014-10-15 21:44:32
阅读次数:
1229
1.简单的函数指针的应用形式1:返回类型(*函数名)(參数表)char (*pFun)(int); char glFun(int a){ return;} void main() { pFun = glFun; (*pFun)(2); } 第一行定义了一个指针变量pFun。首先...
分类:
其他好文 时间:
2014-10-15 21:09:31
阅读次数:
222
function getNext( $str ){ $ret = array(0=>0); for( $j =1; $j $l2) return $rt; $i = $p; $j = 0; $next = getNext($sstr); whil...
分类:
编程语言 时间:
2014-10-15 21:06:11
阅读次数:
227
smartctl命令行的使用.
命令行使用说明:
目前我们使用的服务器都带有lsi的raid卡,当磁盘为SAS盘时使用smartctl时需要添加:smartctl-dmegaraid,$deviceid/dev/$diskname当磁盘为SATA盘时使用smartctl时需要添加:smartctl-dsat+megaraid,$deviceid/dev/$diskname
可以..
分类:
其他好文 时间:
2014-10-15 20:43:01
阅读次数:
399
public class NetworkProber {
/**
* 网络是否可用
*
* @param activity
* @return
*/
public static boolean isNetworkAvailable(Context context) {
ConnectivityManager connectivity = (Connectivit...
分类:
移动开发 时间:
2014-10-15 19:20:41
阅读次数:
154
Today return ACM.Restart...Do Ieverhave thestrengthtogoon?That’s a questions about time...
分类:
其他好文 时间:
2014-10-15 19:18:41
阅读次数:
126