#voice-chat-text-0
1 messages · Page 320 of 1
I thought it's rooting
:white_check_mark: Your 3.12 eval job has completed with return code 0.
3
What is rooting?
!e
from math import sqrt, isqrt
print(sqrt(10))
print(isqrt(10))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 3.1622776601683795
002 | 3
sqrt is float square root
isqrt is integer square root: largest number that's not bigger than square root
Now the problem is
I'm getting unexpected loops
I expect the only loop
I expect to see only 1,4,2 loop
what's the error you're catching with try?
@quartz beacon comments are suboptimal because they tend to be incorrect
logging, on the other hand, is useful
that way you can actually understand the state
At start, there is no list inside the following list
So it will raise error unless I use try except
yeah, writing what the function does is still useful
if you can't write a comprehensive description of what the function does => maybe the function is wrong
which of these three lines raises the error?
if bx := n in x:
print(f"The number {n} was found in the list {x}")
passer.append(bx)
x not found on first line, right?
hmm
wait, no, that's not possible
(I don't undestand what throws)
not defined
!e
seen = list()
loops = list()
a = 1
stopper = 0
while stopper < 10:
stopper += 1
passer = list()
n = a
a += 2
while True:
for x in loops:
if bx := n in x:
passer.append(bx)
if any(passer):
break
if n not in seen:
seen.append(n)
else:
loop = seen[seen.index(n):]
seen = []
loops.append(loop)
break
if not n % 2 == 0:
n = int(n*3+1)
else:
n = int(n/2)
:warning: Your 3.12 eval job has completed with return code 0.
[No output]
hmm
Cuz of python trying to get an item of the following array while the array being empty yet
no errors
You sure the bot will be able to show a for loop?
as a result
Oh wait
!e
seen = list()
loops = list()
a = 1
stopper = 0
while stopper < 10:
stopper += 1
passer = list()
n = a
a += 2
while True:
for x in loops:
if bx := n in x:
print(f"The number {n} was found in the list {x}")
passer.append(bx)
if any(passer):
break
if n not in seen:
seen.append(n)
else:
loop = seen[seen.index(n):]
seen = []
loops.append(loop)
print(f"A number loop was found! (started as {a-2}) ({n}) {loop}")
break
if not n % 2 == 0:
n = int(n*3+1)
else:
n = int(n/2)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | A number loop was found! (started as 1) (1) [1, 4, 2]
002 | The number 4 was found in the list [1, 4, 2]
003 | A number loop was found! (started as 5) (5) [5, 16, 8]
004 | The number 5 was found in the list [5, 16, 8]
005 | A number loop was found! (started as 9) (7) [7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 9, 28, 14]
006 | The number 11 was found in the list [7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 9, 28, 14]
007 | The number 13 was found in the list [7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 9, 28, 14]
008 | The number 40 was found in the list [7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 9, 28, 14]
009 | The number 17 was found in the list [7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 9, 28, 14]
010 | The number 22 was found in the list [7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 9, 28, 14]
it does produce the output with no errors
so it goes from 8 to 5 for some reason allegedly
you don't change n after you make a new loop
that's an issue
I think?
wait, no
no, you do change
(by incrementing a)
wait a minute
encountering a number that's in seen doesn't mean you encountered another loop
that might be the reason why it fails
!e
def helloWorld(prínt):
print(prínt)
helloWorld("print")
:white_check_mark: Your 3.12 eval job has completed with return code 0.
print
example:
5->16->8->4->2->1->4
32->16->8->4->2->1->4
if you start with 5 and 32 you encounter 16
but 16 isn't a part of a loop
you discovered another branch that leads to the same loop
when a gets to 5, you see n as already encountered
n being 5
and the code thinks it's part of the loop because it's in seen
you don't clear seen
seems like
or you don't clear it correctly?
not sure
there are two break statements
when the first one is reached, seen isn't cleared
!e
seen = list()
loops = list()
a = 1
stopper = 0
while stopper < 10:
stopper += 1
passer = list()
n = a
a += 2
while True:
for x in loops:
if bx := n in x:
print(f"The number {n} was found in the list {x}")
passer.append(bx)
if any(passer):
assert not seen, seen
break
if n not in seen:
seen.append(n)
else:
loop = seen[seen.index(n):]
seen = []
loops.append(loop)
print(f"A number loop was found! (started as {a-2}) ({n}) {loop}")
break
if not n % 2 == 0:
n = int(n*3+1)
else:
n = int(n/2)
:x: Your 3.12 eval job has completed with return code 1.
001 | A number loop was found! (started as 1) (1) [1, 4, 2]
002 | The number 4 was found in the list [1, 4, 2]
003 | Traceback (most recent call last):
004 | File "/home/main.py", line 16, in <module>
005 | assert not seen, seen
006 | AssertionError: [3, 10, 5, 16, 8]
there
!e
x = 0
while x != 101:
print(x, end = " ")
x = x+1
:white_check_mark: Your 3.12 eval job has completed with return code 0.
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
anyone thinks its possible to print the ABCs?
abstract base classes? or something else?
letters?
!e
from string import ascii_uppercase
print(*ascii_uppercase, sep=", ")
:white_check_mark: Your 3.12 eval job has completed with return code 0.
A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z
as for abc, the module, no idea what `printing' would mean there
wait nooo
lol
i was gonna do it
just for the meme of it:
!e
from abc import ABC, abstractmethod
class Printable(ABC):
@abstractmethod
def __str__(self): ...
class Example(Printable):
def __str__(self):
return "Example"
class NonPrintable(Printable):
pass # no implementation for __str__
print(Example())
print(NonPrintable())
:x: Your 3.12 eval job has completed with return code 1.
001 | Example
002 | Traceback (most recent call last):
003 | File "/home/main.py", line 15, in <module>
004 | print(NonPrintable())
005 | ^^^^^^^^^^^^^^
006 | TypeError: Can't instantiate abstract class NonPrintable without an implementation for abstract method '__str__'
string has more stuff in it if you need it
yep
im currently tryna work out how to make it print upper and lower case with their respect parents and child letters
e.g Aa Bb Cc...
!d zip
zip(*iterables, strict=False)```
Iterate over several iterables in parallel, producing tuples with an item from each one.
Example:
```py
>>> for item in zip([1, 2, 3], ['sugar', 'spice', 'everything nice']):
... print(item)
...
(1, 'sugar')
(2, 'spice')
(3, 'everything nice')
```...
!d itertools
This module implements a number of iterator building blocks inspired by constructs from APL, Haskell, and SML. Each has been recast in a form suitable for Python.
The module standardizes a core set of fast, memory efficient tools that are useful by themselves or in combination. Together, they form an “iterator algebra” making it possible to construct specialized tools succinctly and efficiently in pure Python.
For instance, SML provides a tabulation tool: tabulate(f) which produces a sequence f(0), f(1), .... The same effect can be achieved in Python by combining map() and count() to form map(f, count()).
can u do my goal of printing the respective parent and child letters?
!e
from string import ascii_lowercase, ascii_uppercase
print(*map(str.__add__, ascii_uppercase, ascii_lowercase))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz
not recommended to do this that way
why?
less cryptic:
from operator import add
from string import ascii_lowercase, ascii_uppercase
print(*map(add, ascii_uppercase, ascii_lowercase))
both are fine
direct usage of a special method, __add__
operator.add is more idiomatic because it represents exactly lambda a, b: a + b
whereas str.__add__ expect the first argument to be str specifically
ig it might be faster/stricter
!e
from operator import add
from string import ascii_lowercase, ascii_uppercase
print(*(upper + lower for upper, lower in zip(ascii_uppercase, ascii_lowercase)))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz
using zip makes it more clear
@primal shadow
SQLite is C, yes
@deep forge
Python isn't compiled to C
it compiles to bytecode
and that is interpreted by C
you can write Python modules in C if you need to
Ah I get you
as for cross-compilation -- that's pain almost always
if you cross-compile Rust/C/C++, there's an option to zig cc
idk how well that integrates into building Python packages
cargo-zigbuild is the easiest way to cross-compile Rust
(until you need to dynamically load other libraries)
Fruit of the poisonous tree is a legal metaphor used to describe evidence that is obtained illegally. The logic of the terminology is that if the source (the "tree") of the evidence or evidence itself is tainted, then anything gained (the "fruit") from it is tainted as well.
(mis)authentication may still lead to 404
if the server's policy is "don't even show that there's something to look at"
would be interesting to see how much randomness is in there given that's clearly typed manually
the goal is exact opposite
@ruby vortex 👋
Hi
I know how, just do so rarely
yea
why is the particular link above really long?
with emojis, depends on how the link gets pasted/copied
because it might get escaped
or might need to be escaped
emojis in urls turn into this sadly
😭
oh wait no, I just miscopied it
Hey @somber heath 😊
Hello Alisa , Opalmist and everyone!
!e ```py
def func(apple):
pass
print(dir(func))```
:white_check_mark: Your 3.12 eval job has completed with return code 0.
['__annotations__', '__builtins__', '__call__', '__class__', '__closure__', '__code__', '__defaults__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__get__', '__getattribute__', '__getstate__', '__globals__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__kwdefaults__', '__le__', '__lt__', '__module__', '__name__', '__ne__', '__new__', '__qualname__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__type_params__']
.
__code__ is where argcount is
.
:white_check_mark: Your 3.12 eval job has completed with return code 0.
()
I don't have it on 3.11
Wait, did you solve?
you're not clearing seen on some code paths
look at the other break
So I also clear in there right?
I'll see
What is assert keyword?
checks the condition
if it's false, raises an error
!e
def f(a, b, c):
x = 5
print(x)
print(f.__code__.co_argcount)
print(f.__code__.co_nlocals)
print(f.__code__.co_varnames)
print(f.__code__.co_freevars)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 3
002 | 4
003 | ('a', 'b', 'c', 'x')
004 | ()
What is assert?
!e
assert True, "message"
:warning: Your 3.12 eval job has completed with return code 0.
[No output]
!e
assert False, "message"
:x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | assert False, "message"
004 | AssertionError: message
!e
from inspect import signature
def f(a, b, c):
x = 5
print(x)
print(signature(f))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
(a, b, c)
@dire pebble yes, I was only checking whether it's cleared
I thought inspect would have something, Iwas jut digging through the source guys
(I didn't fix anything)
because it stopped after the error
!e
seen = list()
loops = list()
a = 1
stopper = 0
while stopper < 10:
stopper += 1
passer = list()
n = a
a += 2
while True:
for x in loops:
if bx := n in x:
print(f"The number {n} was found in the list {x}")
passer.append(bx)
if any(passer):
break
if n not in seen:
seen.append(n)
else:
loop = seen[seen.index(n):]
loops.append(loop)
print(f"A number loop was found! (started as {a-2}) ({n}) {loop}")
break
if not n % 2 == 0:
n = int(n*3+1)
else:
n = int(n/2)
seen.clear()
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | A number loop was found! (started as 1) (1) [1, 4, 2]
002 | The number 4 was found in the list [1, 4, 2]
003 | The number 4 was found in the list [1, 4, 2]
004 | The number 4 was found in the list [1, 4, 2]
005 | The number 4 was found in the list [1, 4, 2]
006 | The number 4 was found in the list [1, 4, 2]
007 | The number 4 was found in the list [1, 4, 2]
008 | The number 4 was found in the list [1, 4, 2]
009 | The number 4 was found in the list [1, 4, 2]
010 | The number 4 was found in the list [1, 4, 2]
seen.clear() after the loop
seen = list()
loops = list()
a = 1
stopper = 0
while stopper < 10:
stopper += 1
passer = list()
n = a
a += 2
while True:
for x in loops:
if bx := n in x:
print(f"The number {n} was found in the list {x}")
passer.append(bx)
if any(passer):
break
if n not in seen:
seen.append(n)
else:
loop = seen[seen.index(n):]
seen = []
loops.append(loop)
print(f"A number loop was found! (started as {a-2}) ({n}) {loop}")
break
if not n % 2 == 0:
n = n*3+1
else:
n //= 2
seen = list()
loops = list()
a = 1
stopper = 0
while stopper < 10:
stopper += 1
passer = list()
n = a
a += 2
while True:
for x in loops:
if bx := n in x:
print(f"The number {n} was found in the list {x}")
passer.append(bx)
if any(passer):
break
if n not in seen:
seen.append(n)
else:
loop = seen[seen.index(n):]
loops.append(loop)
print(f"A number loop was found! (started as {a-2}) ({n}) {loop}")
break
if not n % 2 == 0:
n = int(n*3+1)
else:
n = int(n/2)
seen.clear()
your code incorrectly conflates "seen ever before" and "seen in the current run"
fails because:
5 is in seen after run that originates with 3
because that run breaks on if any(passer): condition
what is this code for?
thus leaving seen look like [3, 10, 5, 16, 8]
in the next run, you pick n=5 and instantly see in in seen
and the code assumes that means a loop was encountered
starting with n=1:
1, 4, 2, 1, stop and clear
starting with n=3:
3, 10, 5, 16, 8, 4, stop and no clear
starting with n=5:
5, stop and clear
when you enter the state when a number was in a loop already, you don't clear seen
https://cum.rf.gd/neco-arc
SHORT FOR CUMULATIVE
"just say it's short for cumulative"
why do you have a share id in there
and nothing happened in my screen
prolly
try rickroll.com
its weird
exactly
its weird
WHAT IS DTHIS
try going to google.com
and typing rickroll and click on im feeling lucky
that is weird as well
@opal rock lol
and I think you can also write modules in Rust?
Why did you choose SQLite?
its baked into django
PyO3 user guide
easiest to use if youre not worried about scalability and spending extra time on seeting up a diffrent database
idk if it intermediate-compiles to C like Cython and some others, or generates a module directly
@vapid frigate
thx
I should one day look more into what libsql does (open-contribution fork of sqlite)
ok I have to get AFK and sleep
sqlite is closed for contributions
afaik they do not accept patches at all
rn trying to figure why ZeroMQ binding, that I'm using, doesn't support TIPC
you can
it's a plugin
tell that to MongoDB
Simplicity towards beggginer programmer
Yes, of course, but aside from that.
Subscribe to the Official Monty Python Channel here - http://smarturl.it/SubscribeToPython
What Have The Romans, taken from Life of Brian.
Visit the official Monty Python store - http://smarturl.it/MontyPythonStores
Visit the NEW Monty Python iTunes store - http://smarturl.it/MontyPython1D5TGitun
Welcome to the official Monty Python YouTube c...
I don't have Rust installed outside Docker
@rugged root it's based on rust-analyzer
their plugin was, at least
and this is too, probably
Python is something else which cannot be defined
also "non-commercial" kind of makes it unusable for most of what I do
iirc community editions and fully-free products are ok for commercial
educational -- no
"non-commercial" -- see the name
@somber granite 👋
Hello everyone
🙂
given me a job
Wreckonomics.
it works
a lot of things
any hungarians in the chat?
the world will turn to a ashy cinder , I bet
I read that as cider and was happy for a moment
a chilly bubbly intoxicating cider for you , available at The Restaurant at The End Of The Universe , remember where that is ? @rugged root
I do. And I'm also remembering the cow that was genetically engineered to WANT to be eaten
it was a piggy
Saw the tv series , listened to the entire audio series of all the books , Aurthur learns to levitate , because its easy , Aurthur said
if you had a million dollars , the bank will try to steal it from you ... accuse you of stealing it , then they would stela it
I'm suddenly reminded that Mos Def was Ford Prefect in the latest movie
latest with short , round robot - easy to manufacture toy , kinda like Transformers toys were designed before the cartoon series
everything will be fine , as long as you know where your towel is @rugged root
Agreed
movie , Idiocracy - must see it
Brawndo
making note
so would remote controlled shock collars be a good idea , wrangler tool ? @rugged root
I've been saying that for years
movie theaters had electrified seats ? hmmmm
10 programmer applicants - each in seperate rooms , 4 hours given to build a website , who won ? @rugged root
@graceful steppe If you're wondering why you can't talk, please check the #voice-verification channel
That'll tell you what you need to know about the voice gate
the street magician with zero credentials or the others with degrees ? who won ? @rugged root
I mean
I wouldn't hire David Blaine for IT
"Okay, Dave. We need to talk. STOP MAKING THE COMPUTERS DISAPPEAR"
most magicians are involved in hitech , its part of what they do
Not the street magicians
the street magician got the job , he wrote 2 versions of the website , their defined way , and then his way
their method was - put you in a room , give you 4 hours , now do it
If a company wants you , they will cut through red tape to get you , nothing cryptic
Hey Dear @rugged root
I hope you are enjoying your day so far.
Can you tell me Is there any Python jobs channel you can redirect me to 🤔
Not really, it's a bit out of scope for us. #career-advice may be able to point you to some resources, but we don't act as a jobs board or anything like that.
Okay @rugged root you are awesome 😎
Just saw, we have a couple pages linked in the #career-advice subject line/channel description.
Super I will check ✔️
war crime
ARMA Reforger?
Yes.
huh
their recent reviews seem relatively okay
did they actually fix something
it works now
idk what was broken
or rather something like
4 things I fixed and understood
and there are at least 6 of issues total
I really dislike paper material for some reason
like, touching paper is too ew for me
I wonder... Does a digital diagram have a more negative impact on the environment than the same diagram on paper
Not a fan of physical books?
put that diagram on 2x2x4K display grid at max brightness
HA
I read paper books and write on paper despite how much it hurts my brain
I'm thinking for long term storage time, too
the actual problem with books is lighting
^ not that far away from how I was reading during hiking and stuff
automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
I've never heard "cured" in this context
Such a weird choice of words
I would think remedied, rectified, corrected...
I've just wasted 10~30 minutes on debugging TIPC just to realise I've docker execd into a wrong container
Mac Pro is a series of workstations and servers for professionals made by Apple Inc. since 2006. The Mac Pro, by some performance benchmarks, is the most powerful computer that Apple offers. It is one of four desktop computers in the current Mac lineup, sitting above the Mac Mini, iMac and Mac Studio.
Introduced in August 2006, the Mac Pro was a...
"yeah, why have tweet ID when you can just store text in URL"
Genius
- signature so the author can't deny they wrote it
- hash of a previous tweet, yes
Elon had a brand named X before
like a long time ago
pre-paypal even iirc
it took my browser >minute to load that favicon lol
it blocks on some other request
/trigger or whatever
and that one took 1.1 minutes
while that processes, favicon doesn't load
Back in a bit
Did you know that many picnic baskets in the United Kingdom often include Scotch Eggs? That's cause they're an easy and tasty go-along. Our version of Scotch Eggs, made with ground beef instead of sausage, are a great variation that can be enjoyed anytime. (Don't forget the mustard sauce!)
Kittytax
One of the funniest South Park episodes... in my humble opinion.
👋 @rugged root
Back soon, on a call with support
All good, just sayin hi HAHA
screen?
yeah why not docker at that point
it does have storage costs to it
but not critical most of the time
databases belong in containers @ bcantrill
hence docker
who's bcantrill?
Bryan Cantrill, creator of dtrace
o
originally that was about Zones, before Docker even existed
ah
but Zones, like, died-ish
"it's not complicated until you put a discord bot and a web server in the same thread"
I think I'm educated enough on message/task queues to stop doing that
(still not motivated enough though)
docker does make it easy
should automatically put the processes on a separate thread right?
one per container
(this is literally discord.py and aiohttp running as two tasks spawned on the same even loop)
((not recommended))
I've split the bot I have into five different services, and it made updating and managing it way simpler
since I can't live-reload, for reasons
aiohttp as a server works good for in-memory-stateful services
it's single-thread-only, as far as I know
or, at least, multithreading for it requires so much effort, that you can just assume single-threadedness
(and single-process)
unlike WSGI/ASGI which are built to support multiprocessing
brb
iirc, there is some place in FastAPI docs where they say that, if runner (uvicorn) is guaranteed to be running with a single worker, it's fine to rely on that behaviour
or something similar
for JS/Python there's not much you can do better than just run with node/python itself
packaging to executable is for client/desktop distribution only, I'd say
Agreed
(in which case it'd still preferably not be a single executable)
ig for JS reliance on FS for modules is a bit less of an issue
since packaging everything in a single JS file is a common thing because browsers
meanwhile python: __file__
(which packages can potentially rely on to load associated resources from the package, and that's why pyinstaller has options to include those)
Back later
why does Yandex Cloud price calculator UI change so often
so basically the only cloud service, that I can access, charges $0.0153 per GB of outgoing traffic
@verbal zenith does this sound like a reasonable price?
@deep forge
though ig I can go with the evil corp (VK) but I doubt they're cheaper
I assume you are 🇷🇺 so your options are extremely limited
with some financial actions, it's possible to host on Alibaba Cloud I think
they're fine with location but still need a swift-okay card
China-compatible Mir still isn't working/isn't affordable
zero for incoming
VK doesn't list bandwidth prices for anything other than their S3
yes, they literally have (S3) in the name
$0.012~0.0156 per GB
regular CPUs don't go past 128GB support which is what Windows 10 Home limit is at
if you use Xeon proper/EPYC/Threadripper, you probably have enough money to pay for Pro
> pretty good at self-regulating
"doesn't autovacuum-blackout from time to time like postgres"
@deep forge can and will
my mobile internet provider intercepts HTTP 4XX and replaces them with ads
just fucking who implemented it
why
I should actually proceed with written complaint just for fun
at least they still return the correct error code after all the redirects happen
Hey Maro!
Why does it say you're new here?
I still need to figure out how to make (E)PGM and NORM work with ZeroMQ
11 years ago
also I didn't know Gist service was that old
notice the author
yet consistent and easy to read
(r.i.p.)
continuing on the topic of ZeroMQ:
how is Vec<u8> converted into ZeroMQ message?
@stuck furnace 👋
still getting used to the amount of GitHub notifications
it's not related to sending the message
just the conversion into zmq_msg_t
copy is the key word
as in it doesn't happen
Source of the Rust file src/message.rs.
ZeroMQ provides polymorphic deallocation
doesn't depend Rust or whatever else
ZeroMQ allows no-copy construction
not necessarily
if you have owned memory, you can just pass it
with free function alongside it to deallocate
and void *hint for whatever else data to dealloc
furthermore, ZeroMQ, depending on compile/context/socket flags, is allowed to do zero-copy on received messages
e.g. by giving you a handle to a portion of the receive buffer
which, conveniently, also increases the risk of running out of memory
src/msg.hpp lines 43 to 50
struct content_t
{
void *data;
size_t size;
msg_free_fn *ffn;
void *hint;
zmq::atomic_counter_t refcnt;
};```
*mut c_void is just void *
necessary for bindings to work type-wise
might as well be shared (e.g. Arc::into_raw)
some humans are nowhere near making decisions either
^ as my experience with that has shown
Is ChatGPT using this for training?
GPT2
If you use SQLite, sharing the database is rough.
yeah, even across threads
"what global hype trend will nvidia come up with next"
@deep forge https://www.uuidgenerator.net/dev-corner/python
!e python import uuid a = uuid.uuid4() print(int(str(a.replace("-")), 16))
:x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 3, in <module>
003 | print(int(str(a.replace("-")), 16))
004 | ^^^^^^^^^
005 | AttributeError: 'UUID' object has no attribute 'replace'
UWUID
!e python import uuid a = str(uuid.uuid4()) a = a.replace("-", "") print(hex(int(a, 16)))
I was right
:white_check_mark: Your 3.12 eval job has completed with return code 0.
0xfd45f2dfefac481fb810c6922783bdc9
!e
import uuid
print(help(uuid))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | Help on module uuid:
002 |
003 | NAME
004 | uuid - UUID objects (universally unique identifiers) according to RFC 4122.
005 |
006 | MODULE REFERENCE
007 | https://docs.python.org/3.12/library/uuid.html
008 |
009 | The following documentation is automatically generated from the Python
010 | source files. It may be incomplete, incorrect or include features that
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/B42SLFSMT4J5XLN26RREO6EDEU
!d uuid
Source code: Lib/uuid.py
This module provides immutable UUID objects (the UUID class) and the functions uuid1(), uuid3(), uuid4(), uuid5() for generating version 1, 3, 4, and 5 UUIDs as specified in RFC 4122.
If all you want is a unique ID, you should probably call uuid1() or uuid4(). Note that uuid1() may compromise privacy since it creates a UUID containing the computer’s network address. uuid4() creates a random UUID.
!e python import uuid print(int(uuid.uuid4()))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
278837739052484326342364071581910608492
!e python import uuid print(uuid.uuid4())
:white_check_mark: Your 3.12 eval job has completed with return code 0.
c816dda0-08a8-4980-a578-10907dd1e55f
!e
import uuid
print(repr(uuid.uuid4()))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
UUID('e8f8f4c5-b861-4477-af58-6a312a5b303e')
hmm
!e
import uuid
print(uuid.uuid4(), uuid.uuid1(), sep="\n")
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | fc71a8fa-3c42-41cd-aa08-4da021ebe230
002 | ec25f788-1d32-11ef-9d96-9bc070ac69b9
!e
import uuid
print(uuid.uuid4().hex(), uuid.uuid1(), sep="\n")
:x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 2, in <module>
003 | print(uuid.uuid4().hex(), uuid.uuid1(), sep="\n")
004 | ^^^^^^^^^^^^^^^^^^
005 | TypeError: 'str' object is not callable
!e
import uuid
print(uuid.uuid4().hex)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
d9cbb736fc214327bde0aac0dc63910a
:white_check_mark: Your 3.12 eval job has completed with return code 0.
<property object at 0x7fd905ce7a10>
^theoretical
mandatory meme-like remainder
https://www.sqlite.org/fasterthanfs.html
you might as well just load the entire database into memory
(as mentioned earlier)
Don't do this. Let FileSystem Caching handle the issue
"I'm being saved from the harmful information"
A zachem? Why tho?
No Russians allowed
they used to have, like, only some pages banned
Redis Stack, iirc
now it's all blocked
lawyers probably going "BLOCK IT ALL!"
Russia banning Discord is more likely than Discord banning Russia
actually true
also see wikidot's reasoning
although I don't know if this is just my region, but I can't send any files
I emailed discord on this they said that the provider for file posts doesn't allow my region
blanket-ban for "hacking attempts"
so far pnpm was the most surprising ban
collecting Russian data means potential ban by Russia
see linkedin
@gentle flint Discord does fuck all in terms of blocking pro-Russian cells, that's why
Karjakin complained to Putin
I think it was just due to a post on twitter
actually? 💀
I don't believe any of them would bother
Karjakin is (almost) friends with Putin
wow, great
((like, officially, not as a rumour))
sure
@gentle flint Russia does that internally now by just faking certificates
are you in MSC tz @vocal basin?
(via government-issued root CAs)
class PlayerJoinEvent_EventData {
string player = "unknown";
string identity = "unknown";
int playerId = 0;
SCR_BaseGameMode gameMode = SCR_BaseGameMode.Cast(GetGame().GetGameMode());
gameMode.GetOnPlayerRegistered().Insert(OnPlayerConnected);
}
Calcium (the pilot episode of Look Around You) with Edgar Wright and Peter Serafinowicz
@hallow geode 👋
Subscribe and 🔔 to the BBC 👉 https://bit.ly/BBCYouTubeSub
Watch the BBC first on iPlayer 👉 https://bbc.in/iPlayer-Home Kitchen Gun - In stores now! 🔫😂 | The Peter Serafinowicz Show - BBC
In this parody of the Cillit Bang commercial, Peter transforms into Derek Baum, a TV salesman pushing a new cleaning product - The Kitchen Gun.
Comic actor...
AYOOO thats wild.
@severe lava 👋
almost 10pm
Oooo
Good morning guys
What's up
I'm chilling will start my go lang lecture soon™️
I'm just a little lazy atm
The basics i completed yesterday
Like the syntax and all
Nah nah 😹
I'm a student
A little noob
Just for fun
Aha
That's the same scenario with a friend of mine
He did a interview
But he barely knew Golang
He learnt it as he did the job
So ig that's a little motivating for you to chr consistent
Since now it's a part of your Job and you get paid.
Not like me. I'm literally so lethargic
Aha right. Where are you from tho?
Where in India tho
If you're comfortable telling
Makes sense to me.
I have a couple of friends who are from Rajasthan but they have lived most of their lives in Kolkata
I'm Odia btw
Ah i see.
Don't come 😹
Just kidding
Hahahaha
Good talk. Nice to meet ya! See you around ✨ @lavish rover
Bye 👋
@chilly helm @wise fjord @eager merlin 👋
Hello
allo.
How long does it usually to take for VC access?
only 50 msg
oh ok
is there a bot keeping track of the amount of messages i am putting out?
Yeah!
oh cool. thanks for answering.
u can give ur intro here!
My intro?
yeah man!
Explain please?
tell me about urself
Damn r u marketing ur product!
Sad! i am expecting some discount
This is an AI Image Generator. It creates an image from scratch from a text description.
yeah opalmist is great artist like pabalo escobar
This is your site? @somber heath
No.
Oh ok, well I am quite new to everything here, but i know a tiny bit enough to want to learn more and more. I drive 18 wheelers for a living but also taken school for IT in trade school. I want to learn code specifically python at first for personal use and eventually progress to something bigger later on. Im not going through school or plan too. I see myself becoming a self taught freelancer. Considering company's require a fancy piece of paper saying i wasted my money...
@noble solstice can you help to implement Domino's API in My jarvis Programm?
@noble solstice
classic 2001 space oddysey
is it on github?
Great! u r doing great!
driving 18 wheelers sounds cool
Nope I have not enough time!
It is pretty fun. just trying to find a new field to get into, im only 25
I think i have time @noble solstice
yeah!
Fear of jerry!
Isn't Brian also the founder of oxide computer?
oh
Source forge ... Blast from the past
yall i have a slight suspicioun parker is a selfbot using openai
It's a source code hosting service, before GitHub, when projects shared code haphazardly.
yes
@somber heath How are ya 
haha Gald that You are active and Alive 🫡


@vast tundra 👋
@somber heath is there a way to compare requirements c9nflicts
what if they're rabbits

@obsidian dragon is MagaMind 
The hadada ibis (Bostrychia hagedash) is an ibis native to Sub-Saharan Africa. It is named for its loud three to four note calls uttered in flight especially in the mornings and evenings when they fly out or return to their roost trees. Although not as dependent on water as some ibises, they are found near wetlands and often live in close proxim...
This male American woodcock has some glide in his stride and some dip in his hip. Here he is performing an early morning "sky dance" to woo the woodcock ladies in springtime at Moosehorn National Wildlife Refuge in Maine.
Love funky birds dancing on public lands? Join our E-network and stay abreast of the ways you can help protect wildlife, wil...
@robust mist 👋
oh i just joined lol
im just learning python rn and i had questions abt code
oh crap
sorry Lmfao
i only know 3 hours of a youtube tutorial about python
and Im making a quiz game but I dont understand what im writing mostly
i understand a lot of it but some of its confusing
guesses = []
correct_guesses = 0
question_num = 1
for key in questions:
print("----------------------")
print(key)
for i in options[question_num-1]:
print(i)
guess = input("Guess a letter: ").upper()
guesses.append(guess)
correct_guesses += check_answer(questions.get(key), guess)
question_num += 1
display_score(correct_guesses, guesses)
def check_answer(answer, guess):
if answer == guess:
print("Correct!")
return 1
else:
print("Incorrect!")
return 0
def display_score(correct_guesses, guesses):
print("---------------------")
print("RESULTS")
print("---------------------")
print("Correct guesses: ", end="")
for i in questions:
print(questions.get(i), end="")
print()
print("InCorrect guesses: ", end="")
for i in guesses:
print(i, end="")
print()
score = int((correct_guesses/len(questions))*100)
print("Your score is: "+str(score)+"%")
def play_again():
response = input("Would you like to play again? (y/n) ").lower()
if response == "y":
return True
else:
return False
questions = {
"Who created Python?: ": "A",
"What year was Python created": "B",
"Python is tributed to which comedy group?: ": "C",
"Is the Earth round?: ": "A"
}
options = [["A. Guido van Rossum", "B. Elon Musk", "C. Bill Gates", "D. Mark Zuckerberg"],
["A. 1989", "B. 1991", "C. 2000", "D. 2016"],
["A. Lonely Island", "B. Smosh", "C. Monty Python", "D. SNL"],
["A. True", "B. False", "C. Wut", "D. Fungus"]]
new_game()
while play_again():
new_game()
print("Bye!")
thats literally all the code
LMFAO
true
here
1s
print("----------------------")
print(key)
for i in options[question_num-1]:
print(i)
guess = input("Guess a letter: ").upper()
guesses.append(guess)
correct_guesses += check_answer(questions.get(key), guess)
question_num += 1```
Python tutorial for beginners full course
#python #tutorial #beginners
⭐️Time Stamps⭐️
#1 (00:00:00) Python tutorial for beginners 🐍
#2 (00:05:57) variables ✘
#3 (00;17;38) multiple assignment 🔠
#4 (00:20:27) string methods 〰️
#5 (00:25:13) type cast 💱
#6 (00:30:14) user input ⌨️
#7 (00:36:50) math functions 🧮
#8 (00:40:58...
i dont understand how append is making it work
I understand its grabbing the key from the dictionary
and like
oh thats a list
shiet
whats append do
So basically append is adding my guess to the list to check if the guess is correct?
Ah I see
great analogy
ok i get it better
thank u
Anyone using FAST API ? on big projects ?
FAST is an acronym used as a mnemonic to help early recognition and detection of the signs and symptoms of a stroke. The acronym stands for Facial drooping, Arm (or leg) weakness, Speech difficulties and Time to call emergency services.
F - Facial drooping - A section of the face, usually only on one side, that is drooping and hard to move. Thi...
LOL
@whole bear 👋
@somber heath Hello, I am not voice verfied sorry
Indeed. #voice-verification
thank you
Hi everyone 😊
@whole bear 👋
@whole bear
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
YouTuber, Corey Schafer, playlists.
python.org, Documentation, upper left, download, documentation in the form of pdfs in a zip.
oh ok
whats this
are you good at coding/ programming ??
how can i improve this?
!code
operator = input("Enter an operator (+ - * /): ")
num1 = float(input("Enter the 1st number: "))
num2 = float(input("Enter the 2nd number: "))
if operator == "+":
result = num1 + num2
print(round(result, 3))
elif operator == "-":
result = num1 - num2
print(round(result, 3))
elif operator == "*":
result = num1 * num2
print(round(result, 3))
elif operator == "/":
result = num1 / num2
print(round(result, 3))
else:
print(f"{operator} is not a valid operator")
hm ok
if operator in valid_operators:
...
that looks better
A powerful, visual tool to configure your keyboard. Based on the open-source QMK firmware.
paste the query
give me one sec
Select "View" and show the SQL view, paste that.
SELECT N219BOOKS.Title, N219BOOKS.Author, N219BOOKS.Price, N219BOOKS.Release_Year, N219BOOKS.Available, Avg([Price]) AS Average_Book_Price
FROM N219BOOKS
WHERE (((N219BOOKS.Price)>=5) AND ((N219BOOKS.Release_Year)=2014 Or (N219BOOKS.Release_Year)=2015) AND ((N219BOOKS.Available)=Yes));
SELECT Avg(N219BOOKS.Price) AS Average_Book_Price
FROM N219BOOKS
WHERE N219BOOKS.Price >= 5
AND (N219BOOKS.Release_Year = 2014 OR N219BOOKS.Release_Year = 2015)
AND N219BOOKS.Available = Yes;
sql
the problem is that you cannot have non-aggregated columns (title) unless you group by (the title)
ok so i am trying to get the average to work but when I uploaded your code it takes away the other titles
so I still need to keep these titles
okay, let me look.
thanks
do you want to gropu each book and include the details AND the average price ofal books that match the search criteria?
yea so I want to gain the overall average for the books
then you need a sub-query inside the main query. stand by
SELECT N219BOOKS.Title, N219BOOKS.Author, N219BOOKS.Price, N219BOOKS.Release_Year, N219BOOKS.Available, AvgSubquery.Average_Book_Price
FROM N219BOOKS,
(SELECT Avg(N219BOOKS.Price) AS Average_Book_Price
FROM N219BOOKS
WHERE N219BOOKS.Price >= 5
AND (N219BOOKS.Release_Year = 2014 OR N219BOOKS.Release_Year = 2015)
AND N219BOOKS.Available = Yes) AS AvgSubquery
WHERE N219BOOKS.Price >= 5
AND (N219BOOKS.Release_Year = 2014 OR N219BOOKS.Release_Year = 2015)
AND N219BOOKS.Available = Yes;
this morning in front of my office:
the disease has spread
How to do it
eeek
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
8. Do not help with ongoing exams. When helping with homework, help people learn how to do the assignment without doing it for them.
we can help with it, but do not expect easy solutions from us
start with line 1
here you have to ask the user for input and assign the resulting value to the variable ticket... how do you ask user for input in python?
any hungarians in the chat?
@fickle spear Sure, I can help you learn. Are you currently learning from a particular resource?
nah
that's why i want help
!resources So we have a ton of resources linked on our site
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
I typically recommend "A Byte of Python", which is free on its respective site
If videos are more your jam, we've got a couple channels listed on there that are awesome
ok thnks
And if you have any questions or need something explained, don't hesitate to ask
I love teaching new folks, but it's easier if they have a particular question or have a particular part they want to learn
Way more than enough
Well I want to play games at the same time 
!stream 609675647203409942
✅ @deep forge can now stream until <t:1716992534:f>.
I'd run an air cooler on the CPU and swap the SATA drive for an NVME
Why air cooler?
Ryzens are generally fine with an air cooler and it's one less thing to worry about.
@deep forge I wouldn't use sql lite especially if you are storing user data
or like anything important honestly
Why would you be worried with a water cooler?
Cheaper, you're running a 100 watt processor, no risk of leaking, no pump to go out.
why sata and not m.2?
!stream 609675647203409942 30M
✅ @deep forge can now stream until <t:1716994777:f>.
Because I'm old school
Celeron J4105 is enough for programming (especially if you don't do anything more resource hungry than Vim)

If you have the budget the 7800x3d is a damn good step up

Is this channel spastic this morning?
thanks man @rugged root
@graceful minnow I scooted you to AFK since we could hear conversations in the background
And I'm assuming you went AFK
nord theme
someone is smoking at the bus stop so I made a haiku
waiting for the bus
someone's smoking cigarettes
it smells really bad
hey there big boy
they still exist , big boy
There's some in Cincy
they were good
It's such a classic
i like the drawing of penis n balls scrotum in the ice.. edit: yeah those must be footprints
kids usually yelling in background
Was gonna say
curl / postman
@vestal light @vocal basin Is this better?
Not really an issue?
128
@rapid chasm you can save 20-30$ on the harddrive. WD_Black SN850 series is a bit cheaper and more than enough speed.
I personally would never use anything other than Samsung (especially if that something is WD)
||iphone just died||
doesn't that have less space or have I looked up the wrong model?
because, like, less space ofc is cheaper
The 2 tb SN850 is ~$30 less than the 990pro from a quick amazon look
I have indeed looked up the wrong one
There's only a quarter bazillion vaguely written slightly different descriptions
@gentle flint heyo
A good one?
oh, wait I can't red
those are examples not bindings
I was trying (for, like, ten seconds) to find how to use TIPC in Python
apparently it's just socket
!e
import socket
print(*(s for s in dir(socket) if s.startswith("TIPC")))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
TIPC_ADDR_ID TIPC_ADDR_NAME TIPC_ADDR_NAMESEQ TIPC_CFG_SRV TIPC_CLUSTER_SCOPE TIPC_CONN_TIMEOUT TIPC_CRITICAL_IMPORTANCE TIPC_DEST_DROPPABLE TIPC_HIGH_IMPORTANCE TIPC_IMPORTANCE TIPC_LOW_IMPORTANCE TIPC_MEDIUM_IMPORTANCE TIPC_NODE_SCOPE TIPC_PUBLISHED TIPC_SRC_DROPPABLE TIPC_SUBSCR_TIMEOUT TIPC_SUB_CANCEL TIPC_SUB_PORTS TIPC_SUB_SERVICE TIPC_TOP_SRV TIPC_WAIT_FOREVER TIPC_WITHDRAWN TIPC_ZONE_SCOPE
discord be doing anything for money 😭
can't red
"can't wrte either"
@rugged root enjoying schadenfreuding
@deep forge I think you were AFK, as your screen didn't change for like... a couple hours?
@terse needle I don't know if you were talking to us or not
So I scooted you to AFK
hii
no thank you for moving me
Yeh, went out, would you be able to remove me from the afk vc
As in just disconnct you from the call?
Yes, please
aloo
Done
indeed
!stream 958057865032106045
✅ @versed heath can now stream until <t:1717002337:f>.
I remembered I haven't shown this another weird Rust code to @swift valley yet lol
https://gist.github.com/afeistel/7b28336dc6b1615239409fdd4077eaaf
functors/whatever for Future without Box::pin
that's certainly one of the ways to implement HKTs of all time
all three asserts at the bottom are ran at compile time
wait wtf
if you change first 10 to 11, the generated ASM changes a lot
same for others
A browser interface to the Rust compiler to experiment with the language
I have a skill issue right now on advanced trait trickery but I'll get around to learning this eventually
(hopefully)

there's a separate download cache
code is in the cache
compiled code is in the target
!stream 425552190283972608
✅ @peak depot can now stream until <t:1717002875:f>.
there's also this model but Rust is just unable to handle it
https://gist.github.com/afeistel/00288d55c6007e59ba86cfb73e06bd4b
I need to make so much type rearrangement to get it to understand what happens
I'm having to write a proof expressed as functions
the irony of pretty-printer code being ugly
similar irony to fast compilers being written in Rust which is terribly slow to compile
One of these days I'll start working on the PureScript Analyzer project again
@rugged root what do you think about these function names
https://gist.github.com/afeistel/00288d55c6007e59ba86cfb73e06bd4b#file-meow-rs-L401-L448
at least I can prototype faster in OCaml
nin the downward spiral backing vocal
yum
@gentle flint we had snow this month
the +25°C, -1°C, +25°C again within two weeks is truly something
Agreed. Still don't like that it's called Forall
Should be ForAll
Or something
@rancid fractal hi
hello
can i join you guys??
you dont have to take permission
oh okayy
If you want to join just join
i didd
#voice-verification @rancid fractal you should read this channel
