#🪅-progaming

1 messages · Page 106 of 1

neon bear
#

a lot of not being able to read this is probably because of the custom framework that I'm rockin'

night glade
#

like i tried getting started with it and it just never clicked

neon bear
#

and the colours

#

if i was using Leaf you'd probably be able to read it easier tbh

night glade
#

is that like a code formatter

#

leaf

neon bear
#

no, php framework

night glade
#

ahhhh

#

okay

#

for me leaf means some minecraft stuff and i assumed thats not what you meant

neon bear
#

ah

#

nah, tbh
you should only be using php without a framework while you build up your understanding of the language

night glade
neon bear
#

once you understand the language, you're really just hurting yourself

night glade
#

reminds me of like ktor

neon bear
#

i don't use leaf, I use raw php or the custom framework i'm using now

#

(not mine)

night glade
#

okay thats cool

valid jetty
neon bear
#

Shrug
if i use the same framework we use at work, i'm pretty much just always going to write the same style

#

so

night glade
#

thats the first thing i heard

neon bear
#

ah okay

night glade
#

and client

neon bear
#

yeah i figured, this is why i recommended that framework, the syntax reminds me of other languages that PHP haters like

night glade
#

this actually kinda makes sense

#

but i'm wondering how it would be faster

#

because its really just putting the data down while json.parse has to actually parse a string

#

well maybe its faster because usually thats done using native code because its built into the framework

valid jetty
#

basically explained that json is context-free while js objects are not, and therefore due to context-free grammar being faster to parse, it is faster overall

night glade
#

oh okay

#

that makes sense

#

i really only scrubbed the video a bit so i didn't really see the explanation

royal nymph
#

but holy is that counter intuitive

#

json is slow asf in many scenarios

night glade
dense sand
#

Scroll up a bit its in my scaffold

#

btw i like how ur profile matches the aro flag :D

#
NavHost(
    navController = navController,
    startDestination = Screen.Home,
    modifier = Modifier.padding(innerPadding),
    enterTransition = { slideInHorizontally { it } + fadeIn() },
    exitTransition = { slideOutHorizontally { -it } + fadeOut() },
    popEnterTransition = { slideInHorizontally { -it } + fadeIn() },
    popExitTransition = { slideOutHorizontally { it } + fadeOut() },
) {
    composable<Screen.Home> { HomeScreen() }
    composable<Screen.Search> {
        SearchScreen(
            navController = navController,
            viewModel = hiltViewModel<SearchViewModel>().apply {
                from = it.savedStateHandle.getLiveData<String>("from").value ?: ""
                to = it.savedStateHandle.getLiveData<String>("to").value ?: ""
            }
        )
    }
    composable<Screen.PlaceSearch>(
        enterTransition = { slideInVertically { it } + fadeIn() },
        exitTransition = { slideOutVertically { -it } + fadeOut() },
        popEnterTransition = { slideInVertically { -it } + fadeIn() },
        popExitTransition = { slideOutVertically { it } + fadeOut() }
    ) {
        PlaceSearchScreen(navController = navController, source = it.toRoute<Screen.PlaceSearch>().source)
    }
    // composable(Screen.Settings.route) { SettingsScreen() }
}
frosty obsidian
#

green was my favorite color long before i knew i was aro

dense sand
#

ooo

#

nice

frosty obsidian
dense sand
#

lmao

#

ive been working with compose for like 3 days

#

people give me different views on what am i doing wrong, so im still pretty clueless

frosty obsidian
#

you are using what google recommends

#

i just prefer voyager because its a lot simpler

jade stone
#

FINALLY

hoary sluice
#

I personally prefer Rust

#

to cure depression

fleet cedar
solemn ravine
#

@woven mesa

solemn ravine
#

they don't make it super obvious what keys are what

spark tiger
#

ew tabs. does swift/xcode use tabs by default?

winged mantle
#

tabs are so good...

#

why do some people like an indentation which is easy to screw up

#

and also doesn't allow the viewer of the code to customise the width

#

and also takes more disk space

#

just use tabs for indentation and spaces for alignment if you want it...

solemn ravine
woven mesa
solemn ravine
#

not sure if they use it by default idk I immediately customize mine

spark tiger
#

oh i see

#

yeah i noticed ur xcode is hella customized

#

not my screenshot

woven mesa
#

what faint said

#

ur xcode theme so good

frail turtle
solemn ravine
#

I used to use maplemono for xcode but i cba to re-download the font

spark tiger
woven mesa
#

oomfs

winged mantle
winged mantle
#

highlighting when indentation is wrong is good but why do you need to see symbols for the correct indentation

spark tiger
#

i personally only have it enabled for github prs as it’s necessary to ensure nobody mixes tabs whitespaces

frail turtle
spark tiger
frail turtle
#

I want to enjoy looking at my code

woven mesa
#

i might make an xcode plugin to randomise the indentation in the current working file

solemn ravine
#

I started using it in Xcode because I realize it's easier for me to determine what level code is at a quick glance

winged mantle
#

make for vscode...

#

i want to screw with people

woven mesa
spark tiger
spark tiger
#

very useful

solemn ravine
#

If its like hella nested it would be so obvious

spark tiger
#

do you guys also use refined github or is it just me :c

#

i think it’s really useful

woven mesa
#

i used to

winged mantle
#

/run

/**
 * Count the number of substrs in str.
 * To use new improved api use the new keyword.
 */
