#voice-chat-text-0
1 messages · Page 409 of 1
That would be refreshing.
Hell, I have people who still continue to be mean and even use what I say to hurt me back.
Like at this point I feel it logically doesn't make sense to vent because I'm showing weakness, and I am lowering myself in other people's eyes at best and getting hit with my own words later at worst.
If that's what you think it is
but others see strength in being able to vocalize oen's struggles
and share
some see weakness in the inability to seek help from others
Because then you just hold yourself back, over the fear of others thinking poorly of you
AF, on a lighter note, I have been fiddling with different implementations.
I need one that would have q0 and q1 be the roots (so that we can calculate max depth of each qubit).
The children approach from what I understood require a bottom-up construction so it makes q0 and q1 the leaves (which in turn doesn't allow for max depth of each qubit, just the overall max depth).
The other way I feel is to just fix what I have right now (but the caching idea while it works is really ugly imo).
So, was wondering if we could modify the children approach to reverse the arrow direction (so that we can calculate the depths from each qubit).
!voice @ashen trout
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Suwubauwu.
you can also store all path length (node-to-node)
I don't follow.
I tried using repr as a caching mechanism, but it's suuuuper slow.
I am trying to find a boolean approach for tracking changes to a node (which is mainly through its grandchildren).
Like if the grandchildren have children, that is changing the grandparent's depth.
epoch counter
Could I see an example?
@elder fjord 👋
This a bot?
No.
Alright gotta make sure
He's a rare human specimen. Known as "polite".
What are you guys doing tho?
Speak for yourself, nobody has changed my battery in years.
That’s rare nowadays lol
Shhh don't let them discover us.
Are you guys all coders?
Sometimes.
I feel like you’re being sarcastic
!e
from functools import partial
class EpochRef:
def __init__(self):
self.epoch = self.__epoch = 0
def __enter__(self):
del self.epoch
self.__epoch += 1
return self
def __exit__(self, et, ev, tb):
self.epoch = self.__epoch
class CachedValue:
def __init__(self, ref, factory):
self.__ref = ref
self.__factory = factory
self.__epoch = None
@property
def value(self):
epoch = self.__ref.epoch
if epoch != self.__epoch:
self.__epoch = epoch
self.__value = self.__factory()
return self.__value
def main():
ref = EpochRef()
items = [1, 2, 3, 4]
total = CachedValue(ref, partial(sum, items))
print(total.value)
with ref:
items[2] = 5
print(total.value)
main()
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 10
002 | 12
first try
No, if I am anything at the moment, it's not sarcastic.
oooh, topical!
Hmmm
What’s it supposed to do
Lol no I mean the code what does it do
Oh. It's to help cache the depth calculation of DAGs (directed acyclic graphs).
Essentially if you have calculated the depth of a node, and the node and its children by extension have not changed, then the depth has not changed so you cache it to not recalculate it multiple times.
Ahhh understood
It’s been a mintue since I’ve had to deal with nodes
I’ve watched it
And wow that guys story went nowhere
Yes the old witch lady
Oh he meant her alright
@somber heath the only wood nymph I know is the Alameda Research CEO
Ngl that was cold
Whaaaaaaaaat
Hey Guys, i am making a application like basic paint. i have to use turtle. i did make a canvas and add event listeners for dragging the turtle. but i want the turtle to follow my Computer cursor, is there any way to do that?
Nahhhh I never seen that scene
So, a context manager that would track the changes?
mutably borrows the state, destroys all caches on exit
I am still not sure I understand how it would track the grandchildren of each node.
It’s crazy yu don’t see the difference with this argument
🥲 Please Help
Which would need to prompt a recalculation of the entire DAG.
But I don't understand where the context manager would be placed in to track the changes in the grandchildren.
around each change
So inside the node's to method?
Not sure about literally
man inherited half a billion? from his old man
he knew his fater
father*
a bastard does not know their father
But then it wouldn't propagate throughout the entire nodes I feel. Because let's say you do A.to(B), A.to(C) (which implicitly does B.to(C) essentially), and then C.to(D) which no longer is calling .to for A.
It would track changes for the first two, but the third needs to also cause all parents of C to recalculate as well.
uh
I might be getting trolled by lambda scoping
!e
test = [(lambda: i) for i in range(5)]
print(*(f() for f in test))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
4 4 4 4 4
yes I was
trying to work with Jupyter Notebooks that other people made are the main reason I switched to marimo
!pip marimo
welcome to Go for loops
Reminds me of a mistake I made once exactly like this hehe.
it's auto-modded
!e
class EpochRef:
def __init__(self):
self.epoch = self.__epoch = 0
def __enter__(self):
del self.epoch
self.__epoch += 1
return self
def __exit__(self, et, ev, tb):
self.epoch = self.__epoch
class CachedValue:
def __init__(self, ref, factory):
self.__ref = ref
self.__factory = factory
self.__epoch = None
@property
def value(self):
epoch = self.__ref.epoch
if epoch != self.__epoch:
self.__epoch = epoch
self.__value = self.__factory()
return self.__value
def main():
ref = EpochRef()
value = 1
partial_sums = [CachedValue(ref, (lambda i: lambda: value + sum(x.value for x in partial_sums[:i]))(i)) for i in range(5)]
print(*(x.value for x in partial_sums))
with ref:
value = 2
print(*(x.value for x in partial_sums))
main()
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 1 2 4 8 16
002 | 2 4 8 16 32
@upper basin ^ cascading cache invalidation
@drifting dune @full moss 👋
in my experience, the performance of function/class vs comprehension/loop is completely unpredictable
takewhile() is very situational. In my code, it works quite well, but I decided to switch back to normal while loops for readability reasons
e.g.
def decode_string(stream: BytesIO) -> bytes:
"""
Decodes a bencoded string from a byte stream.
Bencoded strings follow the format `<length>:<string>`, where `<length>` is the
number of bytes in the string. This function reads the specified length and extracts
that many bytes as the string.
Args:
stream (BytesIO): Byte stream containing the bencoded string. `BytesIO` is used
here to enable efficient sequential reading of bytes, which mimics reading from
a file-like stream and makes handling the data easier during decoding.
Returns:
bytes: The decoded byte string.
Raises:
ValueError: If the encoded value is invalid or ends unexpectedly.
TypeError: If the input isn't a byte stream.
Examples:
>>> with BytesIO(b"5:hello") as stream:
... decode_string(stream)
b'hello'
>>> with BytesIO(b"10:hello12345") as stream:
... decode_string(stream)
b'hello12345'
>>> with BytesIO(b"3:hi") as stream:
... decode_string(stream)
Traceback (most recent call last):
...
ValueError: Decoding error: specified length doesn't match actual string length.
"""
# Reads the length of the string in bytes until `:` is found
length_bytes_list = list(
takewhile(lambda c: c != b":", iter(lambda: stream.read(1), b""))
)
assert length_bytes_list, "Decoding error: missing length specification"
length_bytes: bytes = b"".join(length_bytes_list)
assert (
length_bytes.isdigit()
), f"Invalid character in length specification: {length_bytes}"
length = int(length_bytes)
string: bytes = stream.read(length)
if len(string) != length:
raise ValueError(
"Decoding error: specified length doesn't match actual string length."
)
return string
I was about to say, come a long way
one message didn't get deleted seems like
but that is the inspiration
yes I am a big fan of doctests
not the result
(deleted now)
Push to talk is your friend
Love this side
Clari, I can hear you typing, wanna just say it?
I bet it is
but it's not
and we're all enjoying the sounds of keyboard
instead
how about push to talk?
so immaculate
though I guess mute is always a good alternative if the objective is to annoy 🙂
couldn't be more visually appealing
the offer of the mech keyboard for more noisE?
is to make things better for us?
I do understand the concept of push to talk as a consideration for the ears of the others 🙂
The whole chat?
cut off the nose to spite the face
good times
AF, what does this mean?
lambda i: lambda: value
interesting, my neighbor's space heater seems to be picked up as speech and that's why the mic keeps going through when it shouldn't
What is this error?
NameError: cannot access free variable 'partial_sums' where it is not associated with a value in enclosing scope
for the record, the keyboard is only intended to be annoying for when I am forced against my will to go into the office for a cloud-based job
not yet defined
The way I understood it was that we are defining a function that takes i, and returns another function (which has no parameters and uses i). I tried to remove the inner lambda and it gave this error.
and thus am forced to interact with extroverts
So it freezes i to pass it into the inner lambda? And then continues to iterate?
especially 65 year old extroverts. the absolute worst part of office work. zero indoor voice, incapable of using headphones, and insists on talking at you while you're trying to work.
I won't lie, it's new to me.
slight correction of CachedValue:
@property
def value(self):
epoch = self.__ref.epoch
if epoch != self.__epoch:
del self.__value
self.__epoch = epoch
self.__value = self.__factory()
return self.__value
I would have made a temporary variable (I didn't know you could iterate over a variable as you're defining it, feels a bit odd to me).
effectively captures the i by value instead of by reference through evaluating it and passing as an argument
calling the function creates a new variable i inside the lambda

@willow light the context menu button, "the one that no one uses"
trying to remember which one that is
in my case it's fn+search
I use it for quickly opening context menu when I typo a word to pick from autocorrect
How about this one?
my laptop has calculator button on the touchpad
just for fun, when I rewrote the driver in Rust, I did implement that too
that one reminds me of a very cursed Logitech keyboard
this one is pow-profile but not as low as laptop keyboards
the best keyboard I had so far
I wish I could program the lighting on it
because it has that per-key
Very cool keyboard !!
Some of my layout is a little cursed
this is unreasonably limited
can someone help me i cant install pygame
I have logitech mx master 3s mouse
can someone help pls
Cool mouse
!e
value = 1
a = [(lambda x: value + sum(a[:x]))(i) for i in range(5)]
print(a)
: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 | a = [(lambda x: value + sum(a[:x]))(i) for i in range(5)]
004 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
005 | File "/home/main.py", line 2, in <lambda>
006 | a = [(lambda x: value + sum(a[:x]))(i) for i in range(5)]
007 | ^
008 | NameError: name 'a' is not defined
you're trying to evaluate it before it's defined
bye bye
partial_sums = [
CachedValue(
ref,
(
lambda y: lambda: value + sum(x.value for x in partial_sums[:y])
)(i)
) for i in range(5)
]
!e
value = 1
a = [(lambda x: lambda: value + sum(f() for f in a[:x]))(i) for i in range(5)]
print(*(f() for f in a))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
1 2 4 8 16
partial_sums = [
(
lambda y: lambda: value + sum(partial_sums[:y])
)(i)
) for i in range(5)
]
I can do each key individually, as well as custom patterns. When I listen to music, I get the levels animation on the keyboard.
!e
value = 1
a = [(lambda x: lambda: value + sum(a[:x]))(i) for i in range(5)]
print(a)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
[<function <lambda>.<locals>.<lambda> at 0x7f8b4c385440>, <function <lambda>.<locals>.<lambda> at 0x7f8b4c3854e0>, <function <lambda>.<locals>.<lambda> at 0x7f8b4c385580>, <function <lambda>.<locals>.<lambda> at 0x7f8b4c385620>, <function <lambda>.<locals>.<lambda> at 0x7f8b4c3856c0>]
In addition to the mouse lighting up with color coding based on volume level

