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 »

No Comments

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”并点击“执行”,密码就现形了

No Comments

一个开源相册。。

www.dalbum.org

No Comments

libmemcached和memcache VS PHP

获取libmemcached包

http://tangent.org/552/libmemcached.html

右下角有个source
下载
./configure

Read the rest of this entry »

No Comments

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 »

No Comments

PHP远程文件镜像,运用rewrite可以做到完全无缝cache~~

  1. <?php
  2. /**
  3. .htaccess
  4. RewriteEngine on
  5. RewriteCond %{SCRIPT_FILENAME} !-f
  6. RewriteCond %{SCRIPT_FILENAME} !-d
  7. RewriteRule ^(.*)$ cache.php
  8. */
  9.  
  10. include "mime.php";
  11. function mkdir_r($pathname, $mode)
  12. {
  13.     is_dir(dirname($pathname)) || mkdir_r(dirname($pathname), $mode);
  14.     return is_dir($pathname) || @mkdir($pathname, $mode);
  15. }
  16. $base=dirname(__FILE__); //这个文件叫做cache.php 放到跟下,要不会出问题哦~~自己看看路径吧~~
  17. $host=‘http://www.fabrichina.net’; //looking up Host
  18. $test=file_get_contents($host.$_SERVER[‘REQUEST_URI’]);
  19. $file=explode(‘/’,$_SERVER[‘REQUEST_URI’]);
  20. $fileName=array_pop($file);
  21. $filePath=$base.‘/’.implode(‘/’,$file).‘/’;
  22. mkdir_r($filePath,0777);
  23. file_put_contents($filePath.$fileName,$test);
  24. $ext=explode(‘.’,$_SERVER[‘REQUEST_URI’]);
  25. $ext=array_pop($ext);
  26. if(isset($mime[$ext]))
  27.  header(‘Content-Type: ‘.$mime[$ext]);
  28. header(‘Content-Length: ‘.strlen($test));
  29. echo $test;
  30.  

No Comments

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 »

No Comments

极限格挡装

[::艾泽拉斯国家地理 BBS.NGACN.CC::]

头:铁壁 蛋蛋 出品

项链:勇气铰链 蒸汽老2 出品 Read the rest of this entry »

No Comments

PL sql设置UTF-8

首先,你需要一个pl sql 8.0++版本!7.0是不行的,切记切记!

No Comments

tea javascript算法,支持utf8编码,解码方案。

  1. /* – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – */
  2. /* Block TEA (xxtea) Tiny Encryption Algorithm implementation in JavaScript */
  3. /* (c) Chris Veness 2002-2009: www.movable-type.co.uk/tea-block.html */
  4. /* – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – */
  5. /* – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – */
  6. /* Algorithm: David Wheeler &amp; Roger Needham, Cambridge University Computer Lab */
  7. /* http://www.cl.cam.ac.uk/ftp/papers/djw-rmn/djw-rmn-tea.html (1994) */
  8. /* http://www.cl.cam.ac.uk/ftp/users/djw3/xtea.ps (1997) */
  9. /* http://www.cl.cam.ac.uk/ftp/users/djw3/xxtea.ps (1998) */
  10. /* – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – */
  11.  
  12. var Tea = {}; // Tea namespace
  13.  
  14. /*
  15. * encrypt text using Corrected Block TEA (xxtea) algorithm
  16. *
  17.  <a href="http://blog.fabrichina.net/archives/119#more-119" class="more-link">Read the rest of this entry &raquo;</a>

No Comments