function count(str, substr, until) {
    const v2 = this.constructor === count;

    if (until != null && !v2)
        throw new Error("The until parameter is only available with new.");

    if (substr.length > str.length || substr.length === 0)
        return 0;

    if (str === substr)
        return 1;

    let matchLength = 0;
    let matches = 0;
    let exactMatches = 0;
    let exact = true;

    for (let i = 0; i < str.length; ++i) {
        if (i >= until)
            break;

        if (str[i].toLowerCase() === substr[matchLength].toLowerCase()) {
            if (str[i] !== substr[matchLength])
                exact = false;

            ++matchLength;

            if (matchLength >= substr.length) {
                ++matches;

                if (exact)
                    ++exactMatches;

                matchLength = 0;
                exact = true;
            }
        } else
            matchLength = 0;
    }

    if (v2)
        Object.assign(this, { matches, exactMatches });
    else
        return matches;
}

const lorem = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.";

console.log(count(lorem, "DO"));
console.log(new count("HALLO welt", "l"))
console.log(new count("HALLO welt", "l", 5))

rugged berryBOT
#

Here is your js(18.15.0) output @winged mantle

6
count { matches: 3, exactMatches: 1 }
count { matches: 2, exactMatches: 0 }
solemn ravine
lucid trail
winged mantle
#

my idea works

#

use new keyword for api v2

solemn ravine
#

xcode listens to that but needs u to reopen the project if u make changes to it

spark tiger
frail turtle
#

refined github is very nice

solemn ravine
#

shake my head you said ew to whatever you thought was default

spark tiger
#

i’m not real that type of a person to like go thru all the settings and tweak everything to my need

frail turtle
#

I like it when extensions and mods blend so seamlessly you forget what the original was until it stops working

winged mantle
#

is there something that lets you write tabs in code suggestions

solemn ravine
#

whenever im using vscode I use spaces instead of tabs though

#

im evil rhat way

spark tiger
#

even tho i probably wouldn’t like it i would not dare to change it lol

spark tiger
#

so good

#

can even use it on my phone

winged mantle
#

i still really want an extension to send cuystom emoji on github

solemn ravine
woven mesa
#

@solemn ravine i rewrote someones webserver in swift from cpp

lucid trail
spark tiger
spark tiger
frail turtle
#

does ublock exist for safari

lucid trail
spark tiger
#

huh

frail turtle
#

hm

woven mesa
#

no iirc

lucid trail
solemn ravine
#

only thing I hate about safari extensions is their csp and signing requirements

woven mesa
solemn ravine
#

otherwise they work okay

frail turtle
#

someone was asking me about ad blockers for apple and I couldn't help much bc I know nothing about apple other than you cant do much without breaking stuff or smth

spark tiger
woven mesa
#

safari extensions arent special, they’re a .appex file in the main app

lucid trail
woven mesa
#

just like other extensions

solemn ravine
#

who need vencord safari

woven mesa
#

true

spark tiger
woven mesa
spark tiger
#

is it official though

#

or like a fork

solemn ravine
#

you know what if ublock lite is what safari gets then maybe the extensions aint too bad after all

lucid trail
#

its full

woven mesa
#

i cry

solemn ravine
#

worse than chrome so far though still

woven mesa
#

its ok ish

lucid trail
woven mesa
#

yeah but using a different app extension model would be wrong in this regard

#

apple wants to regulate extensions on the appstore too so it works out in their favour even more if web extensions are app extensions

spark tiger
#

i only have a few extensions, dont really feel the need to add something more blobcatcozy

solemn ravine
#

to the fruit company they do everything with apps and extensions

woven mesa
#

yea

#

theres an app for that

solemn ravine
#

all i need

spark tiger
#

i just remembered that since like ios15 or so you can now install custom fonts via app store. are the fonts also separate apps fr

woven mesa
#

i dont have any extensions

solemn ravine
#

I used to use refined github but their settings is a UX nightmare

woven mesa
#

safari is fine on its own

lucid trail
#

is mv2 really really dead yet

solemn ravine
#

good thing mac you dont need to

#

you can just install the font

spark tiger
#

yeah that makes sense since you can install fonts off internet

lucid trail
#

cant click install on a ttf file?

#

on ios

frail turtle
#

I have like 140 extensions firfox takes a long time to load sometimes haha

spark tiger
solemn ravine
#

WHY DO YOU HAVE SO MANY

frail turtle
#

because its fun

spark tiger
solemn ravine
#

but again needing another app lol

woven mesa
#

lets make a font book port to ios oomfies

frail turtle
#

they all do something for me shrug

woven mesa
#

by oomfies i mean sammie

spark tiger
#

oh neat i didn’t know you can view system fonts like that

frail turtle
#

its like my 214 mod pack for risk of rain 2 or my 190 minecraft mod pack

solemn ravine
#

no thank yoouuuu llsc

woven mesa
#

lol

frail turtle
#

I just like features

solemn ravine
#

I have a few ideas for other apps but like theyre not really important

spark tiger
#

i love how this button doesn’t even redirect you to a fonts-only app store page it just redirects you to the main page 😭

solemn ravine
#

i dont really wanna work on them either since
they require an absurd amount of work

woven mesa
#

today i learnt how people make webservers from only sockets n stuff

solemn ravine
spark tiger
#

true

#

i wanna make some pretty lastfm macos app but i’m afraid someone might have already done it

lucid trail
solemn ravine
#

why is everything I wanna make going to be open source 👻

woven mesa
#

why is everything i make never published open source or even monetised close source

solemn ravine
#

deltatube oss when

lucid trail
spark tiger
woven mesa
#

