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 January, 2024

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 »

Troubleshooting Errors with winget… | FileWave KB

Posted by jpluimers on 2024/01/14

Need to figure out what is the cause here for [Wayback/Archive] Troubleshooting Errors… | FileWave KB

General Errors

Hex Decimal Symbol Description
0x8A15003B -1978335173 APPINSTALLER_CLI_ERROR_RESTAPI_INTERNAL_ERROR Rest API internal error

I got the error following the install steps at [Wayback/Archive] Download and install Google Chrome with winget

winget install -e --id Google.Chrome

Usually I don’t install through winget because it is often slow and during upgrades often fails to be silent (causing all kinds of popup Windows to appear), but Chocolatey had a history of hashing problems when installing [Wayback/Archive] Chocolatey Software | Google Chrome 130.0.6723.92.

This package always installs the latest version of Google Chrome, regardless of the version specified in the package. Google does not officially offer older versions of Chrome for download. Because of this you may get checksum mismatch between the time Google releases a new installer, and the package is automatically updated.

Yup the page contains the above warning, but often this happens a week at a time: not something I want to spend on installing a web-browser.

Error

Read the rest of this entry »

Posted in Chocolatey, Development, Scripting, Software Development, Windows, Windows Development, winget | Leave a Comment »

Corona pictogrammen actie: PictoCanvas drie maanden gratis

Posted by jpluimers on 2024/01/12

Voor min link-archief, want wellicht in de toekomst relevant voor mijn verstandelijk beperkte broer is [Wayback/Archive] Corona pictogrammen actie: PictoCanvas drie maanden gratis:

Stuur ons een e-mail met antwoorden op de volgende vragen en wij beoordelen of je in aanmerking komt om tot eind maart PictoCanvas gratis te gebruiken.
  • Jouw voornaam en de voornaam van je kind of cliënt.
  • De voor- en achternaam van de verzorger, familielid of contactpersoon.
  • Het e-mailadres van de verzorger, familielid of contactpersoon.
  • Wat is de impact van de corona-maatregelen op je kind en je gezin? Denk aan verlies contact met familie en vriendjes, wegvallen dagbesteding en onderwijs etc.

–jeroen

Posted in Awareness, Inclusion / inclusive society, LifeHacker, Power User | Leave a Comment »