Tag Archives: win7

为什么程序无法固定到任务栏

Why an application cannot be pinned to the taskbar?

描述:安装了一个Full Uninstall,在开始菜单Full Uninstall下三项,其中一项是主程序名为Full Uninstall.lnk,因为常用,试图固定到任务栏。但右键居然找不到固定到任务栏的命令,怪事。打开程序,出现在任务栏的图标上再击右键,也是找不到固定到任务栏的命令。

原因:Windows 7里有一些限定,文件名里包含有一些特殊词语的可执行文件或者其快捷方式是无法固定到任务栏的。这些词语包括:Documentation;Help;Install;More Info;Readme;Read me;Read First;Setup;Support;What’s New;Remove。可以在注册表里找到。如图。

image

解决方案:将Full Uninstall.lnk改名为 Full Uninstal.link,就可以固定到任务栏了。

image

在mingw/win7上进行 micromet/snowmelt

Micro-met提供了优秀的气象要素的插值方法。其代码是fortran写成。在windows 7下进行编译需要一点trick。

1. 安装mingw,我安装的gcc 是4.4.0 版本。

2. 安装gfortran,一样4.4.0 版本。

3. 在micro-met code目录下,写一个 build.bat文件,内容是

gfortran -O3 -I. -o ../snowmodel enbal_code.f micromet_code.f preprocess_code.f readparam_code.f snowmodel_main.f snowpack_code.f snowtran_code.f dataassim_user.f outputs_user.f

4. Build.bat生成的snowmodel.exe将在上一级目录。

5. 确保 mingw的bin目录在path里,双击 build.bat,将在上级目录生成 snowmodel.exe

6. 切换到上级目录,双击生成的snowmodel.exe,提示说 页面文件太小,无法执行,类似。在命令行里执行snowmodel,将提示“系统无法执行指定的程序”。此提示是由于内存不够引起。清空占用内存的程序腾出内存一般可以解决。如果还不够,设置page file缓冲。

7. 这是由于 gfortran生成的代码受32MB 内存的限制。一些详细的解释可见以下网址:

http://www.trnicely.net/misc/vista.html

8. 使用管理员权限打开 regedit,在ComputerHKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlWOW 目录下,新建一个 DWORD类型的键DpmiLimit,并将其值设成128000000 (10进制),或者0x7A12000(16进制)。关闭注册表。

9. 双击build.bat重新编译。

10. 在命令行里,执行 snowmodel,将执行。

mpich2的安装问题

在windows7操作系统下,安装mpich2的时候,需要以administrator帐号登录进来,并以administrator进行安装。注意,是指administrator帐号,而不是administrators组里的其它管理员帐号。如果是其他管理员帐号,mpich2将无法运行。也不能以权限提升的方式进行安装。

安装完成后,administrator帐号甚至是可以被禁用的。这时切换到其它帐号,使用权限提升的方法,用其它管理员帐号进行 register(使用mpiexec register)后,就可以正常运行mpiexec了。

Win7上安装MPICH2

MPICH2是并行计算MPI的支持库。我们在win7平台上安装的时候遇到一些有意思的问题。安装机器以Administrator管理员权限登录进来,无密码。该机器上还有一般用户,假设为user,密码为userpwd。在安装后MPICH2可执行包后(注意安装时也需要管理员权限),运行mpiexec,弹出登记对话框,这里需要键入用户的用户名和密码,且密码不能为空。我们出问题的原因就是由于Administrator没有密码,所以用了user/userpwd,但看起来 mpiexec在具体执行的时候,同样是要求管理员权限的,否则出错。

由于mpiexec执行是通过port进行线程间交换数据的,所以如果遇到问题,还要注意配置防火墙配置。除了一些第三方防火墙,比如360防火墙要设置外,也不要设置windows自身带的防火墙。如果不会设置,最简单的方法就是将防火墙统统关闭。在不使用mpiexec的时候再打开防火墙。

Windows 7 多用户模式下安装AVSWAT 2005

1. 安装 arcview 3.2,安装完后,不要重启,打开arcview 3.2,键入注册码
2. 安装spatial analyst 2.0,安装完后,不要重启
3. 打开控制面板,将区域与语言里的格式,从中国改成 英语(美国),位置处的中国
可以不改。
4. 安装arcview, SA 都请安装在默认目录下,即不包括空格
5. 将avswatx的安装包解压缩到 c:esri 目录下的avswatx里。
6. 用管理员权限(重要!)打开arcview 3.2,打开 c:esriavswatx下的
setup.apr,将开始avswatx的安装。
7. 选择 for all users,在我安装时,选 only for me ,安装可以,但在装载swat的
时候提示注册表的 avswatx/swatdatabase等找不到。
7.1 重启,否则在使用arcview时可能提示 ntfont.c 错误等。
8. 以当前用户权限打开 arcview 3.2,在extensions里选择 avswatx extendable 和 spatial analyst 扩展。
9. 可以正常运行了。

禁止Windows 7下的备份提示

我是第三方软件备份的,没有用Windows 7本身带的。恼火的是,经常出现以下提示,

image

点击进去,出现“正在启动Windows备份”窗口,然后让选择备份位置。我的机器只有一个C盘是500GB。所以实际上是无法进行备份的。

image

于是就想如何将之禁止掉,不要时不时就跳出来。

在开始菜单里,找到计划任务程序,打开(须以管理员权限打开),定位到 任务计划程序(本地)> 任务计划程序库 > Microsoft > Windows > WindowsBackup,在右面板的 ConfigNotification 上双击,弹出,

image

切换到“触发器”,在每日上双击,

image

将启用选项的勾去掉。确定保存之。

注销当前用户后,再进来。

Install HP LaserJet 1012 on Windows 7

HP does not provide official support for LaserJet 1012 on Windows 7. There is a workaround and it does work fine for me.

The solution is original from this post (http://forums13.itrc.hp.com/service/forums/bizsupport/questionanswer.do?admit=109447627+1270533366367+28353475&threadId=1381135).

1. First off, go download HP LaserJet 1012 Host Based drivers.
64-bit: http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&prodTypeId=18972&prodSeriesId=377934&prodNameId=306510&swEnvOID=2100&swLang=8&mode=2&taskId=135&swItem=lj-67501-1
32-bit:
http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=306510&prodTypeId=18972&prodSeriesId=377934&swLang=8&taskId=135&swEnvOID=2093
2. Extract the driver.
3. Plug in and turn on your printer if you haven’t already.
4. Go to Start>Devices and Printers, and choose to add a printer
5. Choose to add a local printer
6. Choose Dot-4-usb printing support
7. Click Have Disk on the next window
8. Navigate to where you extracted the drivers, and choose the inf file
9. Choose the HP 1012 HB Driver
10. Follow the prompt till it installs the printer or what not

Now you may notice that it prints slow as heck, well no worries! To fix that do this.
1. Go to Start, right click Computer and choose Manage
2. Go to Device Manager
3. Find 1284.4 dot4usb Printing Support
4. Right click it and choose Update Driver
5. Choose Browse my computer for driver software.
6. Choose USB Virtual Printing Support
7. Follow the prompt, exit out of Device Manager
8. Go to Start>Devices and Printers
9. Right click HP 1012 HB, choose Printer Properties
10. Go to the Port Tab, find Virtual USB Printing Support (Not dot4) and check that.
11. Click Ok.
Congratulations! Your printer isn’t an agonizing experience anymore!!
NOTE: The users in my environment reported that the printer after a restart showed up uninstalled but continued to print fine, so meh. Guess it cannot be perfect.