#voice-chat-text-0

1 messages · Page 379 of 1

burnt pollen
#

sad

burnt pollen
#

RIP

indigo raven
#

👋

vocal basin
#

@midnight agate live reload for UI has been implemented

#

the refresh itself implemented the most direct way possible:

document.open();
document.write(text);
document.close();
#

only the websocket connection and event log is preserved

#

removes existing things

#

some things on window are kept

#

but the document itself is erased completely

#

that was for flag sync

#

whenever the flag is placed, it locally puts a "lock" on it with an id

#

the lock is released once it receives a confirmation from the server with the same id

#

when that happens, it starts prioritising server state over its own

#

it's guaranteed to unlock eventually

#

and, once it's unlocked, it's guaranteed to follow the shared state

hardy sinew
#

hai

vocal basin
#

all messages received from the server are seen by clients in the same order

#

disconnect ends all updates to the local state

#

needs a page reload

#

there is no partial sync, and there never will be

#

socket.onclose

#

all such errors guarantee connection termination

#

based on how TCP and how WebSocket operate

#

you can't transmit => the connection is dead

#

just like with AsyncRead/AsyncWrite and Stream/Sink in Rust

#

as with most connection-oriented protocols

vocal basin
#

no, but all upstack abstractions see it as no longer usable

#

Rust's approach is to close on drop

vocal basin
vocal basin
#

on UDP it makes sense sometimes

#

on TCP there do exist some errors you can retry after

vocal basin
#

, and some others

#

others which are related to inputs

#

, or system state as a whole

quick shuttle
#

why are you deleting your messages

#

oh

vocal basin
#

EACCES, EBADF, ECONNRESET, EDESTADDRREQ, EFAULT, EINVAL, EISCONN, EMSGSIZE, ENOTCONN, ENOTSOCK, EOPNOTSUPP, EPIPE -- there is no hope of retry
EAGAIN/EWOULDBLOCK -- obvious retry
EALREADY -- ???
ENOBUFS -- "Normally, this does not occur in Linux"
ENOMEM -- system is dying + you don't really get it on Linux that often

#

so there are four potential cases for retry:
EAGAIN/EWOULDBLOCK -- out of scope, already handled by async wrappers
EALREADY -- out of scope, we're not using Fast Open
ENOBUFS -- for TCP, we get EAGAIN/EWOULDBLOCK instead
ENOMEM -- out application is already dead, since we have no OOM handling

hardy sinew
#

hai

vocal basin
#

unlike C++ which does have that notion for methods

odd dove
#

Hiii hru doing

vocal basin
#

also thread safety

odd dove
#

get well soon

#

always welcome

vocal basin
hardy sinew
#

do u mean like send data like text to another pc?

vocal basin
#

Squeal, as Hemlock or Primeagen would say

#

from the same set of phonetics as "Weasel" for WSL

#

still trying to help someone with their ASP site

hardy sinew
#

same i'm trying to render something

odd dove
#

alr

hardy sinew
#

have a gud day everyone

odd dove
vocal basin
#

idk about courses, I don't take those

#

documentation

#

for specific technologies

#

for example, for Python

vocal basin
#

what do you want to stream?

obsidian dragon
#

they want help with a question answer app

vocal basin
#

!paste

wise cargoBOT
#
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.

vocal basin
#

^ easier for sharing code than video

#

very little

#

for what usecase?

vocal basin
# wise cargo

after saving it will generate a new link, with code in it

quick shuttle
vocal basin
#

@obsidian dragon you should probably just try both and compare results

vocal basin
wise cargoBOT
#

