TL;DR from [WayBack] Automating the world one-liner at a time… Boolean Values and Operators:
In PowerShell use the built-in constants $false and $true, as strings will be converted to booleans with results you don’t like
–jeroen
Posted by jpluimers on 2019/09/26
TL;DR from [WayBack] Automating the world one-liner at a time… Boolean Values and Operators:
In PowerShell use the built-in constants $false and $true, as strings will be converted to booleans with results you don’t like
–jeroen
Posted in CommandLine, Development, PowerShell, PowerShell, Scripting, Software Development | Leave a Comment »
Posted by jpluimers on 2019/09/25
Marjan Venema had a great answer at [WayBack] How to expose a Delphi set type via Soap – Stack Overflow.
–jeroen
Posted in Conference Topics, Conferences, Delphi, Development, Event, SOAP/WebServices, Software Development | Leave a Comment »
Posted by jpluimers on 2019/09/25
In production, somehow an application started to misbehave, so would spit out a lot of Windows EventLog entries for Applications you can see in the EventViewer. This small script helped counting it (it takes about 10 seconds on a log having a total of 77k entries):
$tenMinutes = New-TimeSpan -Minutes 10
$now = Get-Date
$tenMinutesAgo = $now - $tenMinutes
$eventLogEntries = Get-EventLog -After $tenMinutesAgo -LogName "Application"
$count = ($eventLogEntries | Measure-Object).Count
Write-Host $count
Related:
–jeroen
Posted in CommandLine, Development, PowerShell, PowerShell, Scripting, Software Development | 1 Comment »
Posted by jpluimers on 2019/09/25
On my research list as it pointed me to TensorFlow imports from both .NET and Delphi: [WayBack] Fixed by Code: Using TensorFlow™ with Delphi – or how to use a TStack<T> to simulate a RPN calculator.
Links from it:
I like the demo there, as I’ve done RPN calculator with some modeling tools before which makes for a good demo, and it reminds me of the HP 12C financial calculator my dad used to have.
If you like more TensorFlow, then watch the video I linked before: “Large-Scale Deep Learning with TensorFlow,” Jeff Dean – YouTube
Via
Older conversion try: [WayBack] Converting the TensorFlow C++ headers to object pascal. It has this empty struct defined.typedef struct TF_Tensor TF_Tensor;Think it converts to obj… – Eli M – Google+
–jeroen
Posted in .NET, Delphi, Development, Software Development | Leave a Comment »
Posted by jpluimers on 2019/09/24
[WayBack] SchipholWatch op Twitter: “Met app Explane uw klacht naar BAS sturen?”
Met de makers van de site Over mijn dak onderzoeken we de mogelijkheid om onze app Explane uit te breiden zodat iedere meting ook direct als klacht kan worden doorgestuurd aan het Bewoners Aanspreekpunt Schiphol (BAS). Hiervoor zou dan een tweede versie van Explane worden gebouwd, die via Over mijn dak uw BAS-account kan koppelen …
–jeroen
Posted in LifeHacker, Power User | Leave a Comment »
Posted by jpluimers on 2019/09/24
For my link archive, [WayBack] Convert an object instance into a JSON string and making use of custom attributes – Flix Engineering:
JSON, JSONMarshalled, JSONName Delphi Convert an object instance into a JSON string and making use of custom attributes
This is a welcome explanation as in [WayBack] REST.Json.Types – RAD Studio API Documentation, these attributes have very shallow documentation:
Via: [WayBack] Is there any documentation for attribute and Json? uses Rest.Json, Rest.Json.Types; [JSONName(‘TokenName’)] – Thomas Bornhaupt – Google+
–jeroen
Posted in Delphi, Development, Software Development | Leave a Comment »
Posted by jpluimers on 2019/09/24
For my memory; I hope to contemplate more about this later. But right now, with 10 medically related appointments in 2 weeks time, my head is too full.
Today I found out that earlier this year, one of my parents really good friends has passed away earlier this year: [WayBack/Archive.is] Kornelia Esser : Traueranzeige : Super Sonntag / Super Mittwoch.
Text:
Der Tod kann auch freundlich kommen zu Menschen, die alt sind,
deren Hände nicht mehr festhalten wollen,
deren Augen müde wurden,
deren Stimme nur noch sagt:
„Es ist genug. nas Leben war schön.”Kornelia Esser
* 28. August 1930 † 30. Juni 2019Wenn ihr an mich denkt, seid nicht traurig, erzählt lieber von mir und traut euch ruhig
zu lachen.
Lasst einen Platz zwischen euch, in eurer Mitte, so, wie ich ihn im Leben hatte.Du bleibst immer in unseren Herzen
Ernst und Sibille Esser
Anita und Achim Halkour
mit Arne und Pia
Uschi und Jürgen Ulrichs
mit Lisa und Lars
Norbert und Beate Esser
mit Lukas und Jana
sowie alle VerwandtenKondolenzanschrift:
Kornelia Esser c/o Markus Forg Bestattungen, Roermonder Straße 24, 41812 ErkelenzDie Exequien finden am Montag, dem 8. Juli 2019, um 14.30 Uhr in der Kirche St. Stephanus zu
Golkrath statt. Anschließend erfolgt die Beerdigung von der Kirche aus.
Von Kranz- und Blumenspenden sowie Trauerkleidung bitten wir abzusehen
Sollte jemand aus Versehen keine persönliche Anzeige erhalten haben, so diene diese als solche.
She was leading the household (kitchen, cleaning and medical departments) of the [WayBack] Collegium Josephinum – Konvikt Bad Münstereifel and a special person to us: see my below German Twitter thread.
Posted in About, History, Personal | Leave a Comment »
Posted by jpluimers on 2019/09/24
Works for Windows too: [WayBack] Fork – a fast and friendly git client for Mac.
Via [WayBack] Weekend Reader 2017.46 – reality-loop(who switched away from SourceTree, because, well, that was ahead of it’s time but in the end couldn’t keep up with reality)
–jeroen
Posted in Development, DVCS - Distributed Version Control, git, git-fork, Software Development, Source Code Management, SourceTree | Leave a Comment »
Posted by jpluimers on 2019/09/24
At a site, haproxy was configured like this for a particular back-end:
backend http_FUNCTIONALITY_cluster
log global
mode http
# default httpchk checks / which for our functionality intentionally returns 500 causing haproxy to think it's down
# option httpchk
# FUNCTIONALITY has a /FUNCTIONALITY which returns a 200 OK
option httpchk get /FUNCTIONALITY
http-check expect ! rstatus ^5
option http-keep-alive
option forwardfor
server w7connexxion 192.168.178.42:8181 cookie FUNCTIONALITYA check
The /FUNCTIONALITY would return a multi-kilobyte result.
The HAproxy would send the request with this body:
Connection: close
In the midst of the server returning an http request of more than one TCP frame:
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 4068
Date: Mon, 20 Nov 2017 08:17:02 GMT
<html><head><META ...
, the HAproxy would kill the connection, resulting in a 10054 error on Windows, which [WayBack] Windows Sockets Error Codes indicates it is this:
- WSAECONNRESET
- 10054
- Connection reset by peer.
An existing connection was forcibly closed by the remote host. This normally results if the peer application on the remote host is suddenly stopped, the host is rebooted, the host or remote network interface is disabled, or the remote host uses a hard close (see setsockopt for more information on the SO_LINGER option on the remote socket). This error may also result if a connection was broken due to keep-alive activity detecting a failure while one or more operations are in progress. Operations that were in progress fail with WSAENETRESET. Subsequent operations fail with WSAECONNRESET.
So both sides are right in that they will close the connection (despite the HTTP keep alive): [WayBack] What does “Connection: close” means when used in the response message?
Howver, I think HAproxy is way too soon closing the connection, especially as it does not use the configured keep alive ([WayBack] How to make HA Proxy keepalive and [WayBack] Hypertext Transfer Protocol — HTTP/1.1 RFC 2616 = 14 Header Field Definitions – 14.10 Connection).
The 10054 would end up in the Windows Event Log for Applications like this:
The description for Event ID 0 from source MyFunctionality.exe cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer. If the event originated on another computer, the display information had to be saved with the event. The following information was included with the event: Socket Error # 10054 Connection reset by peer.
In the mean time, we shortened the result, so it does not fail any more.
Later I hope to find some time to do more research on this, for which I hope [WayBack] Health checking – HAProxy Technologies is a base.
–jeroen
Posted in Development, Software Development, Web Development | Leave a Comment »
Posted by jpluimers on 2019/09/23
Skin effect is the tendency of an alternating electric current (AC) to become distributed within a conductorsuch that the current density is largest near the surface of the conductor, and decreases with greater depths in the conductor. …
At high frequencies the skin depth becomes much smaller. … Because the interior of a large conductor carries so little of the current, tubular conductors such as pipe can be used to save weight and cost.
Via [WayBack] Odd: “copper” central lead of antenna cable attracted by magnetic screwdriver tip. – Jeroen Wiert Pluimers – Google+
–jeroen
Posted in Development, Hardware Development, LifeHacker, Power User | Leave a Comment »