顯示文章

這裡允許您檢視這個會員的所有文章。請注意, 您只能看見您有權限閱讀的文章。


主題 - micmic3

頁: 1 [2] 3 4 5
31
PHP程式設計討論區 / php ldap_mod_replace
« 於: 2009-12-15 15:15 »
ldap_mod_replace
可以讓 A 帳號修改 B 帳號的密碼嗎?
代碼: [選擇]
$entryToAdd["userPassword"] = "{MD5}".base64_encode(pack("H*", md5($newpass)));
             ldap_mod_replace($link , $changedn , $entryToAdd );
失敗

32
PHP程式設計討論區 / php ldap_search
« 於: 2009-12-15 12:08 »
php ldap_search 找的時候沒有分大小寫啊!?
 $filter = '(uid=' . $this->username . ')';
因為我是用 $userdn=ldap_search($SEARCHBASE,$filter,array('uid')));
先找出user_dn 在用 user dn 去 bind
但是 ldap_search 沒有分大小寫會造成帳號沒分大小寫....orz

33
PHP程式設計討論區 / php header www-authenticate
« 於: 2009-11-11 15:19 »
www-authenticate basic realm
這地方要如何正確顯示中文啊~~

34
我成功的跑 WARCRAFT III 了 ;D ;D
很 lag 就是了

35
database 討論版 / Infobright
« 於: 2009-11-06 09:30 »
Infobright 有人有玩過嗎!?

http://www.infobright.org/

36
雜七雜八 / Firefox java script console error
« 於: 2009-10-28 16:55 »
最近Firefox 開 酷學園會有 javascript error
錯誤: <http://www.darkhero.net>
P
³ !Õ|ë Location ¹ÕtoString †ê¼ <http://phorum.study-area.org>

37
雜七雜八 / 今天Gmail 超不穩
« 於: 2009-10-05 18:08 »
今天Gmail 超不穩...
一直連不上..orz

38
VirtualBox guest host XP 當掉後沒辦法重新啓動
在選單那裡會不能選 start,有誰知道什麼原因嗎!? ???

39
PHP程式設計討論區 / system background 的問題
« 於: 2009-09-15 10:06 »
system('php xxx.php >> a &');
會在 background 跑...有什麼方法能知道是否跑完了嗎?

40
雜七雜八 / 由ip 查國家
« 於: 2009-08-31 10:18 »
有 maxmind geoip 的 api 可以用...
http://www.maxmind.com/app/php
但要更新
http://www.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
才會有最新的資料....
不知 TWNIC 有沒有相關的 CSV 可以下載 :P

41
PHP程式設計討論區 / 這些符號是什麼?
« 於: 2009-07-30 18:29 »
有沒有人用文字編輯器時會出現[GS], [SOH] ,[ETX]
的東西...這些是什麼...嗯
如圖

42
Virtualization 虛擬化技術 / VirtualBox 的問題
« 於: 2009-07-25 13:25 »
在fedora 10 裝 VirtualBox 跑 window xp 一直好好的
昨天忽然發生 lag 跑很慢
dmesg 有一大串error
看log
代碼: [選擇]

