<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[java]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/Ping_QC</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; Ping_QC]]></copyright><item><title><![CDATA[eclipse 主题分享]]></title><link>https://blog.csdn.net/Ping_QC/article/details/7622209</link><guid>https://blog.csdn.net/Ping_QC/article/details/7622209</guid><author>Ping_QC</author><pubDate>Fri, 01 Jun 2012 09:03:56 +0800</pubDate><description><![CDATA[昨天网上找了好多主题，很多看着很好，实际使用是多多少少会有点不舒服，今天发现eclipse.org上也提供了很多主题
http://marketplace.eclipse.org/content/eclipse-color-theme

主题使用：下载epf文件后，在eclipse中进行如下步骤：
File-》Import-》general->Preference 然后选择epf文件后fi]]></description><category></category></item><item><title><![CDATA[maven 添加第三方jar到本地仓库]]></title><link>https://blog.csdn.net/Ping_QC/article/details/7621362</link><guid>https://blog.csdn.net/Ping_QC/article/details/7621362</guid><author>Ping_QC</author><pubDate>Thu, 31 May 2012 21:04:23 +0800</pubDate><description><![CDATA[mvn install:install-file -Dfile=taobao-sdk-java-taobaoke-20120531.jar -DgroupId=com.taobao -DartifactId=taobao-sdk -Dversion=2012.5.31 -Dpackaging=jar -DgeneratePom=true


不知道怎么添加其源代码，想到stackoverfl]]></description><category></category></item><item><title><![CDATA[jquery实现返回顶/底的滑动效果]]></title><link>https://blog.csdn.net/Ping_QC/article/details/7601313</link><guid>https://blog.csdn.net/Ping_QC/article/details/7601313</guid><author>Ping_QC</author><pubDate>Fri, 25 May 2012 11:50:56 +0800</pubDate><description><![CDATA[平时逛博客的时候经常可以可到一个返回顶（底）部的按钮，这样对较大篇幅的文章，可以提高用户体验
最简单的实现就是使用书签
在顶部和底部分别加上


但是这样的话效果不明显，现在很多站点，比如微博啊，百度贴吧什么的，都加了滚动效果，百看不厌。一直想仿一个，今天总算成了
废话不多说，直接上代码，详情见注释：

	
	
	
	$(function(){
		$('#up').click(fu]]></description><category></category></item><item><title><![CDATA[eclipse开发java web应用时注意点]]></title><link>https://blog.csdn.net/Ping_QC/article/details/7529185</link><guid>https://blog.csdn.net/Ping_QC/article/details/7529185</guid><author>Ping_QC</author><pubDate>Wed, 02 May 2012 19:57:25 +0800</pubDate><description><![CDATA[1、

以前在myeclise里用上面那句添加标签没有问题， 但是eclipse不行， 应为缺少jstl.jar 和 standar.jar ，MyEclipse是自动添加的所以不会报错说找不到
这两个jar包可以在tomcat的example项目里面拷


2、

新建了一个servlet， 说找不到javax.servlet.http.*
需要为eclipse添加目标环境（t]]></description><category></category></item><item><title><![CDATA[httpclient 模拟登录人人网, 发心情（刷屏）]]></title><link>https://blog.csdn.net/Ping_QC/article/details/7487352</link><guid>https://blog.csdn.net/Ping_QC/article/details/7487352</guid><author>Ping_QC</author><pubDate>Sun, 22 Apr 2012 20:22:51 +0800</pubDate><description><![CDATA[登录的站点是3g.renren.com 因为是手机人人， 页面比较简单
首先用HttpGet取出"http://3g.renren.com"的html代码， 是用Jsoup解析出登录表单， 包括验证码的图片的url
因为没法做到绕过验证码，所以用验证码的url构建一个image， 显示出来让用户自己填写
构建image时一定要用httpget， 开始使用了ImageIO.read(new U]]></description><category></category></item><item><title><![CDATA[HDU 1251 统计难题 （java版字典树）]]></title><link>https://blog.csdn.net/Ping_QC/article/details/7472189</link><guid>https://blog.csdn.net/Ping_QC/article/details/7472189</guid><author>Ping_QC</author><pubDate>Wed, 18 Apr 2012 09:36:39 +0800</pubDate><description><![CDATA[十分基础的字典树，直接上代码


import java.io.BufferedInputStream;
import java.util.Scanner;

public class Main {
	private static Scanner cin = new Scanner(new BufferedInputStream(System.in));
	public static voi]]></description><category></category></item><item><title><![CDATA[struts2 get方式传中文乱码]]></title><link>https://blog.csdn.net/Ping_QC/article/details/7469408</link><guid>https://blog.csdn.net/Ping_QC/article/details/7469408</guid><author>Ping_QC</author><pubDate>Tue, 17 Apr 2012 14:20:17 +0800</pubDate><description><![CDATA[解决方法1：
