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 »
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:
- Set your auto focus menu a3 to be “51 Points (3D tracking)”
- Set your auto focus switch to Continuous
- 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 »
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:
Posted in CodePlex, Development, Source Code Management, Subversion/SVN, TFS (Team Foundation System) | Tagged: software, technology | 17 Comments »
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: Delphi, embarcadero, iOS, OS, software, technology | Leave a Comment »
Posted by jpluimers on 2013/07/25
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 »
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:
- 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).
- 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:
–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 »
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 »
Posted by jpluimers on 2013/07/21
Some Buffalo WLAE-AG300N links:
–jeroen
via: Buffalo – Downloads – Performance Matters.
Posted in Power User, WiFi | Leave a Comment »
Posted by jpluimers on 2013/07/20
Bitsavers published 2 new Logitech PDFs:
Who didn’t have a Logitech mouse back then?
I had the C7, various MouseMans, and a few more modern mice. Why not all mice? I developed RSI in the DOS era, ending up with TrackPoints and more recently Apple touchpads)
I remember the Logimouse C7, not because it was from Logitech, but because it was available from so may OEMs. Long before Logitech built OEM mice for Apple, they were founded in Apples, Swizerland.
The cool thing: the Programmers Toolkit had examples in Modula-2. I used that as a base to write quite some Turbo Pascal code for mouse handing.
Oh: Bitsavers does have a Logitech Modula-2 PDF online too for quite some time. I mentioned that in More Old Micro Cornucopia issues on BitSavers from 1987 and 1988.
–jeroen
via: Bitsavers’ Index of /pdf/logitech.
Posted in BitSavers.org, Development, History, Pascal, Power User, RSI, Software Development, Turbo Pascal | Tagged: c7, cornucopia, logitech mouse, modula 2 | Leave a Comment »