random.choice(seq)```
Return a random element from the non\-empty sequence *seq*. If *seq* is empty, raises [`IndexError`](https://docs.python.org/3/library/exceptions.html#IndexError).
vocal basin
#

random.choice(questions)

#
ans = input(random.choice(questions))
obsidian dragon
#

see the bot thing?

vocal basin
#

yes

#

you can do this:

questions = [
    (question1, answer1),
    (question2, answer2),
    (question3, answer3),
]

question, answer = random.choice(questions)
#
questions = [
    ("What does a program counter store?", "next instruction to be carried out"),
    ("Where are the contents of the program counter stored?", "Memory Address Registers (MAR)"),
    ...
]
#

Python allows trailing commas

#

so that lines look more consistent

#
questions = [
    (question1, answer1),
    (question2, answer2),
    (question3, answer3),
]
``````py
questions = [
    (question1, answer1),
    (question2, answer2),
    (question3, answer3)
]
#

^both are valid

vocal basin
#

as in any JS code?

#

yeah, just display none

#
.disable-clutter .clutter {
  display: none;
}
#

and add the disable-clutter class onto body or wherever else

vocal basin
#

no comma

#

nested

#

also check spelling

vocal basin
#

document.body

#

document.body.classList.add("disable-clutter")

#

typical DOM interface

#

you can just .toggle

#

@obsidian dragon make it a QTE: if you don't disable in 500ms, you can't click it

#

and 10% of the times it's 200ms just to be annoying

#

@obsidian dragon do you randomise clutter's z-index?

#

so that it can go under the text

#

and images

#

@south loom Cloneable gained an extra e thanks to Java

#

as an example of that

#

maths term

#

just set theory

#

basic maths

#

more basic than algebra

#

in university we had set theory covered as the first topic

#

and at school it was 5th out of 48, so quite early too

#

(switched to maths school in grade 8)

#

we had non-algebra non-geometry maths split into 48 sections

#

4 years

#

I'll be back in 20~50 minutes

scarlet dust
#

👍

somber heath
#

@delicate nest 👋

#

@whole bear 👋

whole bear
#

i cant talk

south loom
#

!resources

wise cargoBOT
#
Resources

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

whole bear
#

im server muted

somber heath
wise cargoBOT
#
Voice verification

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

whole bear
#

Hi my name is opalmist

#

@somber heath

somber heath
hardy sinew
#

hai sunflower

#

hai all

scarlet dust
#

@hardy sinew 👋

hardy sinew
#

I got the minecraft thing working finally

#

I mean a thing I said about last time only opal was here I think

#

only being able to take one note is kinda bad

#

twonote

scarlet dust
#

🤯

hardy sinew
#

lol

#

in the uk?

#

@whole bear

whole bear
hardy sinew
#

oh

#

not sure about the differences in school there

whole bear
#

crazy compp

hardy sinew
#

I been in year 11 here before

whole bear
#

damn

#

nice

hardy sinew
#

im not

#

w mr bisk

hardy sinew
#

a sausage?

peak depot
#

Minced meat

crystal fox
hardy sinew
#

billy bear ham

peak depot
#

Too noisy

hardy sinew
#

passport and birth certificate?

sage basalt
#

whats the best way to get an internship?

#

apply where?

#

not a great linkedin user

somber heath
#

@kindred bolt 👋

kindred bolt
sage basalt
#

0

#

i was waiting for the perfect oppurtunity till now i realised im so dumb

#

front

somber heath
crystal fox
somber heath
#

Tell Bob, push Jacky off a cliff

vocal basin
#

"signals" is probably the wrong word, since it implies something immediate

sage basalt
#

applied 1

vocal basin
#

!stream 425552190283972608 1h

wise cargoBOT
#

✅ @peak depot can now stream until <t:1733681044:f>.

vocal basin
#

cat

#

maybe gain credibility through reducing the absence of contributions

#

another option: have the team already dependent on things you made

#

through open (or less so) projects

#

@crystal fox also "stroll" as another "taxon" of walking

peak depot
#

Rich house?

#

I live in a one bedroom appartment

vocal basin
#

@lethal shell algorithmitc decisions for legal claims and similar stuff was there for quite a while

#

not LLM type of AI

#

just statistics and "if statements" type of AI

#

the issue is when there is no way to dispute that decision

#

banks really like to use that for whether to allow a loan

obsidian dragon
vocal basin
#

oh, I know what else cursed you can add:
add that follows-cursor background animation but only for the clutter

sage basalt
#

LINGANG GULI GULI GULI WATAAA LING GANG GU LIN GANG GU

torn yarrow
#

Merry Christmas yall

#

Woah a tree

vocal basin
#

@lethal shell @timid marten @crystal fox all three of you, stop interrupting each other.

vocal basin
#

Rabbit is already gone

#

no, it definitely should be you in that list too
(to Bisk)

timid marten
#

It's not cus of rabbit :p

vocal basin
timid marten
#

It's aight :>

amber raptor
#

Sorry @crystal fox I realize it’s another Euro who doesn’t realize we took the bar and toss that shit into atmosphere

neat perch
vocal basin
crystal fox
neat perch
crystal fox
#

`

vocal basin
#

above tab, to the left of 1, below esc

#

approximately

neat perch
#
import scapy.all as scapy

def packet_callback(packet):
    if packet.haslayer(scapy.IP):
        src_ip = packet[scapy.IP].src
        dst_ip = packet[scapy.IP].dst
        protocol = packet[scapy.IP].proto

        print(f"Source IP: {src_ip} | Destination IP: {dst_ip} | Protocol: {protocol}")

        if packet.haslayer(scapy.TCP):
            try:
                payload = packet[scapy.Raw].load
                decoded_payload = payload.decode('utf-8', 'ignore')
                print(f"TCP Payload")
            except (IndexError, UnicodeDecodeError):
                print("Unable to decode TCP payload.")

        elif packet.haslayer(scapy.UDP):
            try:
                payload = packet[scapy.Raw].load
                decoded_payload = payload.decode('utf-8', 'ignore')
                print(f"UDP Payload")
            except (IndexError, UnicodeDecodeError):
                print("Unable to decode UDP payload.")

def start_sniffing():
    scapy.sniff(store=False, prn=packet_callback)

start_sniffing()

vocal basin
#

on the first line

#

no space before, no space after

lethal shell
#

@midnight agate have you worked in a restourant, or factory?

#

then I know why you get it 😄

neat perch
lethal shell
#

I worked both in factory and in restaurants

#

yes, it was joked about that in restauraunt you have ten managers and none of them hold higher tittle then you

#

and all of them say different things

vocal basin
#

!stream 1112791642278211707

wise cargoBOT
#

✅ @neat perch can now stream until <t:1733681089:f>.

lethal shell
# crystal fox `

I have nothing against you dude, I hope you have nothing against me. I just would like to be monitored by the rules, or by moderators orders, you obviously can see, how can that turn chaotic.

vocal basin
#

@neat perch there is .aspx

#

no, that's ASP

lethal shell
#

it just seemed that your buddy tagged you because he were unhappy, and you came to deffend him

vocal basin
#

like .php

#

regex might be doing weird stuff at the ends

#

i.e. not understanding where URL starts and ends

#

so you might need to adjust it

#

@neat perch you can just try finding .gif without URL

#

re.findall("gif", text)

lethal shell
#

the "threatening" "goodbye cat" when i wasnt the only one in the chat... are you really gonna do it like that...

#

okay, lets drop it

#

:p

vocal basin
#

@neat perch replace text with whatever has the original text

#

whatever you run findall with

#

in other cases

#

@neat perch packet_payload.decode(...)

#

@neat perch the whole

#

@neat perch don't forget to rename the parametre

#

@neat perch line 75 replace found_urls with packet_payload

grizzled crest
#

found_urls right?

vocal basin
#

return re.findall("gif", packet_payload.decode(errors="ignore"))

lethal shell
#

yeah, there can be cases like that, i have no problem with it. Sometimes it just happens that people try to make it a good space for everyone. But it really seemed like he was focused on me in the end. So it seemed that he doesn't deserve the authority he thinks he has...

vocal basin
#

@neat perch so there is one match

grizzled crest
#

looking well i guess

lethal shell
#

