Quantcast
Channel: PayMoon贝明实验室
Browsing all 130 articles
Browse latest View live

深度学习资源收集

MOOC课程 Machine Learning Course by Andrew Ng Neural Networks Course by Geoffrey Hinton Deep Learning for Natural Language Processing Course by Richard Socher Deep Learning | Udacity Course by Google...

View Article


更改DB mysql 密码万能法

[crayon-5727fa7f5b9af610777474/] [crayon-5727fa7f5b9b8574417861/]    

View Article


CentOS6搭建gitlab,使其拥有github功能,git管理,pull,push,注册,登陆,邮件,域名绑定

一、搭建gitlab [crayon-5727fa7f5b5d1256762578/] 其中 rpm包在这里下载 Index of /gitlab-ce/yum/el6/ http://mirrors.lifetoy.org/gitlab-ce/yum/el6/ 改端口,改数据库密码啥的, 首先要确认 service iptables status service iptables stop...

View Article

Host ‘xxx.xx.xxx.xxx’ is not allowed to connect to this MySQL server

添加其它root级别用户访问Mysql 描述: Host 'xxx.xx.xxx.xxx' is not allowed to connect to this MySQL server - Stack Overflow...

View Article

jackson解析json字符串

概述 jackson解析json例子 准备工作 基于JDK1.7,依赖Jackson框架类库: jackson-core-2.5.3.jar jackson-databind-2.5.3.jar Example 下面的例子是基于Jackson 2.x版本的树模型的Json解析。 要解析的Json字符串: [crayon-5729561f1a9c9715559706/] 示例代码:...

View Article


SpringMVC Hibernate no session found for current thread

配置了app-context.xml 中hibernate的各种设置,仍然报错, 关键配置:要配置txmanager, aop等,因为这是完整配置 [crayon-572d607b5a0c8345597045/] 配置 <property name="current_session_context_class">thread</property> 也不work....

View Article

如何使用ArrayList进行冒泡排序

[crayon-57316df90e904249452673/]  

View Article

no qualifying bean of type is defined

Multiple things can cause this, I didn't bother to check your entire repository, so I'm going out on a limb here. First off, you could be missing an annotation (@Service or @Component) from the...

View Article


org.hibernate.hql.ast.QuerySyntaxException: expecting OPEN, found ‘>’ near...

org.hibernate.hql.ast.QuerySyntaxException: expecting OPEN, found '>' near line 1, column 38 hibernate 对数据库的识别,原来sql 中有count , count 是数据库中关键字,所以报错

View Article


MySQL错误“Specified key was too long; max key length is 1000 bytes”的解决办法

今天在为数据库中的某两个字段设置unique索引的时候,出现了Specified key was too long; max key length is 1000 bytes错误 经过查询才知道,是Mysql的字段设置的太长了,于是我把这两个字段的长度改了一下就好了。...

View Article

如何使用命令行创建utf8 utf8_general_ci 的DBCommand to create MySQL database with...

If database name contains nonalphanumeric chars use "" to quote: CREATE DATABASE my-db CHARACTER SET utf8 COLLATE utf8_general_ci; When using in shell script quote the quotes with "\" mysql -p -e...

View Article

No modifications are allowed to a locked ParameterMap解决

通常,在使用spring,struts2或者其他框架的时候,会构造一个请求对象,改变请求里头的值。这时候就应该需要仔细的查看javaee servlet方面的知识。这里讲一个我经常要做的一件事:修改request里ParameterMap的值,如果直接修改 [crayon-573ec63b1adf2471754113/] 则会出现 [crayon-573ec63b1ae00265983585/]...

View Article

HashMap循环遍历方式及其性能对比

1. Map的四种遍历方式 下面只是简单介绍各种遍历示例(以HashMap为例),各自优劣会在本文后面进行分析给出结论。 (1) for each map.entrySet() Java 1 2 3 4 5 Map<String, String> map = new HashMap<String, String>(); for (Entry<String,...

View Article


【Redis 使用一】在项目中使用redis 并结合Spring

spring app-context.xml [crayon-57480dcf0c1eb557681481/] [crayon-57480dcf0c1f5463075252/] Java code [crayon-57480dcf0c1fc222321332/] [crayon-57480dcf0c201118345953/]  

View Article

【Redis 使用二】使用jedis 进行CRUD增删改查

[crayon-57480dcf0be0a493176163/]    

View Article


Image may be NSFW.
Clik here to view.

rabbitmq堆积消息后生产速率降低的问题分析及应对措施

问题描述: 在rabbitmq没有消费者的情况下,生产者持续向mq发消息,使得消息在mq中大量堆积,发送速率不受影响,但当有新的消费者连接上mq并开始接收消息时,生产速率大幅降低。 问题分析: Rabbitmq的中处理队列收发逻辑的是一个有穷状态机进程,它对消息的处理流程可以概括为下图所示的流程: 当MQ既有生产者也有消费者时,该状态机的处理流程为...

View Article

使用Spark和Kafka进行实时的数据流关联处理

This post goes over doing a few aggregations on streaming data using Spark Streaming and Kafka. We will be setting up a local environment for the purpose of the tutorial. If you have Spark and Kafka...

View Article


java中判断字符串是否为数字的方法的几种方法

1.用JAVA自带的函数 [crayon-574c18315c46a579375851/] 2.用正则表达式 首先要import java.util.regex.Pattern 和 java.util.regex.Matcher [crayon-574c18315c473030305837/] 3.使用org.apache.commons.lang...

View Article

Image may be NSFW.
Clik here to view.

JAVA WEB支持CORS 跨域访问

平时在web项目开发中会经常遇到一些跨域操作,但由于由于安全限制(同源策略, 即JavaScript或Cookie只能访问同域下的内容),会造成Origin null is not allowed by Access-Control-Allow-Origin”错误。目前经常用于跨域操作的两个解决方案: JSONP和CORS(Cross Origin Resource Sharing ) 问题原因...

View Article

mysqld: unknown variable ‘default-character-set=utf8’

今天升级mysql的时候,DB一直起不来 [crayon-575fec2b8c812645262614/] 查日志如下 [crayon-575fec2b8c824288382817/] 看到第一个Error,原来是这个问题 mysql - 'unknown variable "character-set-server=utf-8"' error at mysqldump - Stack...

View Article
Browsing all 130 articles
Browse latest View live