Archive

Archive for September, 2009

use bridges to antibanned for tor on debian/ubuntu linux

September 27th, 2009 proguru 2 comments

tor was banned recently by “some fucking reason”,all tor tcp connections stay at SYN_SENT state,that is,the packets is eated somewhere,so the connections can’t be established.oh fuck!

to reslove this fucking matter,following the steps list below.

step 1:
send a mail with subject and content all “get bridges” to bridges@torproject.org,after a moment,the bridges list will be delivered to your mailbox.the bridges list looks like this

bridge ip:port

it can be more than one bridges.

step 2:
open the /etc/tor/torrc file,add tow lines with contents “UseBridges 1″ and “UpdateBridgesFromAuthority 1″ separately at the last.whereafter,add the bridges you received.finally looks like this
UseBridges 1
UpdateBridgesFromAuthority 1
bridge ip:port

step 3:
issue the comman
sudo /etc/init.d/tor restart
on terminal to restart the tor and it will be ok

the great fucking wall is damn.

Categories: Misc Tags:

服务器名字指示SNI(Server Name Indication)

September 21st, 2009 proguru No comments

Server Name Indication是用来改善SSL(Secure Socket Layer)和TLS(Transport Layer Security)的一项特性。它允许客户端在服务器端向其发送证书之前请求服务器的域名。这对于在虚拟主机模式使用TLS是必要的。

TLS背景

加密一个面向流的通讯会话最常用的方法之一就是使用TLS协议。比如,当用户在浏览器的地址栏里面输入https时就是在使用这个协议。

为了确认用户想要连接的站点就是浏览器实际连接到的站点,TLS使用包含站点域名的数字签名证书。客户端软件(比如浏览器)通常信任这个证书,如果这个证书是由其内置信任的认证机构签发的。
在TLS启动阶段,客户端软件比较用户输入的URI的域名部分与在服务器证书里面找到的域名部分,如果比较失败,浏览器会提示用户,这个站点的证书存在问题。
Read more…

Categories: Misc Tags:

Oracle Jobs与Exp/Imp

September 21st, 2009 proguru No comments

最近因为一点儿小问题,用Exp/Imp做了一次数据恢复。恢复以后本来正常的snapshot刷新出了问题,job不工作了,本来一天要更新两次数据,现在数据停止更新了。
用system登录oracle,然后select * from dba_jobs;发现所有的jobs的LOG_USER和PRIV_USER变成了system用户,而SCHEMA_USER还是原来的用户,而且NEXT_DATE也变的面目全非。原来是Imp时jobs全部corrupt掉了。

出现这个情况的原因是Exp和Imp的时候都是使用的system用户,所以为带有jobs的用户做Exp/Imp时,一定要用这个用户自身来导入、导出。
Read more…

Categories: Database Tags:

Copyleft © 2009-2010 Proguru 本站为原创网站,除非另有声明,本网站采用知识共享“署名2.5 中国大陆”许可协议授权.