basicly, that goodbye cat was about that, I was trying to give him valid questions, and he just hated being questioned.

vocal basin
#

!d re.finditer

wise cargoBOT
#

re.finditer(pattern, string, flags=0)```
Return an [iterator](https://docs.python.org/3/glossary.html#term-iterator) yielding [`Match`](https://docs.python.org/3/library/re.html#re.Match) objects over all non\-overlapping matches for the RE *pattern* in *string*. The *string* is scanned left\-to\-right, and matches are returned in the order found. Empty matches are included in the result.

The expression’s behaviour can be modified by specifying a *flags* value. Values can be any of the [flags](https://docs.python.org/3/library/re.html#flags) variables, combined using bitwise OR (the `|` operator).

Changed in version 3\.7: Non\-empty matches can now start just after a previous empty match.
vocal basin
# wise cargo

@neat perch this one yields Match objects which also keep positions

#

so you can extend the range that's matched to see more context

grizzled crest
#

but should outprint the name of the file or only if there is a match?

lethal shell
#

yeah.. I think I should inform admin about this behaviuour.

#

I dont feel victimside or anything, it just doesn't seem like its the type of behaviour anyone would prefer

vocal basin
#

it's from the same module as findall

#

it's part of standard library

lethal shell
#

and you are right, sorry again for continuing it.

vocal basin
#

also

#

it might be a good idea to generate a file of all text that you're finding matches in

#

just so you can just ctrl+f it for debugging

#

@neat perch replace findall with finditer and see what it does

lethal shell
#

@vocal basin you remember what the guys did a couple days ago with the challange? I told about it to my friend, but he was confused about it, was questioning some stuff, Id like to ask a couple questuions in privade if possible.

#

they were doing cryptography stuff and I think you were there

#

or what it someone else

vocal basin
#

@neat perch don't sort it

lethal shell
#

I think you even were talking to me about it being a geometric progression

vocal basin
#

I don't think I said that, but, yes, generally the complexity of that challenge grows in a geometric progression

#

due to how BTC is implemented, that challenge doesn't truly suffer from diminishing returns issue

#

the currency itself is engineered to be exponentially deflationary

#

"same BTC amount for exponentially more effort" is hard-coded in both cases

#

(both the challenge and the protocol)

lethal shell
#

I just wanted to msg you for this specific instance.

vocal basin
#

okay

#

@neat perch you want to aggregate the data, right?

#

!d set

wise cargoBOT
#
set

class set([iterable])``````py

class frozenset([iterable])```
Return a new set or frozenset object whose elements are taken from *iterable*. The elements of a set must be [hashable](https://docs.python.org/3/glossary.html#term-hashable). To represent sets of sets, the inner sets must be [`frozenset`](https://docs.python.org/3/library/stdtypes.html#frozenset) objects. If *iterable* is not specified, a new empty set is returned.

Sets can be created by several means:

• Use a comma\-separated list of elements within braces: `{'jack', 'sjoerd'}`

• Use a set comprehension: `{c for c in 'abracadabra' if c not in 'abc'}`

• Use the type constructor: `set()`, `set('foobar')`, `set(['a', 'b', 'foo'])`...
vocal basin
#

!d collections.Counter

wise cargoBOT
#

class collections.Counter([iterable-or-mapping])```
A [`Counter`](https://docs.python.org/3/library/collections.html#collections.Counter) is a [`dict`](https://docs.python.org/3/library/stdtypes.html#dict) subclass for counting [hashable](https://docs.python.org/3/glossary.html#term-hashable) objects. It is a collection where elements are stored as dictionary keys and their counts are stored as dictionary values. Counts are allowed to be any integer value including zero or negative counts. The [`Counter`](https://docs.python.org/3/library/collections.html#collections.Counter) class is similar to bags or multisets in other languages.

Elements are counted from an *iterable* or initialized from another *mapping* (or counter):

```py
>>> c = Counter()                           # a new, empty counter
>>> c = Counter('gallahad')                 # a new counter from an iterable
>>> c = Counter({'red': 4, 'blue': 2})      # a new counter from a mapping
>>> c = Counter(cats=4, dogs=8)             # a new counter from keyword args
dusk raven
vocal basin
#

@dusk raven this is more of "homework" than "exam" situation

dusk raven
#
c = Counter([
    f"{packet[scpapy.IP].src}-{packet[scapy.IP].dst}"
    for packet in scapy_cap
])
neat perch
#

from scapy.all import * 

import scapy.all as scapy
from collections import Counter


scapy_cap = rdpcap('evidence_packet_analysis.pcap')

c = Counter([
    f"{packet[scapy.IP].src}-{packet[scapy.IP].dst}"
    for packet in scapy_cap
])

# print(c.most_common())

# for ip_pair, count in c.most_common():
    # print(ip_pair, count)

headers = ['SRC', 'DEST', 'COUNT']
data = [[udp_count, tcp_count, igmp_count]]

# Create and print the table
table = tabulate(data, headers=headers, tablefmt="fancy_grid")
print(table)

vocal basin
#

(there's still an extra space)

#

put cursor before ```

dusk raven
#
from collections import Counter

from scapy.all import rdpcap, IP
from tabulate import tabulate


scapy_cap = rdpcap('evidence_packet_analysis.pcap')
counter = Counter([
    (packet[IP].src, packet[IP].dst)
    for packet in scapy_cap
])

headers = ['SRC', 'DEST', 'COUNT']
data = [
    (src, dest, count)
    for (src, dest), count in counter.most_common()
]

# Create and print the table
table = tabulate(data, headers=headers, tablefmt="fancy_grid")
print(table)
vocal basin
amber raptor
vocal basin
#

for some reason it doesn't just refuse completion upon this syntax error:

for entry.
dusk raven
#

The Internet protocol suite, commonly known as TCP/IP, is a framework for organizing the set of communication protocols used in the Internet and similar computer networks according to functional criteria. The foundational protocols in the suite are the Transmission Control Protocol (TCP), the User Datagram Protocol (UDP), and the Internet Protoc...

whole bear
vapid condor
vocal basin
#

content warning: alcohol

twin python
#

Can't get me

whole bear
#

Am I able to get verified early

formal ember
#

Bro, let her talkkkkkk.

#

im trying to code here with that smooth voice.🧘

steady sail
formal ember
#

bro sounds like spy.

#

you need permission

#

everywhere

steady sail
formal ember
#

This year ,January, i made a static site for one client for 50 euros.🥴

whole bear
#

I need help

#

Badly

#

I want to crate an app

formal ember
#

19?

#

sure, he got terrified of po*n

steady sail
formal ember
#

i need to learn to play with colors.

#

that looks cool

west lion
#

i didnt hear you. pardon me? @lethal shell

formal ember
lethal shell
steady sail
formal ember
#

i told you guys, this dude is spy

#

🤣

grizzled crest
#

@lethal shell East??????

west lion
#

east of russian

lethal shell
#

west of russia

grizzled crest
#

xDDDD

west lion
#

damn

vocal basin
formal ember
#

🤣

vocal basin
#

at least in that projection

grizzled crest
#

😂

vocal basin
#

fun fact: during summer, Russia and Spain timezones overlap

#

(Königsberg and Spain with its double summer time both are GMT+2)

formal ember
#

@west lion control on your words buddy.

grizzled crest
#

xDDDDDDDDDDDDD

formal ember
#

WTF

#

no

#

but heard of it

#

you still wont get

#

😂

vocal basin
#

@west lion ...

grizzled crest
#

brooooooooooooooooo

#

AHHAHAHAHAH

formal ember
#

i dont know how he is still in server.🤣

grizzled crest
#

thats crazy

#

g

formal ember
#

@rugged root 🤣

vocal basin
#

@west lion you can reference that word without saying it.

formal ember
#

🤣

vocal basin
#

just a reminder: saying "I don't want to offend anyone" does not excuse the behaviour

formal ember
#

he is just trolling now.

grizzled crest
#

thats crazyyyyy

formal ember
#

@lethal shell you being too nice to him,🤣

grizzled crest
#

@west lion but you can reach with VPN you buy from Gov? They have a filter or why they sell

west lion
vocal basin
#

looking through the dictionaries, not being able to find that meaning of that word in any language

west lion
vocal basin
#

@snow wharf if you're going to burp, please mute the mic.

grizzled crest
#

and tiktok and etc

west lion
grizzled crest
#

alpha bro

#

xD

#

yes so they filter content

vocal basin
grizzled crest
#

but i guess its not possible because in Turkey it is closed for some time because of the content

vocal basin
#

back in early PHP time the only alternative was... Perl.

#

"would you pick that over PHP?"

#

@steady sail let's not use that word in a derogatory manner.

#

suggestion: check if the company offers bug bounty before doing bug hunting for them

west lion
#

sure

formal ember
#

im feeling illegal being on this vc rn. full of heckers

west lion
vocal basin
#

better than earlier discussion so for now allowed

lethal shell
#

o.O

grizzled crest
steady sail
#

yea

vocal basin
#

I advise against posting this type of software here. there are other servers where this is more appropriate.

steady sail
#

got it

#

thanks

vocal basin
#

, since it's closer to easily mal-utilisable library than to research project

steady sail
#

that was an example

#

using aob scan

#

and writting memory

#

and reading

vocal basin
#

response to the other user

#

@steady sail what do you want to share?

faint raven
#
question = 'can i get a perms pleasae?'
print(question)
vocal basin
#

!stream 1293609724180299779

wise cargoBOT
#

✅ @steady sail can now stream until <t:1733701655:f>.

vocal basin
#

@lethal shell ?

#

ah, no, I was making a joke about Sweden being to the east of Russia

#

@faint raven what do you want to share?

faint raven
#

yes please

#

i want to share my code in vs code

vocal basin
#

!stream 266030641382948865

wise cargoBOT
#

✅ @faint raven can now stream until <t:1733701774:f>.

west lion
#
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.



vocal basin
#

Oracle is going to copyright claim you

#

nuitka?

west lion
#

you know brainfuck?

vocal basin
#

(this is a joke specifically to mention Oracle being bad at grammar)

#

@west lion it consumes the iterator, thus waiting for completion of all tasks

#

!e

def generator():
    for i in range(5):
        print(i)
        yield

generator()
wise cargoBOT
vocal basin
#

^ no loop

vocal basin
#

!e

def generator():
    for i in range(5):
        print(i)
        yield

for _ in generator(): pass
wise cargoBOT
vocal basin
#

^ with a loop

formal ember
#

cannot see the text on it.

burnt pollen
#

yo what's the code @faint raven

torn yarrow
#

You guys are still in vc

#

Dayum

vocal basin
#

uh

#

I don't remember how

formal ember
#

😂

vocal basin
#

!unstream 266030641382948865 afk

wise cargoBOT
#

❌ This member doesn't have video permissions to remove!

#

@faint raven's stream has been suspended!

vocal basin
#

asyncio is good for coordinating thread pool tasks, even if you don't use any asynchronous networking

formal ember
vocal basin
#

.* won't work afaik

steady sail
#

from routes. (
)

vocal basin
#

sorting is somewhat off

#
from datetime import datetime

from flask import render_template

from routes import app
from routes.admin import admin_B
from routes.posts import posts_B
from routes.short import short
from routes.user import B_user
from routes.validator import validator
#
import os
import re

from flask import Flask

from utils.db import db
#

standard, installed, local

#

using GPT to mask code as GPT-written is some new level of AI usage

#

"seeing so much things I don't like... but then realising... it's just Flask itself"

#

doesn't Flask automatically generate a 500 page?

#

which you can just customise

#

idk if it does

#

FastAPI's DI is great for asserting user capabilities

#

capabilities in security sense

#
user: Annotated[User, Depends(get_admin)]
#

to achieve the same, quite many (including non-HTTP) frameworks use decorators instead

wind raptor
#

Hey!

little rampart
vocal basin
#

@steady sail the big issue is how the browser limits many requests

#

it won't just overload the server, it will queue up on the IO wait

#

5000 people maybe, yes

#

yeah, on minimal deployment, can be around 50

#

user stopped typing -> wait -> request

#

yes

#

... and "minimal permissions" is how you get Google Play requiring a writing app to have read-only access to Google Drive

faint raven
little rampart
vocal basin
#

don't sha256 the passwords if they're not guaranteed to be random and secure, do proper hashing

little rampart
#

join if you want

faint raven
#

@burnt pollen just type in sudo apt install cmatrix

burnt pollen
formal ember
vocal basin
#

it's not good, but it's not the best
I'm stealing that phrasing

little rampart
vocal basin
#

(leaving the stream so I don't get spoilers/so I don't cheat)

faint raven
#

@burnt polleni was ssh into my raspberry pi

burnt pollen
vocal basin
#

okay back to observing

vocal basin
#

the words cannot describe how wrong the problem text is

steady sail
#

Storyline:
You work in NASA, and must check if the rocket will reach Mars

The Problem:
You must create a program to calculate if rocket will reach Mars

Criterion of a Failing rocket:

  • If velocity multiplied by the time is less than distance to Mars
  • If fuel multiplied by the fuel consumption is less than distance

Notes:
If there is less time, print 'Failure, Not enough time'
If there is less fuel, print 'Failure, Not enough fuel'
If both only print 'Failure, Not enough time'
If rocket is successful, print 'Welcome to Mars'
time will be in hours
fuel will be in liters
fuel_consumption will be in distance per 1 liter of fuel
distance will be in kilometers

#

if (velocity * time < distance):
print('Failure, Not enough time')

vocal basin
#

@lethal shell prewritten

#

@lethal shell first rule to solving this problem: shut down the brain

#

if your brain is functioning you can't read "fuel multiplied by the fuel consumption" and be okay with it

lethal shell
#

v * t < S

vocal basin
little rampart
#

time = int(input())
fuel = int(input())
fuel_consumption = int(input())
distance = int(input())
velocity = int(input())

distance_by_time = velocity * time
distance_by_fuel = fuel * fuel_consumption

if distance_by_time > distance:
print("Failure, Not enough time")
elif distance_by_fuel > distance:
print("Failure, Not enough fuel")
else:
print("Welcome to Mars")

vocal basin
#

how is it even hitting 75%?

vocal basin
lethal shell
#

(v * t < S)||(Fc*F<S)

little rampart
vocal basin
#

I see people really don't like writing by spec

#

well even in my case it took 2 whole minutes

steady sail
#

A contribution by Ayza
Approved by EricMoret,PhykinandHAMZAOS
Goal
You are creating an application with user interface, after making the buttons you have to check if the user's mouse is colliding with the button (If there is a button) given the coordinates of both the mouse and the button, and the width and height of the button.

Note that the button starts at x and spans for width, and includes both x and x+width as part of the button. Same goes for the height. So, for x = 5 and width = 10, the button would meet its edge at x = 15, which would still count as a collision point as would x = 0.
Input
Lines 1-2 : Integers x and y containing the button coordinates
Lines 3-4 : Integers width and height of the button
Lines 5-6 : Integers mouseX and mouseY containing the mouse's coordinates
Output
Line 1: A string true if the mouse is colliding with the button, No button if x,y,width,height are all zero, otherwise false
Constraints
Coordinates start from the top left corner (so 0,0 would be the top left corner)
Example

primal shadow
#

This one seems pretty not bad

vocal basin
#

I wrote the same code I had and it worked

#

tf

#

okay I guess a typo somewhere

#

on first try of running tests

little rampart
#

x = int(input())
y = int(input())
width = int(input())
height = int(input())
mouseX = int(input())
mouseY = int(input())

if x == 0 and y == 0 and width == 0 and height == 0:
print("No button")
elif x <= mouseX <= x + width and y <= mouseY <= y + height:
print("true")
else:
print("false")

lethal shell
#

if Xm => x && Ym=>y || Xm <= x+width && Ym y+height

vocal basin
primal shadow
#

we're here to teach, not give

vocal basin
little rampart
#

the man didnt even read the prompt he didnt have a sea

primal shadow
#

so we should not be giving the answer, that helps no one

little rampart
torn yarrow
#

What site is that @vocal basin ?

vocal basin
#

codingame?

torn yarrow
#

I see

#

Can't see I'm on mobile grumpchib

primal shadow
#

oops, printed instead returned of returned printed

#

tthen i printed "answer" not realizing it was there

vocal basin
#

which one?

primal shadow
#

methings you won

vocal basin
#

penultimate one is closed (I think) but codingame can't handle it

little rampart
#

x, y = map(int, input().split())

vocal basin
#

@steady sail I need to leave (and Chris left too), so no mod to watch over the stream

steady sail
primal shadow
little rampart
#

you have to read the edges and turns them to a matrix

steady sail
little rampart
#

hahahah

#

j'ai pris une baguette

#

arno

#

mama mia

#

mia mama

#

frapotchino

#

capotchino😆

#

nor xor

#

may god bless you nitee

lethal shell
#

This sounds like foreplay if you just blure the words.

steady sail
lethal shell
#

Anakin

#

And obivan

neat perch
neat perch
lethal shell
#

Mean = sum of elements/number of elements

neat perch
lethal shell
#

In statistics, the standard deviation is a measure of the amount of variation of the values of a variable about its mean. A low standard deviation indicates that the values tend to be close to the mean (also called the expected value) of the set, while a high standard deviation indicates that the values are spread out over a wider range. The sta...

somber heath
#

@kind pond 👋

torn yarrow
#

Where's the cat

#

Bruv

rapid tangle
#

Why can't I talk 🫠

#

Heeeeeeeeeellllooooooo

steady sail
rapid tangle
#

Fuck

#

I don't wanna read all of that

sharp flare
#

!u

wise cargoBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

somber heath
rapid tangle
#

How 💔

sharp flare
#

Yes

#

What projects are you workingon

somber heath
sharp flare
#

are you in chat 0

#

this one

rapid tangle
#

How long should I keep texting

somber heath
#

@sharp flare 👋

sharp flare
#

hi

rapid tangle
#

Damnnnnn

#

Ok guys tbh I came here because I got a critical question

sharp flare
#

coding chess AI for around 7 hrs i am going crazy

#

Some one share screen or something

#

and lets see some proejcts

rapid tangle
#

Well it's kinda off topic, but I wanna watch a movie while sleeping and idk what movie I should watch, could you recommend some plz

rapid tangle
#

When was it released

torn yarrow
scarlet dust
rapid tangle
#

I want something new, If I watched an Old movie I'll genuinely get depressed 😞

torn yarrow
#

It's about ww2 breaking enigma

#

Always a good watch

rapid tangle
#

I want something romantic

scarlet dust
rapid tangle
#

Yeah I get it, but probably I have some mental issues

torn yarrow
#

Ye

#

Lmao 10 yo movie

#

Not of 1945s

#

Recents movies are not coming in my mind

rapid tangle
#

I get it, but I got some issues trust me 😭
I want something released this year or last year, because if I watched an Old movie I'll cry 😢

#

Oh sorry

#

I'm not that active here

sharp flare
#

I use gpt everyday

sharp flare
# rapid tangle Well it's kinda off topic, but I wanna watch a movie while sleeping and idk what...

That’s such a cool idea! If you wanted to “watch” a movie while sleeping, it would mean bypassing your eyes and ears and sending the visuals and sounds directly to your brain. The process would involve understanding how your brain processes movies by mapping the parts responsible for sight and sound using tools like fMRI or EEG. Then, the movie’s video and audio would need to be converted into electrical signals your brain can interpret, which could be delivered through something like a neural headset or electrodes.

The tricky part would be syncing everything perfectly so the visuals and sounds feel natural, and the system might need some fine-tuning to make it work seamlessly. It’s definitely sci-fi territory for now, but for a movie that fits the vibe, I’d recommend Inception or The Matrix. Both are all about dreams and alternate realities—perfect for that “watching while sleeping” idea!

#

@somber heath let the skids use gpt to code and watch them get no where

scarlet dust
sharp flare
#

Its funny when its a 1 line bug that they dont understand how it woorks

rapid tangle
#

Well I use it everyday tbh and It has helped me several TIMES throughout my learning journey, but I totally understand where you come from.

rapid tangle
#

@sharp flare I can't read of thos tele 😅

#

*this

sharp flare
#

@somber heath I trust it to a degree

#

@lethal shell depends where you get the information from the internet

rapid tangle
#

Well for example when I have a quiz on Data structures and algorithms and I want a brief explanation on linked lists for example, I might ask GPT for a revision session

sharp flare
#

They got there information from colledge level information and human trained and reviewed

rapid tangle
#

Guys I wanna talk with y'all, I HATE TYPING

sharp flare
#

I am getting a decent ammount of messages but still, i dont think they

#

read our messages...

rapid tangle
#

We gotta hack them

#

Just jk

sharp flare
#

@somber heath

#

@somber heath

#

@somber heath hello

somber heath
#

I've been reading.

sharp flare
#

ok

somber heath
#

I see you.

sharp flare
#

sorry

rapid tangle
#

Well I get your point, but if you have a strong foundation in coding you it'll help you, but if you are a total beginner, then Chatgpt isn't for you.

sharp flare
#

stack overflow

rapid tangle
#

I don't like stack Overflow, and I hope I don't get banned for that XD

sharp flare
#

its ok we all start somewhere

#

I feel like its all the people that dont like chatgpt are the people that dont use it

rapid tangle
#

Exactly

sharp flare
#

I take code and rewrite it myself

scarlet dust
sharp flare
#

@lethal shell GET OUT

rapid tangle
#

Also it helps you well with debugging, instead of moving my eyes on each line, the error could be identified within seconds by the help of Mr chat

sharp flare
#

alright...

rapid tangle
#

Leet code is the best

scarlet dust
#

codewars

sharp flare
#

And I hate looking at it

rapid tangle
#

I have no idea what's this

#

But I gotta give it a shot

sharp flare
#

@lethal shell Why was i not invited to this school then?

#

jk

somber heath
#

@whole bear 👋

rapid tangle
#

Well I believe that calculus should get cancelled

sharp flare
#

what was some of the math that was on the test

rapid tangle
#

Calculus gotta be illegal

sharp flare
rapid tangle
#

Calc is worse than a breakup

sharp flare
#

diffrential variables...

rapid tangle
#

Why should I learn differentian and integration ffs

steady sail
rapid tangle
#

But tbh, statistics and probability is sorta funny

#

EXACTLY BRO

sharp flare
#

me in math class: μ

rapid tangle
#

That's a devil's stick

sharp flare
#

@lethal shell I can fix your ADHD

sharp flare
#

Me in math: Σ

#

im a Σ

rapid tangle
#

Well ADHD is the most mis ( I forgot the word ) condition in the world

timid marten
#

....?

#

Alrighty then :p

timid marten
#

"I can fix your adhd because I grab all of your attention"-

rapid tangle
#

Summation

rapid tangle
#

LOL

timid marten
#

Basic terms-

rapid tangle
#

that's Haram

torn yarrow
#

Addition?

rapid tangle
#

Yeah

torn yarrow
#

Bruv

sharp flare
#

@lethal shell how old?

timid marten
rapid tangle
#

I'm just an idiot nvm bro

somber heath
sharp flare
#

@lethal shell Age?

torn yarrow
rapid tangle
#

I'm just bullshitting bro

sharp flare
#

good so say it

#

if your 34 just say it

rapid tangle
#

Actually I'm 21 but I identify as 31 and act like 11

#

You sound 18

#

Nah 17

sharp flare
#

you sound 41

#

@lethal shell

rapid tangle
#

*180

timid marten
# torn yarrow Addition?

Best way to explain is with the top of the E symbol is
{Add up to this value}
E {What to sum}
{n = 2}

So if
5
E {N}
n =2
Then you would have 2+3+4+5 = 14.

sharp flare
#

I listen to Flawless when I code, because I code flawlessly, yall should try it

#

Bro is not getting play its hilarious

torn yarrow
#

Distracting

sharp flare
rapid tangle
#

I can't listen to music, I'll get distracted and start dancing like each time

sharp flare
#

i heard you lil bro

rapid tangle
#

Same here it's 5:30 am here

sharp flare
#

me in flow state is when I cant sit down and just type 300 wpm

rapid tangle
#

Wow 300 wpm, that's crazy

torn yarrow
#

Whats the logic behind offline channel naming?
Is it random?

rapid tangle
#

It sounds like I'm the only person who've never been on dating apps

sharp flare
#

@lethal shell is offended

#

LOL

#

ewe why did his voice go low like htat

torn yarrow
#

Nah

#

Cook

#

Don't order

rapid tangle
#

Because he mentioned his banana

#

Lmao

sharp flare
#

dam

sharp flare
#

120?

rapid tangle
#

Wtf bro

#

Damn you scared me

#

Not you , you seem peaceful buddy

#

I happy that your happy to be her child

#

720 ?????

#

What

#

A fucking elephant

#

Tiny elephant 🐘

#

I'm 83 kg

#

At least she's honest

#

I'm a bully ngl

#

Oh are there any meat beat servers ? Asking for a friend btw

#

I wanna talk

#

But they won't let me

#

The matrix is against me

torn yarrow
#

Wtf

#

Dass not a cat

rapid tangle
#

You both sound like your doing stuff

#

Good to know

#

It's 5:38 am I ain't walking nobody up

#

50 isn't that different from 41

#

They're the same generation man

#

Healthy food is better

#

Don't be racist

#

It's not because he's Indian

#

I love indians

#

He is

#

He issssßsssssssss

#

Not a scammer

#

I know him

#

Ja ich spreche Deutsch

steady sail
#

ابن اللبوة ما طلعش أسد، هرب هو وعيلته على روسيا كلاجئ، لكن إخواتنا السوريين رجعوا أرضهم بعد تهجير وقتل دام ١٤ سنة

scarlet dust
#

Eszett

rapid tangle
#

That's an Arabic

#

In

torn yarrow
#

Are y'all in university @lethal shell @steady sail

#

Studying?

rapid tangle
#

What is it about

torn yarrow
#

Bruv

rapid tangle
#

Hahahahahah

#

Stop it bro 😭😭😭😭😭

#

😂😂😂😂😂

#

It's about a new 9/11

#

Lol

#

Well If you need the original translation I don't mind translating

torn yarrow
#

Bet it says "ratio"

#

Ban all the users who say "I sent you something"

#

Bananab?

lethal shell
#

Boooo

#

Baboons

rapid tangle
#

I want vodka

lethal shell
#

Baloons

#

Beluga whale

rapid tangle
#

What are you doing lol

somber heath
#

Tutoring or torturing?

lethal shell
#

Vase

#

Vater

rapid tangle
#

HahahahahahHa

lethal shell
#

Vadka

rapid tangle
#

Torturing

#

I'm dead lol

#

Just cut it off

#

Not really

#

I have my vape

#

But I don't really use it

torn yarrow
#

Yes

rapid tangle
#

I hope you get better

#

Both of you

steady sail
rapid tangle
#

Nice wallpaper

#

Btw

lethal shell
#

Violence is what I believe in

rapid tangle
#

He means that he accidentally sent you 30k to your bank account by mistake

#

Just kidding

#

But why did you buy an expensive microphone ?

#

Same

#

I am an adult worker

#

You sound like a serial

#

Killer

#

Not a pornstar

#

Daddyyyyyy

#

😂😂😂😂😂

#

Mmmmm I gotta make my Arabic proffeconecies get real asap

torn yarrow
#

Bruv

rapid tangle
#

Where is this laugh coming out from

#

That's a rooster laughing over there

#

😂😂😂😂😂

#

Who doesn't like boobs, even babies do

#

😂😂😂😂😂😂😂😂😂

#

Good to know

steady sail
rapid tangle
#

Cut them off and buy new balls, with the boobs together, you'll get a good discount

#

Dude that's gross fr

#

Bdsm is the best

#

Her 50 years old bf would do it with you

#

He gotta revenge her

#

Guys whoever gonna read this chat later would think who the fuck this m7 weirdo is

#

Nah you'll both see who could handle the larger dildo

#

This Finally was too personal

#

Alr gn

#

Mmmm you seem too excited for the strap

#

Invite me as well ( I'll add my friend )

#

Just add my friend

#

Ewwwwww

#

Don't invite

#

Wtf

#

That's disgusting

#

Wtf

#

WTF

#

FBI gotta get you

#

Shut upppppp

#

Go to sleep

#

How long would I remain silent

#

Well lemme teach you something lil bro

#

If there's a hole , there's a goal

#

Damn

#

😂😂😂😂😂😂

#

You like this advice don't you

#

Dude honestly I don't like remaining silent

#

Wdym

#

I can't

#

Open my mic

#

I wonder why

#

I've been here since 2013

#

Wdym man

#

That's a long time ago

#

Exactly

#

Nah in this server

#

But I've been in discord since 2006

#

Yeah but Trump cancelled my account

somber heath
#

Exit the voice chat then rejoin.

rapid tangle
#

Ofc I am lmao

somber heath
#

It takes joining with the role to be able to speak.

rapid tangle
#

Thanks mate

faint raven
#

@somber heath ```py
love = 'code'
print("do you love {love}")

somber heath
#

Love is too strong of a word for it.

faint raven
#

its more important than food, its more important than drinking water! i tell you what :3

last wigeon
wind raptor
#

!voice @whole bear

wise cargoBOT
#
Voice verification

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

wind raptor
#

@robust lichen

robust lichen
#
cdef extern from "./myheader.h":
    int my_function(int a, int b)

def call_c_function(int a, int b):
    return my_function(a, b)
#

myheader.h

int my_function(int a, int b) {
  return a + b;
}
#
unsigned long 
#
use std::ffi::c_long;

let mut x = 10;

x = x as c_ulong;
indigo raven
peak depot
somber heath
#

@serene niche 👋

#

@fading badge 👋

lethal shell
#

Heyyy

#

o/

somber heath
#

@sterile bluff 👋

torn yarrow
somber heath
#

@steep pewter 👋

lethal shell
steep pewter
lethal shell
#

Oke byeeeee o/

somber heath
late spoke
#

back

timid marten
#

Recommendation

somber heath
#

@red wing 👋

red wing
whole bear
#

In 2100 there will no europe on plante earth

sage basalt
#

there is no plant named europe

rugged root
#

@sage basalt What's up?

sage basalt
#

i was saying

#

is it good to use an .env.local?

rugged root
#

I use .env files all the time

#

They're great

sage basalt
#

i was asking is it safe for production?

#

and how do you test youre code?

#

??

green fable
#

hey everyone

rugged root
#

pytest. And whether it's safe for prod, that's depending on how it's being distributed

obsidian dragon
#

when my AI has internet access to verify info

#

@rugged root look at dm when you can

#

@green fable hi

#

jQuerry

green fable
#

have anyone of you used lemon squeezy API ?

rugged root
#

!paste

wise cargoBOT
#
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.

rugged root
#

What is it?

#

@green fable Are you talking to us or are you talking to someone in the background?

sage basalt
obsidian dragon
rugged root
#

Okay this is weird...

#

So we have the PPO and the HSA plans, right?

rugged root
#

All good. If you know that you'll have background noise, please mute or use push to talk

obsidian dragon
#

never do that again, unless you want to

rugged root
#

It happens, though

green fable
rugged root
#

I'll have to look into that API

green fable
#

creating a checkout page is overwhelming

sage basalt
#

have you found a way to test the code base?

rugged root
#

I'm trying to take care of a work thing

obsidian dragon
#

y

rugged root
#

And you aren't specifically saying what you mean by test

rugged root
obsidian dragon
#

ew, adulting

gentle flint
#

this thing is a mess

obsidian dragon
#

it's cute

rugged root
#

@rugged tundra You know about health insurance stuff, right? Or at least the basics. The difference between HSA and PPO, right?

amber raptor
#

Yes

rugged root
#

The PPO plan has a cheaper premium and deductible.

#

I've never seen that

amber raptor
#

And more expensive

rugged root
#

Nope

#

Not in this case

#

Like at all

#

I've always gotten the PPO because it's better if you have regular meds and appointments

amber raptor
#

Or it’s highly restrictive

rugged root
#

That's possible

#

Max out of pocket is higher, but the deductible and premium are both lower

amber raptor
#

There you go

#

You will be paying more if you max out.

rugged root
#

Remind me, max out of pocket is max you have to pay per appointment or procedure? And deductible is max you'd have to pay over the course of your insurance period?

amber raptor
#

Health Insurance is generally cheap and pays nothing

rugged root
#

I get those two mixed up all the friggin' time

rugged tundra
#

HSA, money put into account before taxes for future spendings to cover things like deductible etc. A way to save taxes on expected future spendings.

rugged root
#

First is my old PPO through Anthem, second is PPO through United Health Care, third is HSA through UHC

amber raptor
#

Deductible, the amount you will pay before insurance pays anything

#

Max out of pocket, the amount total you will pay period for that year

rugged root
#

Unless it's copay

#

Gotcha, okay

amber raptor
#

between deductible and max out of pocket, they will pay X% of the bill, generally 80 but not always

rugged root
south loom
rugged tundra
#

For those who have more health services, they should probably get a lower deductible

#

I get the largest deductible because I only want a safety net.

When I am older and have more health services or planning to have a new born, I will get a lower deductible.

rugged root
graceful surge
#

@lethal shell truuuuue

#

@lethal shell people chose to be stupid or smart

lethal shell
graceful surge
#

i guess we can see that in some people doing the same thing in thier job for very long years

lethal shell
#

I think its just,

#

a good saying for both the slander, and choosing your battles for stress 😄

graceful surge
#

@lethal shell i can't speak

#

i need to send 50 messages

#

🤣

#

yeah

#

omg

#

yeaaaaah

#

please

#

im still stuck

#

in the beggining

#

I start learning then i get sick or whatever

#

then i get back to point 0

#

@lethal shell

#

what are you looking for

#

maybe i can help

#

4 messages left

#

finaly

#

by sending !user in bot commands

#

50

lethal shell
bleak smelt
#

hey

#

I can't speak also

graceful surge
#

@bleak smelt you need to send 50 messages

bleak smelt
#

i don't have 3 days also

#

idk if that matters

cedar mason
bleak smelt
#

I'm back

graceful surge
bleak smelt
#

I got tired of the gym

graceful surge
bleak smelt
#

I went like 4 times a week for a year and didn't improve

graceful surge
bleak smelt
#

@rugged root there's a way to allow my mic? I'll have to wait 3 days to talk on the server

rugged root
#

I try not to make exceptions to the voice gate

#

Otherwise what'd be the point of it

bleak smelt
bleak smelt
rugged root
#

We had an issue with what I call hit and run trolls. People who join the server, join voice chat, scream at the top of their lungs and then leave. This was happening a dozen or more times a day

#

So I know it sucks, but it's for a good reason

bleak smelt