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,861 other subscribers

Archive for 2013

Tunngle – P2P VPN, now would this work over plain HTTP?

Posted by jpluimers on 2013/07/29

On my research list: Tunngle – Wikipedia, the free encyclopedia.

I hope it works over HTTP, and does not require something like Your Freedom – Bypass firewalls and proxies, stay anonymous.

Posted in Power User, Windows | Leave a Comment »

Choosing the right Portable Power Phone/Tablet/Gadget Battery Charger (via: Scott Hanselman)

Posted by jpluimers on 2013/07/27

Great article today: Choosing the right Portable Power Phone/Tablet/Gadget Battery Charger – Scott Hanselman.

Be sure to read the comments too, for instance the one about Folding USB Solar Cell by Brown Dog Gadgets — Kickstarter.

–jeroen

Posted in About, LifeHacker, Personal, Power User, Solar Power, Travel | Leave a Comment »

Delphi: do not do “if (not DirectoryExists(path)) then ForceDirectories(path))”

Posted by jpluimers on 2013/07/26

During code reviews, I often see people do things like this:

if (not DirectoryExists(Path)) then
  ForceDirectories(Path))

or this:

if (not TDirectory.Exists(Path)) then
  TDirectory.CreateDirectory((Path))

Half a year ago, I wrote about .NET/C#: do not do “if (!Directory.Exists(path)) Directory.CreateDirectory(path))”. Read the rest of this entry »

Posted in Delphi, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Development, Software Development | 16 Comments »

Nikon D700/D300/D300s/… 3D auto track Autofocus Settings

Posted by jpluimers on 2013/07/26

One of the nicest tips ever for shooting with Nikon D700/D300s/D300:

By setting the Custom Setting Menu a3 (Dynamic AF Area) to 51 Points (3D Tracking) in AF-C and the Crosshair mode, your manually-chosen AF point will magically move all around the frame tracking your subject! You’ll see it move all around, and it really works. This only works in the Crosshair and AF-C mode; it doesn’t move around in the Big White Rectangle, Tit or AF-S modes.

This tracking mode gives us another way to shoot if you don’t want to select a single AF sensor near your subject. If you prefer, you can autofocus with the center sensor, and in this 51-point 3D tracking mode, keep your finger on the shutter and the AF area will move all by itself, tracking the subject as you recompose!

So:

  1. Set your auto focus menu a3 to be “51 Points (3D tracking)”
  2. Set your auto focus switch to Continuous
  3. Focus a focus point to a part of your composition you want to be sharp

If the part moves, or you recompose, the focus point will automatically adjust.

–jeroen

via: Nikon D700 Autofocus Settings.

Posted in Nikon, Photography, Power User | Leave a Comment »

SVN/Subversion and CodePlex: for now stick to SVN/TortoiseSVN 1.7.x or lower

Posted by jpluimers on 2013/07/25

Introduction

Over the last month or so, two incompatibilities between SVN and CodePlex have risen. I’m not sure which side caused it (see below for the error messages), who will fix it and when. Some details I bumped into.

CodePlex knows about both issue. I’m not sure the SVN team does yet about the second issue.

Recommendation

If you are using CodePlex with SVN/SubVersion, then you shoud stick to SVN versions lower than 1.8, or you will run into the error messages below.

So:

  • Stick to version 1.7.x or lower of SVN and/or TortoiseSVN.
  • DO NOT UPGRADE YOUR LOCAL CHECKOUT TO 1.8 OR HGHER!
    (you cannot downgrade your local checkout to a lower version)

You can find older 1.7.x versions of SVN here:

Issues with CodePlex and SVN 1.8.x Read the rest of this entry »

Posted in CodePlex, Development, Source Code Management, Subversion/SVN, TFS (Team Foundation System) | Tagged: , | 17 Comments »

Embarcadero SummerSchool 2013 Lesson 4 Q&A

Posted by jpluimers on 2013/07/25