meow

lucid trail
solemn ravine
frail turtle
#

don't say them he'll steal them and do it first

spark tiger
lucid trail
dense sand
#

navigating in jetpakc compose is such a bs

frail turtle
#

oh yeah

solemn ravine
#

(this doesn't exist)

#

surprisingly

lucid trail
solemn ravine
#

by doesn't exist I mean something that doesn't have a requirement for itunes/icloud

spark tiger
solemn ravine
#

(all of them do)

woven mesa
#

that would be hard

solemn ravine
#

but you know that would be too much work

#

for such a simple thing

#

would make me go insane probably

woven mesa
#

@dense sand nintendo switch homebrew swift xcode

lucid trail
spark tiger
#

this is so over an ai is now #1 on h1 😭 https://x.com/xbow/status/1951040733936492915

XBOW is now the #1 hacker on HackerOne, globally.

For the first time, our autonomous AI pentester tops the worldwide leaderboard.

Next week at #BlackHat, we’re taking it live:
We’ll run real-time on HackerOne programs—come see XBOW find vulnerabilities.

📍 Booth 3257

solemn ravine
#

material 3?

dense sand
#

yes

spark tiger
woven mesa
dense sand
#
Material Design

Build beautiful, usable products faster. Material Design is an adaptable system—backed by open-source code—that helps teams build high quality digital experiences.

spark tiger
#

was trying to upload a 1gb file and it was taking forever

woven mesa
#

guh

solemn ravine
#

@woven mesa defaults write com.apple.dt.Xcode DVTTextShowInvisibleCharacters 1 && killall Xcode

dense sand
#

@frosty obsidian if i use voyage for navigating, can i pass arbitrary objects or do i have to shit with serialization

woven mesa
#

ty

lucid trail
dense sand
#

M3 is so pretty

solemn ravine
spark tiger
solemn ravine
#

I actually hope google does too

lucid trail
solemn ravine
spark tiger
dense sand
#

Aplp

solemn ravine
#

@woven mesa ive gotten into a flow of using appkit/uikit for ui and only swiftui for settings

#

this may be my peak era

spark tiger
#

sure

solemn ravine
spark tiger
#

😭

woven mesa
#

its not a firmware

#

its like ugh

#

uhhh

solemn ravine
#

uuuuuh

woven mesa
#

idk whats it based on?

#

tvOS maybe?

solemn ravine
#

based on deez nuts

woven mesa
#

oh

lucid trail
solemn ravine
#

monitor got some insane specs

#

but its only 60hz broken_love

spark tiger
#

so funny considering they already have 120hz in macbooks

solemn ravine
#

They care more about clarity and crispy displays more than refreshrates

lucid trail
#

i need more 218 ppi displays so bad

spark tiger
#

i care about both that’s why i’m choosing mbp over mba blobcatcozy

solemn ravine
#

understandable cos no one in the professional field really needs it

lucid trail
solemn ravine
#

though I game on my mac so i would prefer some higher refresh

#

@lucid trail

spark tiger
#

but when both your phone and pc monitor are 120+ hz, you really don’t want a $2000 laptop to be 60hz :D

lucid trail
solemn ravine
#

ive been spending too much time grinding coding

#

now to do more

#

the unfun part of any project is setting up the readme/workflow

spark tiger
#

what happened to ur other account btw

woven mesa
#

@solemn ravine @spark tiger im so happy my swifty wrappers are so good

#

imagine writing this in c

solemn ravine
#

still there

#

but i prefer using this one

spark tiger
#

ight

spark tiger
woven mesa
#

yea

lucid trail
woven mesa
#

guard is meant to enforce you to not allow your program to continue further by returning or throwing

#

its quite good

solemn ravine
#

guard is like an advanced if/if let but if anything goes into guard ... else { // you must return here }

woven mesa
#

you can accomplish thhe same thing with if statements but the compiler will know your intent and ensure you return

solemn ravine
#

you cannot fall through

woven mesa
#

so its nice

#

what sammir said

#

sammie

#

sorry sammie

solemn ravine
#

also it allows you to not nest stuff which is kinda sweet

woven mesa
#

sammie do u like the swifty apis i made to make networking and json parsing easier

solemn ravine
#

no

lucid trail
#

that makes sense, but say you place let jsonData = ….parse() outside a guard , does swift tell you to use a guard/know its fallible?

solemn ravine
#

idk what that is

woven mesa
#

aw

solemn ravine
#

whats a swifty

woven mesa
#

they wrap curl and libjson c apis

solemn ravine
woven mesa
#

im doing that because my parse method can return nil

#

and i cannot continue parsing the data if it doesnt exist

#

so i dont want my program to continue

#

so i guard against nil condition

spark tiger
#

a random question in my head - i wonder if the E symbol just a Unicode symbol put in the song name by the app or there is a way to display icons similar to this one

solemn ravine
#

I use a guard here and I think its easy to understand, it retrieves data from an item and determines if its a valid png/jpeg, if its not it just won't do anything (empty view)

#

guard is not required (a normal if can achieve the same thing, but it exists for convenience)

lucid trail
woven mesa
#

e

solemn ravine
elder yarrowBOT
spark tiger
#

oh so it’s just a unicode symbol ic ty

solemn ravine
#

gotta find the code

#

@modern jungle you're right

modern jungle
#

fr?

#

damn

valid jetty
#

vchars 絵希

elder yarrowBOT
valid jetty
#

?

solemn ravine
#

?

modern jungle
#

?

solemn ravine
#

beautiful

spark tiger
#

what’s cocoa i’ve been hearing this name so often

solemn ravine
#

ui framework for fruit company platforms

#

cocoa touch would be the one for mobile

#

(their names are just substituted with appkit/uikit though)

#

and they also serve as a backing for swiftui

spark tiger
#

i only know swiftui

solemn ravine
#

ignore the names for now but just imagine that framework being the original, and swiftui is the successor but uses the original under the hood for a more easy to read syntax

#

ofc it could have more features that the original could offer but thats the nature

#

also both are maintained and updated regularly

hoary sluice
#

@valid jetty do english 450k 100 words and correct every mistake

#

by looking at the gray graph you can tell where i was typing and where i was correcting

solemn ravine
woven mesa
#

@solemn ravine my code threw an error that server sent invalid response

#

i will have to diagnose after i eat

#

i cry

winged mantle
#

i think i will try zed now they have an ai toggle

#

i find a single toggle for ai very admirable

#

guh i became too reliant on vscode's typescript formatter... though isn't that part of typescript itself

#

ah you can just set formatter to language_server

#

why is no formatter as good as go fmt

#

I already got an error that nobody else has ever got according to google

supple whale
#

russian python

#

sir this is a typescript household

shrewd canopy
#

server is for rust

winged mantle
#

i kinda reinvented the wheel

#

well no... I opted for a self-produced mediocre wheel without knowing of far more advanced wheels which were already perfectly compatible with my vehicle

winged mantle
#

then again i don't want vulnerabilities

#

handlebars has had several

lavish frigate
#

If you really need templating in your bot messages

winged mantle
#

it's for user configuration

lavish frigate
#

Hm…?

winged mantle
#

so you can do

ban_message = "You have been banned from {{server}} for {{duration}} :hammer:"
#

to customise the bot's ban message

frosty obsidian
#

its just an android limitation

ornate quiver
#

[SECURITY] firefox-patch-bin, librewolf-fix-bin and zen-browser-patched-bin AUR packages contain malware

pseudo sierra
#

old news

winged mantle
#

[SECURITY] firefox contains malware

shrewd canopy
#

♻️

lavish frigate
winged mantle
#

it's pretty important

#

sometimes you want to add info on how to appeal

#

this is just for logs/dms which i think it's essential

lavish frigate
#

If you say so

austere idol
hoary sluice
#

[SECURITY] use nixos

ornate quiver
#

scary bootkit

#

embedded linux can run on a hdd controller

supple whale
#

electron 32 and 35? pfff same thing

#

3 major versions means nothing

hoary sluice
dense sand
#

@frosty obsidian when using voyager, what would be an optimal way of passing data back to the previous screeen(pop)

frosty obsidian
#

i actually don't know, its not something I've ever had to do

dense sand
#

okay cool, thanks

#

ive decided to migrate, as the passing data bs was getting real bad

ornate quiver
dense sand
#

i didnt get to the point in my rewrite when i have to actually try it yet though

ornate quiver
#

wait thats actually pretty nice

#

thanks

pearl stagBOT
ornate quiver
#

its so husk

dense sand
#

nice thanksies

#

i wonder if using reflection(for one side thing) will slow the whole thing down a lot

deep mulch
#

you should avoid reflection

dense sand
#

yea ik, but i want to provide some static data for each screen - such as if should display topbar, the topbar title, icon etc.

#

i could just make a shared companion interface but idk how good idea

deep mulch
#

use an enum

jade stone
#

@deep mulch what is the default access modifier in kotler

frosty obsidian
#

everything is public final by default

dense sand
#

For some reason

ornate quiver
#

@frosty obsidian @deep mulch I finally found a monitor to display logcat

deep mulch
#

insane

#

@ornate quiver @ornate quiver

#

rusher will make aliucord log token

jade stone
#

does kotlin have multiple inheritance?

ornate quiver
#

no

#

limitation of the jvm

jade stone
supple whale
#

smh imagine not being able to patch in your own multiple inheritance

winged mantle
#

why am i addicted to writing parsers

#

i'm already making a custom implementation of mustache

#

because i didn't like the existing ones

jade stone
#

insanity, i think

#

how is there no addAll with vararg T

#

guhhh kotlin so bad

#

where bitwise and

winged mantle
#

i think you just write and

jade stone
#

yeah

#

but it's dumb

#

also for the love of god numbers should cooerce to booleans in boolean contexts

#

i hate writing foo and bar != 0 instead of foo & bar

deep mulch
jade stone
deep mulch
#

you can implement multiple interfaces

jade stone
#

yeah

#

but that's not multiple inheritance

deep mulch
#

you can also delegate construction

#

which I don't fully understand

solemn ravine
#

@woven mesa HELPPPP

#

IDK SWIFT THINGS

#

SWIFT 6

jade stone
#
private fun ifNumpad(event: NativeKeyEvent, ifNumbadKey: Key, elseKey: Key) =
    if (event.keyLocation and NativeKeyEvent.KEY_LOCATION_NUMPAD != 0) ifNumbadKey else elseKey

least cursed kotlin function

solemn ravine
#

ive been cursed to deal with new language versions

woven mesa
#

or prepend nonisolated(unsafe) to it ig

jade stone
deep mulch
#

use an extension function

solemn ravine
woven mesa
#

yw

frosty obsidian
jade stone
frosty obsidian
#

kotlin is just too high level for that kinda stuff

jade stone
#

i'd consider javascript higher level than kotlin and it has it

#

and c/c++ are lower level and they have it

frosty obsidian
#

i mostly mean that its language features have to compile to several very different platforms

jade stone
#

wth is backquote

#

./run

console.log("\u0029")
rugged berryBOT
#

Here is your js(18.15.0) output @jade stone

)
frosty obsidian
#

vchars „“”

elder yarrowBOT
jade stone
#

all i can think of is ```

#

but that's a grave

#

vchars `

elder yarrowBOT
frosty obsidian
#

vchars ‚‘’

elder yarrowBOT
winged mantle
#

actually didn't take that long to implement most of mustache templating

solemn ravine
#

oh nah

winged mantle
#

my reason for reimplementing is existing implementations are quirky 😭

frosty obsidian
deep mulch
#

sadan wants js string concatenation

winged mantle
#

leaky abstraction

#

[object Object]

woven mesa
#

what happened

jade stone
#

thanks javafx

frosty obsidian
#

`

#

the tilde key

jade stone
#

guh

#

thats the grave

#

~

deep mulch
#

@jade stone

jade stone
#

is tilde

frosty obsidian
#

left of the number row

jade stone
#

but ` is probably what it is

frosty obsidian
#

` is called a backtick in common speak

#

most people don't call it a grave

jade stone
#

thanks wikipedia

#

The backtick ` is a typographical mark used mainly in computing. It is also known as backquote, grave, or grave accent.

deep mulch
#

I've never heard back tick mentioned in speech

#

or grave

jade stone
deep mulch
#

wingy

frosty obsidian
#

what do you hear people call it

deep mulch
#

I dont

frosty obsidian
#

:|

deep mulch
#

no one uses it@frosty obsidian @frosty obsidian

frosty obsidian
#

programmers do

#

its used for template strings in js

#

used in markdown for codeblocks

deep mulch
#

@frosty obsidian gloom

#

it's been 3 months

#

😭

frosty obsidian
#

kys

undone sonnetBOT
deep mulch
#

Wing taking 5 years

#

I'd finish the pr if I knew what what your remaining plans were

#

tbh I might just fork from the pr and finish it

jade stone
#

@deep mulch this library doesn't parse shift 😭

#

it just gives raw phisical key

deep mulch
#

it's a modifier

jade stone
#

yeah

#

but annoying to hand-code

deep mulch
#

it's not that bad

#

I did it in tau

jade stone
#

@deep mulch make keybind library for jvm

deep mulch
#

never

jade stone
#

the issue is keyboard layouts

#

fuck international keyboard layouts ig

deep mulch
#

yop

jade stone
#

also fuck wayland global hotkeys

#

i will just do some IPC + CLI

#

they can bind it themselves

#

less painful than dbus

#

maybe a websocket

deep mulch
#

you mean a unix socket right..

#

I hope

jade stone
#

There are no Unix sockets on windoes

royal nymph
#

so many saudis

#

but if I sort by total amount, KSA is only 7th

#

Saudis donate less on average

#

i should add sort by average donation

#

see which countries are the most generous

deep mulch
shrewd canopy
royal nymph
ornate quiver
#

INSANE

deep mulch
#

the pope

royal nymph
#

turkish rusher alt gave me 15 bucks

solemn ravine
frosty obsidian
deep mulch
royal nymph
royal nymph
frosty obsidian
#

ik

#

im not stupid

royal nymph
jade stone
#

@royal nymph can i give you -5$

frosty obsidian
#

vee thinks i can't make jokes

jade stone
#

is that someone you donated to?

royal nymph
#

nah

jade stone
#

insane

#

@deep mulch rate

frosty obsidian
#

vee made a bad commit so i forced him to refund my hard earned $5

ornate quiver
royal nymph
#

github is funny

jade stone
#

insane

royal nymph
#

if you change tier to a higher tier, it first creates a fake charge with the negative of your previous payment

royal nymph
#

github sponsors api was vibecoded

jade stone
#

@deep mulch it gets worse

ornate quiver
#

thats so funny

#

i recognized the miku tag

woven mesa
jade stone
solemn ravine
#

@woven mesa not sure what else I should add

jade stone
#

what is the clear key?

woven mesa
pseudo sierra
#

the only thing I can think it could be is like the equivalent of pressing down on a dpad but realistically you can probably ignore it

shrewd canopy
jade stone
#

@deep mulch does compose come with a logging lib?

deep mulch
deep mulch
deep mulch
#

thankfully not

#

you can use any logging lib

pseudo sierra
#

zoot logs everything to stdout

jade stone
#

evil

#

stderr + file

deep mulch
jade stone
deep mulch
#

good

jade stone
#

is it just me or should this be does not not do not

deep mulch
#

LOL

jade stone
deep mulch
#

I think doesn't

jade stone
#

@deep mulch send DTD for log4j2.xml

deep mulch
solemn ravine
#

why is readme dev so hard

jade stone
#

i think i found it

deep mulch
#

do you want my minkinator schema

jade stone
deep mulch
#

oh mine uses logback

#

idk if it's the same

#

tbh I hate that it's configured like this

#

I wonder if there's a library that doesn't depend on another library for logging

royal nymph
# jade stone

americans when a chinese guy doesnt speak flawless english

jade stone
#

@deep mulch full autocomplete

deep mulch
#

@jade stone is chinese

jade stone
#

nop

royal nymph
deep mulch
#

mantika makes funny English grammar errors @royal nymph

jade stone
#

@deep mulch so many

deep mulch
#

how

jade stone
#

@deep mulch how do i do linux vs. windows deps in gradle

deep mulch
#

no difference on jvm

#

unless they have native library

jade stone
#

i dont think journald exists on windows

deep mulch
#

horror

#

why log to journald

jade stone
#

i like using it to view my logs

deep mulch
#

what library

jade stone
#

all in one handy place

deep mulch
#

you can just see logs in the ide

jade stone
#

guhhhh

frosty obsidian
#

i don't really need fancy features like dumping to a file or anything

nimble bone
#

slimy sadan

deep mulch
#

slimy sadan

solemn ravine
#

@woven mesa I have to buy a dev acc

jade stone
#

is function parameter evaluation order defined behavior in java

solemn ravine
#

well I dont have to

#

but I want to

jade stone
#

@deep mulch is this how compose works

deep mulch
#

i dont know if vararg is stable

jade stone
deep mulch
#

yea thats not stable

#

compiler doesnt know if it should recompose

jade stone
#

it's unpacked

deep mulch
#

dont use Any

#

compiler basically has no idea if the data there is changing or not so it cant optimize

jade stone
#

why does DisposableEffect use it then

deep mulch
#

nonrestartable composable

#

your useKeybind function is gonna run every time anything changes

jade stone
#

then let's say i use some statful value in the handler

#

if the statful value changes, how will it know when to re-apply the keybind handler to update the statful value

deep mulch
#

idk, it just does

jade stone
deep mulch
#

primitives are stable

frosty obsidian
jade stone
#

i come from react

#

my feeble mind can't handle compose

deep mulch
#

@jade stone oyu will learn my child

jade stone
#

@deep mulch make a youtube video showing react basics mirrored in compose

#

best way to learn

deep mulch
#

nop

#

i hate react

#

@jade stone

jade stone
#

hai

deep mulch
#

hai

jade stone
jade stone
#

50000 line file incoming once my wifi loads

frosty obsidian
jade stone
#

useFoo it is

frosty obsidian
deep mulch
#

composable function should always be PascalCase

#

composable functions in a variable are camelCase

jade stone
#

PascalCase is for classes and types

deep mulch
#

yes

jade stone
#

camelCase is for functions and variables

frosty obsidian
#

its PascalCase is for composables that return unit

#

camelCase is for everything else

deep mulch
frosty obsidian
#

android studio will yell at him @deep mulch

deep mulch
#

yop

jade stone
frosty obsidian
#

idea does the same thing

frosty obsidian
jade stone
#

in a few years once my wifi loads

deep mulch
#

@jade stone@jade stone has dial up

jade stone
#

xfinity, same difference

#

the past few days it has taken like 1m to make a new connection

#

but streaming is fine

deep mulch
#

what if you go through a vpn

frosty obsidian
#

android docs will make gigabit internet look slow

jade stone
frosty obsidian
#

both statements are true

deep mulch
#

@jade stone wanna see deranged packaging

pseudo sierra
deep mulch
pseudo sierra
#

maple mono <3

#

and yes having 7 different packages is insane

deep mulch
#

i dont wanna add archlinuxcn just to get sane packaging

#

@pseudo sierra you will pr

jade stone
#

@deep mulch i might have found the issue

pseudo sierra
deep mulch
#

have to add ArchLinuxCN repo

pseudo sierra
#

and again nix fixes this it's also in nixpkgs trolley

pseudo sierra
frosty obsidian
deep mulch
#

thats the old package

#

i think

jade stone
#

i think the answer is to use comic-shanns-mono-nfm

deep mulch
#

wait

frosty obsidian
#

they list it in the readme still

#

under aur

deep mulch
#

no maplemono-ttf is just teh basic

#

the issue is they split every little feature up into 500 pacakges

#

instead of just providing multiple font

#

@frosty obsidian fix

frosty obsidian
#

nop

jade stone
#

@pseudo sierra WHO NAMED THIS SETTING

#

INSANE

#

tailscale optimized the dns to a local ip

#

in some update recently i think

#

and it no longer goes throught tailscale which bypasses firewall

#

but this option does not open the port for the dns

#

@nimble bone

austere idol
deep mulch
frosty obsidian
#

sadan science

austere idol
#

can i optimize same even more?

#

HOW TO MAKE <at> NORMAL IN NF VARIATION????

frosty obsidian
#

you can use the fonts website to toggle a bunch of stuff

austere idol
# austere idol [SECURITY] google-chrome contains malware

I WAS RIGHT

"... In addition to identified 2 weeks ago malware packages firefox-patch-bin, librewolf-fix-bin and zen-browser-patched-bin, the google-chrome-stable package has been added to AUR, also containing changes that install malicious component providing remote system access." (sorry for bad translation)

hoary sluice
#

i thought everyone knew there was also a google chrome package

#

that was malicious

jade stone
dense sand
deep mulch
#

??

austere idol
solemn ravine
#

You just told more

winged mantle
#

hm with a shape aware template compiler you could likely generate very nice code and avoid many pitfalls

hello {{#person}}{{name}}{{/person}}
function anonymous(view) {
    return "Hello " + view["person"]["name"];
}
hello:
{{#people}}- {{name}}
{{/people}}
function anonymous(view) {
    return "hello:\n" + view["people"].map(item => "- " + item + "\n").join("");
}
frosty obsidian
dense sand
#

I followed the guide and wrapped the screen content in slidetransition and cant go to different screens

frosty obsidian
nimble bone
#

wing uses bun

winged mantle
#

i guess i will make a more loose version of zod/valibot for this

const person = m.object({
    name: m.terminal,
});

const viewShape = m.object({
    person: person,
    people: m.array(person),
})
valid jetty
#

@hoary sluice

supple whale
#

wolves can be tamed

lavish frigate
frosty obsidian
#

i could probably convince the wolves to eat the linux guy

pseudo sierra
#

I'd out talk the linux guy

supple whale
#

shit i didnt realise thats an option

#

i can yap

stable escarp
#

hey how would it be possible to get like when all this button shows up? like on what message types, from client code

tired vigil
#

then find where it's being rendered, and if there are any conditions (here it's canPublish/b)

#

since canPublish is passed as a prop, you'll have to go search for the parent component that passes it down
and you'll end up finding
K = t.type === ea.d4z.GUILD_ANNOUNCEMENT && null != p && p.features.has(ea.oNc.NEWS) && (A || O) && (0, m.Z)(n)
then it's just a matter of finding what each part of this condition is

stable escarp
#

ah nice thanks

dense sand
#

After 3 days of learning jetpack joyride framework i finally have a prototype

#

Im so glad i rewrote my navigator to voyager

ornate quiver
#

nicee

dense sand
#

istg im jumping out of window if our mobile app teacher tells us that we're using xmls

#

this so much better

#

yea sorry we're not doing apples here

#

too bad

ornate quiver
#

i eat apples

dense sand
#

@jade stone do you use slf4j

jade stone
#

but that's not really relevant here tbh

supple whale
#

who wins, concatenating and slicing massive amts of binary data, or one loopy boi

dense sand
frail turtle
jade stone
jade stone
dense sand
#

what frameowrk

jade stone
#

compose

dense sand
#

idk then

jade stone
#

@dense sand found the issue

#

compose really doens't like you resizing transparent winows

jade stone
#

@deep mulch fix

deep mulch
#

make sure you're setting the underlying jframe window type

#

you just want something floating on top right

jade stone
#

i just set transparent=true in the construcotr

dense sand
tired vigil
#

Who

#

I need to know

supple whale
dense sand
#

cant remember mroe

tired vigil
#

Are other languages even allowed here or is that just a privilege for german speakers blobcatcozy

dense sand
#

but its long gone

#

german is allowed ig because vee is german idk

tired vigil
#

😭

#

Istg last time I've seen a czech channel being a thing on a public english server it got removed within 12h cuz people kept posting illegal shit

jade stone
#

how do i get these on the left and right

frosty obsidian
# jade stone

put a spacer in the middle with the weight modifier set to 1

jade stone
# frosty obsidian put a spacer in the middle with the weight modifier set to 1

i already got it by setting the horizontalAllignment on the row to spaceBewteen, but doing what you said gives a compiler error

e: file:///home/meyer/dev/kt/goodclipboardmanager/composeApp/src/main/kotlin/zip/sadan/gcm/ui/App.kt:44:29 None of the following candidates is applicable:
fun Modifier.width(intrinsicSize: IntrinsicSize): Modifier
fun Modifier.width(width: Dp): Modifier
frosty obsidian
#

where did you get width from

#

i said weight

jade stone
#

oh 😭

#

i can't read

#

i think i misread width given the context

frosty obsidian
#

both do work

jade stone
#

width just made sense in my head

frosty obsidian
#

your thing is actually better though i just forgot about it

jade stone
#

thumbsup tysm

dense sand
#

im actually very surprised how fun the android development is

spark tiger
dense sand
#

maybe with kmp

spark tiger
dense sand
#

liquid ass

spark tiger
#

it’s not even out smh

dense sand
#

on the serious note, im just not fan of apple or xcode lol

spark tiger
#

fair

spark tiger
#

a.argv_to_git_url()?; smh

ornate quiver
#

rob pike knew exactly what he was doing and did awful design decisions on purpose

spark tiger
#

why husk then 😭

ornate quiver
#

i was husking at the reply tweet

crude star
#

rob pike ? are pikes that expensive

spark tiger
solemn ravine
dense sand
#

what does this even mean sobvelasmutny

spark tiger
#

(you didn’t ping me 😔)

solemn ravine
#

didnt know u were interested..

spark tiger
#

well now u doblobcatcozy

jade stone
#

how do you load svgs in compose

#

i made a close icon but have no idea how to load it

#

i've tried vectorResource but it just loads an empty thing

frosty obsidian
#

you're supposed to use the vector drawable format

#

@jade stone

#

or create an ImageVector

dense sand
#

add here and then reference from R.drawable

frosty obsidian
#

idk if normal idea has that

dense sand
#

oh they arent using android studio

frosty obsidian
#

hes making a desktop app

dense sand
#

oh thats right

#

i forgor

frosty obsidian
#

idea does come with the android plugin so maybe its still there

dense sand
#

he doesnt have the R. crap

frosty obsidian
#

basically the exact same as android resources but multiplatform

dense sand
#

why is the naming so confusing sobvelasmutny
compose = jetpack compose
cmp = compose mp
kmp = kotlin mp

frosty obsidian
#

whar

#

that seems straightforward to me

#

mp is just short for multiplatform

dense sand
#

yea

#

but like is kmp just extension of cmp?

frosty obsidian
#

cmp uses kmp

frosty obsidian
#

vector drawables are very old

#

its just androids version of an svg

jade stone
#

Yeah but still annoying

#

Tbh I might just convert to a rasterized version

frosty obsidian
#

you can convert svgs to vector drawables

#

maybe even in the ide

jade stone
#

Oh

frosty obsidian
#

right click in the res folder and select create vector asset

jade stone
#

I will try tomorrow

#

I am in bed now

#

Tysm

frosty obsidian
#

im not entirely sure if idea actually has that

#

android studio definitely does

#

oh i found out they do have a way to load raw svgs but its kinda weird

dense sand
#

r u fucking kidding me, compose has all the m3 icons in itself and i downloaded them like an idiot from website SKULL_SKELETON

frosty obsidian
#

technically that library is deprecated

#

its still usable and will be forever but its not supported anymore

dense sand
#

i couldve just imported them from androidx.compose.material.icons.outlined. 😭

frosty obsidian
#

material-icons-extended my beloved

dense sand
#

i do have that library implementation(libs.androidx.material.icons.extended)

#

but like how did i not notice

ornate quiver
#

personally i really dislike icons defined in code

#

you cant preview them from the IDE, you cant modify them later, yadyada

#

i always get svgs and convert them into android vector drawables

winged mantle
#

just use png icons

dense sand
#

which matrix app should i use

dense sand
#

i clicked element

#

lol

#

idgaf

#

take my data

austere idol
#

some are just less bad

hoary sluice
#

@valid jetty we should put down eachother as references on job applications and say we worked at like enron or worldcom for 25 years

deep mulch
#

Husk

jade stone
#

what is a serialized java object

fleet cedar
#

Java serialization is cursed

austere idol
royal nymph
#

then later load it again from the file

deep mulch
#

deserialize my bytes

spark tiger
tired vigil
#

wait everything in java is object

royal nymph
#

but they need to be serialisable too

tired vigil
#

what about circular references blobcatcozy

valid jetty
#

your computer says “NO you can’t do that 3:< fuck you..”

#

in that phrasing

#

try it i was shocked the first time

crude star
valid jetty
#

i am a circular reference

frail turtle
#
t1 = datetime.strptime(created_at, "%Y-%m-%d %H:%M:%S.%f")
t2 = datetime.strptime(decision_at, "%Y-%m-%d %H:%M:%S.%f")
total_minutes += (t2 - t1).total_seconds() / 60

avg_minutes = round(total_minutes / len(times)) if times else 0
avg_hours = round(avg_minutes / 60) if times else 0

can someone please help me with this? I am so tired and cannot fathom how to get it to return as a properly formatted time (3h 48m) for example, pretty sure this would just return like (3h 228m) if I did

return f"{avg_hours}h {avg_minutes}m
lavish frigate
#
from datetime import datetime
import math

t1 = datetime.strptime("2025-08-03 14:12:00.000000", "%Y-%m-%d %H:%M:%S.%f")
t2 = datetime.strptime("2025-08-03 18:00:00.000000", "%Y-%m-%d %H:%M:%S.%f")
total_minutes = math.floor((t2 - t1).total_seconds() / 60)

hours = math.floor(total_minutes / 60)
minutes = total_minutes % 60

print(hours, minutes) # 3h 48m
frail turtle
lavish frigate
#

^^

delicate groveBOT
nimble bone
#

@jade stone saladd

delicate groveBOT
#

Alright @young flicker, in 10 hours: make penis daemon

dense sand
#

penis demon

runic sundial
#

?remindme 7w amogus

delicate groveBOT
#

Alright @runic sundial, in 1 month, 2 weeks and 4 days: amogus

runic sundial
lavish frigate
#

finally a good mrbeast video!

austere idol
lavish frigate
#

pray that you never find out

royal nymph
hexed surge
#

Is there any way to check the stream resolution?
I'm trying to increase it, but I don't have any tests to confirm it.

royal nymph
#

This thread is a perfect example of people throwing solutions without understanding the actual problem.
︀︀
︀︀I looked at the code. This is a static pattern showcase website, fully static with minimal client-side reactivity.
︀︀
︀︀This doesn't need Next.js, SSR, or ISR. It doesn't need a $50/month VPS. It could (and should) be plain HTML/CSS/JS hosted on a static hosting service, or something like an S3 bucket behind a CDN for pennies.
︀︀
︀︀There are a number of massive (8292x5923) PNGs (~5-10MB/ each) for SEO screenshots that users never see. That's over 110MB of data that search engines are repeatedly downloading and you're getting billed for. These should be 1920x1080 max, WebP format.
︀︀
︀︀I've converted them to WebP and the result is a 94.4% reduction in file size. That's 17x less data transfer for something that users never see.
︀︀
︀︀Fix the root cause, not the symptom.

Quoting Megh (@meghtrix)

Hey @vercel @rauch

lavish frigate
#

it is the solution cuz the guy successfully managed to scam vercel https://vxtwitter.com/meghtrix/status/1952107755587981488

↪️ Replying to @meghtrix

Update: We’re officially sponsored by @vercel now!

Huge thanks to the team for stepping in PatternCraft isn’t going anywhere 🚀

Appreciate all the love, support, and shares. You all made noise, and it worked.

Let’s keep building: http://patterncraft.fun

#

😭 😭 😭 😭

#

the web nowadays is such a big joke bro

royal nymph
#

it's not really scamming tbf lmao vercel itself is the scam

#

vercel's limits and pricing is a scam

royal nymph
#

idk why anyone would use vercel

lavish frigate
#

yeah

#

you can do this in plain html, js and css

#

oh wait

#

damn it is in plain html, js and css im so used to vercel apps automatically being made in react

#

wondering why they dont just use like github pages then...

austere idol
#

how to make lxc container connect to internet?

ivory heath
ivory heath
hoary sluice
hoary sluice
crude star
hoary sluice