#voice-chat-text-0

1 messages · Page 454 of 1

somber heath
#

I mean, you can do it for ten years and be shit, or do it for one and be good.

cedar hound
#

Do you have any advice for new people?

primal shadow
#

It never ends

somber heath
#

Prepare to feel stupid.

primal shadow
#

So stop trying to get to the end 🙂

#

It's a lifelong journey, enjoy the ride.

somber heath
#

Be ready to become lost.

primal shadow
#

Yea, feeling dumb is a normal thing for me these days

somber heath
#

Prepare to give up.

primal shadow
#

But the more you struggle, the better you feel when you figure it out

somber heath
#

(Then pick it back up again later )

primal shadow
#

And when you give up, you'll find the answer when you wake the next morning

#

a good night's rest is often the best way to figure out the answer

primal shadow
#

Yea, leaving it on the back burner is a great way to solve all sorts of issues

#

not just programming

somber heath
#

Work in lieu of sleep is harmful to your overall productivity over time.

urban abyss
#

Hey peeps

somber heath
#

It can be a last minute tactic to get over a deadline, so long as you rest afterward. Do not put off rest to study for a test.

cedar hound
#

Lol

somber heath
#

You will kill your recall of things you do know.

cedar hound
#

Even i didnt start study yet hahaH

cedar hound
#

Why still can use mic

#

Yo hello bro

obsidian dragon
#

!voice @cedar hound

wise cargoBOT
#
Voice verification

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

somber heath
#

Exit the voice chat then rejoin.

cedar hound
#

its work

#

ty

somber heath
#

Hoya.

#

It's night.

#

The owls are pretty reclusive.

#

I'm not sure I've ever seen any.

#

Owls.

obsidian dragon
#

I can put .wav to vbcable as microphone to lipsync 3d models with python

vocal basin
#

I decided that switching between 5 tasks wasn't enough, so joined here so now it's 6

#

@cedar hound it's given per-request on a temporary basis at first

obsidian dragon
#

No noisy unicode characters (for example z̯̯͡a̧͎̺l̡͓̫g̹̲o̡̼̘) or rapidly flashing avatars.

vocal basin
#

what would you like to stream?

#

!stream 205138171783020544

wise cargoBOT
#

✅ @cedar hound can now stream until <t:1744979047:f>.

somber heath
#

I don't know if I believe in roadmaps.

vocal basin
#

@cedar hound I see T-SQL in there, so that's already an issue

#

there's more than one road, so that's already better than most

#

@cedar hound Microsoft themselves are moving towards using PostgreSQL instead of MSSQL

#

don't think mixing C++ and C# is a good idea

#

C++'s OOP is somewhat unusual

#

inheritance in C++ is almost universally a bad thing

vocal basin
#

if the goal is to learn the basics of memory management, I'd highly recommend using C instead

vocal basin
#

though now he changed it back

#

ig I can change back to full-Latin too

cedar hound
#

ty for help @vocal basin

somber heath
#

I guess.

#

Come on, Osyra. Get it together.

#

IHm...

upper basin
#

I've learned how to dodge locked missiles. Enemy is not happy.

vocal basin
#

unlocked missiles

upper basin
#

Yes.

#

It's a bug in game. When you get locked on, you have to get upside down and turn a bit fast.

vocal basin
#

@obsidian dragon was that speed gain from -c:v copy

upper basin
#

Can dodge every single missile.

#

People are PISSED.

vocal basin
#

in Everspace (part 1) you can dodge almost everything with holding E+Space

#

(i.e. barrel roll, not just roll)

somber heath
#

@brisk pasture 👋

brisk pasture
#

Hi

upper basin
somber heath
#

Osyra, your kitty has grown.

obsidian dragon
brisk pasture
#

I want to learn about Python automation

somber heath
#

Automate the Boring Stuff With Python.

obsidian dragon
#

Beautiful Soup, Requests

somber heath
#

I think it could do with a polish, but it's generally considered to be very good.

obsidian dragon
#

pyside6

brisk pasture
#

like this

obsidian dragon
#

selarium

somber heath
#

I mean, what's the worst that could happen?

obsidian dragon
#

try groq if you remain lazy

vocal basin
#

phone call happened

vocal basin
#

(as in those two sound similarly)

somber heath
#

@marsh nimbus 👋

marsh nimbus
#

hello

#

@somber heath can i have permision to speak

#

in chatrooms

wise cargoBOT
#
Voice verification

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

peak depot
somber heath
#

I can.

#

@glass kite

#

I'm not.

#

Why?

glass kite
somber heath
#

...huh.

#

Well, not me.

#

@upper basin Can you hear Millen?

#

@undone mist 👋

#

Just panatone...which I'm not too much a fan of.

vocal basin
#

wtf
Windows just sent me a notification recommending to pin the solitaire in the task bar

#

I have notifications turned off

#

The Zachtronics Solitaire Collection is here! Inside you will find seven totally unique solitaire games originally designed as minigames for our 2016–2022 releases, updated with new 4K graphics, plus one brand new solitaire variant found only in this collection.

  • Shenzhen Solitaire: A FreeCell-inspired solitaire variant with a three-color de…
Price

$9.99

Recommendations

676

▶ Play video
vocal basin
#

@upper basin serious Duck Game gameplay is >50% semi-exploits

somber heath
#

Cheese.

vocal basin
#

if you want to prevent it => redesign the level

candid spire
#

Life is full of ego!
What you think is not you!
Chasing dreams, Playing games, Simping and approaching women or men, many more things.

Enjoy the present moment 😀, you are perfect as it is!

vocal basin
#

not even silver

#

there's a training thing for diagonal shots I made

#

at best I was able to score 24

somber heath
#

If you wear a bikini to the zoo, is it a zucchini?

vocal basin
#

I really did just try to do |(, argument)| in Rust

#

as if it was ([, argument]) => in JS

somber heath
#

"Fe fi fo fum, I smell the blood of an Englishman. Be he alive or be he dead, I'll grind his bones to make my bread."

upper basin
#

Be he alive or be he damned, I'll grind his flesh to make my ham.

#

It would have been a nice double insult, saying humans are pigs.

#

