1 前言
有时候我们的程序中要提供可以使用代理访问网络,代理的方式包括http、https、ftp、socks代理。比如在IE浏览器设置代理。
那我们在我们的java程序中使用代理呢,有如下两种方式。直接上代码. 2 采用设置系统属性 import
java.net.Authenticator;im...
分类:
编程语言 时间:
2014-05-27 02:41:39
阅读次数:
338
MongoDB在Windows中默认的数据库目录是c:\data。如果在没有该目录的情况下,直接运行mongod.exe,就会报如下错误:在某些情况下,我们并不想把mongoDB的数据库放在c盘,这时候有两种方法可以切换数据库目录。1.
命令方式首先创建数据库目录,例如d:\data。然后运行命令m...
分类:
数据库 时间:
2014-05-27 02:06:05
阅读次数:
1010
@import url("global.css");
分类:
Web程序 时间:
2014-05-27 01:55:06
阅读次数:
216
using System;using System.Collections;using
System.Text;using System.DirectoryServices.AccountManagement;using
System.Data;using System.Configuration;...
分类:
其他好文 时间:
2014-05-27 01:31:12
阅读次数:
426
1、将样式放入一个文件进行引用@import
url("../media/css/bootstrap.min.css");@import
url("../media/css/bootstrap-responsive.min.css");@import
url("../media/css/font-a...
分类:
编程语言 时间:
2014-05-27 01:29:55
阅读次数:
291
Google has deprecated HttpClientChoose an HTTP
ClientMost network-connected Android apps use HTTP to send and receive data.
Android includes two HTTP ...
分类:
其他好文 时间:
2014-05-27 01:12:43
阅读次数:
343
CentOS Rsync服务端与Windows cwRsync客户端实现数据同步2012年05月06日
? Rsync ? 暂无评论 ? 被围观 3,622次+说明:1、Rsync服务端系统:CentOS
5.5IP地址:192.168.21.160数据存放目录:/data/osyunwei2、cw...
using System;using System.Data;using
System.Configuration;using System.Web;using System.Web.Security;using
System.Web.UI;using System.Web.UI.WebContro...
分类:
其他好文 时间:
2014-05-19 13:39:55
阅读次数:
131
前情回顾根据之前的学习,我们形成了一个view与一个messageCenterview这块来说又内建了一套mvc的东西,我们这里来理一下首先View一层由三部分组成:①
view② dataAdpter③ viewControllerview一块两个重要数据是模板以及对应data,一个状态机stat...
分类:
其他好文 时间:
2014-05-19 13:12:01
阅读次数:
339
zxing
github连接:https://github.com/zxing/zxing以下为修改方法Step 1: Add following lines to
rotate data beforebuildLuminanceSource(..)indecode(byte[] data, int...
分类:
移动开发 时间:
2014-05-19 12:06:40
阅读次数:
629