Redkale 技术详解 02 -- Creator构建对象
????????org.redkale.util.Creator是采用ASM技术来实现代替反射构造函数的对象构建类。在根据流反序列化成对象、数据表记录转换成对象时都需要构建对象。常见的处理办法是利用反射,如Gson框架中反序列化是通过反射进行对象创建。众所周知反射的性能是比较低的,所以Redkale需要自实现一个对象构建类。
?? ...
分类:
其他 时间:
2016-02-18 02:03:27
收藏:
0 评论:
0 赞:
0 阅读:
284
Redkale 技术详解 01 -- 双亲委托模型
????????Redkale?里大量使用了双亲委托模型,序列化的ConvertFactory、依赖注入的ResourceFactory、服务管理的WatchFactory均采用双亲委托模型。用于优先加载自定义的处理类,同时也保证两个同级的子Factory不会相互干扰。
ClassLoader类加载
????????双亲委托模型最经典的例 ...
分类:
其他 时间:
2016-02-18 02:02:37
收藏:
0 评论:
0 赞:
0 阅读:
313
分类:
其他 时间:
2016-02-18 02:00:57
收藏:
0 评论:
0 赞:
0 阅读:
374
本文是讲述如何使用word2vec的基础教程,文章比较基础,希望对你有所帮助!
官网C语言下载地址:http://word2vec.googlecode.com/svn/trunk/
Word2vec是Google公司在2013年开放的一款用于训练词向量的软件工具。它根据给定的语料库,通过优化后的训练模型快速有效的将一个词语表达成向量形式,其核心架构包括CBOW和Skip-gram。...
分类:
其他 时间:
2016-02-18 01:23:20
收藏:
0 评论:
0 赞:
0 阅读:
674
根据维基百科条目 Conway's Game of Life(康威生命游戏),康威生命游戏是英国数学家约翰·何顿·康威在1970年发明的细胞自动机。...
分类:
其他 时间:
2016-02-18 01:22:59
收藏:
0 评论:
0 赞:
0 阅读:
339
前言: 写代码修改后怎样比较与历史文件的区别呢?idea提供了2种比较方式(目前笔者所了解到的) 一、SVN的版本比较 二、当前文件与历史版本比较
分类:
其他 时间:
2016-02-18 01:22:19
收藏:
0 评论:
0 赞:
0 阅读:
276
题 题意 给你n个货币价格,然后通过调整一些货币的大小,使得所有比自己小的货币都是该货币的约数,调整前第 i 货币为a,调整后为b 那么变化率为 ri=|a-b|/a ,总变化率为max(ri)。求最小的总变化率。 分析 DP 状态转移方程 dp[i][k]=min(max(dp[i-1][j],
分类:
其他 时间:
2016-02-18 01:21:48
收藏:
0 评论:
0 赞:
0 阅读:
206
查看日志 /var/log/secure 查看vsFTPd配置 /etc/vsftpd/vsftpd.conf 密码过期时间设置 /etc/login.defs PASS_MAX_DAYS 99999 用户密码永不过期 chage -M 99999 username
分类:
其他 时间:
2016-02-18 01:20:58
收藏:
0 评论:
0 赞:
0 阅读:
157
Given the following perfect binary tree, 1 / \ 2 3 / \ / \ 4 5 6 7 After calling your function, the tree should look like: 1 -> NULL / \ 2 -> 3 -> NUL
分类:
其他 时间:
2016-02-18 01:20:47
收藏:
0 评论:
0 赞:
0 阅读:
148
http://developer.51cto.com/art/201203/321042.htm Thread(Runnable target) Allocates a new Thread object. 在java中可有两种方式实现多线程,一种是继承Thread类,一种是实现Runnable接口
分类:
其他 时间:
2016-02-18 01:20:07
收藏:
0 评论:
0 赞:
0 阅读:
200
首先FragmentActivity类及布局; public abstract class SingleFragmentActivity extends FragmentActivity { protected abstract Fragment createFragment(); @Overrid
分类:
其他 时间:
2016-02-18 01:19:16
收藏:
0 评论:
0 赞:
0 阅读:
379
( ̄▽ ̄)" 第一种解题方法:dij变形 //无向图最短路,dij的变形(有点像prim) //题意:从起点1到终点n,找出一条路,该条路的最小负重是最大的 #include #include #include #include #include #include #include #include...
分类:
其他 时间:
2016-02-18 01:18:36
收藏:
0 评论:
0 赞:
0 阅读:
290
前言: 在初步构建的nginx+tomcat服务集群时, 发现webserver获取到的客户端ip都是同一个, 皆为作为反向代理服务的nginx所在的机器IP. 这不太符合我们的基本需求, 为将来的数据挖掘和分析带来了麻烦. 不过不用担心, 本文将简单介绍其背后的原因和原理, 以及具体的解决方案,
分类:
其他 时间:
2016-02-18 01:18:26
收藏:
0 评论:
0 赞:
0 阅读:
286
截取UIImage指定大小区域 最近遇到这样的需求:从服务器获取到一张照片,只需要显示他的左半部分,或者中间部分等等。也就是截取UIImage指定大小区域。 UIImage扩展 我的解决方案是对UIImage进行扩展。通过CGImageRef和CGImage完成截取,调用的方法是:CGImageCr
分类:
其他 时间:
2016-02-18 01:18:06
收藏:
0 评论:
0 赞:
0 阅读:
170
http://rubyinstaller.org/downloads/下载 https://git-for-windows.github.io/点击 跳转到如下页面(https://github.com/git-for-windows/git/releases/tag/v2.7.1.windows....
分类:
其他 时间:
2016-02-18 01:17:35
收藏:
0 评论:
0 赞:
0 阅读:
180
<!-- h3 { margin-top: 0.19in; margin-bottom: 0.19in; direction: ltr; color: rgb(0, 0, 0); widows: 2; orphans: 2; page-break-after: auto; }h3.western {
分类:
其他 时间:
2016-02-18 01:17:25
收藏:
0 评论:
0 赞:
0 阅读:
328
( ̄▽ ̄)" #include #include #include #include using namespace std; const int INF=10e8; const int MAXN=110; int k,minn; int c[MAXN][MAXN],lc[MAXN],level[M...
分类:
其他 时间:
2016-02-18 01:17:15
收藏:
0 评论:
0 赞:
0 阅读:
169
参考 http://blog.csdn.net/u012830807/article/details/17333331 JDBC中Statement 接口提供了三种执行 SQL 语句的方法: executeQuery executeUpdate execute 使用哪一个方法由 SQL 语句所产生的
分类:
其他 时间:
2016-02-18 01:17:05
收藏:
0 评论:
0 赞:
0 阅读:
293
作业内容:计算器 1 #!/usr/bin/env python 2 # -*- coding:utf-8 -*- 3 import re,time 4 #加减字符处理函数 5 def handle_symbol(cal_str): 6 # if cal_str.__contains__("+-")
分类:
其他 时间:
2016-02-18 01:16:34
收藏:
0 评论:
0 赞:
0 阅读:
287
( ̄▽ ̄)" #include #include #include #include #include #include #include using namespace std; const int eps=1e-7; const int MAXN=110; int N,M,S; double V...
分类:
其他 时间:
2016-02-18 01:16:14
收藏:
0 评论:
0 赞:
0 阅读:
124