This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package client; | |
import java.io.IOException; | |
import java.nio.charset.Charset; | |
import org.apache.http.HttpEntity; | |
import org.apache.http.HttpResponse; | |
import org.apache.http.StatusLine; | |
import org.apache.http.client.ClientProtocolException; | |
import org.apache.http.client.HttpClient; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package client; | |
import java.io.IOException; | |
import java.nio.charset.Charset; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.apache.http.Consts; | |
import org.apache.http.HttpEntity; | |
import org.apache.http.HttpResponse; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package client; | |
import java.io.IOException; | |
import java.net.URLEncoder; | |
import java.nio.charset.Charset; | |
import org.apache.http.HttpEntity; | |
import org.apache.http.HttpResponse; | |
import org.apache.http.StatusLine; | |
import org.apache.http.client.ClientProtocolException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<Module> | |
<ModulePrefs title="__UP_frogName__" | |
directory_title="Tree Frog" | |
category="funandgames" | |
description="Add this tree frog to your page to see how he inquisitively follows your mouse or eats the flies you give it. You can change the color of the tree frog, the color of the background, the size of his belly, and add a background jpg image. " | |
author="Adam Bowman" | |
author_email="[email protected]" | |
title_url="http://abowman.com/google-modules/tree-frog/" | |
screenshot="http://hosting.gmodules.com/ig/gadgets/file/112581010116074801021/treefrog.png" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// des-ecb方式加密解密的key | |
public static final String DES_ECB_KEY = "01234567"; | |
/** | |
* 采用DES-ECB方式加密 | |
* | |
* @param text | |
* @return | |
*/ | |
public static String encryptText(String text) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 采用des-ecb的方式进行加密, | |
* @param text | |
*/ | |
function encryptText(text){ | |
var settings = { | |
des_ecb_key:"01234567", | |
des_ecb_iv:null | |
}; | |
var key = settings.des_ecb_key; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 真正的插入排序<br/> | |
* 时间复杂度为log(2)n (2为底数) | |
* | |
* 在一个数据组中,递归的将其分成两部分,最后,将其合并 | |
* | |
* @author weizhankui | |
* | |
*/ | |
public class MergeSort{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package first; | |
/** | |
* 合并排序,时间代价为O(n),总的计算次数是一定的,每次比较花得时间是个常量<br/> | |
* 但是前提是左右两个数组是排好序的 | |
* | |
* @author weizhankui | |
* @date 2014-7-27 | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Documents and Settings\weizhankui>gem install -v 2.3.5 rails | |
WARNING: RubyGems 1.2+ index not found for: | |
http://gems.rubyforge.org/ | |
RubyGems will revert to legacy indexes degrading performance. | |
Bulk updating Gem source index for: http://gems.rubyforge.org/ | |
ERROR: While executing gem ... (Gem::RemoteSourceException) | |
Error fetching remote gem cache: SocketError: getaddrinfo: 存储控制块被损坏 | |
。 (http://gems.rubyforge.org/yaml) |