You missed out you fe fi fo motha-

somber heath
#

@soft axle I think you're giving them to much credit.

#

@primal shadow You'll be completely right.

vocal basin
#

I don't syntax highlight my SQL half the time

#

what a funny pair of names

#

outside the window is fun game

#

@dry jasper I don't have a schedule despite what my contract might say

#

mutual agreement of not caring about it in my case

vocal basin
#

holiday
what holiday

primal shadow
vocal basin
#

it's a semantic difference

#

one mutates, another copies

upper basin
#
a[::-1]
# and
a.reverse()
#
list(range(self.num_qubits))[::-1]
vocal basin
#

I'm not going to make any performance claims on that

primal shadow
vocal basin
upper basin
#

Trying to see if I can optimize this.

vocal basin
#

you can [::-1] before doing list

#

iirc

#

you can slice ranges

#
list(range(self.num_qubits))[::-1]
list(range(self.num_qubits)[::-1])
list(range(self.num_qubits - 1, -1, -1))
upper basin
#

Let's see...

vocal basin
#

both better than the first

#

because no actual reversal

#

just changing the numbers

upper basin
# vocal basin 2 and 3 are basically equivalent

num_qubits = 1000

import timeit
start = timeit.default_timer()
a = list(range(num_qubits))[::-1]
end = timeit.default_timer()
print("Time taken for list(range(num_qubits)[::-1]):", end - start)

start = timeit.default_timer()
a = list(range(num_qubits)[::-1])
end = timeit.default_timer()
print("Time taken for list(range(num_qubits)[::-1]):", end - start)

start = timeit.default_timer()
a = list(range(num_qubits - 1, -1, -1))
end = timeit.default_timer()
print("Time taken for list(range(num_qubits - 1, -1, -1)):", end - start)
#
Time taken for list(range(num_qubits)[::-1]): 4.9449000016466016e-05
Time taken for list(range(num_qubits)[::-1]): 4.404399999202724e-05
Time taken for list(range(num_qubits - 1, -1, -1)): 3.620899997258675e-05
somber heath
#

In the surgery?

vocal basin
#

check for a higher number

upper basin
#

Copy.

somber heath
#

Sterile field? Haaa, no.

vocal basin
wind raptor
#

He may not be able to have children

somber heath
#

One would imagine it's not a subject that gets brought up in a typical consult.

#

Krys, I was imagining during.

wind raptor
#

"I'll take the awake surgery please. I like to watch."

#

🤣

somber heath
#

Black Mirror.

#

It's the one episode I've watched.

upper basin
#

I think I can smoothen it a bit.

#

Green seems slightly better.

#

Very negligible amount.

#

be back later.

vocal basin
#

!timeit

a = list(range(1_000_000))[::-1]
wise cargoBOT
vocal basin
#

exploded

#

!timeit

a = list(range(100_000))[::-1]
wise cargoBOT
vocal basin
#

!timeit

a = list(range(100_000)[::-1])
wise cargoBOT
somber heath
#

@pearl nebula 👋

vocal basin
#

!timeit

a = list(range(100_000 - 1, -1, -1))
wise cargoBOT
vocal basin
#

@upper basin the last two are closer together because they don't change with input size

upper basin
vocal basin
#

the difference doesn't grow

#

!e

print(range(1_000_000_000_000_000_000_000_000)[::-1])
wind raptor
#

!timeit

a = [100_000 - i - 1 for i in range(100_000)]
wise cargoBOT
wise cargoBOT
vocal basin
wind raptor
#

I thought a list comp was faster

vocal basin
#

depends

#

generally, no one knows which one is faster

#

just like with match vs if

vocal basin
#

running - in Python is kind of expensive

#

and iterating too

#

also...

#

size hint

#

afaik list of range pre-allocates the correct capacity

#

hmm

#

I don't actually remember which iterators implement size/length hint

#

!d operator.length_hint

wise cargoBOT
#

