#voice-chat-text-0
1 messages ยท Page 343 of 1
I did check
It is on GitLab?
Itโs self hosted GitLab
I see. I don't know what that means, apologies. Please ignore what I said then.
Greetings Alex!
Greetings Dad joke!
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 ๐
I would talk but there is no chance for it ๐
@terse rose For context, this is just how Rabbit is. Don't let his... intense attitude get to you
He grows on you
He's being oddly nice now though.
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
Freedom?
"You my husband?"
I don't know, what did Beyoncรฉ?
I wasn't listening, but now I am lol
ยฏ_(ใ)_/ยฏ
I'm kind of proud of that one
Nielson and Chuang.
LMFAO
Has to be the dumbest song ever. "If you liked it you shoulda put a ring on it" I thought liking is like... early relationship time
!e
print("Hello world")
:white_check_mark: Your 3.12 eval job has completed with return code 0.
Hello world
still working on Rust stuff; thinking of making the installation thingy more general
@verbal zenith have you used cargo binstall before?
// 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
}
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
what is whitespace check for?
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
}
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()
}
now that's some python ass rust
yeah I mean I'd like to see the easiest approach without just using like std methods for it
||```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 _
}
that's another way I guess
||```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
}
||
imo it's simpler without fold
correct
also guaranteed not to copy the array around
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
@vocal basin
what where
What languages are you working with?
at work (what I'm getting paid for): Rust, Python, C/C++, TypeScript/JavaScript, bash
What do you work that requires all that??
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
tf
Rust for infrastructure
could you give me an example of a native library you make with C/C++?
linking not making
for native devices?
You mean like binding native C/C++ packages with python for instance?
low-lever/driver stuff needs to be in C/C++/Rust
a lot of existing libraries are in C/C++
How long have you been working with these languages?
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
(and whatever else that other people in the company wrote)
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
C++ syntax is somewhat close to Rust
Thats what it is
(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
e.g. no segmentation faults
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
there is also Go for that
(see Docker, for example)
but Go has GC
and is generally a bit more loose about correctness than Rust
garbage collector
!d 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:
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
@vocal basin or @upper basin Can you help me with a calculator GUI? (I am using pyside6)
what is the current issue?
Let me first send you the code
This is the code: https://paste.pythondiscord.com/ZS2Q
Fashoomp is helping
@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
๐
AST sanitisation is an option
What do you mean?
!d 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.
if you're doing eval/exec currently
Yes, I am doing eval.
I should use this?
depends on whether you're directly taking input from the user
wdym by directly?
eval(input())-like code
where input() might be from, for example, a text field in the UI
let me show you my code
@scarlet dust have you used pyo3 before?
(I just saw some mixed Python/Rust projects you have, so it could be useful)
seems fine (you only put hardcoded values into self.expression)
It is good to hardcode?
in this case it guarantees you control what gets evald
hmm but not always?
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?
camelCase
PascalCase
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.
:white_check_mark: Your 3.12 eval job has completed with return code 0.
1000000
@scarlet dust
maybe swap % and AC?
or is it a different %?
not operator?
AC not on the edges feels a bit wrong
because my-version-app has already been merged into your current branch
Trimps
or at least you've added no new commits to your current branch since the my-version-app branch diverged or was last merged
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;
}
}
}
}
It is not merged and it has changes
def myFunc(number: float, number2: float) -> float:
result = number + number2
return result
myVar: float = 4.0
โ @peak depot can now stream until <t:1723821755:f>.
asmr???
?
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
#shorts #ryanair #ryanairlanding #butterlanding #ryanairhardlanding
โโโฆโโโฆโโโโฆโโฆโฆโฆโฆโโโโ
โโโฃโโโโโฃโโฃโโฃโโฃโโโฃโโฃ
โ โโโโโโโ โโโโฃโโโโโโโฃ
โโโฉโโโฉโโฉโโฉโโฉโโโฉโโฉโโ
My Specs:
RTX 2060 Super
Core I5 9Gen
16GB Ram
476GB SSD
My Keyboard:
SteelSeries Apex 7
-------------------------...
were you on holiday?
This is normal behavior
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.
ohhh hello
On the edge.
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.
@rugged root hola
@somber heath hola
how to talketh
@upper basin plz make the red pings go away in your discod
thou shalt pass the test of verification
Red pings in my discord?
ohh lordey i here through ace stream
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
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
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 ...
i dont know english ,plz translate
to hebrew
html?
HTMX?
ืื ื ืืืืฉ ืฉื ืฆืขืจ ืชืืืื
yo i want to build some project if some one want to join pls dm me
open up vs studio, click the build button, tudah
sinthril; do u make stuff go brrrrrrrrrrrrrrrrrr
I make robots spin 
what about andriods?
My robots are non-gendered
what does that mean
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.
but do u make them spin
can you teach me the way
so you are robot?
I am doctor octopus
Nakama
opal this me and you, im the guy in blue
today's vibe https://www.youtube.com/watch?v=z2qoihbzc3E
Provided to YouTube by Universal Music Group
Stayin Alive ยท Bee Gees
The Ultimate Bee Gees
โ 1977 Barry Gibb, The Estate of Robin Gibb and Yvonne Gibb, under exclusive license to Capitol Music Group
Released on: 2009-11-03
Producer: Bee Gees
Composer Lyricist: Maurice Gibb
Composer Lyricist: Robin Gibb
Composer Lyricist: Barry Gibb
Auto...
@gilded rivet bye bye
bai
@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
@quartz beacon Hello!
hiiii
yoooo not me outhere making a 3d game in pygame
Good!! and you?
same
The Running Man
@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
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
how to add a package manager if one is not present in my linux system i don't have apt or dpkg???
do you have curl or wget pre-installed?
idk
check that first
curl --version
or
wget --version
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
great news, you have a way of installing packages. You can now install things via curl
British Isles Accent Map When people talk about a โBritish accentโ, they tend to be thinking of the upper class Received Pronunciation accent. But what you might not realize is that the UK has a huge variety of accents, and a higher level of linguistic diversity than many other countries. These range from the lilt of t
dia duit
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
This page haes been archived fower times.
First Edeetion
Seicont Edeetion
Third Edeetion
Fowert Edeetion
๐ณ
@primal shadow 01100111 01101111 01110100 01100011 01101000 01100001 00100000 01100010 01101001 01110100 01100011 01101000
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
๐
this is not autism. both me and bear are autistic
same! but there's a spectrum
yes, but this is not it
Im very autisic
I watched Iphigenia the other day, it was really good. Greek war stuff
yall wanna help me with my 3d pygame program
@upper basin You said something to me?
No sorry hehe.
NP sir
I want to show to you something related to mathematics.
@peak axle
Does somebody have some nice beginner friendly python projects to recommend
!kindling
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.
Bathed in the static glow of re-re-re-recorded VHS late-night scrambled pรธrn, FREAKBAiT plinks away at an ensemble of corrupted toys and day-glo machines - conjuring a sonic cacophony that spreads your third eye like a whore's thighs and overdoses your childhood with bad acid.
FREAKBAiT is a California-based multimedia creator that emerged circ...
@ebon mist What you made?
Hey!
Hello
How are you doing?
hi!
how's your project going on
Great!
good!! and you
.
What's up
All good! hbu?
it will be open source?
Bad Can't find a job
idk
ok
๐ฌ
on what stack you are working on?
Test
Test?
Hey guys wht upp
flamish giant?
@wind raptor hi! Good how about you?
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
GN guys
Have a good night!
- zigbuild everywhere
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
@wind raptor hey
had to specify user/email for commits, so it's ci and ci@ci
did you decide any project for submitting in college?
"you can send you complains to ci@ci, they surely will respond"
it's committing from inside CI
@wind raptor great
are they open source?
(not actual commits)
now that tagging has been dealt with, it's time to get back to automating subtrees manipulation
@wind raptor what kind of stack are you learning now?
which?
i didn't hear properly
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!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?
in NA, IT is more about maintenance, afaik
IT service specifically instead of Information Technology work in general
I'm in a professional school
yep most of it and cs syllabus is same
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
are you from india?
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
I've been to a specialised school too, but I didn't get any certificate from that
(only actual useful knowledge)
idk if I'll ever get back to continuing education
from which grade did you drop
where you from?
I completed the first semester of the university
Russia
and Russia indeed has strict restrictions against post-school certification
But i like russia
universities are required to only take state exams into account
cause my country is slavic too
I'm half chechen-tajik
i know how russia works
But germany you can study till 10th grade
except for two
you can try for online degree
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
I switched to specialised school after 7 years of regular one
oh thats why
and there, 4 years of maths/programming education
(Python main language there)
and in university I was lucky enough to get C taught
instead of Pascal
AES mentioned
Begin
crying()
End.
AttributeError: module 'pyaes' has no attribute 'AESModeOfOperationGCM'. Did you mean: 'AESModeOfOperationECB'?
Running PyInstaller as admin is not necessary nor sensible. Run PyInstaller from a non-administrator terminal. PyInstaller 7.0 will block this.
How yall doing today?
pip install pyinstaller
Good! How about you?
pip install --upgrade cryptography
are you using a venv?
Good, Iโm in the vc, Iโll unmute in a bit
you should be using a venv, especially when dealing with pyinstaller
<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 '-'
!e
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
!e
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
:white_check_mark: Your 3.12 eval job has completed with return code 0.
\s
not admin
Non admin
cmd
what terminal are you using?
cmd.exe? powershell? bash?
activation depends on the terminal
What python are you using?
From where?
Is there any output when you run venv in powershell?
I need to go; might be back later
Have a great one!
venv: error: unrecognized arguments: -al
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
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.
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?
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 '-'
r'\S' instead '\S'
AttributeError: module 'pyaes' has no attribute 'AESModeOfOperationGCM'. Did you mean: 'AESModeOfOperationECB'?
subtrees have been dealt with too
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
so I added a thing to
- generate
$remotebased on$path - automatically fill in
$branch - run the whole sequence of commands, skipping ones that aren't necessary
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
this
(tool I made does this too)
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
I might rework this
main part is in Rust
actions are in Go and bash
this part is private (for now)
this part is public
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
I've just reworked a bit how this is implemented
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"]
Cargo.toml lines 1 to 7
[workspace]
members = [
"internal/ruchei-sample",
"ruchei-callback",
"ruchei-extra",
"ruchei-route",
]```
it also retags A.B and A versions when new A.B.C is made
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
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
(Python interpreter)
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
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
have you installed what the error message tells to install?
i havertlsdr installed
you installed a pip package, right?
no
@vocal basin can u help wityh something pls
pip install librtlsdr.py ?
look whats going on with my python
(the C library)
im not familiar with python how do i do that?
what are you trying to do?
make a python into a exe file
why?
but python would not open for me
i need for a thing a coded but now is not working
and i need to sell that the thing i did but i can only sell it as a exe file
why would there ever be such a requirement
!rule 5
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
is not illegal
@vocal basin what do i do
you need rtlsdr-bin-w64_static.zip, if you're on Windows
dll needs to somewhere where the program can see it
for example, in the same directory you run it from
@vocal basin can u help
he just said no
.
how are you running your python program?
put the dll file next to radio.py
where
in the same directory
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
I might be able to look further into this tomorrow;
for now, I need to go; so I suggest asking in #1035199133436354600
aw ๐ฆ
hello
wheee
How many people are working on that repo?
she forgor ๐
1
I'm automatically merging histories from multiple registries repositories
which causes this
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?
--allow-unrelated-histories
So, you would have two completely unrelated repos, and you would merge them together?
When is this useful AF? It says that if you have same name files but different content, it'll cause conflicts.
I use first one, not the git-contrib's git-subtree command
there is no same file with same name
subtree is merged into a separate subdirectory
which before merge doesn't exist
this is an alternative to submodules
I'm reading from here.
https://stackoverflow.com/questions/54836572/how-exactly-does-git-pull-allow-unrelated-histories-work
Right, so I've searched through some other SO threads, and also checked out this: https://git-scm.com/docs/git-merge
I understand that --allow-unrelated-histories allows two projects to join toget...
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.
subtree mostly is just about tracking remotes
making pulling a remote to apply diffs to a subdirectory instead of root
Made in Abyss
AF, is examples here a subtree repo?
https://github.com/NVIDIA/cuda-quantum
no, it's a submodule
hmm
oh wait
no
idk what it is
seems like it's a symlink
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.
yeah, in this case it doesn't contain
Just contain a link to it?
I see.
vendor being the submodule?
yes
I see.
So, instead of making commits separately to each repo, you would instead make one big commit that updates both?
submodules keep tracking fully separate
so there's just a file with links
which are traversed with git clone --recurse-submodules and git submodule
I see.
"The test project will use that subproject as if it were part of the same repository."
https://docs.github.com/en/get-started/using-git/about-git-subtree-merges
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)
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.
Not sure why it's doing this.
I've seen that issue on someone else's computer
idk how to fix
what's the temperature?
Low, as if nothing is running.
is any core running at 100%?
I think 70-ish.
if no => then normal
you with your 9 days without reboot, totally safe for windows, not missing any security updates
by linus has been up for 42 days with no interaction
- if I'm understanding correctly it's mixed cores, right?
It's new. I didn't have this before.
like not all are same
I'm not sure?
14 cores 20 logical
some performance cores, some not
might be scheduling issue
(I have worse)
Yeah, I believe so.
it's even connected to IPS as not to shutdown when power goes out
Nice HEHEHE
this one seems fine
The simulation must go on.
so basically 70% number is just misleading
But it's below base speed?
Hello
because it stops measuring frequency for weaker cores, I'd assume
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
So, if 6 out of 14 are efficiency (weak) cores, then they total to 12 threads overall?
And the rest are from performance cores?
8 performance cores, yes wrong; 6
efficiency ones are optimised for power and concurrency
performance ones are optimised for compute and parallelism
!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)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
810.375
That's a really massive difference if I did it properly.
it's so complicated actually that I'd rather not put any specific number on it
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?
if you can make sure the dependency is available during checkout, then yes
which often isn't the case
example: corporate git host accessible both on local and VPN IPs
Isn't the definition they're giving in the website the same as a dependency?
that one is fixable by specifying submodules relatively
but
some tools don't understand that
GitKraken specifically
@upper basin clone, submodule update, whatever requires pulling code from the dependency
I see.
when dependency is inaccessible (e.g. deleted), submodules break
(you just change what directory the history is applied to)
((instead of ./))
yes, just like non-submodules
That is very impressive.
not enitrely but close to it
from a truncated, optimised, history
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.
Didn't know it optimizes the history.
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
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.
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
So, what is the main distinguishing difference?
submodules are implemented through a link, subtrees are implemented through copying everything over
Ohh. So with submodules, we only copy the history, whereas with subtrees we copy the src as well?
So, how do we keep the history if the submodule is deleted?
with subtrees, we copy the history and when we build src for A we also get src for B
keep a mirror
Love you so much HEHEHE.
So with submodule we keep a mirror of the original repo?
And with subtree we clone it over?
if you want to protect yourself against deletion
and generally a good practice, especially if you're working in a corporate environment
Ooh so unrelated to submodule?
depending on doing git clone https://github.com/<owner>/<repo> has same implications as depending on https://github.com/<owner>/<repo> as a submodule
Hmm
I guess I confused them internally again hehe. You even explicitly said subtrees.
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?
@upper basin this is what happens when submodule is non-public/deleted
both submodules and subtrees can be nested
for subtrees it makes a bit less sense
in case of subtrees it's easier not to track inner subtrees
Since subtrees contain everything?
yes
I can't click on the commit name
because there is no name
Hehe
Imagine working at like a big tech company, and making a massive commit, and just saying "Added some code and shit."
No title.
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.
Others have answered it already, no?
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.
Start with fundameltals
Gotta learn control flow, data structures, etc. for any of em
What programming languages are you proficient with?
@still herald Bye!
@versed heath Sorry, didn't here what you said?
font what
Can you write?
@versed heath
did you find her annoying
Yes, she is annoying
Say here what you want to say?
What kind of bot you are making
What do mean by Record? @versed heath
Save chats or what?
Oh for voice chat
@peak depot ๐
hi guys
hey!
im actually so bored does anyone have an idea to make in python
!kindling
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.
whats that?
Some projects
Back in ~15
Did I say 15? haha
!e
print(580/64)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
9.0625
!e
'''python
print("Hi")
'''

