Random snippets of all sorts of code, mixed with a selection of help and advice.
Azure AD B2C Session Management
10 January 2026 @ 2:21 pm
How do stop a user being created in Azure AD when a user closes a session abruptly after providing all the details during signup, or maybe the session gets closed post clicking submit/continue. We are using custom policies to add and user to the system currently.
using isinf() on IRIX-6.5
10 January 2026 @ 2:13 pm
I'm doing a bit of retro-computing and try to build one of my pet projects on an SGI Indy running IRIX-6.5.
most things appear to just worked, but now i've hit a wall: isinf().
apparently this is a macro (as expected), but it seems the macro cannot be properly resolved.
here's my test-program
#include <math.h>
int main() {
float f = 42.;
int x = isinf(f);
return x;
}
the compiler is rather old (GCC-3.3), but it should support C99 just fine, so I tried:
$ gcc -version
gcc (GCC) 3.3
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ gcc -std=gnu99 -o isinf isinf.c
isinf.c: In function `main':
isinf.c:5: warning: implicit declaration of function `__generic'
isinf.c:5: error: parse error before ',' token
Android 9 system update [closed]
10 January 2026 @ 2:10 pm
Do Can Android 9 be updates to 10، 11 version?
Security update Android 9 security update?
اين يمكنني ايجاد تحديث نظام اندرويد 9 ؟
تحديث امان اندرويد 9 ؟
Using setTimeout() instead of step.sleep() in a Cloudflare Workflow?
10 January 2026 @ 2:09 pm
Context : I'm using the Cloudflare Workflow platform to perform sequential calls to an external API. Each time a call is successful, the last successfull call ID is store in Cloudflare K/V, to prevent the system from performing the same call twice.
However, K/V has a write rate of 1 value per second for the same key, which currently forces me to call step.sleep() after each successful API call.
This bothers me for several reasons :
it doubles the number of steps in my workflow, which could later be used for something else
it pollutes the step output
Can I safely replace
await step.sleep("KV write rate mitigation", "1 second");
with:
Can I safely replace
await step.sleep("KV write rate mitigation", "1 second");
with:
Why I can't write in a google sheet cell with Apps script?
10 January 2026 @ 2:07 pm
I created a new spreadsheet, from the extensions tab I selected Apps script and I created a new function.
The spreadsheet looks like this:
A2 is a checkbox, D1 has a custom function:
function notWorkingFunction(e) {
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
var cell = sheet.getRange(1,1);
cell.setValue("123");
return 1;
}
I want to write to cell A1(or any cell) the text "123" every time I click the checkbox from A2.
the error log looks like this:
Error: Unexpected error while getting the method or property setValue on object Range.
at notWorkingFunction(Code:4:8)
Some people said that I need to give the script access to write, and I did. In my connections tab I have following permission for my app:
This app wants permission to:
See
A2 is a checkbox, D1 has a custom function:
function notWorkingFunction(e) {
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
var cell = sheet.getRange(1,1);
cell.setValue("123");
return 1;
}
I want to write to cell A1(or any cell) the text "123" every time I click the checkbox from A2.
the error log looks like this:
Error: Unexpected error while getting the method or property setValue on object Range.
at notWorkingFunction(Code:4:8)
Some people said that I need to give the script access to write, and I did. In my connections tab I have following permission for my app:
This app wants permission to:
See can't create username and password on Xbox remote access [closed]
10 January 2026 @ 2:03 pm
When I try to enter a username and password in Remote Access and click save, nothing happens and the information is not saved. Note that I have enabled authentication.
Accessing Sort Index for JTable
10 January 2026 @ 1:55 pm
In the Java file browser I’m working on, I’m running two components at the same time: a JTable and a JList. Both refer to the same file list, and I'd like both to be sorted the same way -- ideally by applying the JTable's sort (maintained by its TableRowSorter) to the JList.
Question: Is it possible to access/copy the internal index from the JTable? I’ve tried recreating it by iterating the JTable's list and using TableRowSorter.convertRowIndexToModel, but I keep getting array out of bounds exceptions.
sorter.addRowSorterListener(new RowSorterListener() {
@Override
public void sorterChanged(RowSorterEvent e) {
if (e.getType() == RowSorterEvent.Type.SORTED) {
System.out.println("Table has been sorted (view changed).");
int[] modelIndex = new int[sorter.getModelRowCount()];
for (int i = 0; i < modelIndex.length; i++) {
How create Remote Connection between Participant - Sequencer and Mediator on Canton Blockchain [closed]
10 January 2026 @ 1:50 pm
I have each conatiner for these three sequencer - participant and mediator on docker but when i am trying to create remote connection between them i failed to do that if someone face and fix that problem plase reach me so i can also fix it.
How test role specific tags within scenario in Ansible Molecule?
10 January 2026 @ 1:41 pm
I have a role which main.yaml tasks and config.yaml look like snippets below. I work within repository that have several roles with shared action playbooks and inventory.I am trying to create two scenarios:
Default run, when all tasks except 'remove' are played;
Delete run, when during 'prepare' 3 first tasks are played, and during converge - only task with 'remove' tag.
Default scenario works fine, but when I am trying to create scenario delete I fail to play role only by one tag.
I what those scenarios separate because with testing I want to ensure that usage of tags by user leads to expected task plays.
# --- project/config.yaml
ansible:
executor:
args:
ansible_playbook:
- --inventory=some-shared-static-inventory
playbooks:
# Relative to scenario directory
create: ../resources/pl
Unable to customize styles in borders, colors, selected date, other month days
10 January 2026 @ 1:35 pm
enter image description here
I’m trying to customize the Flowbite inline datepicker using Tailwind CSS in a pure HTML environment, but most of the styles I apply are not taking effect.
I’m unable to customize the following:
Default Flowbite styles do not fully load in pure HTML + Tailwind CDN
Cannot remove the default border of the datepicker
Selected date background color does not change
Date text color does not change
Previous / Next month dates colors cannot be customized
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Inline DatePicker</title>
<script src="https://cdn