Aug 26, 2013

Synchronizing savegames on Windows

For all of us that like to play the same game in different computers, there's a simple way to keep or game progress synced between computers and even backed on the cloud. The good thing about this approach is that you don't need any other software (if you already have the client of your favourite cloud provider) and its kinda simple to setup for a couple of games.

Basics

The idea is to have the save games stored in the cloud, linked to our cloud client's directory, so when they're modified, they will be updated in the cloud as well as the other devices we're playing from.

Setup (only needed once)

First of all, make a backup of your save game folder (just in case), then follow these steps:
  1. Create a folder inside Google Drive's folder for your save games.
  2. Find your game's save game location. (Google is your friend)
  3. Copy the save game folder to the one created in Google Drive.

Per-Computer setup

We have to do the following in every computer we want to have synced with the save games:
  1. Go to your game's save location and rename or delete the folder.
  2. Open a command window in the same location and type the following:
    mklink /J <Save game Folder> <GDrive Folder>
    
Example for Civilization V:
mklink /J "C:\Users\<User>\Documents\My Games\Civilization V\Saves"
"D:\Google Drive\Savegames\Civilization V\Saves"

You can change Google Drive for Dropbox or use another client.

Aug 13, 2013

Work behind a proxy with authentication

If you work in a big company you can find mostly all the times that you're required to pass through a proxy with a given personal user and password to be able to access the internet. Many times is as easy as configuring all the parameters in the browser's options, but for aplications limited to just use proxy or not, you might have some trouble making them work. This is when Cntlm comes handy.

Whats Cntlm?

Cntlm is an NTLM authenticating proxy, that can work as middle man between your PC and the company's proxy. This way you can let Cntlm handle the authentication with the proxy while you just point your aplications to Cntlm address.

Configuration

First of all, you need to open the cntlm.ini file, located in C:\Program Files\Cntlm and complete the following:
Username    test_user
Domain      company_domain
Password    user_password
Proxy       proxyaddress:port
Save the file and start or restart Cntlm service.

Cntlm should be working by now, but the user password isn't really secure since its inside a plain text filed... To avoid taking risks, we can use Cntlm to encode our password using the following:
C:\Program Files\Cntlm>cntlm -M http://www.google.com
Password:
Config profile  1/4... OK (HTTP code: 302)
----------------------------[ Profile  0 ]------
Auth            NTLMv2
PassNTLMv2      98D6986BCFA9999E41698C1686B58A09
------------------------------------------------
Copy/paste last two lines and comment (add # before) the password line.

Now we have our local proxy running in 127.0.0.1:3128, so we just need to change the browser and/or aplication options to point to our local proxy instead.