在eclipse中配置cocos2d-x的android环境时,遇到这样的错误提示 网上搜索了一下,说是在NDK_MODULE_PATH环境变量下未找到所需要的Android.mk文件,后来仔细研究了一下项目属性,找到环境设置这一项 添加完NDK_MODULE_PATH路径之后,会在项目的.sett...
分类:
移动开发 时间:
2014-07-16 23:14:41
阅读次数:
20097
1:flash_image介绍
也许很少人使用该工具,但flash_image对于调试uboot或者kernel和root相关的人来说用处还是比较大。falsh_image的使用方法:
usage: flash_image type [partition|device] [image_file_path]
type: MTD、EMMC、INAND
partition:根据平...
分类:
其他好文 时间:
2014-06-28 09:17:22
阅读次数:
231
1. 赋予scott用户连接权限:Grant connect to scott;
2. 在Myeclipse中新建java项目导入jdbc包(classes12.jar):右键项目 bulid path -〉add external archives 选择classes12.jar
3. 新建java文件, lianxi01.java
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLExceptio...
分类:
数据库 时间:
2014-06-28 08:02:18
阅读次数:
272
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.
For example:
Given the below binary tree and sum
= 22,
5
/ ...
分类:
其他好文 时间:
2014-06-28 07:31:28
阅读次数:
214
遍历目录中所有文件,并且统计文件类型。#!/bin/bash
#filename:filestat.sh
#set-x
if[$#-ne1];
then
echo$0basepath;
echo
fi
path=$1
declare-Astatarray;
whilereadline;
do
ftype=`file-b"$line"`
letstatarray["$ftype"]++;
done<<(find$path-typef-print)
ech..
分类:
其他好文 时间:
2014-06-28 00:16:08
阅读次数:
224
本篇博文详细告诉你如何安装Storm的本地开发环境,总体分为两步,具体如下:
1、从官网上下载Storm的发布包,下载完成后将其解压,并将解压后的bin目录添加到环境变量(PATH)中,以方便后续执行Storm的相关命令
2、修改Storm的配置文件(storm.yaml),主要是按照实际情况更新配置文件中的集群信息,然后将修改后的配置文件添加到目录(~/.storm/)中,目的是为了后续能够远程启动和停止集群上的计算任务(即topology)...
分类:
其他好文 时间:
2014-06-27 23:44:13
阅读次数:
505
在服务器上启动模拟器的时候加了--http-proxy,但是不起作用。所以搜了下面的方法
四种方法:
一:将网络连接代理设置写入配置数据库 (适合启动模拟器无界面)
1、通过命令行或者通过双击emulatoer可执行文件,打开模拟器
2、在命令行执行adb shell 打开android的控制台 (确保环境变量设置正确,即已经把Android_SDK/tools 添加到了PATH(L...
分类:
移动开发 时间:
2014-06-27 23:34:34
阅读次数:
520
Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root ...
分类:
其他好文 时间:
2014-06-27 23:13:24
阅读次数:
218
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
分类:
其他好文 时间:
2014-06-27 23:02:33
阅读次数:
258
iostat命令详解iostat用于输出cpu和磁盘I/O相关的统计信息。命令格式:Usage:iostat[options][<interval>[<count>]]
Optionsare:
[-c][-d][-N][-n][-h][-k|-m][-t][-V][-x][-y][-z]
[-j{ID|LABEL|PATH|UUID|...}[<device>[...]|ALL]]
[<device>[...]|A..
分类:
系统相关 时间:
2014-06-27 06:24:13
阅读次数:
298