#voice-chat-text-0

1 messages ยท Page 343 of 1

whole bear
#

I sign up

#

register

#

login and it not work

rugged root
#

And you verified the email?

#

It should send you one

whole bear
#

I did check

upper basin
#

It is on GitLab?

amber raptor
rugged root
#

Back in a sec

upper basin
#

Greetings Alex!

#

Greetings Dad joke!

peak depot
#

DadJoke!!!

#

Good to see ya!!

#

Ace, Hemmy and me where talking about making characters in Mortal Combat style and hoping you would narrate the back story for them ๐Ÿ˜‚

#

Mr.Hemmy ๐Ÿ˜

rugged root
#

What'd I do?

#

Also back to no talking since my co-worker is back here again

peak depot
#

I would talk but there is no chance for it ๐Ÿ˜…

rugged root
#

@terse rose For context, this is just how Rabbit is. Don't let his... intense attitude get to you

#

He grows on you

upper basin
whole bear
#

suspicious

upper basin
#

No worries at all sir. Thank you very much for asking.

#

Ohh, I was about to file for divorce thinking you didn't love me anymore.

#

When you put da ring on da fingah.

#

inserts spongebob boney fingers closeup

peak depot
#

Freedom?

upper basin
#

"You my husband?"

rugged root
#

I don't know, what did Beyoncรฉ?

stuck furnace
#

I wasn't listening, but now I am lol

upper basin
#

Your profile picture fits your vibe now perfectly.

#

"What happened?"

stuck furnace
#

ยฏ_(ใƒ„)_/ยฏ

rugged root
stuck furnace
#

The book was titled "How to Sleep"

#

Ah right

upper basin
#

Nielson and Chuang.

whole bear
primal shadow
tacit raven
#

!e
print("Hello world")

wise cargoBOT
scarlet dust
upbeat bobcat
#

@verbal zenith

vocal basin
#

still working on Rust stuff; thinking of making the installation thingy more general

#

@verbal zenith have you used cargo binstall before?

verbal zenith
#
// count duplicate chars case insensitive
fn count_duplicates(text: &str) -> u32 {
    text.to_string().to_ascii_lowercase().chars().fold((String::new(), 0u32), |(mut string, mut count), char| {
        if !char.is_whitespace() { return (string, count) };
        if string.contains(char) { count += 1 }
        string.push(char);
        (string, count)
    }).1
}
vocal basin
#

depends on input

#

how many different characters?

#

expected size of string

#

ascii only?

#

[bool;128]

#

to_ascii_lowercase allocates

#

