#πŸͺ…-progaming

1 messages Β· Page 21 of 1

royal nymph
#

bad..

thorny prism
#

do u like type with 10 fingers?

valid jetty
#

yeah i love my macbook keyboard

#

@royal nymph i type 140wpm is that good

thorny prism
#

butterfly keyboard is good to type

dawn ledge
thorny prism
#

until somethings gets stuck into it

dawn ledge
#

sob

thorny prism
thorny prism
#

just type ig?

royal nymph
thorny prism
#

then u will be better automatically

royal nymph
#

could be better

thorny prism
#

whats ur wpm @royal nymph

valid jetty
#

with time 30 it goes down to around 128

thorny prism
#

man i really like the rose pine theme on monkeytype but on vscode it doesnt look the same 😭

#

but im going to make it for spicetify first

valid jetty
#

i think i use catpuccin mocha in monkeytype

thorny prism
#

powertoys is really just macos tools in windows lmao

valid jetty
#

i love get info and sneak peek

#

oh its called quick look

#

close enough

thorny prism
#

yeah but it creates a black window first so thats kind of annoying

#

conclusion: linux is better

valid jetty
#

anyway uh

#

mac keyboards give me a hugeeeeee advantage

#

like

#

extreme

thorny prism
#

what mac do u have?

valid jetty
#

i can only do like 100-110 without the mac keyboard

thorny prism
#

butterfly or the ohter one

valid jetty
thorny prism
#

thats the normal keyboard

valid jetty
#

short key travel time >>>>>>>>>>>>>>

thorny prism
#

i have a butterfly keyboard 😭

thorny prism
valid jetty
#

idk my macbook is great i love everything about it

#

except maybe the low storage but thats my fault

thorny prism
#

i have 128 gb :)

valid jetty
#

the constant suffering of picking 256gb

valid jetty
thorny prism
#

its mostly for school tho but when i get money im going to get a lot

valid jetty
#

ah ok

#

i use mine for basically everything

thorny prism
#

yeah then 128 would be suicide

#

i use a pc with in total 3128 gb

valid jetty
#

i have a 1tb external ssd but its annoying because it doesnt have a rootfs so most apps dont work because they reference things that dont exist and/or store things in ~/Library on the main ssd anyway so it doesnt even help

thorny prism
#

yeah thats true

valid jetty
#

like for example xcode, if installed on an external ssd, will open once and then never again

thorny prism
#

i wanted to do app dev on my macbook but then i had 10gb left :(

valid jetty
#

and if i install any steam games on that external ssd if i unplug it and plug it back in, it causes my whole mac to stop responding

#

like finder literally explodes

thorny prism
#

lmao

#

why would u game on ur macbook tho 😭

valid jetty
#

its useful for storing backups of like, aeps and stuff

valid jetty
#

people shit on macbooks but any M series macbook is on or above par compared to the average windows laptop in terms of performance

#

i can run genshin at max graphics with 60fps for at least 30 mins before the macbook overheats

thorny prism
#

i mean thats impressive for a macbook

#

kinda funny it overheats tho

#

good or bad?

valid jetty
#

swap out the pastel green

valid jetty
#

any newer ones do but mine doesnt lol

thorny prism
#

okay i give up now spotify just doest render lmao

valid jetty
#

this is my spotify lmao

#

same color scheme as discord ofc

thorny prism
#

thats pretty cool

#

i like it but i wont use it cuz im more of a minimalist

valid jetty
#

to me terminals are as minimalistic as it gets

#

i love terminals theyre so much faster than guis usually

#

and simpler

thorny prism
#

true

#

unless u use powershell

#

powershell is so slow its unbearble

#

life if windows was unix based and you could install zsh

#

life if linux was the dominant os

frosty obsidian
#

you can

#

git bash

thorny prism
#

yeah ig

dawn ledge
#

git bash your head on the desk and switch to linux

thorny prism
thorny prism
#

please dont kill me

#

yay bash on windows :)

#

now its also in vscode

autumn sigil
#

i am in pain
building my native node module works fine, except on windows.
windows needs you to link to a dll, i can generate the dll for node, thats fine and it works.
but electrons dll doesnt export the same symbols, for example napi_typeof is exported as _napi_typeof so my linker cant find or link to it and it crashes when i link against node and run it under electron

now what do i do? i dont really understand how windows linkers work.. and i want to be able to build for both electron and node, i cant really find electron node headers anyway because their artifacts thing doesnt index bleh
do i have to make some sort of header shim that maps to the correct function?

thorny prism
#

yeah but then its kinda annoying if u wanna play games it hurts performance

valid jetty
#

windows is already far less optimized than macos lol

#

most companies are moving towards arm-based chips now but macs will continue to dominate because macos is far more optimized than windows

restive sorrel
thorny prism
#

windows has absolutly no change of winning arm in the coming years

#

anyway how does one fix this

thorny prism
restive sorrel
thorny prism
#

uhh

#

uhhhhhh

valid jetty
thorny prism
#

good point

thorny prism
#

w8 ill give u the code

#

