FFilament
Created by o.m on 5/9/2025 in #❓┊help
Why is the form not showing?
No description
4 replies
DHDistant Horizons
Created by Altep on 5/9/2025 in #help-me
DH Mod Server-side commands with the mod not always avalaible
For some reason, the /dh does not always work i ran it once to pregen the world and change soome config but now that i want to pregen more, the /dh is completly gone, not in console, not for OP player
13 replies
FFilament
Created by Marek on 5/9/2025 in #❓┊help
Filling data in custom forms on a custom page does not work
I am trying to have two forms on a custom page for a resource. Neither of forms is attached to the model. I am unable to populate the form with data. It just doesn't do anything. Here's what I've done:
class TakePaymentPage extends Page
{
// ...

protected function getForms(): array
{
return [
'manualPaymentForm',
'stripePaymentForm',
];
}

public function manualPaymentForm(Form $form): Form
{
return $form
->schema([
Section::make('Manual Payment')
->columns(2)
->schema([
TextInput::make('customer_name')
->label('Customer'),
TextInput::make('customer_email')
->label('Email'),
TextInput::make('reference'),
]),
])
->fill([
'customer_name' => $this->record->customer->fullName(),
'customer_email' => $this->record->customer->email,
])
;
}
}
class TakePaymentPage extends Page
{
// ...

protected function getForms(): array
{
return [
'manualPaymentForm',
'stripePaymentForm',
];
}

public function manualPaymentForm(Form $form): Form
{
return $form
->schema([
Section::make('Manual Payment')
->columns(2)
->schema([
TextInput::make('customer_name')
->label('Customer'),
TextInput::make('customer_email')
->label('Email'),
TextInput::make('reference'),
]),
])
->fill([
'customer_name' => $this->record->customer->fullName(),
'customer_email' => $this->record->customer->email,
])
;
}
}
I've checked, when method is executed, $this->record is populated, if I do dd($form) in that method, it seems form has the details. But when page is rendered, the details are not populated. What am I doing wrong?
10 replies
SMSatisfactory Modding
Created by nickname.raw on 5/9/2025 in #help-using-mods
quick copy (perfect circles) keybind
No description
3 replies
DIAdiscord.js - Imagine an app
Created by BMmarci1234 on 5/9/2025 in #djs-questions
Question about a discord.js v14 bot
No description
4 replies
DHDistant Horizons
Created by Alice Everglade on 5/9/2025 in #help-me
overhang artifact or so, idk what is going on :I
No description
5 replies
AEAsh Elixir
Created by kira🌺 on 5/9/2025 in #support
open_api_spex spec declaration with ash_json_api
generated Open API spec has either some basic or nil descriptions, summaries, etc. open_api_spex documentation suggests using macros like operation/2 to describe my API. i've searched ash_json_api docs for some information but to no success. is there a way to do describe my domains' / resources' routes like so in ash_json_api?
4 replies
DHDistant Horizons
Created by Stephen5311 on 5/9/2025 in #help-me
Where DH File Go For Replay Mod?
I'm seeing like 3-4 different answers when searching around... is the folder I need for Replay mod suppose to be called "data" "replay" or "replay_data" for DH support? (then an overworld folder in that?) Also do these folders go in .minecraft or in replay_recordings?
15 replies
CC#
Created by AllMight on 5/9/2025 in #help
Channels usage for serial chunked async calls
I get a list of ids and I have one service I need to call in chunks in parallel and once a chunk is done start calling a second service with chunks in a different size also in parallel. I used channels but not sure if it is the correct approach or is there an easier way to do it (also not sure if write to channel needs to be async?)
4 replies
SSolidJS
Created by Bersaelor on 5/9/2025 in #support
Using `createScriptLoader` raises `computations created outside a `createRoot`` alert
When I use the createScriptLoader inside a component as described on https://www.npmjs.com/package/@solid-primitives/script-loader/v/1.0.0 I get the
computations created outside a `createRoot` or `render` will never be disposed
computations created outside a `createRoot` or `render` will never be disposed
warning. E.g.:
import { createScriptLoader } from "@solid-primitives/script-loader";

// import Termly and check when it initializes
export default function ExternalInterface() {

createScriptLoader({
src: "https://externalscript.io/js-script",
async onLoad() {

},
});

return <div></div>
}
import { createScriptLoader } from "@solid-primitives/script-loader";

