在使用URLDecoder对字符串进行解码的时候 报以下异常信息:
Exception in thread "main" java.lang.IllegalArgumentException: URLDecoder: Incomplete trailing escape (%) pattern
原因是字符串中包含有%字符...
分类:
其他好文 时间:
2014-05-07 08:20:06
阅读次数:
272
jsoup 是一款Java 的HTML解析器,可直接解析某个URL地址、HTML文本内容。
请参考:jsoup.org
例如: 抓取CSDN极客头条内容 soup.bsh
// package org.jsoup.examples;
import org.jsoup.Jsoup;
import org.jsoup.helper.Validate;
import org.jsoup.no...
分类:
编程语言 时间:
2014-05-07 07:29:59
阅读次数:
363
LRU Cache
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.
get(key) - Get the value
(will always be posi...
分类:
其他好文 时间:
2014-05-07 07:16:21
阅读次数:
316
Android-自定义meta-data扩展数据2014年5月5日 在接入第三方渠道SDK的时候,经常会看到其配置文件AndroidManifest.xml有类似如下的定义:
<meta-data
android:name="APP_ID"
android:value="037810BCE1D2260F32017643AC7D980...
分类:
移动开发 时间:
2014-05-07 06:50:16
阅读次数:
495
A dimensional database is a relational database that uses a dimensional data model to organize data. This model uses fact tables and dimension tables in a star or snowflake schema. So in general we ca...
分类:
其他好文 时间:
2014-05-07 06:29:37
阅读次数:
384
题意:所有n个人围成一个圈,
#include
#include
struct Node
{
int data;
Node *next;
Node *prior;
};
Node* CreateList(Node* &head, int n);
Node* searchk(Node *ptr, Node* &head, int k);
Node* rsearchm(Node...
分类:
其他好文 时间:
2014-05-07 06:26:28
阅读次数:
327
在使用jQuery Mobile进行开发的时候可以选择单页模版和多页模版,在使用单页模版的时候从一个页面跳转到另一个页面的时候需要从服务器请求,用户会感到略有停顿。使用多页模版,可以改善页面跳转之间的流畅性,但是多个页面要一次性下载,所以下载时间变长,用户体验也会受到影响。在基于预取技术的开发中,当第一个页面的DOM对象加载完成后,jQuery Mobile会对标记data-prefetch的链接...
分类:
移动开发 时间:
2014-05-07 03:51:49
阅读次数:
400
Django站点使用django_cas接入SSO(单点登录系统),配置完成后登录,抛出“urlopen error unknown url type: https”异常。寻根朔源发现是python内置的urllib模块不支持https协议。
>>> import urllib
>>> urllib.urlopen('http://www.baidu.com')
>
>>> url...
分类:
编程语言 时间:
2014-05-07 03:43:55
阅读次数:
424
#header .nav-box { background:url(images/nav-box-bg.gif) left top repeat-x; width:100%;}
repeat-x是横向铺满,就是在#header .nav-box中,图片nav-box-bg.gif会横向重复,直到铺满;
repeat-y是纵向,就这么回事,如果不想重复,no-repeat....
分类:
Web程序 时间:
2014-05-06 15:39:30
阅读次数:
355
方法一:
在Arcmap中转换:
1、加载要转换的数据,右下角为经纬度
2、点击View——Data Frame Properties——Coordinate System
3、导入或选择正确的坐标系,确定。这时右下角也显示坐标。但数据没改变
4、右击图层——Data——Export Data
5、Use the same coordinate system a...
分类:
其他好文 时间:
2014-05-06 15:00:20
阅读次数:
403