The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,839 other subscribers

Inline Thinking | Patricia Aas – Programmer

Posted by jpluimers on 2024/01/24

I wasn’t aware that Java has some some catch-up and now supports user definable inline types: [Wayback/Archive] Inline Thinking | Patricia Aas – Programmer

Inline Thinking

97 Things Every Java Programmer Should Know

Patricia Aas, 16 January 2020
Computers changed. They changed in many ways, but for the purpose of this text they changed in one significant way: The relative cost of reading from RAM became extremely high.
These “cache friendly” behaviors are already present in Java when using so called “primitive types”, like ints and chars. “Primitive types” are “inline types” and come with all of their advantages. So even though inline types may seem foreign in the beginning, you have worked with them before, you just might not have thought of them as objects. So when “inline classes” seem confusing, you could try to think: “What would an int do?”

Read the rest of this entry »

Posted in Development, Java, Java Platform, Software Development | Leave a Comment »

Some links on e-Ink displays and Raspberry Pi or ESP32

Posted by jpluimers on 2024/01/23

For my link archive:

–jeroen

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

bloomberg/memray: Memray is a memory profiler for Python

Posted by jpluimers on 2024/01/22

For my link archive as one day I will need this:

Via this cool [Wayback/Archive] Thread by @1st1 on Thread Reader App that has these tweets:

  1. [Wayback/Archive] Yury Selivanov on Twitter: “WOW. Bloomberg finally opensourced memray—a new versatile memory profile for Python. Can’t way to use it. Thread 👇”

  2. [Wayback/Archive] Yury Selivanov on Twitter: “1. It’s fully open source (Apache 2), grab it here: …”

  3. [Wayback/Archive] Yury Selivanov on Twitter: “2. Until now you never could have such a deep insight in how your app allocates memory. The tool is a must for any long-running services implemented with Python. With memray you can generate flame charts or all allocations and trace absolutely everything.”

  4. [Wayback/Archive] Yury Selivanov on Twitter: “3. And this must be a Python snippet of the month:”

    Image

    @pytest.mark. limit_memory("24 MB")
    def test_foobar():
        # do some stuff that allocates memory
  5. [Wayback/Archive] Yury Selivanov on Twitter: “4. It’s sophisticated enough to peek into native code. So you can profile your numpy and pandas code with it. And it has a live mode. You can just run your code and see how it allocates memory as it runs. 🤯”

  6. [Wayback/Archive] Yury Selivanov on Twitter: “5. A little birdie mentioned to me that @pyblogsal is one of the active contributors in memray. Let’s keep it a secret 🫢”
  7. [Wayback/Archive] Yury Selivanov on Twitter: “6. This is a Python client to @edgedatabase as it establishes a connection to the DB. cc @fantix @elprans”

  8. [Wayback/Archive] Yury Selivanov on Twitter: “7. Wow, this thread is blowing up. Here’s a link to my Spotify… err,”

–jeroen

Posted in Development, Python, Scripting, Software Development | Leave a Comment »

PowerToys Keyboard Manager utility for Windows | Microsoft Docs

Posted by jpluimers on 2024/01/19

