Random snippets of all sorts of code, mixed with a selection of help and advice.
How do I close a GitHub issue as "Not planned"?
16 June 2026 @ 2:37 pm
I encountered a GitHub issue that has the status "Closed as not planned" instead of the usual "Closed". Up until now I've been using tags to specify issues as not planned, but I'd prefer to use the status itself.
How do I close an issue with the "Closed as not planned" status on GitHub?


Gem::Version : Getting Argument Error, although I am passing the correct number of parameters
16 June 2026 @ 2:35 pm
I have the code
```
class EmptyVersion < Gem::Version
def initialize
super('')
end
end
v = EmptyVersion.new
```
Running this produces *'new': wrong number of arguments (given 0, expected 1) (ArgumentError) .*Why?
I am calling the constructor of EmptyVersion without arguments (which should be fine), and inside I am calling the constructor of Gem::Version with one argument (which should be fine too).
MAUI Android "Keeps stopping" crash exactly on Shell Navigation - ONLY on Zebra TC22 (Android 14)
16 June 2026 @ 2:29 pm
I'm dealing with a bizarre device-specific crash in my .NET 10 MAUI app (a confidential internal WMS app) and need some insights.
The Exact Behavior:
The app boots up perfectly fine to the LoginPage.
If the user enters the wrong credentials, my API returns an error, an alert shows up, and the app stays alive. Everything works.
If they enter the correct credentials, the app attempts to navigate to the main dashboard using: await Shell.Current.GoToAsync("///MainPage");
The Crash: The moment this navigation triggers, the app dies instantly. Android throws the generic "[App Name] keeps stopping" system prompt. Sometimes it just silently force-closes.
Device Testing Results (The Catch):
Samsung S25, S21 FE, Honeywell CT32: Works flawlessly in Release mode.
Zebra TC22 (Android 14): CRASHES in Release mode. (Important Note: The Zebra device is cu
How to evaluate RAG app which uses Pydantic output parser for output parsing?
16 June 2026 @ 2:29 pm
I need some advice. I've built and evaluated a RAG app Chat with PDF, which used StrOutputParser but now I'm creating another RAG project which is RAG which recommends recipes. So I need to know how to evaluate this app as it uses PydanticOutputParser. Also how to create test data for this? Do i need the actual outputs in the test data to also be in Pydantic output parser format or first test the app using StrOutputParser and then add Pydantic parser assuming that it'll give good result.
This is the Pydantic class
class RecommendedRecipe(BaseModel):
RecipeName: str=Field(description='The name of the recipe')
Ingredients: list[str]=Field(description='The ingedients required for making the recipe')
Directions:list[str]=Field(description='The directions required for making the recipe')
Cuisine:list[str]=Field(description='The cuisine type of the recipe')
Nutrition: str=Field(description='The nutrition contet
Quarto sees a duplicate chunk label when using a labelled chunk within a Targets workflow
16 June 2026 @ 2:21 pm
I'm using tar_quarto() to create a report within my targets workflow and either quarto or knitr error saying that there is a duplicate chunk label in my .qmd file. I have only one label, so it is definitely not duplicated. How do I fix this? Is this a bug?
Below is a reproducible example with a simpler project.
I'm using r 4.60, targets 1.12.0, modelsummary 2.6.0, tarchetypes 0.14.1 and quarto 1.5.1 on a an apple computer running macOS Tahoe 26.5.1 with an ARM apple silicon chip for my reproducible example. The original problem occurred in a Remote Desktop server running Windows with the same r and package versions.
The targets file:
# Load packages
library(targets)
library(tarchetypes)
# Target options:
tar_option_set(
packages = c("tibble", "modelsummary")
)
# Target list
l
Android NFC on physical devices
16 June 2026 @ 2:18 pm
I am using react-native-nfc-manager to make an app which scans NFC tags for iOS & Android. Both parts work which is good but not on all devices. For example:
Working devices:
iPhone 17 Pro Max
Samsung Fold Z5
OnePlus 7 PRO
Not working devices:
Samsung S24
Samsung S20 FE
This piece of code listens to tags being scanned on the background so that the user does not need to press a button constantly:
useEffect(() => {
if (Platform.OS !== "ios" && isNfcAvailable) {
let isActive = true;
NfcManager.setEventListener(NfcEvents.DiscoverTag, async (tag: TagEvent) => {
if (!isActive) return;
showNFCScreen();
if (tag?.ndefMessage?.[0]) {
...
} else {
setNfcScanError(1);
}
});
Nf
Aspose.Pdf.Document Page.Rect accessor hangs
16 June 2026 @ 2:17 pm
Calling Page.Rect in C# using version 26.6.0 never returns - it causes the thread it’s running on to hang.
To replicate:
var document = new Aspose.Pdf.Document(…)
foreach (var page in document.Pages)
{
// this line hangs forever on page 5 of my sample document
height = page.Rect.Height;
}
I’m happy to provide a sample document for which this behavior occurs.
This has been logged in Aspose Free Support forum:
https://forum.aspose.com/t/aspose-pdf-page-rect-hangs/329838
Does forwarding reference ensure guaranteed copy elision?
16 June 2026 @ 2:14 pm
Since C++17 copy elision is guaranteed when variable is initialized from function call that returns pr-value.
In case of such template:
template<typename... T>
void foo(T&&... args);
does forwarding reference ensure that arguments passed as pr-value will use copy elision?
I read the documentation of of copy elision and forwarding reference but I'm not sure whether this statement: Forwarding references are a special kind of references that preserve the value category of a function argument(...), implies that prvalues get passed into function body as prvalues.
How to seed non-interactively gpg-agent with a private key passphrase
16 June 2026 @ 2:12 pm
The context:
I run a private docker hub repository. It is accessed remotely and non-interactively by different client hosts. Up until recently, everything was fine: I could login/pull/push/logout from client hosts non-interactively.
Then docker evolved and required a GPG private key to access the private hub. First, I discovered that it was necessary to export the same private key on all the client and server hosts. I am able now to perform docker login non interactively from any client.
The situation arises when trying to perform docker pull (or push) as it asks for the passphrase of the GPG private key using (in my case) the gpg-agent. docker pull has no parameter to enter this passphrase non interactively.
The tentative workaround:
My idea is to try to seed the gpg-agent non interactively before running the docker pull which w
How to correct install a SDK for nRF9151 SMA DK?
16 June 2026 @ 2:06 pm
I'm stuck trying to set my nRF Connect extension on VSC. I've followed the guide for the installation but I'm reaching a wall. Every time I try to install a given SDK I have the same result (see pictures) I end up having an error.
It seems a common thing because I've searched for it for some time finding several posts of similar errors as mine I've tried the different pipelines in the blogs but I none work for me.
I've tried to use a previous version of nRF Connect, installing from GitHub repository, unstalling and installing the nRF extension in vsc, tried to extract manually the sdk files, even to rename the python.ext in appdata.
The one thing I haven't tried yet is to deactivate the firewall because I'm not able to do so as the computer is from my enterprise and I don't have permissions to do so.
Has anyone had the same error? And how did you solve it?
The images:

