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

Archive for March, 2015

Quite weird. About 80% of the repos on github have no license…

Posted by jpluimers on 2015/03/25

Reminder to Self (this?) put a LICENSE .txt or LICENSE.md file in all my repos.

It isn’t difficult to choose one:

For new repositories, GitHub even has a license picker.

Thanks Jan Wildeboer for reminding me.

–jeroen

PS: most of the things I put on-line are using a BSD 3-clause “New” or “Revised” License. But I might go for a simpler one. It doesn’t hurt looking at your licenses every now and then.

Posted in Development, Licensing, Software Development | Leave a Comment »

Interfaces are great, but they can be a pain to debug. Forgetting one weak link can lead to Access Violation hell…

Posted by jpluimers on 2015/03/24

Paul Thornton posted a nice question on G+ two weeks ago:

Interfaces are great, but they can be a pain to debug. Forgetting one weak link can lead to Access Violation hell. I seem to remember a utility that would let you visualise the links between interfaced objects, but can’t remember what it was called. Anybody know?

Do you have any clever interface debugging tips or tricks?

Mixing object and interface references leads to complex situations, especially when some classes make refcounting go away (not limited to UI components) so refactoring is a good idea, it at all possible:

Lars Dybdahl:

Refactor them away :-)

When the mix of interface reference counting and TObject gets so complex, that the source code is no longer obvious, maintenance costs sometimes become too high and another solution might be better.

Nicholas Ring:

 

+Lars Dybdahl Totally agree and it is even worse when reference counting is disabled (like adding an interface reference to an UI component).

 

There is not much tooling, this thread only mentioned RefCountTracer and FastMM:

Steffen Binas:

There is this: https://github.com/AquaSoftGmbH/RefCountTracer

It helps you find memoryleaks, but also could show you if a refcount goes below 0.

Paul Thornton:

This link was very useful. It also points to a good FastMM tutorial.

Which reminded me I totally forgot to post that tutorial on my blog so here it is:

Read the rest of this entry »

Posted in Delphi, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 7, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Delphi XE7, Development, Software Development | 2 Comments »

For both FX and DX lenses: printable Nikon lens hood templates – via Nikon Rumors

Posted by jpluimers on 2015/03/23

Since I posted In case I ever misplace/break one: Free printable cardboard lens hoods, I found that Nikon Rumours had covered that too.

Now the added even more coverage in Printable Nikon lens hood templates | Nikon Rumors.

Which is kind of neat as now there are two kinds of printable lens hoods: DX (for my D300) and FX (for my D700).

–jeroen

PS: Missed Schedule fired again on this post as it was originally scheduled for 6:00 some European time zone (not sure which, as WordPress.com is unclear about that though).

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

The pontoons have arrived…

Posted by jpluimers on 2015/03/23

image

Finally a shorter route to the dike will be created (:

Posted in Uncategorized | Leave a Comment »

Home Labs made easier with VSAN 6.0 + USB Disks | virtuallyGhetto

Posted by jpluimers on 2015/03/20

Interesting; steps can be found in Home Labs made easier with VSAN 6.0 + USB Disks | virtuallyGhetto:

Disclaimer: This is not officially supported by VMware and should not be used in Production or evaluation of VSAN, especially when it comes to performance or expected behavior as this is now how the product works. Please use supported hardware found on the VMware VSAN HCL for official testing or evaluations.

For a VSAN home lab, using cheap consumer USB-based disks which you can purchase several TB’s for less than a hundred dollars or so and along with USB 3.0 connectivity is a pretty cost effective way to enhance hardware platforms like the Apple Mac Mini and Intel NUCs.

–jeroen

via:

Posted in ESXi6, Power User, Virtualization, VMware, VMware ESXi | Leave a Comment »

IlMerge is on NuGet.

Posted by jpluimers on 2015/03/19

IlMerge is a great way to merge multiple .NET assemblies into one, and I use it most often to combine assemblies with console applications so I end up with one executable..

However getting the latest version always was a hassle as the ilmerge download link was unclear about the version number.

Until I found out that IlMerge is on NuGet.

To get started with NuGet, either download the NuGet GUI or command-line version, then use either of these entry points to work with NuGet packages:

There is much more to the Package Manager Console and the Package Manager Dialog.

–jeroen

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

How to move your Google Code project to GitHub

Posted by jpluimers on 2015/03/18

Thanks David Millington for pointing me to How to move your Google Code project to GitHub.

A small quote from it:

By the end of this article, you will have:

  • Moved the repository, including commit history, from the Google Code project to a new GitHub project
  • Updated the Google Code project to redirect to the new project location
  • Updated the Google Code repository so users updating will find out they need to use the new project location
  • Set up some basic project settings in your new GitHub project.

–jeroen

via: How to move your Google Code project to GitHub.

Posted in Development, DVCS - Distributed Version Control, GitHub, Google, GoogleCode, Power User, Software Development, Source Code Management | Leave a Comment »

WPF Tutorial | Dependency Properties

Posted by jpluimers on 2015/03/17

Thanks to the answers for .net – What is a dependency property? – Stack Overflow, I came across this really nice WPF Tutorial | Dependency Properties.

It has one of the best explanations on Dependency Properties I’ve ever seen, and it is available online for free (:

And yes, this post is also tagged Delphi, as DSharp provides http://delphisorcery.googlecode.com/svn/trunk/Source/Core/DSharp.Core.DependencyProperty.pas.

So Dependency Properties are not just .NET any more (:

–jeroen

Posted in .NET, Delphi, Development, Software Development | Leave a Comment »

Patch soon and be careful: A Few Thoughts on Cryptographic Engineering: Attack of the week: FREAK (or ‘factoring the NSA for fun and profit’)

Posted by jpluimers on 2015/03/16

Hmm, I missed this earlier. So: watch your TLS stack (OpenSSL and others), then

Patch soon and be careful.

After that read A Few Thoughts on Cryptographic Engineering: Attack of the week: FREAK (or ‘factoring the NSA for fun and profit’).

Thanks Kristian Köhntopp for sharing.

–jeroen

Posted in OpenSSL, Power User, Security | Leave a Comment »

[NL] Redjepakketje.com – Hiermee komt uw pakketje wanneer ú dat wilt – AMSTERDAM – PAROOL

Posted by jpluimers on 2015/03/15

[NL] Intressant Redjepakketje.com: voor EUR 4,5 per zending, nooit meer wachten op een pakje. Hiermee komt uw pakketje wanneer ú dat wilt – AMSTERDAM – PAROOL.

Posted in LifeHacker, Power User | Leave a Comment »