連吃個飯都要發脾氣。只不過沒有葷的便當嘛 ... 偏偏又是我這死對頭拿給你吃,唷,裝什麼帥氣丫!

一句:不了,我不要 ...

不要拉倒嘛,有免費的便當還不吃,我也是吃素的便當啊 ~

故意在那裝不餓,過了三十分鐘還是忍不住跑出去買了 ... 還買了包煙來抽,真是見鬼了,這十個月來第一次看你抽煙。

回來還是有一堆理由解釋剛才的行為 ... 你這個人啊,我看透了啦

Bojack 發表在 痞客邦 留言(0) 人氣()

我常用的 BT 下載軟體 µTorrent 出新版了,今晚也給它 update 一下。有別於過往的 install program,下載了 utorrent.exe 後就直接放到安裝目錄,這樣就升級完成了 ...

Bojack 發表在 痞客邦 留言(0) 人氣()

PHP

宣布 PHP4 即將維護到 2007-12-31 後就不再支援了,希望所有使用 PHP4 的使用者能盡速升級到 PHP 5 ~ 未來若有緊急安全性的問題,還是會有 Patch 啦,這不必擔心,不過也只 Patch 到 2007-08-08 了。

原文如下:

Today it is exactly three years ago since PHP 5 has been released. In those three years it has seen many improvements over PHP 4. PHP 5 is fast, stable & production-ready and as PHP 6 is on the way, PHP 4 will be discontinued.

The PHP development team hereby announces that support for PHP 4 will continue until the end of this year only. After 2007-12-31 there will be no more releases of PHP 4.4. We will continue to make critical security fixes available on a case-by-case basis until 2008-08-08. Please use the rest of this year to make your application suitable to run on PHP 5.

For documentation on migration for PHP 4 to PHP 5, we would like to point you to our migration guide. There is additional information available in the PHP 5.0 to PHP 5.1 and PHP 5.1 to PHP 5.2 migration guides as well.

Bojack 發表在 痞客邦 留言(0) 人氣()

今天 make fetch 某個 ports 的檔案出現這個問題

On FreeBSD before 6.2 ports system unfortunately can not set default X11BASE by itself so please help it a bit by setting X11BASE=${LOCALBASE} in make.conf.
On the other hand, if you do wish to use non-default X11BASE, please set variable USE_NONDEFAULT_X11BASE.
*** Error code 1

解決的方式就在這段文字內,在 make.conf 加入 X11BASE=${LOCALBASE} 就好了

Bojack 發表在 痞客邦 留言(1) 人氣()

<?php

    $d = dir("路徑");

    echo "Handle: ".$d->handle."<br>\n";

    echo "Path: ".$d->path."<br>\n";

    while($entry=$d->read()) {

          echo $entry."<br>\n";

    }
   $d->close();

?>

Bojack 發表在 痞客邦 留言(0) 人氣()

參考藍小熊日記的說明,今天成功設定回來了,此篇記錄一下。

首先將 mysql結束掉:

Linux : service mysqld stop

FreeBSD : ps ax ( 找到 mysql ID 後 ),再 kill -9 MySQL-ID

再用以下的指令啟動並進入 MySQL

# mysqld_safe -u root --skip-grant-tables &

# mysql

這樣就可以進入 MySQL

mysql > use mysql;
mysql > UPDATE user SET password=password('新的密碼') where user='root';
mysql > FLUSH PRIVILEGES;

接下來再一次啟動系統 or 啟動 MySQL 就大功告成了!

Bojack 發表在 痞客邦 留言(0) 人氣()

火影好像也抄的太兇了吧 XD

Bojack 發表在 痞客邦 留言(0) 人氣()

今天遇到這台情況是這樣的,/var 目錄的使用已經達到 104%。檢查來檢查去都找不到任何一個看起來很大的檔案,上網找了一些資料也發現有人和我有同樣情況。

解決方式分享一下

首先先 du -sh /var 確認我用了多少空間 ( 4.4 MB only )

再下 fsck -f -y /dev/ad0s1e ( 視個人機器有所異 )

再給它 sync

最後 reboot ~ Finish !

Bojack 發表在 痞客邦 留言(2) 人氣()

老實說,這應該是不被允許的行為  ... 還是分享一下。

我現在改的這個版本是 vbulletin 2.2.2,因為版本老舊加上不會再花錢升級,所以只好用「手動」的方式來新增驗證碼的功能。

今天研究一下 vbulletin 的架構,它把每一頁的 HTML 都存在資料庫裡的 template table 裡面,這時才瞭解原來 vbulletin 如果被 hack 改掉首頁的話,就是因為資料庫被改掉了,難怪復原的方式就只要把資料庫再倒回去就好了。

要在註冊頁面產生驗證碼的話,首先一定要有一個產生亂數圖型的程式,程式碼如下,將它全部複製起來另外存成一個名叫 show_vaildcode.php ,同時上傳到 vbulletin 的目錄下。

Bojack 發表在 痞客邦 留言(0) 人氣()

<?php
echo $check = ( 2 > 1 ) ? 1 : 0;
?>

Bojack 發表在 痞客邦 留言(0) 人氣()