Jul 25 00:35:15 localhost kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
Jul 25 00:35:15 localhost kernel: ata1.00: BMDMA stat 0x25
Jul 25 00:35:15 localhost kernel: ata1.00: cmd c8/00:00:34:27:7a/00:00:00:00:00/e4 tag 0 dma 131072 in
Jul 25 00:35:15 localhost kernel:         res 51/40:a3:91:27:7a/00:00:00:00:00/e4 Emask 0x9 (media error)
Jul 25 00:35:15 localhost kernel: ata1.00: status: { DRDY ERR }
Jul 25 00:35:15 localhost kernel: ata1.00: error: { UNC }
Jul 25 00:35:15 localhost kernel: ata1.00: configured for UDMA/100
Jul 25 00:35:15 localhost kernel: ata1: EH complete
Jul 25 00:35:20 localhost kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
Jul 25 00:35:20 localhost kernel: ata1.00: BMDMA stat 0x25
Jul 25 00:35:20 localhost kernel: ata1.00: cmd c8/00:00:34:27:7a/00:00:00:00:00/e4 tag 0 dma 131072 in
Jul 25 00:35:20 localhost kernel:         res 51/40:a3:91:27:7a/00:00:00:00:00/e4 Emask 0x9 (media error)
Jul 25 00:35:20 localhost kernel: ata1.00: status: { DRDY ERR }
Jul 25 00:35:20 localhost kernel: ata1.00: error: { UNC }
Jul 25 00:35:20 localhost kernel: ata1.00: configured for UDMA/100
Jul 25 00:35:20 localhost kernel: ata1: EH complete
Jul 25 00:35:25 localhost kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
Jul 25 00:35:25 localhost kernel: ata1.00: BMDMA stat 0x25
Jul 25 00:35:25 localhost kernel: ata1.00: cmd c8/00:00:34:27:7a/00:00:00:00:00/e4 tag 0 dma 131072 in
Jul 25 00:35:25 localhost kernel:         res 51/40:a3:91:27:7a/00:00:00:00:00/e4 Emask 0x9 (media error)
Jul 25 00:35:25 localhost kernel: ata1.00: status: { DRDY ERR }
Jul 25 00:35:25 localhost kernel: ata1.00: error: { UNC }
Jul 25 00:35:25 localhost kernel: ata1.00: configured for UDMA/100
Jul 25 00:35:25 localhost kernel: ata1: EH complete
Jul 25 00:35:30 localhost kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
Jul 25 00:35:30 localhost kernel: ata1.00: BMDMA stat 0x25
Jul 25 00:35:30 localhost kernel: ata1.00: cmd c8/00:00:34:27:7a/00:00:00:00:00/e4 tag 0 dma 131072 in
Jul 25 00:35:30 localhost kernel:         res 51/40:a3:91:27:7a/00:00:00:00:00/e4 Emask 0x9 (media error)
Jul 25 00:35:30 localhost kernel: ata1.00: status: { DRDY ERR }
Jul 25 00:35:30 localhost kernel: ata1.00: error: { UNC }
Jul 25 00:35:30 localhost kernel: ata1.00: configured for UDMA/100
Jul 25 00:35:30 localhost kernel: ata1: EH complete
Jul 25 00:35:34 localhost kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
Jul 25 00:35:34 localhost kernel: ata1.00: BMDMA stat 0x25
Jul 25 00:35:34 localhost kernel: ata1.00: cmd c8/00:00:34:27:7a/00:00:00:00:00/e4 tag 0 dma 131072 in
Jul 25 00:35:34 localhost kernel:         res 51/40:a3:91:27:7a/00:00:00:00:00/e4 Emask 0x9 (media error)
Jul 25 00:35:34 localhost kernel: ata1.00: status: { DRDY ERR }
Jul 25 00:35:34 localhost kernel: ata1.00: error: { UNC }
Jul 25 00:35:34 localhost kernel: ata1.00: configured for UDMA/100
Jul 25 00:35:34 localhost kernel: ata1: EH complete
Jul 25 00:35:39 localhost kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
Jul 25 00:35:39 localhost kernel: ata1.00: BMDMA stat 0x25
Jul 25 00:35:39 localhost kernel: ata1.00: cmd c8/00:00:34:27:7a/00:00:00:00:00/e4 tag 0 dma 131072 in
Jul 25 00:35:39 localhost kernel:         res 51/40:a3:91:27:7a/00:00:00:00:00/e4 Emask 0x9 (media error)
Jul 25 00:35:39 localhost kernel: ata1.00: status: { DRDY ERR }
Jul 25 00:35:39 localhost kernel: ata1.00: error: { UNC }
Jul 25 00:35:39 localhost kernel: ata1.00: configured for UDMA/100
Jul 25 00:35:39 localhost kernel: sd 0:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE,SUGGEST_OK
Jul 25 00:35:39 localhost kernel: sd 0:0:0:0: [sda] Sense Key : Medium Error [current] [descriptor]
Jul 25 00:35:39 localhost kernel: Descriptor sense data with sense descriptors (in hex):
Jul 25 00:35:39 localhost kernel:        72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00
Jul 25 00:35:39 localhost kernel:        04 7a 27 91
Jul 25 00:35:39 localhost kernel: sd 0:0:0:0: [sda] Add. Sense: Unrecovered read error - auto reallocate failed
Jul 25 00:35:39 localhost kernel: end_request: I/O error, dev sda, sector 75114385
Jul 25 00:35:39 localhost kernel: ata1: EH complete
Jul 25 00:35:39 localhost kernel: sd 0:0:0:0: [sda] 117210240 512-byte hardware sectors (60012 MB)
Jul 25 00:35:39 localhost kernel: sd 0:0:0:0: [sda] Write Protect is off
Jul 25 00:35:39 localhost kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Jul 25 00:35:39 localhost kernel: sd 0:0:0:0: [sda] 117210240 512-byte hardware sectors (60012 MB)
Jul 25 00:35:39 localhost kernel: sd 0:0:0:0: [sda] Write Protect is off
Jul 25 00:35:39 localhost kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Jul 25 00:35:44 localhost kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
Jul 25 00:35:44 localhost kernel: ata1.00: BMDMA stat 0x25
Jul 25 00:35:44 localhost kernel: ata1.00: cmd c8/00:08:8c:27:7a/00:00:00:00:00/e4 tag 0 dma 4096 in
Jul 25 00:35:44 localhost kernel:         res 51/40:03:91:27:7a/00:00:00:00:00/e4 Emask 0x9 (media error)
Jul 25 00:35:44 localhost kernel: ata1.00: status: { DRDY ERR }
Jul 25 00:35:44 localhost kernel: ata1.00: error: { UNC }
Jul 25 00:35:44 localhost kernel: ata1.00: configured for UDMA/100
Jul 25 00:35:44 localhost kernel: ata1: EH complete