Replay video’s can be viewed through streaming.embarcadero.com (where you can also find the other series, downloads, etc).

The SummerSchool 2013 replay videos are at streaming.embarcadero.com/summerschool2013.

The Q&A from today’s session on “Accessing local storage” demonstrating iOS specifics in Delphi XE4: Read the rest of this entry »

Posted in Delphi, Delphi XE4, Development, Software Development | Tagged: , , , , , | Leave a Comment »

Reminder to Self: Messagepack / BSON / ProtocolBuffers

Posted by jpluimers on 2013/07/25

Need to find/create a Delphi compatible version of Messagepack or BSON.

–jeroen

via Serializing and deserializing (packing/unpacking) to a file and/or memorystream with MessagePack in C# ».

Posted in .NET, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, C#, C# 2.0, C# 3.0, C# 4.0, C# 5.0, Delphi, Delphi XE2, Delphi XE3, Development, Software Development | 4 Comments »

.NET/Visual Studio: VersionInfo extension checks if you have the latest service pack/update/hotfixes installed

Posted by jpluimers on 2013/07/24

For Visual Studio 2010 and up (including Visual Studio 2012), the VersionInfo extension will check if you have the latest service pack, update and hotfixes installed.

Of course you can manually check the List of available VS2010 hotfixes, or follow the lists maintained by Terje Sandstrom:

But installing the Visual Studio 2010/2012: Version and update information tool is much easier.

–jeroen

.

.

.

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

.NET/C# assemblies and namespaces

Posted by jpluimers on 2013/07/23

Ever since I started .NET programming after .NET Beta 1 Arrived in 2001, I found that many people struggle with the relation between assemblies and namespaces.

So I was glad that I posted this answer about 2.5 years ago on StackOverflow. Below is the slightly edited form:

People are easily confused by the namespace/assembly thing, as it decouples the concept of where your code is physically located (the assembly) and how you reference it:

  • logically reference is by using the namespace
  • physical reference is by referencing the assembly

I usually explain the relation using the word contribute:

  1. An assembly can contribute to multiple namespaces.
    For instance, the System.Data.dll assembly contributes to namespaces like System.Data (e.g. the class System.Data.DataTable) and Microsoft.SqlServer.Server (e.g. the class Microsoft.SqlServer.Server.SqlContext).
  2. Multiple assemblies can contribute to a single namespace.
    For instance both the System.Data.dll assembly and the System.Xml.dll assembly contribute to the System.Xml namespace.
    Which means that if you use the System.Xml.XmlDataDocument class from your project, you need to reference the System.Data.dll assembly.
    And if you use the System.Xml.XmlDocument class, you need to reference the System.Xml.dll from your project.

(the above examples are .NET 4.0, but likely hold for previous .NET versions as well).

Danny Thorpe explained the concept of namespace and internal really well, so I won’t go into detail about those.

Ever since I started .NET courses 10 years ago, I draw a table explaining assemblies and namespaces like this:

Assemblies contributing to namespaces
Assembly Namespaces it contributes to
System.Data Microsoft.SQLServer.Server System.Xml
↑ Example classes
System.Data.dll DataTable SqlContext XmlDataDocument
System.Xml.dll XmlDocument

–jeroen

via: C# assemblies, whats in an assembly? – Stack Overflow.

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, Development, Software Development | Leave a Comment »

Keyboard shortcut for resizing all columns in a listview control to fit – The Old New Thing – Site Home – MSDN Blogs

Posted by jpluimers on 2013/07/22

I always forget this one:

The keyboard shortcut for resizing all columns in a report-mode (also known as Details mode) list view control to fit the current content width is Ctrl+Num+. That’s the + key on the numeric keypad.

–jeroen

via Keyboard shortcut for resizing all columns in a listview control to fit – The Old New Thing – Site Home – MSDN Blogs.

Posted in Keyboards and Keyboard Shortcuts, Power User, Windows | Leave a Comment »