默認(rèn)的Google.com搜索會(huì)經(jīng)常訪問失敗,嘗試改成訪問正常的Google.cn,但在搜索欄的“查找更多提供程序”頁面里又沒有Google.cn搜索。
其實(shí)可以通過修改注冊(cè)表的方式把默認(rèn)的Google.com改成Google.cn,或添加一個(gè)Google.cn搜索。
在運(yùn)行里輸入regedit,回車,打開注冊(cè)表編輯程序;
瀏覽到HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\,里面每個(gè)子項(xiàng)就是一個(gè)搜索提供程序;
找到一個(gè)DisplayName為Google的,這就是默認(rèn)的Google.com搜索,下面我們把它改成Google.cn搜索:
將URL的值改為:
http://www.google.cn/search?hl=zh-CN&q={searchTerms}&meta=&aq=f&oq=
確定后關(guān)閉注冊(cè)表編輯程序,重啟IE8,默認(rèn)的Google.com搜索就變成Google.cn搜索了,Hooray
這個(gè)有可能是注冊(cè)表訪問失敗造成的。
解決辦法:
1. 打開C:\WINDOWS\setupapi.log,在最底下(最新的信息)應(yīng)該可以看到驅(qū)動(dòng)安裝時(shí)訪問某個(gè)注冊(cè)表項(xiàng)失敗。
例如: 在我這里是HKCR/CLSID/{*****}
2. 運(yùn)行regedit,打開注冊(cè)表編輯,選中相應(yīng)的注冊(cè)表項(xiàng),右鍵單擊選擇“權(quán)限”,在彈出的對(duì)話框里賦予當(dāng)前用戶或Everyone “完全控制”的權(quán)限。
例如:展開HKEY_CLASSES_ROOT,瀏覽到CLSID項(xiàng),右鍵單擊選擇“權(quán)限”,選擇Everyone,在下面的“完全控制”里勾選“允許”,單擊確定完成修改。
3. 重新安裝或更新驅(qū)動(dòng)程序,應(yīng)該就ok了 : )
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.
今天發(fā)現(xiàn)兩個(gè)google和百度找不到的知識(shí)點(diǎn),趕緊記下來,是切身體會(huì)呢^-^
1. 有的人光線暗的時(shí)候照相總是紅眼,旁邊的人卻沒有。 這個(gè)在百度和google上都找不到原因。不過我現(xiàn)在知道了,是因?yàn)檫@個(gè)人眼睛比其他人大,大眼睛的人晚上照相時(shí)肯定紅眼的,嘿嘿
2. 我的Windows 7 Beta居然可以一直用。你看,我筆記本這半年時(shí)間還沒自動(dòng)重啟或不能使用。。。
1、修改/etc/default/locale, 改為:
LANG="en_US.UTF-8"
LANGUAGE="en_US:en"
2、sudo reboot
3、locale
顯示環(huán)境變量已經(jīng)全部是英文
上述程式已在Ubuntu 9.04親測。
轉(zhuǎn)載自:R08的博客大巴空間
轉(zhuǎn)載源:http://round08.blogbus.com/logs/21832677.html
如果想 Ubuntu 在每次啟動(dòng)到 command prompt ,可以輸入以下指令:
$echo “false” | sudo tee /etc/X11/default-display-manager
當(dāng)下次開機(jī)時(shí),就會(huì)以指令模式啟動(dòng),如果想變回啟動(dòng) x window,可以輸入:
$echo “/usr/sbin/gdm” | sudo tee /etc/X11/default-display-manager
P.S. 如果不是用 gdm 作為,以上指令需要根據(jù)你的環(huán)境作出更改,例如 kdm 或 xdm。
上述程式已在Ubuntu 9.04親測。
轉(zhuǎn)載自:
chinaitlab社區(qū) 
佚名

2008-9-9

轉(zhuǎn)載源:http://linux.chinaitlab.com/administer/763020.html
Firefox在Linux下的后退按鍵是“Alt"+"<-",要同時(shí)按兩個(gè)鍵,不如Windows下的Backspace一次按鍵方便。
要啟用Backspace,只需將about:config里的“browser.backspace_action”由默認(rèn)的2改為0
編輯工程的.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>
應(yīng)用python的pickle模塊從序列化文件中構(gòu)造對(duì)象,根據(jù)對(duì)象的構(gòu)造解開謎題
詳細(xì)描述 :
http://www.pythonchallenge.com/pc/def/peak.html
(peak hell連讀發(fā)音類似pickle,謎題就是pickle模塊的應(yīng)用了)
解決方案代碼:
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()
輸出的對(duì)象構(gòu)造:

在網(wǎng)上找了很久才找到developerWorks上的一個(gè)解決方案:
在命令提示符里切換到目錄“C:\Program Files\IBM\SDP70\jdk\jre\bin”,運(yùn)行“java.exe -Xshareclasses:destroyAll”
這樣就能正常啟動(dòng)RAD了!
原因描述如下:
(摘錄自http://www-1.ibm.com/support/docview.wss?uid=swg21281393,并通過Google Translate轉(zhuǎn)譯,譯文已作修改)
×××××××××××××××××××××××××××××××××××××
問題(摘要)
此說明解釋如何解決錯(cuò)誤“JVM的終止。退出代碼= 1”。
起因
RAD自帶的IBM JVM使用了一個(gè)高速緩存參數(shù)來提高性能。而因?yàn)镴VM的崩潰,比如藍(lán)屏,或斷電,都可能造成Java高速緩存被損壞。 而JVM會(huì)拒絕連接到一個(gè)損壞的高速緩存。
解決問題
要解決這個(gè)問題,使用“-Xshareclasses:destroyAll”的Java選項(xiàng)將銷毀所有的共享級(jí)緩存。這是一種實(shí)用工具選項(xiàng),所以不會(huì)啟動(dòng)JVM 。如果您想要這么做,只要從命令提示符使用參數(shù)“-Xshareclasses:destroyAll”來運(yùn)行RAD使用的java。
××××××××××××××××××××××××××××××××××××××
Follow the URL chain to get the result (the chain may contain over 300 URLs......)
謎題詳細(xì)描述: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
從一大堆字母里找出兩邊都剛好有3個(gè)大寫字母的小寫字母
詳細(xì)描述:
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)