<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    2008年5月7日


    默認的Google.com搜索會經常訪問失敗,嘗試改成訪問正常的Google.cn,但在搜索欄的“查找更多提供程序”頁面里又沒有Google.cn搜索。

    其實可以通過修改注冊表的方式把默認的Google.com改成Google.cn,或添加一個Google.cn搜索。

    在運行里輸入regedit,回車,打開注冊表編輯程序;

    瀏覽到HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\,里面每個子項就是一個搜索提供程序;

    找到一個DisplayName為Google的,這就是默認的Google.com搜索,下面我們把它改成Google.cn搜索:

    將URL的值改為:
    http://www.google.cn/search?hl=zh-CN&q={searchTerms}&meta=&aq=f&oq=

    確定后關閉注冊表編輯程序,重啟IE8,默認的Google.com搜索就變成Google.cn搜索了,Hooray

    posted @ 2010-03-15 10:34 羅明 閱讀(2293) | 評論 (0)編輯 收藏
     

    這個有可能是注冊表訪問失敗造成的。

    解決辦法:

    1. 打開C:\WINDOWS\setupapi.log,在最底下(最新的信息)應該可以看到驅動安裝時訪問某個注冊表項失敗。
    例如: 在我這里是HKCR/CLSID/{*****}

    2. 運行regedit,打開注冊表編輯,選中相應的注冊表項,右鍵單擊選擇“權限”,在彈出的對話框里賦予當前用戶或Everyone “完全控制”的權限。
    例如:展開HKEY_CLASSES_ROOT,瀏覽到CLSID項,右鍵單擊選擇“權限”,選擇Everyone,在下面的“完全控制”里勾選“允許”,單擊確定完成修改。

    3. 重新安裝或更新驅動程序,應該就ok了 : )

    posted @ 2010-03-08 15:10 羅明 閱讀(4397) | 評論 (0)編輯 收藏
     



    Example: The steps to delete QSAMPLE library
    ××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××

    1# Use the Work with System Value (WRKSYSVAL) command to remove QSAMPLE from the system value(QUSERLIBL or QSYSLIBL) it is contained in. (The changed system value does not affect the library list of any jobs running.)


    1. Enter WRKSYSVAL QUSRLIBL at the i5/OS command line.
    2. Press Enter and select option number 2.
    3. Remove the QSAMPLE library from the list.


    2# Use the Remove Library List Entry (RMVLIBLE) command to remove QSAMPLE from the job's library list.

    1. Enter RMVLIBLE QSAMPLE at the i5/OS command line.


    3# Use the Work with Object Lock (WRKOBJLCK) command to remove locks on QSAMPLE library if any.

    1. Enter WRKOBJLCK OBJ(QSYS/QSAMPLE) OBJTYPE(*LIB) at the i5/OS command line.
    2. Remove object locks on QSAMPLE library.


    4# Use the Delete Library (DLTLIB) command to delete the library and the objects in the library.

    1. Enter DLTLIB QSAMPLE at the i5/OS command line.

    ××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××

    The information are mainly refered from IBM infocenter for iSeries.

    posted @ 2010-02-26 16:50 羅明 閱讀(1828) | 評論 (2)編輯 收藏
     
    今天發現兩個google和百度找不到的知識點,趕緊記下來,是切身體會呢^-^

    1. 有的人光線暗的時候照相總是紅眼,旁邊的人卻沒有。 這個在百度和google上都找不到原因。不過我現在知道了,是因為這個人眼睛比其他人大,大眼睛的人晚上照相時肯定紅眼的,嘿嘿

    2. 我的Windows 7 Beta居然可以一直用。你看,我筆記本這半年時間還沒自動重啟或不能使用。。。
    posted @ 2009-08-02 22:48 羅明 閱讀(1309) | 評論 (2)編輯 收藏
     

    1、修改/etc/default/locale, 改為:

    LANG="en_US.UTF-8"

    LANGUAGE="en_US:en"

    2、sudo reboot

    3、locale

    顯示環境變量已經全部是英文


    上述程式已在Ubuntu 9.04親測。



    轉載自:R08的博客大巴空間
    轉載源:http://round08.blogbus.com/logs/21832677.html
    posted @ 2009-07-17 14:38 羅明 閱讀(1635) | 評論 (0)編輯 收藏
     

     

        如果想 Ubuntu 在每次啟動到 command prompt ,可以輸入以下指令:

        $echo “false” | sudo tee /etc/X11/default-display-manager

        當下次開機時,就會以指令模式啟動,如果想變回啟動 x window,可以輸入:

        $echo “/usr/sbin/gdm” | sudo tee /etc/X11/default-display-manager

        P.S. 如果不是用 gdm 作為,以上指令需要根據你的環境作出更改,例如 kdm 或 xdm。


    上述程式已在Ubuntu 9.04親測。


    轉載自:文章來源chinaitlab社區 作者佚名 更新時間2008-9-9 保存本文
    轉載源:http://linux.chinaitlab.com/administer/763020.html
    posted @ 2009-07-17 14:33 羅明 閱讀(1571) | 評論 (2)編輯 收藏
     
    Firefox在Linux下的后退按鍵是“Alt"+"<-",要同時按兩個鍵,不如Windows下的Backspace一次按鍵方便。

    要啟用Backspace,只需將about:config里的“browser.backspace_action”由默認的2改為0


    posted @ 2008-06-22 20:50 羅明 閱讀(2015) | 評論 (1)編輯 收藏
     

    編輯工程的.project文件:

    添加

    <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
    <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
    <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>

    <natures>

    </natures>

     

    eg.

    例如將

    <natures>
        <nature>org.eclipse.jdt.core.javanature</nature>
    </natures>

    更改為:

    <natures>
        <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
        <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
        <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>

        <nature>org.eclipse.jdt.core.javanature</nature>
    </natures>

    posted @ 2008-06-20 17:14 羅明 閱讀(7703) | 評論 (8)編輯 收藏
     

    應用python的pickle模塊從序列化文件中構造對象,根據對象的構造解開謎題

    詳細描述 :

    http://www.pythonchallenge.com/pc/def/peak.html

    (peak hell連讀發音類似pickle,謎題就是pickle模塊的應用了)

     

    解決方案代碼:

    import pprint,pickle,sys

    pfile 
    = open('banner.p')
    data 
    = pickle.load(pfile)
    for row in data:
      
    for item in row:
        
    for index in range(item[1]):
          sys.stdout.write(item[0])
      
    print ''
    pfile.close()

    輸出的對象構造:


    posted @ 2008-05-22 17:45 羅明 閱讀(1309) | 評論 (16)編輯 收藏
     

    在網上找了很久才找到developerWorks上的一個解決方案:

    在命令提示符里切換到目錄“C:\Program Files\IBM\SDP70\jdk\jre\bin”,運行“java.exe -Xshareclasses:destroyAll”

    這樣就能正常啟動RAD了! 

    原因描述如下:

    (摘錄自http://www-1.ibm.com/support/docview.wss?uid=swg21281393,并通過Google Translate轉譯,譯文已作修改)

    ×××××××××××××××××××××××××××××××××××××

    問題(摘要)
    此說明解釋如何解決錯誤“JVM的終止。退出代碼= 1”。

    起因
    RAD自帶的IBM JVM使用了一個高速緩存參數來提高性能。而因為JVM的崩潰,比如藍屏,或斷電,都可能造成Java高速緩存被損壞。 而JVM會拒絕連接到一個損壞的高速緩存。

    解決問題
    要解決這個問題,使用“-Xshareclasses:destroyAll”的Java選項將銷毀所有的共享級緩存。這是一種實用工具選項,所以不會啟動JVM 。如果您想要這么做,只要從命令提示符使用參數“-Xshareclasses:destroyAll”來運行RAD使用的java。

    ××××××××××××××××××××××××××××××××××××××

    posted @ 2008-05-16 11:06 羅明 閱讀(2843) | 評論 (17)編輯 收藏
     
    Follow the URL chain to get the result (the chain may contain over 300 URLs......)

    謎題詳細描述:http://www.pythonchallenge.com/pc/def/linkedlist.php

    Python解決方案:
    import urllib

    nothing 
    = "12345"
    ii 
    = 1
    while ii<401:
      source 
    = urllib.urlopen("http://www.pythonchallenge.com" 
        
    + "/pc/def/linkedlist.php?nothing="+nothing).read()
      nothing
    =filter(str.isdigit, source)

      
    print nothing
      
    if source != "and the next nothing is " + nothing:
        
    print "source is not: and the next nothing is " + nothing
        
    print "source is: " + source
        nothing 
    = raw_input("select which number?")
        
    print "you set " + nothing + " as nothing"
      ii
    +=1


    posted @ 2008-05-09 14:32 羅明 閱讀(1334) | 評論 (27)編輯 收藏
     
    從一大堆字母里找出兩邊都剛好有3個大寫字母的小寫字母
    詳細描述:http://www.pythonchallenge.com/pc/def/equality.html

    解決方案:

    Python:
    >>> import re
    >>> re.findall(r'[a-z][A-Z][A-Z][A-Z][a-z][A-Z][A-Z][A-Z][a-z]', text)
    posted @ 2008-05-08 12:50 羅明 閱讀(1331) | 評論 (0)編輯 收藏
     
    謎題描述:http://www.pythonchallenge.com/pc/def/ocr.html
    從一大堆亂碼中找出可以理解的信息(字母)

    Java解決方案:
    public class Test {

        
    public static void main(String[] args) throws Exception {
            URL url 
    = new URL("http://www.pythonchallenge.com"
               + "
    /pc/def/ocr.html");
            BufferedReader reader 
    = new BufferedReader(new
              
    InputStreamReader(url.openStream()));
            StringBuffer sb = new StringBuffer();
            
    int i = reader.read();
            
    while(i != -1)
            {
                
    if((i >= (int)'A' && i <= (int)'Z')
                  
    || (i >= (int)'a' && i <= (int)'z'))
                {
                    sb.append((
    char)i);
                }
                i 
    = reader.read();
            }
            reader.close();
            String source 
    = sb.toString();
            
           
    //頁面源碼中最后一個單詞是below
            System.out.println(
              
    source.substring(source.indexOf("below"+ 5)
            );
        }
    }

    附Python和Shell:

    Python:
    >>> text = """
                 <copy and paste>
    """
    >>> import string
    >>> for i in text:
            
    if i in string.ascii_letters:
            
    print i,

    Shell:
    $ curl http://www.pythonchallenge.com/pc/def/ocr.html | grep -o [a-z]
    posted @ 2008-05-07 16:11 羅明 閱讀(1501) | 評論 (28)編輯 收藏
     
    主站蜘蛛池模板: 免费观看在线禁片| 亚洲熟妇无码AV| a级毛片毛片免费观看久潮| 亚洲一区二区三区在线视频| 免费国产a理论片| 亚洲精品高清在线| 男女一边摸一边做爽的免费视频| 亚洲成a人片在线观看老师| 午夜肉伦伦影院久久精品免费看国产一区二区三区 | 久久A级毛片免费观看| 亚洲高清在线播放| 久久九九兔免费精品6| 亚洲一区二区三区不卡在线播放| 日本成年免费网站| 亚洲国产精品精华液| 国产三级电影免费观看| 欧洲美女大片免费播放器视频 | 亚洲无av在线中文字幕| 国产精品免费大片| 亚洲人成网网址在线看| 国产精品色午夜视频免费看| 一级毛片在播放免费| 亚洲AV无码乱码在线观看富二代| 99久在线国内在线播放免费观看| 亚洲婷婷在线视频| 噜噜嘿在线视频免费观看| 日韩一级片免费观看| 国产成人亚洲精品青草天美 | 无码国产精品一区二区免费| 亚洲精品色播一区二区| 国产成人精品久久亚洲高清不卡 | 日韩精品在线免费观看| 亚洲色偷精品一区二区三区| 亚洲精品乱码久久久久久不卡| 三年片免费高清版| 久久精品国产亚洲av麻豆蜜芽| 免费人成视网站在线观看不卡| 曰批全过程免费视频在线观看无码| 亚洲一级毛片在线播放| 亚洲一区二区视频在线观看| 在线看无码的免费网站|