#ot1-perplexing-regexing
1 messages · Page 501 of 1
but idk what you are doing or what aternos is
heh mc serevrs
aternos is just a free minecraft server hosting website
yeah
but you can send auths, you could have a session even if you wanted to log in in one request then hold that cookie for another request
the only time you 'need' selenium is when you want to physically press that button for full end to end testing, or you are doing something that relies on client sided javascript stuff
thats intersting
@livid sandal https://realpython.com/pypi-publish-python-package/
That site is a good one
Well I would use a powered usb 3 hub, and just plug in the ac adapter to my power inverter
Cheese

lol
Agree, disagree with this pet-peeve of mine? If code cannot be copy-pasted as-is from one project to another (i.e. it contains project specific "business logic") it does not belong in /utils/, utils.{js|py} etc.

😔
hmmmmmmmm
@tulip chasm ...i just tested, recursive factorial is only about 60% slower than iterative factorial on factorial(100)? 
C:\Users\Aaay>python -m timeit -s "factorial = lambda n: n * factorial(n-1) if n else 1" "factorial(100)"
100000 loops, best of 3: 15.8 usec per loop
C:\Users\Aaay>python -m timeit -s "def factorial(n):" -s " r=1" -s " while n:" -s " r *= n; n -= 1" -s " return r" "factorial(100)"
100000 loops, best of 3: 9.78 usec per loop```
But with 1000 or 10000
on 1000 or higher the recursive one breaks with a RecursionError
Mine no
Mine broke with 3000
Seems I confused it with other thing
Oh, that was it, it was with fibo
Penalty on function calls
I need help coding LUA
Utils is bad making convention anyway
Anyone good with chem here
@eternal wing you talked me into it, I got the s20 fe 5g, taking forever to swap stuff
Ohhhhhh niiiiice.you will have to let me know how that is
Well its going so damn slow transferring right now
The cable with a usb-c to A didn't work for my moto g7, so I gotta do it wirelessly
It was still a bit more costly for everything than I wanted, mainly because state taxes was 67 bucks
but so far it seems pretty darn slick, I like it. And the holiday special 100 bucks for it + taxes and activation fee. Not to shabby
But what pisses me off is T-Mobile has this 20 upgrade fee. And I asked the lady why I had to pay it when I am not upgrading from a leased phone, since my moto was unlocked. And I guess its a fee everyone pays, which kinda bugs me since it seems like a gotcha thing
My aviation insurance renewel came in, there is only one problem
cessna 152 and cessna 172 LOL
shame, if I die in an atomic detonation, my family will need to pay for the property damage of when the plane crashes 😦
atomic bomb coverage is 199.99 more
XD
what da fq
people pay 200 to cover atomic bombings?
I mean, if u crash,it's pretty likely that what u are gonna crash into is also broken
lol, im jk. Sadly I would have to find another provider if I wanted "Atomic Device Protection"
So far this phone is pretty good, feels snappy even after app syncing
ohhh niiiice
it only has 6gb ram but that is more than the moto g7
cries in 2g ram
OH I am pissed
good, let the hate run through you
I could have got an unlocked one from samsung
140 bucks
yeah, I only buy unlocked phones tbh
haha
dang it
I still have my s8, except a good chunk of the screen does not work
so it is in a drawer somewhere
Hey are the galaxy watches pretty nice?
my friend had one, it seemed fine.
I dont really do the smart watch thing though
Like my wrists are kinda big and I am worried it wont fit XD
you can get different bands for it. The face itself was pretty big
Hmm, I been wanting one but idk if it is worth it lol
since we are on the topic, anyone know any good wear OS watches that are not expensive
I want a good watch that isn't platform restricted
The samsung watches want you to have a samsung phone. For everything to work right
Apple watch is appl garbage
Fitbits at least as far as I've seen are hella limited
@eternal wing a USB powered hub does work in cars!
I have a hub plugged into the USB port, with my dash cam, flash drive with music and its all plugged into the power inverter at outlet for power lol
Now I just industrial strength velcro and get it all neat and it will be golden
Don't mind the mess, I am cleaning the car too
Imagine having a driver's licence
But it is working so I need to get this all fixed up for delivery and I can rock it
And the album art actually plays
Woot, I am happier than a fat kid in a candy store. (I can say that cause Im fat)
oh wow, I would not have expected the hub to work, neato
It feels kind of overkill to use a USB 3 hub but im not undoing my carefully crafted zip tie work on my monitor mount to swap the hubs around
oh hell yeah!
SML?
hehe, now force fisher to teach you 
so much love
teach me reactjs?
no guitar

or do you already know how to play?
nah i know how to play already
want me to teach you?
learn rust
lol

@mild abyss did you know that if you put an emoji in your status then leave that server that emoji still stays
like i left the genshin impact server but the paimonnomming emoji is still on my status
everyone must guitar!
i know.
you will have all the emojis of that server
but i dont
lol
you actually have
but i left the server
you still have the emojis
sad
ye lul
I have answers
I have confusions
I have all 3 lol
so uhm my sister wants to buy a laptop for me in the us
and idk if this is a good laptop
I would personally not buy an hp product
CPU and GPU are solid
I got a 1660ti for a pc build I'll be doing soon actually
i see what do you recommend then?
👀
ohhhhhhhhh niiiiice
nice nice nice
I always recommend MSI for high end (what I have)
Or lenovo so something more economical
@tranquil orchid make a vid on it, your pc build i meant
lol
what do you have? i might buy the same thing @eternal wing
I'm no videographer
or use it as reference
I have an older msi ge60 apache whatever, it has an 860m card haha, the newer ones are wayyyyyy undervalued imo
Last parts are ready to pick up now actually
So just gotta go get those and I'll have everything I need
Im still waiting for the 3080 to be back in stock
I've got asus, it's done pretty well for me
1660s are really cheap in Australia for some reason
asus is pretty good too
Like I haven't seen any American prices dip below 320 us dollars for the 1660 ti
I love all my msi hardware
And I grabbed one for about 360 Australian
that is awesome haha
I second MSI
Is the 1660ti much better than the super?
Because I'm pretty sure I got my wife a 1660 super
sadsuu
arigathanks for the suggestion

I lied, I got her a 1650 super
The 1660 is faster
Ti? or the super?
Yeah 1660ti is a bit faster
is my laptop spec okay?
the brand is the only thing thats kinda fishy right?
The raw specs look good to me but that doesn't necessarily mean it's good
manjaro...
manjaro 

i kinda wonder why there is no Arch Linux server
these are time times I want nitro sooooo much
there is a Arch Linux Server
wdym
@solid pollen eyy, we’re both ot-names the same day
3 staff themed ot names
Nice
I am very confused where i should be logging things, could somone help me
There has been one instance where all the three OT names were based on Hemlock
hhahaha
That’s funny
hemlock deserves 3 ot names every day
Well, at least 1.2
does anybody know about arduino?
i dabble
It's hardware you code??
Does that make any sense
This is the main board
You can connect a bunch of stuff to it
It's usually used in robotics and stuff
So if u like connect a motor to it to u can code it to work however you want
It's pretty cool
I am not very good at explaining so check this out https://www.arduino.cc/en/guide/introduction
Open-source electronic prototyping platform enabling users to create interactive electronic objects.
oh is it like rasberry pi?
hmm
if rasberry pi is the computer then what is arduino?
Microcontroller
huh
And I was here thinking for a good answer for the past 2 mins
Lol
😕
What would be a more worthwhile purchase, Arduino or raspberry pi? (pig when you reply, I'm a head off to sleep)
ping*
Depends what you're doing, you can do more stuff with a pi since it's a computer, but an arduino is smaller and faster
You'll probably use python on a pi but on an arduino you'd want to learn C++
Or arduinos version of C++ anyway
Lmao it is the first time one of my otn is used
!doc
how can I visit the site?
I've some questions
related to docs
Do you guys used any doc generator?
i have a question
2600Mhz DDR4 RAM and 3200Mhz DDR4 RAM
the latter will downclock right?
@tribal aurora it is in !source
goodluck exploring
Thanks
!source d
Lookup documentation for Python symbols.
i have a question
2600Mhz DDR4 RAM and 3200Mhz DDR4 RAM
the latter will downclock right?
that will take ages to understand, i was trying to make one without d.py, and when i looked at that i thought i am doing some hu<ge project, and things i never heard of
Anyone here used Read the Docs?
oh well no one answered my question
Congrats hahah
thats cool
Because I do use manjaro btw haha
@marsh hatch
In [11]: import random
...: x = ''.join(random.choice(['a', 'b', 'c']) for i in range(1000))
In [12]: %timeit max(x, key=x.count)
3.33 ms ± 7.33 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
In [13]: %timeit max(x.count(i) for i in x)
3.45 ms ± 54.3 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
Nice, I use Manjaro btw too
@rough sapphire I'm surprised it's that close tbh
Why did you expect the gen comp to be quicker?
I had something similar with getting the len on the lists in a list of lists and the first version was far slower I seem to remember
But I think maybe there was something else about it I've forgotten
>>> setup = """
... import random
... lol = [list(range(random.randint(50,500))) for i in range(100)]
... """
>>> import timeit
>>> timeit.timeit("mx = max([len(x) for x in lol])", setup=setup, number=10000)
0.08417729300003884
>>> timeit.timeit("mx = max(lol, key=lambda x: len(x))", setup=setup, number=10000)
0.121161667999786
This was it
@rough sapphire
Lol I've just realised why this is
If you scrap the lambda it's way quicker
🤦♂️
It's bothering me that using a list comp is quicker than a gen exp
In [15]: import random
...: lol = [list(range(random.randint(50,500))) for i in range(100)]
In [16]: %timeit max([len(x) for x in lol])
10.2 µs ± 668 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
In [17]: %timeit max(len(x) for x in lol)
12.1 µs ± 66.7 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
In [15]: import random
...: lol = [list(range(random.randint(50,500))) for i in range(100)]
In [16]: %timeit max([len(x) for x in lol])
10.2 µs ± 668 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
In [17]: %timeit max(len(x) for x in lol)
12.1 µs ± 66.7 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
In [18]: %timeit max(lol, key=lambda x: len(x))
15.9 µs ± 340 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
In [19]: %timeit max(lol, key=len)
5.11 µs ± 81.4 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
It makes sense when you consider passing it through a lambda means making 2 function calls each iteration
Yep, but the gen exp vs the list comp
Yeah I don't get that
If anything I wouldve expected the list comp to be quite a bit slower
theres a loop involved in making the list
Might be one for #internals-and-peps
and then max going through it
I assume with max and a generator function it basically has to convert it to a list after?
>>> timeit.timeit("mx = max(list(len(x) for x in lol))", setup=setup, number=10000)
0.10177797599999394
>>> timeit.timeit("mx = max([len(x) for x in lol])", setup=setup, number=10000)
0.08460173200001009
>>> timeit.timeit("mx = max(len(x) for x in lol)", setup=setup, number=10000)
0.0932927249998556
Hmm list() on a generator is somewhere between the two
Most odd
https://github.com/python/cpython/blob/d246a6766b9d8cc625112906299c4cb019944300/Python/bltinmodule.c#L1614 this is the source code for it
I don't know enough about cpython to be able to parse where the difference is coming from
I actually assume it's coming from the listcomp being optimised
hm, maybe, ill try to time it
In [20]: def go_thru(item):
...: for _ in item:
...: pass
...:
In [21]: %timeit go_thru(True for _ in range(10000))
806 µs ± 48.3 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)
In [22]: %timeit go_thru([True for _ in range(10000)])
560 µs ± 10.9 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)
Haha
yep thats the case
Which again... why I'm not sure. Perhaps since a list is definitely finite
generator is for _ in list right?.
erm
No thats a for loop
oh
(True for _ in range(10000)) is a generator
Yeah it's the same expression though
I'm not actually sure what is happening here tbh
I don't know that a generator is supposed to be faster
In [24]: dis.dis('for x in y:\n pass')
1 0 LOAD_NAME 0 (y)
2 GET_ITER
>> 4 FOR_ITER 4 (to 10)
6 STORE_NAME 1 (x)
2 8 JUMP_ABSOLUTE 4
>> 10 LOAD_CONST 0 (None)
12 RETURN_VALUE
Well, theres an iterator involved in iterating in both cases
It's definitely meant to be less memory intensive
FOR_ITER(delta)
TOS is an iterator. Call its next() method. If this yields a new value, push it on the stack (leaving the iterator below it). If the iterator indicates it is exhausted, TOS is popped, and the byte code counter is incremented by delta.
1)```py
a = []
for i in range(100):
a.append(i)
2)```py
a = [x for x in range(100)]
I thought the second one would be faster
it will
Yeah the second is faster
but youre not iterating over it
we're talking about iteration
But list-comps are optimised beyond the generator expression
oh
Or at least that's my understanding
Yeah, lemme remove the call to go_thru
Will that work?
Oh no, then the gen comp wouldnt produce anything
I mean it won't
Because the gen comp will just initialise a lazy generator right?
I dunno
>>> timeit.timeit("[i for i in range(100)]", s
0.0322953210002197
>>> timeit.timeit("(i for i in range(100))", s
0.00692299100001037
Yeah
Hang on a sec
tuple against list
>>> timeit.timeit("[n for n in [i for i in range(100)]]", setup="import random", number=10000)
0.05897396199998184
>>> timeit.timeit("[n for n in (i for i in range(100))]", setup="import random", number=10000)
0.06709437499966953
generator verses list comp? i thought they were the same thing 
It's something about iterating the generator for sure haha
Yep, seems like it
It's marginal but it's real
I believe the difference would lessen at very high values?
I think it likely has to do with some extra optimization in list comps?
Did you mean high values in terms of list lengths?
In [29]: %timeit go_thru([True for _ in range(10000000)])
567 ms ± 3.04 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
In [30]: %timeit go_thru(True for _ in range(10000000))
853 ms ± 76.9 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
Its still the same case
Its still slower
Like is the gap proportionally the same though?
Let me take it up an order of 10
Is there some large N at which they are asymptotically closer
Mine is taking... a while
>>> timeit.timeit("[n for n in [i for i in range(100)]]", setup="import random", number=1000000)
4.71048940799983
>>> timeit.timeit("[n for n in (i for i in range(100))]", setup="import random", number=1000000)
5.657446734000132
>>> timeit.timeit("[n for n in [i for i in range(100000)]]", setup="import random", number=10000)
52.70060166100029
>>> timeit.timeit("[n for n in (i for i in range(100000))]", setup="import random", number=10000)
67.0565495410001
>>> 5.657446734000132/4.71048940799983
1.2010316219779802
>>> 67.0565495410001/52.70060166100029
1.2724057681987253
So if anything the gap is... widening?
Although that is .07 difference in the ratio across 10k repeats
So... somewhat irrelevant probably
Yep, it went up for me too
I need some explanation for this
The hold up over yielding the elements of the generator must be absurdly huge if constructing a list using a list comp and going through it beats it, or there's some other sort of optimisation
these guys did it, they have gone off-off-topic
!otn a going-off-off-topic
:ok_hand: Added going-off-off-topic to the names list.
Am I just a meme now
i dont think its an optimization
it would be tough to optimize it, wouldnt it?
Maybe some sort of "this list just gets iterated over and thrown away"? Seems highly unlikely too, I guess I could try using some of it
Well I've asked in #internals-and-peps
Usually someone there knows what is going on with the language on the lower level
Aha-
In [29]: %timeit go_thru([True for _ in range(10000000)])
567 ms ± 3.04 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
In [33]: def go_thru(item):
...: for i in item:
...: pass
...: return item[200]
...:
In [34]: %timeit go_thru([True for _ in range(10000000)])
675 ms ± 77.8 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
What am I looking at?
The older version was ```py
In [20]: def go_thru(item):
...: for _ in item:
...: pass
...:
based on this
I mean. Does that explain why a list comp is faster though
Because to me the same is true of a generator?
Yeah I'm not sure either
Someone has theorized in #internals-and-peps
Ok I've got an issue with kubuntu and Imma bout to head to bed so Im not going to spend time trying to fix it rn, but I was watching youtube and the screen went all white noise esque + the sound did as well (scared the hell out of me with headphones on at full blast)
I'm assuming it's a graphical driver thing? But idk what I'm talking about
Sounds like driver/dependency issues
Great good thing I definitely 100% absolutely know what I'm looking for
Idk I can't find anything on the webs and I'm really not trying to get jumpscared again tbh
My YouTube playback on FF is scuffed as well
@versed saffron was the sound like glitching like so loud noise?
idk how to explain lol
The only way I can describe is white noise
Like tv dead channel noise
The screen had the same effect
Ya like white noise lol
white noise is something else
Did you mean like this?
https://upload.wikimedia.org/wikipedia/commons/a/a8/TV_noise.jpg
Cuz that is white noise
yea that's what they meant
Fun fact: we call that the war of the ants here in sweden. It is an eternal war between black and white ants
I search how to fix white noise it gives weird vids and all of them are weird noises xD
white noise is essentially just a mix of all frequencies within hearable spectrum
like white light is a mix of all visible light
It doesn't help that most kubuntu searches either refer to Ubuntu or random stuff
too much knowledge xD
Like ig I'll update my video drivers?
If it's not that idek but I've had the os for about a week and this is the first time
idk if this is a bad question but when someone puts their credentials in, the script hashes the password with a random salt at the end, how are you supposed to compare it with the password hash when they try to login again
like the salt is completely random so it can't be generated again
this is the sha256 hash of password, just plain 5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8
and this is the hash when it's salted 877f337f1ce5a433a0409d884890096a03cb4286f1f875051f9811532199a2f9
let's say I store the salted hash in my DB
when the user wants to login again, how do I validate the password given with the salted hash?
You need the salt for that
so I store it?
Yes
where and how am I supposed to store it
It is just to defend yourself against rainbow attacks, storing it in your database alongside your hashes won’t lower your security
I’d recommend you to use argon2 though
Argon2 hm okay
I'll use argon2
I'll install this https://pypi.org/project/argon2-cffi/
#cybersecurity ppl there can help u
how to fix this error https://paste.pythondiscord.com/oxecixoret.lua
test
testus
same
hey guys
I'm trying to install windows 10 on a vm
but its asking me for an activation code
where do i get that from?
@undone harbor you get the activation code when you purchase a copy of Windows at Microsoft.com
or 3rd party sources but I don't trust those
you can just click "I dont have a product key" and use a demo.
It will remove some customization features that shouldnt matter in a VM.
and it will often remind you to update.
err, to activate
But you should be able to install without putting a key in if you look carefully at things to click on to evade it.
uhm he said
you can just click "I dont have a product key" and use a demo.
@mild abyss it sent me to this
what should i do
which one is the demo
?
can someone pls help
You can demo any really, but unless the extra stuff, windows 10 x64 pro is more than fine
Windows 10 should install no matter what you select. Its not really a demo.
Its just an unactivated version of Win10
To be honest, they dont deserve any money. They have a profit model without you giving them money. Thats why they let you do it.
They just try to harass you to give them money because they are trash.
The personalization stuff is restricted if you don't use a keycode. So unless that matters, it should be okay. Or if you need windows for a specific reason, you could just run linux with wine to use the app maybe? If that is why you are installing windows. Its really what ever is easiest for you
I mean, theres plenty of reasons to run real Windows in a VM. It would be silly to activate them.
A lot of the time theyre just tests.
yeah they will make your license invalid right because youre in a VM?
i mean it does happen
Ive never tried.
Its mostly silly because once you're done with doing something in a VM you revert it back to a default state or delete it.
At least thats my use cases for windows vms
i just realized discord added a rules icon
?
same i dont have it either
@glacial jacinth You got it working?
@livid citrus no 😦
is it a update? or u did inspect....
Alright people convince me, what linux distro's should I try out
arch