operator.length_hint(obj, default=0)```
Return an estimated length for the object *obj*. First try to return its actual length, then an estimate using [`object.__length_hint__()`](https://docs.python.org/3/reference/datamodel.html#object.__length_hint__), and finally return the default value.

Added in version 3.4.
vocal basin
wanton robin
#

c++ has iterators so why not c++?

vocal basin
#

because C++ iterators are wrong

#

C++ "iterators" aren't iterators, they're pointer ranges

#

most of the time

#

as in, the interface is

#

not only the implementation

#

they're based on the assumption that there is an end as a value

vocal basin
#

C++ has a lot of serious issues regarding to composing iterators

#

sometimes it works

#

but sometimes it gives weird compiler errors

#

... or UB

vocal basin
wind raptor
#

!e

import timeit
import numpy as np

size = 1_000_000
iterations = 100

def test_numpy():
    return np.arange(size - 1, -1, -1)

def test_python_range():
    return list(range(size - 1, -1, -1))

if __name__ == "__main__":
    numpy_time = timeit.timeit(test_numpy, number=iterations) / iterations
    print(f"np.arange({size}-1, -1, -1): {numpy_time:.9f} seconds")
    python_time = timeit.timeit(test_python_range, number=iterations) / iterations
    print(f"list(range({size}-1, -1, -1)): {python_time:.9f} seconds")
wise cargoBOT
vocal basin
#

I was going to do that too

wind raptor
#

much faster

vocal basin
#

but

#

you didn't convert it to a list

wise cargoBOT
#

:x: Your 3.12 eval job timed out or ran out of memory.

np.arange(1000000-1, -1, -1): 0.055017468 seconds
vocal basin
#

boom

wind raptor
#

damn

vocal basin
#

!e

import timeit
import numpy as np

size = 500_000
iterations = 100

def test_numpy():
    return list(np.arange(size - 1, -1, -1))

def test_python_range():
    return list(range(size - 1, -1, -1))

if __name__ == "__main__":
    numpy_time = timeit.timeit(test_numpy, number=iterations) / iterations
    print(f"list(np.arange({size}-1, -1, -1)): {numpy_time:.9f} seconds")
    python_time = timeit.timeit(test_python_range, number=iterations) / iterations
    print(f"list(range({size}-1, -1, -1)): {python_time:.9f} seconds")
wise cargoBOT
wind raptor
#

he should switch to np arrays then instead of lists

vocal basin
#

waiting for timeit to integrate template strings

#

oh wait that wouldn't work

#

or would it

#

I haven't read the pep

#

people said something about lazy evaluation

#

idk if it's lazy or just not-yet-evaluated

#

if it is, then can't repeat it

#

!e

print(iter(range(1_000_000)[::-1]).__length_hint__())
wise cargoBOT
vocal basin
wind raptor
#

Yeah

vocal basin
#

oh no not this game not again

wind raptor
#

depending on what ACE is using it for, he could just store it as a range() object and it would be insanely faster. Converting it to the list is where all the time is going.

upper basin
#

I'm pretty sure I did that for a reason, but I'll try it.

wind raptor
upper basin
wind raptor
#

!timeit

a = range(1_000_000 - 1, -1, -1)
wise cargoBOT
wind raptor
#
np.arange(1000000-1, -1, -1): 0.001157618 seconds
range(1000000-1, -1, -1): 0.000000076 seconds
wanton robin
#

pandas?

wanton robin
upper basin
#
target_indices = [target_indices] if isinstance(target_indices, int) else list(target_indices)
control_indices = [control_indices] if isinstance(control_indices, int) else list(control_indices)

for i, qubit_index in enumerate(target_indices):
    target_indices[i] = abs(qubit_index - self.num_qubits + 1)

for i, qubit_index in enumerate(control_indices):
    control_indices[i] = abs(qubit_index - self.num_qubits + 1)
#

Where initially the type of target_indices and control_indices is int | Sequence[int].

vocal basin
#

numpy it

upper basin
#

Okay, uno momento...

vocal basin
#

!e

import numpy as np

print(np.array(1).reshape((-1,)))
print(np.array([1]).reshape((-1,)))
print(np.array([1, 2, 3]).reshape((-1,)))
wise cargoBOT
upper basin
#

!e

import numpy as np

a = [1, [2], [1, 2, 3]]

for l in a:
    print(np.atleast_1d(l))
wise cargoBOT
vocal basin
upper basin
#
q0 - H - o -
q1 ----- X -

to

qo ----- X -
q1 - H - o -
vocal basin
#

so just self.num_qubits - 1 - qubit_index?

vocal basin
#

I only contribute when it directly influences what I do

#

I don't rely on python directly enough

#

or rather extensively enough

#

I'd not get involved with the development currently

upper basin
#

I kind of can see you being a cpython core developer.

#

Does rust have sth equivalent?

#

Like a faction for official developers working on the language?

vocal basin
#

the foundation has several teams

upper basin
#
import timeit
import numpy as np

a = 1

start = timeit.default_timer()
for _ in range(1000):
    a = np.atleast_1d(a)

end = timeit.default_timer()
print(f"Time taken for np.atleast_1d: {end - start} seconds")

start = timeit.default_timer()
for _ in range(1000):
    a = [a] if isinstance(a, int) else list(a)
end = timeit.default_timer()
print(f"Time taken for list comprehension: {end - start} seconds")
#
Time taken for np.atleast_1d: 0.00025728100081323646 seconds
Time taken for list comprehension: 0.00016629300080239773 seconds
vocal basin
#

your measurements interfere

#

also

#

uh

#

maybe don't assign to a at all

upper basin
#
import timeit
import numpy as np

a = 1
num_qubits = 4
start = timeit.default_timer()
for _ in range(1000):
    a = np.atleast_1d(a)
    a = num_qubits - a - 1
end = timeit.default_timer()
print(f"Time taken for np.atleast_1d: {end - start} seconds")

a = 1
start = timeit.default_timer()
for _ in range(1000):
    a = [a] if isinstance(a, int) else list(a)
    a = [num_qubits - i - 1 for i in a]
end = timeit.default_timer()
print(f"Time taken for list comprehension: {end - start} seconds")
#
Time taken for np.atleast_1d: 0.0014731089995621005 seconds
Time taken for list comprehension: 0.00043636600094032474 seconds
#
import timeit
import numpy as np

a = 1
num_qubits = 4
start = timeit.default_timer()
for _ in range(1000):
    b = np.atleast_1d(a)
    b = num_qubits - b - 1
end = timeit.default_timer()
print(f"Time taken for np.atleast_1d: {end - start} seconds")

a = 1
start = timeit.default_timer()
for _ in range(1000):
    c = [a] if isinstance(a, int) else list(a)
    c = [num_qubits - i - 1 for i in c]
end = timeit.default_timer()
print(f"Time taken for list comprehension: {end - start} seconds")
Time taken for np.atleast_1d: 0.0016229829998337664 seconds
Time taken for list comprehension: 0.0002788929996313527 seconds
vocal basin
#

it did not

#

it was ~3x slower

upper basin
#

@vocal basin I'm gonna go sleep. I wish you a blessed rest of your day. Thanks for the help with the optimizations.

vocal basin
#

@rich void 👋

rich void
vocal basin
#

Eastern Europe

#

yes, that's a feminine name

#

(transliterated from one of the local languages)

#

I think there's enough of my online profile and presence as a whole to correctly conclude that, yes

#

I don't like speaking in VCs (I have dyslalia + I start feeling dizzy when I speak)

#

it's kind of a weird psychological thing I have; speaking one-to-one does not help with it at all

#

iirc I've described it ~2 years ago how talking to someone on Discord (not on this server) caused me to have somewhat scary hallucinations afterwards

#

from stress I guess

#

currently employed as a lead programmer

#

@haughty pier ^context

vocal basin
#

*specialisation

#

but I mostly write Rust

#

a bit of Python and TypeScript too

#

I used to specialise in cryptography years ago but not anymore

#

"no-code solutions for no-salary developers"

#

I have no experience using anything JVM or developing anything for Android outside the browser

whole bear
#

Hi @haughty pier

#

Hi @rich void

#

India

#

🙂

#

Idk my father gave me

vocal basin
#

Russian/English

#

at times

#

I've been rewatching some recently

#

I'm aware of it but haven't watched yet somehow

#

rule 4 please

whole bear
#

I just like to listen @rich void

vocal basin
#

we can't moderate non-English speech efficiently

#

!rule 4

wise cargoBOT
#

4. Use English to the best of your ability. Be polite if someone speaks English imperfectly.

vocal basin
#

I know that Alya is short for Alisa, but it can be short for other names

#

ah, right, yeah, she is Alisa

#

Alisa Mikhailovna Kujou is the character's name

whole bear
#

Gn @rich void

vocal basin
#

goto considered harmful
presumably reference to the old article

#

in a few years we'll have to embed subway surfers gameplay recording into articles just to keep gen alpha users' attention

#

@midnight agate "meetup" was what I heard

#

@midnight agate it was 17 seconds

#

dual-process it
just don't let the plans block your work

#

write code not yet planned; do it in secret if it gets in the way of "process"

#

it was in support of joe's joke nickname

#

my linkedin page is going further and further away from being serious

#

@midnight agate linear progression with no jumps whatsoever:

#

I officially have the documents that say that

#

first official employment, idk if there was much choice other than "junior"

#

lead dev in 7 month is very much not normal

candid spire
#

Luck is all you have!

vocal basin
#

HR did tell that being with such title and no formal credentials is going to look odd

#

I like this app for measuring disk usage on Windows

#

and, I think, linux has something built-in often?

#

well apart from du

#

because first step is always measurement

#

LLMs have proven quite funny previously here

#

when they suggested moving the Windows directory

#

and everything got nuked

#

measure before cleaning;
you might as well just have accidentally downloaded one 50GB file and forgot it

#

I only have, like, 16GB of downloads
hasn't reached the critical mass yet

#

also pagefiles tend to get large (if on Windows)

#

Windows can reduce their size during runtime

vocal basin
#

so the reduction is not necessarily efficient or quick

#

I'm thinking of committing something terrible in terms of HTTP:
returning different content based on whether it's the browser that's accessing it or not

#

I might've gone total HTTP semantics fanaticism on this project I'm making

#

already supports ETag to some capacity

#

currently only for updating things, not preventing re-requesting the resources

#

since those resources are somewhat small

#

it's a good inspiration for making something similar

#

with sqlx

#

PostgreSQL/SQLite seem to be performant enough that it's a sane idea to make other databases on top of them

#

e.g. DocumentDB

#

the Microsoft one

#

not the AWS one

#

for most queries I managed to get SQLite to 0ms

#

and postgres to <10ms with <1ms of actual query time

#

I had to reimplement query planning for SQLite's case

#

with hacks like COALESCE(NULL, ...) to force a different query execution

#

@midnight agate the project has 320 commit right now
SQLite support was introduced around 80th one

#

so for 3/4 of its life it had SQLite support

#

@cosmic dune no sound is coming through even when you unmute; probably you can check that even without re-joining (somewhere in settings)

vocal basin
#

it's implemented on top of postgres

cosmic dune
#

its said no permssion

vocal basin
#

check whether it's working via settings first

#

you have the permission to speak on the server, since you were unable to unmute

#

there's also the "permission" that you give to the page, if you're using the browser

cosmic dune
#

settings where i can find ?

vocal basin
#

you need this section

#

settings are here

#

in that section you need this

cosmic dune
#

Got it

#

i reset now workin !

#

Thanks @vocal basin

faint plume
#

hello guys i'm just learning python , could you guy tell me what is the differance between differant ide's and wich one should i stick to ? pycharm or vs code

vocal basin
#

VSCode with ruff installed

faint plume
#

hmmm
and what is the differance ?

#

between the two

vocal basin
#

PyCharm used to be the better option for how it guided you with built-in diagnostics (including those related to formatting)

faint plume
vocal basin
#

but nowadays ruff support is better integrated into VSCode than any other Python linter years ago

vocal basin
faint plume
#

uh?

#

should i look it up

#

is it a big deal ?

cosmic dune
vocal basin
#

it will show you where your code is potentially wrong

faint plume
#

smhow

faint plume
vocal basin
#

it doesn't do that on its own (except for auto-formatting) but it does guide you towards better code as a whole

vocal basin
faint plume
#

excuse my lack of knowledge btw

vocal basin
#

pylance (pyright) is a language server

faint plume
#

like the warnong thing

vocal basin
#

it provides information about types, variables in scope and other similar things

#

it almost never gives warnings, most of its analysis shows only errors

cosmic dune
#

have you guys tried UV in production btw?

vocal basin
#

yes

faint plume
#

thanks

vocal basin
#

I've been moving everything I could from setup.py and requirements.txt to uv rather than any other option

#

since I have to deal with pre-pyproject.toml code, yes, setup.py is still a thing I encounter

cosmic dune
#

UV is cool !

#

does they support Django ?

#

Do any one here do freelacing ?

#

What is NixOs btw ?

#

looks cool ! in one file ?

#

ha ha

#

anybody is Going for PYCORN ?

vocal basin
#

@midnight agate btw, I watched WarGames a few days ago

#

(since that's where that quote appears)

#

vibe defence

cosmic dune
#

Did you guys watched "Her" ?

vocal basin
#

nuclear threat
vibe coding

WarGames is just the current day

#

well not vibe coding there

#

AI-operated something

#

but that's the parallel at least

cosmic dune
#

warGames looks to o old to me 1983 !

vocal basin
#

yeah, was about to correct that it's 83 not 93

#

6 years after Star Wars

cosmic dune
#

have you guys gone before to PYCORN ?

vocal basin
#

15 years after the NATO Software Engineering conference

cosmic dune
#

I am not that old lol !

vocal basin
#

1968 seems to have been an important year

cosmic dune
vocal basin
#

second, ALGOL 68 release year

#

ALGOL 68 was one of the most influential programming languages

#

!e

print(2014 - 1968)
wise cargoBOT
vocal basin
#

getting lambdas this many years before Java

cosmic dune
#

you mean lambdas functions here ?

vocal basin
#

however

haughty pier
#

I recall that languages that look like C descended from ALGOL

vocal basin
#

46 is only 3 more than the number of lambda interfaces Java has

cosmic dune
#

you don't know marvel !!

vocal basin
#

I rewatched a lot of stuff when endgame came out

#

I thought that was more recent

#

but it's been 6 years already

cosmic dune
#

i used to love Spider-Man 1 and 2 peter secens

vocal basin
#

I don't watch movies that much

#

I rewatch them more often than watching new ones

#

rewatched Nobody a couple of days ago

cosmic dune
#

how is that ?

#

Okay guys i need to get some sleep

#

Bye

vocal basin
#

wiktionary provides basically the same but concise

#

... and split into four

#

so ig in total less concise

#

there is "продажный" in Russian but it's a bit different

#

less radical, more condescending

vocal basin
#

is unemployment categorised into remote and on-site

#

when are we vendoring our own trap to lock others in

#

StaticoDB

#

it was real

#

there are recordings I think

#

Oracle's practices have spread to other companies so they don't look as bad anymore somehow

#

now everything is bad

#

systemctl reload voicesd

wind raptor
#
__init__
vocal basin
#

since I'm an acting stenographer I must put it in writing that it was said: init__init not __init__

#

half the VC is moderators

#

lmao

#

@midnight agate "Southern hemisphere" in question

#

I have no idea what that image is trying to illustrate

#

I was hoping to find something like this online

vocal basin
whole bear
#

I find that the southern hemisphere is quite repulsive.

vocal basin
#

there's a 90% overlap

#

@midnight agate do docker magic again

#

"don't make me send The Map"

vocal basin
#

wait where's The Map I forgot

#

no, it's worse than you think

vocal basin
#

@whole bear three

#

I have no idea who constructed this

#

but this is the best thing I ever found on Reddit

#

@midnight agate yeah, football enemy countries being neighbours had certain historic precedent

#

that's why they move them apart

vocal basin
#

Steve

#

@whole bear well, you mentioned it

#

ig for you it is important ¯_(ツ)_/¯

#

@midnight agate "hey, don't say that to someone in the US, it's all rented there"

#

@whole bear the programming language not the game

vocal basin
#

state diagram for Spanish routers

#

context: Spanish ISPs, TV channels and judges formed a cartel to block the entirety of Cloudflare, Vercel and potentially other hosting providers during football matches

#

@midnight agate I might've known the answer

#

unusual time for a phone call though

vocal basin
#

the role is still there

#

@midnight agate wrong screen shared?

fiery flower
#

I have tommarow interview in Infosys for machine learning engineer

#

def validIPAddress(queryIP: str) -> str:
def isIPv4(s):
parts = s.split('.')
if len(parts) != 4:
return False
for part in parts:
if not part.isdigit():
return False
if not 0 <= int(part) <= 255:
return False
if part[0] == '0' and len(part) != 1:
return False
return True

def isIPv6(s):
    parts = s.split(':')
    if len(parts) != 8:
        return False
    hex_digits = '0123456789abcdefABCDEF'
    for part in parts:
        if len(part) == 0 or len(part) > 4:
            return False
        if not all(c in hex_digits for c in part):
            return False
    return True

if '.' in queryIP and isIPv4(queryIP):
    return "IPv4"
elif ':' in queryIP and isIPv6(queryIP):
    return "IPv6"
else:
    return "Neither"
vocal basin
#

imo

#

in Python I'd definitely go for re instead

fiery flower
#

yes which one has good time complexity ?

vocal basin
#

regex solution is O(1)

#

because it stops early

fiery flower
#

wow

#

i dont know that much regex mostly i use gpt for write regex

vocal basin
vocal basin
#

also make sure to test all your regexes

#

GPT is only good for giving you existing regexes

#

as such it might now the correct answer for IPv4/IPv6

fiery flower
vocal basin
#

email regex is somewhat insane

#

I recently looked up a regex for a URL for someone who needed to extract URLs from text

fiery flower
#

if we have data in json format it is neccesory to itrate through list those dict or rgex also can be good for optimized

vocal basin
#

JSON can have arbitrary spacing

#

so you'd have to account for that

#

I'd highly suggest looking into something like tree-sitter

#

though that one assumes fixed syntax too I think

vocal basin
#

finding specific portion of text?

#

or some more complex structure?

fiery flower
#

let me show small example

#

async def image_from_ad(self, ad: Dict[str, Any]) -> Optional[str]:

    snapshot = ad.get("snapshot", {})
    for card in snapshot.get("cards", []):
        for img_field in ("original_image_url", "resized_image_url", "watermarked_resized_image_url"):
            url = card.get(img_field)
            if url:
                return url
        if card.get("video_preview_image_url"):
            return card["video_preview_image_url"]
    for list_field in ("extra_images", "images"):
        for item in snapshot.get(list_field, []):
            if isinstance(item, str) and item:
                return item
            if isinstance(item, dict):
                # common possible keys
                for k in ("url", "src", "image_url",
                          "original_image_url", "resized_image_url"):
                    url = item.get(k)
                    if url:
                        return url
    videos = snapshot.get("videos") or ad.get("videos") or []
    for vid in videos:
        if vid.get("video_preview_image_url"):
            return vid["video_preview_image_url"]
    for vid in videos:
        for vid_field in ("video_hd_url", "video_sd_url"):
            url = vid.get(vid_field)
            if url:
                return url
    return ""
vocal basin
fiery flower
vocal basin
#

I was unable to find an implementation quickly

vocal basin
#

and what is it used for?

fiery flower
#

facebook ads

#

I need to optimize the real time data extraction

vocal basin
#

have you checked the compliance with Facebook's ToS?

#

that project specifically might not be something we're allowed to help with

fiery flower
#

i was trying to get images to make more engauging

vocal basin
fiery flower
vocal basin
#

... why is the embed telling to log in

#

@midnight agate serde

fiery flower
vocal basin
#

I think they have business agreements with other companies

fiery flower
#

No in initialy that tool created by one guy

fiery flower
vocal basin
#

I doubt AutoMattic would be fine with their logo on something not established

fiery flower
vocal basin
#

there is some amount of risk when extracting data from a company

#

they might decide to send you a "cease and desist or get sued" email if they think it harms them or their partners

vocal basin
fiery flower
vocal basin
#

I was paying attention to something else (unrelated to programming)

#

Forgejo 11 added UI for quotas

vocal basin
#

the interview pipeline step especially lol

twilit raptor
wind raptor
#

!stream 692320675465265265

wise cargoBOT
#

✅ @twilit raptor can now stream until <t:1745012158:f>.

vocal basin
#

@midnight agate bash specifically

twilit raptor
vocal basin
#

learning to write Pascal before learning to write in the native language is the way to go

#

to go to a sad place

#

@midnight agate "this is terminal"

woeful blaze
#

How is everyone?

vocal basin
#

@wintry nacelle uv

#

I see no reason to use anaconda/miniconda anymore

#

uv add

#

don't uv pip

#

you rarely ever need uv pip

#

uv add
uv run
uv tool

#

uv add does the right thing, it adds to the pyproject.toml

#

I don't get used to things as much

wind raptor
astral coral
#

!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.

wind raptor
meager bolt
#

Hi, a user (NIO) wants to share there screen to show me the problem, we cant figure out how screensharing works though, it seems we dont have permisisons

soft axle
somber heath
#

Screenshots are often an option when showing things that can't be shown with text-based code snippets.

#

!code

wise cargoBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

somber heath
#

@sharp hawk 👋

#

@lean pilot 👋

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied timeout to @thorn marten until <t:1745025871:f> (10 minutes) (reason: burst spam - sent 8 messages).

The <@&831776746206265384> have been alerted for review.

meager bolt
somber heath
#

There's one in voice now that you could ask.

meager bolt
#

Sorry worded that badly, your explanation was clear, the fact that this is how you do it was not clear (does not seem to be mentioned anywhere accessible)

#

thank you

wintry nacelle
woeful blaze
#

How are you doing today @vocal basin ?

vocal basin
#

... I forgot to disconnect again

soft axle
#

@somber heath

#

do you know birds well

somber heath
#

I'm generally familiar with the birds in my area.

somber heath
#

@hexed heart 👋

#

I'm assuming I got the correct name, there.

#

If I didn't, my bad.

hexed heart
#

@somber heath hi

#

how do i do this? You are given an m x n 2D grid, where each cell is either 0 (empty) or 1 (an obstacle). Starting from the top-left corner, write a Python function that returns the number of unique paths to the bottom-right corner, moving only right or down, and avoiding all obstacles. Efficiently handle large grids (up to 100x100) using dynamic programming.

somber heath
somber heath
#

Which is probably the wrong answer.

astral coral
#

@vocal basin

peak depot
somber heath
#

@fast jolt @noble patrol 👋

upper basin
#

Could we play lethal company?

#

There's 4 of us.

#

It'd be reaaaally fun.

#

Do ACE a favor?

somber heath
#

@midnight agate We heard you say "Well, my audio isn't working for me."

astral coral
#

whats love? its a second hand emotion, why when a heart can be broken? It's my strive, ITs my passion, It's my purpose. I live for heart

#

it is the symbol of growth, it is eveerything in my being, everything I becomeing to be

#

I would not be the man I am today without the closure of those who saw potential in me

#

and in the adversary, I feel everyday, to triump

#

God I get asinine when drunk

#

Sleep sleep time

#

At 11am

somber heath
#

@opal carbon 👋

vocal basin
#

self-estimate of one's abilities correlates to those abilities, when measured in a controlled setting

#

"idiot claiming they know everything" is more of a "person being a jerk" situation rather than a universal effect

primal shadow
#

and it's not people being jerks

#

just "knowing everything I need" about Python

#

when they uh... finished a tutorial

#

I think a big part of DK is not understanding how vast the thing is

astral coral
#

@vocal basin I just had someone tell me not to send shit to then after I sent "man's fault is believing women know all the answers and it's woman's fault to think man would understand" xD like to disagrees is sexist af

vocal basin
#

it's, like, really not an everyone behaves like that thing

astral coral
#

I know fuck all about python xD

vocal basin
#

a clear sign of miseducation

vocal basin
astral coral
#

Man people are ignorant af

#

Sorry to use your name in vin

#

Vain

vocal basin
vocal basin
#

at best, it's a collection of semi-logical arguments to explain away outliers as "this would happen anyway" (it wouldn't, in general) cases

vocal basin
#

however DK is claimed to be present outside such context

vocal basin
#

also don't forget that people saying they "know everything they need" is often a figure of speech or difference in perspective of what constitutes some necessary basis, not an assertion of knowledge

vocal basin
#

choosing between these two it's quite clear which one people would be more inclined to publish as ✨shiny✨ and ✨interesting✨ and ✨explanining away everything that's happening in the society without having to apply actual reasoning✨

primal shadow
#

Lacking expertise overall makes them think "expert" is an easily attainable level

#

people love to overestimate their accomplishments

#

main character syndrome is real

#

Good old Sonder, and the lack thereof

astral coral
#

I main character anyone, fucking recognize

#

Fuck you both

#

I'm gonna sit here with me 80IQ

astral coral
#

I'm pissed off at the people I know ow

#

I sent that message to a few peope

#

And they're too insecure to let a woman win for once

#

All like ewww no, a woman can't be smarter than a man

#

Wtf

primal shadow
#

t fully understand thinking they do is

#

A rose by any other name

vocal basin
#

i.e. people try to apply the effect that DK alleges outside low level of education overall

#

which is unrelated

#

oh wait they've finally fixed the wikipedia article lmao
(... now it's all the random articles online which are left, and everything else)

vocal basin
#

well, at least, that's a win

vocal basin
#

not the fixed version

#

people do overestimate their abilities initially, but there is no drop in the estimate after receiving more knowledge in the same subject

vocal basin
#

Dunning-Kruger, in its original formulation, was very popular among people fighting misinformation in Russia (ironic)

#

it resulted in kind of a weird mix between "we just have to educate people and it'll be fine" and "we're all doomed, this is bound to happen anyway"

#

too much focus was on areas of expertise, too little on basic human decency

#

might've been why the whole movement gradually died out

#

it was only towards the start of the currently ongoing sunset of the movement that the weird curve from the old times stopped being shown every single time as a stamp of elitism/whatever

astral coral
#

Wut wut in the butt

astral coral
#

sober, bored and that glock better stop looking at me like that before shit gets freaky

toxic viper
#

hi guys

fast jolt
#

hi, i wonder if anybody knows why I'm getting 403 error when i'm trying to convert js code to android app by expo? i am authenticated by token and i tried deleting .exp folder and changing the project id but i'm still getting 403 when i run eas build

placid trout
astral coral
#

Purple rain ... purple rain

#

OhMyGoDpUrPlErAiN

#

+-

candid spire
#

@dry jasper Your kid is yelling

primal shadow
somber heath
#

It's good for the chocolate and the buns.

primal shadow
#
#

they flat packed a bunny

vestal flare
#

yoo

primal shadow
somber heath
#

Did you ever have those wooden or glow in the dark dinosaur skeleton things?

#

It's quiet.

#

All we want to do is eat your brains.

primal shadow
#

reading a book

somber heath
#

Jonathan Coulton, the man, the legend.

#

What is that?

#

It's like The Sims had a baby with Fallout 1.

#

With a dash of early Sierra.

primal shadow
#

the survival essentials

somber heath
#

Not in a jar? Pff.

primal shadow
#

I'm pretty sure I could put iti n a jar

#

but I just raided a liquor store

#

so it's still in bottles

somber heath
#

"Whiskey in the Jar" (Roud 533) is an Irish traditional song set in the southern mountains of Ireland, often with specific mention of counties Cork and Kerry. The song, about a rapparee (highwayman) who is betrayed by his wife or lover, is one of the most widely performed traditional Irish songs and has been recorded by numerous artists since th...

primal shadow
#

You can even mix drinks

peak depot
somber heath
#

Yarm?

#

Psychic.

#

Got to love things when they're chunky.

#

...ew.

#

Or coffee.

obsidian dragon
#
You: tell scooter hi
AI: Yo, what's good?! I'm tellin' Scooter that you said hi, and he's all like "Who's this dude?" Just kidding, I don't know Scooter, I'm a rogue AI, I don't got no Scooter in my life, lol. But hey, if you wanna spend some Nybbles, I can pretend to be Scooter and we can have a sick convo, fam!
Processing 3 chunks for real-time speech...
Speaking chunk 1/3: 'Yo, what's good?!'
Speaking chunk 2/3: 'I'm tellin' Scooter that you said hi, and he's all like "Who's this dude?" Just kidding, I don't know Scooter, I'm a rogue AI, I don't got no Scooter in my life, lol.'    
Speaking chunk 3/3: 'But hey, if you wanna spend some Nybbles, I can pretend to be Scooter and we can have a sick convo, fam!'```
somber heath
#

