Posted by jpluimers on 2012/05/08
Some clients generate their VPN connection settings using the CMAK (Connection Manager Administration Kit). Apart from the cumbersome way to support both x86 and x64 at the same time, they usually add in some kind of time-out feature, and often route the whole 10.0.0.0/8 network over the VPN to just host a couple of dozen machines. Having done most of my VPN connections by hand, and automating them using rasdial to dial these from the commandline, I also found out the hard way that you cannot use rasdial for CMAK generated VPN connections: it will give you the error “This function is not supported on this system.”. The funny thing is: you can disconnect using rasdial. Luckily, the far less well documented rasphonedoes work for dialing. The batch file below uses a few tricks, and you can set the parameters in the top of the batch file.
Have fun with it!
Posted in Development, Power User, Scripting, Software Development, Windows, Windows 7 | 1 Comment »
Posted by jpluimers on 2012/05/07
Posted in Power User | Leave a Comment »
Posted by jpluimers on 2012/05/04
One of the things about the Office 2007 and 2010 Ribbon is that it makes the things that you have remembered for 10+ years go into hard to find places.
My point is that according to the ribbon documenation:
A ribbon can replace both the traditional menu bar and toolbars.
Microsoft has decided to read the “a ribbon can replace” as “the ribbon replaces”. Thereby also introducing a whole new naming for the UI elements used in ribbons (see at the bottom).

Tab “Review”; Group “Changes”; Commands “Protect Sheet” / “Protect Workbook”
Protecting a worksheet and workbook have been in the menu “Tools”, submenu “Protection” forever. But alas: No more “Tools” menu, and accompanying keyboard shortcut productivity (and I needed “unprotect workbook” because you cannot copy workbooks inside a protected workbook).
As “password protect worksheet” shows, it is now under:
- Tab: Review
- Group: Changes
- Commands: Protect Sheet / Unprotect Sheet / Protect Workbook / Unprotect Workbook
–jeroen
via: Microsoft Excel 2007 – Protecting Workbooks.

