[Wayback/Archive] Ryan Els on X: “Center-aligned code just looks better 🥰 …”
--jeroen

Posted by jpluimers on 2025/04/01
Posted in Development, Fun, Software Development | Leave a Comment »
Posted by jpluimers on 2025/03/31
A few years back I had an error happen a while on one of my Windows machines after a git pull: fatal: detected dubious ownership in repository at 'C:/versioned/repository' followed by a few lines with Windows SIDs (Security Identifiers) that I had to map to actual users.
I thought I had it scheduled, but my notes were in a draft post, so when I bumped into it again when upgrading an old virtual machine with new versions I finished it and scheduled it for now.
The first time I got the error was after git for Windows fixed security vulnerability [Wayback/Archive] CVE-2022-24765 and included the quote from [Wayback/Archive] Uncontrolled search for the Git directory in Git for Windows · Advisory · git-for-windows/git:
Posted in CommandLine, Development, DVCS - Distributed Version Control, git, Power User, PowerShell, PowerShell, Scripting, Software Development, Source Code Management, Windows, Windows 10, Windows 11, Windows 7 | Tagged: 11 | Leave a Comment »
Posted by jpluimers on 2025/03/28
Hopefully by now I have given GitHub Copilot so I can put this link from a while back into more perspective: [Wayback/Archive] 8 things you didn’t know you could do with GitHub Copilot | The GitHub Blog.
I saved it for my link archive as these thought processes take me a while. The conceptual thing here is if I want to pay for products that harvest profit from the enormous time and effort invested by open source authors (in this case even after the fact, as there was no way to opt out while most of the harvesting took place). See my earlier post On my list of extensions to try in vscode: tab nine.
An alternative for parts of GitHub Copilot might be the (then working title) TLDR from [Wayback/Archive] Beyond Code (German and have the domain beyondco.de). Read the rest of this entry »
Posted in Development, Power User, Software Development, vscode Visual Studio Code | Leave a Comment »
Posted by jpluimers on 2025/03/27
Just in case I ever need ASCII art in a document again:
[Wayback/Archive] GitHub – cmatsuoka/figlet: Claudio’s FIGlet tree
Via:
FIGlet is a program for making large letters out of ordinary text
--jeroen
Posted in ASCII, ASCII art / AsciiArt, Development, Encoding, Fun, History, Power User, Retrocomputing, Software Development | Leave a Comment »
Posted by jpluimers on 2025/03/27
It has been a very long time since I played around with ripping audio from audio CDs and wrote software for audio handling. I lost access to that source code some 20 years ago, so part of this post is from memory. Hopefully that is still good memory (:
Yes, I am one of those old farts that still has computing equipment with optical drives (:
Much has improved since then, so one needs to write far less code nowadays as a of tooling is now open source or has been open source for quite some time. The hardest part was finding back CDex (which I think is still very useful especially as it handles not-so-well-handled audio CDs quite OK).
Anyway: I didn’t document much of my audio history. The only post I mentioned CDex in was Streaming your mp3 collection through an Icecast server using ezstream, which does not does it justice as back then it had been reliable for such a long time.
That web-site was horrible, especially as it was picky on audio formats. In the end, it handled 128-bit fixed bit-rate MP3 files best.
Posted in Audacity, Audio, Development, Media, Normalisation of audio, Power User, Software Development | Tagged: 1 | Leave a Comment »
Posted by jpluimers on 2025/03/26
Not just for IIS, but for hardening any Windows system including ones running http.sys (like ADFS): [Wayback/Archive] Nartac Software – IIS Crypto
Posted in .NET, Communications Development, Development, Encryption, HTTP, HTTPS/TLS security, Software Development, TCP, Web Development | Leave a Comment »
Posted by jpluimers on 2025/03/26
Normally when calculating hashes in .NET you use the [Wayback/Archive] HashAlgorithm.ComputeHash Method (System.Security.Cryptography) | Microsoft Learn.
This can be slow as [Wayback/Archive] cmcginty showed while answering the question [Wayback/Archive] How to get an MD5 checksum in PowerShell – Stack Overflow by [Wayback/Archive] Luke101 posing a faster solution (in this case for md5, but it can be generalised):
Posted in .NET, C#, Chocolatey, CommandLine, Development, Power User, PowerShell, PowerShell, Scripting, Software Development, Windows | Tagged: 1018 | Leave a Comment »
Posted by jpluimers on 2025/03/25
Bookmarklets are basically URLs that execute a JavaScript function.
Sometimes you want to rely on external JavaScript files (for instance jQuery), but Bookmarklets themselves cannot do that.
Bookmarklets can modify the current page though, and use those to load a script, wait until it is loaded, then continue executing.
Often that is OK as you want to operate the Bookmarklet on that page anyway, but be careful though that you do not mess up the page by loading an incompatible script: test, test, test!
Posted in Software Development, Development, Power User, Scripting, Web Browsers, JavaScript/ECMAScript, Bookmarklet, jQuery | Leave a Comment »
Posted by jpluimers on 2025/03/20
Since git doesn’t have the notion of directories as entities, neither does GitHub.
This makes it counter-intuitive to add a sub-directory when creating a new file on-line in the GitHub web-UI or uploading file(s) there.
I wanted to do this as instead of taking the local route, it was easier to on-line add and edit [Wayback/Archive] GitHub – jpluimers/https-imgur.com-a-bmw-e61-remote-fix-sWdk0: Content from https://imgur.com/a/bmw-e61-remote-fix-sWdk0 for Wayback Machine archival.
The GitHub web-UI can indeed do this:
TL;DR Use
/in the file name field to create folder(s), e.g. typingfolder1/file1in the file name field will create a folderfolder1and a filefile1.
you should just try to drag and drop your entire folder in the webui and it will upload whole folder.
You can also do this from the git command-line, by adding an empty file in the directory first. By convention, usually a .gitkeep file is used for that though others use .gitignore files for it.
Posted in Development, DVCS - Distributed Version Control, git, GitHub, Software Development, Source Code Management | Tagged: 21962 | Leave a Comment »
Posted by jpluimers on 2025/03/20
A sidestep of the series around Writing a tool that restarts the Google Chat desktop app Window (and hopefully the Google Duo desktop app Window too):
Enumerating Windows and especially Child Windows is a recursive endeavour, so I wondered if it was possible to write a self referencing delegate, anonymous method or lambda in C#.
That turns out to be way more complicated than I hoped for.
Some notes below, as:
Here we go:
Posted in .NET, C#, Conference Topics, Conferences, Development, Event, Software Development | Tagged: 000080, 0000ff, 008080, ff0000 | Leave a Comment »