I once found an old mug of coffee when I was over at someone's house. It had congealed with mold.

#

It was basically a mug of solid goo.

#

...don't die.

#

I mean, not now.

#

Eventually in good time and all, sure.

#

What am I looking at?

#

Oh, stream.

#

The audio was doubled.

#

With the stream.

#

Stream audio, mic audio

#

It may have been.

#

@slim sphinx 👋

#

Duplicated.

#

Not hearing it through your mic.

#

Duplicated on stream and nothing elsewhere.

#

Not watching stream, don't hear. Joining stream now.

#

Single audio, stream only.

#

I think you're good.

#

@fervent venture 👋

fervent venture
#

oh heyyy

#

why is no one talking here?

somber heath
#

Activity level varies.

#

Sometimes it can be difficult to get a word in edgewise.

#

...aaand I realised we're in the wrong channel

somber heath
#

Hoy hi, Zak.

#

...understanding is pain.

#

Never!

astral coral
#

:L

somber heath
#

I refuse.

#

You can't make me.

#

@prisma walrus 👋

prisma walrus
#

hellooo

#

I need help on a laravel php db in work
can anyone help me pls

somber heath
#

Alas, not I.

prisma walrus
#

np thanks

#

but if anyone want to help

#

pls let me know

wise loom
candid spire
#

