Home » Tips and Tricks

Tag Archives: Tips and Tricks

Compare Registry Settings – Beyond Compare

I think that Compare Registry Settings is one of the most unknown features of Beyond Compare. So if you are a Windows that fights with the Registry every now and then, this feature is for you. Note it is in the Windows Pro Edition only: one more reason to buy a license (: It has been there since Beyond Compare version ...

Read More »

Hack the Remote Desktop .RDP file

Glad I found out about the string to add to a .RDP file to make it connect to the administrative console whenever your remote supports that:   connect to console:i:1 Reference: Hack the Remote Desktop .RDP file from our NCG partner Jeroen Pluimers at the The Wiert Corner blog.

Read More »

Did you know that Visual Studio shows deadlocked tasks?

I didn’t… And it’s not a new feature – since it existed since freaking Visual Studio 2010! Yesterday during an unrelated meeting Alon Fliess showed a bunch of us developers how Visual Studio detects deadlocks in tasks (automatically) and shows the current task status in both Parallel Tasks and Tasks debug windows (duh). I got home late but I wanted ...

Read More »

C# Settings reminder

As a reminder to self: Settings are nice (too bad they advertise them as Windows Forms Application Settings, as they are just as useful for other assemblies), but be aware… When using Settings.Default, it will get the values to the state of the app.config (or defaults if there is no app.config) of the assembly that defined the settings, not the ...

Read More »

jq error – Cannot iterate over null (null)

I’ve been playing around with the jq library again over the past couple of days to convert the JSON from the Stack Overflow API into CSV and found myself needing to deal with an optional field. I’ve downloaded 100 or so questions and stored them as an array in a JSON array like so: $ head -n 100 so.json [ ...

Read More »

Unless you write an installer with the right manifest don’t include Installer, Update, Upgrade, Setup,… in your EXE name

I’ve seen this question coming up a few times, and bumped into this at a client recently: the UAC dialog coming up when debugging a 32-bit executable. This is caused (more details below) by Installer Detection Technology introduced in Windows Vista (with UAC) and tightened in more modern Windows versions.       The solution is to either: not include ...

Read More »

Batch file to open a specific TCP port in Windows 7 / 2008 Server and up

Thanks to the answer by Kevin Richardson on How to open ports on Windows firewall through batch file, I wrote this batch file that uses the add command of the Netsh AdvFirewall Firewall Commands which requires Admin privileges to run: :: open port (first argument passed to batch script, second argument is description) :checkPrivileges net file 1>nul 2>nul if '%errorlevel%' == '0' ( goto :gotPrivileges ) ...

Read More »

MSDN Dive – WPF documentation

Let’s go on with the WPF documentation this week. There are some interesting documents that can help you to understand how the WPF works and how you can gain more performance in your applications, once you understand the internals. Freezable Objects – Learn: What freezables are. How freezables work internally. How freezable can help you to improve performance. How to ...

Read More »

.NET enable and disable Fusion log to investigate assembly loading issues

Had to investigate some Assembly Loading issues, so I wrote two batch files to enable and disable the .NET Fusion Log: reg add "HKLM\Software\Microsoft\Fusion" /v EnableLog /t REG_DWORD /d 0 /f Disable-Fusion-Log-.NET-Assembly-Binding-Logging.bat hosted by GitHub. reg add "HKLM\Software\Microsoft\Fusion" /v EnableLog /t REG_DWORD /d 1 /f Enable-Fusion-Log-.NET-Assembly-Binding-Logging.bat hosted by GitHub. They modify the HKLM\Software\Microsoft\Fusion key REG_DWORD value EnableLog. A few notes: ...

Read More »

Concerned about your privacy in Windows 10?

Concerned about your privacy in Windows 10? Many articles have been written that Windows 10 sends information to Microsoft servers in background. While I do not have information on what kind of information Windows 10 really sends to Microsoft servers there are enough controls in the settings to tighten the privacy settings if you are concerned about data being sent ...

Read More »