#voice-chat-text-0
1 messages · Page 396 of 1
@whole bear bhai muje hindi aati hai
but this is the only Cython dependency
Hey guys can you pls give me some more fun pip for python
@whole bear ok no problem
ok
@low narwhal ? you gonna have to explain that oen to me, pip is a package manager, what does fun have to do with it
Is that some other peice fo software?
try to find it out on stack or github might find some clues
Tried, that but haven't found much on it there yet
maybe I am searching incorrectly though
hmm
Pip like pyjokes that can add some bit of fun to the project
@low narwhal nice lib might use in my remainder app
@cloud fulcrum i found someone in this server who can help you with Cython
Hi can anyone help me with a python project , I have to make a sierpinski circle
@twin glacier what is the issue
I tried using ChatGPT , basically I need to make a degree 5 sierpinski circle
Even ChatGPT is unable to do it
use deekseek with deep thinking
figured it ot
used something called setuptools
it works now
Thank you all for your support
and thank you @still tide for you going out of your way to find someone to help me
i need to make this using import turtle
must use recurrsive
im not saying its easy, but this shouldn't be too difficult unless I am missing something
ok still not too hard
then again
try to have white bg and only black outline with different thickness that would look awesome
I am writting code now for my MSC disertation
so maybe I being unfair in my judgement
this is expected output lol
my output is completely different
its look similar
yea its wrong tho
Your loop is missing rotation.
For a stronger hint
||Try to see if you can find some kind of pattern in the rotation||
for the color, get a color picker
ngl i suck at this
dw we all did when we started
are you familiar with the "divide and conquer" problem solving strategy?
thats ok
Divide and conquer basically means: "Divide your problem into smaller, easie problems"
divide and conquer means with divide the problem in small problem try to solve it
"Conquer those problems one at a time"
So comparing your work to what it needs to be
What are the differences?
i wish it was that easy
Write them all down
and then see if you can see patterns
that could solve those differences
thank u will try
i am also stupid when it comes to dsa algo 😆
yoo
import cv2
import numpy as np
import pyautogui
import time
def screenshot(region=None):
"""Macht einen Screenshot des Spiels."""
screenshot = pyautogui.screenshot(region=region)
return cv2.cvtColor(np.array(screenshot), cv2.COLOR_RGB2BGR)
def find_objects(template_paths, threshold=0.8):
"""Findet Objekte basierend auf mehreren Vorlagen."""
screen = screenshot()
screen_gray = cv2.cvtColor(screen, cv2.COLOR_BGR2GRAY)
for template_path in template_paths:
# Lade und verarbeite die Vorlage
template = cv2.imread(template_path, cv2.IMREAD_UNCHANGED)
template_gray = cv2.cvtColor(template, cv2.COLOR_BGR2GRAY)
w, h = template_gray.shape[::-1]
# Template Matching
result = cv2.matchTemplate(screen_gray, template_gray, cv2.TM_CCOEFF_NORMED)
loc = np.where(result >= threshold)
# Falls ein Match gefunden wird, gebe die erste Position zurück
for pt in zip(*loc[::-1]):
return pt[0] + w // 2, pt[1] + h // 2 # Mittelpunkt des Objekts
return None
def move_and_click(position):
"""Bewegt die Maus und klickt."""
if position:
pyautogui.moveTo(position[0], position[1], duration=np.random.uniform(0.2, 0.5))
pyautogui.click()
else:
print("Kein Objekt gefunden.")
# Beispiel für die Nutzung
if __name__ == "__main__":
TEMPLATE_PATHS = ["baum.png", "baum1.png"] # Liste der Vorlagen
THRESHOLD = 0.4 # Genauigkeit des Matches
time.sleep(3) # Wartezeit, um das Spiel zu fokussieren
print("Suche nach Objekten...")
obj_position = find_objects(TEMPLATE_PATHS, THRESHOLD)
if obj_position:
print(f"Objekt gefunden bei: {obj_position}")
move_and_click(obj_position)
else:
print("Kein Objekt gefunden.")
!code
I'm still not happy about the fact that git pull's merge message is so hard to customise
(I've decided to do git fetch and git merge separately)
yes
now instead of a long message with the url it just puts update {name}
or add {name} on the initial merge
@sand hearth 👋
AF: Across the Git-verse
That looks really cool
5 repos, 4 tags
I should release a stable version of that git thing soon
(non-prerelease one)
Yoohoo
@frosty star 👋
> rust
> crashes often
someone .unwrap()ped too much
you don't get Redis Stack, ig?
but that was non-open-source for quite awhile anyway
Have you guys seen person of interest series
I don't remember even a single feature that provides, I just know it's a thing Redis sells
!stream 341724739590422529
✅ @karmic citrus can now stream until <t:1737645062:f>.

Just finished mine :)
!stream 99041425483653120
✅ @chilly wolf can now stream until <t:1737646078:f>.
in some jurisdictions you're required to encrypt it even if you 100% control it
seems like something made pagefile grow to 25GB
iirc I tried opening VK and it just leaked too much memory
like
70GB I think?
I can't hear you, VPN issues
I'm being baffled
back
once I closed the tab it the memory usage graph was just a diagonal drop from 100% to 10%
this much
I've moved it off C drive
in Windows it's per-drive and you can disable
I have C: connected over USB-C
for reasons
m.2-shaped reasons
it's m.2 but not nvme
so I need an adapter
m.2 sata
nvme is pcie
nvm express
pci express
newer motherboards don't support m.2 sata seems like
that sounded funny
now wondering if it'd be easier to move the partitions to another drive or just reinstall windows
(also reinstall so it's proper edition not home)
@wind raptor
correlated failures
also known as
computer exploding
correlated and collateral
two in one
doesn't winrar do auto-updates only when paid?
@amber raptor Were you one of the ones who actually bought WinRAR?
I heard something like that
isn't it source-available not open-source?
(aseprite)
no
contribution is separate
open-source must not have restrictions on use
and stuff like that
BSL isn't open-source
Redis isn't open-source
Mongo
MariaDB
no
MySQL is Oracle
and that one is open-source
but invasive
(GPL)
with corporate license being separate
iirc that's where BSL comes from
I think I've seen reimplementations of MySQL protocol
non-forks
TiDB?
MySQL 8.0-compatible
licensed under Apache 2.0
i.e. open-source
DB written in Go, storage level written in Rust
@wind raptor you can mongo over postgres
FerretDB
MongoDB protocol, PostgreSQL backend
and MariaDB's extended stuff thing has Mongo protocol support too
also can be on top of SQLite
libsql
@wind raptor turso?
that's libsql
heard this late today , haven't studied the internal design yet
community edition may still be there
Redis prohibits certain uses => it's not open-source
it's going to be remain source available because that's more profitable than closing the source
SQLite is (the most) open-source but it's closed-contribution;
libSQL is open-source and open-contribution;
"the most open-source" being public domain
@rugged root How you doing?
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
I hate plugins it crashes most of time!
You all use ChatGPT LOL
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
!paste
@smoky delta Bro could you talk and take pause a bit?
It feels as if you are threatening the listener.
Please take pause
+1
Hadn't heard of that one
Np
I don't mean to do that lol it's just how I am
I am not threatening anyone
I do get how it sounds tho I be trying to work on it
Understandable.
But next time try to take a pause and let other speak as well!
I try but brain thought new thing if I don't get it out I'll forget so I'll blurt it
I guess the China part has me wary. Probably all the US propaganda?
I don't know
But its opensource
And free for personal use
China is open Source?
I'm missing context
But its free and as powerful as 4o
Damn!
I wanna know about it!
I hate how OpenAI become Closed LOL
try asking sensitive questions
So I would support opensource irrespective of country
It could be but atleast opensource, unlike GPT which is closed.
We have no Idea what they are doing and they are money hungry!
quality depends on who contributes not whether it's open-soyrce @rugged root
😄
@smoky delta recursive interpolation
and Nokia owns Bell Labs
or at least owned recently
Woah woah woah woah wait what?
@molten pewter What do you expect from company which used to mock the smartphone?
how many weeks to render
in Russia separate supermarket chains owned by same people is the norm
erm
Yo
thats sick, have you written it yourself?
creating a old wolfenstein/doom game is also still on my to do list
In my culture, my dad have 9 siblings.
And I have 2
@rugged root How many siblings do you have?
@smoky delta
Nokia, has absolute dumb management!
i'm one of 5 and so was my ma and her da was one of 6
i'm the only one with our original last name going three generations up also
Huh, that's wild
More siblings worse it gets!
Going to apply for a job here -> https://www.newcivilengineer.com/latest/northumbrian-water-launches-20m-ai-powered-sewer-spill-reduction-project-26-06-2024/
Northumbrian Water described its “smart-sewer” project as “revolutionary” because it would allow the company to “make changes to the flow and direction of wastewater (which contains a dilute mix of sewage, rainwater, run-off from roads and fields, and water from sinks, showers and appliances) moving it around the sewer network, and making spills less likely to happen”.
Diverting shite is my day job already
HA
if you're talking about cloud seeding, they use different things tbh
i want to make it myself just for the purpose of learning
lead 🥰
Yeah I thought that would be the case
Just wasn't sure which compounds it is
ChatGPT says these are the common substances:
Silver Iodide – Most widely used due to its structural similarity to ice crystals.
Sodium Chloride (Salt) – Used to create hygroscopic particles, encouraging droplet formation.
Potassium Iodide – Occasionally used as an alternative to silver iodide.
Dry Ice (Solid Carbon Dioxide) – Used for supercooling clouds to promote ice crystal formation.
Liquid Propane – Used for forming ice crystals in cold environments.
Calcium Chloride – Sometimes used for hygroscopic seeding.
you can see which ones are more likely to be used more often
.wa short 30f to c
-1.111 °C (degrees Celsius)
below that, liqud propane is usable allegedly
this was below that list on ChatGPT:
Each substance is selected based on the cloud type, environmental conditions, and the desired outcome (e.g., rain or snow).
Water in India is quite clean!
One sip will be as lethal as Arsenic.
- Fellow Indian!
LMFAO
Used for forming ice crystals in cold environments
it was even in the first part
yeah. just thought i'd add it for more clarity
@rugged root what about fingerprint scanner on the power button (on the side)?
Wait
"try to turn the screen off" challenge
That's a thing?
yes
Oh you just use a different finger
if you tap with wrong one too many times it wakes up and complains
when it's locked I double-tap the screen
when it's unlocked, either click the power button in such a way it can't unlock
or lock it through the upper menu
Smartphones have completely changed the way we live. The average person spends 3.6 hours a day on their smartphone and social media, and yet people have never felt more lonely. We have taken to spending our time developing their fabricated online persona and because of this they’re missing out on what’s important; to connect with […]
to someone who prefers gestures to buttons on a phone, double-tap-to-wake-up is quite a great feature
self.error_checker_label = ctk.CTkButton( self.status_bar_frame, text="😊", fg_color="green" if not self.errors or len(self.errors) == 0 else "red", width=9, font=("Verdana", 15), command=self.error_popup_checker )
this is a line that existed in my code
what is wrong with mer
async def deliver_cargo_to_contract(
self,
contract_id: str,
ship_symbol: str,
trade_symbol: str,
units: int,
) -> model.DeliverCargoToContractResponse:
data = {
"shipSymbol": ship_symbol,
"tradeSymbol": trade_symbol,
"units": units,
}
return await self._request(
model.DeliverCargoToContractResponse,
"POST",
f"/my/contracts/{contract_id}/deliver",
data=data,
)
can someone tell what do we usually use for making a nav-bar in python using Tinker GUI
color = "green"
if "errors" not in self.__dict__ or len(self.errors) == 0:
color = "red
self.error_checker_label = ctk.CTkButton(self.status_bar_frame,
text=":blush:",
fg_color=color,
width=9,
font=("Verdana", 15),
command=self.error_popup_checker)
@rugged root
my own
the menu is not functioning properly
Yeah it'd be easier if we can see what you already have
!paste
https://paste.pythondiscord.com/XCFQ
try this
youll be missing stuff
but call menu_bar(master)
i will provide the menu bar file
and the Home file
i stripped that from my current work
can i provide mine ???
Do it
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
You just use the link in the embed there
Make sure your emails are professional and suitable for the workplace. Write your draft with all your slang and expletives, and our AI bot will rewrite and clean up the text. Professional emails in seconds.
def left()
"You are all fucks I hate you" -> Dear Team,
I wanted to take a moment to express my frustration with the recent challenges we have faced. Despite our best efforts, we have encountered some significant obstacles that have negatively impacted our work. I acknowledge that these setbacks may have caused frustration and disruption to our workflow.
I appreciate the dedication and hard work that each of you has put into overcoming these challenges. Your perseverance and commitment to delivering quality results are valued and recognized.
If you have any suggestions or ideas on how we can improve our processes or mitigate future obstacles, I encourage you to share them with me.
Thank you for your continued hard work and collaboration.
Sincerely,
[Your Name]
return "left"
first one is for menu bar
second one for home
Oh that's goooooooold
....
Patience. I'm currently trying to write a work email. I'll look right after that
And you're more likely to get quicker responses by using our help system (see the #❓|how-to-get-help channel for more information on that)
np
wont get quick response there
ig
Did anyone have the chance to check out my shoot'em up?
like i mean actually play the game
self.master.bind("<Control-o>", lambda: threading.thread(target=self.open_console_window).start())
^top 3 programming moments
did you experiment with , GODOT , lately @rugged root
geeee , school over internet , that cant be possible ( snark )
No not at all
Hard to do anything with it since I mainly only program when I'm at the office
Im assuming it renders faster
https://www.youtube.com/watch?v=nlXBaP7l5n4 amazing soundtrack
Seven gunfighters are hired by Mexican peasants to liberate their village from oppressive bandits.
Subscribe: https://www.youtube.com/channel/UCf5CjDJvsFvtVIhkfmKAwAA?sub_confirmation=1
Watch more MGM videos: https://www.youtube.com/playlist?list=PLwwhtOnMyjuz28RRvQATj8OdD-HBBCCYX
The Magnificent Seven (1960)
Directed By: John Sturges
Screenp...
fractal landscapes
@smoky delta it is good to use master that self.root???
self.menu_bar_frame = tk.Frame(master, bg="#281c2c", height=40)
found this in your code
ok
let lines = lexer(code, expressions);
let lines_var = match lines {
Ok(nlines) => nlines,
Err(e) => {
println!("Error: {}", e);
return;
}
};
self.lines = lines_var
what that mountain doo gurl
@smoky delta
=== Main Frame Setup ===
# Top Frame for Menu Bar
self.top_frame = Frame(self.root, bg="white", height=50)
self.top_frame.pack(fill=X)
# Content Frame (For Dynamic Page Loading)
self.content_frame = Frame(self.root, bg="white")
self.content_frame.pack(fill=BOTH, expand=True)
# === Initialize the Menu Bar ===
self.menu_bar = MenuBar(self.root) # Pass root for menu bar
self.menu_bar.menu_frame.pack_forget() # Hide the menu's internal frame
self.menu_bar.menu_frame = self.top_frame # Reassign the menu frame to the top frame
self.menu_bar.menu_frame.pack(fill=X)
there is something in this code that is oreventing the menu to appear on the homepage
can u please see it
Life according to Borat
self.menu_bar.menu_frame.pack_forget() # Hide the menu's internal frame
self.menu_bar.menu_frame = self.top_frame # Reassign the menu frame to the top frame
self.menu_bar = MenuBar(root) # Pass root for menu bar
self.menu_bar.pack(anchor="n", fill="x")
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
i paste this instead of the 2 above ?
no, it replaces the entire redefine lines and such
its line for line the same just without the two lines
Sith - on
i mean so i try using the 2 u wrote
instead of the 2 i have
!yes
Hello Do you know Python Crash Course book that contain python programming and applications in projects do you think it's a good idea ?
oi @frosty holly
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
@peak depot i have played with some finish product 😄 it was a tikka t1x, ever heard about that brand?
nope
tikka means dart
ahhh, good to know
thanks i will try running this code
to see its layout
I love all the various ones we have
module = cluster_Init()
kmeans = module.cluster_initializer(reduced_feature_vector, number_of_clusts, RANDOM_SEED, None)
from Cluster_Initializer import Cluster_Init
@cloud fulcrum https://www.digitalocean.com/community/tutorials/understanding-class-and-instance-variables-in-python-3
@rugged root does this scratch rule 5
Hasn't hit that yet
ok
Broad discussion is fine
ok
It's the implementation is the issue
that's the most people i've seen in one call...
The only similarity between those two is that you can do functional style programming in both
It's more of an academic language
Its focus is to be purely functional; no side-effects, very particular way of defining and processing things, etc
It is used in industry but is not very common
Now I WILL say it is helpful for learn or at least poke around a functional language. Having an understanding of approaches and ideas gives you more tools in your toolbelt
I just personally don't recommend Haskell
But that's just a personal beef I have with it
You talking about AF?
Gotcha gotcha
Why do you ask?
You're free to ask him.
I've given my answer
Me being chill and me discussing situations that happened are very different things
def widen_shrubbery(Shrubbery sh not None, extra_width):
sh.width = sh.width + extra_width
!stream 425552190283972608
✅ @peak depot can now stream until <t:1737661218:f>.
# example.pyx
cdef void _greet(char* name, char* greeting):
print(f"{greeting.decode('utf-8')}, {name.decode('utf-8')}!")
def greet(name: str, greeting: str = "Hello"):
_greet(name.encode('utf-8'), greeting.encode('utf-8'))

Check the #voice-verification channel
That'll tell you what you need to know about the voice gate
i need 50 meesages i think
Checking
it doesnt tell me how many i miss
You've got one more
Should be able to hit the button, ye
Hermes is now collecting training data for Ezekiel, and Ezekiel can properly read and train on that data!
The IEEE Standard for Floating-Point Arithmetic (IEEE 754) is a technical standard for floating-point arithmetic originally established in 1985 by the Institute of Electrical and Electronics Engineers (IEEE). The standard addressed many problems found in the diverse floating-point implementations that made them difficult to use reliably and por...
pwnagotchi
before and after
@sweet inlet @hasty orbit
ender 3 pro
i need help
on what man
honestly, never heard of theat
:white_check_mark: Your 3.12 eval job has completed with return code 0.
hello world
!e
import ipaddress
def ipv4_to_ipv6(ipv4_address):
try:
ipv4 = ipaddress.IPv4Address(ipv4_address)
ipv6 = ipaddress.IPv6Address(f'::ffff:{ipv4}')
return ipv6
except ValueError:
return "Invalid IPv4 address"
ipv4 = '192.168.1.1'
ipv6 = ipv4_to_ipv6(ipv4)
print(f"IPv4: {ipv4} -> IPv6: {ipv6}")
!e
print("python world")
:white_check_mark: Your 3.12 eval job has completed with return code 0.
python world
!e
import turtle
screen = turtle.Screen()
screen.bgcolor("lightblue")
pen = turtle.Turtle()
pen.speed(5)
def draw_circle(color, radius, x, y):
pen.penup()
pen.goto(x, y)
pen.pendown()
pen.begin_fill()
pen.fillcolor(color)
pen.circle(radius)
pen.end_fill()
draw_circle("orange", 100, 0, -100)
draw_circle("black", 20, -40, 30)
draw_circle("black", 20, 40, 30)
pen.penup()
pen.goto(-50, 50)
pen.pendown()
pen.setheading(0)
pen.width(5)
pen.forward(100)
draw_circle("orange", 30, -70, 120)
pen.penup()
pen.goto(70, 120)
pen.pendown()
pen.setheading(135)
pen.begin_fill()
pen.fillcolor("orange")
pen.forward(50)
pen.left(90)
pen.forward(50)
pen.left(135)
pen.forward(70)
pen.end_fill()
draw_circle("brown", 30, 0, -200)
pen.penup()
pen.goto(30, -200)
pen.pendown()
pen.setheading(-30)
pen.circle(30, 180)
pen.hideturtle()
screen.mainloop()
:x: Your 3.13 free threaded eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m1[0m, in [35m<module>[0m
003 | import turtle
004 | File [35m"/snekbin/python/3.13t/lib/python3.13t/turtle.py"[0m, line [35m101[0m, in [35m<module>[0m
005 | import tkinter as TK
006 | File [35m"/snekbin/python/3.13t/lib/python3.13t/tkinter/__init__.py"[0m, line [35m38[0m, in [35m<module>[0m
007 | [1;31mimport _tkinter[0m # If this fails your Python may not be configured for Tk
008 | [1;31m^^^^^^^^^^^^^^^[0m
009 | [1;35mImportError[0m: [35mlibtk8.6.so: cannot open shared object file: No such file or directory[0m
!e
def riddle_game():
print("Riddle me this:")
print("I speak without a mouth and hear without ears. I have nobody, but I come alive with wind. What am I?")
answer = input("Your answer: ")
if answer.lower() == "echo":
print("Correct! You solved the riddle!")
else:
print("Oops! Try again!")
riddle_game()
:x: Your 3.12 eval job has completed with return code 1.
:warning: Note: input is not supported by the bot :warning:
001 | Riddle me this:
002 | I speak without a mouth and hear without ears. I have nobody, but I come alive with wind. What am I?
003 | Your answer: Traceback (most recent call last):
004 | File "/home/main.py", line 11, in <module>
005 | riddle_game()
006 | File "/home/main.py", line 4, in riddle_game
007 | answer = input("Your answer: ")
008 | ^^^^^^^^^^^^^^^^^^^^^^
009 | EOFError: EOF when reading a line
!e
num = [1 , 2 ,3 ,4]
print(num)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
[1, 2, 3, 4]
!code
just for the ease of reading...
!e
num = ["name" , "note" , "idea"]
print(num.append("hi"))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
None
you should've at least known it doesn't include can't in the output
it's cannot
I wonder where it's defined 
debian is funny
!e
num = ["name" , "note" , "idea"]
print(num.append("hi"))
num.append("i know ")
print(num)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | None
002 | ['name', 'note', 'idea', 'hi', 'i know ']
i like it
@sweet inlet policy here is not to use such ableist language even if you're referring to yourself.
just making sure you're aware
"if the joke went on for too long, I am going to nitpick"
help with what?
I want to see how much I've chatted so far .
!user 1315680349572829186
missing py after first ```
Hi people
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.
...
especially non-UNIX-related OSes
Yea, it's rusting your brain to do only right stuff
Tho... I have a question to ask..
Who's familiar with -5, 256 problem?
ironic given Rust will force you into doing right stuff
int interning?
yp
Well f*** car is a total loss. Waiting to get off the phone with Insurance before I join vc.
those integers are considered frequently used, so they aren't reallocated once you instantiate more of them
f-eye-stel
German
So if It's outside of this range, everything is good then?
Is it gonna be like an object if outside of this range?
if it's outside that range, it might be allocated more than once, but not guaranteed
interning isn't singleton
you have multiple instances of int
Singleton Pattern is about having a single instance of a class
not a single instance of a value
... most of the time
Welll.. when it's only repeatedly used right?
None I'd consider a singleton
False and True I wouldn't consider singletons
@primal shadow we do have a pharma bro in here, we can suggest that to them
a = 257
b = 257
print(a == b) # True
print(a is b) # False
Xynqro (uiczaelphanyx)
of the stock fraud variety
reading through code currently
Pneumonoultramicroscopicsilicovolcanoconiosis
PyTorch... why Torch, not Tensor?
Fair enough
This is a list of emoticons or textual portrayals of a writer's moods or facial expressions in the form of icons. Originally, these icons consisted of ASCII art, and later, Shift JIS art and Unicode art. In recent times, graphical icons, both static and animated, have joined the traditional text-based emoticons; these are commonly known as emoji...
There's a word actually... that contains 189,819 letters... but I believe I'll be canceled if I write it... criminally long word
i coulda sworn that when it is only ascii characters it was a kaomoji
would prefer pre-computing byte count rather than dividing each time
https://github.com/lgoodthrust/AI-audio-up-sampling-genoration/blob/main/scripts/mp3_2_wav_pair.py#L23-L28
scripts/mp3_2_wav_pair.py lines 23 to 28
file_size_mb = os.path.getsize(mp3_path) / (1024 * 1024)
# Check file size constraints
if file_size_mb < 1 or file_size_mb > 50:
print(f"Skipping {mp3_path}: file size {file_size_mb:.2f} MB is out of the allowed range (1MB - 50MB).")
continue```
⎛⎝(•ⱅ•)⎠⎞
it's not about efficiency at any point
Hmm, wonder if I do this will it... ⎛⎝(•ⱅ•)⎠⎞
(¬‿¬)つ 👑 You dropped this king.
The best nitpick is still tabs vs spaces. Just pick one and move on ffs.
anyway, yeah, code seems fine, there is nothing too egregious about it
The number of times I've been stuck in a code review sesh that was derailed within three minutes because the senior devs got pissed off that someone was using four spaces instead of two.
Oh hell nah (╯°益°)╯彡┻━┻
.editorconfig lines 4 to 5
indent_style = tab
indent_size = 3```
He's mentally connected with CPU, straightforward Reflexx
Nope
I like toxic green in my face at 2am
(phone => high brightness difference?)
Monitor = > Straight to my face
What if I import windy audio in your code... is it gonna be reduced, or more realistic?
btw... who still remember Tiles?
Tiles...
with the D instead of S 🤦♂️at the end
So you admit that you have couple of weird stuff
non-tenor-uploaded gif, a rare occasion
-# not entirely appropriate either way
I mean I use a 3d printed ergonomic tented separated mechanical keyboard on my main desktop
... let's turn the sh_tposting a bit down ...
Crazy
not appropriate.
look if it was against the tos it wouldnt be in the gif browser
but i do get it
its a wild gif
my desire for roasted chestnuts
(yes, and whether it's ToS compliant wasn't the issue)
have you tried searching for "torrid"
wtf
quoting you, "let's push the limits"
#voice-chat-text-0 message conveys a clear message of "let's not"
you've been effectively told "the line ends here" earlier
I condemn, in case...
i need that
my bad
ffs
Gentlemen. 🙂
GOD THE FUN POLICE
thats cobra innit?
this, if not clear, refers to quantity of gifs too
bro ur gonna be banned fr not good
This morning, the magpies were having a bit of a territorial. A lot of singing and beak clacking and attack-speed flying.
I cut this stuff
I prefer to make my own pasta, generally, for that kind.
Like, premade for a bake is fine.
Farrow would be alright.
No, barley, I mean.
Pardon, Plome?
That pre-made packet stuff like what you have, I don't like.
Anything other than the really narrow stuff tends to be okay.
I always go for bronze-cut pasta
We have a cutting machine.
I thought about getting a pasta maker, but I decided that it's too much faff for my small kitchen
You can cut it manually, but it takes getting the pasta texture right and having the right technique.
Tried it once. Managed, but it was a bit...uneven.
also when I cook, I need for the cleaning process to be "get everything into the dishwasher and handwash < 3 things
There's a lovely channel on YouTube, Pasta Grannies.
internet's dying
internet's been dying since ai generated slop became the norm on deviantart
@normal geyser Are you able to hear me asking you to stop making mic noises and singing?
hello
@nova stream 👋
anybody got any interesting hobbies?
same for me (screenshot from a ~day ago)
is it the same IP (45.84.107.76)
I don't screenshot node IPs normally
btw
there's a German company that controls quite a wide range
It shows it in Tor by default
Yh I seen that one guy runs like half the nodes at this point lol
I've config-excluded those nodes
why, cos it allows node tracking?
- too centralised, blatant single point of control
- youtube works terribly from their exit nodes
yes, german exit nodes are terrible i agree, even the one in antartica works better
@vocal basin is there a mod named aleris?
or ensure it's on if they think it is
The Code of Conduct for our community.
Alisa, the DMs are enabled in the appeal server but circuit_board is trying to appeal but the bot is not accepting his dm
if they're banned, that I'd expect to forbid DMs,
therefore an appeals server, see link above
Mr Maestro demands treats
a majestic floof
all this is flying over my head
feels so weird listening to people talk through discord that i dont know
Godot and Unity both are C#-compatible
that looked more like an issue on Discord's side
internet disconnection normally doesn't cause leaving as instantly
Alisa i dont mean to annoy you any more than i have but Circuit_Board asked if you could DM him so he can talk to you
did he manage to join the appeals server?
did he enable DMs on the appeals server?
did he DM the appeals bot?
@inland beacon as long as their mishandling of authentication isn't too illegal, they aren't going to bother
also they might not even acknowledge the issue, because acking would mean they need to pay bug bounty
the issue is just you can generate accounts, meaning you can flood servers that use meta as auth
post it in OV, so I won't even see it, because I'm not there
outside voices
I have four linked
one is active,
one doesn't even have a DNS record,
two are not yet implemented
which domain?
only a couple thousand
buypet.rocks
Alisa he responded back and told me yes
@inland beacon you can introduce grammar errors in comments so it looks less AI-generated
make creative errors then
ruchei-callback/src/lib.rs line 53
/// Implemented only for [`Sized`] because stored.```
thoroughly incomplete subordinate clause in a sentence
@vocal basin i need to go now, but Circuit_Board wishes to speak to you about his appeal
goodnight
i hope i havent annoyed you much
almost 4 a.m.
damn
uh
i just know his Circuit_Board
i dont know his id
i can ask and see
alright good
hes online
well goodnight everyone
and goodmorning to you alisa
xD
I do, just not using it
!stream 1247381369785421844
✅ @normal geyser can now stream until <t:1737683114:f>.
Hello guys
@normal geyser are you making some type off game?
@wind raptor Bro do you guys have any type of roadmap for python basics?
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Programming knowledge is a bag of things, some of which is based on the understanding of prior concepts, but not all of it.
It's a ever growing, ever shifting puzzle made of multiple pieces. Or lego.
Besides, most of the actual roadmaps I've seen tend to have things arse backwards, in my view.
People want concrete. It's not always that straightforward.
@normal geyser
| server | bot |
| ------- | ------- |
| pydis | modmail |
| appeals | appeals |
when are we getting support for tables in discord
You are right but i dont have any proper guide and i started by myself watching youtube.
I am confused
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Is there any particular thing that you would like to ask a question about?
ah, wait, it was already linked
Python-wise.
Conceptually.
Learning is free. Certification may or may not be.
But if you have money to burn, sure, you can pay for learning.
I can't do the def functions
I know some basics like data type and loops
Yeah bro got it
xD
hahahahaha
Guys tell me any basic project to make
Alr! I am going to make one
!kindling
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
The main point is to not trust it. Don't rely on it to be good. Asking it to write code? Don't trust that it will be well-written or even functional.
Asking it questions? Don't trust that what it tells you is correct or that it isn't making shit up.
Always corroborate what it tells you from reliable sources of information.
Even if what it tells you makes sense.
It's a fancy search term generator in terms of asking it questions.
The deceptive thing about it is that it is, with some things, often correct, often able to write code that even works.
So it lulls you into a false sense of security.
So, use it to give you ideas, but do your actual learning from reliable sources.
Which ChatGPT et al are not.
Okay
Timezones are...complicated.
!code
Hermes' brain
https://paste.pythondiscord.com/WAWQ
I just made a pretty simple calculator that can add and subtract
🫤
@normal geyser
It's not your microphone, it's you.
hahahah
She was cute before but now she's just a person
He is 12 ig
Guys I have one question
Dose collage degree matters for job?
This was my first python project:
https://pastebin.com/qE0q5jn4
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
#
# run on python 3.7
#
# python code to calculate the dynamic tropoapuse from online GFS data over
# a given date range (has to be within 7 days of the current time) and make
# a 3D animation. As the data is accessed online and the calculations are
# poorly coded, the program can take a while to run.
#
# NB:
# 1. Can take hours to run, due to both slow data access and poor coding
# 2. Does not fail gently if there is a data access problem (this could
# be fixed)
# 3. Not currently able to handle a longitude range that crosses 0 (this
# could also be fixed, fairly easily)
# 4. Very poorly coded and not commented: may cause nausea, vomiting, hair
# loss, and uncontrollable crying. You have been warned!
#
# The date and lat-lon range can be set below.
#
# (poorly) coded by Mathew Barlow
# initial release: 7 Feb 2020
# updated: 9 Feb 2020
#
# This code has *not* been extensively tested and has been, in part,
# awkwardly translated from other coding languages, so if you find
# any errors or have any suggestions or improvements, including for
# the plotting, please let me know at Mathew_Barlow@uml.edu . Thanks!
#
# Support from NSF AGS-1623912 is gratefully acknowledged
#
and the code itself
https://github.com/mathewbarlow/potential-vorticity/blob/master/gfs_pv_time_animation_1.0.py
||| code courtesy of the tf source leak |||
Music: Hall of the Mountain King
channel discord --- https://discord.gg/8TYgJhwA7S
channel patreon --- https://www.patreon.com/shounic
channel tracker --- https://trello.com/b/L3B65jUX
[ todo list / current progress on upcoming videos / channel roadmap ]
feedback --- https://forms.gle/bkuGF6attQrRPc6o...
some of his earlier (1970s) code:
CC
CC Fortran 77 program to integrate the linearized barotropic
CC vorticity equation at 500hPa for a single latitude, only
CC considering advection by the mean wind and ignoring all
CC variation in y:
CC
CC d/dt vort = -U*d/dx vort - beta*v
CC
CC The model is global in longitude
CC
CC Coded by Matt Barlow a million years ago -- this really, really
CC needs to be recoded!
CC
CC If you find any errors, please email me at Mathew_Barlow@uml.edu
CC
CC CAUTION: Reading through this code may cause nausea, feelings
CC of existential dread, and uncontrollable weeping
CC
C
parameter(nx=144) ! same as reanalysis grid
parameter(dt=60*15) ! time step (seconds)
parameter(nt=21*24*4) ! number of time steps
parameter(ntout=4) ! how many time steps to skip on output
parameter(clat=45.0) ! latitude
parameter(re=6.378E6) ! radius of Earth (meters)
parameter(rpi=3.1415926) ! Pi
parameter(omega=7.292E-5) ! angular velocity of Earth
parameter(s=4e6) ! spatial scale of initial disturbance
C
real vortold(nx),vortnew(nx),vort(nx)
real u,temp(nx)
real phi(nx),ddxphi(nx),ddxvort(nx),v(nx)
C
C set up input and output files and data
C
open(13,file="baro_1d_output.dat",status="unknown",
& access="direct",recl=4*nx)
C
C calculate grid spacing from number of grid points and latitude
C
dx=cos(clat*rpi/180.0)*2.0*rpi*re/real(nx)
f0=2.0*omega*sin(45.0*3.14159/180.0)
beta=2.0*omega*cos(45.0*3.14159/180.0)/re
C
irec=1
C
My dream is an EV version of this
@calm smelt https://www.youtube.com/watch?v=IJNR2EpS0jw
Check out our latest game!
https://youtu.be/waKAtVn8v64
Download the song: https://itunes.apple.com/gb/album/dumb-ways-to-die-single/id575962249
or http://soundcloud.com/tangerinekitty/tangerine-kitty-dumb-ways-to
Find us on Facebook:
https://www.facebook.com/dumbwaystodie
© Metro Trains Melbourne, Dumb Ways to Die™
@signal root 👋
The training begins...
Nice
gfd
!stream 99041425483653120
✅ @chilly wolf can now stream until <t:1737694301:f>.
:incoming_envelope: :ok_hand: applied timeout to @chilly wolf until <t:1737694770:f> (10 minutes) (reason: newlines spam - sent 111 newlines).
The <@&831776746206265384> have been alerted for review.
!untimeout 99041425483653120
:incoming_envelope: :ok_hand: pardoned infraction timeout for @chilly wolf.
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
def count_holes(board):
"""Count the number of holes in the board."""
holes = 0
for col in range(GRID_WIDTH):
for row in range(1, GRID_HEIGHT):
if board[row][col] == 0 and board[row-1][col] != 0:
holes += 1
return holes
def get_max_height_and_column_heights(board):
"""Return max column height and array of each column's height."""
col_heights = []
for col in range(GRID_WIDTH):
h = 0
for row in range(GRID_HEIGHT):
if board[row][col] != 0:
h = GRID_HEIGHT - row
break
col_heights.append(h)
return max(col_heights) if col_heights else 0, col_heights
def get_bumpiness(col_heights):
"""Sum of absolute differences between adjacent columns."""
bumpiness = 0
for i in range(len(col_heights)-1):
bumpiness += abs(col_heights[i] - col_heights[i+1])
return bumpiness```
anyone know best summarization models from huggingface for like call center conversation
def draw_grid(grid, surface):
reverse_color_mapping = {v: k for k, v in color_mapping.items()} # Reverse the mapping
for i, row in enumerate(grid):
for j, block in enumerate(row):
if block:
color = reverse_color_mapping.get(block, WHITE) # Map back to color
pygame.draw.rect(surface, color, (j * BLOCK_SIZE, i * BLOCK_SIZE, BLOCK_SIZE, BLOCK_SIZE))
pygame.draw.rect(surface, WHITE, (j * BLOCK_SIZE, i * BLOCK_SIZE, BLOCK_SIZE, BLOCK_SIZE), 1)
(SH)oot'e(M) (UP)
Error getting reward and next state: list index out of range
CC's (pronounced sea-seas and short for “corn chips”) is an Australian brand of flavoured tortilla chips produced since the early 1980s, originally by The Smith's Snackfood Company, and currently by Snack Brands Australia. CC's are predominantly sold in Australia and come in assorted flavours. CC's were also sold in New Zealand until Bluebird Fo...
Hello everyone, this is YOUR Daily Dose of Internet. In this video,
Links To Sources: https://docs.google.com/document/d/1rn1MnZraOkugeEE-SOn3MsOj4Usspa2GzHM5TbUEcGI/edit?usp=sharing
Rest of the videos: https://www.youtube.com/channel/UCdkQzfvvGV5BdVmsPUNi4Dw
Songs:
Free by KV / https://www.youtube.com/c/KVmusicprod
Creative Commons — Attr...
Give it a [::-1], she'll be right.
@remote sail 👋
Do you just text here without being on vc or am I genuinely unlucky
I'm around.
To answer the question, sometimes.
...to both parts.
@vale forum 👋
Proceed.
The thing is that the people on this server are sometimes very friendly. so, I have seen them using cuss words and i wanted to know if that is okay in this server?
😂
wow
Got it
That was fun and helpful
Sure but I am sure that 99% people join without reading them!😂
you're very real for that
@gray nymph 👋
Hi, I'm trying to get permission to speak 😅
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
🫣
I, for one, welcome our avian overlords! Have fun learning to be resilient with CrunchLabs and get 2 FREE boxes at: http://crunchlabs.com/Crow
Get your CrunchLabs box today:
Build Box for kids click here: http://crunchlabs.com/CrowBB
Hack Pack for teens and adults click here: https://crunchlabs.com/CrowHP
Thanks to Earthwings.org for being an...
hindernisbaan
am back
(was away, CTO called)
@quartz beacon mini metro does a similar thing
but without music, just individual sounds
oh, wow, mini motorways is at 96% reviews
higher than mini metro
gartic phone gives me anxiety, me no want
yeah, sounds like reddit
pvpve cards against humanity:
some AIs are playing as well, and they get to generate answers instead of choosing
curl -sSfL 4chan > cards.txt
"Choose cards only but make stuff up for blank cards", "choose cards and and make cards up", "make up stuff only".
Maybe I'm overthinking it.
@rich garnet I have some experience with Flask, but nowadays using FastAPI only
u can talk
I probably won't be able to help with it right now, since currently busy doing work
unless it's some small issue
@somber heath slightly high pitched singing
are you using any in-memory state and/or spawning any background threads?
(in-memory state as in shared across requests)
gunicorn --bind 0.0.0.0:4180 --worker-class gevent --workers 5 app:app
each worker is a separate process
2vcpus, 8gb of ram
so the current issue is high CPU usage, right?
or something else?
as soon as you start it? or after a request?
do you Thread.spawn anything from inside the code?
import gevent.monkey
gevent.monkey.patch_all()
you can use Quart, which is an async version of Flask
just using Quart would be easier I think
first Flask -> Quart
and then Quart -> FastAPI
(so that individual rewrite steps are smaller)
either the access needs to be authorized, or just don't provide public access to the endpoints
if it's on a public IP, it must check authorization for all API methods
either through cookies or authorization header
@app.before_request
def validate_api_key():
if request.path.startswith('/api/'): # Apply validation only to /api/ routes
api_key = request.headers.get('Authorization')
if not api_key:
logger.warning(f"Missing API key in request to {request.path} from {request.remote_addr}")
abort(401, description="Unauthorized: Missing API Key")
elif api_key != f"Bearer {VALID_API_KEY}":
logger.warning(f"Invalid API key in request to {request.path} from {request.remote_addr}")
abort(401, description="Unauthorized: Invalid API Key")
else:
logger.info(f"Valid API key in request to {request.path} from {request.remote_addr}")
so that it requires a token to access
obscuring the API won't work; you need to do it in such a way that both web access and postman access are valid
do you have data separated per user?
if the data can be acquired through the web interface, it's going to be possible to get it through the API directly
I'm not entirely sure what the domain of what you're doing is, so can't really say how to deal with that
first assume there is nothing but API, and implement rate-limiting for unauthorized users within that constraint
I guess the simplest way would be to use the remote IP as a key
"one remote IP can't access your endpoint more than 10 times a day"
something like that
too many requires should return HTTP 429 with a wait-until header
throttling rather than blocking
doing too many requests shouldn't be seen by the server as "user doing something bad"
i.e. going over the limit isn't a violation, just something that the user needs to be notified about once they do it
once you do that, you can directly translate HTTP 429 into "you've reached your daily limit, would you like to sign up?" pop up
I need to go now
thx for these information
hey @terse rose
Hru
how do you do ?
Nice
hey @grim flare
:))
yeah i have but as you know arch linux and the problems
i think
university ? @grim flare
Arch linux gang
I main arch btw
i didn't work with flutter that much
niice
we just had a project in our university with flutter
chatgpt helped me alot with it
bishtar tozih midi, age referenca ro befresti shayad betonam komam konam
linkesho mifresti ?
you wanna publish your package there ?
hey @upper basin
Ich mag Deutsch
nightmare
@copper perch hör nicht auf ihn
lol
hey @whole bear
!rule 4