(on char it doesn't)

#

u8::to_ascii_lowercase is a thing too

verbal zenith
#

dont count whitespace duplicates

#

wait

#

i forgot to reflip it, i inverted it earlier

#
// count duplicate chars case insensitive
fn count_duplicates(text: &str) -> u32 {
    text.to_string().to_ascii_lowercase().chars().fold((String::new(), 0u32), |(mut string, mut count), char| {
        if char.is_whitespace() { return (string, count) };
        if string.contains(char) { count += 1 }
        string.push(char);
        (string, count)
    }).1
}
vocal basin
#

are there ever any whitespace characters?

#

||```rs
use itertools::Itertools;

fn count_duplicates(text: &str) -> u32 {
text.chars().map(|c| c.to_ascii_lowercase()).duplicates().count().try_into().unwrap()
}

verbal zenith
#

now that's some python ass rust

vocal basin
#

(C)

#

though third one can be solved in other languages, it's quite simple in C

verbal zenith
#

yeah I mean I'd like to see the easiest approach without just using like std methods for it

vocal basin
#

||```rs
fn count_duplicates(text: &str) -> u32 {
let mut counts = [0u8;128];
for c in text.bytes().map(|c| c.to_ascii_lowercase() as usize) {
counts[c] = counts[c].saturating_add(1);
}
counts.iter().filter(|c| **c > 1).count() as _
}

verbal zenith
#

||```rs
fn count_duplicates(text: &str) -> u32 {
text.to_string().chars().fold(([false; 128], 0u32), |(mut arr, mut count), char| {
if arr[char.to_ascii_lowercase() as usize] { count += 1; }
else { arr[char.to_ascii_lowercase() as usize] = true; }
(arr, count)
}).1
}

||
vocal basin
#

imo it's simpler without fold

verbal zenith
vocal basin
#

also guaranteed not to copy the array around

vocal basin
#

time to copy code again

#

@verbal zenith you've used clap crate before, right?

#

TIL rust-analyzer knows how to infer derive argument names for it, at times

eager tapir
#

@vocal basin

vocal basin
eager tapir
vocal basin
eager tapir
vocal basin
#

it's multiple projects, not just a singular one

#

Python for ML and HTTP APIs

#

C/C++ for native libraries

#

TypeScript/JavaScript for UIs

#

bash for build scripts

eager tapir
#

tf

vocal basin
#

Rust for infrastructure

eager tapir
#

could you give me an example of a native library you make with C/C++?

vocal basin
#

linking not making

eager tapir
#

for native devices?

upper basin
#

You mean like binding native C/C++ packages with python for instance?

vocal basin
#

low-lever/driver stuff needs to be in C/C++/Rust

#

a lot of existing libraries are in C/C++

eager tapir
#

How long have you been working with these languages?

vocal basin
#

Python: 7 years

#

C/C++: depends what counts as starting + a lot of gaps in use, so idk

#

at least 4 years

#

Rust: just under 2 years

#

TS/JS: 4 years

eager tapir
#

sounds awesome dude

#

when are you going to take up farming?

vocal basin
vocal basin
#

which Java

#

(version)

#

then Java

#

because of new JVM

#

green threads

#

instead of async-await

#

I don't know that much about Java/C#

#

C# does have some ergonomic benefits still

upbeat bobcat
#

@upper basin Sorry, I was talking to someone else in call.

#

Its M-T-R not meter

vocal basin
#

C++ syntax is somewhat close to Rust

upbeat bobcat
#

Thats what it is

vocal basin
#

(Rust borrowed a lot from C++)

#

((pun not intended))

#

code that'd normally be occupied by C/C++ because of performance

#

but, to get better reliability, we use Rust

#

also infrastructure as in, like, infrastructure

#

general control of the system

vocal basin
#

safe Rust disallows invalid memory access

#

use-after-free, access to arbitrary memory (not earlier acquired through malloc or variable reference) including array bound violations, access to variables of function that has already returned, concurrent mutable access

#

how would C++ know

#

neither language has runtime information to check most of it

#

except for array bounds (both have a way to do a checked access given the length)

#

Python doesn't give tools that allow getting segfault easily but it does have threading race conditions

#

those race conditions occur only upstack thanks to GIL

#

global interpreter lock

vocal basin
#

but Go has GC

#

and is generally a bit more loose about correctness than Rust

#

garbage collector

#

!d gc

wise cargoBOT
#
gc

This module provides an interface to the optional garbage collector. It provides the ability to disable the collector, tune the collection frequency, and set debugging options. It also provides access to unreachable objects that the collector found but cannot free. Since the collector supplements the reference counting already used in Python, you can disable the collector if you are sure your program does not create reference cycles. Automatic collection can be disabled by calling gc.disable(). To debug a leaking program call gc.set_debug(gc.DEBUG_LEAK). Notice that this includes gc.DEBUG_SAVEALL, causing garbage-collected objects to be saved in gc.garbage for inspection.

The gc module provides the following functions:

vocal basin
#

gc is responsible for freeing memory

#

in many languages it's a normal part of how the program operates

#

not for debug

#

information about gc does appear in debug profiles (to trace if memory is getting allocated/freed in weird patterns)

#

GC is there to find objects that don't follow a semilattice (tree-ish) ownership

upbeat bobcat
#

@vocal basin or @upper basin Can you help me with a calculator GUI? (I am using pyside6)

vocal basin
#

what is the current issue?

upbeat bobcat
#

Let me first send you the code

upbeat bobcat
upbeat bobcat
upbeat bobcat
#

@verbal zenith It is done without the css. How is it looking? If there are any improvements I can do tell me

#

yep I am on window so yk

#

In future but not now

#

can you say that again didn't hear you

#

Yep

#

how you can square a number?

#

any other way

#

found it

#

๐Ÿ˜…

vocal basin
#

AST sanitisation is an option

upbeat bobcat
#

What do you mean?

vocal basin
#

!d ast

wise cargoBOT
#
ast

Source code: Lib/ast.py

The ast module helps Python applications to process trees of the Python abstract syntax grammar. The abstract syntax itself might change with each Python release; this module helps to find out programmatically what the current grammar looks like.

An abstract syntax tree can be generated by passing ast.PyCF_ONLY_AST as a flag to the compile() built-in function, or using the parse() helper provided in this module. The result will be a tree of objects whose classes all inherit from ast.AST. An abstract syntax tree can be compiled into a Python code object using the built-in compile() function.

vocal basin
#

if you're doing eval/exec currently

upbeat bobcat
upbeat bobcat
vocal basin
#

depends on whether you're directly taking input from the user

upbeat bobcat
vocal basin
#

eval(input())-like code

#

where input() might be from, for example, a text field in the UI

upbeat bobcat
vocal basin
#

@scarlet dust have you used pyo3 before?
(I just saw some mixed Python/Rust projects you have, so it could be useful)

vocal basin
upbeat bobcat
vocal basin
#

in this case it guarantees you control what gets evald

upbeat bobcat
upper basin
#

A but of an unrelated question, what is lowerCamelCase convention in Java exactly, and how mainstream is it?

#

Like I usually write in snake case I think (i.e., hourly_pay) as opposed to hourlyPay. Which is the convention in Java?

vocal basin
#

camelCase
PascalCase

frozen owl
#

hey @upper basin

urban abyss
#

Is there any good solution for versioning packages for specific versions of Ubuntu? I want Ubuntu Focal and Ubuntu Jammy machines to be able to pull in packages specific to their platform version via pip install.

vocal basin
#

@upper basin does Java have digit separators?

#

!e

print(1_000_000)
wise cargoBOT
vocal basin
#

or ' in C, I think

upbeat bobcat
#

@scarlet dust

vocal basin
#

or is it a different %?

#

not operator?

#

AC not on the edges feels a bit wrong

upbeat bobcat
#

Why is it saying this?

gentle flint
rugged root
gentle flint
#

or at least you've added no new commits to your current branch since the my-version-app branch diverged or was last merged

rugged root
#
use rand::Rng;
use std::cmp::Ordering;
use std::io;

fn main() {
    println!("Guess the number!");

    let secret_number = rand::thread_rng().gen_range(1..=100);

    loop {
        println!("Please input your guess.");

        let mut guess = String::new();

        io::stdin()
            .read_line(&mut guess)
            .expect("Failed to read line");

        let guess: u32 = match guess.trim().parse() {
            Ok(num) => num,
            Err(_) => continue,
        };

        println!("You guessed: {guess}");

        match guess.cmp(&secret_number) {
            Ordering::Less => println!("Too small!"),
            Ordering::Greater => println!("Too big!"),
            Ordering::Equal => {
                println!("You win!");
                break;
            }
        }
    }
}
upbeat bobcat
limber copper
#
def myFunc(number: float, number2: float) -> float:
  result = number + number2
  return result
#
myVar: float = 4.0
rugged root
#

Defenestration

#

!stream 425552190283972608

wise cargoBOT
#

โœ… @peak depot can now stream until <t:1723821755:f>.

urban abyss
frozen owl
frozen owl
peak depot
#

?

frozen owl
#

lol i was referring to those "youtube eating videos"

#

i dont generally like "instant noodles" but the soup is addicting as fuck

#

unrelated note: am i the only one who gets repeatedly downloaded "vscode server" over and over again when i login to ssh client on vscode

peak depot
#

#shorts #ryanair #ryanairlanding #butterlanding #ryanairhardlanding

โ•”โ•โ•ฆโ•—โ•”โ•ฆโ•—โ•”โ•โ•ฆโ•โ•ฆโ•ฆโ•ฆโ•ฆโ•—โ•”โ•โ•—
โ•‘โ•šโ•ฃโ•‘โ•‘โ•‘โ•šโ•ฃโ•šโ•ฃโ•”โ•ฃโ•”โ•ฃโ•‘โ•šโ•ฃโ•โ•ฃ
โ• โ•—โ•‘โ•šโ•โ•‘โ•‘โ• โ•—โ•‘โ•šโ•ฃโ•‘โ•‘โ•‘โ•‘โ•‘โ•โ•ฃ
โ•šโ•โ•ฉโ•โ•โ•ฉโ•โ•ฉโ•โ•ฉโ•โ•ฉโ•โ•šโ•ฉโ•โ•ฉโ•โ•

My Specs:
RTX 2060 Super
Core I5 9Gen
16GB Ram
476GB SSD

My Keyboard:
SteelSeries Apex 7
-------------------------...

โ–ถ Play video
frozen owl
#

were you on holiday?

upper basin
#

Hemlock can I delete these?

#

Are all of these installers?

#

What about this one?

#

This is my punishment for not moving stuff to proper places.

short owl
#

ohhh hello

upper basin
#

On the edge.

willow light
#

Hi, in a cafe

#

This time in Maine

#

Nothing screams August quite like the start of pumpkin spice season being pushed back yet another month.

spare galleon
#

@rugged root hola

#

@somber heath hola

#

how to talketh

#

@upper basin plz make the red pings go away in your discod

frozen owl
#

thou shalt pass the test of verification

upper basin
spare galleon
#

ohh lordey i here through ace stream

frozen owl
#

!voice

wise cargoBOT
#
Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

spare galleon
#

i hear twice, quite annoying

#

how to mute strea

#

yup

#

i muted it now

#

no my stuff is never solved

#

i am the man of 1 million unsolved things

#

how to unmake nakamas existence

gilded rivet
#

The Soggy Bottom Boys stop at a radio broadcast tower to record a song to earn some cash and record the song 'I Am a Man of Constant Sorrow.'

Did you know that George Clooney was practising his singing for weeks, but at the end... was dubbed by the country blues singer Dan Tyminski?

What is O Brother, Where Art Thou? about?

O Brother, Where ...

โ–ถ Play video
spare galleon
#

to hebrew

humble spoke
#

html?

spare galleon
gilded rivet
#

ืื ื™ ื”ืื™ืฉ ืฉืœ ืฆืขืจ ืชืžื™ื“ื™

snow spoke
#

yo i want to build some project if some one want to join pls dm me

spare galleon
#

sinthril; do u make stuff go brrrrrrrrrrrrrrrrrr

gilded rivet
#

I make robots spin Toby_Spin

spare galleon
gilded rivet
#

My robots are non-gendered

spare galleon
#

what does that mean

gilded rivet
#

The word "android" comes from the Greek "andro" (man) and "eides" (shape), and only male-like humanoid robots were considered when the term was coined

#

In fact, robots with a feminine appearance are called "ginoides"; "gino" being "woman" in Greek.

spare galleon
#

but do u make them spin

gilded rivet
#

Yeah

#

They spinnin'

spare galleon
#

can you teach me the way

gilded rivet
#

These are my arms

#

That I make spin

spare galleon
#

so you are robot?

gilded rivet
#

I am doctor octopus

spare galleon
#

not docotr hexogan

#

why windows go brrrrr

gilded rivet
frozen owl
gilded rivet
#

bai

whole bear
#

@cedar briar Hey Nick!

#

I was trying to reach you out man it's been a long time

#

If you find this message accept my friendship request

upbeat bobcat
#

@quartz beacon Hello!

summer girder
#

hiiii

spare galleon
#

yoooo not me outhere making a 3d game in pygame

willow gate
#

@whole bear hello

whole bear
#

Hello there

#

How are you?

willow gate
whole bear
#

same

stuck furnace
#

Be a scammer? ๐Ÿ˜„

#

Cya

#

I gotta go

primal shadow
#

Shanghai Knights / Noon
The Starsky & Hutch Remake
Rush Hour 2 / 3

primal shadow
#

The Running Man

primal shadow
#

The only aim in Rust is to survive. Everything wants you to die - the islandโ€™s wildlife and other inhabitants, the environment, other survivors. Do whatever it takes to last another night.

primal shadow
#

@urban pumice

urban pumice
#

Sup!

#

I'll talk here instead

#

Let's talk.

#

Makes sense!

#

That's a lot

#

Does this channel give me creds?

#

Good stuff!

#

I prefer 90s

#

But there are some good 80s ones

#

Action for sure for sure

#

Rush Hour!

#

Late 90s I think

#

But I don't watch a huge amount of movies tbh

urban pumice
#

Nostalgia

#

Good stuff

#

What did he do

#

Wtf

#

Why would he rob Walmart

#

If he could code

#

So easy to make money from coding

#

Super mega easy

#

If you're decent

#

Hope that I will be able to verify voice soon

#

So that I don't have to spam here

primal shadow
#

I can type if you'd prefer

#

to not feel as if you are talking to yourself

ebon mist
#

how to add a package manager if one is not present in my linux system i don't have apt or dpkg???

quick cloak
#

do you have curl or wget pre-installed?

ebon mist
#

idk

quick cloak
#

check that first

ebon mist
#

how??

#

I don't know use those

quick cloak
ebon mist
#

curl 8.6.0 (x86_64-cros-linux-gnu) libcurl/8.6.0 OpenSSL/3.2.1 zlib/1.2.13 c-ares/1.19.1 libpsl/0.21.1 nghttp2/1.57.0
Release-Date: 2024-01-31
Protocols: dict file http https ipfs ipns mqtt
Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz NTLM PSL SPNEGO SSL threadsafe TLS-SRP UnixSockets

quick cloak
#

great news, you have a way of installing packages. You can now install things via curl

ebon mist
#

wget is not thare

#

ok?? how do I add apt??

quick cloak
#

why do you need apt

#

im saying you can install things via curl

ebon mist
#

k?

#

thanks

#

brb

hallow warren
whole bear
#

@primal shadow @hallow warren

wintry osprey
#

dia duit

primal shadow
wintry osprey
#

btfo

#

Scots linked to the Scythians and the Amazonians

#

Irish Hero Cu Chulainn trained by Scathach, a warrior lady in Scotland

#

Scythians were on that snake venom stuff

#

double-U double-U double-U dot

hallow warren
quartz beacon
#

๐Ÿ˜ณ

#

@primal shadow 01100111 01101111 01110100 01100011 01101000 01100001 00100000 01100010 01101001 01110100 01100011 01101000

wintry osprey
#

bloated insults

#

king of politeness now lul

urban pumice
#

01100001 01110101 01110100 01101001 01110011 01101101 00100000 01101111 01110110 01100101 01110010 01101100 01101111 01100001 01100100 00101100 00100000 01101001 01101110 00100000 01100011 01101111 01101101 01100010 01101001 01101110 01100001 01110100 01101001 01101111 01101110 00100000 01110111 01101001 01110100 01101000 00100000 01100100 01110010 01110101 01100111 01110011 00101100 00100000 01101001 01110011 00100000 01101111 01101110 01100101 00100000 01101000 01100101 01101100 01101100 00100000 01101111 01100110 00100000 01100001 01101110 00100000 01100101 01111000 01110000 01100101 01110010 01101001 01100101 01101110 01100011 01100101 00101110 00100000 01101111 01101110 00100000 01110100 01101111 01110000 00100000 01101111 01100110 00100000 01110100 01101000 01100001 01110100 00101100 00100000 01101000 01100101 00100111 01110011 00100000 01110100 01110010 01101111 01101100 01101100 01101001 01101110 01100111

quartz beacon
#

this is not autism. both me and bear are autistic

urban pumice
#

same! but there's a spectrum

quartz beacon
#

yes, but this is not it

whole bear
wintry osprey
#

I watched Iphigenia the other day, it was really good. Greek war stuff

whole bear
#

My grandmother has asbergers

spare galleon
#

yall wanna help me with my 3d pygame program

upbeat bobcat
#

@upper basin You said something to me?

upper basin
#

No sorry hehe.

upbeat bobcat
upbeat bobcat
upbeat bobcat
#

@peak axle

peak axle
upbeat bobcat
# peak axle

What you want to do write here so if anyone know they can help

abstract urchin
#

Does somebody have some nice beginner friendly python projects to recommend

wise cargoBOT
#
Kindling Projects

The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.

obsidian dragon
#
ebon mist
upbeat bobcat
#

@ebon mist What you made?

willow gate
#

@still herald hey

#

yes

#

@upbeat bobcat hi

upbeat bobcat
pulsar shale
#

Hello

upbeat bobcat
upbeat bobcat
willow gate
upbeat bobcat
willow gate
upbeat bobcat
pulsar shale
upbeat bobcat
willow gate
pulsar shale
upbeat bobcat
willow gate
pulsar shale
#

๐Ÿ˜ฌ

willow gate
pulsar shale
upbeat bobcat
pulsar shale
turbid hearth
#

Hey guys wht upp

peak axle
# peak axle

can someone help me find the intersection between R(M) and C(M)?

upper basin
#

Hellov

#

Hehe

#

Am I?

#

My bad.

lyric fable
#

flamish giant?

upbeat bobcat
#

@wind raptor hi! Good how about you?

vocal basin
#

I've finally integrated git retagging stuff I was making into CI

#

in the least optimal way

#

for now, as an experiment, the code and builds are not publicly accessible
(I will open-source the thing later, but for now I'm learning how to do auth stuff properly)

#

so I also developed a thing that's responsible for downloading the latest version of the tool

#

pulling creds from either env or git

upbeat bobcat
#

GN guys

wind raptor
vocal basin
#

as a linker

#

cargo-zigbuild is the simplest way to cross-compile

#

I need to do it both for no-glibc and older glibc

#

gnu lib c

willow gate
#

@wind raptor hey

vocal basin
willow gate
vocal basin
#

"you can send you complains to ci@ci, they surely will respond"

#

it's committing from inside CI

willow gate
#

@wind raptor great

vocal basin
#

so there isn't really a reason to use my name/email there

#

and it's only for tags

willow gate
#

are they open source?

vocal basin
#

(not actual commits)

willow gate
#

ok

#

your github acc?

#

Mine final year project I have to work on it

vocal basin
#

now that tagging has been dealt with, it's time to get back to automating subtrees manipulation

willow gate
#

@wind raptor what kind of stack are you learning now?

#

which?

#

i didn't hear properly

vocal basin
#

bun elysia turso htmx?

#

the SaaS part of Turso or libsql server?

elder shard
#

@wind raptor

#

i cant unmute

#

idk why

wind raptor
#

!voice

wise cargoBOT
#
Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

elder shard
#

!voice

#

I have to send 50 messages

#

erm

#

ill just text here

#

hello

#

how are you

#

im alright

#

what you doin

#

oh nice i have like 10000 quewstions

#

I'm learning Information tech

#

It will start in one week

#

I dont know if its gonna be hard

#

I'll have to see

#

How different?

#

Is there something you do that IT doesnt?

vocal basin
#

in NA, IT is more about maintenance, afaik

elder shard
#

I'm in germany

#

so idk

#

I'm not in uni...

vocal basin
elder shard
#

I'm in a professional school

willow gate
elder shard
#

In germnay its totally different

#

thats the thing

#

I finished 10th grade

#

now I'm in 11th grade

#

but with IT i'll get my certifcate

#

But I'll have to go to uni for bachlors

willow gate
elder shard
#

no

#

I've been raised in germany

#

But I'm afghan/tajik

#

I thought computer will be in the future

#

so i just chose IT and computer related stuff

vocal basin
#

idk if I'll ever get back to continuing education

willow gate
vocal basin
elder shard
#

It depends if youre from germany or wherever

#

cause

vocal basin
elder shard
#

education in germany is totally different

#

and russia is totally different i think

vocal basin
#

and Russia indeed has strict restrictions against post-school certification

elder shard
#

But i like russia

vocal basin
#

universities are required to only take state exams into account

elder shard
#

cause my country is slavic too

#

I'm half chechen-tajik

#

i know how russia works

#

But germany you can study till 10th grade

willow gate
elder shard
#

after that you can go to a professional school from 10th grade or continue normal school

#

and do 11th and 12th

#

or do 13th for something else

vocal basin
#

I switched to specialised school after 7 years of regular one

elder shard
#

isnt it

vocal basin
#

and there, 4 years of maths/programming education

elder shard
#

damnnn

#

thats too much isnt it

vocal basin
#

bachelor's would be another 4

#

and then 2

#

and then another 3

vocal basin
#

and in university I was lucky enough to get C taught

#

instead of Pascal

#

AES mentioned

wintry osprey
elder shard
#

AttributeError: module 'pyaes' has no attribute 'AESModeOfOperationGCM'. Did you mean: 'AESModeOfOperationECB'?

vocal basin
elder shard
#

Running PyInstaller as admin is not necessary nor sensible. Run PyInstaller from a non-administrator terminal. PyInstaller 7.0 will block this.

vocal basin
#

pyaes only supports CBC CFB CTR ECB OFB

#

consider using pycryptodome

uncut lynx
#

How yall doing today?

elder shard
#

pip install pyinstaller

wind raptor
elder shard
#

pip install --upgrade cryptography

vocal basin
uncut lynx
vocal basin
#

you should be using a venv, especially when dealing with pyinstaller

elder shard
#

<string>:350: SyntaxWarning: invalid escape sequence '\S'
<string>:351: SyntaxWarning: invalid escape sequence '\S'
<string>:355: SyntaxWarning: invalid escape sequence '\S'
<string>:362: SyntaxWarning: invalid escape sequence '\S'
<string>:363: SyntaxWarning: invalid escape sequence '\S'
<string>:367: SyntaxWarning: invalid escape sequence '\S'
<string>:417: SyntaxWarning: invalid escape sequence '\S'
<string>:1308: SyntaxWarning: invalid escape sequence '-'

vocal basin
#

!e

print("\S")
wise cargoBOT
# vocal basin !e ```py print("\S") ```

:white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | /home/main.py:1: SyntaxWarning: invalid escape sequence '\S'
002 |   print("\S")
003 | \S
vocal basin
#

!e

print("\s")
wise cargoBOT
# vocal basin !e ```py print("\s") ```

:white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | /home/main.py:1: SyntaxWarning: invalid escape sequence '\s'
002 |   print("\s")
003 | \s
uncut lynx
#

python -m venv .venv

#

!e print("\s")

wise cargoBOT
vocal basin
#

VSC and PyCharm have support for venv

#

(IDEs)

#

hmm

uncut lynx
#

Cmd prompt

vocal basin
#

not admin

uncut lynx
#

Non admin

willow gate
vocal basin
#

what terminal are you using?

#

cmd.exe? powershell? bash?

#

activation depends on the terminal

uncut lynx
#

What python are you using?

#

From where?

#

Is there any output when you run venv in powershell?

vocal basin
#

I need to go; might be back later

uncut lynx
#

Try running venv venv then ls -al

#

Powershell

#

As non admin

#

Yeah, no .

wind raptor
elder shard
#

venv: error: unrecognized arguments: -al

uncut lynx
#

So run python -m venv venv

#

Then ls -al

#

@wind raptor venv is still bundled with 3.12 yeah?

#

Or is it separate now?

#

Iโ€™ve been using pyenv for quite a while now

#

Do you have git installed?

#

Windows has no bash, itโ€™s a unix/posix thing

#

If you have git, then youโ€™ll have git bash

elder shard
#

324 INFO: PyInstaller: 6.10.0, contrib hooks: 2024.8
325 INFO: Python: 3.12.5
367 INFO: Platform: Windows-11
367 INFO: Python environment: C:\Users\loxr4\AppData\Local\Programs\Python\Python312
Script file 'loader-o.py' does not exist.

uncut lynx
#

I personally deal with this kind of thing by not using windows

#

Iโ€™m not going to hate on windows, but I refuse to use it for programming

#

Macos/linux

#

Uh, wsl2 works nice too

#

@wind raptor thoughts on windows programming?

elder shard
#

Syntax Warnings

#

Use raw string literals for regular expressions

pattern = r"\S+"

Or escape backslashes in regular strings

pattern = "\S+"

#

<string>:350: SyntaxWarning: invalid escape sequence '\S'
<string>:351: SyntaxWarning: invalid escape sequence '\S'
<string>:355: SyntaxWarning: invalid escape sequence '\S'
<string>:362: SyntaxWarning: invalid escape sequence '\S'
<string>:363: SyntaxWarning: invalid escape sequence '\S'
<string>:367: SyntaxWarning: invalid escape sequence '\S'
<string>:417: SyntaxWarning: invalid escape sequence '\S'
<string>:1308: SyntaxWarning: invalid escape sequence '-'

uncut lynx
#

r'\S' instead '\S'

elder shard
#

AttributeError: module 'pyaes' has no attribute 'AESModeOfOperationGCM'. Did you mean: 'AESModeOfOperationECB'?

vocal basin
#

just a few scripts on top of git

#

some in bash, some in Rust, some in Go

#

subtree management isn't really something to do by hand
(just because of how verbose the commands are)

#
git remote add --fetch --no-tags $remote $url
git merge -s ours --no-commit --allow-unrelated-histories $remote/$branch
git read-tree --prefix $path $remote/$branch
#

this adds a subtree

#

and I still don't remember the entirety of it

#

tracking remote relative to a subpath

#

instead of root of the repository

vocal basin
#

not a submodule

#

submodules are different

#

submodules keep tracking information in .gitmodules

#

yeah, a link is a submodule

#

there vendor is a submodule

#

subtree brings everything over, yes

#

so that if submodule remote is offline, it still works

#

you can pull as usual

#
git pull -s subtree --no-commit $remote $branch
#

same usecase as with submodules

#

dependency

#

what subtree gives is that there all the code gets brought over

vocal basin
#

also has an option to list all subtrees

#

since it keeps them all segregated in a separate directory

#

it will be public at some point

#

imo there's not much value in it yet

vocal basin
#

main part is in Rust

#

actions are in Go and bash

vocal basin
vocal basin
#

it's better to teach people how to use this instead

#

like the raw commands

#

because automated, in CI or wherever, they're quite powerful

vocal basin
#

so now there's 2 dependencies less

#

-walkdir
-pathdiff

#

and the other part of the tool (not subtrees) is responsible for making git tags for all Rust crates in the current workspace

#

just subprojects

#
[workspace]
members = ["some-subproject"]
wise cargoBOT
#

Cargo.toml lines 1 to 7

[workspace]
members = [
    "internal/ruchei-sample",
    "ruchei-callback",
    "ruchei-extra",
    "ruchei-route",
]```
vocal basin
vocal basin
#

A is retagged only if it's at least 1
A.B is retagged only if at least one of A or B is at least 1

#

versions are pulled from Cargo.toml, yes

#

I am planning on also supporting pyproject.toml and package.json

#

I don't remember if go has package versions yet

#

it used not to have them at some point I think

#

and by default still doesn't

#

git ref

#

commit, tag, branch

#

the idea there is to just use git tags, if I understand correctly

#

do it manually instead of pulling from a files

vocal basin
#

go.mod doesn't require specifying a version

#

I don't really know how go does packaging

#

I've read through most of the Zig language reference

#

not yet

#

I need to know Zig's build system

#

since I'm working with C/C++/Rust

#

and Zig is becoming more and more useful for compiling those

#

also for Python

#

afaik Zig can even be used to make static binary of CPython

#

no dependency on libc, ssl and others

vocal basin
#

I also made a tool that downloads and installs latest versions of whatever I've built and published to my Forgejo instance

#

not really a package manager (since all those are static binaries without dependencies) but still quite useful

#

also that implies uninstalling means just rm'ing the binary

#

(it allows specifying where to install)

<--to-cargo-home|--to-home-local-bin|--to-self|--to-bin> <PACKAGES>...
#

$CARGO_HOME/bin or (if not defined) ~/.cargo/bin
~/.local/bin
wherever the thing itself is installed
/bin

#

it installs to the first that's specified, exists and is present in $PATH

#

also it can do --to-self self replacing itself

#

updating to the latest semver-compatible

#

so it can't break by going from 1.0 to 2.0

#

or from 0.1 to 0.2

mortal mountain
#

im trying to make an sdr

#

and rtlsdr will not work

#

File "C:\Users\Owner\AppData\Local\Programs\Python\Python312\Lib\site-packages\rtlsdr\librtlsdr.py", line 57, in load_librtlsdr
raise ImportError('Error loading librtlsdr. Make sure librtlsdr '
ImportError: Error loading librtlsdr. Make sure librtlsdr (and all of its dependencies) are in your path
PS C:\Users\Owner>

#

i dont understand

vocal basin
mortal mountain
#

i havertlsdr installed

vocal basin
mortal mountain
#

no

onyx linden
#

@vocal basin can u help wityh something pls

mortal mountain
onyx linden
#

look whats going on with my python

vocal basin
mortal mountain
#

im not familiar with python how do i do that?

onyx linden
#

@vocal basin look mam

vocal basin
#

what are you trying to do?

onyx linden
vocal basin
#

why?

onyx linden
#

but python would not open for me

onyx linden
#

and i need to sell that the thing i did but i can only sell it as a exe file

vocal basin
#

why would there ever be such a requirement

onyx linden
#

because i need gen keys for it

#

can u just please help mam

vocal basin
#

!rule 5

wise cargoBOT
#

5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.

onyx linden
mortal mountain
#

@vocal basin can you give me the pip install for

#

the sdr

vocal basin
mortal mountain
#

@vocal basin what do i do

vocal basin
mortal mountain
#

oh ok

#

now how do i run it

#

@vocal basin

vocal basin
#

dll needs to somewhere where the program can see it

#

for example, in the same directory you run it from

mortal mountain
#

where do i put it

#

how do i do that ;-;

onyx linden
#

@vocal basin can u help

mortal mountain
mortal mountain
onyx linden
#

holy

#

its cause she dont know

vocal basin
mortal mountain
#

vscode

#

@vocal basin

vocal basin
#

put the dll file next to radio.py

mortal mountain
#

where

vocal basin
#

in the same directory

mortal mountain
vocal basin
#

yes

#

does it still show the error?

mortal mountain
#

yes

#

File "C:\Users\Owner\AppData\Local\Programs\Python\Python312\Lib\site-packages\rtlsdr\librtlsdr.py", line 57, in load_librtlsdr
raise ImportError('Error loading librtlsdr. Make sure librtlsdr '
ImportError: Error loading librtlsdr. Make sure librtlsdr (and all of its dependencies) are in your path

vocal basin
#

I might be able to look further into this tomorrow;
for now, I need to go; so I suggest asking in #1035199133436354600

mortal mountain
#

aw ๐Ÿ˜ฆ

ebon valve
#

hello

vocal basin
vocal basin
#

@peak depot where

#

I don't remember stuff

upper basin
quartz beacon
#

she forgor ๐Ÿ’€

vocal basin
#

I'm automatically merging histories from multiple registries repositories

#

which causes this

upper basin
#

Ohh

#

Wait, what's a registery?

#

Same as a branch?

#

Oh thank ye!

#

How do you merge multiple repositories? Are they forks of one parent repo?

vocal basin
upper basin
#

So, you would have two completely unrelated repos, and you would merge them together?

vocal basin
#

merged to a subdirectory

#

as a subtree

upper basin
#
A--B--C   <-- master (HEAD)

J--K--L   <-- theirs
#

Like so?

obsidian dragon
upper basin
#

When is this useful AF? It says that if you have same name files but different content, it'll cause conflicts.

vocal basin
vocal basin
#

which before merge doesn't exist

#

this is an alternative to submodules

upper basin
vocal basin
#

don't git pull --allow-unrelated-histories

#

(neither do git push with it)

upper basin
#

So, you have a repo A, and a repo B. These two don't have any common ancestors.

#

You don't pull nor push with it?

#

I'll read the subtree you sent. Apologies if the questions are already answered there.

vocal basin
#

subtree mostly is just about tracking remotes

obsidian dragon
vocal basin
obsidian dragon
#

Made in Abyss

upper basin
vocal basin
#

hmm

#

oh wait

#

no

#

idk what it is

#

seems like it's a symlink

upper basin
#

In the link you sent, it says that you use subtree to contain one repo inside another.

#

I thought that was an example of this.

vocal basin
#

yeah, in this case it doesn't contain

upper basin
#

Just contain a link to it?

vocal basin
#

yes

#

and here not ever a repo

upper basin
#

I see.

vocal basin
vocal basin
#

yes

upper basin
#

I see.

#

So, instead of making commits separately to each repo, you would instead make one big commit that updates both?

vocal basin
#

submodules keep tracking fully separate

#

so there's just a file with links

#

which are traversed with git clone --recurse-submodules and git submodule

upper basin
#

I see.

vocal basin
#

oh wait it's not submodule

#

yeah, for subtrees that's the exact goal

#

no tracking checked in
no external dependency

#

(i.e. no links)

upper basin
#

Ohh, I confused them didn't I? I'll check submodule now.

#

On a different note, is this normal?

#

It's running below base speed for some reason. Usually it's running 2.7 or 3.0.

obsidian dragon
#

no

upper basin
#

Not sure why it's doing this.

vocal basin
#

what's the temperature?

upper basin
#

Low, as if nothing is running.

vocal basin
#

is any core running at 100%?

upper basin
#

I think 70-ish.

vocal basin
vocal basin
# obsidian dragon

you with your 9 days without reboot, totally safe for windows, not missing any security updates

upper basin
vocal basin
#

if hmm

#

speed might be averaging

obsidian dragon
#

by linus has been up for 42 days with no interaction

vocal basin
#
  • if I'm understanding correctly it's mixed cores, right?
upper basin
#

It's new. I didn't have this before.

vocal basin
#

like not all are same

upper basin
obsidian dragon
#

seems fine

vocal basin
#

some performance cores, some not

#

might be scheduling issue

vocal basin
upper basin
vocal basin
#

I think on linux I got to just above 100

#

at some point

upper basin
#

What's wrong with it? It's just my CPU stat.

vocal basin
# vocal basin

it's even connected to IPS as not to shutdown when power goes out

obsidian dragon
vocal basin
upper basin
#

The simulation must go on.

vocal basin
#

so basically 70% number is just misleading

upper basin
#

But it's below base speed?

vocal basin
prime frost
#

Hello

upper basin
#

So freaking odd.

#

It dips and becomes fast?

vocal basin
#

weaker cores have hyper-threading enabled there wrong, the other way around

#

therefore for each weak core you have 2 threads contributing to the number wrong

upper basin
#

So, if 6 out of 14 are efficiency (weak) cores, then they total to 12 threads overall?

#

And the rest are from performance cores?

vocal basin
#

8 performance cores, yes wrong; 6

#

efficiency ones are optimised for power and concurrency
performance ones are optimised for compute and parallelism

upper basin
#

!e

total_threads = 6495
num_p_cores = 8
num_e_cores = 6
threads_per_e_core = 2

threads_per_p_core = (total_threads - threads_per_e_core * num_e_cores)/num_p_cores
print(threads_per_p_core)
wise cargoBOT
upper basin
#

That's a really massive difference if I did it properly.

vocal basin
#

it's so complicated actually that I'd rather not put any specific number on it

upper basin
#

So, if you have two repos (packages) and want to use one package inside the other as a dependency you would add the dependency one as a submodule?

#

Is this useful when you don't have a pypi for the dependency repo and want to import it without sys.path.append?

vocal basin
#

which often isn't the case

#

example: corporate git host accessible both on local and VPN IPs

upper basin
#

Isn't the definition they're giving in the website the same as a dependency?

vocal basin
#

but

#

some tools don't understand that

#

GitKraken specifically

#

@upper basin clone, submodule update, whatever requires pulling code from the dependency

upper basin
#

I see.

vocal basin
#

when dependency is inaccessible (e.g. deleted), submodules break

upper basin
#

Naturally no?

#

Can't refer to a submodule that doesn't exist.

vocal basin
#

that's where subtrees fix the situation

#

they bring the whole history over

upper basin
#

Ohhh

#

As in they recreate the missing submodule from the history?

vocal basin
#

((instead of ./))

vocal basin
upper basin
#

That is very impressive.

vocal basin
#

(git clone builds source from history)

#

at least normally

vocal basin
#

from a truncated, optimised, history

upper basin
#

To be honest, I think this is a perfect tool to try out for my two packages. QICKIT is the one I want to have as the submodule for QMPRS.

upper basin
vocal basin
#

I have a tool for managing subtrees but it's not open-source yet (because it's quite bad and inconsistent at the time, and I'd rather figure it out myself than accept external contributions)

#

it will be open-source when it's functionally correct enough

#

but likely not open-contribution

upper basin
#

So, just to check my understanding, we make two repositories. We want to use one within the other, so we add it as a submodule to the other repository. Let's name them A for the main repo, and B for the submodule.

You would be able to use B within A whilst being able to make updates to them separately (which I feel is different from subtree in that sense?). Now, besides the evident use of it for using B like a dependency without needing to install it like a pypi, you can also add safety for when B is deleted as A would then be able to recreate B from B's history.

vocal basin
#

you can still update subtrees separately

#

for both subtrees and submodules, you need to commit to A when B changes to make A use a newer B

upper basin
vocal basin
#

submodules are implemented through a link, subtrees are implemented through copying everything over

upper basin
vocal basin
#

no

#

with submodules, we don't copy anything

upper basin
#

So, how do we keep the history if the submodule is deleted?

vocal basin
#

with subtrees, we copy the history and when we build src for A we also get src for B

upper basin
#

So with submodule we keep a mirror of the original repo?

#

And with subtree we clone it over?

vocal basin
#

and generally a good practice, especially if you're working in a corporate environment

upper basin
#

Ooh so unrelated to submodule?

vocal basin
#

depending on doing git clone https://github.com/<owner>/<repo> has same implications as depending on https://github.com/<owner>/<repo> as a submodule

upper basin
#

Hmm

upper basin
#

I think I'm clear now.

#

What happens if you don't have a subtree and only have a submodule?

#

As in if the original repo is deleted.

#

Are they disjoint by the way? Can you keep a subtree as well as a submodule of the same repo inside the another same repo?

#

If not, what factor should tell you to use a submodule vs a subtree?

vocal basin
#

also funny last commit

#

signing was the hardest part

vocal basin
vocal basin
#

for subtrees it makes a bit less sense

#

in case of subtrees it's easier not to track inner subtrees

upper basin
#

Since subtrees contain everything?

vocal basin
#

yes

vocal basin
#

because there is no name

upper basin
#

Hehe

vocal basin
upper basin
#

Imagine working at like a big tech company, and making a massive commit, and just saying "Added some code and shit."

#

No title.

vocal basin
upper basin
#

There was a meme about this, the guy just wrote "IDK" in the commit hehe.

#

Love it.

#

Once my package is done, I'm definitely gonna add a konami cheat code easter egg.

#

"You have unlocked the power to edit the universe."

#

Runs code, universe just crashes.

#

Could just see the Rick n Morty episode of this.

#

"Re-re-Revert commit Morty! You Crowdstriked the universe Morty! Goddamit Morty, you fucking Crowdstriked the universe."

#

"Aww jeez Rick, ohh fuck! Ho-How can I revert the commit? It says pushed Rick!"

#

"That's what revert means you little-"

#

I'm sorry, hehehe. Having too much fun.

gray eagle
#

Hello

upper basin
#

I would say if you don't know the programming languages that are primarily or conventionally used for each, start with those. Then, to flesh it out, do projects in them. This will build your understanding.

#

Also, I would choose one for the time being. Jack of all trades as a goal usually ends up being master of none when pursued like the way you're going at it now.

#

Do them one by one. Actually do projects, and the time to build them up into a skill. Once you are adequately familiar and know the base competencies for doing a junior level role in that domain, then move to the other topic.

primal shadow
#

Start with fundameltals

#

Gotta learn control flow, data structures, etc. for any of em

upper basin
#

What programming languages are you proficient with?

upbeat bobcat
#

@still herald Bye!

#

@versed heath Sorry, didn't here what you said?

#

font what

#

Can you write?

#

@versed heath

versed heath
#

did you find her annoying

upbeat bobcat
broken crater
#

mtr

#

come dms

#

to vc

#

cus no perms here

upbeat bobcat
upbeat bobcat
#

What do mean by Record? @versed heath

#

Save chats or what?

#

Oh for voice chat

whole bear
#

@peak depot ๐Ÿ‘‹

whole bear
#

hi guys

upbeat bobcat
whole bear
#

im actually so bored does anyone have an idea to make in python

wise cargoBOT
#
Kindling Projects

The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.

whole bear
#

whats that?

upbeat bobcat
wind raptor
#

Back in ~15

wind raptor
#

Did I say 15? haha

upbeat bobcat
#

@wind raptor

#

@versed heath Clam down

#

@versed heath Can you turn off your mic?

primal shadow
#

!e

print(580/64)
wise cargoBOT
primal shadow
#

@versed heath

#

^^

versed heath
#

!e
'''python
print("Hi")
'''