日曆

« 2010-03-11  
 123456
78910111213
14151617181920
21222324252627
28293031   

統計信息

  • 訪問量: 1219
  • 日誌數: 6
  • 圖片數: 1
  • 建立時間: 2007-03-15
  • 更新時間: 2007-10-09

RSS訂閱

我的最新日誌

  • 找出網站的死連結 - Xenu's Link Sleuth

    2007-9-07

    今天Launch了一個新site, 可是在Apache的Error_log一直有error 出來
    error最不好的地方就是有時侯沒有REFERER, 所以很難找出有問題的頁面

    所以又求了一下google, 得到:

    Xenu's Link Sleuth
    直接下載 - FAQ

    真是小又快的精品, 並且不用錢:
    因為它support thread,很快(10分鐘)就跑完16000多個連結(Thread count = 100)
    最後還會生成Report
    如果你的網址很大的說, 在Options裡不要選Site map
    我這個網址沒有成功試過(因為沒耐心把它關了)

    下面是FAQ的Highlights
    • It is free
    • Simple user-interface
    • Better error reports (not just "network error")
    • "Save" works also while the software is busy
    • The "broken links view" shows only broken links;
    • It has a "recheck broken links" function that works fine.
    • It is small, written by one person experienced in Windows software development since 1993 and who works as a professional software developer since 1983. This means that bugs will be corrected quickly. This is a matter of honour.
    • The report can be viewed easily, even when you have long URLs.
    • Uses much less disk space for intermediate files, executable file much smaller
    • Loading of saved files much faster (WebAnalyzer loses time by displaying the extra graphics)
    • Supports SSL websites ("https:// ")
    • Partial testing of ftp and gopher sites
    • Search for local orphan files
    • Special handling of redirected URLs
    • Site Map
    • Randomization of checking order, means less concurrent requests on a single server


  • 打造一個流動Java開發環境(Portable Eclipse)

    2007-9-05

    今天要上CPTTM的 Java SE6.0 編程語言中級程度(Sun 正式課程 SL-275)
    我決定要在我4gb的U3手指上打造一個Portable的Java環境
    好處是真的Plug(USB thumb) & Play

    你無論任何電腦上都可以馬上開始開發
    而不用理你的workdtation的環境(如有沒有JDK或版本不同都不用理, 前題是有usb slot..)

    Eclipse當然是最佳選擇
    因為它是在JRE1.5上跑
    而且Config不會在Windows的Registry
    只要把JDK裝在USB上, 並告訢Eclipse你的JDK(JRE)在那

    其實, 早就有人這樣做:

    1. get Eclipse and extract it to your portable drive
    2. install a JDK on your or any other PC (I really mean the Java Development Kit, not the JRE - anyway, both should work).
      The default installation path should be something like "C:\Programs\Java", containing a folder named "jdk1.5.0_xx"
    3. create a subfolder "JDKs" in your eclipse folder (depending on your drive letter and extraction path this should look like P:\someFolders\eclipse\JDKs
    4. copy the jdk1.5.0_xx folder into the JDKs folder. (like P:\someFolders\eclipse\JDKs\jdk1.5.0_xx)
    5. edit the file "P:\someFolders\eclipse\eclipse.ini" to
      -vm
      ..\JDKs\jdk1.5.0_xx\bin\javaw
      -vmargs
      -Xms40m
      -Xmx256m

      (replace "jdk1.5.0_xx" with the actual folder name)
      This is more elegant than using a batch file due to being independent from drive letters and path variables.

    6. go to a pc with OR WITHOUT java installed. Connect your portable drive and run "P:\someFolders\eclipse\eclipse.exe"
    7. when asked for a workspace location, you can enter ".\workspace", which will create a workspace in your eclipse folder (like "P:\someFolders\eclipse\workspace\")
    8. do javanese Eye-wink

    http://portableapps.com/node/929#comment-12228


    跟著別人的經驗就省下不少功夫
  • 用WSH以JScript來設置PATH環境變量

    2007-7-26

    在Windows把玩在Unix-like環境下的工具常要設置PATH這個環境變量
    今天為了要試 php-GTK2 所以由Perisama下載了用VC來compile的win32 binary (PHP-5.2.2-min-all.zip / Thread-Safe / MSVC7)

    可是自己已經裝了官方的 5.23 binary, 為了能快速地在PATH環境變量設任一個php的路徑所以寫了這個:

    // PHP_Swap_Path.jse
    // 2007-7-26 
    // by snake
    //
    // Two paths for swapping
    pool = ['C:\\bin\\PHP\\5.23\\','C:\\bin\\PHP\\5.2.2_TS_VC7\\']

    var WshShell = Wscrīpt.CreateObject("Wscrīpt.Shell");
    var WshSysEnv = WshShell.Environment("SYSTEM");
    var ENV_PATH = WshSysEnv("PATH");

    paths = ENV_PATH.split(';');
    new_path = '';
    for( path in paths){
        if( paths[path] == pool[0] ){
             old_path = paths[path]
             new_path= pool[1];
             paths[path] = pool[1];
             break;
        }
        if( paths[path] == pool[1] ){
             old_path = paths[path]        
             new_path= pool[0];
             paths[path] = pool[0];
             break;
        }
        
    }

    if( new_path!='' ){
        Wscrīpt.Echo( old_path  +' => '+ new_path);
        // Set Environment variable PATH
        WshSysEnv("PATH")= paths.join(';');
    }


    因為*.js已經被Dreamweaver設為Javascrīpt檔了, 原本 *.jse 是指encoded了的jscrīpt, 不過它也是用WSH開啟的*.vbs, *.js 和 *.jse在開啟的指令上是無分別的.. 只要能逹到double click就運行也無所謂了

我的最新圖片

Open Toolbar