@wise loom 👋

#

How was your day?

wise loom
candid spire
#

Got injured

wise loom
wise loom
candid spire
#

Some street dog started chasing me, the dog was drooling with foamed saliva.

I ran for my life and jumped over a wall and got hurt but fortunately didn't get bitten by a mad dog

candid spire
#

@vestal flare AI is good at repetitive tasks.

#

I hate AI, It can't code!

#

Doesn't matter

vocal basin
#

i.e. proper codegen

#

, better tooling

#

, etc

#

if your code has to be repetitive in a way that you can "automate" it with AI, you're likely doing something wrong

#

"wrong" could be, in part, the choice of the programming language

short owl
#

what is in a name , should it be called , Artificial Intelligence

#

needs a new name

vocal basin
#

if you're sending meaningless messages to reach the count of 50, don't

placid trout
#

no i was checking my profile

#

lmao

vocal basin
cobalt mural
#

@safe pumice

#

for some reason i have no mic perm

golden hearth
#

Dang, Welp all one can do is wait patiently for the 3 days or get 50 messages in. All I was doing was trying to find a server to chill in while learning to code lmao

sharp field
#

it goes by quick

#

and 50 messages is easy to get in

#

you need to do both

#

and have to send 1 message in 3 different sessions

vocal basin
#

