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

Archive for the ‘Software Development’ Category

C# List Patterns: csharplang/list-patterns.md at main · dotnet/csharplang

Posted by jpluimers on 2024/02/07

For my URL list:

Read the rest of this entry »

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

Walls and Ladders when pasting e-mail on account sign-up forms: Paste It – Chrome Web Store

Posted by jpluimers on 2024/02/06

In a game of Walls and Ladders (similar to Arms Race), the Ladders usually win, see the references at the end of the post.

The actual “game” in this case is more and more sites trying to build walls prevent pasting credential related information like user IDs (often e-mail addresses) or passwords often citing “more safety” or “less security risks”, and users get taller ladders wanting to do just that because of their own security concerns:

[Wayback/Archive] Stef 🎈 on Twitter: “Dear mobile/web-apps, please never never disable copy and paste “due to security reasons”. -everybody with a password manager.”

The walls will always loose so it is better to invest the money for the walls into other security measures.

Given that most of the risks are web-sites getting that information exfiltrated, I wish they put more energy into bolting down that side of the security risk side than the hampering legitimate users entering that information in the first place.

Since so many of these sites have leaked my information in the past, any email address I use for activating an account is like 50 characters long. Something I am not going to type once (because of typing mistakes) and definitely not twice (to confirm I did not make typing mistakes).

Read the rest of this entry »

Posted in Authentication, Chrome, Clipboard, Development, Google, HTML, JavaScript/ECMAScript, Power User, Scripting, Security, Software Development, Web Development | Leave a Comment »

Julia Evans (b0rk on Twitter) does not just make cool zines (like the DNS one) but also cool sites (the DNS lookup one). It’ is better than Google Toolbox, IntoDNS and others

Posted by jpluimers on 2024/01/31

A while after writing notes on updating DNS info with bind DNS, b0rk (Julia Evans) posted about her DNS zine which got a reply about her DNS lookup tool. Below is part of that thread.

The reason I post is that – unlike the Google DNS ToolBox – you can bookmark her DNS tool link including the actual search part, which makes it far easier to do systems administration.

Examples:

There is a trace tool too:

The thread:

Read the rest of this entry »

Posted in Development, DNS, Go (golang), Internet, Power User, Software Development, Web Development | Leave a Comment »

“Oh shit git” seems to have been succeeded by “Oh shit GitHub Copilot”: ‘Downward Pressure on Code Quality’

Posted by jpluimers on 2024/01/29

Not sure about you, but when I write code I want it to be better – way beter even – than average code.

The problem with any LLM based Generative AI is that it generates text based on the average of the past corpus they were trained with at the time they were trained.

It is exactly why I have been advocating for a while: be careful when using Generative AI, as you get generated text based on the combination of averaging over the LLM corpus with the relatively small prompt you phased trying to reflect a tiny bit of the model of the reality you are trying to write software for.

So I was not at all surprised by this article: [Wayback/Archive] New GitHub Copilot Research Finds ‘Downward Pressure on Code Quality’ — Visual Studio Magazine.

Read the rest of this entry »

Posted in AI and ML; Artificial Intelligence & Machine Learning, Development, GitHub Copilot, LLM, Software Development | Leave a Comment »

Disturbing replies to Tim Urban on Twitter: “What, if anything, do you regularly use ChatGPT (or another LLM) for that has provided a dramatic improvement over your previous workflow?”

Posted by jpluimers on 2024/01/24

Gotten there from the reasonable ChatGPT use below, I was negatively surprised what people use ChatGPT for and totally rely on the ChatGPT responses: [Wayback/Archive] Tim Urban on Twitter: “What, if anything, do you regularly use ChatGPT (or another LLM) for that has provided a dramatic improvement over your previous workflow?”

I think this is about the only reasonable ChatGPT use today: [Wayback/Archive] Barry Kelly on Twitter: “@waitbutwhy – minor scripts for things like ffmpeg or Image/GraphicsMagick – trying to do something with an API I’m not familiar with; often gets screwy when it’s obscure though Things I’m not using it for: any kind of creative writing. Execrable.

Remember that ChatGPT is a text generation model that averages the quality of the text in its corpus that was obtained in the past which means at it’s release, the “knowledge” was already dated.

---jeroen

Posted in AI and ML; Artificial Intelligence & Machine Learning, ChatGPT, Development, GPT-3, Software Development | Leave a Comment »

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 »

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 »

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 »

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 »