discord text limit :(

valid jetty
#

just send like the surrounding 40 lines or so lol

thorny prism
#

also i tried without and with the self., same result

valid jetty
#

maybe (self.image_index || 0 + 1)?

thorny prism
#

uhh the pipe isnt valid in python

valid jetty
#

oh right

autumn sigil
#

python bad language

valid jetty
#

self.image_index or 0

thorny prism
# autumn sigil python bad language

ik but the thing is this is basically part of some group and they were like "yeah make it python cuz we use python for the other project" and then i had to

#

also he made like a whole scratchpad (notepad) in python in 1 file

#

i asked him to split it so its a bit more organized, he told me "the way i do it is better" and i cannot convince him otherwise (he has barely any programming expiernce)

valid jetty
visual shellBOT
# valid jetty lc.ocr
image_index = (image_index + 1)
ΑΛΛΛΛΛΛΛΛΛΛ
UnboundLocalError: cannot access local variable 'image_index' where it is not associated with a value
thorny prism
#

i mean im not saying im the best progammer or even a good one but pls make it organized

#

enought rant for now lmao

#

its the same :(

valid jetty
thorny prism
#

yeah

#

but also some other guy in the group who is apperently a god in programming in his opinion, says he has to split it in multiple files and then he says its a good idea

#

??

valid jetty
#

god those kind of people really infuriate me lmao

thorny prism
#

yeah hes mostly a pretty okay guy but sometimes he thinks his opinion is the best lmao

#

even if someone with more experience gives hime some advice

#

oh i understand the problem so basically it defines a new variable lmao

#

this is why i dont like python if you make an error it just does something completely stupid

#

instead of just using let or smth like that

valid jetty
#

"yeah my friend, hes a god at programming hes so good" then you look at his code

inconsistent whitespace, casing, and naming conventions
single letter variable names
no comments even though code on its own is not self documenting
copy pastes code without understanding how it works and/or referencing the source
only knows python (or a single high level language like javascript or lua)
has followed 3 tutorials on youtube on making games in some bloated library
is currently following a programming in python course online for Β£20 a month

dusty moth
#

WrappedCommandNodeCommandBuilderWrapper<T extends CommandNode<S>, S extends CommandSource>
i fucking love java

dusty moth
valid jetty
#

for all the exception stacks

dusty moth
#

square

valid jetty
#

oh

#

horror

manic hawk
dusty moth
#

so both vertical and horizontal

manic hawk
#

replace new roles with personal

dusty moth
thorny prism
#

i reallly really really want to switch this program to c# or some better language

valid jetty
#

c# is nice for like

#

quick prototyping

dusty moth
#

or the language I'm writing that supports spaces in variable names

thorny prism
valid jetty
#

but its garbage collected and i also hate pascal case

thorny prism
#

cuz im kinda over c# but idk what now

dusty moth
#

haskell

valid jetty
dusty moth
#

rust

valid jetty
#

ive written around 15,000 lines of rust code in the past few months and i can say it is so nice to not shoot yourself in the foot as often

thorny prism
#

how i feel after asking in what to rewrite and then the person says "rust"

valid jetty
#

however

#

no look

#

yeah i get its stereotypical

thorny prism
#

yeah ik rust isnt bad but yeah

thorny prism
dusty moth
valid jetty
#

my other option would be to write it in c# yeah

dusty moth
#

we disallow using variable names with more than one letter

valid jetty
#

but if you can, and know how, use rust

thorny prism
#

whats a good ui lib for rust then

dusty moth
#

heard of it but haven't sued it yet

valid jetty
#

and tauri exists too

#

if you know what nwjs or neutralino or electron for js is

dusty moth
#

i usually shell out to go for bubbletea

valid jetty
#

then tauri is that but the window is rendered in rust

dusty moth
#

how can I make my java classnames longer

thorny prism
#

im not writing anything that has to do with js

dusty moth
#

i need to get them to at least two screen widths by monday

dusty moth
valid jetty
#

basically you can render the window via rust and then actually display things on it via html/css/js

thorny prism
#

w8 i thought tauri was basically electron but efficient

valid jetty
#

or react or whatever

thorny prism
#

yeah but doesnt that mean u have to write js?

valid jetty
thorny prism
#

im not writing js

valid jetty
#

fair enough

#

if you want native apps you can use iced

thorny prism
#

alr

#

im totally new to rust tho but itll be easy

valid jetty
#

uhhh maybe not but its fun to learn

#

if you have a deadline i would not recommend learning it

thorny prism
#

no

valid jetty
#

i would recommend sticking with what you already know

thorny prism
#

nah im open to learn new stuff

valid jetty
#

sure

thorny prism
#

its just a hobby project for a privacy-focused group im apperently part of but im not even in contact with any member except 1

#

and im not in the github org

#

also i had to explain git to like the guy i talk to and then he explained it to everyone else so they used no source control whatsoever in their group before i told them abt it

#

only reason he wanted to use it at all was because git is made by the same guy who made linux lmao

#

anyway should i use vscode or rustrover

valid jetty
#

i use zed but probably use vscode

valid jetty
thorny prism
#

yeah lmao

thorny prism
valid jetty
#

zed is literally vscode but written in rust

#

like thats its whole thing

#

its very fast and i love it

thorny prism
#

how do you install extensions

#

is it supposed to look like this?

valid jetty
#

cmd+shift+p, extensions, click install on the ines i want

#

yeah

thorny prism
#

oh okay its basically vscode but no sidebar

valid jetty
#

you can click here to see ur sidebar

thorny prism
#

so its all command palette type of thing

valid jetty
#

no theres a sidebar

thorny prism
#

😭

#

okay it starts to make sense now

#

now i feel stupid for not knowing how to use a program

valid jetty
#

u can also ctrl + ` to open a terminal and then cd to the dir u want and run zed . there to open a new window there

dusty moth
thorny prism
#

w8 this hase a proper rose pine theme built in?

#

amazing

#

also vim emulation wtf

valid jetty
#

i sort of made my own theme for it based on catpuccin mocha lol

#

it just has cleaner colors

ornate quiver
valid jetty
#

oh and a glass background

ornate quiver
#

last time I tried the rust vsc plugin it was really buggy
although that was 2 years ago

thorny prism
#

im kinda using zed rn lmao

valid jetty
#

vsc also eats all my ram so i dont bother with it

thorny prism
#

lmao

#

u have 8gb?

valid jetty
#

no, 16gb

#

i had to clarify because that statement could be blown out of proportion as me stating i was under the age to be on discord lol (im not)

#

you can never be too safe

#

my one nitpick for zed is that it doesnt have a lot of customization for linters

#

but thats fine because rust has a set out code structure and formatting anyway so there really isnt anything to configure

dawn ledge
#

shitbrains is lagware

#

i tried 4 shitbrains prdoucts

#

all refused to work

#

vsc is well vsc

#

i just decided to go with nvim

valid jetty
#

nvim is nice

#

i have a minimal setup for it

thorny prism
valid jetty
#

it is 13

thorny prism
#

yeah

#

okay so i had to disable vim emulation cuz idk how it works lmao

#

like ik the basics but there it ends

valid jetty
#

you use vim commands?

#

lmao fair enough

thorny prism
#

but randomly its in view mode and yeah

valid jetty
#

my vim setup

thorny prism
#

okay funny moment zed just dont wanna anymore

thorny prism
thorny prism
valid jetty
#

god ok better that was driving me insane

valid jetty
#

idk i use it because it looks nice

thorny prism
#

not open source :(

#

idk i just dont really trust it

valid jetty
#

fairsies

dawn ledge
thorny prism
#

also an account for a terminal app is criminal thats mostly why i dont trust it

dawn ledge
#

i tried warp on linux once, it looked ass

valid jetty
thorny prism
#

but i mean if u wanna use it idc lmao

dawn ledge
#

lmao

thorny prism
dawn ledge
#

do you really gotta sign up

#

do they force you

thorny prism
#

yeah

dawn ledge
#

skull

thorny prism
#

fr

dawn ledge
#

also isnt their login screen a webview

#

i remember seeing that

thorny prism
#

idk i only used it once on linux

dawn ledge
#

some part of the app was/is a webview

thorny prism
#

how do i fix zed tho

dawn ledge
#

and the rest is native gui

thorny prism
#

it just opens a terminal for a split second and then it just crashes

dawn ledge
#

average zed experience

valid jetty
#

i do also have iterm2

thorny prism
#

uhhh

dawn ledge
#

zed could have been better, but like the gui frameworks in rust arent there yet, neither is gpui, you dont get the feel of an actually native app or even an electron app

#

its unergonomic in many cases

thorny prism
#

idk i barely used it

valid jetty
#

zed runs a lot better on mac than vscode ever did lol

thorny prism
#

it crashes on windows cuz it isnt even officialy supported ig

valid jetty
#

on large codebases like this it would take me several seconds sometimes to edit a single character in vscode

#

like i have an m1 mac with 16gb of ram if that isnt enough to run a fucking code editor then ??????????????????????????

dawn ledge
# dawn ledge zed could have been better, but like the gui frameworks in rust arent there yet,...

also like saying "native" gui is bad, raph has a good take on it https://raphlinus.github.io/rust/gui/2022/07/15/next-dozen-guis.html

#

vscode is jsut crap in general

valid jetty
#

there arent many alternatives tbh

thorny prism
#

no i don't want "weather" to use 500 mb of ram

dawn ledge
#

start using ed πŸ™

valid jetty
#

nvim is nice but when i need to write code fast i would rather not learn a new code editor with different keybinds while also learning new things when writing the code

thorny prism
#

i NEED an invite to big nutty's server 😭

dawn ledge
#

needing 500mb of ram to just display some text is wild

valid jetty
thorny prism
#

jk

valid jetty
#

usually it used several gbs too

thorny prism
#

yeah

#

what browser do yall use

valid jetty
#

because its not running a small calculator program anymore

valid jetty
thorny prism
#

its a firefox fork

valid jetty
#

arc is so bad in terms of battery drain and ram usage i dont wanna use it anymore lol

thorny prism
#

i use it rn

#

@valid jetty how do you run the code

#

do u have to type the command?

valid jetty
#

yes

thorny prism
#

oh

#

can u add a run button?

valid jetty
#

i would assume its possible lol

#

usually people just run the command because once you get used to it, its nicer than a run button because you can control exactly what youre compiling

thorny prism
#

yeah ig

#

i should do that prob

valid jetty
#

if you have a super long command or multiple steps you can put it into a makefile or .sh file

#

you may also not have rust installed lol

#

im not sure if macos comes with it preinstalled

thorny prism
#

but i have it

#

okay so basically im making a software installer (cli, for now) so that aint hard

valid jetty
#

nope that shouldnt be too bad

#

if you just look up some simple examples, high level stuff like parsing command line arguments is almost the same as something like c# or python

thorny prism
#

uhh

#

yeah

#

what is &str and String

#

what is the difference

#

@valid jetty

valid jetty
#

String is a string you can pass around and keep in structs as a copy, a &str is a reference to a string slice

you can think of a &str as a string view into a String (if you know that from C) or you can think of it as part of the memory from a String

#

an &str cant be passed around through structs very easily because it has a lifetime which is a fancy rust thing that makes it "memory safe"

#

essentially you will be using String a lot more often than &str

thorny prism
#

okay

#

so i have 2 Strings, how can you like combine them?

#

i saw push_str but thats only with &str

#

w8 nvm

#

push_str is for Strings

#

yeah

#

okay but how do you like add an python f string thingy

#

example: "/apps/{software_name}"

valid jetty
#
let software_name = "foo";
let formatted = format!("/apps/{}", software_name);
#

format!() returns a String

thorny prism
#

oh okay thx

#

and now how do you print a string

valid jetty
#

println!("{}", formatted)

thorny prism
#

cuz it erros and my question is way to basic to find answers lmao 😭

#

oh okay thx

valid jetty
#

wait

#

that

thorny prism
#

oh okay

valid jetty
#

basically rust has these things like println and dbg and format which are macros that take in a format string

#

this format string has to be a string literal

#

im assuming you were just println!(formatted) before

thorny prism
#

yeah

#

but it errors but give me a sec i might be able to fix it

valid jetty
#

lol sure

thorny prism
fleet cedar
#

fs::metadata(&path)

#

But you'll want to use PathBuf, not String, for paths

thorny prism
#

oh thanks

#

idk most of this is just chatgpt

#

i either follow a tut or use chatgpt and try to understand what it does

#

if i wanna learn a language

fleet cedar
#

Protip: you can tell chatgpt to speak like a catgirl

valid jetty
# thorny prism

if you really dont care about performance you can use path.clone() in fs::metadata and you get 2 copies of the same string

#

which means you dont need to care about immutable and mutable references

thorny prism
#

its fixed now but i gotta use the pathbuf thingy kyucachy told me

valid jetty
#

i mean you dont need to

thorny prism
valid jetty
thorny prism
valid jetty
#

u can have as many immutable references but only 1 mutable

valid jetty
thorny prism
#

what is a reference

valid jetty
#

iirc fs::metadata takes impl Into<PathBuf> which string implements

fleet cedar
#

It takes AsRef<Path>

thorny prism
#

😭

#

what am i reading lmao rust is so complicated

valid jetty
#

well, that memory is stored at some address in ram

#

usually you pass just the value to another function

#

but by "reference" is passing that address instead of the value itself

thorny prism
#

oh i see

#

makes sense

valid jetty
#

you can think of it as instead of passing a cake to the function you pass directions to find the cake

thorny prism
#

why does vivaldi go kind of hard

thorny prism
valid jetty
#

lol fair enough

thorny prism
#

i randomly watched a video about pointers once

valid jetty
valid jetty
thorny prism
#

oh okay

valid jetty
#

its just a fancy pointer with extra restrictions

thorny prism
#

ic

fleet cedar
#

Domesticated pointer

valid jetty
#

yeah

thorny prism
#

w8 is rust high-level?

#

yeah right?

#

then what is c#

valid jetty
#

rust is like all of everything all at once

#

usually its considered low level tho

valid jetty
#

usually rust can be high level tho

#

ive written plenty of high level rust code

thorny prism
valid jetty
thorny prism
#

oh okay i see

#

i dont get why they call c# c# if it is a totally different language than c

fleet cedar
#

Same reason why javascript

#

Piggybacking on something popular

thorny prism
#

javascript is just bad in general

#

javascript is the downfall of programming

valid jetty
#

part of the linux kernel is written in rust

thorny prism
#

yeah i read abt rewriting the linux kernel in rust

valid jetty
thorny prism
#

someone should just make a whole os in rust

#

and then its fast

#

how do you even compile an os

valid jetty
#

languages try to implement something popular at the time into their language so that it becomes popular too

valid jetty
thorny prism
#

does rust use classes

#

like c#

valid jetty
#

no but it does have the notion of classes

thorny prism
#

or is that a c# and java thing

#

oh i see

valid jetty
#

instead of making interfaces like in c# or java you make "traits"

fleet cedar
#

It does not have inheritance, though

#

Which is what most people mean when they say "objects"

valid jetty
#

a class in rust looks something like

struct Foo {
    a: i32
}

impl Foo {
    pub fn new(a: i32) -> Self {
        Foo { a }
    }

    fn print_a(&self) {
        println!("{}", self.a)
    }
}

fn main() {
    let foo = Foo::new(5);
    foo.print_a();
}
thorny prism
#

uhh slight problem

#

it seems that "path" is emty in the checker thingy

#

if i print it before it, it prints it, but in the checker, it just prints nothing

#

:(

valid jetty
#

hm

fleet cedar
#

Hard to say without seeing more of the code

thorny prism
#
use dirs_next::config_dir;
use std::fs;

fn main() {
    println!("Hello, world!");
    installer("scratchpad".to_string());
}

fn installer(software: String) {
    let mut path: String;
    if let Some(appdata_path) = config_dir() {
        path = appdata_path.to_str().unwrap().to_string();
    } else {
        println!("Could not retrieve the config directory.");
        return;
    }

    path.push_str("\\ravensoftware\\software\\");
    path.push_str(&software);
    println!("Path: {}", path);

    if let Ok(metadata) = fs::metadata(&path) {
        if metadata.is_dir() {
            println!("The path exists and is a directory.");
            println!("Path: {}", path);
        } else {
            println!("The path exists but is not a directory.");
            println!("Path: {}", path);
            fs::create_dir_all(&path).unwrap();
        }
    } else {
        println!("Directory does not exist.");
    }
}
valid jetty
fleet cedar
#

Yep

#

I miss traits very much when I'm doing c++ at work

valid jetty
fleet cedar
#

So they just print Path: {blank}?

#

That doesn't make sense

valid jetty
#

i would try to clone path lmao

#

instead of &path

#

but that doesnt make sense yeah

valid jetty
thorny prism
#

w8 i gotta go for a few secsx

#

secs

valid jetty
#
use dirs_next::config_dir;
use std::fs;

fn main() {
    println!("Hello, world!");
    installer("scratchpad");
}

fn installer(software: &str) {
    let mut path = if let Some(appdata_path) = config_dir() {
        path = appdata_path.to_str().unwrap().to_string()
    } else {
        panic!("Could not retrieve the config directory.");
    }
    
    path.push_str("\\ravensoftware\\software\\");
    path.push_str(software);
    println!("Path: {}", path);

    if let Ok(metadata) = fs::metadata(path.clone()) {
        if metadata.is_dir() {
            println!("The path exists and is a directory.");
            println!("Path: {}", path);
        } else {
            println!("The path exists but is not a directory.");
            println!("Path: {}", path);
            fs::create_dir_all(&path).unwrap();
        }
    } else {
        println!("Directory does not exist.");
    }
}
#

maybe

dusty moth
#

rate this single line kt class WrappedCommandNodeCommandBuilderWrapperWithRegistry<T: CommandNode<S>, S: CommandSource>(inner: T, override val registryAccess: CommandRegistryAccess): WrappedCommandNodeCommandBuilderWrapper<T, S>(inner), CommandBuilderWrapperWithRegistry<T, S>

fleet cedar
#

Oh, doing kotlin, are we?

dusty moth
#

just a little

fleet cedar
#

Looks better split over multiple lines imo ```kt
class WrappedCommandNodeCommandBuilderWrapperWithRegistry<T: CommandNode<S>, S: CommandSource>(
inner: T,
override val registryAccess: CommandRegistryAccess
):
WrappedCommandNodeCommandBuilderWrapper<T, S>(inner),
CommandBuilderWrapperWithRegistry<S>

dusty moth
#

thought : lists needed to be on the same line

fleet cedar
#

I don't know whether the superclass list allows newlines tbh

#

But the arguments does

thorny prism
#

i kinda feel like making the app in kotlin now

#

i always wanted to learn kotlin

#

anyway it says i have to add a semicolon here?

dusty moth
#

edited because I fucked up superclass structure

dusty moth
thorny prism
#

what

#

why

fleet cedar
#

Yes, let blah = guh; must end with a semicolon

dusty moth
#

that's an if expression; you need the ; to end the let statement

thorny prism
#

oh

fleet cedar
#

Even if the expression ends with a }

thorny prism
#

i see its let

#

okay that makes kinda sense

valid jetty
# thorny prism

in rust, if statements are not statements theyre expressions

#

which means you can assign them to variables

dusty moth
#

also why not expect or let else if you're going to panic

valid jetty
#
let a = if true { 1 } else { 0 }
dusty moth
thorny prism
#

how do u fix this lmao

valid jetty
#

uh

dusty moth
fleet cedar
#

Just remove the inner path =

dusty moth
#

oh true

fleet cedar
#

Return the value from the if expression

thorny prism
#

oh okay i see thanks

valid jetty
#

yeah lmao

dusty moth
thorny prism
#

okay it compiles but a slight problem:

#

it still doesnt print

valid jetty
#

wait @fleet cedar do you know if println consumes the value

#

i know dbg does

fleet cedar
#

It doesn't

valid jetty
#

hm ok

fleet cedar
#

And if it did, you'd get a moved error at compie time

dusty moth
#

Display::fmt takes &self iirc

fleet cedar
#

Not just it being blanked

valid jetty
#

yep

#

very weird

thorny prism
#

yeah

dusty moth
#

show code that prints it

thorny prism
#
use dirs_next::config_dir;
use std::fs;

fn main() {
    println!("Hello, world!");
    installer("scratchpad");
}

fn installer(software: &str) {
    let mut path = if let Some(appdata_path) = config_dir() {
        appdata_path.to_str().unwrap().to_string()
    } else {
        panic!("Could not retrieve the config directory.");
    };

    path.push_str("\\ravensoftware\\software\\");
    path.push_str(software);
    println!("Path: {}", path);

    if let Ok(metadata) = fs::metadata(path.clone()) {
        if metadata.is_dir() {
            println!("The path exists and is a directory.");
            println!("Path: {}", path);
        } else {
            println!("The path exists but is not a directory.");
            println!("Path: {}", path);
            fs::create_dir_all(&path).unwrap();
        }
    } else {
        println!("Directory does not exist.");
    }
}
fleet cedar
#

You're not like, running on an evil fuse filesystem that kills any process that tries to read it?

thorny prism
#

idk

fleet cedar
#

I think you'd know if you were

dusty moth
#

nothing's printing?

thorny prism
thorny prism
#

it should print the path 2 times

dusty moth
thorny prism
#

i meant from that one line

dusty moth
#

and you've made sure that it does in fact exist

fleet cedar
valid jetty
#

try to dbg!() instead

thorny prism
#

w8 replace println with dbg?

valid jetty
#

kind of

#

dbg!(&path)

dusty moth
#

oh

fleet cedar
#
    } else {
        println!("Directory does not exist.");
    }