It looks like after decades, ReMapKey (from the Windows 2000 and 20023 Resource Kits, see If you miss having the Caps Lock button on your #Chromebook… (via: Google Chrome – Google+)) got a successor:

[Wayback/Archive] PowerToys Keyboard Manager utility for Windows | Microsoft Docs:

The PowerToys Keyboard Manager enables you to redefine keys on your keyboard.

For example, you can exchange the letter A for the letter B on your keyboard. When you press the A key, a B will display.

You can also exchange shortcut key combinations. For example: The shortcut key Ctrl+C will copy text in Microsoft Word. With PowerToys Keyboard Manager utility, you can exchange that shortcut for ⊞ Win+C. Now, ⊞ Win+C will copy text. If you do not specify a targeted application in PowerToys Keyboard Manager, the shortcut exchange will be applied globally across Windows.

PowerToys Keyboard Manager must be enabled (with PowerToys running in the background) for remapped keys and shortcuts to be applied. If PowerToys is not running, key remapping will no longer be applied.

The real kicker however, is that the new PowerToys Keyboard Manager can be application specific:

Read the rest of this entry »

Posted in Power User, PowerToys, Windows, Windows 10, Windows 11 | Leave a Comment »

Konstantin Ryabitsev yesterday won Mastodon: “I believe that tree is in a detached state.”

Posted by jpluimers on 2024/01/19

I laughed a bit too hard: [Wayback/Archive] @monsieuricon@social.kernel.org: “@torvalds I believe that tree is in a detached state.” in a response to

[Wayback/Archive] Linus Torvalds @torvalds@social.kernel.org: Day four of no power and no Internet. This big tree is the reason.…

Day four of no power and no Internet. This big tree is the reason. One among hundreds in the area, but this is the one that took out *our* power and Internet.

PGE (Portland General Electric) claims we should get power back by 10pm today, but the ice storm arrives today, so we’ll see.

Edit: well, it looks like PGE fixed the outage by just removing me from the outage database, not by actually reconnecting power. That was the second time that happened, so I re-re-reported the outage. Not that I was hugely optimistic about the 10pm timeframe, but it looks even less likely now.

Read the rest of this entry »

Posted in Development, DVCS - Distributed Version Control, git, Software Development, Source Code Management | 2 Comments »

ESXi 8 licenses seem still available, if you might need it: register while you can as it looks like Broadcom will kill registration

Posted by jpluimers on 2024/01/18

This is where you can still register for a free ESXi 8 account (until Broadcom kills that):

Because of:

Note that slightly more than a year ago, there was a problem getting licenses because too many were registering at once: [Wayback/Archive] Solved: esxi 8 Free registration – VMware Technology Network VMTN

Read the rest of this entry »

Posted in ESXi7, ESXi8, Power User, Virtualization, VMware, VMware ESXi | Leave a Comment »

For your next job interview: One-Line FizzBuzz Solution in Python 3 | by David Sanchez | CodeX | Medium

Posted by jpluimers on 2024/01/18

[Wayback/Archive] One-Line FizzBuzz Solution in Python 3 | by David Sanchez | CodeX | Medium

print('\n'.join(['fizzbuzz' if x%15 == 0 else 'buzz' if x%5 == 0 else 'fizz' if x%3 == 0 else str(x) for x in range(1,101)]))

(Yes, one can do similar list comprehension and conditional expression constructs in other languages to get one-liner solutions)

Via:

–jeroen

Posted in Development, Python, Scripting, Software Development | 1 Comment »

Figuring out the cause of a GitHub personal access token throwing “remote: Permission to write to gist denied.”

Posted by jpluimers on 2024/01/17

Last week I mentioned

My forking was needed because of [Wayback/Archive] Jeroen Wiert Pluimers on Twitter: “Need @github help: Personal Access Token fails on … with a “The requested URL returned error: 403″, but works fine on … Why is that? (I own both repositories)”

Read the rest of this entry »

Posted in Development, DVCS - Distributed Version Control, gist, GitHub, Software Development, Source Code Management | Leave a Comment »

Threads by @BillDemirkapi about the Okta Breach by LAPSUS$

Posted by jpluimers on 2024/01/16

There are many interesting threads about the Okta breach (via Sitel) by LAPSUS$.

Two of them in reverse chronological order (and their starting points on Twitter):

Read the rest of this entry »

Posted in Power User, Security | Leave a Comment »

⊞ Win+? shortcut: PowerToys Shortcut Guide utility for Windows | Microsoft Docs

Posted by jpluimers on 2024/01/15

About a year and a half ago, JenMsft (Jen Gentleman) pointed me to the cool “Shortcut Guide” part of the Windows PowerToys: [Wayback/Archive] microsoft/PowerToys: Windows system utilities to maximize productivity.

The PowerToys install is an all or nothing approach which will elevate you as admin during installation:

winget install Microsoft.PowerToys --source winget

From the [Wayback/Archive] PowerToys Shortcut Guide utility for Windows | Microsoft Docs:

Open the shortcut guide with the shortcut key combination: ⊞ Win+Shift+/ (or as we like to think, ⊞ Win+?) or hold down the ⊞ Win for the time as set in the Settings. An overlay will appear showing keyboard shortcuts that use the Windows key, including:

  • common Windows shortcuts
  • shortcuts for changing the position of the active window
  • taskbar shortcuts

Read the rest of this entry »

Posted in Power User, PowerToys, Windows, Windows 10, Windows 11 | Leave a Comment »