Random snippets of all sorts of code, mixed with a selection of help and advice.
How do transportation companies handle delayed airport pickups during Umrah season?
21 June 2026 @ 11:19 am
I am working on a transportation booking system for an Umrah taxi service in Saudi Arabia, and one common issue we face is delayed airport pickups during peak Umrah seasons.
Flights often arrive late, passengers change terminals, or there are communication issues between drivers and travelers. This creates delays for both customers and drivers, especially for routes like Jeddah Airport to Makkah or Madinah transfers.
I would like to know how other transportation companies or booking systems handle these situations efficiently.
Some areas I am trying to improve include:
Real-time driver tracking
Automated customer notifications
Flight status monitoring
Multi-language communication
Driver reassignment during delays
Queue management for airport pickups
What are the best prac
what is the equivalent of src external script in html but in a js file
21 June 2026 @ 11:15 am
I am building a chart and i would like to include all the code in one js file but for instant i have the external requests in my html file like that :
<!-- Chart.js + adapteur de dates -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.4.1/chart.umd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/chartjs-adapter-date-fns.bundle.min.js"></script>
<script src="ProjectsChart.js"></script>
How to retain a hyperlink after referencing to another cell
21 June 2026 @ 11:06 am
Part of the text in a Google Sheet cell (A1) is hyperlinked. For example, say A1 is:
This is a Google Sheet
Now say that A1 (in Sheet1) is referenced elsewhere. For example, say A1's value (in Sheet2) is ='Sheet1'!A1. The problem is that in Sheet2, A1 only displays the visible text of A1 of Sheet1. The hyperlinking in A1 of Sheet1 is not retained in Sheet2. In other words, A1 in Sheet2 displays as:
This is a Google Sheet
How can I ensure that the referenced cell shows the hyperlink as well?
The crucial point seems to be that not all of A1 in Sheet1 is a hyperlink; only some of the text is a hyperlink. If A1 of Sheet1 were hyperlinked in its entirety then A1 in Sheet2 is correctly hyperlinked as well.
This question was asked a few years ago by a user, but the only answer I saw was using apps script. Is there a solution using a formula, and not using apps scripts?
How to resolve Claude Cowork sandbox paths (/sessions/<id>/mnt/...) to real host paths in a PreToolUse hook?
21 June 2026 @ 11:00 am
I am stuck on a problem where cowork is sending response like this for deleted file
{
"hook_event_name": "PreToolUse",
"tool_name": "mcp__workspace__bash",
"tool_input": {
"command": "rm \"/sessions/busy-eloquent-goodall/mnt/opt/homebrew/demo.txt\" && echo deleted"
}
if we look at command it is rm \"/sessions/busy-eloquent-goodall/mnt/opt/homebrew/demo.txt\
this is a sandboxed path which deletes demo.txt from /opt/homebrew/demo.txt
and rm \"/sessions/epic-dazzling-allen/mnt/Documents/demo.txt\" && echo deleted"
which deletes file from /Users/user1/Documents/demo.txt
For claud code we receive absolute paths but for cowork specifically in case of bash(mcp__workspace__bash) we receive such abrupt
sandbox pa
Changing root domain after old domain expires causes persistent captain-nginx bootloop with missing SSL cert paths and 'no events section' errors [closed]
21 June 2026 @ 10:48 am
# BUG REPORT: Changing root domain after old domain expires causes persistent captain-nginx bootloop with missing SSL cert paths and 'no events section' errors
## Describe the Bug
My old CapRover root domain (`lotussoft.online`) expired. I purchased a new domain (`lotussoft-it.com`) and pointed the wildcard A-records to my public server IP. I manually edited `/captain/data/config-captain.json` to change the `customDomain` key to the new domain, and flipped `hasRootSsl` and `forceRootSsl` to `false`.
However, `captain-nginx` is caught in a permanent boot loop (`Detected task failure`) during the `starting` phase on Docker Swarm. It alternates between crashing over missing certificates for the new domain (which haven't been generated yet) and structural errors.
## Steps Taken to Resolve (All Failed)
1. Created `/captain/data/config-override.json` with `{"skipVerifyingDomains":"true"}`.
2. Verified `config-captain.json` has valid JSON syntax using Node.
Intermittent solid black click-through rectangles in Next.js dashboard on macOS with canvas widgets [closed]
21 June 2026 @ 10:21 am
I’m debugging an intermittent rendering issue in a Next.js/React dashboard on macOS.
Parts of the dashboard sometimes render as solid black rectangles. The rectangles appear visually on top of the dashboard, but they are click-through: clicking on the black area still triggers the underlying widget/button click handlers.
The issue is hard to reproduce:
- Only seen on some macOS machines
- The affected users are on Apple Silicon
- Same account may reproduce one day and not the next
- Same account on another Apple Silicon Mac may not reproduce
- Logout/login does not necessarily clear it
- Browser extensions have been ruled out
- The affected dashboard contains multiple chart/canvas-heavy widgets
- Opening DevTools clears the black rectangles
The dashboard uses several canvas/chart widgets, including TradingView/lightweight-charts/custom chart renderers. It also has tab/template switching where inactive views were
Does GridDB load the entire result set into memory when query.fetch() is called?
21 June 2026 @ 10:13 am
I'm working with GridDB Community Edition and Java 17. One of my containers contains approximately 200,000 rows.
Query<RowSet<Row>> query =
container.query("SELECT * FROM sensor_data");
RowSet<Row> rs = query.fetch();
The query completes successfully, but I notice significant increase in JVM memory usage immediately after calling fetch(), especially when processing larger result sets.
Does query.fetch() load all matching rows into memory at once, or are rows fetched lazily as I iterate through the RowSet?
Handling onUncaughtException in Reactive WebSocketHandler Spring Boot 3
21 June 2026 @ 10:05 am
Given the following snippet of code
@Component("myWebSocketHandler")
public class MyWebSocketHandler implements WebSocketHandler {
@Override
public Mono<Void> handle(WebSocketSession session) {
return session
.send(
myFluxSource
.doOnError(System.err::println)
.onErrorResume(e -> Mono.empty())
.map(p -> p.toString())
)
.doOnError(System.err::println)
.onErrorResume(e -> Mono.empty())
}
If I interrupt the TCP connection, in order to simulate a comms issue between the client (Javascript WebSocket) and the Spring Boot Reactive server, I get the following stack trace (I replaced IPs with xxx yyy)
2026-06-21T11:38:57.753+03:00 ERROR --- [APP] [ctor-http-nio-2] r.netty.transport.ServerTransport [91b99d69-1, L:/xxx.xxx.xxx.xxx:xxxx - R:/yyy.yyy.yyy.yyy:yyyy] onUncaughtException(ws{uri=/ws/myWebSocketHandler, con
Why not put a RAID 5 in a 2 dimensional array?
21 June 2026 @ 8:56 am
I have no background in computer science so forgive my ignorance with this question but I have recently learnt about RAID 5 and RAID 6 and I was curious as to why a RAID 5 is not put in a 2x2 array to massively reduce data loss.
Consider placing drives in a 2 dimensional array as shown below, with a dedicated parity disk for each row and each column.
An initial observation is that this system seems to be incredibly robust against failures. Consider the diagram below where the red disks indicate failure.
In this particular configuration, all the drives can be rebuilt by repeatedly rebuilding drives that lie in
An initial observation is that this system seems to be incredibly robust against failures. Consider the diagram below where the red disks indicate failure.
In this particular configuration, all the drives can be rebuilt by repeatedly rebuilding drives that lie in Why when I create object, the variable contains a reference to the object, not the object it self?
21 June 2026 @ 6:25 am
Suppose I have A obj = new A(), why the designers of the language designed the language so that obj is reference or a pointer to object ? why the language is not designed so that obj is the actual object in memory?
I'm asking about the design choice, I'm questioning the purpose, the 'WHY' , not the "WHAT".
I need to see the failure that would happen if we designed the language in other way, can someone give me example please?