03 2015 档案

寄存器(内存访问)
摘要:节选自王爽《汇编语言》第三章内容 CPU中用16位寄存器来存储一个字,但内存单元是字节单元,一个单元存储一个字节,需要两个地址连接的内存单元来存放。字的低位字节存放在低地址单元中,高位字节存放在高地址单元中。 CPU要读写一个内存单元的时候,必须先给出这个内存单元的地址,在8086PC中,内存地址由段地址和偏移地址组成。 Mov 寄存器名称 [内存地址偏移量] 默认段地址存放在DS中。 ... 阅读全文

posted @ 2015-03-31 08:18 tneduts 阅读(1105) 评论(0) 推荐(0)

汇编学习第一节
摘要:汇编指令和机器指令的差别在于指令的表示方法上。汇编指令是机器指令便于记忆的书写格式。 汇编指令是机器指令的助记符。 寄存器: CPU中可以存储数据的器件,一个CPU中有多个寄存器。 AX BX都是寄存器的代号。 汇编语言由以下三部分组成: 1.汇编指令(机器码的助记符) 2.伪指令(由编译器执行) 3.其他符号(由编译器识别) CPU 我们需要向CPU提供指令和数据,它才能工作。 ... 阅读全文

posted @ 2015-03-31 07:22 tneduts 阅读(274) 评论(1) 推荐(0)

Hive Experiment 2(表动态分区和IDE)
摘要:1.使用oracle sql developer 4.0.3作为hive query的IDE。下载hive-jdbc driverhttp://www.cloudera.com/content/cloudera/en/downloads/connectors/hive/jdbc/hive-jdbc-... 阅读全文

posted @ 2015-03-31 07:03 tneduts 阅读(495) 评论(0) 推荐(0)

Learning c section 1
摘要:#include void main() { puts("hello world"); int x=4; //the %p format will print out the location in hex(base lb) format printf("x lives at %p\n",&x); int * addr_of_x = &x; printf("x lives at %p... 阅读全文

posted @ 2015-03-29 13:10 tneduts 阅读(186) 评论(0) 推荐(0)

Hive history date mapping
摘要:Hive history table mappingcreate table fdl_family asselect * from (select 'acc1' as account,'family1' as family,'2010-01-01' as effect_date from nums ... 阅读全文

posted @ 2015-03-27 07:47 tneduts 阅读(336) 评论(1) 推荐(0)

java poi read write xlsx
摘要:package myjava; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.sql.Date; import ja... 阅读全文

posted @ 2015-03-26 07:40 tneduts 阅读(484) 评论(0) 推荐(0)

Hive variable demo
摘要:create table ori_trans (account string, maker string, tdate string) partitioned by (country string);hive -f test1.hql --hiveconf country='china'hive ... 阅读全文

posted @ 2015-03-25 22:22 tneduts 阅读(362) 评论(0) 推荐(0)

Hive tuning tips
摘要:1. limit Hive has a configuration property to enable sampling of source data for use with LIMIT: hive.limit.optimize.enable, set this parameter to ... 阅读全文

posted @ 2015-03-25 07:09 tneduts 阅读(236) 评论(1) 推荐(0)

Hive UDF’S addMonths
摘要:our project use hive 0.10 , and in the hiveql , we need use addMonths function builtin in hive-0.11.so I write this udf and test.java code:package myu... 阅读全文

posted @ 2015-03-24 21:59 tneduts 阅读(762) 评论(0) 推荐(0)

hiveql basic
摘要:set hive.cli.print.current.db=true; set hive.mapred.mode=strict; set hive.mapred.mode=nonstrict; SHOW PARTITIONS tablename; --Dynamic Par... 阅读全文

posted @ 2015-03-24 07:38 tneduts 阅读(240) 评论(0) 推荐(0)

2015 checklist
该文被密码保护。

posted @ 2015-03-23 07:33 tneduts 阅读(5) 评论(1) 推荐(0)

Hive Word count
摘要:--https://github.com/slimandslam/pig-hive-wordcount/blob/master/wordcount.hqlDROP TABLE myinput;DROP TABLE wordcount;CREATE TABLE myinput (line STRING... 阅读全文

posted @ 2015-03-18 14:08 tneduts 阅读(514) 评论(1) 推荐(0)

Hive drop table batched
摘要:if the hive version not support drop table tablename purge.your drop table command will move data to .Trash in hdfs.dfs .Trash;drop table tablename;df... 阅读全文

posted @ 2015-03-18 13:39 tneduts 阅读(1023) 评论(0) 推荐(0)

BendFord's law's Chi square test
摘要:http://www.siam.org/students/siuro/vol1issue1/S01009.pdfbendford'lawe=log10(1+l/n)o=freq of first digit / totalx2= N*sum(power((o-e),2)/e)1-9的乘法表中的数字算... 阅读全文

posted @ 2015-03-17 07:51 tneduts 阅读(278) 评论(1) 推荐(0)

Hive UDF 实验1
摘要:项目中使用的hive版本低于0.11,无法使用hive在0.11中新加的开窗分析函数。在项目中需要使用到row_number()函数的地方,有人写了udf来实现这个功能。new java project, BuildPath add hadoop-core..jar and hive-exec…ja... 阅读全文

posted @ 2015-03-14 16:27 tneduts 阅读(1307) 评论(4) 推荐(1)

java charset detector
摘要:https://code.google.com/p/juniversalchardet/downloads/listjava移植mozilla的编码自动检测库(源码为c++),准确率高。通过svn签出只读版本的代码:# Non-members may check out a read-only wo... 阅读全文

posted @ 2015-03-05 08:32 tneduts 阅读(1099) 评论(0) 推荐(0)

java Annotation Demo
摘要:Java 1.5引入了annotation,这个功能非常好用,是用c#等语言借鉴过来的一个特性。首先编译器本身支持一些像overrides,supresswarning之类的注解。Spring,junit等框架也自己写并且处理自己定义的注解,让java具有了一些声明式编程的一些特点,而且减少了代码量... 阅读全文

posted @ 2015-03-04 07:02 tneduts 阅读(526) 评论(0) 推荐(0)

导航