Modify the message of an unpushed commit with git (and not only the last)

I am still learning my way around git, which I mostly use from within Visual Studio. Today I had to change a commit message because I noticed later that I had mentioned an incorrect ticket number. Fortunately I had not yet pushed the commits to origin.

If you need to change the latest commit’s message, that is easy. Just perform an “amend” to the latest commit. In the Visual Studio Team Explorer pane, go to Sync, lookup the latest Outgoing Commit edit the message and choose “amend” from the options. Or type git commit –amend -m “My new message” on the command line.

BTW You can also add more changes into the latest commit, which comes in handy if you spot a spelling error just after you commit. 😉

Changing any commit other than the last is a bit more difficult. We’ll need the command line here, there’s no interactive Visual Studio guidance available. But I’ll walk you through it. Lees meer over dit bericht

Outlook 2016 latest update clears POP mailbox

I’m still investigating, but it appears as if Outlook 2016 is clearing my POP mailboxes, despite the accounts having been set to keep the mail for 14 days. This always worked flawlessly, but this morning (29 feb…) Outlook started deleting all emails after reception, not only those older than 14 days.

Is it a coincidence that today, leap day, I started having this issue? (Update: yes it is. See below for latest information.)

2016-02-29_10-53-21From the mailserver logs, I can confirm from the logs it is the POP3 client (Outlook) that is sending the DELE commands. All my other devices are set to login using IMAP. If I shut down Outlook, mails are not deleted. As soon as I start it up again, deletions start again.


Anyone else seeing this?

I am running Outlook 16.0.6568.2025 (updated this morning and now reporting it is “the latest version”).

Update 11:14

I think this must have started after updating the latest version, I am pretty sure it did not happen before the update. I started Outlook around 08:00 this morning and ran the recommended update shortly before the deletions started happening.

Update 11:28

If Josh is right (and he probably is), the fact that it is a leap day today, is a coincidence. That is unfortunate, as that means the trouble will not automatically be over tomorrow. 🙂

Since I am obviously too late to skip the update, I am investigating options to downgrade now.

Update 11:54

I can confirm that Method 2 mentioned in the KB article worked (for me) to downgrade Outlook, and that the downgraded version does not exhibit this behavior.

Will keep an eye on the article to see if it is fixed to re-enable updates.

Note that I’ve now changed the title of this blog entry to blame “latest update” instead of “leap day”.

Update 07-03

The latest version (build 2036) appears to have this issue fixed. I updated this morning and are having no problems since.


Quickly connect to a VPN on Windows 10 (revisited)

Update (June ’17): it has taken more than 1,5 years since I posted this, but the Windows 10 “Creators Update” finally contains a Connect button right in the Network Connections flyout… 🙂

Earlier I wrote about a trick to make Windows 10 connect to a VPN with a single action (double-click) instead of three or more. I recently found that this trick had a limitation: it only worked because the username and password for my VPN connection were the same as the username and password of the Windows 10 computer I was using (a local account). On another Windows 10 pc that was using a Microsoft account, it failed telling me the username / password was not correct:

Remote Access error 691 – The remote connection was denied because the user name and password combination you provided is not recognized, or the selected authentication protocol is not permitted on the remote access server.

Because it worked on the first pc, I assumed that rasdial used the username/password I stored in the VPN configuration. It looks like it doesn’t, but uses your Windows username/password instead (need to verify this). One could discuss whether that is a bug or a feature, but in the end, the result is that it doesn’t work for me.

So I started looking for alternatives. Other tricks I found involved storing the username/password in the command file, but I did not want to do that. The solution is to not use rasdial, but it’s nephew rasphone.

Change the line

rasdial "My VPN connection name here"


rasphone -d "My VPN connection name here"

Mind the -d before the name of the connection.

It shows the familiar connecting dialog, instead of the command line window, and it just works.

Making TrueCrypt system favorite volumes stick in Windows 10

In the last paragraph of Upgrading a TrueCrypt-protected system to Windows 10 I wrote simply that you should re-add your secondary volumes to the system favorite volumes to have them mounted automatically. That turned out to be a bit too simple. Despite adding my data volume to system favorites, upon (re)boot the volume would sometimes be mounted and sometimes not. A reboot would always work correctly, but shutting down and booting later, the volume often disappeared.

This happens because of Windows 10’s hybrid quick boot scheme. (Which was also present in Windows 8, so this may be old news for some of you, but I went directly from 7 to 10 so I skipped that.) Lees meer over dit bericht