``` there is no second print here
valid jetty
#

if the string really is empty itll show [file:line:col] &path = ""

#

oh lol

valid jetty
#

theres no print of the path tho

thorny prism
#

nvm im about to kms

valid jetty
#

😭

dusty moth
thorny prism
#

okay it works now :D

#

sorry for wasting yalls time fr

dusty moth
dawn ledge
#

you can just println!("Path: {path}")

#

because yes

valid jetty
#

yes u can but i didnt mention that because those format strings are very limited

#

like they can only take variables

#

theyre not like string interpolation where you can put whole expressions like 1+1

dawn ledge
#

atleast you can specify style

#

{path:#?} {path:?} {path:x}

#

actually is it 0x or just x for printing numbers in hex

valid jetty
#

i will say its pretty useful when the format string is super complicated

fleet cedar
dawn ledge
#

oh right

thorny prism
#

peak windows customization

valid jetty
#

lmao

thorny prism
#

(i think i like rose pine)

valid jetty
#

me too

thorny prism
#

also all code blocks in discord are rose pine

dawn ledge
#

rosie pine

valid jetty
#

rosie pine is dark green

thorny prism
#
test```
#

it dont even have a border anymore

dawn ledge
#

one day i will make a cool ass tui based rice

valid jetty
thorny prism
#

