#voice-chat-text-1
1 messages Β· Page 64 of 1
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
ok
i have to sand it as file or i have to pay to be able to sand it as masseg? thats crz
Please react with β
to upload your file(s) to our paste bin, which is more accessible for some users.
i mad x o game i now its not the best way to do it but it work
1 | 2 | 3
4 | 5 | 6
6 | 7 | 8
it work like thes i hope you can undrstand it
Please react with β
to upload your file(s) to our paste bin, which is more accessible for some users.
hmmm
i think its good
fine for me
its ez to undrstand and clear
will i know its long and trash but its working yeah
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@main garden how can I lift the suppression
I was.. I was just asking others, if they are fine with that
That wasn't nice.
What?
I mean if I ask its acceptable or not, and ppl dont accept, I would defienetly either shut my microphone, or leave the vc on the temporary basis
Its' okay with me, but still touch some grass.
I respect others, bro
And I respect your apology, not all people are nice to apologize (or apologise).
Bro, I didnt apologize, I just explained stuff.. No need to judge, bro
Oh hi circuit board
It's been a while
Sounds like old commercial
Like when there's no colored tv
Classic, I must add.
Open settings
Find video and audio
Then click "test audio"
Add what?
Look my dms
We've met before
Talking about OOP
You talk that it's like baking
Yum super healthy
I just say, if Opal would come to data-science session of discord, does he have anything to add
See u guys
@uncut totem π
@uncut totem sometimes itβs best to give up. iβm noticing it myself.
@lucid furnace π
hi
how are u everyone
Hey guys can u please guide me
Data science is better or Data Analysis
@stuck bluff
@marsh lodge
@stuck bluff
@marsh lodge
@stuck bluff
which one i choose in your opinion??
@marsh lodge
2D
do you have complete control on C-shark and Unnity
can u guide me am fresher in my feild
i have to choose feild of Code World
@marsh lodge
Am fresher in Information Technology
@marsh lodge
DM please @marsh lodge
I'm afraid I won't really be of use to you
yes ?
very grokful conversation
@delicate wren was the guy putting everything moonfrog said in grok and then just reading off the answer
no, Grok takes time to think
maybe he had the most expensive paid plan..
I am new
@boreal dune π
my only criteria for sharing/making a joke is whether it's funny to me
seems to work so far
!stream 317279909112446976
β @stuck bluff can now stream until <t:1754185586:f>.
@bitter cobalt similar in insanity to homeopathy
the history is so funny
how it got "invented":
the original author had quinine allergy
which has similar effects to malaria
which is treated by quinine
this is such a giant scam, it's everywhere
tonic
tonic is water+sugar+quinine
those side effects are very rare
so that "invention" is so random
entire industry got birthed by such a dumb coincidence
going back to the topic of books, https://zguide.zeromq.org/
half-guide half-rant
afaik this does not get updated
burning of the Library of Alexandria is nowadays mostly considered to be a myth
yeah, also that
there is more than one library, there is more than one fire
it's more of a disrepair and negligence thing in the Europe overall at the time
just a long time of people not caring as much about science
and else
@noble flower Poland
since it's more of a book than a real tutorial/guide
@noble flower there is no discrete first human
just gradually evolved into
too blurry to specify the start
@pulsar lotus both
@noble flower there are multiple "Adams" and multiple "Eves" (in a sense of a common ancestor to all modern humans)
@sinful panther monetisation and open-source aren't mutually exclusive
(and I don't mean donations)
In the middle of the woods
kitchen isn't gonna mop itself.
@pulsar lotus
colors = ["Red","Burgendy","orange"]
for color in colors:
screen.fill(color)
colors = (Red,Burgendy,orange)
^^^
NameError: name 'Red' is not defined
like this:
screen.fill((255,0,0)) # (255,0,0) is Red
!e
a = (1, 2)
a += 3
print(a)
:x: Your 3.13 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m2[0m, in [35m<module>[0m
003 | a += 3
004 | [1;35mTypeError[0m: [35mcan only concatenate tuple (not "int") to tuple[0m
!e
a = (1,2)
a += (3,)
print(a)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
(1, 2, 3)
!e
a = (1, 2)
print(a[0])
:white_check_mark: Your 3.13 eval job has completed with return code 0.
1
!e
b = a = (1,2)
a += (3,)
print(a, b)
!e
a = set(["a","b","c"])
print(a)
print(a[0])
:white_check_mark: Your 3.13 eval job has completed with return code 0.
(1, 2, 3) (1, 2)
!e
a = {1, 2}
print(a[0])
:x: Your 3.13 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m2[0m, in [35m<module>[0m
003 | print([31ma[0m[1;31m[0][0m)
004 | [31m~[0m[1;31m^^^[0m
005 | [1;35mTypeError[0m: [35m'set' object is not subscriptable[0m
:x: Your 3.13 eval job has completed with return code 1.
001 | {'a', 'b', 'c'}
002 | Traceback (most recent call last):
003 | File [35m"/home/main.py"[0m, line [35m3[0m, in [35m<module>[0m
004 | print([31ma[0m[1;31m[0][0m)
005 | [31m~[0m[1;31m^^^[0m
006 | [1;35mTypeError[0m: [35m'set' object is not subscriptable[0m
!e
d = {1, 2}
print(next(iter(d)))
:white_check_mark: Your 3.13 eval job has completed with return code 0.
1
which just gives some value not necessarily first
But its next in order?
!e
print(next(iter({"1", "2"})))
:white_check_mark: Your 3.13 eval job has completed with return code 0.
2
It's random from what I recall. Can't count on it to maintain order.
So if you ever care about order in your datastructure, don't use sets.
dict is insertion-ordered
It's very good for cases where you don't care about order.
set is hash ordered first, insertion ordered second
test_subject[0]='mohamad'
dict has keys though, it doesn't need to be ordered.
I have no usecase for sets. I don't think I've used sets in anything... yet
it is ordered, just not by less/greater
is this wrong
tuples are immutable
You have a set of labels, and you want to check if an input is in that set, otherwise raise an error.
!e
wrong = (1, 2, 3)
wrong[0] = 4
:x: Your 3.13 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m2[0m, in [35m<module>[0m
003 | [31mwrong[0m[1;31m[0][0m = 4
004 | [31m~~~~~[0m[1;31m^^^[0m
005 | [1;35mTypeError[0m: [35m'tuple' object does not support item assignment[0m
π₯
!e
tests = {"john", "joe"}
tests[0]={"bob",}
print(tests)
test_subject1=('aya',10,15)
:x: Your 3.13 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m2[0m, in [35m<module>[0m
003 | [31mtests[0m[1;31m[0][0m={"bob",}
004 | [31m~~~~~[0m[1;31m^^^[0m
005 | [1;35mTypeError[0m: [35m'set' object does not support item assignment[0m
test_subject1
vs
test_subject[1]
tuples are primarily for heterogeneous items
@noble flower tuples are generally not meant for sequences, instead they're used to group values together in "rows"/"records"
things like tuple[str, int]
rather than tuple[something, ...]
And if my requirements get worse, learn SQLite
(tuples do happen to be sequences, but that's more so that you can handle those heterogeneous things generically)
C#, Rust, C++ and some other languages very strictly do not treat tuples as sequences
"software development: our marathons are shorter than sprints"
@noble flower that page probably has the range specified
ok thanks and sorry again
grass = (18, 182, 18)
upper limit
returns a ptoblem
screen.fill(grass_green)
^^^^^^^^^^^
NameError: name 'grass_green' is not defined
no
Clash Royale and Happy Farm are kind of the same game genre
its for a game
@noble flower they save way more than they pay out
got it to work
0
compared to the US, where Tucker is from, public transport in Russia exists, even in relatively remote places
so it's not just Moscow
@glad venture π
I work nearly full remote, and some of my coworkers are full remote
you can also use AI for disposable code when you don't entirely understand the project or don't want to be bothered yet
prototypes or whatever
@nova hill π
don't depend on AI-generated code
it must stay at the outer layers of dependency chain
=> learn patterns which allow you to keep it there
sounds like a course idea
B2BSaaSathons
judged by the amount of compute wasted on parsing JSON
SOAP everywhere
yes
my only interaction with SOAP was UPnP
some parts of it are
running HTTP on top of UDP
the what
running HTTP on top of UDP using multicast
oh, wait, no, it's worse
I guess within local network they just assume UDP isn't as limited by packet size
@grim wagon π
π«‘
@mild flume let the fish have some fun
player.draw(screen,ocean_blue)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
TypeError: Player.draw() takes 2 positional arguments but 3 were given
you probably need to add self as the first argument in your Player class
@stuck bluff China helps both sides
Chinese soldiers there are by the same logic as Indian or Serbian soldiers
@dusky wren π
@lament wharf π
code first
right wing tech bro slogan?
@ruby socket π
i want to learn problem solving with python language, but i basically use c++, so converted to python is best option?
I recently went through a couple of months of believing Flask changed for the better
(it didn't)
"does HTTP run on top of TCP or UDP?"
π₯
@crystal aurora I do expect you to name one more thing in addition to UDP/TCP
@odd cliff it's actually the correct answer
agreed Alisa good mention
asyncio with the amount of stuff inside it covers so much
AbstractEventLoop is a giant interface
HTTP/1.1
(just to exclude QUIC from that question)
HTTP/1.1 actually doesn't change the answer (it's both)
thanks to UPnP being a weirdo protocol
they use HTTP over UDP
transaction isolation
I see transactions running into each others hourly, so this is far from unrealistic scenario
OMG this is very interesting, I'm learning a lot of concepts that IDK
Where can I find this kind of questions?
pseudoaccess
(TIPC)
hi
What?
You'll have joined voice chat without voice privileges. I like to wave to such people in the text channels, because of the way they're set up here people often miss them. That way you can take part in any voice chats without having to speak.
Yeah I know
@delicate canyon
hm
could this be bcz of a different browser?
me neither
for me it works so im confused
yeah
yeah
ye
π
yeah right
i will add the icon change too
alr
so how is it from the older one
yeah i didnt
dont do it
yea i didnt do media stuff yet
media queries i mean
did u do media queries
i mean how did u handle the screen sizes?
no idk about the libraries expect tailwind
yeah i know
i just.. didnt put them
i was too lazy
i mean
i hate writing media query stuff i am not lazy tbh
but fine i will do it
just learn yeah
i'll do it with tailwind i gues
alr uh
I am
i hate doing responsiveness :/
ok
i will fix it
so uh
after this back to python ye?
k
i have
i mean well yeah
im shy
yeah hold on 1 minute i be back
back
so uh i've got ear phones and yk the built in microphone in them it works fine
i uh i have never talked in english in my life before
ok just
dont laugh okay it might be terrible
bruh say ok π
@pulsar lotus linkedin
@pulsar lotus mb the power went out
no worries
can u link the social media app u use
nedbat is on it
uh ok
He signs up via hachyderm.io
I signed up via fosstodon (but they stopped the sign up for now)
Both of these are powered by Mastodon
alr
Hello everyone
Hi
hey all
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
anyone doing any project?
@glad turtle Hello?
hey hey
@slow scroll confirmation that your laptop can go all the way up to 64GB RAM
what do you wish to do for it?
dayum i will be buying those ram sticks for sure, thank you for the help
the memory for this model is "on board", some say soldered.
it's not meant to be upgraded. it can be but requires special equipment.
when you buy your next laptop, always check if it's DDR4 SODIMM and there is a maximum so you can know it's upgradable.
in the case of your model, the service manual doesn't mention the RAM, the user manual doesn't mention it either, meaning it's not meant to be upgraded.
btw, there's multiple M3500QC models, so your complete model name is required if you want to check.
references:
[1] https://www.asus.com/in/supportonly/m3500qc/helpdesk_service_guide/
[2] google search: site:notebookcheck.net inurl:m3500QC
Vivobook_ASUSLaptop M3500QC_M3500QC
This is what I got from systeminfo
try hwinfo as well
Is this linux command?
I'm on windows
so it won't work
i use the portable version https://www.hwinfo.com/download/
on linux you have inxi, lshw, cpu-g, and many other ones
@glad turtle
Interesting..
@blissful walrus π
@pseudo solar just a clarification: here, problem means challenge not issue
it's something to be solved, not something to be fixed
@pseudo solar and @glad turtle if you guys are in need of help with code/helping with code, please go to Code/Help channel TOGETHER. This way we can continue our convo and don't need to channel hop,
π/Help
i'm good, i won't disturb you any further, please carry on your conversation
Come on share some meme
arxiv 2504.00073
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
??
peak 1april arxiv
https://arxiv.org/pdf/2504.00073
the extrapolated graph is so funny
What's happening in the server
Gensokyo
The vc I mean
Hello
@subtle mauve π
CLI to-do list
don't mind the name
so many emojis
tbh I made it using AI
never make a readme file
no I'm talking about the read me file
this looks more like an emoji for pinning tasks
blame GPT 4
I'll send a video of me using it
I highly recommend installing this for development
An extremely fast Python linter and code formatter, written in Rust.
it will catch and fix formatting inconsistencies, to make code easier to read
what exactly does it do
does it work for linux nvim?
thank you so much
@elder elk π
actually I don't have 3 spaces
I have to line it up with the second word
@clever isle π
the only place where I have 3 space indent I use tabs instead
to look perfect
it's just formatted to look like 3 spaces
(there is no Python involved there)
I have to press space and delete cause it automatically jumps ahead
that joke goes so far that even if you looked at it via GitHub web, it'd still be 3-space-wide
I'm proud of it, but my mother's reaction wasn't let's say
Tabs are 8 characters, and thus indentations are also 8 characters. There are heretic movements that try to make indentations 4 (or even 2!) characters deep, and that is akin to trying to define the value of PI to be 3.
-- Linus
the best
btw, you don't need \ here I think
https://github.com/Unholyblue/TheUnholyStash/blob/fffb7fdcb721e30812f35f9a71e647c5bfa12957/.local/bin/todo#L134
.local/bin/todo line 134
print(f'Removed \"{removed["description"]}\".')```
4 spaces being indentation/equivelant to one tab is better than 8 or 2, 2 is too short, 8 is too long
what's wrong with this line?
you have ' as outer quotes, which already means you can use " directly without \
oooh I see it
it should be long, that's the point of that quote
don't indent so deep that 8 is too wide
someone on reddit said it was made by AI which let's say I wasn't to happy to hear
Rationale: The whole idea behind indentation is to clearly define where a block of control starts and ends. Especially when youβve been looking at your screen for 20 straight hours, youβll find it a lot easier to see how the indentation works if you have large indentations.
I need space for text not white space
never sharing anything on reddit again lol
solution: don't use Reddit
fr
I was trying to get advice
but to be honest that guy was 1 out of 6 people who actually gave me solid advice
The answer to that is that if you need more than 3 levels of indentation, youβre screwed anyway, and should fix your program.
what π
Torvalds has some quite strong opinions
(do remember that this quote is about C not Python though)
I have a function, match statement and extra shitshow going on in my +3 levels of indent
Dont judge me
@stuck bluff 100%
he has nothing to lose
yeah, this already gives 4 at least
class:
def:
match:
case:
...
my next project is gonna be more about what I wanna do
Yes exactly so 3 or more indent levels aint that bad
class:
def:
while:
try:
match:
case:
...
Now this is my style of spaghetti
@stuck bluffI'm saying compared to other people (Microsoft, Apple..Etc)
actually depends quite a lot on the style
like if you go quite far into functional style, you may reduce the depth a bit
except for definitions of decorators
do you think my coding is good?
or average
you really need to get it formatted first
and, the guideline that I always repeat: don't use os module
the only thing you need from there is environment variables
os.environ
what about the os.path ?
Added in version 3.4.
Source code: Lib/pathlib/
This module offers classes representing filesystem paths with semantics appropriate for different operating systems. Path classes are divided between pure paths, which provide purely computational operations without I/O, and concrete paths, which inherit from pure paths but also provide I/O operations.
...
^ this is the proper way
I don't get this tho
nor do many tutorials
inconsistent indentation
, missing spaces around operators and keywords (return specifically)
please show me
.local/bin/todo lines 28 to 31
if not tasks:
new_id = 1
else:
new_id = tasks[-1]["id"] + 1```
so it just comes down to practice to know which is good?
(how it's expected to be broken down)
class:
def:
while:
(method call)
def:
try:
(function call)
def:
match:
case:
...
now I'm feeling uncomfortable
that is so not satisfying to look at
alright, will do
it has this note
although I found argparse to be quite confusing
similar note in urandom
interesting, it gives better alternatives
and another
C does allow some things with indentation that Python doesn't (from same style doc)
switch (suffix) {
case 'G':
case 'g':
mem <<= 30;
break;
case 'M':
case 'm':
mem <<= 20;
break;
case 'K':
case 'k':
mem <<= 10;
fallthrough;
default:
break;
}
Why all of them left all the sudden?
how do i fix rounding errors in my code
is that chris
Yeah
how are you doing
been a while
I'm doing good too
you probably don't recognize me, this is an alt, my main was Mr.z
Whats up
Anyone who knows game dev
wrong server
go to PirateSoftware's server
he'll explain everything on Mspaint
It was a joke
Flew over your head
oh true
"I ran out of mana" -Youknowwho
it was funny
some people do, but he also shouldn't act like he knows what he's talking about
and when people give him constructive criticism, he bashes out
you know Coding jesus?
yo btw I made my first full on project
Nah I never spam
niceee
Guys I learned scikit learn should I keep improving that or start learning Tensorflow
those are related so you can learn them side by side
but I loved it
I made that one also as first big project but with GUI
on my own, but I asked AI to explain the syntax
I used Json
nothing too complicated
scikit is great for learning the fundamentals! I loved it for learning stuff like linear regression/random forest! to be fair, from here, if you wanna do ML/AI, look into both PyTorch and Tensorflow. They each have their pros and cons
after working with sqlx I don't want any other way to interact with RDBMSes
Json was easy to use, loved it
way too convenient with near 0 abstraction
csv on the other hand
JSON-to-Rust-to-CSV and back is quite easy
Chris what's your main job if you don't mind me asking?
very easy to just offload all the logic to serde there
you can't turn it directly?
probably you can do something similar in Python too
nested fields don't map nicely, you do need some extra amount of logic
why Rust
serde
I am a professional rust hater
Hello Milien
hello milien
play what?
@thin lintel I will start the game soon then
which game?
Which game are you guys playing
remember: professional hater is less credible than just hater
damn
as in "paid to dislike something" doesn't really sound that nice
Serde
you're correct!
I am a no-fund hater
Civic 6
especially with derive
@umbral rose as in was the save ever loaded?
did someone say my name
no
#[derive(Deserialize, Serialize)]
struct Name {
#[serde(rename(serialize = "given name"))]
given: String,
#[serde(rename(serialize = "family name"))]
family: String,
}
#[derive(Deserialize, Serialize)]
struct Handle {
handle: String,
}
#[derive(Deserialize)]
struct Person {
name: Name,
#[serde(flatten)]
handle: Handle,
}
fn main() -> anyhow::Result<()> {
let Person { name, handle } = from_value(json!({
"name": {"given": "Alisa", "family": "Feistel"},
"handle": "parrrate",
}))?;
let row = (name, handle);
Writer::from_writer(std::io::stdout()).serialize(row)?;
// given name,family name,handle
// Alisa,Feistel,parrrate
Ok(())
}
being able to do stuff like this mostly through declarative logic is quite great
- inline JSON in a statically typed language
hmm
I think I can simplify it a bit
is this rust
yes
slightly simpler now that I don't do any buffer manipulations
so it just prints directly
ahh interesting
and, if you just take something from stdin and print it onto stdout it becomes just this
fn main() -> anyhow::Result<()> {
let Person { name, handle } = from_reader(std::io::stdin())?;
let row = (name, handle);
Writer::from_writer(std::io::stdout()).serialize(row)?;
Ok(())
}
(use statements and other declarations omitted)
so most of the logic is in the types rather than some imperative code
untested, but this is approximately what needs to be done to process an entire array rather than a single value
fn main() -> anyhow::Result<()> {
let rows = from_reader::<Vec<_>>(std::io::stdin())?
.into_iter()
.map(|Person { name, handle }| (name, handle));
let mut w = Writer::from_writer(std::io::stdout());
for row in rows {
w.serialize(row)?;
}
Ok(())
}
(or the same thing written slightly differently)
fn main() -> anyhow::Result<()> {
let mut w = Writer::from_writer(std::io::stdout());
let rows = from_reader::<Vec<_>>(std::io::stdin())?
.into_iter()
.map(|Person { name, handle }| (name, handle))
.try_for_each(|row| w.serialize(row))?;
Ok(())
}
hello
@pallid scarab π
Hello opal
What is this
examples of converting from JSON to CSV with Rust
types are defined in this message
@ashen dew π
Is rust easier than C++
Generally
it's easier to do things correctly in Rust
it's easier to do things incorrectly in C++
Do you know C++
I know enough of C++ to see how irresponsible it is to use that language
You seem to have very bad relation with C++
I am new to C++ though
Learning with DSA
@dense trench π
Opal man you can talk you know
hello
Just talk random than it's feeling boring
imo C is best for learning the basics of data structures
whereas Rust is more suited for higher level stuff
You seem too serious to talk man
@stuck bluff Can I ask your opinion on a thing ?
iterators and things alike
Do you think as the browser wars reignite in this ai era will we ever see browser kinda consuming the user space in the OS ?
C++ got iterators, slices and ranges completely completely wrong
chromebook
yes a good example
much of modern Windows runs on browser-like stuff
wasn't the start menu react or whatever now
the start menu is a react app true
even spacex dashboard
on the dragon capsule
Hello milen
yes and no
its easier in the sense of better errors, better abstractions, etc etc
but stuff like the borrowe checker take a little bit to get used to
C++ has lifetimes too and they're way more confusing
and instead of the compiler you have to rely on your understanding of the standard
https://www.cppnow.org
A Deep Dive Into C++ Object Lifetimes - Jonathan MΓΌller - C++Now 2024
A C++ program manipulate objects, but it is undefined behavior if you attempt to manipulate them while they are not alive.
So let's do a deep dive into object lifetime.
When are objects created and when are they destroyed?
How does temporary ...
@fair heron just put this in the same place i put mine: https://github.com/Spelis/Spelis/blob/main/.github/workflows/snake.yml
yay. Contribute to Spelis/Spelis development by creating an account on GitHub.
thats the snake thingy
might need some tweaking idk
<img src="https://raw.githubusercontent.com/osyra42/osyra42/output/snake.svg" alt="Snake animation" />
@fair heron
@crimson wharf π
@fair heron the link to the image seems broken... could u check? it returns a 404
wassup
:/
yeah my name isnt really that easy to say
i cant stream so i cant show the current progress of my game
@last hedge Wait, am I just seeing things, or does your profile picture really lip-sync when you speak?
it doesn't lip-sync
just activates an animation when hes talking
@edgy chasm i see π
break does stop a while loop (while True), right?
yes.
show the code?
im thinking cause of the function
are u sure it reaches the if answer lower branch? Can you do a print so we can see? Just before the 1st if
wait i think i found the solution
you are comparing awnser.lower() against a string with uppercase letters btw
wait
Also i think you prolly wanted to write "answer" @lone crypt
OH MY GOD I JUST HAD TO PUT A FUNCTION AFTER THE WHILE LOOP
I AM SO STUPID
-# i mean i stopped working on this before i knew about slightly complex stuff like breaks
beta move
@edgy chasm You know the reason why everyone learns java over rust is because most companies built their apps or solution with java
i can speak btw
you know why java is slow
cause it has a massive virtual machine running
@edgy chasm what made you learn rust btw was it your first programming language or waht
and takes tons of memory
just heard it was good
that is true
but it is very popular
just like why linux is better than windows in so many ways but windows has more users
You have been active for fewer than 9 ten-minute blocks. what does this mean
You have been active for fewer than 9 ten-minute blocks
90 mins then
ππΏ
Hello
Yeah I agree
Are we talking about game?
@proper ridge
class Solution:
def addStrings(self, num1: str, num2: str) -> str:
a=list(reversed(num1))
b=list(reversed(num2))
if len(a) < len(b):
a,b=b,a
a+=[0]
a[:]=list(map(int,a))
b[:]=list(map(int,b))
carry=0
print(a,b)
for i in range(len(a)):
ai=a[i]
bi=b[i] if i<len(b) else 0
a[i]=ai+bi+carry
if a[i]>=10:
a[i]-=10
carry=1
else:
carry=0
if a[-1] == 0:
a.pop()
return "".join(map(str,list(reversed(a))))
a=Solution()
print(a.addStrings("456","77"))
#print(a.addStrings("11","123"))
hey guys could you help me with something i cant talk because im server muted
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
vowels_found = []
positions = []
vowels = ['a', 'e', 'i', 'o', 'u']
s = [char for char in s]
for i, char in enumerate(s):
if char in vowels:
vowels_found.append(char)
positions.append(i)
vowels_found.reverse()
for i, j in enumerate(positions):
s[j] = vowels_found[i]
s = ''.join(map(str, s))
vowels_found = []
positions = []
vowels = ['a', 'e', 'i', 'o', 'u']
s = [char for char in s]
for i, char in enumerate(s):
if char in vowels:
vowels_found.append(char)
positions.append(i)
for i, j in enumerate(positions):
s[j] = vowels_found[-(i + 1)]
s = ''.join(map(str, s))
@real dune π
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Wudder buddle
make sense for me @tame leaf
lana is ukrainian your native language because you have 0 accent
i thought you were like from the us
i'm not from the us
Heello
hello
Hi
was it because of me?
@stuck bluff do you know shodan is on sale at 5$
oh okey i see
i see
If you find yourself grouping data and the functions that work on that data, a class is often the right tool
@lost pollen
@wheat verge π
hi
im making a code to open a headles window then go to kahoot to put a random pin then check if the pin works or not then close it
i have been testing a good amount
is there somwhere i can show u my code(sry i just joined the server a min ago)
This doesn't sound like something I can help with. #βο½how-to-get-help
oh ok no wories sry boput that
hiπ
hi
@buoyant crater If it is dedicated it is definitely Heating and Power Supply issue!
Very possible
@glad turtle It has liquid metal from factory and the fans have been dusted within the month.
I do believe it is genuinely failing and there isnt much i can really do about that.
interesting, what laptop model please? with cpu and gpu name please
One second
Asus ROG Zephyus GA402RJ
Ryzen 9 6900hs
RX 6700s
Okay try this :
Yes?
Did you try to update the driver?
Hmm
Im usually decent at troubleshooting and figuring out what is wrong, but this one has me stumped.
@buoyant crater here's where you find details about your laptop.
in that link it says it shouldn't go higher than 54 C (129 F).
(case temp)
For the chassis
Not the CPU and GPU
They stay around 75-85C under high load
@buoyant crater I mean you'd have to check RPM fan speed, also temperatures, to make sure they're within reasonable limits.
maybe your fan/cooler is broken..
I had a mini pc with a broken cooler and it was running hot and making noise, until I replaced it. I was able to identify it was broken because its RPM was lower than the other same model mini pcs.
Under extreme load they will spike to 90-95C
That's very hot for sure.
Have you considered a Cooling Pad?
This is still extremly normal for these models of laptops
Does it make a difference?
Has "helped"
lowered temps from 96c to 85c
still crashes
tJMax: 95Β°C
For this cpu
Looked at Windows Event Viewer? typically it gives you info on why it crashed or what has crashed
error 6008: Unexpected shutdown occured
Nothing else
And prior to that, were there any errors?
Can you get it to crash reliably? Are crashes linked to high temperature?
Crashes are linked to heavy load as opposed to temperature
Could be either one though
In your laptop GPU and CPU both have metal cooling.
So I guess fan must be having some trouble and putty or pad on vram must be in bad shape
make sure to check it out
I will
Other way is to find log
The only reason i dont think that liquid metal has spilled is that the laptop would have been fully dead by now if it was shorting.
did you take out the heatsink so you can look at the liquid metal?
error log can give you insist about problem
if it detects
2000$ laptop is not on my list of devices i want to disassemble
Im ok opening the cover and dusting/cleaning
but digging deep is something i am not comfortable with
Its not that im not good at it
I am
In that case, hire a technician
Its just i dont like doing this
check the error logs
this
Asus/ROG is known to have not good QC (Quality Control)
does blue screen appear before crash
Never
Okay so it rules our bsod
Just black screen fans turn off
Whole laptop just hard off
Like holding the power button
And you are certain it is not a driver conflict?
100% sure hardware issue
99.9%
You should contact a computer technician
Thank you
@buoyant crater For your laptop crashing/shutting down, you need to monitor it probably via HWinfo that writes metrics into a file.
So when it crashes, you can do a bit of statistical analysis to see if you can correlate it with high load or high temperature, and how
high of a temperature it really is.
I did do that but I got distracted and never read the file, thanks for reminding me, I have a file from when it crashed.
Yeah if you can get like 3-4 crashes, then you can throw those files into Excel and start looking at the numbers, maybe make some charts.
You may find that it crashes at high temperatures only in which case you found out what's happening.
If it crashes for low-temp.. then it's something else.
@glad turtle I would like to say something to you
It was nice knowing you
You always help fellow member
I really appreciate you..
Which side of the Inshove landing side terf war are you guys on
i'm still learning it
cookies are still the way
my screen just locked
not my doing
@crystal aurora we can hear
I think the only language I actually forgot how to use is Pascal
the language that I have the most opportunity to forget next is Lua
but it was way too recent (4~9 years ago)
most of my non-trivial learning of Lua was 7~9 years ago
yes
(fundamentals of what _ENV even is)
Welcome to my Channel. This channel is focused on creating tutorials and walkthroughs for software developers, programmers, and engineers. We cover topics for all different skill levels, so whether you are a beginner or have many years of experience, this channel will have something for you.
We've already released a wide variety of videos on to...
@quick tide if you want a quick answer
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
there are always more radical options
I think if I co-author a book titled "Python Exercises" or "Python Challenges", I can become a rich man.
"How to Make Money with Python Exercises"
Buy my book, but hurry up to catch the 80% discount.
he's funny but finding any video that's appropriate to post is quite a challenge
@crystal aurora "gave up everything for trading, then found out there is more to give up"
in Abu Dhabi is there tax on trading?
the expected return, factoring in the tax people, is somewhere around 0Β±(creative accounting)
@crystal aurora well, what else you expected from such name
lmao
@fossil dust consider learning to communicate in the human society, useful skill
@fossil dust please..
this is for your education
why dont you talk about your criminal 500K job offer?
@fossil dust please chill
if you think in Russia this is some sort of secret or private thing, go learn
I can very readily publish the details
as I've done multiple times
Ο
okay so, public warning for any other Rust programmer:
if you're getting contacted because someone found your codeforces account and you wants to work on some exciting Tor-related project,
don't
or, to a broader audience, telegram isn't a place for job offers
and, fun fact, you got the number right, just for the wrong currency and wrong duration
these people, while they pay quite a lot for an "entry" level, don't pay enough
not worth the risk, ever
oh, and it might sound funny or weird, but there was one other reason why I rejected:
no open source
which is, while a dumb business decision, is understandable within their circumstances
also these fools upgraded to Gitea 1.23, very unfortunate for them
as in they can't upgrade to Forgejo
oh, and if you're a sketchy employer:
probably check before starting your offer with "I found your contact through codeforces"
Hi @crystal aurora
TIL Telegram updates embeds of earlier messages
I do dislike that I didn't use '\N{plus-minus sign}' in a message
I think I grew even more pedantic about typesetting since then
!e
print('\N{plus-minus sign}')
:white_check_mark: Your 3.13 eval job has completed with return code 0.
Β±
to my surprise, they tried to make up some story for where the money is coming from
@crystal aurora general assumption is that something is known that others don't
i.e. this is kind of unanswerable
Hi π
taxonomy ontology..
@crystal aurora the main point there: there isn't a necessity for edge/advantage over others
Am I at wrong place?
wrong for what?
it is in some remote sense Python-related
IDK, I can't comprehend most of the discussion.
[translation]
ah, understood, it [TL note: Forgejo] isn't needed, I think, everything is working for us already, not planning to migrate
@crystal aurora I'm not violent enough to call this "the most punchable sentence" but this I did consider insta-blocking in response to this
"don't worry, they neither"
Good to know, I'm at right place!
it's about trading. what do you want to talk about?
Python
okay alright. what about Python do you want to talk about?
I got no clue about python
I'd like to know about it and learn
dumb suggestion, but I recommend this anyway: https://docs.python.org/3/tutorial/index.html
it is up-to-date
@misty sinew have you read the tutorial ? ^^
@vale tinsel or they want to GPT it
or you want to vibe-learn Python?
No I have not!
@crystal aurora audio cut out?
@vale tinsel it's fine on your end, Maro seems to have connectivity/audio issues
wat is vibe-learn?
I appreciate it!
@crystal aurora now works again
is it possible to learn Python by not reading anything about it?
can you teach me how to learn Python without reading any books or writing any programs?
it'd be so much faster than what I'm doing now
How could I teach you?
I have no clue about python!
well, it looks like you're learning Python without reading anything about it.
teach me how to do that.
I'm learning about it, haven't understood it yet!
Don't understand
you were talking about people entitled to learning a language in only a month
(the context for that reply)
Ohhh lol yeah
I got to know about Python from CS50
did you like CS50?
I hate it, most of it is yapping!
really? wow.. ok
let me show you an image
@vale tinsel Python is mixture of English + Maths.
This is my understanding about it
hm...
what do you think about this image?
does it have meaning?
okay I'm back with a sudden enlightenment
@crystal aurora I already forgot, but was it you or ikβ asking about whether it's possible to learn something just by watching (rather than doing)
Confusing but I suppose chain starts from bottom right corner ball
What about this image? Does it have meaning?
No clue
Does it make you curious what it means?
the response would be the question about where I learned C++ move semantics from
yes
or, like, anything sane related to C++
@fossil dust when borrowing open-source code for reference, I highly recommend leaving a link to the original in a comment or somewhere else
(first for yourself, so you can find it again quicker, and secondly because license)
having code be source-linked simplifies debugging later a lot
yeah Im trying to understand how to best use it
thanks for telling
((most people won't care that much about the license, but both GPL fanatics and Oracle exist))
if it relates to AWS, might be useful to ask AWS
https://aws.amazon.com/q/developer/
@glad turtle Could you explain the meaning of the image?
That's for you to find out. they say "An image says a thousand words".
This is the best guess I have : different outcome from same input
as you might expect, there is no clarification on whether those are real or benchmark
@fossil dust if you go with VSCode,
for linting and formatting: https://marketplace.visualstudio.com/items?itemName=charliermarsh.ruff
for working with pyproject.toml: https://marketplace.visualstudio.com/items?itemName=tamasfe.even-better-toml
and for READMEs, docs, whatever: https://marketplace.visualstudio.com/items?itemName=DavidAnson.vscode-markdownlint
mentioning these because they're still not always the default
I have some doubts about voice call
linting is very often missing
may I ask?
why not?
How come I can't talk?
formatting is often done with black+isort, but those are sometimes problematic
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
thanks a I will check them out
π₯
Even Better TOML seems to be more of a Rust thing, I haven't seen it recommended in Python spaces enough
and Markdownlint is often overlooked because Prettier formats Markdown too
Java 17 app starting a Java 8 container
formats badly
markdownlint will get angry at you if you use prettier against .md files
@vale tinsel I don't remember whether we had told you that before, but please leave the system Python alone
you really shouldn't tie yourself to it
I wish I could connect to the discussion in Voice Chat 1.
either have something (not the system) that manages Python interpreters for you, or do it yourself if you want so
@glad turtle what are you meaning by type inference?
I might've missed the context
I'm not sure, possibly some not-yet-mature type hinting.
I'm just trying to use his terminology.
I've deployed Python 3.8 FastAPI+Pydantic apps after 3.8 was dead, so it does work
the answer is almost always only uv or docker, if you have even a slightest hint of such issues
uv also pins dependencies
which is more important
@vale tinsel are you doing pip freeze?
when your server host dies, you need to restore the exact same dependencies as before to guarantee it works as it used to
which requirements.txt on its own doesn't give
gradually rewriting whatever we had into Rust wherever possible
axum is a web application framework that focuses on ergonomics and modularity.
FastAPI remains as an option for something live-reloadable, but not really a priority any more for most projects
Wat da hel is rust?
FastAPI and axum can be viewed as a pair of similar things
OCaml: Mozilla Edition