(Reaction is this)
I usually don't have it react when I keypress, though, since I found it to be distracting. So I just use the colors to highlight certain keys that I have programmed macros into.
I just use the static one
it lights up when hands get close to it (without typing)
128bit
async def generate_session_id():
return ''.join(random.choices(string.ascii_lowercase + string.digits, k=128))
128 bits not characters
you can use this
https://github.com/ulid/spec
or, since you're basically on a single thread because of Python, snowflake (64 bits)
AF, the f() in your original code would be this?
self.__value = self.__factory()
yes
import secrets
import base64
async def generate_session_id():
random_bytes = secrets.token_bytes(16)
session_id = base64.urlsafe_b64encode(random_bytes).decode('ascii').rstrip('=')
return session_id
though this is for persistence, so I guess probably not
Not slow, yes smart
Its Decent?
!d secrets.token_bytes
secrets.token_bytes([nbytes=None])```
Return a random byte string containing *nbytes* number of bytes. If *nbytes* is `None` or not supplied, a reasonable default is used.
```py
>>> token_bytes(16)
b'\xebr\x17D*t\xae\xd4\xe3S\xb6\xe2\xebP1\x8b'
I am slow compared to AF. They think, then write, and explain and I still have to ask a ton of questions to understand it.
Very slow.
AF, I feel what you wrote could be generalized to a ABC for caching arbitrary data structures, right?
should i increse the bytes from 16 -> 32
👋
I feel for circuit_log (the list of dictionaries, where dictionaries represent the method called with its parameters) this could be useful.
it's you who's signing the session id, it's not the users generating it
your only potential issue is collision, which is extremely unlikely
"if you're rolling your own auth, might as well make a custom binary format"
I've been sitting at the keyboard for too long, time to go to the gym. Anyone want to spot for me?
I mean not that low, but could mix and match different alphabets.
that sounds like a primeagenism
Like imagine adding chinese, korean, japanese, russian and arabic letters in there.
I have no clue what primeagen opinions on anything are anymore
yeah, was about to say "my boomer brain cannot follow it"
Musk never made anything of his own, he just buys other people's ideas
Aren't you gen Z like me?
Like we're born past 2000.
Right?
I had too much Soviet influence
I'm only recently starting to be influenced by intl zoomer stuff
Only soviet influence I like is vodka
As in we all have pelmeni in our freezers
@tacit crane Musk's AI thing is only one letter off from another one
I don't use Instagram, never touched Snapchat nor TikTok, so I was safe.
I only use content-specific stuff on youtube, and my shows are all old ones that I periodically rewatch.
my only vector for acquiring that is Discord
Grok/Groq
True, discord is a bit mixed.
I saw that on lemmy lol
Yay Shi-'
just A
A corporated
"The AI"
no intelligence
Y corporated (pun intended)
X was a company
then he bought it back
Musk was related to it
maybe even was a founder
definitely claimed to be
@willow light idk if you saw this one before
wait, I have a Java clip
and by wait I do mean wait, the VM is starting up
10 seconds · Clipped by Alisa Feistel · Original video "Software Engineering : Greatest Hits 1947 2047 Mark Rendle & Dylan Beattie" by NDC Conferences
just add this
# type: ignore```
Would it make sense to substitute my lists of dicts with a Pandas dataframe?
Just to improve the speed.
I loved this episode.
I feel bad, he did something good, but as always took it to an extreme.
Could do
Should do?
To improve speed of manipulations.
democracy
Ah. The C++ creator paradox.
Certainly it will make it more convenient to do database-type manipulations of the data efficiently.
Isn't that Linus' graph?
Right now, I just iterate through the list, and manipulate the value of the key for each dict one by one like that.
autotiles are a godsend
It's the simplest approach I feel, and maybe the most pythonic to some sense, but feels quite slow.
would've taken me like 5x longer to draw that sand path there without
Like if I can improve the speed of this, it would propagate throughout my entire codebase given how much I use this feature.
we love optimization
C
Scrum masters: D
YOUR MACHINE IS A FUCKING WHITEBOARD
my machine is a binary full adder with steam pipes and turbines
pip install pygame pytmx pillow <3
@upper basin docker docker docker
So to use docker or to not use docker?
Use it!
Not mine, our scrum master started using Obsidian with the Kanban plugin a week before I was laid off.
My issue is that depending on OS, I get some floating point error for Windows and Mac Os.
someone should use N++ and cmd
Obsidian
so only they get to see "the whiteboard"?
the superior way to write code
The markdown was put on bitbucket stash for the team.
I hate Notion with a passion, but Notion for Enterprise seems like a good usecase for "I want to use overpowered notes apps for my kanban boards"
@upper basin try and measure
I don't know what's more performant
@upper basin where is the hardware dependency coming from in your case?
* OS, yes
are you using randomness?
for now only sub-issue/parent issue
whereas Forgejo has dependencies
i.e. "issue A is blocked by issue B"
it got quiet
back later 👋
oh no!
the leavers
are leaving
I'm working
at the office
wfh = talk, in office = listen and type
@past hill part 1 or part 2?
Contestant (new programmer): C.
Host: Are you sure? Final awnser?
Contestant: Final Awnser C
work work work time
yeah, only weekends
Update on The Pile
Anyone up for a snowhike?
More snow Thursday btw, so the pile will continue to grow 😛
!stream 842190918165594114
✅ @past hill can now stream until <t:1739296363:f>.
We stream stuff that isn't Python all the time, no worries
why is LLD in python so confusing