現在只要一跑 virtualbox xp 就會 error ...orz 不知是不是 vdi 有問題

43
雜七雜八 / linux UAC
« 於: 2009-07-24 10:01 »
http://tw.news.yahoo.com/article/url/d/a/090723/35/1nmjo.html
目前該漏洞將影響Windows XP、Vista以及Linux等作業系統,如果使用者不小心開啟惡意的PDF檔案,將自動下載名為Trojan Horse的惡意檔案,並會自動於使用者的電腦系統中執行。賽門鐵克表示,如果Vista與Linux的使用者可以開啟系統中的UAC(User Account Control,使用者帳戶控制)功能,應該可以減少該漏洞所帶來的風險。

--
orz

44
雜七雜八 / 看圖說故事
« 於: 2009-07-15 11:46 »
有沒有找看圖說故事的圖的好網站啊
veryXd 都不是原汁原味的台詞...

45
雜七雜八 / Gimp
« 於: 2009-07-09 09:38 »
Gimp 越來越強了
新的也有拉一拉參考線->切成 html 的功能了
--
window 版沒有不知為何..orz

46
據網路市調公司「Net Applications」所做的調查顯示,從去年五月至今年五月間,IE的全球市占率下滑一一%,Firefox的市占率則成長二二%。蘋果公司開發的「Safari」及Google的「 Chrome」瀏覽器,在過去數月間也呈現持續成長。微軟最近宣布「Windows 7」歐洲版不再內建IE,瀏覽器市場的消長態勢日益明顯。
http://tw.news.yahoo.com/article/url/d/a/090624/4/1lt48.html
--
甘有影

47
雜七雜八 / 香草慬日文嗎?
« 於: 2009-06-24 10:16 »
呼叫 呼叫 呼叫三子
請問 香草輸入法可以輸入日文嗎?

48
PHP程式設計討論區 / phplist
« 於: 2009-06-09 09:52 »
昨天 google 了一下,大部份的 phplist 的教學影片都掛了
有誰有的能  share 一下嗎

50
雜七雜八 / opera 的問題
« 於: 2009-05-12 15:57 »
有人用 opera 嗎?
怎麼清除 css 和 js 的快取?

51
Linux 討論版 / 有將 pdf 轉成 image 的方法嗎
« 於: 2009-04-22 09:29 »
有試過 convert...不過效果不好...
有其他方法嗎?

52
網頁技術 / 虛擬主機與路徑的問題!?
« 於: 2009-04-21 14:50 »
最近有個問題
http://www.xxx.com.tw/xxxx/xxx.php 會 error 503
http://www.xxx.com.tw//xxxx/xxx.php 多了一個 / 又可以瀏覽
過了一陣子後 http://www.xxx.com.tw/xxxx/xxx.php 就又好了
--
真是謎啊
http://www.xxx.com.tw/xxxx/xxx.php 和  http://www.xxx.com.tw//xxxx/xxx.php  在路徑上是一樣的嗎?@.@?

