The world is not beautiful

July 21, 2009

[zz]恐怖的windows installer..

zz from http://bbs4.newsmth.net/bbscon.php?bid=99&id=1471960

M$的又一个纱布设计…

发信人: mous (mous), 信区: NewSoftware
标 题: Re: 装Vista时,C盘留80G够不够?
发信站: 水木社区 (Sat Jul 18 21:48:30 2009), 站内

window installer 服务启动的时候,如果是junction,
会清空junction的目标,删除junction,重建installer目录。
然后就欲哭无泪了。
【 在 nighthawk (为什么为什么为什么为什么为什么为什么) 的大作中提到: 】
: 标 题: Re: 装Vista时,C盘留80G够不够?
: 发信站: 水木社区 (Sat Jul 18 21:28:58 2009), 站内
:
: 这个文件夹junction不好使?
:
: 【 在 SunFollow (逍遥仙剑) 的大作中提到: 】
: : 标 题: Re: 装Vista时,C盘留80G够不够?
: : 发信站: 水木社区 (Sat Jul 18 19:42:50 2009), 站内
: :
: : 不能安装。。不能卸载。。
: : 只有重装系统。。
: :
: : 【 在 mous (mous) 的大作中提到: 】
: : : 在用junction把C:\windows\installer搞出事后,深深地领会了这个道理。。。
: :
: :
: : —
: :
: : ※ 来源:·水木社区 newsmth.net·[FROM: 119.6.16.*]
:
:
: —
: 睡吧/睡吧/我的唯一的爱/沉睡在粪土和黑暗中
: 忘了恐惧/忘了孤独
: 听蛙鸣鸟语歌颂世界/从树林和草丛中
: 睡吧/我的爱/忘怀一空/沉睡在粪土和黑暗中
:
:
: ※ 来源:·水木社区 newsmth.net·[FROM: 211.160.20.*]

※ 来源:·水木社区 newsmth.net·[FROM: mous]

※ 来源:·水木社区 newsmth.net·[FROM: 210.32.174.*]

July 20, 2009

Custom FireGesture script to use both wheel gesture(up/down) to switch tab

Filed under: I'm here, Toy box, Software

The default behavior of FireGestrure’s wheel gesture is like this: hold right mouse key down, scroll down mouse wheel one time, then a list of tabs is shown and current tab is selected, one should scroll down one more time to select next tab. the fist scroll down is interpreted as “show the switch tab drop list”, as they do not use both wheel up/down for tab switching.

but when i want to use both wheel up/down to switch between tabs, the default behavior is annoying, what i want is that the cursor should scroll to last/next tab in the list as soon as i scroll the wheel up/down for the first time. the default command can’t meet my requirement, after some researching, my solution is a short piece of custom script:

FireGestures._buildPopup(”FireGestures:AllTabsPopup”, event.type == “DOMMouseScroll”, null);
FireGestures.handleEvent(event);

June 18, 2009

Adobe Acrobat 7启动后报错”Your computer’s configuration appears to have changed since…”

Filed under: Software

最近公司办公用的电脑换了台配置稍好的,于是装系统,装软件..

装完、激活完Acrobat 7后(当然是keygen激活的盗版的嗯..),启动Acrobat准备让他自己下升级补丁,结果报错了:
“Your computer’s configuration appears to have changed since the time this product was activated. To continue using this product, please click OK to activate it again for your new system configuration, or click Cancel to exit.”

google到一个解决方案:
http://kb2.adobe.com/cps/409/kb409127.html

看样子似乎是adobe的认证服务有些bug要打补丁,ok,下下来装上,启动acrobat,错误依旧,重激活再重启还是报错

