#voice-chat-text-1
1 messages · Page 51 of 1
rather here to absorb information
ahhh
I agree. those numbers get quiet intimidating to me though lol
black in this case?
ahh
if the square is not modified then what is the value that it takes? @stuck bluff
(0, 0, 0)?
well like the ones without a color
woohoo someone called my CSS code "great" but, quote, "in general"
ah yes. i mean like what is the rrgb pattern of a "uncolored" block
is it just unset
or is it 0,0,0
ah ok
graph theory seems fun ill probably pick this up
would these arrays be numpy ?
ah okay i only see numpy being referenced in some data science implementations but i never quiet grasped when there is a necessity
@stuck bluff would we be running these at time same time?'
i imagine a random select script could interfere with this adjacent behavior
ah okay
i love their multi dimensional array
i havent found a use case yet because i havent delved into that matter but it looks sweet
sweet
i was going to do that game of life thing as a beginner-ish project
😂
the one concept i had a weird time grasping was virtual servers vs physical
i kept asking my self how some mad lad designed a virtual server and made it preferrable
obviously not in every case but just the whole idea of "virtualizing"
i was making some roblox games but i was getting sick of the redundant nature
ah okay. i'll try to make it and come back to you and see what i can do
@stuck bluff
what libraries would you advise @delicate wren
I don't remember if I've installed anything other than numpy, PIL and cv2 (or whatever it's called) for that, need to check
alright
(imports section)
import abc
import collections
import contextlib
import heapq
import multiprocessing
import pathlib
import pickle
import random
import shutil
import subprocess
import time
from typing import Iterable, MutableSequence, Self
import cv2
import numpy as np
from PIL import Image
ive seen abc, collcetions, multiprocessing, random, time, and numpy
@stuck bluff is manipulating images your favorite thing?
or rather primary skill
ahh alright i havent quiet laid my eyes upon a specific area
i really like math so i guess ill focus on visualizing that sort of thing
i had a rough time making that connection throughout my early years. I started to really understand things as of lately and its starting to blow my mind
I used to have this undermining thought that if I could not look at any sort of equation and get it quickly, i deemed it too challenging to learn
what i find fascinating is probably a lot less complex than you lol
it took me like 2 years in high school to really get the hang of algebra and everything clicked after that
I get this sense of guilt and ego shattering thoughts that I may not be good enough because of that early adversity
it might just be imposter syndrome
true.. I guess i never flipped it to be that optimisitc
or attempted to
😂
laters
hi
the server is fixed I think
rotterdam
I've just realised VSC defaults to thinking all SQL is MS SQL
... so now trying to find an extension for Postgres dialect
... and there's also a duplicate
(first and third are the same)
I think the maintainer changed
I'm here but mute
Co-worker is back here
As is the way of tax season
Correct
@misty sinew Yo
why does installing a PostgreSQL extension add a NoSQL panel 
How intensive is it to migrate from one database engine to another? Say SQL Server to postgres?
ah, there's a base extension
@sick frost Yo
(I guess that but, after checking, yes, seems to be the case)
Fair
Will do
Yeah I was wondering about the cost savings part. I'm sure postgres is looking more and more appealing now
@magic void Yo
Yo bro..
I still remember you kick me from call 🤣🤣 for my mic ON
whoa
big menu
scary
That doesn't overly surprise me. Microsoft product suggesting Microsoft syntax
Weird. I didn't make an infraction for it
Must have just been a one off.
@sick frost same for Wolfram
and a lot of stuff
I think RHEL too
and whatever IBM OS is
By core, do you mean like the number of cores on a processor?
threadpool size limit
kind of
@sick frost decades
to sort out most bugs
it's only realistic to build your own good DB quickly if you limit the scope massively
i.e. when you can easily say "No." to most feature requests
JSON is a format
JSON file can be used as a very, very bad DB
@sick frost we're talking about RDBMSes specifically, if that's the question
relational databases
No I just have never used databasing in my coding experience
Never had a reason to, just use json
things you can SQL at
You do frontend stuffs ? Or backend stuffs
I do UI
That's why you didn't used database
and MongoDB I just don't want
I understand the simplicity premise
but even that is subjective
SQL offers flexibility of queries at the cost of flexibility of how data is stored
SQLBolt provides a set of interactive lessons and exercises to help you learn SQL
depending on a NoSQL system, both of those qualities may be way worse or way better
KV store, for example, has both less flexible
@mild flume not your connection
there was some extension of CAP theorem for DBs, can't remember the name, time to look up
I Cee
It states that in case of network partitioning (P) in a distributed computer system, one has to choose between availability (A) and consistency (C) (as per the CAP theorem), but else (E), even when the system is running normally in the absence of partitions, one has to choose between latency (L) and loss of consistency (C).
i C
No cap?
HA
PNUTS
I love it
@coarse bloom @dawn rock Yo to you both
@full lichen And another yo
What
Was up?
was up sir
it just got crowded in here
nothing
Not much, 'bout you folks
bye sir i want learn again
Use GIMP
What kind of stuff are you wanting to learn?
PIL it
What does the chart mean exactly?
what tradeoffs it allows to choose
depending of if a partition occurs
Gooootcha
I don't think it's correct to call most public models open-source
it's like calling a binary checked into Git LFS "open source"
it's just "free for download"
Made in China. Product in questions
Well played
it doesn't connect if you don't explicitly allow it too;
model runners are actual open source
model is just data
at least it should be
China are going to do that. The Delta Force game is made by chinese and its a spyware
it they all weren't using pickle ffs
I forgot that Delta Force existed
(note: it's not actually all, they're moving to safetensors now)
I dont hate china i hate their crappy prodcuts
All the AI stuff just goes over my head
"just pickle it" -- phrase that prompts introducing the term "jupyterbro"
@mild flume I've finally found the right way to format SQL
@sick frost except Fanta?
Actually that's kind of like the Elm style of formatting...
yes
Hmm
total_todays_revenue_cache_for_dashboard = TTLCache(maxsize=1, ttl=30)
MY VARIABLE NAMING 
That's like test name levels of length

@pytest.mark.asyncio
@patch("niquests.AsyncSession.request", new_callable=AsyncMock)
async def test_get_status_successful_with_token(niquests_mock: AsyncMock):
mock_data = factories.ServerStatusResponseFactory.build()
mock_response = AsyncMock()
mock_response.ok = True
mock_response.json.return_value = mock_data.model_dump()
niquests_mock.return_value = mock_response
api = SpaceTraders(token="test_token")
response = await api.get_status()
assert response.status == mock_data.status
And that's relatively short for a test name
noticed this in delta force comments
I guess I can't see a reasonable way to shorten it
i know
And this is why I use Revo
thats why i didnt download the game
i am just showing my hallerous naming
i like to have data privacy
file is 4000 LINE
@misty sinew @vast cliff Hello to you both
And have lot of variable
Hello @misty sinew @vast cliff
just to not get conflicted
hello guys
i get conflicted a lot
hello
!e
today_̛s_revenue = 0
print(today_̛s_revenue)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
0
Hey Ryan. Not much, you?
See previous get out meme
Wtf did this guy just say
Same mate I really tried getting into kotlin but got bored way too quickly
I'm really tryna think about which is better
Going through actual documentation and learning a language
Or just making projects
@sick frost citizens being alive doesn't mean the leader is not a bad person
but, yeah, can't remember anything specific
After 5 years of coding I really can't bring myself to read the rust docs
But I feel like I'm kinda missing out on good coding style for rust
Eh, the Rust Book is pretty digestable
A collection of specific ways to improve your use of Rust
I wanted to try kotlin to see which I prefer
I've read many books on efficient CPP, idk something about reading programming books I really cant
Im really getting into memory
So I'm reading a lot of books about it
But man not coding
effective not efficient
Fair. I will say it is a bit tougher to get interested into languages when you don't have a specific use case
No way
more about patterns
Oh sorry I'm on mobile, that's actually cool ill read it
Yeah that's why I make projects
Literally how I learned c
Best way
Although it really caught to me when I got into embedded a few years ago
I got a reality check of my code wasn't good code by any standard
But something about OK I know what a vector is
But where do you use a vector
That's what really made me hate books
!e
print(1 == 1.0)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
True
!e print(1 === 1.0)
:x: Your 3.12 eval job has completed with return code 1.
001 | File "/home/main.py", line 1
002 | print(1 === 1.0)
003 | ^
004 | SyntaxError: invalid syntax
yall be yapppin too muchhh
!e
print(3 ** 77 == 3.0 ** 77)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
False
!e
print(int("1") == float("1.0"))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
True
!e
print(3 ** 77 == 3.0 ** 77)
print(float(3 ** 77) == 3.0 ** 77)
print(3 ** 77 == int(3.0 ** 77))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | False
002 | True
003 | False
uh
dafuq?
Wat
!e
p = 66
print(3 ** p == 3.0 ** p)
print(float(3 ** p) == 3.0 ** p)
print(3 ** p == int(3.0 ** p))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | False
002 | True
003 | False
!e
print(3 ** 77 == 3.0 ** 77)
print(float(3 ** 77) == 3.0 ** 77)
print(3 ** 77 == int(3.0) ** 77)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | False
002 | True
003 | True
oh, wait, right, it can't int eq
no
that's obviously true
actually can't false true true, after thinking about it
!e
val = 1
val2 = 3
if val > 2 > val2:
print("True")
Why would anyone ever cast an int to a float?
I think in Python it's like
float(a) == float(b)
or
int(a) == int(b)
when {type(a),type(b)}=={int,float}
If you'd ever get to that you most likely have something wrong as well somewhere else
Miss talking with you guys
Ditto. You just been busy with life?
With study yes
oh, wait, no
Get NordVPN for 4.99
Python always gotta have some bs
All languages have BS
C# was just bae
You still doing c# hem?
but only one language is BS
Sure but dynamic typing is the devil
Which courses are you taking?
Fair
In java it makes sense tho
You can dynamically cast types though?
Or maybe I just got the definition wrong
Ahhh
so now Java has broken variance
i am doing a computing degree with the open university
Oh sick
Java is static typing with implicit typing.
Yeah yeah got my definitions wrong there mb
Explicit typing and implicit typing is different from dynamic and static typing.
@sick frost that's Fortran typing
Wait really?
Who does that in c#?
in C, you should prefix fields not variables
It’s taught in classes, it’s not used in normal world
Is it like some sorta standard or purely made up?
aVariable
array of Variables
a_Variable
Array called this variable
exactly two characters most of the time
How would you do custom types?
whoever taught you this, is wrong
It would become incredibly confusing real fast.
You already can do custom types
It’s a standard that most people realized was useless
Or am I misunderstanding what you mean
Classes help with a ton
When you explicitly refer the type why would you bother saying it again (c#)
He says prefix variable names with the type.
Like s_name.
Then if you have custom types, then it becomes confusing.
!e
def f(): ...
print(dir(f.__code__))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
['__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '_co_code_adaptive', '_varname_from_oparg', 'co_argcount', 'co_cellvars', 'co_code', 'co_consts', 'co_exceptiontable', 'co_filename', 'co_firstlineno', 'co_flags', 'co_freevars', 'co_kwonlyargcount', 'co_lines', 'co_linetable', 'co_lnotab', 'co_name', 'co_names', 'co_nlocals', 'co_positions', 'co_posonlyargcount', 'co_qualname', 'co_stacksize', 'co_varnames', 'replace']
And that's why we have type hints
We're talking about strictly typed languages. You don't even need to type hint, you are specifying the type at declaration.
what do we use that for
I don't get what this guy is saying
its for readability
C# is a camel case lanaguge how did you get away with xx_xx
AF's saying C
It's not gonna help with readability.
if you're writing Python, don't do it;
whereas in C it's used to more easily read through the code because C LSP support is limited, especially with macros
In the use of static langs or dynamic?
also to grep the code
dynamic languages usually use type def so its just simpler
That feels dirty
and so does #define
Static just has you define the type outright
In both. In python you should type hint to clarify the type, and in strictly typed languages it's already declared.
yeah its obligatory
The only time I really specify the type in the name is when I'm doing any type casting
yeah
It makes no sense to me to put the type in the variable name, especially when you have custom types.
id use it on functions i plan on sharing or documenting
[ and C isn't a strongly typed language ]
oh yeah thats just redundant lol
Doesn't JavaScript so that?
If I make a custom class, and instantiate it, then I'd have to come up with a prefix, and ensure no other type uses the same prefix, and it's just a mess.
i cannot tell you which does lol
in python _ is suboptimal for argument names
Oh golang
because you can't do _,_,_
I thought it was reserved.
For when you don't need sth.
_arg
*
for _ in range(10):
...
Also yes
Ueah
_,_,_,a,_,_,b,_,c,_,_,_,d
You're thinking for imports. I'm talking about for packing and unpacking
most readable youtube tutorial code
for _, key in pairs(value)
ahhhh okay
YouTube code is sometimes really good
That's my bad, I should have clarified
_ is correct for assignment and patterns in general
not arguments
im just referring to the stereotype lol youtube is awesome
@tawny lily in some contexts it's a keyword
Really? I thought it was a good reference for unused variables in cause of lacking a lsp
same
_arg not _
!e
def printfalse():
print()
printfalse("hello")
!e
def f(_, _): ...
how long u been using py for @jagged hawk
:white_check_mark: Your 3.12 eval job has completed with return code 0.
hello
:x: Your 3.12 eval job has completed with return code 1.
001 | File "/home/main.py", line 1
002 | def f(_, _): ...
003 | ^
004 | SyntaxError: duplicate argument '_' in function definition
Then what about goland?
I'm only referencing Python specifically
Never, I have most experience with java
in Rust, _ is a keyword
im sure we all use normal args
ah fair im just learning py to grasp algorithms and make some visually appealing works
helloWorld
const [, two] = [1, 2];
alisa has this cool friend who was helping me
Ig you could do that in every lang aswell
yeah but solely for the use of algorithm requisite and no workarounds in the language
minesweeper?
Ye
i love the swap assignment in python
what was the task
I've never worked on a solution algorithm
can you predict winning in minesweeper?
Swap assignment? Like a, b = b, a or something?
You didn't?
I thought that was your aim
I'm only making an engine for running the server code
yeah useful af for learning sort basics
for pvp minesweeper
Damn I forgot
no bots yet
It's awesome for the Fibonacci stuff
i agree i used to distance from python but im able to cover topics more efficiently and effectively
@proper ridge it's a GPU not the motherboard seems like
likely dead before the author got the idea
What's ur max temperature?
-999
Actual fire
That's alrright
he took all the paste from LA
Not like its conductive
I was wondering how come the rapper stop raping !
Good way to keep your tea warm
70 is normal temp for Laptop CPU?
Wait 70 is your idling?
yes
Uhhhhh
That's concerning
Yeah I'd dust that sucker
what should be idle temp?
Hmm
Recently switched to light mode
Gosh darn it I love it
I just can't get with liking light mode
I use light mode
So I go with nord lmfao
I don't know why you all use dark mode
50-60 sounds fair
What model laptop?
Forgejo's integrated Swagger is dark themed
I wonder how easy it is to get themed elsewhere
M3500QC ASUS VIVOBOOOK PRO 15
@sick frost perfect theme:
#voice-chat-text-0 message
God damn it I had purged that from my mind
I use filter glass, maybe that could be reason for my preference of Light mode over dark mode
That is mental bruv
I'm not sure why Red is available by default
Filter glasses I feel like are just talk most time, people just use it for marketing make sure it actually works
the font is Zapfino
Because some people want to code by using a VirtualBoy
I mean lightmode is kinda yellowish to me
Just realized that's a really niche joke
When I use glasses
That can also be night mode
Na defualt light mode
Night mode is much more yellow
I stand by Monokai
Damn I liike the theme
Your choice is good man!
I use defualt dark theme in Vscode
something about themes on sublime they always look better
Vscodes monkai is straight up trash
but I like intellij theme over vscode
Abyss has dimmer colours, so I use that
there's something about the intellj theme that make it stand out
That's strange. Should be the same
Hemmy!
Your like red?
no
Maybe that could be reason why you choose red theme
So why do you use that?
no red or orange for non-errors
Hmm
I don't use Red
and I don't understand why it exists in the first place
What font do you use BTW? Kinda getting tired of jet brains mono after soo many years
Suuuuuuup
Double checking
Damn the contrast on that
@fluid canopy Why don't you apply in deliotte ?
Its either great or really hard to see
somehow I got invitation
I think it's this one? https://monaspace.githubnext.com/
Thanks
Specifically the Argon variant
associate data analyst
Becuase they hire fresher
yes
and now trying to decide whether to switch to trailing whitespace onl
y
"Consolas" Is more Standard
instead of boundary (single space between two non-spaces is without a dot)
Wait, it may not be this specific one...
I thought you really liked minimalism
I don't know about that
Trying to track it down
on Windows
Yes
Thnx
Back in a tic
i personally use it on ubuntu
That's good!
@fluid canopy You should try your best, start with what youu got!
Start freelancing, anything that can add value to your portfolio
yoo
hello
non-bot channels
go to #voice-verification
and go to #bot-commands
to check !user
people think i'm crazy, i started to respond back to what i say
excludes #bot-commands and #sir-lancebot-playground
Sounds abit like going crazy doesn't it?
yeah but then there's a voice that says i'm not crazy
crazy
"they locked me in a #bot-commands,
a #bot-commands full of!es,
and!es make me crazy"
@thin lintel, that is called selective hearing. People want to hear what they want.
if you are lazy, then you find simpler ways of solving problems?
Because whatever we fail to heed to someone else is going to cover that. Kind of blind spots.
I am leaving for the moment. Will return later.
It reminds me of this test
To the eyes, but the same happens to the rest of the sensorial receptors.
sight blind spot + -
my conclusion from this test:
because of the white background, I see just how dirty the screen is
praiseChina = True
hateUSA = True
WWIII = "World War 3"
if praiseChina:
print("100+ social score earned")
elif hateUSA:
print("200+ social score earned")
else:
print(WWIII) praiseChina = True
hateUSA = True
WWIII = "World War 3"
if praiseChina:
print("100+ social score earned")
elif hateUSA:
print("200+ social score earned")
else:
print(WWIII)
you can't just baby everyone's tendencies
and all the ones who drowned are "just statistics"
and try to justify it
Three of my favorite movies for the Hearing and Perceiving:
12 Angry men 1957: This movie shows how people fail to heed to details.
PI 1998: (Good for the the visuals)
Requiem for a Dream: 2000 (heavy, not good for sensitive public)
The one of 1957.
(what we're discussing is not "tendencies" and no one is "justifying" it, but I guess that's already obvious)
@true valley
it took me way too long to realise the connection between my pfp and your server nickname lol
March of the Volunteers ( traditional Chinese: 義勇軍進行曲; pinyin: Yìyǒngjūn Jìnxíngqǔ) is the national anthem of the People's Republic of China (including the Hong Kong Special Administrative Region since July 1, 1997 and the Macau Special Administrative Region since December 20, 1999), written by the noted poet and playwright Tian Han with music ...
!stream 1196203759471165576
✅ @fluid canopy can now stream until <t:1738168775:f>.
do you think it's more nurture as opposed to nature?
@raven orbit minor version change usually
new python?
@jagged hawk Found it. https://www.nerdfonts.com/font-downloads On that site, it's "Monaspice Nerd Font"
version requirement increase is the grey-ish area of semver;
most projects consider it to be a minor update
Try out the best and newest monospace fonts for code
Also shows an example of hot it'd look in-situ
in Rust, normally,
MSRV bump is minor bump (because normally that's to get a feature anyway),
dependency bump is patch bump (because Rust allows having separate versions of libraries)
sorry Fury, my friend is helping me with my internet issues
and he just called without warning
@raven orbit strictly speaking all changes are breaking if you misuse the library enough
grrr
no, that's not enough for a major bump
Thanks bro
@raven orbit increasing major transitive dependency version is minor version bump when it doesn't appear in the API by the same logic
unless it's Rust when it can be patch at times
Fun puzzle if any of you is interested. You are to make a 3 controlled NOT gate using only 2 controlled NOT and 1 controlled NOT. Priority is minimum number of gates.
Not at this very moment, no
He had somesort of injury I can't recall
Maybe cancer?
Legendary guy
How does this lad talk soo much
With his mouth I would assume
He sure has a talented mouth
to do or write something to do?
I saw the headline but I didn't read into the article
@thin lintel What was the issue?
2.4 GHz and 5.2 GHz
I read the whole thing but for some reason can't recall it he somehow bypassed it to ddos a particular website
Its too late my brain really isn't working
@sick frost I mean it does mean something, you legit just said it was a standard
so it just search-queried a single thing too much?
Therefore it is a thing
@sick frost https://en.wikipedia.org/wiki/4G
4G is the fourth generation of cellular network technology, succeeding 3G and designed to support all-IP communications and broadband services, enabling a variety of data-intensive applications. A 4G system must meet the performance requirements defined by the International Telecommunication Union (ITU) in IMT Advanced. 4G supports a range of ap...
read this
Honestly I don't wanna mislead its prob best to search it up or ask chatgpt lmfao
@raven orbit There's different band types, yeah
Reddit you really should chill out
When your rapping its really hard to understand what your saying
It's the opposite, @sick frost
Do you understand 10th grade science? Higher freq = lower range
isn't 5GHz allowed range also wider?
Hem still bangin with the mom jokes
Yeah, this covers this
I remember some explanation that 2.4GHz has more, like, channel conflicts
It does
I'll be in my 80's and still making those jokes
Your microwave is on 2.4ghz as well I think
They switch bands either way
Its very unlikely for that to ever happen
why'd people leave?
I believe the us military has a system that switches a million times a second
man how many chats do i have to do?
Bluetooth switches a lot aswell not how much though
They are discord games
ah
So when you send a message, the following 10 minutes count as a singular block
I typically just think of it as a half hour conversation
lame :*(
I promise it's for a good reason. We had what I call hit and run trolls; folks who would join the server, join voice chat, scream at the top of their lungs and then leave.
so 3.33 hours before i can use voice
This was happening a dozen or so times a day
Lol remember people streaming porn
Like vrazy
@raven orbit That just means you haven't been caught
i'm here for the porn
Yarp. And that's why there're the stream restrictions
Well played
Boredom
Its always the weird drugs that make you really delusional
Pedicure gone horribly wrong
he is
it does when you combine it with antidepressants and become psychotic
Change your socks periodically through the day
@raven orbit Where there's a will there's a way. And also consider that they're doing it every day
sure, I'm just trying to figure out how you can hold a spatula with a foot
i have a headache
if i take some acid , maybe read text above
NOT cake icing , what happened there ???
a case of goop and free time
smth like that
just use the guts in a bug zapper it has enough -- ouchie power
TV flyback transformer can do 15KV or better
they should more appropriately be called caltrops
same for lego blocks
@raven orbit @sick frost 
For preventing Tay–Sachs disease, three main approaches have been used to prevent or reduce the incidence of Tay–Sachs disease in those who are at high risk:
Prenatal diagnosis. If both parents are identified as carriers, prenatal genetic testing can determine whether the fetus has inherited a defective copy of the gene from both parents. Coupl...
specifically
https://en.wikipedia.org/wiki/Dor_Yeshorim
Dor Yeshorim (Hebrew: דור ישרים) also called Committee for Prevention of Jewish Genetic Diseases, is a nonprofit organization that offers genetic screening to members of the Jewish community worldwide. Its objective is to minimize, and eventually eliminate, the incidence of genetic disorders common to Jewish people, such as Tay–Sachs disease. Do...
1 mile per imperial gallon (mpg UK) is equal to 282.481053 liters per 100 km.
help with what?
someone mentioned vaccines
vaccines seem to have been invented in England
@umbral rose 😭 look at this @stuck bluff
Phoenix os
@delicate wren when working with that color pattern sort of thing do we use cv2 to draw grids
I only used cv2 for video
for images I used PIL
ah okay
what about that color pattern thing you showed me
for colour changes I'm just using numpy
with 5 dimensions for an image, 10 for a video
Hi i am making a Chatbot. For backend i use python and integrate GEMINI GOOGLE API in it. While for front end i use html, css and java script code.
Now i want to deploy it for free to test is it working fine? So can somebody help me in deployment process?
https://workers.cloudflare.com/ or whatever other clouds offer
but might take quite a bit of rewriting
what are you using for the web server?
FastAPI?
I'm stuck at deployment process for about 3 to 4 hours
no, I mean how you run your python code
and how does your website connect to it
Django? Flask? Quart?
that thing
if you're using Flask correctly, it should somewhat easy to rewrite to Lambda-style deployment
I'm only suggesting serverless deployment because you want to test it out for free-ish first
those tend to be cheaper than VPSes
Yes can you do it i can't understand about deployment procrss
Can you do it? I will share the code files with you?
do you want the app to be publicly accessible?
do you want it on a specific domain, or just wherever?
Yes it is better.But first i want to test it. Is it working correctly if yes then I'll buy domain and connect it
whats the use of lambda style deployment
havent heard of such a style
alright awesome
numpy + pil?
AWS Lambda is a service that allows to deploy "serverless" "functions";
each call to the server is isolated operationally:
no data shared across calls, and the code is likely to be deployed on multiple separate real servers
i.e. there is no single server continuously running serving your code
yes, values from numpy are used in PIL afterwards
awesome
why a 5d array though
ah okay theres something like this is lua
5d sphere, when mapped down to 3d space, fills in the insides of a 3d sphere uniformly
where you can attach anonymous functions to callbacks
ah okay thats really cool is there a specific name for this branch of math or logic
probably just geometry
more advanced geometry i presume
when i get home ill dive deep into it
I'm thinking about reimplementing the random walks logic using a quad tree
to make it representable as an immutable data structure
R-Trees are for floating point coordinates
not fixed filled-in grids
latter being almost a perfect usecase for a quad tree
especially when it's a square
@stuck bluff I don't think there's a generic way to do that
hmm
updating neighbours is non-trivial
@umbral rose i'd say the windows linux debate is trivial it just has a more developer feel perhaps
i love the leisure of windows though
@marsh lodge what was this approach?
the card approach you mentioned
when you say a card sprite class
what does "populate" mean in this context i havent heard that word before
hi
sup
7.6 times larger.
@willow reef👋
I am as Nero.
ya nice
@umbral rose Hey, how long have you been using python for
mechmoji mark2
My purpose is to reduce unhappiness. My scans detect that you are unhappy. Please remain stationary while your unhappiness is terminated.
yo
@coarse hill 👋
opal knows that the one who can scream obviously won't
alright i gotta go
i dropped in because there are a lot of people
its almost 12 here
I changed something in the internal logic but it doesn't seem to influence anything
each pixel has a 50% chance not to be marked as overwriteable
bye
also I think I should drop the resolution to 1024x1024
I like these pastel colours more
idk if I can do that through maths instead of postprocessing
here it's just accident
I'm not sure how to geometry that correctly within the colour space
so that it's still more or less uniform
currently it's random colour within r**2 + g**2 + b**2 <= 255**2
i know this isnt what you are doing but its a pretty neat model
very https://store.steampowered.com/app/542050/Forgotton_Anne/-looking output
(some locations have green crystals, a lot)
This is "greenGoopPerlin" by Leonardo Borch on Vimeo, the home for high quality videos and the people who love them.
@tawny lily I'm managing infrastructure across 3~6 hardware servers (count differences depending on how much recent/direct is the minimal requirement for whether one is included)
no cloud yet
but, yes, a bit of sysadmining
app = FastAPI(
title=ApiInfo.NAME,
version=ApiInfo.VERSION,
description=ApiInfo.DESCRIPTION,
docs_url=None,
redoc_url=None
)
async def initialize_routes():
# Add all routers here from ./routes folder
for file in os.listdir("./routes"):
if file.endswith(".py"):
module = file[:-3]
if module != "__init__":
module_router = __import__(f"routes.{module}", fromlist=["router"])
app.include_router(module_router.router)
await logger.info(f"Router {module} included ✅")```
@delicate wren
Any idea to improve
!d pathlib
Added in version 3.4.
Source code: Lib/pathlib/
This module offers classes representing filesystem paths with semantics appropriate for different operating systems. Path classes are divided between pure paths, which provide purely computational operations without I/O, and concrete paths, which inherit from pure paths but also provide I/O operations.
...
The final path component, without its suffix:
>>> PurePosixPath('my/library.tar.gz').stem
'library.tar'
>>> PurePosixPath('my/library.tar').stem
'library'
>>> PurePosixPath('my/library').stem
'library'
in any case, that is a bit too much digging into files, imo
I would very much prefer importing directly, but that's more of a taste choice
!stream 99041425483653120
✅ @marsh lodge can now stream until <t:1738468837:f>.
await and blocking file IO in a loop is a bit suspicious
or, to be more specific, any importing inside async def sounds wrong
what are you using for logging?
if it's background, it shouldn't need await generally
just put it onto a queue
and let the background task process it
if you're willing to ever rewrite that in a couple of years, the other option would be ZeroMQ + PUB socket (instead of WebSocket)
also
the task can get GC'd
and, yes, the async def log is unnecessarily async even right now
the only thing you get there is that it cannot be accidentally called from non-async context
def log(self, message, level="INFO"):
"""Asynchronously log messages to the file and send them to WebSocket."""
timestamp = datetime.datetime.now(dhaka_tz).strftime('%Y-%m-%d %H:%M:%S')
log_entry = f"[{timestamp}] [{level}] {message}\n"
if level == "INFO":
log_color = Fore.LIGHTCYAN_EX
elif level == "WARNING":
log_color = Fore.YELLOW
elif level == "ERROR":
log_color = Fore.RED
elif level == "CRITICAL":
log_color = Fore.MAGENTA
elif level == "DANGER":
log_color = Fore.RED
elif level == "SUCCESS":
log_color = Fore.GREEN
elif level == "DEBUG":
log_color = Fore.GREEN
else:
log_color = Fore.WHITE
print(f"{log_color}{log_entry}{Style.RESET_ALL}", end="")
self.file.write(log_entry)
self.file.flush() # Ensure the log entry is written immediately
asyncio.create_task(self.log_sender.send_to_log_server(level, message))```
So you mean this will also work?
it should, yes
except the asyncio.create_task part
you will almost never see it fail
but Python isn't guaranteed to actually eventually run your task there, it can GC it instead
Working
!d asyncio.Queue.put_nowait
put_nowait(item)```
Put an item into the queue without blocking.
If no free slot is immediately available, raise [`QueueFull`](https://docs.python.org/3/library/asyncio-queue.html#asyncio.QueueFull).
I prefer spawning a single task and storing it as a field
coroutine join()```
Block until all items in the queue have been received and processed.
The count of unfinished tasks goes up whenever an item is added to the queue. The count goes down whenever a consumer coroutine calls [`task_done()`](https://docs.python.org/3/library/asyncio-queue.html#asyncio.Queue.task_done) to indicate that the item was retrieved and all work on it is complete. When the count of unfinished tasks drops to zero, [`join()`](https://docs.python.org/3/library/asyncio-queue.html#asyncio.Queue.join) unblocks.
and when it's time to cleanup, this to wait for all logs to be processed, and then cancel that one task
@stuck bluff without post-processing; keeps all colours out of [-0.15..0.15] cube
@terse sierra here
less busy here - wait for the noise to start - many code monkeys yelling
@quaint cape You wanna hop in vc1?
@umbral rose stuff advanced a bit since previous attempts:
"now it's your turn to do the same in Zig"
@stuck bluff I made it into a video
so it's easier to see how it actually changes
... and I accidentally put the wrong directory into the ffmpeg
I wonder what that's going to look like
(flashing lights warning)
Phone codecs don't like it.
I'll look on desktop.
I'm only being able to view it through the app and through VLC
it stop just before the behaviour seems to change quite a lot
I'll let the process run for a while~~ until it crashes and burns~~
it's been working for almost 2 hours
I'm waiting for it to stabilise in some way
@glad turtle ed
probably the oldest option that many people know
yes, when we get to ed we've reached full efficiency, we went full circle
still some waves remaining
!e ```python
list = [1,2,3,0,4,5,6]
for number in list:
if number == 0:
list.remove(number)
list.append(number)
print(list)
:x: Your 3.12 eval job has completed with return code 1.
001 | File "/home/main.py", line 3
002 | if number == 0:
003 | ^
004 | IndentationError: expected an indented block after 'for' statement on line 2
!e ```python
list = [1,2,3,0,4,5,6]
for number in list:
if number == 0:
list.remove(number)
list.append(number)
print(list)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
[1, 2, 3, 4, 5, 6, 0]
The source code and demos are available here: https://patreon.com/vercidium
The greedy meshing algorithm is available here: https://github.com/vercidium-patreon/meshing
I spent the past 6 years creating a game engine, and I've been shocked at the things that can make or break performance.
I put together 4 simple optimisations that you can use ...
!e py my_set = {1, 2, 3} my_list = list(my_set) print(my_list) list = [1, 2, 3] my_list = list(list)
:x: Your 3.12 eval job has completed with return code 1.
001 | [1, 2, 3]
002 | Traceback (most recent call last):
003 | File "/home/main.py", line 5, in <module>
004 | my_list = list(list)
005 | ^^^^^^^^^^
006 | TypeError: 'list' object is not callable
.
Avoid shadowing builtin variable names.
list is a builtin variable name.
!stream 263551503082455050 30M
✅ @brisk lark can now stream until <t:1738551616:f>.
Don't use list as your own variable.
hello
im back
for a bit
damn it
i shouldve entered earlier
im about to go to sleep
i got school tomorrow
indeed
though i dont like sleeping
i prefer being awake and doing things
though the feeling after you wake up from sleep is nice
its like all cozy
What code were you explaining @marsh lodge
lets see it
sure
that looks sick
just trying to imagine the code makes me dizzy
it wont let me
nvm
damn all that for collision
oh
ahh
so its defining what point it can be considered a collision
just realised youre explaining it
ah i se
i probably wouldnt be able to comprehend it all either way
i thought it would be a lot more
but 400 lines for that is quite nice
i thought it took you longer than that
damn
oh
i heard something else
"men"
oh i know that guy
he published his thesis with it right?
that was his thesis or something like that
yep
A behind-the-scenes look at how I animate videos.
Code for all the videos: https://github.com/3b1b/videos
Manim: https://github.com/3b1b/manim
Community edition: https://github.com/ManimCommunity/manim/
Example scenes shown near the end: https://github.com/3b1b/manim/blob/master/example_scenes.py
I added some more details about the workflow sho...
guys, i need help with a school project using python, but I know jack diddly squat about how to code