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

GitHub – drewnoakes/string-theory: Identify and reduce memory used by duplicate .NET strings

Posted by jpluimers on 2021/01/19

[WayBack] GitHub – drewnoakes/string-theory: Identify and reduce memory used by duplicate .NET strings:

Identifies opportunities to improve heap memory consumption by strings.

Finds duplicate strings and provides ways to see what object graphs are keeping them alive.

Once you identify a suspicious referrer, you can query to see what other strings it is holding across the whole heap, and the total number of wasted bytes.

Cool tool to help trim down .NET string memory usage.

Via: [WayBack] drewnoakes on Twitter: “This week I published #StringTheory, a tool for analysing and reducing the memory used by strings on the managed .NET heap. We are using it to improve @VisualStudio performance, with encouraging results so far. Try it on your apps!”

–jeroen

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

The Indy unit `IdObjs` got removed after Delphi 2007

Posted by jpluimers on 2021/01/19

I came across some very old code that used the IdObjs unit as it was depending on the TIdStringStream type.

Digging around, I found the unit has been removed from Indy after the Delphi 2007 era.

If you need to transition away, these links – including an old version of it – will help:

Note it is still referenced from [WayBack] indy/IdTestObjs.pas at master · graemeg/indy · GitHub.

–jeroen

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

Cool: Apple mini-assembler found inside Woz’ monitor inside Apple II Integer Basic

Posted by jpluimers on 2021/01/18

From a while back: [WayBack] This week, a mini-demo of the mini-assembler found inside Woz’ monitor inside Apple II Integer Basic. CALL –151 F666G … – mos6502 – Google+

This week, a mini-demo of the mini-assembler found inside Woz’ monitor inside Apple II Integer Basic.
CALL –151
F666G
You can find reconstructed sources in Jeff Tranter’s repo here:
https://github.com/jefftranter/6502/tree/master/asm/Apple%5D%5BMonitor
where we see credits to Steve Wozniak and Allen Baum. But in this oral history it seems the assembler was Baum’s work:
“Baum: So it was brute force, very simple and fit into 256 bytes if you already had the 256-byte disassembler.”
https://youtu.be/wN02z1KbFmY?t=3941
Anyhow, one page of code – or two – is very impressive!

For more info, try searching for F666G! (We wonder at this memorable address – the Apple I price was $666.)

Related:

–jeroen

Read the rest of this entry »

