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 January, 2017

Delphi “F2039 Could not create output file” on drc files

Posted by jpluimers on 2017/01/19

I had this error when building my Delphi app and needing detailed MAP files.

Somehow, then Delphi also tries to generate .drc files and fails.

Performing the “F2039 Could not create output file” drc – Google Search didn’t reveal much.

So I fired up Process Monitor and looked for file access patterns (see dump below), that all were OK.

Then I opened Windows Explorer and saw freshly generated .DRC files marked as some type of VLC Player file. I’ve had loads of trouble with VLC in the past, but I inherited this PC so I didn’t notice VLC Player was installed by the previous developer.

Lesson learned: when starting a gig, always request a fresh PC

So I uninstalled VLC Player and now everything works fine.

Oh btw: .DRC files are Delphi Resource String files.

–jeroen

Read the rest of this entry »

Posted in Delphi, Delphi 2007, Development, Software Development | 4 Comments »

Found as a byproduct of following +Jeroen Wiert Pluimers …

Posted by jpluimers on 2017/01/18

Found as a byproduct of following +Jeroen Wiert Pluimers …:

Found as a byproduct of following +Jeroen Wiert Pluimers
http://youmightnotneedjs.com/

Which is a cool site:

Examples of common UI elements and interactions with HTML and CSS alone.

Source: You Might Not Need JavaScript

–jeroen

Posted in CSS, Development, HTML, HTML5, JavaScript/ECMAScript, Scripting, Software Development, Web Development | Leave a Comment »

API Web Services, integration with third party applications, Secret Server | Thycotic

Posted by jpluimers on 2017/01/18

How good is this?

Access Secret Server using Web Services: mobile apps, third party applications, and scripts (with the proper authentication).

Source: API Web Services, integration with third party applications, Secret Server | Thycotic

I bumped into this after searching for winauthwebservices/sswinauthwebservice.asmx

https://www.reddit.com/r/sysadmin/comments/2o1gvd/thycotics_secret_server_is_on_sale_again/

http://thycotic.com/products/secret-server/compare-installed-editions/

–jeroen

Posted in Development, Hashing, Security, Software Development | Leave a Comment »

An exponential back-off implementation I used somewhere; probably room for improvement, but it works good enough.

Posted by jpluimers on 2017/01/17

I will probably need this again somewhere in the future: An exponential back-off implementation I used somewhere; probably room for improvement, but it works good enough.

It’s Delphi, but I’ve not seen practical implementations in C# either.

(the updated version thanks to Anders Melander).

–jeroen


function TryGetLocationLockWithExponentialBackOff: Boolean;
const
cBase = 2;
cMaxWaitMilliSeconds = 1500;
var
lWaitMilliSeconds: integer;
begin
Result := True;
lWaitMilliSeconds := cBase;
while (not TryGetLocationLock) do
begin
if (lWaitMilliSeconds > cMaxWaitMilliSeconds) then
Exit(False);
Sleep(lWaitMilliSeconds);
Inc(lWaitMilliSeconds, lWaitMilliSeconds);
end;
end;


function TryGetLocationLockWithExponentialBackOff: Boolean;
const
cBase = 2;
cMaxWaitMilliSeconds = 1500;
var
lIteration: Integer;
lWaitMilliSeconds: Single;
begin
lIteration := 1;
lWaitMilliSeconds := 0;
while lWaitMilliSeconds < cMaxWaitMilliSeconds do
begin
Result := TryGetLocationLock;
if Result then
Exit;
lWaitMilliSeconds := IntPower(cBase, lIteration);
Inc(lIteration);
Sleep(Round(lWaitMilliSeconds));
end;
Result := TryGetLocationLock;
end;

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

Visual Studio: In TFS how can I correct the links to work items on an existing changeset – Stack Overflow

Posted by jpluimers on 2017/01/17

This is still one of my gripes from Visual Studio: when a changeset is linked to an incorrect work item, you still have to change this from the work item side:

You cannot change it from the changeset UI, but you can change it from most work item UI’s. You can just add a link to a the specific changeset and the changeset will show the link as well.

You have to be careful with the steps too:

  1. Link it from the correct work item as a changeset link
  2. Unlink it from the wrong work item

If you do it in reverse order, and get the changeset number wrong, you will have an orphan changeset.