my first thought was lld
the linker
and that does indeed sometimes get in the way when installing Python packages
@gentle flint Yo
GoF Patterns-/Fowler's Refactoring- related stuff, right?
Hello to everyone
low level design (LLD) i mean
Man I cannot type today
hello
give me few links from where i can learn oops in python,
i am java developer
Java-style OOP translates more or less directly into Python
so most of the learning would just be about finding more pythontic ways to do the same things
java is comfortable for me, i have been put in the new team where i have to code in python 😂
yo
... take out the trash
Confirmed, @chilly wolf is a crime fighter
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
We have a voice gate
okay it is
chopping veggys - net show
Hemlock conspired with Hemlock, and Hemlock forgot about that
I dont recalll - is a way out of it
this looks quite sane
https://effectivepython.com/
👉 
When did it come out?
zubba zubba bubba
match / case
Wait that's not right. Match was later than that, right?
👉 
3.10 ???
Was it 3.10?
i wish i could speak but i think i have to wait!
My memory is indeed shit
You'll get there sooner than you think. Just hang out and participate in chat (usually if people are in VC they'll also be watching this chat so that no one gets left out of the convo)
Write Docstrings for Every Function, Class, and Module
okay, this is a bit dangerous
because
"""
"""
```technically fits that
If you plan on hanging out in the server for a while, the amount of time it takes to meet the criteria will feel like a drop in the bucket
Should have been titled "Write Meaningful Docstrings for Every Function, Class, and Module"
I prefer leaving things explicitly undocumented when there is no better way
so that you can see the percentage
https://www.multiplechoicequestions.org/python-programming/which-version-of-python-introduced-the-match-case-statement/ is this adequate @rugged root
Which version of Python introduced the match-case statement? a) Python 3.8 b) Python 3.9 c) Python 3.10 d) Python 3.7 Answer: c) Python 3.10 Explanation: The match-case statement was introduced in Python 3.10 as part of the language’s support for structural pattern matching. This feature allows developers to write more expressive and readable co...
I just couldn't remember the year it became a thing
@rugged root time for random trivia:
do you know about semver prime?
when you have, for example, separately ABI versioning and API versioning, you can combine them in one number
Remind me what ABI stands for
Gotcha
(
f"{2**(ABI_major) * 3**(API_major)}"
"."
f"{2**(ABI_minor) * 3**(API_minor)}"
"."
f"{2**(ABI_patch) * 3**(API_patch)}"
)
incrementing ABI version part means multiplying total version by 2
(and for API it's 3)
just as an example
generalises to arbitrary number of things needing to be versioned semverly
Know When and How to Replace Python with Another Programming Language
@peak depot Sleep well
Beware of Exception Variables Disappearing
what a clickbait
ask AI how many cats in the room - maybe funny response
@peak depot
"cat haven"
"feline conference"
show it the vid
who is the best python tutor in youtube?
many
Corey Schafer's content is often recommended
name 1
a bit outdated but still okay
find a 8 hour video - watch all of it or parts
yes true
it's a bit more up-to-date
a structured course outline is helpful - with a time index to topics
a PDF book recommendation is difficult - so many out there
there are many undocumented ( maybe i just cant find them ) things in python
Tkinter has hidden feature
Color picking wheels ...
I find some stuff by accident , while looking for other things - so , I wish upon a star for a book of hidden feature
Sometimes a PDF book will have a tidbit , but need to comb entire book
All hail the coffee gods , even Juan Valdez
would you put DeepSeek on a isolated machine to see what it can do @chilly wolf @unreal thicket
timestamp with time zone DEFAULT (CURRENT_TIMESTAMP) NOT NULL
I KNOW
I AM HAVING ISSUE WITH LIKE
Column(name="created_at",type=DataType.TIMESTAMPTZ().default('CURRENT_TIMESTAMP')),
SAVING UTC TIME
LOCAL IS UTC +6
So i need todays total revinew
based on local time zone
so i am doing like this
dhaka_now = datetime.datetime.now(dhaka_tz)
dhaka_start_of_day = dhaka_now.replace(hour=0, minute=0, second=0, microsecond=0)
dhaka_end_of_day = dhaka_start_of_day + datetime.timedelta(days=1)
utc_start_of_day = dhaka_start_of_day.astimezone(utc_tz)
utc_end_of_day = dhaka_end_of_day.astimezone(utc_tz)```
!e
from datetime import datetime, timezone
print(datetime.now(timezone.utc))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
2025-02-11 18:51:04.567818+00:00
i know this
i am doing
SELECT id, price, buy_price
FROM orders
WHERE completed_at >= '{utc_start_of_day}'
AND completed_at < '{utc_end_of_day}'
AND status = 'completed'```
put this in deepseek
But problem is
yeah, another reason to use proper SQL argument passing instead of string formatting
You should check out BETWEEN
that has been told before already
DOEN'T Matters
todays_orders_data = await orders.query(f"""
SELECT id, price, buy_price
FROM orders
WHERE completed_at >= $1
AND completed_at < $2
AND status = 'completed'
""",
utc_start_of_day, utc_end_of_day)```
Just another tool inthe SQL toolbox, it's good stuff
this fails to work too?
Main issue it
await orders.update(
{"id": order_id},
status="completed",
reason="ভুলক্রমে আপনার অর্ডারটি ক্যান্সেল হয়ে গেছে কিছু ফলোয়ার বা কিছু লাইক যাওয়ার পর বাকি টাকাটা আপনার একাউন্টে জমা হয়ে গেছে",
quantity=quantity_done,
buy_price=recalculated_order_buy_price,
price=recalculated_order_price,
completed_at=datetime.datetime.utcnow()
)```
Heres how i am updating it
but the uts is getting 1 hour behind
yeah, diff time zone
not that
utcnow is naïve datetime
?
classmethod datetime.utcnow()```
Return the current UTC date and time, with [`tzinfo`](https://docs.python.org/3/library/datetime.html#datetime.datetime.tzinfo) `None`.
This is like [`now()`](https://docs.python.org/3/library/datetime.html#datetime.datetime.now), but returns the current UTC date and time, as a naive [`datetime`](https://docs.python.org/3/library/datetime.html#datetime.datetime) object. An aware current UTC datetime can be obtained by calling `datetime.now(timezone.utc)`. See also [`now()`](https://docs.python.org/3/library/datetime.html#datetime.datetime.now)...
should i use this
datetime.datetime.now(datetime.timezone.utc)```
@chilly wolf @primal shadow @tacit crane this is the label studio for yolo tutorial i was talking about for anyone interested in getting started with annotating images for yolo vision models:
https://github.com/HumanSignal/label-studio
https://youtu.be/r0RspiLG260?si=26XVYe0_fH75_72G
Label Studio is a multi-type data labeling and annotation tool with standardized output format - HumanSignal/label-studio
Learn how to train custom YOLO object detection models on a free GPU inside Google Colab! This video provides end-to-end instructions for gathering a dataset, labeling images with Label Studio, training a YOLO model, and running it on a local computer with a customizable Python script. The video shows how to use YOLO11, but it also works with YO...
yes
@unreal thicket
speed is almost never the problem for containerisation
it's not hardware-level virtualisation
recently devop team routed wrong so 2 mili req failed xD
pm2 start main.py --name="SMM_WEBSITE_PROTOTYPE" --interpreter="venv/bin/python3"```
"only 17 microservices"
is it using cgroups?
also careful with the list of things there
docker and alike provide more isolation
that's the core thing
they actually do use it, quite a lot
databases belong in containers
just use a SSD like a video game cartridge - experimental OS on full hardware , no extra layers
just mount host's directory
you don't have to use a docker volume for data
(and you almost never should)
if you run more than one service using a database, all those services and all those databases almost definitely belong in containers
if it's not a separate machine per service, this has been the only sane way to share compute across services
@unreal thicket Solaris Zones
no. no. no.
if you claim performance, show the numbers.
this is not hardware virtualisation.
that is unrelated to docker
entirely
I'm back, what'd I miss?
it's only default k8s installation that ubuntu server has that I've ever seen to cause performance issues
@rugged root
An attempt was made
that piece of garbage somehow manages to waste 0.15 of a core when idle
never trust canonical with defaults
if you had a isolated Linux machine would you try DeepSeek to see what can be seen @rugged root
That tracks
I already use a service that has it hosted
So I'm futzing with it a little
But it doesn't work well for what I'm doing
containers are the main reason we get any adequate performance
because the alternative is VM
we need python themed snake game
there are multiple models - did you use a tiny version @rugged root
especially in the cloud
gushing over..
VMs are way way slower, and not even necessarily more secure
kitty gotta gun ( singing )
good luck with securing your floppy drive that you're having to provide to your VMs
hmmm
I found it funny how in Russian they translated the title completely differently from the usual English one
it's "becoming ..." instead of that
@potent root Having fun with it?
iirc Forgejo provides Vagrant package support
yes
i mean its kinda hard but i think if i keep doing it ill get better
Nothing wrong with using what you're familiar with
Python is quick to write
I don't, no
I've messed with a couple of them but... eh
I'm not in the industry so I don't really need to focus on those
truly readable
How does it look zoomed in?
"Ah yes, we have the option to go from 100% zoom to 101% zoom"
zooming in re-renders it
Those are terrible to read
color contrast
looks like potion bottle
I've 100%d free random, concurrency and doubly-linked list ones
but that thing includes paid
Worst potion bottle ever. "What's in there?" "Uhhhhhhhh"
that cat looks sad
@haughty pier Yo
was it 400 on http.cat?
@unreal thicket Only when I have to
@haughty pier * problems
If you don't use regex101 you're insane
It's old and powerful
Very powerful
It's like Gandalf
The method, yeah
It's actually pretty fun
It's backwards
You fill in letters or characters based on the regex
Or just google it
If you have a pattern you need to find, that's the use case
Like a nice regex cheatsheet?
Reference sheets are handy
Some can already read through sites like that
are you in work?
Me?
yah
Always
If I'm on here, I'm at work
Back, sorry
Had to check something for a co-worker
"write your data access layer in Rust, live a happier life"
The async SQL toolkit for Rust, built with ❤️ by the LaunchBadge team.
Rust-async-async-Python integration is okay-ish
these are the ones that I considered for Python:
- SQLAlchemy
- Tortoise ORM
- Pony ORM
- PyPika
I've just realised I want multicursor in discord
@rugged root also why do you want async sqlite
that is not the way
it's threading-based
might as well do your own threading
just have a queue of requests that async code writes to, and read from it in a thread
task stuff
you can also do in-process ZeroMQ request-reply for that
since that's both sync and async
Just the thing for you @rugged root
which one
Still do
you can talk about it with Rabbit, the question will likely be the same
That'd be pretty sick
Some neat AR kind of stuff
Ever so slowly making progress: https://github.com/MrHemlock/aio_space_traders
Focus on slowly
make sure the projection does not mess with detection
Main reason I'm wanting some sort of SQLite backend is for caching more or less. I feel like something like Redis would be too heavy.
I don't really need anything fancy
I'm wanting it to be persistent, though
Because I'm planning on having it mapping out the systems so that it's easy to have it go through and get the new prices for the markets or to figure out the shortest path to a given destination
And considering the rate limit it has (2 per second and 30 per 60 seconds), it'd be a bad idea to have to get it all from scratch each time
And you're probably right, the async ORM probably doesn't make sense, but I'm thinking that I'll have it mapping out the systems in the down time it'll have and toss them into the database while still allowing me to grab information I need and potentially mapping out my next moves to systems I'm going to and what not
yus this seems like it
Still would be fun and worth doing
just use discord's built-in time-to-local-time functionality
<t:1739303820>
@stuck furnace Yo
<t:timestemp:F>
!e
from time import time
print(f"<t:{time() + 60:.0f}:R>")
:white_check_mark: Your 3.12 eval job has completed with return code 0.
<t:1739304001:R>
<t:1739304001:R>
<t:1739303820>
In this video we learn how to upscale images in Python by a factor of four using ESRGANs.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: https://www.neuralnine.com/books/
💻 The Algorithm Bible Book: https://www.neuralnine.com/books/
👕 Programming Merch: https://www.neuralnine.com/shop
💼 Services 💼
💻 Freelancing & Tuto...
the goal isn't really upscaling with detail, just resizing the image so it doesn't get auto-upscaled by whatever it's viewed through
original (pixelated) and result are supposed to look the same
i yam
i imagine this was made by someone who probably found interest in being IT but it didnt end up being cut out for them
I think I need image downscaling to pixelated art instead
@lament grove 👋
@whole bear 👋
yoooo
Exactly. God.
Loveeeee that episode.
And he did teach them sth good.
No.
@somber heath Im sorry mate. I was not prepared for imediate critisism. I got a bit to defensive. Please come back, I need you to translate what this guy is saying, I can barly understand hum.
@main comet The first time, you came into a helping session in the Code/Help voice and begun speaking over the existing conversation I was having with my helpee. You were demanding.
Just now, same thing but with the conversation I was having with Ace, and completely off the subject at that.
(no offence ace)
You did not wait to listen to the conversation. You were not respectful of it. You barged in and were, as said, obnoxious.
I can leave the vc if you dont want me in here right now
yep my bad
You say that now. Before it was "That sounds like a you problem."
You'll forgive me if I don't take you at your word.
I'm uninterested in apologies. Do better.
@deep grove 👋
Not I, sorry.
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Hey but i will have
I love the lenguage python 🙂
I want permiss for voice
hey @vocal basin could you give me voice access
Really?
I studied ing of software
i have talked here multiple times
its @forest zodiac
i am from nepal
hbu
hey opal i have an interesting topic to talk about
@somber heath access for me for voice
!e py print(object())
:white_check_mark: Your 3.12 eval job has completed with return code 0.
<object object at 0x7fa21f4b0450>
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
let's talk about anarchism @somber heath
You, What years programing?
why have a ruling authority?
5 years
Wow you are crack
@grim iron 👋
hmm
@somber heath what are you doing?
Yara mano 😄
funniest scene
nawh
its about king
arthur
getting the holy grail
i didn't find that one funny
wtf that's accurate
Subscribe to the Official Monty Python Channel here - http://smarturl.it/SubscribeToPython
'Brian telling his followers he Is not the Messiah' from 'Monty Python’s Life of Brain' is one of John Cleese’s 10 all-time favourite Monty Python clips, as chosen by him in December 2015 (as told to Jeff Slate for Esquire - http://www.esquire.com/enterta...
at the end he says alright now FUCK OFF
that gets me everytime
Hi
Greek prefix that conveys "stupidity" or "lack of intelligence," "mor-"
Greek suffix for "woman" or "female" is "-gyn"
mor-gyn
Morgin
I CAN FINALLY TALK
be back in 45 to an hour
@chilly wolf I UPDATED THE READ ME!
make the file paths relative with os.path.join or something, you crazy bastard
Hey guys I want to learn python 0%-100% what should I start learning
Should I start learning Variables first or what. Thanks
🫡
quit gaming first
@main comet thanks dude, yeah I read the rules and all. but thanks again for going through them
not sure if I can use this as just a place to chat lol
yeah thanks!
got it!
you seem to be awake late at night, work or trouble falling asleep?
XD
yeah wise words. XD
so do you use a particular stack? 🙂
or working on something related to a particular stack?
oh no problem!
like Django is a stack.
like the technologies for front end and backend
most products or web technologies have a stack
like whatsapp as an app will be using something as their UI, something for their servers, something for the databases where they store user date/messages. 🙂
I can hear you buddy!
yeah no issues
haha
no problem! haha its late at night anyways XD
what are you working on? if its okay to ask? 🙂
happens to the best of us XD
@somber heath yeah good definition! to the point!
@main comet oooh lua scripts for gaming mods huh! what games did you mod? XD
programmable micro controllers
damn
working with game engines, bruh, my head could never lol
I ran away from game dev because of all the maths involved 🤣
well you are built different then
O.o
you are literally a rocket scientist
dude
that's amazing!
ooh its on a repo?
sure! I won't be able to understand anything haha
haha not talking about your ability to showcase it, talking about my ability to comprehend rocket science 🤣
is there a way to run the project at my end? 😮
if I download the repo?
yeah read the readme lol
@main comet is a rocket scientist! XD
https://www.youtube.com/watch?v=Et8CqMu_e6s
@main comet
Twitch https://twitch.tv/ThePrimeagen
Discord https://discord.gg/ThePrimeagen
Become Backend Dev: https://boot.dev/prime
(plus i make courses for them)
This is also the best way to support me is to support yourself becoming a better backend engineer.
LINKS
- Bill Harding | https://x.com/williambharding
Great News? Want me to researc...
@main comet since I am kinda dumb, what file do I need to start in python to start the project? 😅
does it need anything else apart from python3
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
vscode.dev
@main comet I am talking about your project Jet-Engine-Sim project, haha
what file do I need to start to start the project. XD sorry didn't clarify the questions
I misunderstood.
yeah read the readme file, it didn't point to a procfile or anything, I tried starting various files, it returns some modules being missing, so probably I am not pulling the actual file that has the main function or something 😅
push to main, damn daring XD
yeah bash is the gateway to linux
you are halfway there lol
damn gentoo too XD
JET ENGINE STARTER MOTOR! FUCK YOU
as a dev you gonna be using everything under the sun, even mac 💀
@frosty garnet do you work in devops?
you can run anything inside docker
okay I guess 8 more messages
before I can talk lol
docker in docker lol
when --privileged -- maybe
its like a never ending russian doll
normally, less so
io_uring is one of the common examples of stuff not working in docker by defaut
tbf that's more of a io_uring problem than a docker problem
what have you been upto lately? XD
stuff
job related? 👀
just 50 messages
90% job 5% personal growth 5% sleep
@hasty orbit
they keep blocking my actrivity :*(
5 percent sleep? how do you even function? 👀
whats sleep?
that's the shutdown button for your brain..
lol don't function well anymore
🔫
must refactor
when i go out sometimes, people think there's something wrong with me
damn, being sleep deprived sucks so much
_<
huh? XD
lol
you'll soon find out
finally!
👀
pip install PyQt5 numpy
@indigo parcel 👋
@vocal basin can i have streaming perms please
@main comet is this it? working? 😄
@radiant salmon 👋
@frosty garnet instead of creating a separate directory you can just change the path for the csv file.
what do you want to stream?
@main comet are you controlling a real jet engine with python software?
yes one of the spacex falcon X rockets 👀
(I can be wrong though)
simulating
ahhh. I thought you were controlling this: #voice-chat-text-0 message
@vocal basin 👋 sorry kinda new here! Is there a place where I can read up on where I can get started to get various permissions to use text is some channels? 🙂
👋
@vocal basin do you play jtoh
@main comet @frosty garnet great meeting you guys, unfortunately have to go!
😄
judging by I how I don't know that is, seems like no
roblox obbies
I don't play roblox
why
why would I ever play it
the obby mechanics are cool I think
I don't respect the company even remotely enough to install their software
AI
Kenshi is best
@feral dove 👋
I truly have a way with diagramming
only one letter off of looking like a typical late 2022 startup
win shift s
@sweet sorrel
@sweet sorrel there is lightshot for insta-upload
not recommended
giraffical image format
(both halves thereof)
How is it?
why /my-account and not just /account?
i know
Countless Imgurians across the world are unsure how to pronounce Imgur. We're here to help you win that bet with your friends:
Imgur is pronounced "image-er" (im-ij-er). The name comes from "ur" an...
if it's image-er, where's image-est
ping yourself -> 300ms
@peak depot I did spend a few seconds choosing whether to reply to first or second image
I still have dual name on linkedin, maybe I should just replace with what I have here
orders = Table(
name="orders",
connection=connection,
columns=[
Column(name="id",type=DataType.SERIAL().primary_key().unique().not_null()),
Column(name="user_id",type=DataType.BIGINT().references("users","id")),
Column(name="order_number",type=DataType.VARCHAR(length=50).unique().not_null()), # Unique order reference number
Column(name="status",type=DataType.VARCHAR(length=255)),
Column(name="total",type=DataType.DOUBLE_PRECISION().default('0.0')),
Column(name="subtotal",type=DataType.DOUBLE_PRECISION().default('0.0')), # Before tax and shipping
Column(name="tax",type=DataType.DOUBLE_PRECISION().default('0.0')),
Column(name="shipping_cost",type=DataType.DOUBLE_PRECISION().default('0.0')),
Column(name="discount_amount",type=DataType.DOUBLE_PRECISION().default('0.0')),
Column(name="coupon_code",type=DataType.VARCHAR(length=50)),
Column(name="paid",type=DataType.DOUBLE_PRECISION().default('0.0')),
Column(name="payment_method",type=DataType.VARCHAR(length=255)),
Column(name="payment_status",type=DataType.VARCHAR(length=255)),
Column(name="payment_id",type=DataType.VARCHAR(length=255)),
Column(name="payment_response",type=DataType.TEXT()),
# Shipping Details
Column(name="shipping_address",type=DataType.TEXT()),
Column(name="shipping_city",type=DataType.VARCHAR(length=100)),
Column(name="shipping_state",type=DataType.VARCHAR(length=100)),
Column(name="shipping_country",type=DataType.VARCHAR(length=100)),
Column(name="shipping_postcode",type=DataType.VARCHAR(length=20)),
Column(name="shipping_phone",type=DataType.VARCHAR(length=50)),
Column(name="shipping_email",type=DataType.VARCHAR(length=255)),
Column(name="shipping_notes",type=DataType.TEXT()),
Column(name="tracking_number",type=DataType.VARCHAR(length=100)),
Column(name="shipping_carrier",type=DataType.VARCHAR(length=100)),
# Billing Details
Column(name="billing_address",type=DataType.TEXT()),
Column(name="billing_city",type=DataType.VARCHAR(length=100)),
Column(name="billing_state",type=DataType.VARCHAR(length=100)),
Column(name="billing_country",type=DataType.VARCHAR(length=100)),
Column(name="billing_postcode",type=DataType.VARCHAR(length=20)),
Column(name="billing_phone",type=DataType.VARCHAR(length=50)),
Column(name="billing_email",type=DataType.VARCHAR(length=255)),
# Additional Order Info
Column(name="currency",type=DataType.VARCHAR(length=10).default('BDT')),
Column(name="ip_address",type=DataType.VARCHAR(length=45)),
Column(name="user_agent",type=DataType.TEXT()),
Column(name="notes",type=DataType.TEXT()), # Admin/Customer notes
Column(name="estimated_delivery_date",type=DataType.TIMESTAMPTZ()),
Column(name="points_earned",type=DataType.INT().default('0')),
Column(name="points_used",type=DataType.INT().default('0')),
Column(name="gift_wrap",type=DataType.BOOLEAN().default('false')),
Column(name="gift_message",type=DataType.TEXT()),
# Timestamps
Column(name="payment_date",type=DataType.TIMESTAMPTZ()),
Column(name="shipped_at",type=DataType.TIMESTAMPTZ()),
Column(name="delivered_at",type=DataType.TIMESTAMPTZ()),
Column(name="cancelled_at",type=DataType.TIMESTAMPTZ()),
Column(name="refunded_at",type=DataType.TIMESTAMPTZ()),
Column(name="updated_at",type=DataType.TIMESTAMPTZ()),
Column(name="created_at",type=DataType.TIMESTAMPTZ().default('CURRENT_TIMESTAMP')),
],
cache=True,
cache_key="id",
cache_ttl=300,
cache_maxsize=1000
)
Did i miss anything
why are timestamps separate and not grouped with stuff they're related to
What do you mean grouped
(if that was split across tables, timestamps would be near things they relate to instead of one separate table)
if there's a specific reason why you view them as a separate field group (as indicated by comments) other than being same type, it's worth writing it down
i.e. might be because you want to index all timestamps, and this helps keep track of that
@sweet sorrel @chilly wolf
"you're both new"
first time I joined was 2019
suree

with literally 0 activity until 2022
show me your game
same 0 activity until dec
.
Yeah that's about right
Countless Imgurians across the world are unsure how to pronounce Imgur. We're here to help you win that bet with your friends:
Imgur is pronounced "image-er" (im-ij-er). The name comes from "ur" an...
Trying to learn how to use tortoise properly
"you can donate that money to Bezos"
Who will speak for the billionaires!?!?
LEAVE BEZOS ALONE
Whitest Kids U' Know
Season 1
Episode 7
Clip 2
I love that vid
I still have the funny domain resolving to 127.0.0.1
Legit forgot that was the loopback
the size of the mask
Yeah that sounds tempting
it was the second most expensive
I'm on a 2tb one rn
@rugged root should probably just do it in software, yes




