Misc

Golden Java Development (ICONIX + EA+ JIRA + Confluence + FishEye + Clover + Crucible + Bamboo + CheckStyle + PMD + MyEclipse...

The best tools and processes for the best Java enterprise development:

Software development process - ICONIX
Project issue tracking - JIRA
Project knowledge base - Confluence
Version control - Subversion
Version control monitor - FishEye
Code review - Crucible
Coding standard - CheckStyle
Code analysis - PMD
IDE - MyEclipse
Build - Ant
Continuous build server - Bamboo
UML/Requirements - Sparx EA


hell... there is more... junit, webtest... oooohhhhh

Missing Send to OneNote Printer? Try these

It is weird that if you install Office 2007 after uninstalling Office 2003, or any other way such that you don't see a send to OneNote printer. Having tried reinstalling, repair, remove/add feature again, and none of these works, then try the following:

Getting ScribeFire and Drupal work together

Thu, 04/19/2007 - 18:53 — Richard Laffers

Want to use the ScribeFire (a.k.a. Performancing) Firefox extension for publishing from your desktop to your Drupal based blog? Read here how to set it up in 5 steps.

IE 6, IE 7, and Firefox DIV problem

Did you realize that the DIV usages in IE 6 and Firefox 1 are broken in IE 7 and Firefox 2? Such as the overflow problem and DIV overlapping each other.

To fix this, take out certain width and height declarations and put min-width, max-width, etc. instead.

Besides, to make overflow:auto work in IE7, put position:relative 

npkcrypt 服务启动失败

QQ在系统中安装了此虚拟设备,是提供密码保护功能的,但是卸载时却卸不掉。太垃圾了!!! 1、“设备管理器”中,选择“查看”/“显示隐藏的设备”,在“非即插即用驱动程序”中选择“npkcrypt”,卸载。 2、删除注册表中的键项:“HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\npkcrypt”或 “HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\npkcrypt”。 3、删除QQ目录下:npkcrypt.sys、npkcrypt.vxd、npkcusb.sys 三个文件。

Downgrading Office 2007

If you wish to downgrade Office 2007, you can only uninstall it and re-install Office 2003. After the downgrade, you yet have to do something manually to make Outlook work: In C:\program files\Common Files\System\MSMAPI\1033 - 1. Rename MSMAPI32.DLL to MSMAPI32_OLD.DLL 2. Rename MAPISVC.INF to MAPISVC_OLD.INF 3. Restart Outlook and everything comes back up.

Manually delete a windows service

You can use the command line tool "sc" to delete a service (as well as a whole bunch of other things, like set it to manual/auto, stop/start it, etc).

C:>sc delete
DESCRIPTION:
Deletes a service entry from the registry.
If the service is running, or another process has an
open handle to the service, the service is simply marked
for deletion.
USAGE:
sc delete [service name]

"An unexpected error occurred" when opening network connections properties in windows

Error Message:
An unexpected error occurred.

Translation:
This message may appear when opening the properties of a network connection in the Network Connections folder. It’s possible that Registry settings for the network connection may be damaged.

Solution:
Click Start, Run, and type regsvr32 %systemroot%\system32\netshell.dll. Click OK and try again to open the properties for the affected network connection. If it still doesn’t work, click Start, Run, type regsvr32 %systemroot%\system32\ole32.dll, click OK, and then restart the computer and try to open the properties for the network connection.

Clear Saved Windows Network Passwords

From time to time, I need to clear or reset a saved password to a network share.  When I connect to a remote computer and click the Remember Password checkbox, it gets stored somewhere... this command will help you manage those passwords:

rundll32.exe keymgr.dll, KRShowKeyMgr

Trap F1 Key or any Keys in both Firefox and IE

There are various ways to trap keys in Firefox and IE. Apparently Firefox and IE have different ways of trapping the F1 key and prevent the default application help.

After quite a bit of research, I came up with the following code that will work both in Firefox and IE. The following example uses Yahoo's event library, however, you can code in original DOM easily:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Untitled Document</title>
<script type="text/javascript" src="build/yahoo/yahoo.js" ></script>
<script type="text/javascript" src="build/event/event.js" ></script>

<script language="javascript" type="text/javascript">

//var oElement = document.getElementById("body1");

if (!YAHOO.util.Event.addListener(document, "keydown", fnCallback)) alert("failed");
document.onhelp = new Function("return false;"); // disable default help in IE

function fnCallback(evt) {
   if ( evt == null )
       evt = event;

   if ( evt.keyCode == 112 ) //F1
   {
       alert("la"); // put your action here! IMPORTANT: must come before evt.preventDefault()!
       evt.preventDefault();  // disable default help in Firefox
       return false;
   }
}

</script>

</head>

<body id="body1">
</body>
</html>

Syndicate content