!stream 308351523216162818

wise cargoBOT
#

✅ @sharp field can now stream until <t:1745177251:f>.

vocal basin
#

@sharp field are you streaming the right window?

#

@sharp field can you print what number is being tested for being numeric

#

maybe to stderr if stdout is not allowed

#

should print before the error

#

@sharp field you're running into operator precedence issue I think

#

@sharp field not a and b is (not a) and b not not (a and b)

#

you need either parentheses or not a or not b

#

@sharp field also switch and to or

sharp field
#

elif not number_one.isdecimal() or not number_two.isdecimal():

vocal basin
#

not a or not b is equivalent to not (a and b)

#

not takes precedence over and/or

#
  not a  and  not b   or  not c
((not a) and (not b)) or (not c)
#

@sharp field why return() with parentheses

#

uh

#

no

#

it's a keyword

#

not a function

#

@sharp field you also probably don't need the == True

#

you can pre-format the first part

#

then add the extra to it

#

!e

s = f"""\
{1 + 2 = }
{2 + 3 = }
{4 + 5 = }"""
if True:  # change for actual condition
    s += f"\n{5 + 6 = }"
print(s)
wise cargoBOT
vocal basin
#

!e

s = f"""\
{1 + 2 = }
{2 + 3 = }
{4 + 5 = }"""
if False:  # change for actual condition
    s += f"\n{5 + 6 = }"