若使用tomcat， 打开server.xml， 找到如下， 加下URIEncoding="UTF-8", 大概在50行左右
这种方法比较简单， 但是依赖于web容器， 不知道化成其他容器后会不会还有类似的设置？


    <Connector port="8080" protocol="HTTP/1.1" 
               connectionTimeou]]></description><category></category></item><item><title><![CDATA[HDU 1009 FatMouse' Trade]]></title><link>https://blog.csdn.net/Ping_QC/article/details/7466081</link><guid>https://blog.csdn.net/Ping_QC/article/details/7466081</guid><author>Ping_QC</author><pubDate>Mon, 16 Apr 2012 15:55:23 +0800</pubDate><description><![CDATA[为了更深层次的了解java，继续上OJ A题
import java.io.BufferedInputStream;
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	private static Scanner cin = new Scanner(new BufferedInputStream(Sy]]></description><category></category></item><item><title><![CDATA[Lucene（3.5）解析查询表达式：QueryParser]]></title><link>https://blog.csdn.net/Ping_QC/article/details/7465888</link><guid>https://blog.csdn.net/Ping_QC/article/details/7465888</guid><author>Ping_QC</author><pubDate>Mon, 16 Apr 2012 15:24:04 +0800</pubDate><description><![CDATA[package com.test.lucene;

import java.io.File;

import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.Document;
imp]]></description><category></category></item><item><title><![CDATA[Lucene（3.5） 的几个查询]]></title><link>https://blog.csdn.net/Ping_QC/article/details/7450866</link><guid>https://blog.csdn.net/Ping_QC/article/details/7450866</guid><author>Ping_QC</author><pubDate>Wed, 11 Apr 2012 18:58:47 +0800</pubDate><description><![CDATA[几个查询用法如下代码：
其中

数字范围查询：索引时字段保存为
new NumericField(name,  Field.Store.YES(NO), true(false).setIntValue( num );
Query numericRangeQuery = NumericRangeQuery.newIntRange("size", 20, 150, true, true);]]></description><category></category></item><item><title><![CDATA[lucene 获取分词后的关键词]]></title><link>https://blog.csdn.net/Ping_QC/article/details/7448227</link><guid>https://blog.csdn.net/Ping_QC/article/details/7448227</guid><author>Ping_QC</author><pubDate>Wed, 11 Apr 2012 10:05:41 +0800</pubDate><description><![CDATA[使用不同的分词器， 最后得到的关键词不同， 需要的时间也不同
需要中文分词是， 用IKAnalyzer是不错的选择， 但相比时间， 我的电脑上大概分词需要800+ms


分词器工作流程：

输入文本（What's your name?）
    →关键词划分(What's ; your ; name)， 不同分词器分法不同
        →消除停用词()]]></description><category></category></item><item><title><![CDATA[lucene 学习笔记]]></title><link>https://blog.csdn.net/Ping_QC/article/details/7444305</link><guid>https://blog.csdn.net/Ping_QC/article/details/7444305</guid><author>Ping_QC</author><pubDate>Tue, 10 Apr 2012 10:41:04 +0800</pubDate><description><![CDATA[package com.test.lucene;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStre]]></description><category></category></item><item><title><![CDATA[java 版字典树]]></title><link>https://blog.csdn.net/Ping_QC/article/details/7437728</link><guid>https://blog.csdn.net/Ping_QC/article/details/7437728</guid><author>Ping_QC</author><pubDate>Sun, 08 Apr 2012 14:29:04 +0800</pubDate><description><![CDATA[public class Main {
	public static void main(String[] args) {
		String[] str = { "asdf", "asji", "bjkl", "cdsdf", "jdsfk" };
		Trie root = new Trie();
		for (String s : str) {
			insert(root, s);
		}]]></description><category></category></item><item><title><![CDATA[java 实现百度贴吧“只看楼主”]]></title><link>https://blog.csdn.net/Ping_QC/article/details/7415195</link><guid>https://blog.csdn.net/Ping_QC/article/details/7415195</guid><author>Ping_QC</author><pubDate>Sat, 31 Mar 2012 12:53:10 +0800</pubDate><description><![CDATA[这个功能主要是：先确定帖子的地址，然后获取html代码， 通过jsoup解析html， 然后把楼主发的提取出来保存到book.html