// import Termly and check when it initializes
export default function ExternalInterface() {

createScriptLoader({
src: "https://externalscript.io/js-script",
async onLoad() {

},
});

return <div></div>
}
and then I just have that in my app.tsx close to the root so it always loads as part of my app. Whats the problem with createScriptLoader and what would be a safer way of using it?
2 replies
BABetter Auth
Created by ak11 on 5/9/2025 in #help
fs.existsSync is unavailable
i get this ero in my expo + API routes app when i deployed on eas Hosting (i'll still try to host on vercel to see if problem persists).
TypeError: EAS Hosting: fs.existsSync is unavailable (Workers have no filesystem)

at Object.fn [as existsSync] (__node_compat.js:904:11)
at _expo/functions/api/auth/[...auth]+api.js:298:17611
at g (_expo/functions/api/auth/[...auth]+api.js:2:1781)
at d (_expo/functions/api/auth/[...auth]+api.js:2:1277)
at i (_expo/functions/api/auth/[...auth]+api.js:2:502)
at _expo/functions/api/auth/[...auth]+api.js:295:1592
at g (_expo/functions/api/auth/[...auth]+api.js:2:1781)
at d (_expo/functions/api/auth/[...auth]+api.js:2:1277)
at i (_expo/functions/api/auth/[...auth]+api.js:2:502)
at _expo/functions/api/auth/[...auth]+api.js:294:115
at g (_expo/functions/api/auth/[...auth]+api.js:2:1781)
at d (_expo/functions/api/auth/[...auth]+api.js:2:1207)
at i (_expo/functions/api/auth/[...auth]+api.js:2:502)
at e.OPTIONS.e.POST.e.GET (_expo/functions/api/auth/[...auth]+api.js:465:498)
TypeError: EAS Hosting: fs.existsSync is unavailable (Workers have no filesystem)

at Object.fn [as existsSync] (__node_compat.js:904:11)
at _expo/functions/api/auth/[...auth]+api.js:298:17611
at g (_expo/functions/api/auth/[...auth]+api.js:2:1781)
at d (_expo/functions/api/auth/[...auth]+api.js:2:1277)
at i (_expo/functions/api/auth/[...auth]+api.js:2:502)
at _expo/functions/api/auth/[...auth]+api.js:295:1592
at g (_expo/functions/api/auth/[...auth]+api.js:2:1781)
at d (_expo/functions/api/auth/[...auth]+api.js:2:1277)
at i (_expo/functions/api/auth/[...auth]+api.js:2:502)
at _expo/functions/api/auth/[...auth]+api.js:294:115
at g (_expo/functions/api/auth/[...auth]+api.js:2:1781)
at d (_expo/functions/api/auth/[...auth]+api.js:2:1207)
at i (_expo/functions/api/auth/[...auth]+api.js:2:502)
at e.OPTIONS.e.POST.e.GET (_expo/functions/api/auth/[...auth]+api.js:465:498)
2 replies
BABetter Auth
Created by insightautomate on 5/9/2025 in #help
Hashing script to seed database
The palace project - the cases forI am trying to create a python script that lets me seed my database with dummy test data. I need to create some accounts but I want to be able to actually log into these accounts which means setting passwords. However, I'm struggling to work out how to set the password in the db. I have tried a few different python scripts (my seeding is produced with python) but not succeeding so far. I have tried to mimic the same method used by better-auth.
import os
import unicodedata
import hashlib
import hmac

# exactly the same params as better-auth
SCRYPT_PARAMS = dict(n=16384, r=16, p=1, dklen=64)

# mirror their maxmem: 128 * N * r * 2
MAXMEM = 128 * SCRYPT_PARAMS["n"] * SCRYPT_PARAMS["r"] * 2

def hash_password(password: str) -> str:
"""
→ salt:key just like better-auth (hex:salt, hex:key)
→ no BETTER_AUTH_SECRET is used here
"""
# 1) Unicode NFKC normalization
normalized = unicodedata.normalize("NFKC", password)
# 2) random 16-byte salt
salt = os.urandom(16)
# 3) scrypt with explicit maxmem
key = hashlib.scrypt(
normalized.encode("utf-8"),
salt=salt,
n=SCRYPT_PARAMS["n"],
r=SCRYPT_PARAMS["r"],
p=SCRYPT_PARAMS["p"],
dklen=SCRYPT_PARAMS["dklen"],
maxmem=MAXMEM,
)
# 4) return hex(salt):hex(key)
return f"{salt.hex()}:{key.hex()}"

pw = "12345678"
h = hash_password(pw)
print("Hash:", h)
import os
import unicodedata
import hashlib
import hmac

# exactly the same params as better-auth
SCRYPT_PARAMS = dict(n=16384, r=16, p=1, dklen=64)

# mirror their maxmem: 128 * N * r * 2
MAXMEM = 128 * SCRYPT_PARAMS["n"] * SCRYPT_PARAMS["r"] * 2

def hash_password(password: str) -> str:
"""
→ salt:key just like better-auth (hex:salt, hex:key)
→ no BETTER_AUTH_SECRET is used here
"""
# 1) Unicode NFKC normalization
normalized = unicodedata.normalize("NFKC", password)
# 2) random 16-byte salt
salt = os.urandom(16)
# 3) scrypt with explicit maxmem
key = hashlib.scrypt(
normalized.encode("utf-8"),
salt=salt,
n=SCRYPT_PARAMS["n"],
r=SCRYPT_PARAMS["r"],
p=SCRYPT_PARAMS["p"],
dklen=SCRYPT_PARAMS["dklen"],
maxmem=MAXMEM,
)
# 4) return hex(salt):hex(key)
return f"{salt.hex()}:{key.hex()}"

pw = "12345678"
h = hash_password(pw)
print("Hash:", h)
The hashing works fine but if I put that in my db I can't log in using 12345678. Don't worry this is all local! Should I be using the BETTER_AUTH_SECRET somewhere? I couldn't see its use in the js library.
4 replies
TTypebot
Created by JohnWazi on 5/9/2025 in #help-and-questions
How to clear table answerV2?
No description
1 replies
FFilament
Created by Malbo on 5/9/2025 in #❓┊help
->recordUrl(null) with ->expandableLimitedList()
Hey, Quick question, is it normal that I have to use ->recordUrl(null) in order to be able to click on ->expandableLimitedList() when also using ->spa()? I like to directly click on rows to access to the edit page and it's kinda annoying if I have to disable recordUrl. Thanks.
2 replies
BABetter Auth
Created by ooi cat on 5/9/2025 in #help
Using better-auth without a database
Hey, just a quick question, Can I use better-auth to do this: - oauth providers - auth with jwt sessions - refresh token rotation - no database
12 replies