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,854 other subscribers

Archive for 2019

web services – Accessing the original TWebRequest object in a Delphi SOAP Server – Stack Overflow

Posted by jpluimers on 2019/05/22

Thanks Ondrej Kelle for answering this:

uses
  System.SysUtils,
  Web.HTTPApp,
  Soap.WebBrokerSOAP;

function TTest.CallMe: string;
var
  WebDispatcher: IWebDispatcherAccess;
begin
  Result := '';
  if Supports(GetSOAPWebModule, IWebDispatcherAccess, WebDispatcher) then
    Result := Format('You are calling me from: %s', [WebDispatcher.Request.RemoteIP]);
end;

Source: [WayBack] web services – Accessing the original TWebRequest object in a Delphi SOAP Server – Stack Overflow

–jeroen

Posted in Conference Topics, Conferences, Delphi, Development, Event, Software Development | Leave a Comment »

It was all Greek to me: Iota · golang/go

Posted by jpluimers on 2019/05/21

Context is king!

Being Dutch, my association with iota was the phrase “Ik snap er geen iota van” (English: “It’s all Greek to me”), basically indicating iota is extremely small, similar to [WayBack] Iota | Definition of Iota by Merriam-Webster:

1an infinitesimal amount jot  (did not show an iota of interest)
2the 9th letter of the Greek alphabet — see alphabet table

But the first time, I saw iota used in golang, I actually confused it with [WayBack] itoa – C++ Reference, because I am more than slightly wordblind.

So code like this was all Greek to me at first, not understanding the conversion from integer to ASCII**, and slightly later, not understanding iota to be extremely small either. Heck, its usage indicates it is small from infinitesimal:

const (
    _           = iota // ignore first value by assigning to blank identifier
    KB ByteSize = 1 << (10 * iota)
    MB
    GB
    TB
    PB
    EB
    ZB
    YB
)

So it took me a bit of thought to realise that it actually had to mean something completely different, so I found

It makes me wonder why they named it like this.

Slightly related:

–jeroen

Read the rest of this entry »

Posted in C++, Development, Go (golang), Software Development | Leave a Comment »

draft-ietf-appsawg-http-forwarded-10 – Forwarded HTTP Extension (X-Forwarded-For, X-Forwarded-By, and X-Forwarded-Proto)

Posted by jpluimers on 2019/05/21

Since many HTTP stacks do not have fields for this so it’s hard to get the originating IP address:

It is about these HTTP header fields with and without X- prefix:

  • Forwarded
  • X-Forwarded-For
  • X-Forwarded-By
  • X-Forwarded-Proto

Note that widely used tools like HAProxy do not always fully adhere to the “standard”…

Via:

–jeroen

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

Delphi XE8 introduced the dependency directive, but it’s not for Windows

Posted by jpluimers on 2019/05/21

Interesting thread that shows Delphi XE8 introduced a dependency directive: [WayBack] Just curious, in which version was the dependency directive introduced? As in procedure X; external ‘somelib’ dependecy ‘otherlib’; S… – Johan Bontes – Google+

It’s documented as of XE8: [WayBack] Procedures and Functions (Delphi) – RAD Studio: Specifying Dependencies of the Library

The earliest use I could find is in XE4 source C:\Program Files (x86)\Embarcadero\RAD Studio\11.0\source\IBX\IBIntf.pas

–jeroen

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

Amazon.com: Kaimebien I Before E Weird Grammar Teacher 11 Ounces Coffee Mug: Kitchen & Dining

Posted by jpluimers on 2019/05/20

