Change timezone on Ubuntu

1. Check the timezone:

2. Change the timezone:

3. Be sure to restart cron as it won’t pick up the timezone change and will still be running on UTC.

 

A simple file server of Node.js

1.  npm install node-static -g

2. mkdir public (we could add files on the folder)

3. static /root/public  -a 0.0.0.0

Note: If you want more help, try static -h

Get the newest uninstaller for the updated ProductCode in VS 2010

When we are using the VS 2010 and trying to release our application to the customer, we sometimes use the default deployment project to create a simple msi package as the solution. But if any update is released, it is very important to change the Version/ProductCode of our vdproj project, and we need to modify the uninstaller’s ProductCode. If more projects, we need modify more uninstallers. Is there any solution or workaround to avoid the bothering work? Of course, there is.

1. You should get the following code to create a project named “ProductCodeFixer”:

 

2. Add the ProductCodeFixer to uninstaller’s directory, and set an vdproj file path as a parameter, the ProductCodeFixer will automaticly change the uninstaller’s version.

Note: You can get the uninstaller from here.

3. Before creating the msi package, we should add PreBuildEvent to our project like the following: “$(ProjectDir)\xxxx\ProductCodeFixer.exe” “$(ProjectDir)\xxxx\our_proj.vdproj” . After running PreBuildEvent, you’ll get a new uninstaller for the new msi package.