Quickly connect to a VPN on Windows 10

vpn11All-in-all I am very happy with my upgrade from Windows 7 to 10. The procedure was smooth and almost (more on that later) everything still worked like a charm, out-of-the-box, despite having lots of not-so-obvious software on the machine. (Comes with the job as a developer, I guess.)

However, one minor thing very soon annoyed me on Win10 and that was the crappy user experience for connecting to a VPN, despite that shiny new VPN button in the new Action center (btw, action center tip: use WinKey+A), which in itself looked like good idea. Lees meer over dit bericht

Upgrading a TrueCrypt-protected system to Windows 10

I have protected my (Windows 7) development computer’s system volume with Truecrypt and pre-boot authentication. To upgrade a system like this to Windows 10 when it is offered to you, is almost as easy as any other system, but you need to plan ahead! Here’s a really easy how-to. Lees meer over dit bericht

First smiles with VS2015: clean solution folder

I have recently installed Visual Studio 2015, which was released last week, and plan to have it replace my current Visual Studio 2013 in my day to day workflow as soon as possible. If the first project I migrated proves to be indicative of the smoothness of the procedure, I’m all good. A fairly large database project (SQL Server Data Tools) opened immediately without even the slightest change to project or solution files.

Knipsel2The only change to the solution folders that I noticed, was a new (hidden) folder named .vs. This folder will hold your user or machine specific settings files from now on (like the .suo file). I like the idea: these are files that should not be checked in to source control. Now I can easily exclude the folder and be done with it, instead of excluding the files one by one based on name or extension. It also looks a lot cleaner in Explorer (and I like it when things look clean).

Now this first one was a project I work on alone, but for other projects there are more developers, not all of which have moved to VS2015 yet. Looks like I can start working from 2015 while the other team members migrate in their own pace. Of course in that case I’d have to wait using new language or framework features, but I can still benefit from improvements to the IDE and debugger.

Removing “Synchronisation of shared folders” from the explorer folder context menu

Recently, knipsel1when right-clicking a folder in explorer (windows 7, office 2010), I noticed a new item “Shared folder synchronization” with a sharepoint icon in front of it. It probably started when modifying my office installation to include OneNote, which I left out during original install. It is a part of something called “sharepoint workspace”. It appears (couldn’t get a definitive answer on that one) that OneNote uses parts of that component for it’s workbook synchronization features, so I don’t want to remove the entire feature via the office setup. However, I don’t use the shared folders and would like it removed from my context menu (which is already cluttered up enough with items I *do* use 😉 ).

Lees meer over dit bericht

Solved occasional VPN RAS error 812

I had the exact problem Roger describes: occasionally a disconnect of my VPN and then unable to reconnect, with error message 812: The connection was prevented because of a policy configured on your RAS/VPN server. Specifically, the authentication method used by the server to verify your username and password may not match the authentication method configured in your connection profile. Please contact the Administrator of the RAS server and notify them of this error.

His consideration was the same as mine, it could not be configuration or else it would have consistently worked or not. Roger traced it to a DNS issue:

Eventually I was able to isolate the issue to a periodic problem with the RRAS server not being able to connect to the Active Directory server for account authentication.  One of the reason codes occasionally generated in the security event log was:

The Network Policy Server was unable to connect to a domain controller in the domain where the account is located. Because of this, authentication and authorization for the RADIUS request could not be performed.

The cause of the problem ended up being very simple:  The primary DNS of the RRAS server was no longer pointing at the domain controller.  Changing the primary DNS to the domain controller and setting the secondary DNS to an external server (the primary google DNS in this case) eliminated the issue.

Thanks to Roger for taking the time to post that, it probably saved me a couple of afternoons debugging this…

Keeping Java updated without installing the Ask toolbar

Not only does the Oracle Java installer for Windows come with a useless toolbar from Ask, it is not enough to uncheck it at installation time. With every Java update you get, which you are recommended to install, you will be ‘ask’ed again and it is checked by default. I can count on myself to uncheck it every time, but non IT-savvy people are very likely to leave it checked, as I have noticed many times at friends and family and even small businesses that don’t have local admins or policies in place like large companies do.

According to, there is a way to turn this behavior off. I have just applied the solution to my system, and happily awaiting the next Java update to see how it works.

[Ad. 22-07] It works. 🙂