除了jsoup的使用， 更多的是要看贴吧帖子的大体结构：
1、先解析出楼主的用户名：
差看html代码可以知道用户名是在class="p_author_name" 的div里， 楼主当然是第一个，所以：

String lz = doc.getEleme]]></description><category></category></item><item><title><![CDATA[《嵌入式系统原理》课程网站总结]]></title><link>https://blog.csdn.net/Ping_QC/article/details/7352931</link><guid>https://blog.csdn.net/Ping_QC/article/details/7352931</guid><author>Ping_QC</author><pubDate>Thu, 22 Mar 2012 17:47:36 +0800</pubDate><description><![CDATA[这个网站是给学院的潘老师做的，最早接到这个事情是大二上学期，当时因为对他提出的一些要求（功能）没有十分的把握能做出来，最后找了个借口（因为是班主任推荐过去的，不好意思直接说我不会）推掉了。一年后的大三上，潘老师再次找到我问我有没有兴趣做，因为要求还是和以前一样，所以这次我就答应了，这可以说明这一年来我有在成长吧。这是这个项目真正的开始，大概是10月中旬吧，不记得了。截止目前，正好3月中旬，差多不有]]></description><category></category></item><item><title><![CDATA[spring mvc 笔记]]></title><link>https://blog.csdn.net/Ping_QC/article/details/7362460</link><guid>https://blog.csdn.net/Ping_QC/article/details/7362460</guid><author>Ping_QC</author><pubDate>Fri, 16 Mar 2012 19:37:12 +0800</pubDate><description><![CDATA[需要jar包（不一定是完整的）


这么多jar包肯定记不住，能记住的就是web包， core包， beans包，其他的可以启动下tomcat， 如果少了什么包，启动时一定会包缺了哪个，到时一个个加就ok了


首先配web.xml

    
        spring
        org.springframework.web.servlet.DispatcherServ]]></description><category></category></item><item><title><![CDATA[《java解惑》 笔记]]></title><link>https://blog.csdn.net/Ping_QC/article/details/7345988</link><guid>https://blog.csdn.net/Ping_QC/article/details/7345988</guid><author>Ping_QC</author><pubDate>Mon, 12 Mar 2012 19:04:52 +0800</pubDate><description><![CDATA[1、奇偶性

return (n % 2 == 1);问对于int n， 上式可否判断n奇偶性？

刚开始，认为可以的，但其实是错误的，对于整数n对2取余， 结果有1， 0， -1。 所以如果说 return (n % 2 != 0) 这样完全是可以的
高效版本：return (n & 1) != 0;



2、浮点数的精度问题

System.out.println(2.]]></description><category></category></item><item><title><![CDATA[java 基础知识]]></title><link>https://blog.csdn.net/Ping_QC/article/details/7336422</link><guid>https://blog.csdn.net/Ping_QC/article/details/7336422</guid><author>Ping_QC</author><pubDate>Fri, 09 Mar 2012 13:51:33 +0800</pubDate><description><![CDATA[1、jsp9个内置对象(红色是当时忘记的，把out忘了有点不应该)
request, response, session. application, exception, 
pageContext, out, config, page


2、Vector 和 ArrayList 有什么区别? HashTable 和 HashMap有什么区别?
Vector线程同步而ArrayList]]></description><category></category></item><item><title><![CDATA[oracle 上课笔记]]></title><link>https://blog.csdn.net/Ping_QC/article/details/7310334</link><guid>https://blog.csdn.net/Ping_QC/article/details/7310334</guid><author>Ping_QC</author><pubDate>Thu, 01 Mar 2012 17:37:29 +0800</pubDate><description><![CDATA[分页：
select * from (
    select e.*, rownum from (
        select * from emp
    ) e
    where e.rownum > 5 and e.rownum 
)


type: 
NUMBER(7,2) 总长度7位，小数2位
date      加天  hiredate + 1 
    加]]></description><category></category></item><item><title><![CDATA[Linux环境下项目部署]]></title><link>https://blog.csdn.net/Ping_QC/article/details/7291797</link><guid>https://blog.csdn.net/Ping_QC/article/details/7291797</guid><author>Ping_QC</author><pubDate>Fri, 24 Feb 2012 19:31:39 +0800</pubDate><description><![CDATA[今天心血来潮，把之前做的一个j2ee项目部署到了ubuntu上，特做记录。


1、安装jre
下载jre压缩包，解压，放到/opt下。
export PATH=$PATH:/opt/jre/bin    设置环境变量
tomcat需要一个JAVA_HOME 或者 JRE_HOME 也顺便设置了 export JRE_HOME=/opt/jre


2、安装tomcat
首先去]]></description><category></category></item></channel></rss>