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

How to collect HAProxy metrics

Posted by jpluimers on 2019/02/21

For my link archive:

[WayBackHow to collect HAProxy metrics

Once you’ve figured out what to monitor, it’s time to collect HAProxy metrics! Use either HAProxy’s built-in tools or third-party programs to get the info you need.

Note that the heading of the listen configuration for the built-in statistics page now should be like michael-sqlbot explains in [WayBackHAProxy 1.7 Statistics Setup – Server Fault:

listen stats
    bind :9000

He posted more HAProxy insights, for instance [WayBackunderstanding HAProxy Frontend and Backend current session stats – Server Fault.

–jeroen

 

 

 

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

IP over Avian Carriers

Posted by jpluimers on 2019/02/21

From the geek fun department: [WayBackIP over Avian Carriers – Wikipedia.

I learned through this slightly after the fight to keep HTTP status code 418 (I’m a teapot) which is part of RFC2324 released on April 1st, 1998.

The IP over Avian Carriers is part of three RFCs, all released on April 1st in various years:

–jeroen

via: Http-statuscode ‘I’m a teapot’ is voorlopig veilig – IT Pro – .Geeks – Tweakers

Posted in Communications Development, Development, Fun, Geeky, HTTP, Internet protocol suite, Software Development, TCP | Leave a Comment »

Breaking in the Delphi debugger without a breakpoint

Posted by jpluimers on 2019/02/20

You can fire a debugger breakpoint using either of these two:

  • asm int 3 end which is the x86 debug interrupt
  • DebugBreak() which is the Windows API function wrapping the above interrupt

I’m not sure how accurate it is (in the past it would fail under some debuggers other than the Delphi IDE), but as of Delphi 2, there is a DebugHook variable that is non-zero when running under the Delphi debugger, so you can protect your code.

Via [WayBackI remember some time ago, Jeroen Pluijmers posted a snippet of how to place a breakpoint directly in the Delphi source without relying on the F5 key. – Alberto Paganini – Google+

Related:

–jeroen

Posted in Delphi, Development, Software Development, Windows Development | Leave a Comment »

cdecl: C gibberish ↔ English

Posted by jpluimers on 2019/02/20

Cool site if I ever need to decipher C declarations again: [WayBackcdecl: C gibberish ↔ English.

You can even store the C code as a URL.

via:

–jeroen

Posted in C, Delphi, Development, Software Development | 2 Comments »

Smart idea: powering a stack of Raspberry Pi using 2.1mm barrel connector splitter…

Posted by jpluimers on 2019/02/20

Smart idea by [WayBacktinspin/rupy: Async. HTTP & NoSQL Distr. VHost PaaS at [WayBack687474703a2f2f686f73742e727570792e73652f636c75737465722e6a7067 (480×640):

Apart from one part I found on Amazon, most parts (and more if you want to built it for instance inside a case) can be obtained from [WayBackDC : Adafruit Industries, Unique & fun DIY electronics and kits, see the pictures and links below.

I think [WayBackpower supply options for multiple PIs – Raspberry Pi Forums got inspired by this or vice versa.

Posted in Development, Hardware Development, Raspberry Pi | Leave a Comment »

The Way of the Gopher – Digg Data – Medium

Posted by jpluimers on 2019/02/19

Interesting read, especially about the node event-loop which tries to mask it is single threaded by doing cooperative multi-tasking: [WayBackThe Way of the Gopher – Digg Data – Medium – Making the Switch from Node.js to Golang.

It mentions [WayBack] GitHub – gengo/goship: A simple tool for deploying code to servers.

Via: [WayBackJonas Bandi on Twitter: “There’s that alarm that goes off in my brain when I read about something being fast and easy and production-level.”

https://twitter.com/jbandi/status/1026868884266278912

–jeroen

Posted in Development, Go (golang), JavaScript/ECMAScript, Node.js, Scripting, Software Development | Leave a Comment »

Delphi component to show some text file at design time

Posted by jpluimers on 2019/02/19

Interesting idea: [WayBackDelphi component to show some text file at design time

Via: [WayBack] On some projects I put an invisible TMemo on the main form to keep notes about things todo…is there any extension that could attach a kind …could save to … – Paul TOTH – Google+

–jeroen

Read the rest of this entry »

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

Insentricity :: Adding Solid-State Storage to an Original IBM PC ::

Posted by jpluimers on 2019/02/19

Can you imagine MS-DOS 6.2 recognising an 8 gigabyte SD card and allowing it to format it with multiple 2 gigabyte partitions?

Keeping old stuff working: [WayBackInsentricity :: Adding Solid-State Storage to an Original IBM PC :: with these nice links:

–jeroen

via: [WayBack] There was a lot of interest in how I added solid-state storage when I was tweeting about it a few weeks ago, now you can see… – Chris Osborn – Google+

 

Posted in Development, Hardware Development, History | Leave a Comment »

Calls from +18553308653 might be because someone is trying to use your phone number to setup a Microsoft account two factor authentication

Posted by jpluimers on 2019/02/18

Got some calls to my phone numbers in The Netherlands from +18553308653 that I did not ask for. The below searches revealed it is likely someone trying to use those to setup Two Factor Authentication.

It was not my live account, as that was already covered by the Microsoft Authenticator app (you can set up your phone number through account.live.com/names/Manage and authentication through account.microsoft.com/security, see steps at [WayBack] Microsoft – Authy).

Read the rest of this entry »

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

That duh moment when you cannot read an SD card: it’s SDHC/SDXC in an SD card reader; Secure Digital – Wikipedia

Posted by jpluimers on 2019/02/18

That moment you facepalm yourself because you forgot that particular machine won’t read SD cards because they are too big for the SD card reader in it: SD goes up to 4 gigabyte, anything bigger (nowadays basically everything) requires SDXC or SDHC compatible readers.

Quotes from Wikipedia:

However, older host devices do not recognize SDHC or SDXC memory cards, although some devices can do so through a firmware upgrade.[11] Older Windows operating systems released before Windows 7 require patches or service packs to support access to SDHC cards.[12][13][14]

Older host devices generally do not support newer card formats, and even when they might support the bus interface used by the card,[6]there are several factors that arise:

  • A newer card may offer greater capacity than the host device can handle (over 4 GB for SDHC, over 32 GB for SDXC).
  • A newer card may use a file system the host device cannot navigate (FAT32 for SDHC, exFAT for SDXC)
  • Use of an SDIO card requires the host device be designed for the input/output functions the card provides.
  • The hardware interface of the card was changed starting with the version 2.0 (new high-speed bus clocks, redefinition of storage capacity bits) and SDHC family (Ultra-high speed (UHS) bus)
  • UHS-II has physically more pins but is backwards compatible to UHS-I and non-UHS for both slot and card.[27]
  • Some vendors produced SDSC cards above 1GB before the SDA had standardized a method of doing so.
SD compatibility table
SDSC card SDHC card SDHC UHS card SDXC card SDXC UHS card SDIO card
SDSC slot Yes No No No No No
SDHC slot Yes Yes Yes[a] No No No
SDHC UHS slot Yes[a] Yes[a] Yes[b] No No No
SDXC slot Yes Yes Yes[a] Yes Yes[a] No
SDXC UHS slot Yes[a] Yes[a] Yes[b] Yes[a] Yes[b] No
SDIO slot Varies Varies Varies Varies Varies Yes

–jeroen

Posted in Development, Flash-memory, Hardware Interfacing, Power User, SD/miniSD/microSD/MMC, Storage, USB | Leave a Comment »