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

Archive for the ‘Software Development’ Category

Weather info in plain text or JSON

Posted by jpluimers on 2025/03/06

Two sites that can help you out getting weather info on the console:

wttr.in

wttr.in is developed by [Wayback/Archive] Igor Chubin (@igor_chubin) / X and looks at the request header to figure out what kind of output it sends.

It supports various output formats, so on my TODO list is to see how they do their mapping: always an opportunity to learn (it’s based on Python and Go so I am curious what libraries they use as well).

From the documentation:

wttr.in currently supports five output formats:

  • ANSI for the terminal;
  • Plain-text for the terminal and scripts;
  • HTML for the browser;
  • PNG for the graphical viewers;
  • JSON for scripts and APIs;
  • Prometheus metrics for scripts and APIs.

The ANSI and HTML formats are selected based on the User-Agent string.

There are more parameters in the documentation on the main page of the repository and through this command:

curl wttr.in/:help

The idea is derived from [Wayback/Archive] GitHub – schachmat/wego: weather app for the terminal.

Oh: Igor has more repositories at [Wayback/Archive] chubin (Igor Chubin) · GitHub (including [Wayback/Archive] GitHub – chubin/cheat.sh: the only cheat sheet you need which is hosted at [Wayback/Archive] cheat.sh; I thought I had blogged about that before, but found it only in a draft note mentioning that I got it via [WaybackSave/Archive] Nicolas Krassas on X: “The only cheat sheet you need cheat.sh)

7timer

A 7 timer JSON usage example is at [Wayback/Archive] Get Weather from 7Timer! · GitHub

It has documentation at

Output formats can be chosen from HTML, PNG, XML and JSON.

Via

[Wayback/Archive] Hacker Public Radio – hpr4266 :: What’s the weather?
Lee writes a script to check what the weather is like ~ The Technology Community Podcast

HPR is a great podcast series!

--jeroen

Posted in *nix, *nix-tools, ash/dash, bash, bash, Development, Go (golang), JavaScript/ECMAScript, JSON, Power User, Python, Scripting, Software Development, Web Development, XML/XSD | Leave a Comment »

Miguel de Icaza on Twitter: “This is so beautiful – SQL Injection attacks but for GPT-3 and other AI text models.” / Twitter

Posted by jpluimers on 2025/03/06

2.5 years after Miguel summarised the state of AI text models, and given SQL Injection (because of mixing control and data channels) still is a thing in the 2020’s, I wonder both how much improvement there has been on the AI side of things and how much it is used in pen testing.

So I archived the below tweets to be able to read back and figure out on the current state.

[Wayback/Archive] Miguel de Icaza on Twitter: “This is so beautiful – SQL Injection attacks but for GPT-3 and other AI text models.”:

Read the rest of this entry »

Posted in AI and ML; Artificial Intelligence & Machine Learning, Blue team, Database Development, Development, Pen Testing, Power User, Red team, Security, Software Development, SQL | Leave a Comment »

Unicode subscripts and superscripts: Latin, Greek, Cyrillic, and IPA tables; Source: Small caps: Unicode – Wikipedia

Posted by jpluimers on 2025/03/05

I originally searched for the tables below to see if I could get the visualisations of TeX and LaTeX right for infinite loop in “LaTeX: A Document Preparation System” by Leslie Lamport, printed in 1994..

Didn’t work, neither did using plain html super and subscript. The only thing that worked was using CSS styles (I chose to embed them, as separate CSS files are a huge premium over the WordPress plan), which also preserves actual meaning for screen readers:

Read the rest of this entry »

Posted in accessibility (a11y), CSS, Development, HTML, Power User, Software Development, Unicode, URL Encoding, User Experience (ux), Web Development | Leave a Comment »

On my list of thigs to play around with: ISSUE_TEMPLATE and other GitHub templates/settings

Posted by jpluimers on 2025/03/05

Somehow I never consciously thought through how on many GitHub repositories, some of the issue reporting steps started with nice templates.

That is, until I bumped into [Wayback/Archive] alfred-my-mind/.github at master · nikitavoloboev/alfred-my-mind which has:

  1. a folder [Wayback/Archive] alfred-my-mind/.github/ISSUE_TEMPLATE at master · nikitavoloboev/alfred-my-mind with Markdown files for different kinds of issues (bug report, feature request and question).
  2. a file [Wayback/Archive] alfred-my-mind/PULL_REQUEST_TEMPLATE.md at master · nikitavoloboev/alfred-my-mind

So from [Wayback/Archive] ISSUE_TEMPLATE – Google Search a few results for me to get started:

--jeroen

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

Reminder to self: re-check the Dotpe API Security Breach — bool.dev

Posted by jpluimers on 2025/03/04

Still public merchant information

Still public merchant information

It looks like some store and merchang APIs were not protected back when [Wayback/Archive] Dotpe API Security Breach — bool.dev was published.

Reminder to self: check their status now as I can’t believe their “human error” got fixed properly.

