Archive

Archive for the ‘Misc’ Category

xmarks也被”和谐”掉

October 20th, 2009 proguru No comments

  大约从前天开始xmarks开始不正常,无法同步,总以为只是xmarks服务器在维护什么的,很快就能用了,毕竟用了这么久,都习惯了。好几天过去了,还是不能用,google一下,原来大家都无法同步,原来是被“墙”了,真不敢相信,这么个有用的工具,招谁惹谁了。现在连骂都不想骂了,真应了那句话,“天朝有风险,投胎需谨慎”。
  xmarks之后,下一个遭毒手的会是谁呢?

Categories: Misc Tags:

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:

PC BIOS代码和数据分布示意图(PC BIOS Code and Data Layout)

July 4th, 2009 proguru No comments

本图示意了实模式下PC BIOS代码和数据在内存中的映射位置。请注意,保护模式下可能与此不同,映射到了高端内存位置,具体不详。
bios

pdf格式文件bios.pdf,OpenOfficeOrg源文件bios.odg

Categories: Misc Tags:

条件跳转指令Jcc(Jump condition code)

July 3rd, 2009 proguru No comments

关于条件跳转指令,特别是用于有符号数比较的Jcc指令,网上的文章多有讹误,这次彻底的厘清一下,以备忘。

在介绍条件跳转指令之前,介绍一下EFLAGS寄存器中的状态标志(Status Flag)是有必要的,Jcc中的cc(condition code)即表示需要测试的状态标志或状态标志组合。EFLAGS寄存器的低16位在8086时代叫做FLAGS寄存器,又称作程序状态字PSW(Program Status Word)。
Read more…

Categories: Misc Tags:

负数补码(two’s complement)的原理及证明

July 1st, 2009 proguru No comments

在本文里面,com指代complement, neg指代negative,并且本文涉及的是”2的补码”(two’s complement)而不是”1的补码”(one’s complement)

学过计算机的大部分人都知道负数在计算机内部是用补码表示的,但是大部分的教材和文章里面都只是简单的告诉你负数的补码等于其反码加一云云,至于为什么是这样,则基本上都语焉不详。

负数用补码表示的好处就是减法可以转化为加法,简化硬件设计,CPU只用一个加法器就可以进行加减法运算了。

下面我就尝试着来证明一下,为什么负数的补码等于反码加一。
理解下面的推导要求读者必须了解模数的概念和求模运算。
Read more…

Categories: Misc Tags:

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