这下傻眼了,google到的东西里面似乎没有太多有用信息,很多都是联系客服按照客服指导做就ok了,也没说具体怎么做的,另外上面那个补丁所适用的情况也只是adobe的激活系统在raid环境下会出问题导致一直要重激活,但是我机器又没做raid,这似乎不是一个问题;另外adobe网站上一个trouble shooting再众多步骤后居然要求用户重装系统(http://kb2.adobe.com/cps/331/331419.html),我不得不暗地骂adobe你们这帮纱布..

获得的有用信息只有:
1. acrobat 7的激活信息会写在Documents and Settings\All Users\Application Data\Adobe Systems\Product licenses下的一个dat文件中
2. adobe的认证服务(AdobeLM Service)会将一些信息写到第一块硬盘(HD0,又或者是系统所在硬盘)的0扇区上,这点在某个网站的一个帖子里有人略微提了一下,我用procmon的监听结果也支持了这点

于是疑点就出现了,在新机器装了系统后,我把原先机器上的一部分application data拷到了新机器上,愿意是希望这些软件的配置信息能保留,其中也包括了adobe的目录,也就是说,1中的激活信息文件也被我拷过来了

于是尝试删除该文件,卸载acrobat重装,激活,问题依旧

看来要考虑2的影响了,新机器的硬盘和老机器的硬盘不是同一块所以2的记录本来应该不存在,但是因为有错误的1的存在的情况下安装激活过acrobat了,所以可能1中的某些信息也被写到2里去了

监听比对激活时adobe认证服务对硬盘操作的操作后,将记录范围锁定在0硬盘0扇区的0x4000-0x41ff范围内,备份后用winhex将这块区域内容清0,再删除1中的激活信息文件,(没重装)尝试直接启动acrobat,提示说未激活,用keygen激活,重启acrobat,ok,问题解决。

最后,我只想说:adobe,你大爷

January 7, 2009

Problem Connecting from IIS(ASP) to Oracle Database

Filed under: Software

Today when a try to build a web page which gathers some data from a Oracle Database, I meet the following error:

Provider cannot be found. It may not be properly installed

i had oracle 9i client installed on my machine, the connection is made through oracle oledb provider, and i can successfully connect to the database in wscript host with the same connection string. so it seems there is something wrong with iis and oracle

after some search, i had a try to use microsoft oledb provider for oracle instead of oracle’s, then i get this error:

The Oracle(tm) client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3 (or greater) client software installation

there are information saying that one should edit registry to let microsoft provider knows the correct oracle dll file name for oracle client version above 9i. this is probably right and required for microsoft oledb provider, further infomation can be found on http://support.microsoft.com/kb/193893. but this still can not solve my problem.

more search result point to iis user privage on oracle home folder. the most popular related solution is like:

Oracle 9.2 Client software requires that you give the Authenticated User privilege to the Oracle Home by following these steps:
1. Log on to Windows as a user with Administration privileges.
2. Launch Windows Explorer from the Start Menu and navigate to the ORACLE_HOME folder. This is typically the “Ora92″ folder under the “Oracle” folder (i.e. D:\Oracle\Ora92).
3. Right-click on the ORACLE_HOME folder and choose the “Properties” option from the drop down list. A “Properties” window should appear.
4. Click on the “Security” tab of the “Properties” window.
5. Click on the “Authenticated Users” item in the “Name” or “Group or user names” list.
6. Uncheck the “Read and Execute” box in the “Permissions” or “Permissions for Authenticated Users” list under the “Allow” column.
7. Re-check the “Read and Execute” box under the “Allow” column (this is the box you just unchecked).
8. Click the “Advanced” button and in the “Permission Entries” list make sure you see the “Authenticated Users” listed there with:
Permission = Read & Execute
Apply To = This folder, subfolders and files

If this is NOT the case, edit that line and make sure the “Apply onto” drop-down box is set to “This folder, subfolders and files”. This should already be set properly but it is important that you verify this.
9. I checked the “Replace permission entries on all child objects with entries shown here that apply to child objects” checkbox and clicked the “Apply” button. (This was not specified in the original instructions, but it worked.)
10. Click the “Ok” button until you close out all of the security property windows. The cursor may present the hourglass for a few seconds as it applies the permissions you just changed to all subfolders and files.
11. Reboot your computer to assure that these changes have taken effect.
12. Re-execute the application and it should now work.

i did as it said. after add read&exeute permission to %ORACLE_HOME% folder for Authenticated Users, IUSR_ and IWAN_, the microsoft provider pops:

Oracle error occurred, but error message could not be retrieved from Oracle

now i can’t find more information on internat, i thought maybe there is some more lib files outside oracle home folder requires permission set, so at last i start filemon to watch which file access is blocked by window privage system.

then i found that w3wp is tring to access bin/oraclient9.dll under oracle home folder but ended with an “access denied” error

now the truth is out. though i set the permission, and confirmed that the “apply to” option in advance page is set to “This folder, subfolders and files”, the subfolders and files still have their own privage setting. so the correct method should be:

*after granted read&exeute permission of oracle home folder to Authenticated User, and confirmed the “apply to” option in advance page is set to “This folder, subfolders and files”, one should check the “replace permission entires on all child objects with entries shown here that apply to child objects” option to overwrite subfolders’ privage setting*

after this, both oracle provider and microsoft provider works correctly

February 25, 2006

[zz]HOW TO:更改用户配置文件和程序设置的默认位置

Filed under: Software

参见:
http://support.microsoft.com/kb/322014
ps: 强烈b4微软,这种list结构的文章居然用的是table格式化,弄的我转换格式花了好长时间

概要

本文描述了如何移动用户的 Documents and Settings 文件夹。

所有用户的配置文件信息均存储在“%SystemDrive%\Documents and Settings”文件夹中。如果您尝试在
Windows 中移动或重命名用户的 Documents and Settings 文件夹,您将收到以下错误信息:

Documents and Settings is a Windows system folder and is required for Windows to run
properly.It cannot be moved or renamed.
注意:本文包含有关 Microsoft 不支持的配置的信息。Microsoft
提供此信息仅供参考;Microsoft 不能保证此配置可以正常运行。

警告:Microsoft
强烈建议不要重命名任何系统文件夹。如果重命名系统文件夹,可能会导致系统故障或计算机性能不稳定。使用本文中的信息之前,请备份您的计算机。

移动用户的 Documents and Settings
文件夹

警告:注册表编辑器使用不当可导致严重问题,可能需要重新安装操作系统。Microsoft
不能保证您可以解决因注册表编辑器使用不当而导致的问题。使用注册表编辑器需要您自担风险。

注意:此方法并不会重新定位重要的 Windows 组件。此方法仅用于移动用户特定的数据。

  1. 确定用户的配置文件路径。确定配置文件路径有两种方法。可以使用以下两种方法中的任一种(首选用户
    SID 方法):

    • 用户 SID 方法:
      1. 使用 Windows Server Resource Kit 中的 Getsid 工具获取
        SID。使用与以下示例类似的语法:

        getsid \\服务器1用户名
        \\服务器1用户名
      2. 获取 SID 之后,使用 Regedit.exe 或 Regedt32.exe 在以下注册表项之下选择用户的
        SID:

        HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
    • 用户路径设置方法:
      1. 以用户身份登录到计算机,然后在命令提示符下键入 set。记下 USERPROFILE 的设置,然后关闭命令提示符窗口。
      2. 以计算机管理员的身份登录。
      3. 使用注册表编辑器将 USERPROFILE 设置添加到以下注册表项中:
        HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
      4. 单击注册表项,然后单击编辑菜单上的查找
      5. 查找框中,键入 USERPROFILE 设置的值,然后单击查找下一个
  2. 更改 ProfilesDirectory 值以使用您希望在
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
    注册表项中使用的新路径。
  3. 退出注册表编辑器,然后以用户身份登录。在命令提示符下键入 set,以确认路径已更改。


这篇文章中的信息适用于:
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional Edition
  • Microsoft Windows 2000 Datacenter Server

[昨日旧闻]R2被关了..

Filed under: Software, Snapshot

R2被某国警察/FBI关掉了- -b(一说瑞士,一说比利时,ms是双方联合行动…),懒得贴完整的新闻了,反正已经满天飞了~

对eMule的影响其实不是很大啦,反正有kad撑着,而且R2的用户大量都涌入donkey server NO.1了..(那个服务器估计已经不堪重负了…)

没事我还是挂popgo好了…R2一关,这里人也多了不少…

November 15, 2005

唔..词霸2k6…

Filed under: Software

某些方面还是不错的..比方说两个连在一起的单词现在可以识别了,刚刚发现居然连”M$”这样的写法都能识别为”MS”…

不过金山的员工怎么想的阿…像一般菜单里那种标准的带快捷键的菜单项都没法识别,比如”&File”(就是一般看到的File)这样的居然会认成”F”和”ile”…orz…

金山真的是把用户当测试员用的吧…

Get free blog up and running in minutes with Blogsome
Theme designed by Jay of onefinejay.com