Newest Questions
24,187,310 questions
0
votes
0
answers
3
views
Sun Country Flight Change Policy
On Sun Country Airlines, passengers get the best assistance to manage their travel plans in different circumstances. Under Sun Country Flight Change Policy, passengers can make effective changes. Well,...
0
votes
0
answers
5
views
Why is this instance overlapping/how to make interacting type classes work together?
I have the following sample code which shows the problem
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE FlexibleContexts #-}
{-# ...
-1
votes
0
answers
16
views
[: unexpected operator in shell script [closed]
I have a simple shell script running on Ubuntu doing:
if [ "$1" == "run" ]; then
# Do stuff
fi
When I run it I get this: 44: [: unexpected operator
This script was migrated from ...
0
votes
1
answer
22
views
What is the idiomatic way to map on a list that returns a tuple?
Function case (MRE):
MyType = MyDataCtor [MyType] | ... other cases (none of which require the map operation)
foo :: Type1 -> Type2 -> (Type1, Type2)
foo a (MyDataCtor (m:ms)) = <help me>
...
Advice
0
votes
5
replies
42
views
Finding the max values for list values for each key in a dictionary without using max()
Let's say I have a dictionary such as:
dict = { "Mars": [4, 3, 4, 7, 10], "Jupiter": [6, 6, 7, 9, 11], "Saturn": [4, 5, 12, 22, 1]}
I would like to iterate through each ...
Advice
0
votes
0
replies
30
views
A video showing the precision of math
Fifteen years ago I posted on my oldest website a video that showed the perfectness of math.
The numbers would drop down like 1 X 9 = 9 X 1 and 1 X 9 X 8 = 8 X 9 X 1 into a pyramid. The pyramid was ...
Best practices
0
votes
1
replies
13
views
Should I log errors from `tokio::task::JoinHandle::await` in a shutdown method?
I have a couple of shutdown methods looking like:
pub async fn shutdown(self) {
self.cancel.cancel();
let _ = self.join.await;
}
Should i ignore the value returned from join or ...
0
votes
0
answers
19
views
Next.js 14 ignoring my API route completely even though route.ts exists and is named correctly
I'm working on a Next.js (App Router) project and my API route is not being picked up at all. Every time I send a POST request from the client, I get a 404 Not Found.
The route I'm trying to hit is:
/...
0
votes
1
answer
17
views
In NextJS 16+, can "use cache" directive work on server actions?
I am trying to cache the response of a query inside a server action file:
export async function getCachedSession(userCacheToken: string, token: string) {
"use cache";
cacheTag(`user-session:...
0
votes
0
answers
14
views
Remove space at the edge of a text box when text wrap [duplicate]
I have a series of span in my code with some short or long centered text inside.
<span class="mark">CA Global</span>
<span class="mark">Nombre de logements ...
-1
votes
0
answers
18
views
How to Add Many iOS 26 Icon Themes with Icon Composer in SwiftUI? [closed]
I’ve been experimenting with iOS 26’s new icon customization features. I’ve noticed that many popular apps are already using multiple icons, and it seems iOS 26 allows custom icons through Apple’s ...
0
votes
0
answers
8
views
getD2DCapability error when simulating a 5g project
So I did download the VM appliance in the official simu5g webpage that contains simu5g and inet4.3 also with omnet6.0pre11, I did create a folder called smart_agri in simulations inside simu5g and I ...
0
votes
0
answers
29
views
Linker error with self compiled GCC 15.2.0 trying to use std::stacktrace
I am trying to build a version of GCC for linux and windows that I can use to compile C++ using the C++23 STL stacktrace, however when I try to use the version of g++ that I have compiled it it gives ...
Best practices
0
votes
0
replies
13
views
Seeking for the best practice to add 'eye' option to secureField text box in swift
I'd like to add to my an option to expose the password value in my secure field textbox. Currently I'm doing it by rendering TextField if showPassword is on, and SecureField if it's off. However, the ...
-4
votes
0
answers
29
views
How to make a fabric 1.21.4 minecraft rat that takes a session id and sends it to a discord webhook of my choice [closed]
How to make a fabric 1.21.4 minecraft rat that takes a session id and sends it to a discord webhook of my choice. i dont know how to code. the only thing i know is
Minecraft mc = Minecraft....