File Cannot Be Deleted – File in Use

Have you been frustrated that the files can’t be deleted because they are being used by some other program that you don’t know? For example, the thumbs.db files (picture database) in a folder that contains pictures are often used by the windows explorer. The solution is simple, just download the file-unlocker: Unlocker1.9.2 · and right Continue Reading »


Jenkins CI server – Out of Memory – Solution

Jenkis, the famous CI (Continuous Server) throws out the following error recently and occasionally. FATAL: Java heap space java.lang.OutOfMemoryError: Java heap space FATAL: Java heap space java.lang.OutOfMemoryError: Java heap space The solution is to edit the jenkins.xml (in the Jenkins installation folder) and replace: -Xrs -Xmx512m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%\jenkins.war" –httpPort=8080 -Xrs -Xmx512m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar “%BASE%\jenkins.war” Continue Reading »

IDE eats memory

32-bit Visual Studio and Delphi 2007/XE8 Eat Memory (any 64-bit IDE)?

Modern IDE-s (Integrated Development Environment) eat memory (32-bit Visual Studio and Delphi 2007/XE8 Eat Memory) and 32-bit only can use up to 4GB (with Large Address Aware) and (3GB at 32-bit OS with /3GB boot-up mode). It would be good if there are 64-bit versions since most PC have more than 8GB RAM today (my Continue Reading »

C++ Coding Exercise – Check Integer Power of Two

Given an integer, write a function to determine if it is a power of two. This is not new, and the solution has been posted at The solution is based on the fact that if the number if power of two, then do an logic-and operation with its minus-one will become zero. class Solution Continue Reading »

Retrieving BIOS Information using VBScript

VBScript under Windows Script Host is very powerful. Most daily administrative tasks can be implemented and performed using VBScript, which comes at each Windows Versions from and after Win98. BIOS is a specific program that runs after a computer starts. ‘ Retrieving BIOS Information Dim strComputer, colBIOS, objBIOS, i strComputer = "." Set objWMIService = Continue Reading »