History (reverse chronological order):

  1. [Wayback/Archive] How DotPe’s ‘Human Error’ Exposed Confidential Customer API Data
  2. [Wayback/Archive] Deedy on X: “Today, Google-backed DotPe locked down their APIs by rate-limiting by IP on /external/merchant and blocking others. They sent a legal notice to the author before fixing it and haven’t publicly acknowledged the issue at all. Companies must be held accountable for poor security.…”

    [Wayback/Archive] Tweet JSON: [Wayback/Archive] GYSlTthakAEoojp.png:orig (2346×1838)

  3. Now protected private API

    Now protected private API

    [Wayback/Archive] Deedy on X: “6 hours later, the API is still very much public! …”

    [Wayback/Archive] Tweet JSON: [Wayback/Archive] GYK38dXbkAEEEs_.jpg:orig (1358×1798)

Read the rest of this entry »

Posted in Communications Development, Development, HTTP, Infosec (Information Security), Internet protocol suite, REST, Software Development, TCP, Web Development | Leave a Comment »

Writing a tool that restarts the Google Chat desktop app Window (and hopefully the Google Duo desktop app Window too)

Posted by jpluimers on 2025/03/04

In the past, the Google Hangouts desktop app on Windows would integrate with the system “tray” (actually the notification area) and show you missed chats and calls.

The [Wayback/Archive] Google Chat desktop app does not. It shows missed messages only as a number on the taskbar icon. Even worse: when you close the Window, the taskbar application icon does not show that number any more.

The odd thing is that the Google Duo desktop app does stay active and shows a notification popup on incoming calls. The Google Chat desktop app does not.

So I wanted to restart the Google Chat desktop app automatically when the Window was closed. But there is a catch:

Read the rest of this entry »

Posted in .NET, C#, CommandLine, Delphi, Development, PowerShell, PowerShell, Scripting, Software Development | Tagged: | Leave a Comment »

Forrest Brazeal on Twitter about their your process for learning a new technology or framework on the job

Posted by jpluimers on 2025/03/03

Interesting responses to [Wayback/Archive] Forrest Brazeal on Twitter: “People who’ve been software engineers for awhile: what’s your process for learning a new technology or framework on the job? (I want the beginners who follow me to read the replies carefully)”.

Not just interesting for beginners to read, but for any developer: understanding how other people acquire new technology helps you to compare your own way of learning to others.

Forrest keeps these simple steps as “[Wayback/Archive] For me:

Read the rest of this entry »

Posted in Conference Topics, Conferences, Development, Event, Learning/Teaching, LifeHacker, Power User, Software Development | Leave a Comment »

On accessibility (thanks Bianca Prins!) and archivability.

Posted by jpluimers on 2025/02/27

A long while ago, I participated in a Twitter thread that started with a translation of some important accessibility posts by Bianca Prins, then extended it to the concept to archivability:

[WayBack] Thread by @jpluimers: “I am going to first translate this, then extend this to archivability…. @jpluimers […]” #UXdesign #accessibility.

TL;DR

  1. make sure what you create is accessible
  2. ensure your (online) content is archivable
  3. help archiving content

Let’s go

Read the rest of this entry »

Posted in ArchiveTeamWarrior, Conference Topics, Conferences, Development, Event, Internet, InternetArchive, Power User, Software Development, Usability, User Experience (ux), WayBack machine | Tagged: , , | Leave a Comment »

OpenAI Researchers Find That Even the Best AI Is “Unable To Solve the Majority” of Coding Problems

Posted by jpluimers on 2025/02/26

[Wayback/Archive] OpenAI Researchers Find That Even the Best AI Is “Unable To Solve the Majority” of Coding Problems

Either Erik Meijer begs to differ, or this is sarcasm: [WaybackSave/Archive] Erik Meijer on X: “I don’t think many developers realized their white collar job could be implemented by a few hundred lines of JavaScript … plus a couple of billion floating point numbers. And we are only just beginning.”

[Wayback/Archive] gist.githubusercontent.com/1rgs/e4e13ac9aba301bcec28d761992ec4e8/raw/7c7cd5b91c6d355e72c7a34b6662006018588780/claudecode.js

Claude Code is a Beta product per Anthropic's Commercial Terms of Service.

It is part of [Wayback/Archive] GitHub – anthropics/claude-code: Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows – all through natural language commands. for which you need to be aware of

Data collection, usage, and retention

When you use Claude Code, we collect feedback, which includes usage data (such as code acceptance or rejections), associated conversation data, and user feedback submitted via the /bug command.

Via: [WaybackSave/Archive] Marcel Weiher 🇪🇺 on X: ““OpenAI Researchers Find That Even the Best AI Is “Unable To Solve the Majority” of Coding Problems” “

--jeroen

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

Some interesting tweets by @isotopp and others on home power measurement and what to do to optimise energy usage at home

Posted by jpluimers on 2025/02/26

For my link archive (browse back and forth in the tweets: lots of useful tips):

[Wayback/Archive] Kris on Twitter: “@mausdompteur @HildebrandtRalf … Tasmota Support P1-mqtt in Python, für den oa Zuidwijk Slimme Lezer Diese Lösung setze ich ein.”

A few of his power usage pictures:

Read the rest of this entry »

Posted in Development, Hardware, IoT Internet of Things, LifeHacker, Network-and-equipment, Power User, Python, Scripting, Software Development | Leave a Comment »