R是一个用于统计分析的语言,可以产生各种不同的报表。也可以与HADOOP、PIG结合。
R语言是一个脚本语言,无须编译,输入后直接运行即可出结果。
内置了非常强大的统计功能和输出图形功能,如JAVA在计算方面比较弱,输出图形也要和其他框架结合,这样R语言就能实现一站式的功能,在R环境中就能实现。
!!!!!RHadoop培训 之 R基础课
http://blog.fens.me/rhadoop-r-basic/
RHadoop实践系列之二:RHadoop安装与使用
http://blog.fens.me/rhadoop-rhadoop/R语言入门知识 一些常用操作和例子
http://www.biostatistic.net/thread-111-1-1.html
!!R语言画图大全,非常实用,需要文章画图的看过来了
一套S2SH的应用,现用单线程,连续发1000个请求,用的DBCP链接池,结果报数据库链接不够用:
ERROR [org.hibernate.util.JDBCExceptionReporter] - Cannot get a connection, pool error Timeout waiting for idle object
在JAVA加上LOG:
log.info("active: " + dataSource.getNumActive() + " (max: "
+ dataSource.getMaxActive() + ") " + "idle: " + dataSource.getNumIdle()
+ "(max: " + dataSource.getMaxIdle() + ")");
结果显示为:
active: 25 (max: 100) idle: 0(max: 30)
active的数量一直增加,但idle的数量一直为0。当程序向链接池要链接的时候,如果池没有,就会新建一个,active数就会加1,关闭链接后,链接会返回池,idle数加1。idle为0则表示池里没有链接。
这样说明链接一直在创建,没有关闭放回池里。但链接是由SPRING和HIBERNATE管理的,代码中没有关闭链接的语句。之后试了N多配置,都还没解决,如增加maxActive数等。最后,加上这一行,问题才终于解决:
<prop key="hibernate.connection.release_mode">after_transaction</prop>
这里默认值是auto,如果是用JTA事务才适用,如果是JDBC事务,就只能用after_transaction。
这样每次事务结束后,就会关闭链接返回链接池。
ANDROID APP 与 WEB APP有相似之处,都是需要在容器内运行,都可以对事件进行响应。
WEB APP的核心组件是SERVLET,这是对游览器事件进行响应的一个类,事件有GET/POST等事件,不同的URL对应不同的SERVLET。
如果要输出不同的内容,则输出不同的HTML即可。
WEB APP的配置文件是WEB.XML,当容器启动时,会从这读取有多少个SERVLET。当浏览器发过来不同的URL请求时,会从中选择相应的SERVLET执行。
ANDROID APP的核心组件是ACTIVITY,这是一个对系统事件进行响应的一个类,事件有启动事件,菜单点击事件等,点击不同的地方对应不同的ACTIVITY。
如果要输出不同的内容,则输出不同的VIEW即可。
ANDROID APP的配置文件是MAINFRE.XML,当应用被部署到系统时,系统会从这读取有多少个ACTIVITY。当不同的事件发生时,系统会会从中选择相应的ACTIVITY执行。
The architecture representation will basically adopt the 4 + 1 View Model as
recommended, to organize the architectural description from different perspectives, each
of which addresses a specific set of concerns:
• Requirement View – describes the software requirements, functional and
non-functional, illustrated by significant use cases and scenarios.
• Logical View – describes the object model of the design, the system
decomposition into layers and subsystems, and the dependencies between them.
• Process View – describes the concurrency and synchronization aspects of the
design.
• Implementation View – describes the software’s static organization in the
development environment.
• Deployment View – describes the mapping of the software onto hardware.
• Data View – describes the database design for the software.
It allows various stakeholders to find what they need in the software architecture. System
engineers can approach it from the logical view, process view and deployment view. DBA
can approach it from the data view. Project managers and software configuration
managers can approach it from the development view.
Demo:
- CUHK RFID - White Paper

- Middleware Quick Start Guide

- Tag Capturer Quick Start Guide

- Middleware System Design Document

- Tag Capturer System Design Document

- Middleware Test Cases

- Middleware Test Plan

- Middleware Source Code

|