Random snippets of all sorts of code, mixed with a selection of help and advice.
Version mismatch with a sub-dependency: bitgo/utxo-core
30 January 2026 @ 1:20 am
Environment Details
OS: Zorin OS (Linux)
Node Version: v24.12.0
PNPM Version: 10.14.0
BitGoJS Version: 50.21.1 || 50.22.0
Next JS (with TypeScript) project Version: 16.0.10
React version: 19.2.3
Expected Behavior
Running pnpm i bitgo should successfully resolve all sub-dependencies and install the package.
Current Behavior
The installation fails with an ERR_PNPM_NO_MATCHING_VERSION error because [email protected] depends on @bitgo/utxo-core@^1.31.0, but the latest version of @bitgo/utxo-core available on the npm registry is 1.30.0.
Error Output:
ERR_PNPM_NO_MATCHING_VERSION No matching version found for @bitgo/utxo-core@^1.
Understanding list-like functions in transform and apply command in pandas
30 January 2026 @ 1:13 am
TLDR;
I'm trying to understand why list-like methods in dataframes behave the same as the list-like methods in Series.
Basically, in Series, if you use apply or transform on list-like methods, they will first try to pass each value of the Series individually into the function. If it doesn't work, they will pass the entire Series into the function. By the same logic, for a dataframe, first a row/column or should be passed to the function and then if it doesn't work the entire dataframe should be passed.
But this is not the case, the dataframe's behaviour for list-like functions is exactly same as those of series's, it first checks for individual values and then for entire columns. The level of granularity doesn't increase. I want to understand why it was written this way. I have seen the source code behind it.
In Detail
I'm exploring the apply and transform commands in pandas. I get the
In Python how to add or delete certain rows from 1 column in a large CSV file?
30 January 2026 @ 1:01 am
In Python I am trying to add values to or remove values from one searched column within a large CSV file of data. Wanting to change the values only in the data portion of that one column in the CSV file.
CSV file has parameters on row 1, units row 2 and data on row 3,4,5,6, ect
Example dataset:
Temp pressure speed temp2 Power
C kpa rpm C KW
20 100 700 80 10
21 100 700 81 10
21 99 700 84 10
22 99 700 88 10
23 99 700 89 10
24 99 700 90 10
25 98 700 91 10
So for example I would want to search for "temp2" and remove the first x number of points, let's say (3) w
Group Transaction in To/From columns
30 January 2026 @ 12:45 am
I have this table here as example:
Group
Where
Bill
Amount
A
from
telephone
-300
A
from
internet
-200
A
to
electricity
500
B
from
water
-1000
B
to
cable
500
B
to
gas
500
When you query Group A. The output should be like this:
Group
Bill
from (amount)
Bill
to (amount)
A
telephone
-300
electricity
500
A
internet
-200
Can you call an existing request in pre-request in postman?
30 January 2026 @ 12:45 am
I know we can create a full request through script using pm.request.
Is there any easy way to link the requests in chain?
Question about next steps, beginner in Web Full Stack projects [closed]
30 January 2026 @ 12:40 am
I recently finished Angela Yu’s Web Full Stack bootcamp on Udemy (below I list all the stacks covered in the course). I found the course interesting, but since it’s a bootcamp, I believe the content may be a bit superficial.
After completing the course, I started my first project: a task list (To-do List), with the following features:
Task CRUD; multiple lists; filters (Today, Tomorrow, Next 7 days, Inbox, and All); tags and priorities.
Business rules / project functionality:
Default Inbox per user (“Inbox”), created via ensureInboxList
All list, task, and tag queries are always filtered by user_id
“Today” filter based on APP_TZ
“Next 7 days” considering the range from today to today + 6 (inclusive)
Priority defined as an enum (none, low, medium, high), with default value none (both in the database and in application validation)
N:N relationship f
Maven Failsafe plugin printing strange log messages
30 January 2026 @ 12:38 am
I am currently working in a project using Java 17, Cucumber 7 and JUnit5. I use this project to run integration tests (API tests using REST Assured and UI tests using Selenium). I use the Maven Failsafe plugin to run the tests (via mvn clean verify command). I have almost 30 feature files in the project with hundreds of scenarios and scenario outlines and thousands of cucumber examples for these scenarios. The tests are running correctly but for some reason, whenever at least one test case fails, Failsafe (I assume it is Failsafe because I've kind of ruled out other possibilities with the help of some AIs) prints some nonsensical stuff in my console output. One example:
[ERROR] Failures:
[ERROR] com.company.myproject.runners.CucumberRunner.Example #1.1
[INFO] Run 1: PASS
[INFO] Run 2: PASS
[INFO] Run 3: PASS
[INFO] Run 4: PASS
(many lines here)
[INFO] Run 158: PASS
[INFO] Run 159: PASS
[ERROR] Run 160: CucumberRunner.Example #1.1 expected
why does "apply" cause the minimum of dates to become character?
30 January 2026 @ 12:21 am
Consider a vector of date objects, R will calculate the minimum and the result remains of type Date,
class(min(c(as.Date('2000-01-01'), as.Date('2100-01-01'))))
OTOH if the dates are arranged in a matrix or data frame and I iterate over each row with apply the result becomes character. Further, how can I perform a similar vectorized operation keeping the desired class for the result?
df <- data.frame(
y = as.Date('2000-01-01'),
z = as.Date('2100-01-01')
)
val1 <- apply(df, 1, min)
class(val1)
How do I detect reverts on Wikipedia [closed]
30 January 2026 @ 12:12 am
I am working with Wikipedia revision data and would like to identify which edits are reverts based on the text of the revisions.
Specifically, I have access to revision-level information, but I do not have an explicit revert flag. My goal is to algorithmically detect whether a given revision reverts a previous revision.
I am aware that reverts can sometimes be identified via edit comments (e.g., containing “revert”, “rv”, or “undo”), but I am interested in approaches that rely on the text content itself, such as comparing revisions to detect whether the article text returns to a prior state.
Displaying Azure App Configuration Key Vault Reference Value
29 January 2026 @ 11:58 pm
I have set up a couple of Azure App Configuration Keys, one manually and the other using Terraform configuration, as depicted in the image below and described in the last column.
Both keys reference Key Vault secrets whose values are GUIDs. My particular focus, however, as far as this query is concerned, relates to the GUID value for the manually-created key called ClientSecret_Key.
As a sanity/verification check, I would like to display this value in my outputs.tf Terraform configuration (or some other display option), using the below data and output block, but despite all my efforts of trying out various available attributes, I can't get the GUID from the Key Vault secret to be displayed when I run Terraform Plan and/or Apply.
Is it possible to display this secret value at all, and if so, how can I achieve this? In the meantime, I can achieve th
Both keys reference Key Vault secrets whose values are GUIDs. My particular focus, however, as far as this query is concerned, relates to the GUID value for the manually-created key called ClientSecret_Key.
As a sanity/verification check, I would like to display this value in my outputs.tf Terraform configuration (or some other display option), using the below data and output block, but despite all my efforts of trying out various available attributes, I can't get the GUID from the Key Vault secret to be displayed when I run Terraform Plan and/or Apply.
Is it possible to display this secret value at all, and if so, how can I achieve this? In the meantime, I can achieve th