`
eimhee
  • 浏览: 2113817 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
connectbot 1.8.2 下载from github, 绝对是原版本, 从官网下载不了, 所以上传到这里   Compiling --------- To compile ConnectBot using Ant, you must specify where your Android SDK is via the local.properties file. Insert a line similar to the following with the full path to your SDK: sdk.dir=/usr/local/android Pr ...
网址同时访问量比较大,此时jetty就会报错,报错信息中包含“Too many open files”,例如: java.io.FileNotFoundException:  (Too many open files)        at java.io.FileOutputStream.open(Native Method)        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)        at java.io.FileOutputStream.<init>(FileOutput ...
  httpclient4.3下载远程图片,设置user-agent和伪装成google的refer, 并设置timeout.   首先maven中加入jar依赖关系   <!-- lock httpclient version --> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.3.6</version&g ...
本文是把session 存在数据库当中, 为测试方便采用hsql数据库,hsql数据库比较小, 使用起来很方便, 在产品环境还是换会mysql 数据库好一些。   配置参考下面页面 http://www.eclipse.org/jetty/documentation/current/session-clustering-jdbc.html   主要有2个部分要配置, session ID manager和session manager。     session ID manager是确保session IDs是唯一的,并把session 信息保持在数据库当中。所有web app ...
  Jetty 的Maven插件适合快速开发和测试。 The Jetty Maven plugin is useful for rapid development and testing. You can add it to any webapp project that is structured according to the usual Maven defaults. The plugin can then periodically scan your project for changes and automatically redeploy the webapp if any ...
  参考 http://jira.codehaus.org/browse/JETTY-1503 写道 Don't forget you can use the following to specify which jars to scan in your webapp:org.eclipse.jetty.server.webapp.WebInfIncludeJarPatterneg./.*foo-api-[^/]\.jar$|./.*bar-[^/]\.jar$|./.*wibble[^/]\.jar$   在使用maven开发web项目极大地方便了jar包的依赖,在测试时也可以集 ...
如何能在集群中的多个节点之间保持数据的一致性,会话(Session)信息是这些数据中最重要的一块。   本文当采用tomcat默认集群配置(<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>)时,配置的细节实际上被省略了,对于大多数应用而言,使用默认配置已经足够。   下载tomcat 8.0 到本地, 保存为tomcat1,  复制tomcat1 为tomcat2, 修改tomcat2的端口设置,可以参考下面这个链接修改端口。 http://crunchify.com ...
  定义下面类, 会在以后模板中使用到 package com.vogella.freemarker.first; public class ValueExampleObject { private String name; private String developer; public ValueExampleObject(String name, String developer) { this.name = name; this.developer = developer; } public String get ...
hoverIntent jQuery Plug-in hoverIntent is a plug-in that attempts to determine the user's intent... like a crystal ball, only with mouse movement! It is similar to jQuery's hover method. However, instead of calling the handlerIn function immediately, hoverIntent waits until the user's mouse slows ...
cargo maven plugin 部署tomcat7, 兼容 tomcat8   插件来源于下面网站 http://cargo.codehaus.org/Maven2+plugin   Pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 h ...
This page is created from HTTP status code information found at ietf.org and Wikipedia. Click on the category heading or the status code link to read more. 1xx Informational This class of status code indicates a provisional response, consisting only of the Status-Line and optional headers, a ...
Creating a MySQL dump file of your database can be fairly straightforward, but, if you aren't careful, you could corrupt the character set in your backup file.I used to created a database dump using a command like the following:   mysqldump -u nathan -p database1 > database1.backup.sql   The ...
  layout 文件如下: <#-- layout.ftl Copyright 2010 Jack Leow Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LIC ...
  最近用heritrix 爬取网站, 发现很慢, heritrix 的QUEUE的分配策略 会影响速度,  比如用HostnameQueueAssignmentPolicy, 一个网站只分配一个Queue,  如果这个网站有很多页面要爬取, 这些页面全部放到一个queue里面, 很多页面就会阻塞在这个Queue里, 要经过很长时间才能处理。   相比之下, 对一个网站的爬取用SurtAuthorityQueueAssignmentPolicy 策略会好很多, 会根据网站的URL结构放入不同的queue中,  比如 http://www.ebookl.com/magazi ...
在ITEYE上看到很多JEECMS的帖子, 于是自己下载下来, 体验了一下。   JEECMS采用hibernate3+spring mvc+spring3+freemarker技术架构。   JEECMS的自定义模型吸引我了, 所谓自定义模型, 是能定义栏目或者内容的字段。界面如下         自己定义了栏目内容的模型, 然后看了一下数据库, MariaDB [jeecms]> show table +------------------------+ | Tables_in_jeecms | +----------------------- ...
Global site tag (gtag.js) - Google Analytics