–jeroen

Source: visual studio 2010 – In TFS how can I correct the links to work items on an existing changeset – Stack Overflow

Posted in Development, Software Development, Source Code Management, TFS (Team Foundation System), Visual Studio 2010, Visual Studio 2012, Visual Studio 2013, Visual Studio 2015, Visual Studio and tools | Leave a Comment »

The Chernobyl Story [Updated & Expanded] – Album on Imgur

Posted by jpluimers on 2017/01/16

From the author of [WayBack] The Chernobyl Story [Updated & Expanded] – Album on Imgur:

I’ve assembled this collection of images surrounding the Chernobyl nuclear disaster to help people gain a better understanding of what happened. It is a very brief, but complete(ish) retelling of what happened, using edited text from a book I’ve written called “Chernobyl 01:23:40”. The book can be bought from Amazon, if anyone’s interested.

The book is even more impressive: “Chernobyl 01:23:40”

–jeroen

via: [WayBack] #insightful The story of #Chernobyl in pictures. – Jan Wildeboer – Google+

Read the rest of this entry »

Posted in History | 2 Comments »

Macintosh SE/30 link clearance

Posted by jpluimers on 2017/01/16

Since I own a Macintosh SE/30…

Mac SE/30, maximum hard disk capacity – Compact Mac –.

–jeroen

PS: non-related, but still fun:

PS/2: Nice series of pictures: Macintosh SE/30 Overhaul | Flickr – Photo Sharing!

Including

https://www.flickr.com/photos/damianward/sets/72157627731094209

16MB RAM SIMMs in a Macintosh SE/30 | Flickr – Photo Sharing!

16MB RAM SIMMs in a Macintosh SE/30

SE/30 System & Newton 2100 | Flickr – Photo Sharing!

SE/30 System & Newton 2100

RetroBright – SE/30 System AFTER | Flickr – Photo Sharing!

RetroBright - SE/30 System AFTER

James Wages is a man on a mission. Where you and I might see a tired old computer that’s not much use to anyone anymore, he sees a decent machine with plen

Source: The SE/30 That Does It All: Interview With An Expert Vintage Mac User | Cult of Mac

 

Posted in Apple, Classic Macintosh, Power User | Leave a Comment »

Displaying Linux Log files with journalctl

Posted by jpluimers on 2017/01/16

journalctl is a systemd utility that allows the journal to be queried. journalctl command examples for displaying system log files on a systemd Linux system. How to enable persistent journal entries.

Source: Displaying Linux Log files with journalctl

Which reminds me I’ve quite some journald research to do, so here are some links for my link archive:

–jeroen

via:

Posted in *nix, *nix-tools, journalctl and journald, Linux, openSuSE, Power User, SuSE Linux | Leave a Comment »

RSS feed for Dave’s Development Blog – mostly OTA articles on the Open Tools API for Delphi and C++ Builder

Posted by jpluimers on 2017/01/16

TL;DR: http://www.davidghoyle.co.uk/WordPress/?feed=rss2

Since there is no RSS link  on the page [WayBackDave’s Development Blog – Software Development using Borland / Codegear / Embarcadero RAD Studio

Since I wanted to follow his “blog” (which is sort of a collection of WordPress pages, mainly about the programming OTA: the Open Tools API interface to Delphi and C++ Builder), I was looking for the RSS feed.

Luckily, Feedly knows how to detect most blogging platforms, so it came up with https://feedly.com/i/subscription/feed/http://www.davidghoyle.co.uk/WordPress/?feed=rss2 which indicates the final bit is the RSS feed URL.

Some interesting links from there:

via: [WayBackOTA Interface Search 1.1 and GitHub http://www.davidghoyle.co.uk/WordPress/?…

–jeroen

Posted in C++, C++ Builder, Delphi, Development, RSS, SocialMedia, Software Development | Leave a Comment »

OnePlus Stock

Posted by jpluimers on 2017/01/13

In the past, lots of people were waiting for invites.

Now they’re look at [WayBackOnePlus Stock:

Overview of products sold by OnePlus! See if products are in stock in your country!

via: [WayBackOther – Oneplus 3T/3/2/x Availability OnePlusStock – OnePlus Forums

–jeroen

 

Posted in Android Devices, Power User | Leave a Comment »