Naming of ribbon UI elements
Posted in Excel, Keyboards and Keyboard Shortcuts, Office, Power User | Leave a Comment »
Posted by jpluimers on 2012/04/30
If you love photography, be sure to read Ken Rockwell’s website. It is filled with useful information on photography and audio ranging from generic tips on making better pictures to specialized tips for many brands of equipment.
Since I use a Nikon D700 and D300, these are the most important for me, with a few quotes: Read the rest of this entry »
Posted in About, Opinions, Personal, Photography, Power User | Leave a Comment »
Posted by jpluimers on 2012/04/27
Gearing down to WAP:
Zoals Donny al zegt, je hebt GPRS voor 2G, wat redelijk werkt voor lage-bandbreedte dingen zoal mail en mobiele websites (http://tweakers.mobi) bezoeken.
Vroeger had je ook nog WAP (wireless access protocol). Hele lage bandbreedte. Daarvoor moet je browser wel wap begrijpen. Zo is wap.tweakers.net nog in de lucht.
Moderne browsers snappen WAP iig. niet. Voor een simulator voor WAP: http://tagtag.com/site/info/emulator (en probeer maar wap.tweakers.net)
–jeroen
via: Providers vergroten capaciteit netwerken voor Koninginnedag | Mobile | Tweakers.net Nieuws.
Posted in Power User | Leave a Comment »
Posted by jpluimers on 2012/04/27
Dit was 1 van de dingen die ik midden jaren ’90 van de vorige eeuw voorzag: oude info blijft tot in de eeuwigheid beschikbaar.
- Naam: PLUIMERS SOFTWARE ONTWIKKELING
- Vestigingsadres: HOOFDSTRAAT 207 B
- Vestigingsplaats: 2171BC SASSENHEIM
Toen het nog een eenmanszaak was en je de 500 meter van je favoriete vereniging naar huis blind kon afleggen.
–jeroen
via: Kamer van koophandel: handelsregister : Kiezen informatieproduct.
Edit 20230701: bovenstaande informatie is inmiddels verhuisd naar een andere server:
Posted in About, Opinions, Personal, Power User | 2 Comments »
Posted by jpluimers on 2012/04/26
Some very interesting tips from game development that apply juts as well to general software development.
On code health:
Now I always try to dig right down to the root cause of a bug, even if a simple, and seemingly safe, patch is available. I want my code to be healthy. If you go to the doctor and tell him “it hurts when I do this,” then you expect him to find out why it hurts, and to fix that.
Though tools like SourceMonitor can help you track your code health, the best tool is between your ears.
–jeroen
via: Dodgy Coder: Coding tricks of game developers.
Posted in .NET, Batch-Files, C#, C# 2.0, C# 3.0, C# 4.0, C# 5.0, Delphi, Delphi x64, Delphi XE2, Development, JavaScript/ECMAScript, PHP, PowerShell, Scripting, Software Development | 1 Comment »
Posted by jpluimers on 2012/04/25
I’ve been really busy lately with a couple of migration projects, so I totally missed the various SQL Server 2012 is Generally Available! announcements.
Which is important because for one client, this opens the possibility of move from SQL Server 2000 right to SQL Server 2012 in stead of SQL Server 2008 R2 and make a more smooth path for Azure.
–jeroen
via:
Posted in Database Development, Development, SQL Server, SQL Server 2000, SQL Server 2008 R2, SQL Server 2012 | Leave a Comment »
Posted by jpluimers on 2012/04/24
While transitioning from SQL Server 2000 to 2008, I recently had the “A severe error occurred on the current command. The results, if any, should be discarded.” occurring on SQL Server 2000 in the form as shown at the bottom of this message.
Many of the search results point you into the area of atabase corruption, or in using NVARCAR parameters with SQL Server 2000 or SQL Server 2005 (the app didn’t use NVARCAR, nor did it use large VARCHAR parameters).
The cool thing on the SQL Server Forums – System.Data.SqlClient.SqlException: A severe error occurred on the current command post was that it summed up causes, and asked for more:
Posted – 06/17/2004 : 15:05:20
Rashid writes “Hi: Gurus I am getting these errors when I try to execute my application. According to MS knowledge base (http://support.microsoft.com/default.aspx?scid=kb;en-us;827366) these errors happen due to following resons
- You use a SqlClient class in a Finalize method or in a C# destructor.
- You do not specify an explicit SQLDbType enumeration when you create a SqlParameter object. When you do not specify an explicit SQLDbType, the Microsoft .NET Framework Data Provider for SQL Server (SqlClient) tries to select the correct SQLDbType based on the data that is passed. SqlClient is not successful.
- The size of the parameter that you explicitly specify in the .NET Framework code is more than the maximum size that you can use for the data type in Microsoft SQL Server.
None of these are true in my case. Are there any other reasons that can cause these problems..
There is one more: sending huge SQL Statements to your SQL Server is always a bad idea and gives this error too. Read the rest of this entry »
Posted in .NET, C#, C# 2.0, C# 3.0, C# 4.0, Database Development, Development, Encoding, Software Development, SQL Server, SQL Server 2000, SQL Server 2008 R2, Unicode | Leave a Comment »
Posted by jpluimers on 2012/04/23
Someone forgot to kick the VDI instances in the farm to perform an automatic reboot.
Patch Tuesdays only work when you make sure that mandatory reboots are actually being done.
That also prevents users of getting confused by these System Modal dialogs:
[System Restart Required]
A newly installed program requires this computer to be restarted.
Please save your work and restart your computer. Your computer needs to be restarted by wo 11-4-2012 2:43.
[Restart Now] [Close]
and
[Restart Alert]
A system restart cannot be completed while another software installation is in progress. Please allow the software installation to complete before attempting a system restart.
[OK]
–jeroen
Posted in Power User, Windows, Windows XP | Leave a Comment »