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

configure SourceTree to perform git rebase by default

Posted by jpluimers on 2017/01/23

There is a great description for Windows users at: the urban canuk, eh: Configure SourceTree to Rebase by default

Note that this is a global setting for git (which you can override each time you do a pull). So there is no way to differentiate this by repository.

The screenshots for Mac OS X users to configure SourceTree to perform git rebase by default are these:

Read the rest of this entry »

Posted in Development, DVCS - Distributed Version Control, git, Source Code Management, SourceTree | Leave a Comment »

Lots of new Apple related scans at BitSavers

Posted by jpluimers on 2017/01/22

New scans at BitSavers

Sun Remarketing MFM controller:

Sony disk drive OA-D34V-22 pictures

Service documentation:

 

–jeroen

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

Reminder to self – did “Clear App Data” get me any Google Opinion Rewards surveys?

Posted by jpluimers on 2017/01/20

Somehow I didn’t get Google Opinion Rewards surveys for more than half a year. As per below post, I’ve cleared the app data a week ago.

This is a reminder to myself to check if I got any surveys since…

(Yes, I’ve location on, battery saving off and the app runs).

–jeroen

via: [WayBack] Ik ga nu bijna denken dat Google weet wat ik op Google+ post…En: €0.19 ct voor het beantwoorden van deze vraag. Daar kan ik dus net geen sigaret van… – Roderick Gadellaa – Google+

 

Posted in Google, Power User | Leave a Comment »

Linux Storage Stack Diagram – Thomas-Krenn-Wiki

Posted by jpluimers on 2017/01/20

There are lots of old copies floating around from the Linux Storage Stack Diagram – Thomas-Krenn-Wiki.

The above link has the up-to-date version and larger versions in PNG, SVG and PDF so be sure to check it out.

The old URL was http://www.thomas-krenn.com/en/oss/linux-io-stack-diagram.html – it now redirects to the above one.

Some older copies that got me looking for the new one:

–jeroen

 

Posted in *nix, Linux, Power User | Leave a Comment »

linux port forwarding to external ip – Google Search

Posted by jpluimers on 2017/01/20

For my Link Archive via linux port forwarding to external ip – Google Search:

Need to look at this more closely, but it looks like you need PREROUTING, FORWARD and POSTROUTING and two NATs (DNAT and SNAT), as this graph from Port Forwarding Using iptables – SysTutorials shows:

PACKET IN
    |
PREROUTING--[routing]-->--FORWARD-->--POSTROUTING-->--OUT
 - nat (dst)   |           - filter      - nat (src)
               |                            |
               |                            |
              INPUT                       OUTPUT
              - filter                    - nat (dst)
               |                          - filter
               |                            |
               `----->-----[app]----->------'

–jeroen

Posted in *nix, *nix-tools, Internet, Internet protocol suite, iptables, Linux, openSuSE, Power User, routers, SuSE Linux, TCP | Leave a Comment »

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 »