The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,862 other subscribers

Archive for 2015

Merging Google Contacts URL

Posted by jpluimers on 2015/10/02

For my link archive: https://contacts.google.com/u/0/preview/merge

Posted in Google, GoogleContacts, Power User | Leave a Comment »

Pruning your Windows 7+/Server 2008 R2+ installations and huge files in %windir%\Logs\CBS

Posted by jpluimers on 2015/10/02

This applies to at least these versions when you run them under at least VMware Fusion or Workstation:

  • Windows 7
  • Windows 8
  • Windows 8.1
  • Windows Server 2008 R2

Often this folder get huge: %windir%\Logs\CBS (normally C:\Windows\Logs\CBS)

I’ve successfully compressed the content, but even though it is text, they don’t compress that well.

Some reports indicate you can safely delete them when there is nothing wrong with your system nor with Windows Update:

So that’s what I’m going to try next.

Later: done the below on an UAC (Administrator) command prompt.

Cleanup CBS via [WayBack] Gin answering at [WayBackwindows 8 – Why is CBS.log file size 20 GB – Super User::

net stop TrustedInstaller
del %windir%\Logs\CBS\CBSPersist*.*
net start TrustedInstaller

Then I did this to cleanup the C:\Windows\SoftwareDistribution\DataStore\DataStore.edb file via [WayBack] Gin at [WayBackwindows 8 – Why is CBS.log file size 20 GB – Super User:

net stop wuauserv
net stop bits
esentutl.exe /d %windir%\SoftwareDistribution\DataStore\DataStore.edb
CleanMgr
reboot

The reboot will restart the stopped services.

–jeroen

Posted in Power User, Windows, Windows 7, Windows 8, Windows 8.1, Windows Server 2008 R2 | Leave a Comment »

NUnit XSD for verification and XML to HTML conversion

Posted by jpluimers on 2015/10/01

Of course NUnit will emit NUnit compatible XML, but other tools do too.

To verify if such XML is indeed compliant to the NUnit standard, there is an XML Schema for it which – at the time of writing – the latest version was here:

http://www.nunit.org/docs/2.6.4/files/Results.xsd

Many CI tools map the resulting XML into some form of output. To get HTML output, XSLT is a logical choice, but there are other means too. Here are a few links to get started converting the output:

–jeroen

Posted in Agile, Development, Software Development, Unit Testing | Leave a Comment »

Visual Studio: Zoom Out when ReSharper has captured Ctrl+Shift+,

Posted by jpluimers on 2015/09/30

ReSharper has a whole set of nice keyboard shortcuts, which includes Ctrl + Shift + , for View Recent Edits.

This overwrites the Zoom Out half of the default Visual Studio zoom keyboard shortcuts (thanks Carlos Muñoz):

Ctrl + Shift + . to zoom in and Ctrl + Shift + , to zoom out.

They don’t keep an alternative for Zoom Out, and unlike most tools I know that allow for zooming, there is no keyboard accessible menu entry for Zoom Out in Visual Studio.

So you have to use your mouse to go in the lower left of your editor window in order to Zoom Out (thanks ashteele for putting that in an SO question):

Zoom percentage in the lower left of your Visual Studio editor Window

Or you can reconfigure the old shortcut (thanks Aaron Ransley):

through Tools -> Options -> Environment -> Keyboard and map “View.ZoomIn” and “View.ZoomOut

–jeroen

Posted in .NET, Development, Software Development, Visual Studio 11, Visual Studio 2010, Visual Studio 2013, Visual Studio 2014, Visual Studio and tools | Leave a Comment »

Why Your Code Is So Hard to Understand – via CodeProject

Posted by jpluimers on 2015/09/29

Below are the captions, read the full article as it is very well written.

Why your code is hard to understand

  • Problem , Overly Complex Mental Models
  • Problem , Poor Translation of Semantic Models into Code
    • Class Structure and Names
    • Variable, Parameter and Method Names
    • Single Responsibility Principle (SRP)
    • Appropriate Comments
    • Problem , Not Enough Chunking
  • Problem , Obscured Usage
  • Problem , No Clear Path Between the Different Models
  • Problem , Inventing Algorithms

–jeroen

via: Why Your Code Is So Hard to Understand – CodeProject.

Posted in .NET, Delphi, Development, Software Development, Web Development | 5 Comments »

Echt #HEMA. Nederlandse foto software voor de Mac net even anders. Ken jij Frans? Ja, die ken ik wel. Exit HEMA App.

Posted by jpluimers on 2015/09/28

Ken jij Frans? Ja, die ken ik wel.

Ken jij Frans? Ja, die ken ik wel.

Geen idee wat het betekent, maar toch bij de installatie van de HEMA foto-album software op je Mac gedownload vanaf de Nederlandse HEMA site en ook vrolijk een Nederlandstalige link opent dat het gelukt is:

nouvelle version disponible

Le version 3.3 est disponible. Cetter version va maintnenant être installée.

Het vervolg is niet veel beter: zie hieronder.

Exit HEMA App.

–jeroen

Read the rest of this entry »

Posted in Fun, Power User | 4 Comments »

Weekend….

Posted by jpluimers on 2015/09/28

Don’t forget to superlogout.com when you need a digital break. Curious how fast it is?

–jeroen

Read the rest of this entry »

Posted in Fun, Power User | Leave a Comment »

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

Posted by jpluimers on 2015/09/28

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 Installer, Patch, Update, Upgrade, Setup, … in your EXE name
  • provide a correct manifest to your EXE (getting this right can be hard)
  • don’t use x86 as platform target

For software you don’t have source code for, you can alter the manifest with a requestedExecutionLevel elementFixing the way Vista Auto-detects Installers – Ben’s Writing.

A few links on Installer Detection Technology in Windows:

Read the rest of this entry »

Posted in .NET, .NET 1.x, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, .NET CF, C#, C# 1.0, C# 2.0, C# 3.0, C# 4.0, C# 5.0, C# 6 (Roslyn), Delphi, Delphi 10 Seattle, Delphi 2, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 3, Delphi 4, Delphi 5, Delphi 6, Delphi 7, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Delphi XE7, Delphi XE8, Development, RemObjects C#, Software Development | 1 Comment »

A while ago Allen Bauer commented on the working theory of Nullable in Delphi

Posted by jpluimers on 2015/09/25

I missed this last May, but revisiting some old G+ posts I saw Allen Bauer commenting:

Current working theory of Nullable<T>.

Nullable<T> = record
...
property Value: T read FValue; default;
...
end;

Using the default directive to “hoist” the operators of “T”. Currently the default directive only works for array properties by “hoisting” the ‘[]’ operator. Marking a non-array property with default will make the containing type behave as that type.

This, coupled with some intrinsic compiler knowledge of the Nullable<T> type will make Nullable<T> work without any addition of keywords or other standard functions or procedures.

Using the “default” directive on a non-array property will work for any type, except for having the null-propagation semantics.

When considering language features, I try and not only make it work for the intended purpose, but also broaden reach of any supporting feature. In the above scenario, even user-defined operators on “T” will be properly hoisted and used.

So hopefully, one day there will me more than Nullable<T> in Spring.pas which has been around for quite a while now..

–jeroen

Source: Delphi’s New Feature Desired: Nullable Types and Null Propagation Nullable…

Posted in Delphi, Development, Software Development | 5 Comments »

Does anyone have a proper solution for message “content preparation progress” when opening a PDF file?

Posted by jpluimers on 2015/09/25

It drives me nuts as the below “content preparation progress” solution fails for me on a Windows 8 system having Adobe Reader XI.

Anyone that has a proper solution?

Solution

  1. Go to Edit > Preferences > Reading.
  2. Under “Screen Reader Options” select “Only read the currently visible pages”.

–jeroen

Source: Message “content preparation progress” when opening a PDF file

Posted in Adobe, Adobe Reader, Power User | 1 Comment »