Michael Chu
朱秋旭 · 共 48 篇文章
What is the class of this image
What is the class of this image ? Discover the current state of the art in objects classification. MNIST CIFAR-10 CIFAR-100 STL-10 SVHN ILSVRC2012 task 1 http://rodrigob.github.io/are_we_there_yet/build/classification_datasets_results.html
2016-10-11 11:05 · ml · 评论(0)
有口碑的稳定的在线题库
有口碑的稳定的在线题库: http://acm.timus.ru/ URAL http://uva.onlinejudge.org/ UVA http://acm.sgu.ru/index.php SGU http://www.spoj.pl/ SPOJ - 波兰著名 OJ,好题 / 系列不少,缺点是机器太慢 http://poj.org/ POJ - 北大 http://acm.hdu.edu.cn/ HDU - 杭电 http://ace.delos.com/usacogate USACO - 算法入门级训练题(附带算法讲解) http://livearchive.onlinejudge…
2016-10-09 00:01 · 学习资源 · 评论(0)
快读定位线上机器问题
uptime dmesg | tail vmstat 1 mpstat -P ALL 1 pidstat 1 iostat -xz 1 free -m sar -n DEV 1 sar -n TCP,ETCP 1 top
2016-09-20 17:42 · linux · 评论(0)
unable to find valid certification path to requested target
When working on a client that works with an SSL enabled server running in https protocol, you could get error 'unable to find valid certification path to requested target' if the server certificate is not issued by certification authority, but a self signed or issued by a private CMS. Don't panic. …
2016-09-19 22:43 · Java · 评论(0)
从 vim 从恢复文件
如果vim 打开的文件不慎丢失,如何找回文件 在编辑文件的过程中,Vim将会在当前目录中自动生成一个以*.swp*结尾的临时交换文件,用于备份缓冲区中的内容。 参考文章: http://yyq123.blogspot.com/2012/03/vim-swap.html
2016-07-02 19:34 · vim · 评论(0)
如何做好网站seo
有个国外的seo软件,可能对baidu不友好,但是方法还是值得学习的 https://moz.com/beginners-guide-to-seo
2016-06-16 11:37 · seo · 评论(0)
mysql 忘记了密码?
1 看下mysql在哪里 which mysql /usr/local/bin/mysql 2 启动mysql, 没有密码乖乖使用安全模式 ./mysqld_safe –skip-grant-tables & 3 登陆客户端 mysql 4 修改root的密码 update mysql.user set password=password("root") where User="root"; mysql5.7 里面不太一样, update mysql.user set authentication_string =password("root") where User="root"; 5 f…
2016-06-08 19:00 · mysql · 评论(0)
mac下查找已经安装的java home路径
execute on termanel to get current jdk path: /usr/libexec/java_home get java path: which java readlink /usr/bin/java
2016-06-07 18:19 · Java · 评论(0)
如何快速生成maven项目
mvn -B archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DgroupId=com.gitzhu.common.zk -DartifactId=zkClient 执行 archetype:generate 的时候,会产生 [INFO] Generating project in Batch mode 然后就一直阻塞在这里 原因是:网速问题, 解决办法 设置maven不要从远程服务器上获取catalog,增加参数-DarchetypeCatalog=internal
2016-06-07 18:11 · maven · 评论(0)
mongo 启动方式
mongodb 使用命令行启动 #bin/mongod --dbpath arg directory for datafiles - defaults to /data/db --logpath arg log file to send write to instead of stdout - has to be a file, not directory --fork fork server process --port arg specify port number - 27017 by default 也可以使用配置文件 -f [ --config ] arg configuratio…
2016-05-30 17:43 · mongo · 评论(0)
Dangerous! Java中的HashMap
HashMap中是通过Entry存放键值对,通过hash算法计算出一个hashCode,然后存储到对应的位置,这样的工作方式决定了,在使用可变对象做为HashMap 的key的时候,如果没有override equals方法和hashCode方法,很有可能导致对象中元素的改变,使得产生不同的hash值,最终导致在当前的hashMap中找不到之前放入的值。所以在了解了hashMap的工作原理之后要慎重的使用HashMap。 最佳解决方式: 在使用mutable的对象作为hashMap的key 一定要重写hashCode 方法和equals方法,并且要使用当前对象的唯一标识生成hashCode …
2014-11-01 17:27 · JDK · 评论(0)
spring 容器初始化 bean 和销毁前操作定义方式
spring 容器初始化 bean 和销毁前所做的操作定义方式有三种: 第一种: 通过@PostConstruct 和 @PreDestroy 方法 实现初始化 和销毁bean之前进行的操作 第二种: 通过 在xml中定义init-method 和 destory-method方法 第三种: 通过bean实现InitializingBean和 DisposableBean接口
2014-10-25 12:57 · spring · 评论(0)
通过实现InitializingBean ,DisposableBean 接口完成初始化和销毁动作
直接用service实现两个接口: package com.myapp.core.annotation.init; import javax.annotation.PostConstruct; import javax.annotation.PreDestroy; import org.springframework.beans.factory.DisposableBean; import org.springframework.beans.factory.InitializingBean; public class PersonService implements Initializing…
2014-10-25 12:48 · spring · 评论(0)
使用spring xml完成初始化 bean 和销毁前所做的操作
spring xml: <bean id="personService" class="com.myapp.core.beanscope.PersonService" scope="singleton" init-method="init" destroy-method="cleanUp"></bean> 定义Service: package com.myapp.core.beanscope; public class PersonService { private String message; public String getMessage() { return message; } …
2014-10-25 12:45 · spring · 评论(0)
使用spring annotation完成初始化 bean 和销毁前所做的操作
package com.myapp.core.annotation.init; import javax.annotation.PostConstruct; import javax.annotation.PreDestroy; @Service public class PersonService { private String message; public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } @PostCon…
2014-10-25 12:37 · spring · 评论(0)