Want: mug of [WayBackWeird Meme on me.me:
I Before E
Except When Your Feisty Foreign Neighbor Keith Leisurely Receives Eight Counterfeit Beige Sleighs From Caffeinated Atheist Weightlifters
Weird

Via:

See also I before E except after C – Wikipedia

Mug: [WayBackAmazon.com: Kaimebien I Before E Weird Grammar Teacher 11 Ounces Coffee Mug: Kitchen & Dining

–jeroen

Read the rest of this entry »

Posted in Fun, Quotes | Leave a Comment »

Relay based computers…

Posted by jpluimers on 2019/05/20

Cool hardware: [WayBack] click-click-click-click-click-CHUNK… – Joe C. Hecht – Google+

Sources:

–jeroen

Read the rest of this entry »

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

Handy interactive map of the periodic system – elements.wlonk.com

Posted by jpluimers on 2019/05/20

Handy interactive map of the periodic system: [WayBackelements.wlonk.com

via: [WayBack] Interactive Periodic Table.Wonderful. Identify the typical uses for each element as you scroll over it.http://elements.wlonk.com/ElementsTable.htm – Lars Fosdal – Google+

Read the rest of this entry »

Posted in LifeHacker, Power User, science | Leave a Comment »

How to clear screen artifacts without rebooting Windows (multiple versions) – Super User

Posted by jpluimers on 2019/05/20

  1. go to control panel | display
  2. change the screen resolution. the artifact will go away
  3. click on cancel when windows asks you if you want to keep the new resolution.

this works on laptops too.

[WayBackUser mahesh – Super User answering [WayBackHow to clear screen artifacts without rebooting Windows (multiple versions) – Super User

–jeroen

Posted in Power User, Windows, Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Vista, Windows XP | Leave a Comment »

Not sure if this btrfs error was benign or not.

Posted by jpluimers on 2019/05/17

Booting the VM gave this in the log:

# btrfs balance /
WARNING:

    Full balance without filters requested. This operation is very
    intense and takes potentially very long. It is recommended to
    use the balance filters to narrow down the scope of balance.
    Use 'btrfs balance start --full-balance' option to skip this
    warning. The operation will start in 10 seconds.
    Use Ctrl-C to stop it.
10 9 8 7 6 5 4 3 2 1
Starting balance without any filters.
ERROR: error during balancing '/': Input/output error
There may be more info in syslog - try dmesg | tail
diaspore:~# dmesg | tail
[ 2261.857360] BTRFS info (device sda2): found 144 extents
[ 2261.922014] BTRFS info (device sda2): found 144 extents
[ 2262.003653] BTRFS info (device sda2): found 144 extents
[ 2262.146557] BTRFS info (device sda2): found 144 extents
[ 2262.268034] BTRFS info (device sda2): relocating block group 20951597056 flags data
[ 2268.255631] BTRFS info (device sda2): found 19765 extents
[ 2278.541549] BTRFS info (device sda2): found 19758 extents
[ 2278.685372] BTRFS info (device sda2): relocating block group 14558429184 flags data
[ 2278.714483] BTRFS warning (device sda2): csum failed root -9 ino 269 off 65150976 csum 0x27374190 expected csum 0x7091fbbc mirror 1
[ 2278.714619] BTRFS warning (device sda2): csum failed root -9 ino 269 off 65150976 csum 0x27374190 expected csum 0x7091fbbc mirror 1

Booting from a rescue DVD, then checking with an unmounted /dev/sda2 nothing is wrong:

localhost:~ # btrfs check /dev/sda2
Checking filesystem on /dev/sda2
UUID: 23d33d0f-0468-4408-b73c-b0eec9387d82
checking extents
checking free space cache
checking fs roots
checking csums
checking root refs
checking quota groups
found 6460166144 bytes used, no error found
total csum bytes: 5795704
total tree bytes: 214171648
total fs tree bytes: 193740800
total extent tree bytes: 12910592
btree space waste bytes: 40754145
file data blocks allocated: 35720101888
 referenced 11352182784

Both had the same version:

# btrfs version
btrfs-progs v4.13

If I ever need recovery, then these links likely help:

–jeroen

Posted in *nix, *nix-tools, btrfs, File-Systems, Power User | Leave a Comment »

Formulier SVB PGB voor IBAN-wijziging van een zorgverlener en zorgverleningsovereenkomst versies en met en zonder familie

Posted by jpluimers on 2019/05/17

LET OP! Per zorgverleningsovereenkomst, moet je OOK een zorgbeschrijving indienen: zorgbeschrijving naar zogkantoor, zorgverleningsovereenkomst naar zorgkantoor en SVB.

Buiten SVB om:

  • [WayBack/Archive.isZorgkantoor Zorg en Zekerheid: Zorgbeschrijvingen en zorgovereenkomsten: Website van de Zorgkantoren Zuid-Holland Noord & Amstelland en de Meerlanden, met informatie over de AWBZ, het zorgaanbod in de regio, zorgverstrekking en eigen bijdrage, het persoons gebonden budget etc. Het zorgkantoor is verantwoordelijk voor de uitvoering van AWBZ-zorg in de regio.
    • Sinds 2014 geldt er een maximum tarief van € 20,- per uur voor niet-professionele zorgverleners. Dit speciale tarief voor niet-professionele zorgverlening is van toepassing wanneer:
      • een ouder of familielid zorg levert, ook als deze hiervoor wel gediplomeerd is, of;
      • de zorgverlener niet beschikt over een zogenaamde BIG-registratie, of;
      • de zorgverlener of instelling niet is ingeschreven in het handelsregister als zijnde verlener van zorg.
    • Het speciale tarief voor niet-professionele zorgverleners geldt niet wanneer u al PGB genoot voor 2014.
  • [Archive.is] PGB | Vraag en Antwoord | Deskundig | Gratis Dé specialist persoonsgebonden budget (PGB) geeft (met 20 jaar ervaring) op deze pagina snel en correct antwoord op PGB vragen.

–jeroen

Posted in LifeHacker, Power User | Leave a Comment »