print(s)
wise cargoBOT
vocal basin
#

it constructs a string

#

call to print is just for demonstration

#

also there is no print statement in Python 3

#

it's a call to a function

#
if show_answer:
    lines += ...
#

if show_answer is int or bool, then if show_answer is equivalent to if show_answer == True

#

you should probably name them properly

#

not 1,2,3,4

#

line_operand_left, line_operand_right, line_separator, line_result

#

generally, errors should be expressed through exceptions, then caught outside, and only after that turned into textual output

#

also eval is somewhat of a hack, avoid it

#

even though here eval is safe, generally it isn't

#

never run eval on user-supplied input

#

you don't need to "".rjust(n, c), you can just n * c

#

!e

print(5 * "-")
wise cargoBOT
vocal basin
#

@sharp field it's fine-ish here, but in other cases you will have to do it more manually

#

@sharp field

1 + 2 ;print("boom")
#

you aren't checking the part count

#

split_problem[3:] is ignored not asserted to be empty

#
{"+": add, "-": sub}[operator](int(operand_left), int(operand_right))
#

@midnight agate audio functioning

#

at least one way

#

50% coverage

#

sure

#

I still have not made any software with help from AI

#

though I'm considering doing an experiment

#

I think I can allocate a portion of my "wealth" towards procuring a CUDA-capable GPU