Posted in 6502, Apple, Apple I, Apple ][, History | Leave a Comment »

Google Chrome URL chrome://devices/ -> your registered Google Cloud devices like printers

Posted by jpluimers on 2021/01/18

Just learned a new Google Chrome URL chrome://devices/ which lists your Google Cloud devices like printers.

Though in the case of OKI printers, you have to enter your printers at the printer which the Menu button is a painful exercise. [WayBackoki-c332dn-control-panel_maxwidth.jpg (525×550).

You can also view the device list in https://www.google.com/cloudprint#printers

For some OKI printers (including the MC342 series) you need to update the firmware. For a Mac, you need the below firmware update tool that automagically:

  1. detects the printers
  2. finds the firmware on the internet
  3. updates the printer

Tool: [WayBackFWUP_020000_10.7.dmg via [WayBackFirmware Update | OKI Global

–jeroen

Posted in Chrome, Google, Hardware, OKI C332, OKI Printers, Power User | Leave a Comment »

The messenger – Delta Chat – Email Based Instant Messenger; based on IMAP push

Posted by jpluimers on 2021/01/18

[WayBack] The messenger – Delta Chat: Delta Chat – Email Based Instant Messenger

From the FAQ at [WayBack] Help – Delta Chat:

What are the advantages of Delta Chat compared to other messengers?

  • Independent of any company or services. You own your data.
  • Your data are not saved on a central server; this way, in contrast to most other messengers, Delta Chat even protects your metadata (who writes to whom?)
  • You do not distribute your address book to anyone.
  • Fast by the use of Push-IMAP
  • Largest userbase – receivers not using Delta Chat can be reached as well
  • Compatible – not only to itself
  • Elegant and simple user interface
  • Distributed system
  • No Spam – only messages of known users are shown by default
  • Reliable – safe for professional use
  • Trustworthy – can even be used for business messages
  • fully Open Source and Standards based

What if the receiver does not use Delta Chat?

  • The receiver will get a normal email then – if he replies to it, you will see the reply in the Delta Chat app.

Releases: [WayBack] DeltaChat multi-platform releases rolling … – Delta Chat

Repositories via [WayBack] Contribute – Delta Chat:

Via:

–jeroen

Read the rest of this entry »

Posted in Chat, LifeHacker, Power User, SocialMedia | Leave a Comment »

Hoe we omgaan met kwetsbaren: UWV en de Wajong. Het UWV weet het ook allemaal niet meer, en bepaalt volgend jaar wat je dit jaar had mogen krijgen

Posted by jpluimers on 2021/01/17

[Archive.is] jim faas 🍀 (@🏠) on Twitter: “LEES DE BRIEF van UWV aan een Wajonger EN HUIVER❗️ ✅de regels zijn aangepast ✅de zoveelste keer 🤭 ✅niemand kon er nog een touw aan vastknopen 👉Pepijn krijgt uitleg 👉hij snapt het weer niet worden gecompliceerde regelingen expres bedacht voor de meest kwetsbaren? /1… “

via:

Thread: [Wayback] Thread by @JimFaas on Thread Reader App – Thread Reader App

Read the rest of this entry »

Posted in About, LifeHacker, Personal, Power User | Leave a Comment »

TUMBLEWEED Ordering cycle at boot with nss-lookup: named fails to start initially; workaround: manually `rcnamed start`

Posted by jpluimers on 2021/01/15

I have seen this on one Raspberry Pi 3 system: named failing to start during a normal reboot.

The solution is to manually rcnamed start as root after boot.

From [Wayback] TUMBLEWEED Ordering cycle at boot with nss-lookup, the rcnamed status is the same as on my system, but no solution in that thread:

# systemctl status named
● named.service - Berkeley Internet Name Domain (DNS)
     Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled)
     Active: inactive (dead) Jul 02 08:13:40 hpprol2 systemd[1]: nss-lookup.target: Found ordering cycle on named.service/start
Jul 02 08:13:40 hpprol2 systemd[1]: nss-lookup.target: Found dependency on time-sync.target/start
Jul 02 08:13:40 hpprol2 systemd[1]: nss-lookup.target: Found dependency on ntpd.service/start
Jul 02 08:13:40 hpprol2 systemd[1]: nss-lookup.target: Found dependency on nss-lookup.target/start
Jul 02 08:13:40 hpprol2 systemd[1]: nss-lookup.target: Job named.service/start deleted to break ordering cycle starting with nss-lookup.target/start

Apparently, sometimes there is a service startup dependency loop, and named becomes the victim of it, effectively rendering DNS inoperable.

My system was running this version of Tumbleweed:

statler:~ # cat /etc/SUSE-brand /etc/os-release 
openSUSE
VERSION = tumbleweed
NAME="openSUSE Tumbleweed"
# VERSION="20200825"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20200825"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20200825"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
LOGO="distributor-logo"

On an identical system, the boot just worked fine, so it might be timing related.

waldorf:~ # cat /etc/SUSE-brand /etc/os-release 
openSUSE
VERSION = tumbleweed
NAME="openSUSE Tumbleweed"
# VERSION="20200825"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20200825"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20200825"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
LOGO="distributor-logo"

It has been fixed late January 2021 as per [Wayback] Bug 1177491 – systemd ordering cycle with nss-lookup.target:

Josef Möllers 2021-01-27 15:50:15 UTC
Fixed by removing "Before=nss-lookup.target" from systemd's service file.

It means editing /etc/systemd/system/multi-user.target.wants/named.service from

[Unit]
Description=Berkeley Internet Name Domain (DNS)
After=network.target
After=time-sync.target
Before=nss-lookup.target
Wants=nss-lookup.target
Wants=time-sync.target

[Service]
Type=forking
ExecStart=/usr/sbin/named.init start
ExecReload=/usr/sbin/named.init reload
ExecStop=/usr/sbin/named.init stop

[Install]
WantedBy=multi-user.target

into

[Unit]
Description=Berkeley Internet Name Domain (DNS)
After=network.target
After=time-sync.target
Wants=nss-lookup.target
Wants=time-sync.target

[Service]
Type=forking
ExecStart=/usr/sbin/named.init start
ExecReload=/usr/sbin/named.init reload
ExecStop=/usr/sbin/named.init stop

[Install]
WantedBy=multi-user.target

Note that it is an alias, so it won’t show up in a versioned /etc directory (for instance using etckeeper):

# ls -Alh /etc/systemd/system/multi-user.target.wants/named.service 
lrwxrwxrwx 1 root root 37 Sep  5  2020 /etc/systemd/system/multi-user.target.wants/named.service -> /usr/lib/systemd/system/named.service

–jeroen

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

The multi-carrier platform for future-proof delivery

Posted by jpluimers on 2021/01/15

In case I ever need to setup shipment tracking: [WayBack] The multi-carrier platform for future-proof delivery.

We believe delivery is the biggest game changer in e-commerce. So you need software that makes shipping easy and your customer happy. We do just that.

–jeroen

 

Posted in Cloud, Infrastructure, LifeHacker, Power User | Leave a Comment »

Having the Tom Bihn Brain Bag as day-to-day backpack, I wonder about the PeakDesign Travel Backpack

Posted by jpluimers on 2021/01/15

Having the Tom Bihn Brain Bag as day-to-day backpack, I wonder about the PeakDesign Travel Backpack.

The features I like most about the [WayBack] Tom Bihn Brain Bag are:

  • that it has 2 big main compartments,
  • the rail system allowing easy attached removal of one or two laptop caches [WayBack],
  • the freudian slip insert [WayBack],
  • the snake charmer accessory [WayBack],
  • the materials last forever
    (my first lasted 20+ years, so I gave it to mentally retarded brother. To bad he disposed it, not realising how durable it was “it was too big for my work-stuffand too small for my diving flippers, so I threw it away”)

Two more things I like, but are not available any more (new products are being designed for them):

I wonder about the material differences between the two too backpacks.

Here are some links if you want to compare them yourself:

Via: [WayBack] After 2 weeks of researching I finally bought what I believe to be the best carry on backpack in the world: The #PeakDesign Travel Backpack. Seriously i… – Jason Mayes – Google+

On fabrics:

 

–jeroen

Read the rest of this entry »

Posted in About, LifeHacker, Personal, Power User, Travel | Leave a Comment »

Forced routing of selective emails to ISP SMTP via Mikrotik Routing | Syed Jahanzaib Personal Blog to Share Knowledge !

Posted by jpluimers on 2021/01/14

For my link archive: [WayBack] Forced routing of selective emails to ISP SMTP via Mikrotik Routing | Syed Jahanzaib Personal Blog to Share Knowledge !

–jeroen

Posted in Development, MikroTik, Power User, RouterOS, routers, Scripting, Software Development | Leave a Comment »