This tutorial will guide you on how to install
JDK (Java Development Kit) on Linux. Since I use Centos 5.4 x86_64 in everyday
life, this guide is show...
分类:
编程语言 时间:
2014-05-23 12:39:44
阅读次数:
710
WM_CAP_DRIVER_CONNECT//ActiveX
---->OnCreatem_pit.Create(IDD_CAM_DIALOG,this);CRect
rc;this->GetClientRect(&rc);m_pit.m_cam.MoveWindow(&rc);m_pit.Show...
分类:
其他好文 时间:
2014-05-23 12:09:20
阅读次数:
570
写这个帖子的缘由是因为在页面参数传到rails的controller时用params[:]和params[""]都可以取到值:[1] pry(#)>
params=> {"action"=>"show", "controller"=>"books", "id"=>"382"}[2]
pry(#)> ...
分类:
其他好文 时间:
2014-05-23 11:10:59
阅读次数:
307
This is a simple tutorial to show a new linux user
(such as myself) how to setup freeglut and OpenGl. OS: ubuntu 12.1 I have just
recently become a .....
分类:
其他好文 时间:
2014-05-23 11:07:45
阅读次数:
380
MSS(Array[],N)//Where N is the number of
elements in array{sum=0; //current summax-sum=0;//Maximum Sumseq-start=0;//start
of the subsequenceseq-end=0;...
分类:
其他好文 时间:
2014-05-23 11:03:58
阅读次数:
221
#include
#include
struct test
{
char name[20];
void (*func)(char *);
};
void tttfunc(char *name)
{
printf("current is %d\n",__LINE__);
printf("%s\n",name);
}
int main()
{
struct test ttt=
{
.n...
分类:
系统相关 时间:
2014-05-22 11:25:09
阅读次数:
380
今天在写一个sql的时候,使用了hive的unionall,运行时报错。sql如下:selectdimension_name,dt,dtype_name,uv,new_uv,old_uv,pv,stay_timefromtemp_bi.uv
unionall
select‘平台‘dimension_name
,dt
,app_platformdtype_name
,count(distinctmid)uv
,count(distinctcasewhenis_..
分类:
其他好文 时间:
2014-05-20 23:53:32
阅读次数:
527
前段时间遇到了一个很诡异的发生的Map阶段的OOM异常,花了些时间才找到原因,这个简要记录一下。先看log。节点一的TaskTracker的log:节点二的TaskTracker的log:节点三的TaskTracker的log:其他节点的TaskTracker中的log都和slave4的一样的:故障分析:OOM是一个比较常见的故..
分类:
其他好文 时间:
2014-05-20 22:15:47
阅读次数:
422
1:使用SHOW语句找出在服务器上当前存在什么数据库:mysql> SHOW
DATABASES;2:2、创建一个数据库MYSQLDATAmysql> CREATE DATABASE
MYSQLDATA;3:选择你所创建的数据库mysql> USE MYSQLDATA; (按回车键出现Databas...
分类:
数据库 时间:
2014-05-20 10:24:33
阅读次数:
282
--MySQL主从失败 错误Got fatal error
1236解决方法----------------------------------------------------2014/05/19由于主服务器异外重启,
导致从报错, 错误如下:show slave status错误:mysql>...
分类:
数据库 时间:
2014-05-20 08:22:10
阅读次数:
801