2008年5月9日


默认的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 罗明 阅读(2248) | 评论 (0)编辑 收藏
 

这个有可能是注册表访问失败造成的。

解决办法:

1. 打开C:\WINDOWS\setupapi.log,在最底下(最新的信息)应该可以看到驱动安装时访问某个注册表项失败。
例如: 在我这里是HKCR/CLSID/{*****}

2. 运行regedit,打开注册表编辑,选中相应的注册表项,右键单击选择“权限”,在弹出的对话框里赋予当前用户或Everyone “完全控制”的权限。
例如:展开HKEY_CLASSES_ROOT,浏览到CLSID项,右键单击选择“权限”,选择Everyone,在下面的“完全控制”里勾选“允许”,单击确定完成修改。

3. 重新安装或更新驱动程序,应该就ok了 : )

posted @ 2010-03-08 15:10 罗明 阅读(4347) | 评论 (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 罗明 阅读(1781) | 评论 (2)编辑 收藏
 
今天发现两个google和百度找不到的知识点,赶紧记下来,是切身体会呢^-^

1. 有的人光线暗的时候照相总是红眼,旁边的人却没有。 这个在百度和google上都找不到原因。不过我现在知道了,是因为这个人眼睛比其他人大,大眼睛的人晚上照相时肯定红眼的,嘿嘿

2. 我的Windows 7 Beta居然可以一直用。你看,我笔记本这半年时间还没自动重启或不能使用。。。
posted @ 2009-08-02 22:48 罗明 阅读(1284) | 评论 (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 罗明 阅读(1603) | 评论 (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 罗明 阅读(1548) | 评论 (2)编辑 收藏
 
Firefox在Linux下的后退按键是“Alt"+"<-",要同时按两个键,不如Windows下的Backspace一次按键方便。

要启用Backspace,只需将about:config里的“browser.backspace_action”由默认的2改为0


posted @ 2008-06-22 20:50 罗明 阅读(1988) | 评论 (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 罗明 阅读(7678) | 评论 (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 罗明 阅读(1278) | 评论 (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 罗明 阅读(2816) | 评论 (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 罗明 阅读(1307) | 评论 (27)编辑 收藏