54
這理
http://www.hoyo.idv.tw/hoyoweb/document/218.html
有寫方法
不過我是故意用 STRICT_TRANS_TABLES 的,因為 STRICT_TRANS_TABLES 會檢查輸入格式
在 debug 環境最好打開...才不會有正式上線後搞了半天資料都沒進去的情況
所以好的解法是檢查輸入的東西格式 ok 不 ok
int 不能是  xxxx values ( '' ) ,varchar 長度不可超過

--
這是寫給 hoyo 的........XP,到底要去哪留言啊

55
database 討論版 / mysql int(6)
« 於: 2009-03-25 15:15 »
 int(6) 的話最大值是多少 ???
--
沒找到有用的..好心人給個key word 吧XD

56
Virtualization 虛擬化技術 / wine+ directx
« 於: 2009-03-16 14:52 »
http://wiki.winehq.org/winetricks
把這個連結 另存成xxx.sh 然後執行它
不要用root ....勾你要的 directx9
跑完就ok 了
去 .wine/c_drive/windows/system32 執行 dxdiag.exe...看看吧
有點慢就是了
說明在這
http://wiki.winehq.org/winetricks
--
.Net 2.0 也可以裝

57
網頁技術 / javascript input 的小寫轉大寫
« 於: 2009-03-13 18:14 »
其實應該以下就可以了
代碼: [選擇]
   function input_strtoupper(inputObj)
    {
        var numcheck;
        numcheck = /[a-z]/;
        if(numcheck.test(inputObj.value))
        {
            inputObj.value=inputObj.value.toUpperCase();
        }
        //alert(e.which);
    }
但是 onkeyup時游標會在最後
換了
代碼: [選擇]
   function input_strtoupper(inputObj,e)
    {
        var keynum,keychar,numcheck ;
        if(window.event) // IE
        {
            keynum = e.keyCode
        }
        else if(e.which) // Netscape/Firefox/Opera
        {
            keynum = e.which
        }
        keychar = String.fromCharCode(keynum)
        //alert(keychar);
        var lowerk=keychar.toLowerCase();

        numcheck = /[a-z]/;
        if(numcheck.test(inputObj.value))
        {
            start=Math.abs(inputObj.value.indexOf(lowerk))+1; //算出字串位置
            //var End=inputObj.selectionEnd;

            inputObj.value=inputObj.value.toUpperCase();
            if(navigator.appName=='Microsoft Internet Explorer')
            {
                var r =inputObj.createTextRange();
                //alert(inputObj);
                r.moveStart("character",start); //IE要游標出現的字串位置
                r.collapse(true);
                r.select();
            }
            else
            {
                inputObj.selectionStart=start; //FF要游標出現的字串位置
                    inputObj.selectionEnd=start;
            }
        }
        //alert(e.which);
    }
HTML
代碼: [選擇]
<input onkeyup="input_strtoupper(this,event)">
搞了很久啊 ....主要是移動游標那搞很久...目前 FF 和 IE 都ok
不過看起來控制的方法都不是標準的看有沒有人知道其他 broswer 的方法貼一下吧

58
database 討論版 / mysql 的 =
« 於: 2009-03-13 11:25 »
 select 'aaa   '='aaa'
+----------------+
| 'aaa   '='aaa' |
+----------------+
|              1 |
+----------------+
1 row in set (0.00 sec)
所以 where 會比不出來

59
Virtualization 虛擬化技術 / virtualbox
« 於: 2009-02-28 01:45 »
virtualbox....真是...orz
1.6 時還可以用ezusb 的晶片讀卡機
2.1 不行.....實在是
--
那我還要xp 幹嗎!? 翻桌 --//
--
google 了很久原來偶誤會它了
如果有人xp sp3 找不到讀卡機的話看這裡
http://helpdesk.formosoft.com/fshelpdesk/?m=faq&a=display&gid=29

60
雜七雜八 / Yahoo~~~首頁掛了
« 於: 2009-02-12 17:59 »
Yahoo~~~首頁掛了
有真象 ;D

頁: 1 [2] 3 4 5