Fun at work!

Archive for the ‘Windows’ Category

Repost: How to compute the MD5 or SHA-1 cryptographic hash values for a file

You can use the File Checksum Integrity Verifier (FCIV) utility to compute the MD5 or SHA-1 cryptographic hash values of a file. For additional information about the File Checksum Integrity Verifier (FCIV) utility, click the following article number to view the article in the Microsoft Knowledge Base:

To compute the MD5 and the SHA-1 hash values for a file, type the following command at a command line:
> FCIV -md5 -sha1 path\filename.ext

For example, to compute the MD5 and SHA-1 hash values for the Shdocvw.dll file in your %Systemroot%\System32 folder, type the following command:

> FCIV -md5 -sha1 c:\windows\system32\shdocvw.dll

How to install Apache ANT on Windows 7?

Apache Ant is a Java library and command-line tool that help building software. Here’s how to install Apache ANT on Windows 7.

1. Download the latest ANT zip archive at http://ant.apache.org/.
2. Unzip the package and rename the folder to “ant”.
3. Copy the “ant” folder to the desired location, say at the root of drive D.
4. Run the command prompt as Administrator and set the environmental variables for ANT and JAVA (Note: Set ANT_HOME to the uncompressed ant folder and JAVA_HOME to the Java JDK folder. If JAVA_HOME is incorrectly set, ANT cannot locate the needed tools.jar) as follows:

set ANT_HOME=D:\ant
set JAVA_HOME=D:\Program Files\Java\jdk1.7.0_09
set PATH=%PATH%;%ANT_HOME%\bin

5. Check whether ANT works correctly or not by using the command prompt.

ant -version

6. You’re done if you see the ANT version.

Screenshot of the example:

図1

How to display line numbers in Eclipse IDE?

By default, Eclipse’s editor does not display line numbers. Follow this simple guide to enable “Show line numbers”:

In Eclipse IDE, go to Window>Preference>General>Editors>Text Editors, and check Show line numbers. See screenshot below.

Eclipse Display Line Number

Tag Cloud