原创 Rest Status Codes

This page is created from HTTP status code information found at ietf.org and Wikipedia. Click on the category heading

原创 jquery hoverIntent 插件介紹

hoverIntent jQuery Plug-in hoverIntent is a plug-in that attempts to determine the user's intent... like a crystal bal

原创 Migrate MySQL to MariaDB in Ubuntu 12.10

If you have MySQL installed on an Ubuntu (12.10) server and are looking to migrate to MariaDB , here are the steps to

原创 freemarker 定義模板layout

  定義下面類, 會在以後模板中使用到 package com.vogella.freemarker.first; public class ValueExampleObject { private String name;

原创 linux 下查找最大文件並清除日誌文件

最近服務器的空間快滿了, 但一直不知道是哪些文件增加的太快了 在網上查了一下資料, 可以找出文件大於100M的所以文件。   find / -type f -size +100000k -exec ls -lh {} \; | awk

原创 通過spring來設置SSL的keystore和trust store

pass the keystore and trust store of the client and server as follows: 通過下面方法設置SSL的keystore和trust store, 注入環境變量   <bea

原创 防止mysqldump編碼問題

Creating a MySQL dump file of your database can be fairly straightforward, but, if you aren't careful, you could corru

原创 drupal entitycache 性能問題

Entity cache 能提高性能, 把drupal 的entity 緩存起來, 但是不能跟memcache 和redis 一起用, 不然一刪除一個node, 就會清空所有的緩存   Entity cache puts core en

原创 heritrix queue 分配策略

  最近用heritrix 爬取網站, 發現很慢, heritrix 的QUEUE的分配策略 會影響速度,  比如用HostnameQueueAssignmentPolicy, 一個網站只分配一個Queue,  如果這個網站有很多頁面要

原创 利用TOMCAT的日誌查出SOLR的慢查詢

TOMCAT的日誌如下, 我想查出一些很慢的查詢   寫道 182460138 [http-nio-8080-exec-13] INFO org.apache.solr.core.SolrCore – [collection1] w

原创 maven repository mirror china

最近使用maven, 發現下載很慢, 發現可以修改settings.xml 來加載速度     <?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven.

原创 jeecms 的體驗

在ITEYE上看到很多JEECMS的帖子, 於是自己下載下來, 體驗了一下。   JEECMS採用hibernate3+spring mvc+spring3+freemarker技術架構。   JEECMS的自定義模型吸引我了, 所謂自

原创 cargo maven plugin 部署tomcat7, 兼容 tomcat8

cargo maven plugin 部署tomcat7, 兼容 tomcat8   插件來源於下面網站 http://cargo.codehaus.org/Maven2+plugin   Pom.xml <project xmlns=

原创 maven下載源碼

maven 的 mvn eclipse:eclipse 可以用來下載源碼, 但今天發現並沒有下載, 顯示以下消息     寫道 INFO] Scanning for projects...[INFO][INFO] -----------

原创 freemarker layout 模板使用

  layout 文件如下: <#-- layout.ftl Copyright 2010 Jack Leow Licensed under the Apache License, Version 2.0 (the "Li