Random snippets of all sorts of code, mixed with a selection of help and advice.
How to integrate Stripe Payment Gateway with Card, MB Way, Apple Pay, and Google Pay in a Flutter app?
17 November 2025 @ 5:52 pm
I need help understanding:
How to configure Stripe in Flutter for multiple payment methods.
How to enable MB Way in Stripe and trigger it from the Flutter app.
How to set up Apple Pay and Google Pay correctly (including platform setup).
Example code for creating PaymentIntents and confirming payments using flutter_stripe.
Any complete example or step-by-step guidance would be appreciated.
Cannot find module 'griddb-node' after installing GridDB Node.js client
17 November 2025 @ 5:51 pm
I installed GridDB 5.7 and created a Node.js project:
mkdir griddb-node-test
cd griddb-node-test
npm init -y
npm install griddb-node
My code (test.js):
const griddb = require('griddb-node');
console.log(griddb);
Running node test.js produces:
Error: Cannot find module 'griddb-node'
Require stack:
- /var/lib/gridstore/griddb-node-test/test.js
I also tried npm install griddb-node but npm says:
npm ERR! code ENOVERSIONS
npm ERR! No versions available for griddb-node
What I want to know:
How can I properly install and import the GridDB Node.js client so that Node.js can require it without errors?
Environment:
WSL2 Ubuntu 22
How to deny access to website resources except via website files
17 November 2025 @ 5:46 pm
So we have a website, www.horsesandgoats.com and this website has a bunch of unique fonts, these are stored in /includes/fonts/ and need to be available for CSS and JS in other folders inside the /includes/ asset directory.
We have found a huge spike in external third parties seeming to want to collect and load www.horsesandgoats.com/includes/fonts/mad-font.ttf amongst others.
We have tried using
<Directory "/includes/fonts">
Order Deny,Allow
Deny from all
Allow from horsesandgoats.com
</Directory>
but this results in an htaccess website error and fails.
How can we use .htaccess to prevent access to these directories unless it's via assets loaded by one of the pages on the core website?
SSL request problem concerning deployment
17 November 2025 @ 5:45 pm
I've been having a hard time in trying to fix this problem. Currently since we've already deployed a website in Azure, I don't know if any local changes I've made concerns with the deployed website. With accessing the deployed website, what I've updated shows fine. With the local app I've made after doing php artisan serve, I've received this error. Anyone know how to fix it?
2025-11-18 01:38:57 / ............................................................................................................. ~ 0.70ms
127.0.0.1:60859 Invalid request (Unsupported SSL request)
WPF Flyout Positioning Issue with FlowDirection="RightToLeft"
17 November 2025 @ 5:43 pm
Problem Description
I'm developing a custom WPF Flyout component that uses Popup with CustomPopupPlacementCallback. The Flyout positions correctly when the Window has FlowDirection="LeftToRight", but when I set FlowDirection="RightToLeft" on the Window, the Flyout appears in the wrong position - often completely misaligned with its placement target.
Environment
Framework: .NET 9.0 / WPF
Issue: Custom Popup placement is incorrect in RTL layouts
Affected Components: CustomPopupPlacementCallback, PopupPositioner
Code Structure
My implementation consists of three main components:
CustomPopupPlacementHelper - Calculates popup positions using CustomPopupPlacementCallback
PopupPositioner - Uses WPF internal methods for adva
FlowSOM randomly stops because of missing consensus.pdf
17 November 2025 @ 5:43 pm
Recently I got into some trouble when using FlowSOM Clustering from the FlowSOM package in R. An Error shows up while a vectorized function is running, but it seems random, not constricted to certain files.
The Error message looks like that:
Error in `map2()`:ℹ In index: 8. ℹ With name: FileID8. Caused by error in `map()` at flowCompare/R/parameter_optimization_simple.R:3:3:ℹ In index: 11.Caused by error in `pdf()`:
! could not open file 'C:\***\***\AppData\Local\Temp\Rtmp6n5WXe/consensus.pdf' Run `rlang::last_trace()` to see where the error occurred.
(*** is just the personal file path on my laptop)
Input data are patient data, summarized in a list of dataframes. The idea is to cluster each patient/dataframe from a set range in FlowSOM to detect the optimal hyperparameter for that clustering tool.
However, m
Should HATEOAS links preferably be placed on objects or be separate?
17 November 2025 @ 5:42 pm
Should all HATEOAS links of the data-transfer object (DTO) be placed on the root level? Or should they be coupled with the individual keys as sub-objects? For example:
Option 1: separate links
{
"id": 1,
"userId": 5,
"carId": 2,
"locked": false,
"_links": {
"self": {
"href": "http://localhost:8080/api/v1/admin/insurances/3"
},
"user": {
"href": "http://localhost:8080/api/v1/users/5"
},
"car": {
"href": "http://localhost:8080/api/v1/cars/2"
}
}
}
vs.
Option 2: links included in DTO
{
"id": 1,
"user": {
"id": 5,
"_links": {
"self": {
"href": "http://localhost:8080/
What methods or APIs are available on iOS and Android to obtain device advertising IDs for users within a defined geographic radius and timestamp? Pls
17 November 2025 @ 5:42 pm
What methods or APIs are available on iOS and Android to obtain device advertising IDs for users within a defined geographic radius and timestamp?
npm install react-scripts --save results in empty react-scripts folder
17 November 2025 @ 5:41 pm
After cloning my react project from git, I ran npm install in my project directory, but react-scripts remains empty. I've deleted node_modules and package-lock.json and tried it again multiple times to no avail. Please help!
Stack overflow also says my post needs more words, so here is some text to help me post my question.


Dark gap above Android keyboard when using Keyboard.resize = "body" in Capacitor
17 November 2025 @ 5:41 pm
I’m building a React PWA packaged with Capacitor for Android.
I need the app to resize when the keyboard appears because a formatting toolbar must stay above the keyboard (similar to any notes apps).
Here is my capacitor.config.json
{
"appId": "com.app.myapp",
"appName": "myApp",
"webDir": "dist",
"plugins": {
"Keyboard": {
"resize": "body",
"resizeOnFullScreen": true
}
}
}
The body resizes correctly only when resizeOnFullScreen is set to true.
However, this causes a dark bar (or gap) to appear directly above the keyboard on Android. It stays there as long as the keyboard is open.
Here is an image
Here is what I’ve already tried:
Switching