spicetify is actually goated for making themes 2 seperate things (layouts and colors)

#

wish vencord would do smth like that too

valid jetty
#

me when i forget to save my colors.ini and need to redo it every time

dawn ledge
#

make a tool

dawn ledge
#

to autosync colors with wallpaper

#

pywal moment

thorny prism
#

peak

dawn ledge
#

peak

#

people need to make better light themes

thorny prism
#

that might be the worst opinion of the day

#

jk

valid jetty
#

rose pine for imhex

thorny prism
#

rose pine for qt

#

w8 no

#

:(

dawn ledge
#

i unironically daily drive light theme on everything i use

#

shrimply have your damn room lights on man

#

πŸ™

thorny prism
#

how do i spiler black the spoiler

#

no way we have rose pine for tmux

dawn ledge
#

i asked nicely

dawn ledge
#

you aint batman, light your room

thorny prism
#

my ambient light is my gaming pc

#

rose pine for grub?

#

i might have to switch to linux

dawn ledge
#

you can use grub with windows tho

#

can you not

thorny prism
#

whats the point

dawn ledge
#

true

thorny prism
#

they dropped the rose pine duckduckgo theme what

dawn ledge
#

whenever i see duckduckgo being mentioned

#

my brain just naturally

#

imagines 3 ducks quacking

thorny prism
#

why 3

dawn ledge
#

oddly specific ikr

#

even idk why

thorny prism
#

😭

valid jetty
#

i love !w !g !gi

thorny prism
#

i might have to switch to linux to continout the customization

#

which distro tho

autumn sigil
thorny prism
#

i think endeavour os cuz yeah

thorny prism
autumn sigil
#

i managed to make it link against electrons dll but it still doesnt work

autumn sigil
dawn ledge
#

just like me fr fr

thorny prism
#

endeavour os

dawn ledge
#

i was gonna do nix but i got stuck on formatting disks with disko

dawn ledge
autumn sigil
thorny prism
#

i dont want to spend more time installing the os than using the os sorry

thorny prism
dawn ledge
autumn sigil
dawn ledge
autumn sigil
#

why is it just windows 😭

#

fuck dlls

dawn ledge
#

coprosoft dev experience

autumn sigil
#

all of visual studio is just a horrendous mess

#

they fucked up cpp ecosystem so bad

thorny prism
#

fr

#

life if you could install c/cpp windows compilers without msvs installer

autumn sigil
autumn sigil
thorny prism
#

uhh

#

idk that

#

i installed firefox instead of zen so now its all the same color

dawn ledge
#

people be switching browsers faster than js devs changing their frontend tech stack

#

i dont get the appeal of zen tbh

nimble bone
#

my frontend stack is html, css and js

#

and some ui lib

#

or just tailwind

dawn ledge
#

it feels like dotfiles but pre applied

dawn ledge
#

sometimes wasm too

nimble bone
#

the average frontend uses react, nextjs, shadcn, bun, prisma and whatever the new thing is

#

sad

thorny prism
#

Now I need to root my phone for custom material you colors

autumn sigil
dawn ledge
#

not a fan of arc either

#

reskinned chromium

#

i dont see any appeal in browser forks

#

you either make a new engine or you dont superyes

#

because like

#

in the end

#

the content youre viewing is gonna be rendered by the same ass engine

#

its gonna be the same in chrome or arc

#

because its blink

#

im not getting any perf gains

#

same with ff and zen

#

its just gecko

#

no perf gains

thorny prism
#

Ig

#

I mean zen looks different

#

And its kind of optimised tho but not alot

#

It's just Firefox user js I think

viscid grove
thorny prism
#

He's a rust user he only cares abt performance

#

Obviously

deep mulch
#

@valid jetty Elle or death

#

choose

valid jetty
#

editing a field in a struct pointer breaks the information stored in the whole struct

#

for some reason

#

and you cant pass structs by value into arrays because they break too so, fun

thorny prism
#

now i gotta use vscode instead of zed cuz of arduino :(

dawn ledge
#

vencord isnt forking any browser or software

#

its patching shit

viscid grove
#

other browsers are a modded fork of chromium/whatever firefox's backend is called

#

they're just packaged with the open source backend

#

vencord is a modded version of discord
but it patches discord since discord isn't open source

fallen nebula
deep mulch
valid jetty
nimble bone
#

@valid jetty rewrite Elle in Java

valid jetty
#

done

nimble bone
#

show

valid jetty
# nimble bone show
transient classification ElleCompiler {
    extemporize(source : Ligature) {
      aforementioned.source = source;
    }

    -> Integer dependent invariable void async subroutine compile ? (){
        C:\Standard\System\io\format\print\ln("meow")
    }
}
deep mulch
#

Rosie using every possible word

#

what does extemporize even mean

mild yoke
#

Ideally I have firefox but it's chromium because chromium is very good.

#

There's quite a lot more to browsers than the engine. I can see the appeal in having some advanced workflow but still using chromium.

mild yoke
#

It's so far behind

thorny prism
#

i cannot believe my eyes just read these words

mild yoke
#

eh?

#

gecko engine is so bad

thorny prism
#

no

#

give 1 reason

mild yoke
#

Performance is shit

thorny prism
#

no

#

i dont feel a difference

#

i would even say chrome uses more ram

mild yoke
#

Doesn't support some WASM canvas renderers due to an open issue

#

chrome sandboxes more

thorny prism
#

so you are for google supremacy?

#

do you really thing such a niche feature is making gecko "an incredably bad engine"

mild yoke
# thorny prism give 1 reason

also gesture detection varies so I have to rewrite a lot of code that works fine on webkit / chromium does not work on firefox

mild yoke
lucid trail
mild yoke
#

first they broke wasmgc, fixed it, then broke part of their canvas library so you still can't use skwasm

lucid trail
mild yoke
#

It's not niche, it literally breaks an entire class of web renderers, thus breaking an entire class of SPAs

thorny prism
mild yoke
#

I never said I liked chrome

#

I like chromium

thorny prism
#

chromium is owned by google

mild yoke
#

I'm aware

thorny prism
#

yeah

#

that isnt like concerning that a data-stealing company owns the world most popular engine?

#

i mean yeah its open source

#

but they still have alot of power with owning that

#

heck even their competitors use it

mild yoke
#

I don't see the issue in using it

#

The source is available, the license is permissive, you can just fork if there are things you really don't like.

thorny prism
#

if everyone would use chromium, and no alternatives would exist, then they could just make it closed source

#

i mean yeah not everyone uses chromium

mild yoke
#

However google would be very stupid to close source chromium, so I don't see that happening

thorny prism
#

okay fair but still you gotta understand that a profit-first company having a monopoly on a browser engine is just not good

mild yoke
#

there's still firefox and webkit

#

I don't see a problem

thorny prism
#

yeah but you told me to quit using firefox

mild yoke
#

I never told you to quit using firefox.

thorny prism
mild yoke
thorny prism
#

manifest v3 then

mild yoke
#

Fork and remove the requirement

#

carry on

thorny prism
#

i mean yeah sure they can edit it out but 80% of ppl using internet are using chrome

#

so they have manifest v3

mild yoke
#

I'm not talking about chrome

#

I'm talking about chromium

#

very different

thorny prism
#

yeah but still

mild yoke
#

No, not still. You can fork and remove the requirement. It's different.

#

I don't like chrome. I don't use chrome. Chromium is a fine browser engine.

frosty obsidian
#

i use ungoogled chromium

thorny prism
#

give me 5 minutes im making sure this video is good

mild yoke
#

Can't watch it right now. To be extra clear, I literally use firefox. I'm just saying that firefox's engine is much worse than chromium.

balmy lintel
dawn ledge
mild yoke
#

same as mine

#

It's all opinion-rooted, I'm just claiming that them all being a small subset of browser engines isn't inherently a bad thing, particularly when the browser engines are well-built, and maintained under a permissive license.

ornate quiver
dawn ledge
#

i use like 5 fingers

#

3 on my left 2 on my right

storm talon
#

I use 4 on my left and 3 on my right

storm talon
umbral mirage
#

i use microsoft edge

fleet cedar
#

That's just chrome in a paint coat

umbral mirage
#

it has a nice pdf viewer which i really like

#

u can install any website as a pwa

#

even websites that haven't configured it

#

it literally comes preinstalled with windows and fits windows 11's fluent design

viscid grove
viscid grove
umbral mirage
#

maybe that's not true anymore, that's possible

viscid grove
#

I can't find how to install any page with google chrome

#

wait nvm fouind it

umbral mirage
viscid grove
#

yes

lavish frigate
#

also more shit on your screen

viscid grove
#

vencord is more than a coat of paint for discord

lavish frigate
umbral mirage
viscid grove
#

it's just more than just a paint of coat

umbral mirage
#

i just disabled everything and it's normal

viscid grove
#

and yeah, i'm sure you can disable it quite easily

lavish frigate
fleet cedar
#

I was about to suggest using a browser where you don't need to disable all kinds of shit... but then I remembered firefox also has a lotta shit to disable

umbral mirage
#

i also disabled the copilot stuff

#

because im not interested in that

lavish frigate
#

atp why not just use a different browser if you have to go out of your way to do all that

lavish frigate
umbral mirage
#

because edge is preinstalled + i like configuring things + it's already saved to my settings and will be synced on other devices

lavish frigate
#

every other major browser offers more customisation + they ALL have settings sync

fleet cedar
lavish frigate
#

okay i guess

viscid grove
#

Most browsers' customization sucks

#

only browser with good customization i've found is vivaldi

#

but it suffers in other areas

fleet cedar
#

Firefox has great customization if you're willing to dig a bit

lavish frigate
#

i dont know enough about chrome but on firefox you can use the userchrome.css to turn your browser into anything, i mean people have already turned their firefox into operagx lol

umbral mirage
#

are you talking about changing the way it looks or in terms of features

viscid grove
fleet cedar
#

Autoconfig allows you to run arbitrary js in the browser window context

lavish frigate
#

i dont know of any other large firefox mods because i mostly dont care about that

umbral mirage
#

i don't think i've ever seen anyone who actually changed the css of their browser

viscid grove
#

Can you have custom keybinds for firefox?

fleet cedar
viscid grove
#

also how do i stop firefox's auto updater from popping up with an administrator confirm thing every time i open it :(

fleet cedar
#

And another autoconfig module that adds basic vim-like keybindings

lavish frigate
fleet cedar
fallen nebula
viscid grove
#

does firefox not have tab grouping :(

#

that's one of my favorite features in google chrome

fleet cedar
#

What exactly does tab grouping entail?

#

There are extensions for tab trees, but I don't know if that's what you mean

fallen nebula
viscid grove
fallen nebula
dusty moth
autumn sigil
#

programming infested with browser war brainrot

nimble bone
#

@autumn sigil uses Internet Explorer 9

umbral mirage
# viscid grove

the only times i use tab grouping is when i click it by accident 😭

cursive obsidian
#

before i switched to ff i used tab groups on chrome

#

i installed tree tabs in ff but its basically left to rot. havne't bothered to check out tab groups

fleet cedar
ornate quiver
fallen nebula
#

Mmmmmhh

#

Look like smth that could be useful

#

Tho i like my 700tabs stack

dawn ledge
#

arc vibes

lime sorrel
#

arc has no auto groups

valid jetty
#

hey guys how are the ergonomics of this

frosty obsidian
#

looks neat

thorny prism
#

looks epic ngl

fleet cedar
#

Not a fan of that Tuple { first = ..., second = ... } syntax. I'm more of a (..., ...) kind of person

valid jetty
#

that's because tuples aren't a primary language construct they're just a normal struct lol

frosty obsidian
#

i assume you're probably gonna have shorthands at some point

cedar thicket
#

so I can't code and would like a vencord plugin made, does anyone here take commissions? Hope i'm not in the wrong place and that this isn't against the rules kanna_shock kanna_shock kanna_shock

dusty moth
#

and change your banner if you wish to remain here

royal nymph
#

their banner is fine

cedar thicket
#

dude what the heck theres nothhing blatnatly nsfw about my banner

royal nymph
#

don't look at it if you don't like it

cedar thicket
#

ill just look elsewhere sorry for posting here bowing

nimble bone
nimble bone
viscid grove
#

why does discord's dev tools keep turning white?

#

(spoilered bc bright)

viscid grove
#

ah

thorny prism
#

why is making a shortcut in c# so compicated

#

i have like 50 lines of import things (idk) instead of just making a nuget package lmao

fleet cedar
#

/run ```py
print("just checking which bot does this")

rugged berryBOT
#

Here is your py(3.10.0) output @fleet cedar

just checking which bot does this
whole cove
#

a

dusty moth
#

do I push

autumn sigil
dusty moth
autumn sigil
#

via twitter

dusty moth
#

yes

#

it sends a tweet with the command then a bot replies with the command's output (and next prompt)

#

only 6 testcases are failing tho

#

need to get that number higher

valid jetty
dusty moth
#

only let statements are implemented

#

(and types / [block] expressions)

valid jetty
#

surely you have some bnf or lex file to describe it formally

#

maybe not idk

dusty moth
valid jetty
#

show

dusty moth
#

lemme push

dusty moth
valid jetty
#

hmm i sees

deep mulch
#

is there anyone here who can figure out how to get mpv cross compiling working for Linux windows and Android

#

actually, if someone is able to help me fully make what Ive been trying to for 6 months I'm willing to pay

ornate quiver
#

where's your repo

#

@deep mulch

ornate quiver
#

so Linux -> android
linux -> Linux
linux -> windows?

#

macos isn't cross compilable tldr

deep mulch
deep mulch
dusty moth
deep mulch
ornate quiver
deep mulch
#

3 more hours blobcatcozy

dawn ledge
#

never had a problem

viscid grove
#

simply blind yourself

deep mulch
#

I pushed everything no time to shift through

dawn ledge
#

okay people

#

gotta apologize

#

contrary to my previous shitting

#

i might jsut start using zen

cerulean plover
#

previous shitting

dawn ledge
#

aight nvm

#

just raw ff it is

cerulean plover
dawn ledge
#

didnt like how the home page took 2 sec to go from dark to light mode

#

can tell how light mode a11y isnt a priority

#

πŸ™

cerulean plover
#

let me guess

#

css transition on it

dawn ledge
#

i think

cerulean plover
#

nop

#

well

#

not their website

dawn ledge
#

realistically you should set your theme class before page load

cerulean plover
#

what do you mean

dawn ledge
#

they do it afterwards

cerulean plover
#

ideally you should not set a theme class at all

dawn ledge
#

yeah

#

just have light mode

#

gotta love 28 mb gif

#

ong the compression

#

jeez

cerulean plover
#

why would you ever use gif for this

dawn ledge
cerulean plover
#

yes trolley

fleet cedar
#

Why would you

south moon
#

can someone help me setting up a forgejo instance and venbot on oracle cloud for free later (i’m not asking to ask, i just need help from a person, possibile in vc, even without mic)

royal nymph
#

why venbot 😭

#

u guys are insane

nimble bone
cerulean plover
#

vh

elder yarrowBOT
# cerulean plover vh
Support Commands

​ faq ​ ​ ​Get an answer from the FAQ
support ​ ​ ​Query a support tag
notsupport ​ ​ ​Create a graphic guiding people to the correct channel (usually support)

Use vhelp <command> for more information on a specific command!

cerulean plover
#

i forgot there were that many features now

nimble bone
#

vfjd?

elder yarrowBOT
nimble bone
#

best feature

severe python
#

i finished making the vencord icon lol

dawn ledge
#

trademark infringement

#

actually what is the icon licensed under

severe python
dawn ledge
#

vencord the software

#

isnt the same as the vencord logo the artwork

#

you dont license art as source code licenses

#

well ig you could do it for svgs, but why

severe python
#

i don't really know what the vencord logo is licensed as

#

but its probably just free anyway

dawn ledge
#

they cant dmca you if they dont know trolley

cerulean plover
dawn ledge
#

im gonna host you in shiggy pack

cerulean plover
#

what

#

what is shiggy pack