- 浏览: 145084 次
- 性别:
- 来自: 北京
最新评论
-
zendly:
mark一下
NoSql 之 Cassandra 查询 -
wingware:
通过火狐浏览器,访问下面网址可导出12306的证书https: ...
https -
pepsi78:
非常好,代码牛X,又简单易用
JS中画线 -
yaogang7321:
dynamic.12306.cn.crt
请问如何获得
https -
ap0406708:
ap0406708 写道有个bug
Sorry,我错了。完美 ...
java unicode to utf-8
文章列表
<embed id="dddd" wmode="transparent" src="http://www.iteye.com/javascripts/syntaxhighlighter/clipboard_new.swf" width="14" height="15" flashvars="clipboard=dddddddddddddddd" quality="high" allowscriptaccess="always" ty ...
Eclipse中运行正常,在bat下运行报错:
java.security.NoSuchAlgorithmException: Cannot find any provider supporting
解决办法,添加以下jar包。
jre/lib/rt.jar
jre/lib/jsse.jar
jre/lib/jce.jar
jre/lib/charset.jar
jre/lib/ext/dnsns.jar
jre/lib/ext/sunpkcs11.jar
jre/lib/ext/sunjce_provider.jar
jre/lib/ext/localedata.jar
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigDecimal;
public class CPULoad {
private static int CPU_SLEEP_TIME = 3000;
private static long[] getCpuInfo() throws IOException {
long TO ...
CountDownLatch如其所写,是一个倒计数的锁存器,当计数减至0时触发特定的事件。利用这种特性,可以让主线程等待子线程的结束。
private static final int THREADS = 100;
/** 预设计数器 */
final CountDownLatch ct = new CountDownLatch(THREADS);
for (int i = 0; i < THREADS; i++) {
new Thread() {
public void run() {
//做多线程操作.
...
#!/bin/sh
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
...
#####################################################
#SHELL编程中返回0,为true
#####################################################
#####################################################
# is running
#####################################################
running()
{
if [ "ABC" == "ABC$1" ...
linux多网卡时跟踪路由的轨迹,就能确定哪个网卡可以路由出去
traceroute www.google.com
linux下抓包
tcpdump -i any -s 0 -vv port 9803 -w im-disp.cap
public static byte [] reduceImg(byte [] imgData, int widthdist, int heightdist) {
ByteArrayOutputStream outputStream = null;
ByteArrayInputStream inputStream = null;
try {
inputStream = new ByteArrayInputStream(imgData);
Image src = javax.imageio.ImageIO.read(inputStream);
//TY ...
keytool -import -keystore "%JAVA_HOME%/jre/lib/security/cacerts" -file dynamic.12306.cn.crt
输入keystore密码:changeit
String image = "https://dynamic.12306.cn/otsweb/passCodeAction.do?rand=lrand&"+Math.random();
System.out.println(image);
URL httpURL = new URL(image); ...
我们可以用CSS语法来控制超链接的形式、颜色变化,为什么链接一定要使用下划线和颜色区分呢? 其主要原因主要是考虑到 1、视力差的人 2、色盲的人 。。。
下面我们做一个这样的链接:未被点击时超链接文字无下划线,显示为蓝色;当鼠标在链接上时有下划线,链接文字显示为红色;当点击链接后,链接无下划线,显示为绿色。
实现方法很简单,在源代码的<head>和<head>之间加上如下的CSS语法控制:
<style type="text/css">
<!--
a:link { text-decoration: ...
package test.wingware;
public class UnicodeToUTF8 {
private static final int MASKBITS = 0x3F;
private static final int MASKBYTE = 0x80;
private static final int MASK2BYTES = 0xC0;
private static final int MASK3BYTES = 0xE0;
// private static final int MASK4BYTES = 0xF0;
// private ...
public class TestSystemproperty {
public static void main(String[] args){
System.out.println("Java运行时环境版本:\n"+System.getProperty("java.version"));
System.out.println("Java 运行时环境供应商:\n"+System.getProperty("java.vendor"));
System.out.println(&quo ...
1、以oracle系统用户登陆,设置当前实例
export ORACLE_SID=CRMtest
或用vi来编辑profile文件
/home/oracle > vi .profile
export ORACLE_SID = CRM64/crmtest
wq
2、查看设置的实例是否为要启动的实例
echo $ORACLE_SID --查看当前Oracle实例的sid
3、以DBA的身份登陆到sqlplus
sqlplus "/as sysdba"
4、启动数据库实例
startup
5、停止数据库实例
shutdown
6、如果连接数据库提示ORA-15241 ...
archive log 日志已满
ORA-00257: archiver error. Connect internal only, until freed 错误的处理方法
1. 用sys用户登录
sqlplus sys/pass@tt as sysdba
2. 看看archiv log所在位置
SQL> show parameter log_archive_dest;
NAME TYPE VALUE
------------------------------------ --------- ...