0%

原文地址: http://stackoverflow.com/questions/956361/apache-tomcat-using-mod-proxy-instead-of-ajp以 CentOS 为例:新建如下文件: 1vim /etc/httpd/conf.d/proxy.conf 内容如下: 1234567891011<VirtualHost *:80> ServerName public.server.name ProxyRequests Off ProxyPreserveHost On <Proxy *> Order deny,allow Allow fr ...
阅读全文 »

原文地址: http://sysadminsjourney.com/content/2010/02/01/apache-modproxy-error-13permission-denied-error-rhel/现象:Apache 错误 Log 如下: 12[Wed Feb 08 05:53:54.633904 2017] [proxy_http:error] [pid 29252] [client 172.30.1.26:21397] AH01114: HTTP: failed to make connection to backend: localhost[Wed Feb 08 05:54 ...
阅读全文 »

原文地址: http://www.cnblogs.com/azhqiang/p/4596793.html JAVA 遍历文件夹下的所有文件(递归调用和非递归调用) JAVA 遍历文件夹下的所有文件(递归调用和非递归调用) 不使用递归的方法调用 123456789101112131415161718192021222324252627282930313233343536public void traverseFolder1(String path) { int fileNum = 0, folderNum = 0; File file = new File(path); if (fil ...
阅读全文 »

原文地址:https://dzone.com/articles/android-libraries-that-can-clean-up-your-codehttp://www.iteye.com/news/32065 1.Butter Knifehttp://jakewharton.github.io/butterknife/Bind Android views and callbacks to fields and methods. 2.Ice Pickhttps://github.com/frankiesardo/icepick用于简化保存和恢复实例状态的生命周期。Icepick is a ...
阅读全文 »

本文主要介绍在 CentOS7 下 OpenLDAP Server 安装及配置方法,以及如何使用 phpLDAPadmin 和 Java LDAP 访问 LDAP Server。本人也是刚刚学习 LDAP,因此本文主要面向 LDAP 的初学者。**高手请绕行!**学习前提: 了解 Linux 常用命令及编辑工具的使用方法。 了解 LDAP 的概念及基础知识点(百度即可)。系统环境:CentOS Linux release 7.2.1511 (Core) 64位Linux version 3.10.0-327.el7.x86_64gcc version 4.8.3 20140911 (Red H ...
阅读全文 »

解决办法:首先要先在后台启动一个 CentOS7 容器(注意不要少参数): 1docker run -d -e "container=docker" --privileged=true -v /sys/fs/cgroup:/sys/fs/cgroup --name centos7 centos /usr/sbin/init 然后再进入这个容器即可: 1docker exec -it ab49ca003950 /bin/bash
阅读全文 »

前提:本文使用了 ButterKnife 依赖库开始环境: Android Studio在 Module 文件夹下的 build.gradle 文件中追加 zxing 依赖: 1compile 'com.google.zxing:core:3.3.0' 之后添加图片长按事件(此处使用了 ButterKnife 的注解),并实现识别二维码的功能: 123456789101112131415161718192021222324252627282930313233343536373839404142434445@OnLongClick({R.id.imageView&# ...
阅读全文 »

原文地址: http://stackoverflow.com/questions/33316837/how-to-prevent-items-from-getting-duplicated-when-scrolling-recycler-view RecyclerView 数据显示重复的问题。(ListView 等解决方法类似)在网上找了好久,发现修改方法都太麻烦,而且有的还比较山寨。我觉得这个问题,应该有很简单的修改方法,于是经过各种查找,终于找到了比较正经而简单的修改方法:在 Adapter 中覆写如下方法即可: 12345678@Overridepublic long getItemId ...
阅读全文 »

最近的项目要使用 hubot,于是折腾了两天,发现还挺有意思的。现在与大家分享下心得。安装 Hubot这个就不多说了,请大家自行按照官网进行安装即可。https://hubot.github.com/docs/[安装 Hubot For Weixin Adapter]https://github.com/KasperDeng/Hubot-WeChat 按照这个开源的项目,安装 Adapter。安装没什么好说的,一般不会出现什么问题。这里主要说说容易出错的地方:1)config.yaml 位于当前项目 node_modules/hubot-weixin/config.yaml ...
阅读全文 »

本人的 OS 环境:Ubuntu 16.04 LTS Desktop arm64 UltraEdit 版本:UltraEdit Version 15.1.0.8网上其他的方法都是大同小异的,原理都是想办法删除 uex 的配置文件。但是网上的方法对于 v15 以上的版本基本都不太好使,原因是,少删除的一些配置文件。首先关闭 uex, 然后再执行如下脚本,就可无限制次反复试用 30 天,不用担心试用到期后无法使用了。注意:该方法会删除所有 uex 配置,包括个人设置。建议在快要到期时,提前执行如下脚本: 123rm -rfd ~/.idm/uexrm -rf ~/.idm/*.splrm -rf ...
阅读全文 »