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 September, 2019

PowerShell: count the Windows EventLog entries for Applications over the last 10 minutes

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 »

On my research list: TensorFlow from other languages

Posted by jpluimers on 2019/09/25

On my research list as it pointed me to TensorFlow imports from both .NET and Delphi: [WayBackFixed 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

Read the rest of this entry »

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

SchipholWatch op Twitter: “Met app Explane uw klacht naar BAS sturen? https://t.co/i2P5qfVFZN”

Posted by jpluimers on 2019/09/24

[WayBack] SchipholWatch op Twitter: “Met app Explane uw klacht naar BAS sturen?”

–jeroen

Posted in LifeHacker, Power User | Leave a Comment »

Convert an object instance into a JSON string and making use of custom attributes – Flix Engineering

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 »

Kornelia Esser : Traueranzeige

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.

Kornelia Esser

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 2019

Wenn 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 Verwandten

Kondolenzanschrift:
Kornelia Esser c/o Markus Forg Bestattungen, Roermonder Straße 24, 41812 Erkelenz

Die 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.

Read the rest of this entry »

Posted in About, History, Personal | Leave a Comment »

Fork – a fast and friendly git client for Mac

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 »

Research list: haproxy and Connection: close

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 »

Skin effect – Wikipedia

Posted by jpluimers on 2019/09/23

Skin effect – Wikipedia:

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 »

[APP][MOD]OGYouTube v1.2 Downloader, Popup/Background/ScreenOff Playback

Posted by jpluimers on 2019/09/23

From a while ago on XDA: [APP][MOD]OGYouTube v1.2 Downloader, Popup/Background/ScreenOff Playback which allows you to download and off-line play YouTube videos on your Android device.

via: New tutorial!#youtube   #google   #android   – DoorToDoorGeek “Stephen McLaughlin” – Google+

Note that on laptops, I tend to use [WayBack] youtube-dl.

–jeroen

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

28 Product Backlog and Refinement Anti-Patterns – Agile Transition

Posted by jpluimers on 2019/09/23

Food for thought: [WayBack] 28 Product Backlog and Refinement Anti-Patterns – Agile Transition

The most important one I learned: keep 20% slack and 20% technical debt+bugs (on a legacy system even more of the latter). This sounds like 40% waste, but is in effect a huge win as it makes the team much more flexible in responding to spikes, supporting team-mates (or cross functional teams) or having an off-day.

Via: [WayBack] 28 Product Backlog and Refinement Anti-Patterns – Agile Transition – Marjan Venema – Google+

–jeroen

Read the rest of this entry »

Posted in Agile, Development, Scrum, Software Development | Leave a Comment »