通过单击事件开启线程时,再次单击就会出现java.lang.IllegalThreadStateException: Thread already
started. 错误解决办法:创建一个Runnable:Runnable DownloadRunnable = new Runnable() { @O...
分类:
编程语言 时间:
2014-05-15 15:50:10
阅读次数:
256
1. synchronized
If two threads are using the same function( here we use output to print out string) of another instance, if we want to make sure that these two threads are not disturbing each other.
...
分类:
其他好文 时间:
2014-05-15 11:14:14
阅读次数:
389
创建表:
hive> CREATE TABLE pokes (foo INT, bar STRING);
Creates a table called pokes with two columns, the first being an integer and the other a string
创建一个新表,结构与其他一样
hive> create table n...
分类:
其他好文 时间:
2014-05-15 07:07:58
阅读次数:
303
FAAC1.28的下载地址:http://www.audiocoding.com/downloads.html
如何编译:
1../configure --host=arm-hisiv100nptl-linux --prefix=/home/ssy/lib
2.make
3.make install
优化
在不修改源码的情况下,faac的内存占用非常高,每路音频在13M左右。如果多路音...
分类:
系统相关 时间:
2014-05-15 06:47:02
阅读次数:
904
用域名获取IP地址或者用IP获取域名
#include
#include
#include
int main(int argc,char **aggv)
{
struct hostent *host;
char hostname[]="www.163.com";
char hostname2[]="www.baidu.com";
s...
分类:
系统相关 时间:
2014-05-15 06:15:07
阅读次数:
406
ocm02库与GC安装与配置
安装顺序:ocmdb02库(host:ocm02)
1.安装ocmdb02库 作用:存放历史数据,用于历史分析 --后续安装oms,oms需要一个容器来存放各个agent推送来的信息,ocmdb02就是这个容器。
2.配置oracle用户环境变量
export ORACLE_BASE=/u01/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export LD_LIBRARY_PATH=$ORACLE_HOM...
分类:
其他好文 时间:
2014-05-15 05:52:11
阅读次数:
238
下面是标准库STL中allocator的实现
template
class allocator
: public _Allocator_base
{ // generic allocator for objects of class _Ty
public:
typedef allocator other;
typedef _Allocator_base _Mybase;
t...
分类:
其他好文 时间:
2014-05-15 05:05:57
阅读次数:
385
一、设置MyEclipse的字符编码,步骤如下:
1、进入Window--Preferences--General--Workspace,Text file encoding 选项中默认的Default(GBK)选项更改为Other,并将值设为utf-8;
2、进入Window--Preferences--MyEclipse--Files and Editors,将这个选项下面的:ASP ...
分类:
数据库 时间:
2014-05-15 04:18:55
阅读次数:
299
项目要写个DLL调用硬件,因为人力资源的原因只能用Delphi7开发,结果发现传递中文有点问题,研究了一番后解决,其实很简单,关键是使用system.pas下的编码解码方法。以下在本机测试通过。环境:Win764位旗舰版JDK1.6x86MyEclipse8.6Delphi7Delphi代码:libraryProject2;
uses
S..
分类:
其他好文 时间:
2014-05-14 15:54:07
阅读次数:
405
点击这里查看文章
有空试试~~~唉。。。
Ubuntu (Linux) on Atom Z3700 Series
ASUS Transformer Book T100 is particularly interesting platform, because
some guys at XDA developers forum have already installed Androi...
分类:
系统相关 时间:
2014-05-14 15:08:01
阅读次数:
547