I do quite like the look of manjaro
manjaro
okay this is a random question but is anyone here good at building pcs?
probably many of us, but yeah, I would say I am
beautiful
i’m decent at programming but when it comes to building pcs i’m dumb
i have a monitor, but i have nothing else
let me know what monitor you decide on, I have been trying to find a good monitor
lets join forces jack
I have one I'm looking at
Cause it's like
200 dollars cheaper than normal on sale
would u help me find parts for one? maybe around 700-800?
i like 34 inch
sure, I have a few lists already I can send later if you remind me haha
From the reviews I've seen it seems fairly solid but I'm still on the lookout
ohhhhh, that one is nice
I may just jump on that deal and see what happens
okay i’ll just dm u like hi or something now so i don’t forget ur username
curve is good? 
Curve epic
https://www.youtube.com/watch?v=4zdoR_A9tTc&t=147s&ab_channel=TechWithTimTechWithTimVerified
check this vid out
A comprehensive detailed video going over popular Budget Gaming monitors with 144/165hz refresh rate under $200.
▶Best Tech Deals: http://DealSource.Tech
▶US Links◀ (Prices will always vary)
Sceptre E248B 165hz ($180): https://amzn.to/3mNQr5W
Pixio PXC243 144hz ($160): https:...
that doesnt look good
curve is good
don't judge a book by its cover.
and don't judge a vid by its thumbnail
i mean in case of monitors cover is all there is..
Ultrawide, curved, 100hz, 2k, 1m response for 629 Australian dollars is pretty solid
the one jack sent is good, but the ones showing in that vid..
oh it’s australian dollars
Yeah
u haven't even watched the vid what are u talking about
I think I'm just gonna get it tonight, it's the best monitor deal I've seen since looking
jack what’s ur graphic card?
1660ti
well i would judge from the thumbnail obviously
Which I also got for a really good price
how much
I believe it wassss
~350ish Australian dollars
They're going really cheap in Australia for some reason
lucky
And the PSU I'm pretty happy with as well
Add to Cart and then after sometimes out of stock I was like going to destroy my keyboard xD
650watt, 80 gold +, fully modular and a ten year warranty for 170 dollars I believe it was
@tranquil orchid u gonna water cool it?
lol
lol
Then I can expand a bit more in the future and temps can stay nice and low
Uh it was
lemme see
I think it was 130 Australian dollars
But I'll be able to use that in any future builds as well that beast will handle anything
okay yeah that’s good
@glad aspen
why isnt there a JS equivalent of this server?
Potential answer: The JS community is heavily fragmented
Potential answer: There probably is somewhere
I'd say the first one is true
Considering that there's a lot of JS frameworks that are separate entities
idk if speakJS is the only server i know of
Yeah, 10 frameworks for every single problem
and a nearly equal userbase on all of em
unlike python where you have like, Flask/Django are the two big players, there are other web framworks obv, but those are the big ones
when it comes to JS you've got at least twice that for each problem that needs tob e solved
so it makes communities smaller
i see
Even if Flask/Django are frameworks that are supposed to wrap around Python, it's still fundamentally just Python
Compared to something like Vue/React/Angular which are full-blown extensions to JS
flown blown
wow, i made a code to create a gif of a photo shaking
img = np.array(Image.open('/home/spongy/Pictures/cool_aizen.jpg'))
frames = []
fin = []
for i in range(10):
frame = cv2.blur(img, (1, random.randint(3, 12)))
frames.append(frame)
for fra in frames:
a = Image.fromarray(np.array(fra))
fin.append(a)
a.save('modified.gif', save_all=True, append_images=fin, loop=0)```
makes the photo like this
Noice
ok wait a sec
i use g
we aint in the 1990s you can write out more than just a j
i at least is universally 'index' so it makes sense

i swear to god if i see some python code where i isnt used for index ill reee so hard
reeeeeee
Huh
here
Lol
boredom bears fruit to new ideas
yeah
is xonsh new?
lol
Wat
so it is basically python as a shell
wait what
python already has a shell
but idk how to describe xonsh
xD
Xonch is everything at the same time
what 'wat'?
wat
That's pretty weird
how has akarys never heard about xonsh before
My computer is currently unplugged, someone in my family stole my screens and peripherals lol
i feel like hes the one who told me about it
what???
Nope, that wasn't me
We just moved home, and I have the only computer properly setup
akarys will spank someone in his family
My mother had to do some paperwork, so I unplugged my computer and plugged her instead haha
Go unplug her
i have a bad feeling i will break something if i use xonsh
so many issues haha
oh well i will never use it for now
Morning mr macro
lol good evening
Oh wait, it’s evening for me too
really?
🙃
But definitely not morning
👀
is that a joke
I haven’t really uploaded too much code, but sure
vester doesnt know how to code you can see his github has almost nothing on it!
🙃
maybe he has another account we dont know off
and he is actually a professor gasps
just 2020
Ahhhh, my secret is revealed!!
What’s so suspicious about that?🥺🥺
Changing your default shell won't break anything
uh you said your eyes are hurting?
that was a joke

import numpy as np
from PIL import Image, ImageDraw
import cv2
import random
img = Image.open('/home/spongy/Pictures/ichigo kurosaki.jpg')
trigger = Image.open('triggered.png')
trigger = trigger.resize((206, 50), Image.NEAREST)
img = img.resize((206, 206), Image.NEAREST)
Image.Image.paste(img, trigger, (1, 155))
img = np.array(img)
frames = []
fin = []
for pixel in img:
for rgb in pixel:
rgb[0] = 170
for i in range(10):
frame = cv2.blur(img, (1, random.randint(3, 12)))
frames.append(frame)
for fra in frames:
a = Image.fromarray(np.array(fra))
fin.append(a)
a.save('modified.gif', save_all=True, append_images=fin, loop=0)``` do you guys know how can i make it move sideways  , this is the code
nevermind i think this would be enough my eyes hurt
i was trying to implement in my bot but it gives me an error that says py Traceback (most recent call last): File "/home/spongy/.pyenv/versions/3.8.6/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped ret = await coro(*args, **kwargs) File "/home/spongy/Python_Projects/discord.py/Tanjiro.py", line 395, in trigger rgb[0] = 170 TypeError: 'numpy.uint8' object does not support item assignment while this works locally 
idk why is it different in discord.py
Hey all! I've been presented with a weird question which I can't figure out the answer to, since I'm not a developer (yet). The question was put thus: "Why would an experienced developer choose to develop a testing platform instead of a product?"
Any personal opinions welcome.
Well I'm learning...
anyways theres literally no answer to your question
ijust dont know
why would someone prefer nyc over san fran. why would anyone prefer x over y. its all opinions
maybe the guy is angry at the current testing platforms and wants to make a new one. maybe the testing platform pays him more. maybe its in the city he wants. maybe im not gonna continue
Thanks for trying though 🙂
big brain
bruh
Same version of numpy?
wdym?
what should be my numpy version equal to?
anyway i think mine is pretty, old i will upgrade it
lul
is this good? the latest numpy version is stable right?
you do that?
yes
pip install -U numpy
i dont really care
alr
Between your local python and the bot
the bot is using my local python
same error after updating
rgb[0] = 170
TypeError: 'numpy.uint8' object does not support item assignment```
show the code
and idk any other way of converting an image red tinted
@client.command()
async def trigger(ctx, dude: discord.Member=None):
img = Image.open(BytesIO(await ctx.author.avatar_url.read() if not dude else dude.avatar_url.read()))
trigger = Image.open('/home/spongy/Python_Projects/Hata_bot/triggered.png')
trigger = trigger.resize((206, 50), Image.NEAREST)
img = img.resize((206, 206), Image.NEAREST)
Image.Image.paste(img, trigger, (1, 155))
img = np.array(img)
frames = []
fin = []
for pixel in img:
for rgb in pixel:
rgb[0] = 170
for i in range(10):
frame = cv2.blur(img, (1, random.randint(3, 20)))
frames.append(frame)
for fra in frames:
a = Image.fromarray(np.array(fra))
fin.append(a)
a.save('/home/spongy/Pictures/triggered.gif', save_all=True, append_images=fin, loop=0)
await ctx.send(file=discord.File('/home/spongy/Pictures/triggered.gif'))```
so is it 1D array?
it will be a 3d array right, its an array of an image
this code works perfectly locally, but somehow it isnt working here
i think the problem is the opening the image of the pfp, maybe bytesio is interfering or smth
like thats the only difference between the original code and bot code
img = Image.open(BytesIO(await ctx.author.avatar_url.read() if not dude else dude.avatar_url.read()))``` this seems to be the problem

hey can I get more eyes to look at this? The music app, on the left side. is that a line through it?
Looks like it
damnit, I literally just got home from bestbuy with it
and my wife needed the car to go to work
does that line persist with other images?
^ what does it look like on a solid background
Yes it does
it persists when I go to the settings menu, it strikes through the options as I scroll
and if I edit the widget layout, the spotify app gets the line through it on the right side
in its current location
it is super hard to get a pic of
https://www.samsung.com/us/support/troubleshooting/TSG01003180/ this is what samsung has to say about that
hmm, okay so now that I factory reset the watch, it is gone?
nope, its back now on the widget screen
same spot
NVM, more than one. Well I did what that link said to do and it's still happening
Ayyyyy you got the thing
yeah but the thing has this line thing
Oof, dead pixels or something?
Back to bestbuy it goes
Yeah Idk whats wrong. it only happens after fully on. When its booting, there is no lines
Hmmm. Thst is odd. I would not even try to troubleshoot that, just exchange it asap
Its in a few spots, but around the same general area. Like now its not going through the minute hand on the watch, but it was about 8 minutes ago
hmmm
sorry man you left the store i cant process your refund. i think you did this to it yourself
42 minutes on hold with them. I used to work at the store, they know me and will help but it sucks because I will have to take a lyft or uber there xD
and I rather have it ready to go so I can get in and out.
That is frustrating :C
yeah, I'm getting second hand frustration
finally after 58 minutes, they got one ready for me to replace and got me a 5$ credit for lyft XD
First time using a ride share thing, not gonna lie, nervous as fuxk
The guy is really nice though and helpful, so that is good. Just the horror stories I've heard x.x
take 2, lets see how this one is
Watch 2 is a success!
Nuu I don't like apple 😦
Ahahah
You’re out on deep water
Time to sleep though
Night
Nighty night
responsible vester
I'm so triggered right now by this.. This is an ad for a link that promises it will help you to "code better"
so ... true.stop() ...
Its not cute.
Its stupid
smh running the function call twice instead of caching the result
what if it's not a pure function? What if it's an expensive computation? Reckless
COOOOOOOOOODE
psvm says wear a mask!
wow 2 vester otns
!
I talked to my group, and it seems like they are chill if you wanna join the campaign remotely. Long as you can connect Wednesdays 5-8 cdt
ohhhhh, tyty. That is very awesome of you and your group.
unfortunately I am fairly busy lately and also work at that exact time :(((((((((
Aww :(
aww indeed :(
also: tbh I have never played DnD by the rules haha. So you could say I have never played DnD xD
We would have helped, but I totally understand!
LOL
I think I told the story where someone with high strength slapped an important npc, then rolled a 20, so like.......... I guess they'll just die 🤷
XD
Yeah that kind of shit is hilarious. I actually just caused a wight to be controlled by my paladin for 24 hrs because the DM failed the save lol. My paladin is an oath breaker, ala evil
Oooo
this is sentimental lemon
< this is sentimental Vester
Hahah
😢 + 🥒
Ah, yes. Indeed
@high solstice Manjaro is based on Arch
I’d have to look into Arch.
In my experience, Manjaro tends to have a better support and customisation options than Ubuntu
Also the fact that it doesn't use Snaps is quite good
Well. Godot has crashed Ubuntu already so I might have to switch 😂😂😂. Tried ZorinOS but it was too locked down for me, couldn’t get pip installed.
Thinking about switching back to pycharm so I could also use rider. But like vs code looks cleaner to me.
Yes please hahah
Oh hello
Well I have a problem with windows 10
I think an update just came and first I wasn't even able to log in it was just looping then I somehow managed to get in and now
My windows key isn't working
It works for a bit before programs open up and it stops working after
@quick ledge what is dotenv?
i posted that in the wrong channel
dotenv is used to load environmental variables from a .env file
ooh
to keep your api secrets and stuff, well, secret
it's a bad idea to include them in code as people can use your token
ye ik
you can leave it blank in the version you upload on github
i have only used .env files from other people's codes but not created one myself, so i was curious
but there is a risk of forgetting to do that before committing
well now you know what it is
I'll jip over here
sure
Deciding between next distro to replace manjaro
manjaro
manjaro
"To replace manjaro"
Yes, manjaro
manjaro different de
Yes, manjaro
At worst Arch
How about we don't circlejerk?
Currently I'm considering Kubuntu, OpenSUSE, or the new Rolling Rhino setup for Ubuntu
EndeavourOS?
hmm, i have heard of popOs
Looking to avoid arch based
ok
Why do you wanna change first
If kubuntu has worked for you in the past, go for that
I don't like the package management, and I've had consistent driver issues on Manjaro using the exact same driver versions that had no issues under Ubuntu budgie
then why not use ubuntu budgie
Budgie desktop ended up being a bit sad for multiple monitors
mint?
Looking for KDE for the better desktop support with docks
Debian is too stale
packages don't update fast enough
manjaro kde
"To replace manjaro"

I mean, yeah, if you want a rolling update
"can we not circlejerk"
I’m being serious
manjaro is not replaceable
Sigh
hey what about kubuntu?
If that’s what you’re looking for, arch based would be a good way to go
How easy is it to replace pacman/pamac with aptitude
Debian based distros (including Ubuntu, let’s not forgot about him) will have the same slow release schema
It is impossible
well, there's the rolling rhino setupo for ubuntu that I mentioned
I have heard about that
I don't remember whether I heard good things or bad things
I mean, it's an intensive setup.
In all honestly, if you want a rolling release, use a distro that has been built with rolling releases in mind
Yeah, I'm probably going to end up with OpenSUSE
zypper was a lot nicer than pacman iirc
my real goal is to never have to touch the terminal though
the flags are unintuitive and annoying
Are they?
yet your aim is to not touch the terminal
You can make shell aliases though
alias "pacman -Sy" = "apt update"
alias "pacman -Su" = "apt upgrade"
alias "yay" = "apt install"
alias "pacman -Rns" = "apt purge"
alias "pacman -Rns $(pacman -Qtdq)" = "apt autoremove"```better?
but for example, on ubuntu systems I pretty much never touch it
you can try using pamac then
at this point I'm pretty much doomed to reinstall regardless
to try and fix the graphics driver issue
really not interested in throwing back into a distro base that already had issues and requires tweaking of every single minute detail
proprietary drivers
every time the system sleeps they crash
and sometimes they crash when I'm in the middle of things
same exact driver version I was using on ubuntu without issue
If you want something that works out of the box, use Debian or Ubuntu
I’ve been using manjaro for over 2 years, it never crashed on me
https://distrochooser.de/en maybe try this website?
well I'll eat my hat I guess
since when does debian have new packages?
python3 is 3.9???
Probably not
it is
I just checked their packages website
assuming sid is the current release? https://i.imgur.com/HFI7cIu.png
It is the unstable channel
Considering unstable has a rolling release is a bit of a stretch (no pun intended :P)
that site recommended me linux from scratch lmao
Hahaha
🤔
this is interesting
I'm going with OpenSUSE again
been a few years since I used it
when 3.10 will finished? i need the speed
3.10? lol
A year from now
most lib are still not even compatible with 3.9
Actuallllyyy
On the iPad while I install opens use tumbleweed
False
True
I have not found a single incompatible package
what makes incompetible
Worst I’ve had to do is compile a dependency
👀
New releases are backwards compatible, it would be extremely rare to see an incompatibility
Not really?
then 4.0 comes...
Do you have any examples of major incompatibility with 3.9?
Look at how long it took for major libraries to migrate from 3.7 to 3.8
Even everything on my bloated bot worked fine day 1
Alright, let me pull the notes
if you use liblaries except standarts liblaries you are not a proggemre
What
you have notes for that lol
Ah, the good ole "Using libraries is for lazy people who'd rather steal code, REAL programmers write everything from scratch themselves"
Real Programmers be like : yoink now this code is my property
hmm, other than some libraries not having wheels for 3.9 yet, idk what other issues exist
- a number of Python builtins (range, tuple, set, frozenset, list, dict) are now sped up using PEP 590 vectorcall;
garbage collection does not block on resurrected objects;- a number of Python modules (_abc, audioop, _bz2, _codecs, _contextvars, _crypt, _functools, _json, _locale, math, operator, resource, time, _weakref) now use multiphase initialization as defined by PEP 489;
- a number of standard library modules (audioop, ast, grp, _hashlib, pwd, _posixsubprocess, random, select, struct, termios, zlib) are now using the stable ABI defined by PEP 384.
Yeah the wheels are the only thing I’ve seen
Some of the first changes





