facebook发布的xhp 下载安装。。
研究这个还得翻墙,晕。。
最新版本在这个地址 http://github.com/facebook/xhp/downloads
wget http://github.com/facebook/xhp/tarball/1.3.7
cd cd facebook-xhp-7464311
phpize Read the rest of this entry »
excel 工作区密码破解
今天下载了一个Excel2003文档,对里面的一些函数甚是感兴趣,但郁闷的是作者对文档进行了加密,有函数的地方全部设成只读属性了!
在Excel的菜单中点击”撤销工作表”,提示输入密码!原来如此,上网搜了一个VBA宏破解的方法,一下就成功了啊!牛人还真的多啊!不得不佩服啊,下面就说一下这个方法吧
1. 点击“宏”→“录制宏”,出现“录制新宏”窗口,在“宏名”定义一个名称为:PasswordBreaker,点击“确定”退出;
2. 再点击“宏”→“查看宏”,选择“宏名”下的“PasswordBreaker”并点击“编辑”,打开“Microsoft Visual Basic”编辑器,用如下内容替换右侧窗口中的所有代码:
Sub PasswordBreaker()
Dim i As Integer, j As Integer, k As Integer
Dim l As Integer, m As Integer, n As Integer
Dim i1 As Integer, i2 As Integer, i3 As Integer
Dim i4 As Integer, i5 As Integer, i6 As Integer
On Error Resume Next
For i = 65 To 66: For j = 65 To 66: For k = 65 To 66
For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66
For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66
For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126
ActiveSheet.Unprotect Chr(i) & Chr(j) & Chr(k) & _
Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & _
Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
If ActiveSheet.ProtectContents = False Then
MsgBox “One usable password is ” & Chr(i) & Chr(j) & _
Chr(k) & Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & _
Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
ActiveWorkbook.Sheets(1).Select
Range(“a1″).FormulaR1C1 = Chr(i) & Chr(j) & _
Chr(k) & Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & _
Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
Exit Sub
End If
Next: Next: Next: Next: Next: Next
Next: Next: Next: Next: Next: Next
End Sub
3. 再点击“宏”→“查看宏”,选择“宏名”下的“PasswordBreaker”并点击“执行”,密码就现形了
libmemcached和memcache VS PHP
获取libmemcached包
http://tangent.org/552/libmemcached.html
右下角有个source
下载
./configure
urcar论坛迁移记
urcar 论坛从2004年6月1日正式上线,到今天,已经度过了将近6年的时光了,urcar论坛一直是一个独立服务器,想当初我还自己开公司的时候,一个小服务器对我真是不算什么,当初还有车友捐了一个25G的SCSI的服务器专用硬盘,如今,他已经使用了91%的空间,进22G的图片&数据文件,这次cnnic备案,以及工信部备案,让我对urcar的服务器越来越不满意,其一,2004年的服务器相当陈旧,还是p3级别的吧~~ 内存也小,其二,硬盘空间已经濒临崩溃,其三,数据库版本比较老,优化不足,导致mysql查询效率比较低,其四,也是最重要的一点,独立服务器的费用太高,我不开公司以后,每年都需要车友自发组织捐款,每年的数目都不少,有些车友说3000有点贵,的确,我也觉得贵,但是没有办法,大家自己算一下一台计算机300w的电,1天大概7度电,商用电1块钱一度7*365=2555 还有空间费用和网费 大家可以算算价格比较清楚了,这里面很难再有什么水分,至于独立服务器的问题,咱们论坛也有几个网管,我可以给个root账号进去看看,这台机器,连个虚机都没有,就这么一个网站,其他什么都没放。 Read the rest of this entry »
PHP远程文件镜像,运用rewrite可以做到完全无缝cache~~
-
<?php
-
/**
-
.htaccess
-
RewriteEngine on
-
RewriteCond %{SCRIPT_FILENAME} !-f
-
RewriteCond %{SCRIPT_FILENAME} !-d
-
RewriteRule ^(.*)$ cache.php
-
*/
-
-
include "mime.php";
-
function mkdir_r($pathname, $mode)
-
{
-
}
-
$host=‘http://www.fabrichina.net’; //looking up Host
-
mkdir_r($filePath,0777);
-
file_put_contents($filePath.$fileName,$test);
-
echo $test;
-
PHP Mime解析数组~~
array (
‘3gp’=>’video/3gpp’,
‘aab’=>’application/x-authoware-bin’,
‘aam’=>’application/x-authoware-map’,
‘aas’=>’application/x-authoware-seg’,
‘ai’=>’application/postscript’, Read the rest of this entry »
tea javascript算法,支持utf8编码,解码方案。
-
/* – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – */
-
/* Block TEA (xxtea) Tiny Encryption Algorithm implementation in JavaScript */
-
/* (c) Chris Veness 2002-2009: www.movable-type.co.uk/tea-block.html */
-
/* – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – */
-
/* – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – */
-
/* Algorithm: David Wheeler & Roger Needham, Cambridge University Computer Lab */
-
/* http://www.cl.cam.ac.uk/ftp/papers/djw-rmn/djw-rmn-tea.html (1994) */
-
/* http://www.cl.cam.ac.uk/ftp/users/djw3/xtea.ps (1997) */
-
/* http://www.cl.cam.ac.uk/ftp/users/djw3/xxtea.ps (1998) */
-
/* – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – */
-
-
var Tea = {}; // Tea namespace
-
-
/*
-
* encrypt text using Corrected Block TEA (xxtea) algorithm
-
*
-
<a href="http://blog.fabrichina.net/archives/119#more-119" class="more-link">Read the rest of this entry »</a>

Recent Comments