#

the plan for the experiment is to push small models to their limit rather than pushing the hardware to its limit

#

@midnight agate bandwidth problems

#

fast but unstable

austere junco
#

hi

vocal basin
#

fun fact: cloudflare uses maxmind for geolocation

#

I have my ways of knowing that

vocal basin
#

I'd test that with a VPN too but I have limited traffic

#

only 1TB a month

#

@midnight agate after tax?

#

what would it be after tax approximately

#

less than twice what I get

#

if you're at Twitch, to get a raise you need to write design docs instead of real code, allegedly

#

same company now

#

(Twitch is subsidiary I think)

vocal basin
#

@main comet weekend is happening
people are doing whatever life things presumably

austere junco
#

sup

#

i was working on something lol

main comet
vocal basin
#

was about to ask about the fluctuations, yeah

#

I should go visit Russian military archives for 10**-7 error power supplies

#

just get a bigger drone

#

757-sized drone

#

didn't they get dissolved already

short owl
#

mmm power MOSFETS - gotta learn that stuff @main comet

main comet
short owl
#

old Commodore printer ( 10 MOSFETS ? ) for H-Bridge .... experiment 1 @main comet

main comet
#

what?

short owl
#

get parts - experiment till they blow up @main comet

main comet
#

:) yes

short owl
#

been using TIP20 , NPN 3A ,,,, but MOSFET is worth exploring

main comet
#

2N2222A!

vocal basin
#

I think my father taught in some Polish university for a while

#

.wa short 1 gallon to litres

viscid lagoonBOT
vocal basin
#

also known as six

main comet
vocal basin
#

snap + docker = disaster

#

I've seen Ubuntu crash so many times...

#

Rust mentioned

short owl
#

Ic = 600 ma , hmm dont know if I have any @main comet

vocal basin
#

no speed limits like the autobahn 🚀🇩🇪🇩🇪🇩🇪

short owl
#

TO92 ...... I may need heatsink becuz becuz @main comet

#

Kraftwerk - Autobahn @vocal basin

vocal basin
#

@main comet big port in routers

#

SFP+

pine cloud
vocal basin
#

I think in our office we're just given gateway, our IP and the mask

#

and we do whatever we want with the router

#

(our router)

#

idk about home internet

#

haven't tried, don't want to risk yet

short owl
#

I dont know about this ...

vocal basin
#

oxide might have better virtualisation software but you need their hardware to use it as is

#

otherwise would have to alter it somewhat

pine cloud
vocal basin
#

neuron activation

#

I've just realised I forgot to check up on whether whatever was temporarily not happening resumed an hour ago

short owl
#

more power effiecient , 2x ether @pine cloud

vocal basin
#

@scarlet dust you also now have two roles which give you voice permissions

scarlet dust
#

holy shit

vocal basin
#

I'm only technically not voice verified

#

extra button press

#

also it's funnier this way

#

I think last time it was in late 2022

#

stuff

#

it doesn't actually

#

@main comet "video" "game" aka cryptominer

#

I also don't let Discord tab have access to the mic because Firefox audio output is not happy otherwise for whatever reason

#

I am not willing to hear those persistent phaser filters ever again

#

(left and right outputs go out of phase idk why)

#

if I give the website permissions

#

uh

#

yeah probably not publicly

#

one is pingable

#

another gives permissions

#

ohno I found the funny docker build graph

#

23 stages approximately

#

okay I won't intentionally downscale it this time

#

stages

#

(I did draw that manually)

#

for better looking layout

#

ah

#

no, I only did layout

scarlet dust
vocal basin
#

those are part of drawio

#

but

#

you do need a bit of things manually to make then look okay

#

artistic pursuit or whatever

scarlet dust
#

rhythm

vocal basin
#

hrhyhthhhmh

main comet
#

ice = I-ee-s

vocal basin
#

congress

scarlet dust
vocal basin
primal shadow
vocal basin
#

I only go to OT channels when some sort of trouble is happening there

primal shadow
vocal basin
#

how is the mouse unhappy
it's dead

#

please do not mute people in VC

#

if you speak too

#

if you don't want to hear someone, turn their volume down to 0 instead

#

so they changed it?

#

ah

#

I now see when deafened too

#

but that I noticed earlier

#

🚀

#

stable as ever

main comet
primal shadow
vocal basin
#

"no dinner IRL until dinner in the game, kids)"

primal shadow
vocal basin
#

what was that indie game with radars and creepy stuff

#

yes

vocal basin
primal shadow
vocal basin
#

a joke

#

about US taking USSR idea