#voice-chat-text-0

1 messages · Page 323 of 1

wise cargoBOT
#

Source code: Lib/logging/__init__.py...

stuck furnace
#

Can you ask the question again @deep forge ?

#

I didn’t catch that

vocal basin
#

there's part where you setup a logger and part where you set up the handler, iirc

stuck furnace
#

Typically import logging then get the logger named as the module

vocal basin
#
logger = logging.getLogger(__name__)
deep forge
#
import logging, logging.handlers
import os   # TODO: Change to pathlib

def setup_logging(log_directory: str) -> None:
    """Set up the logging for the application. Will also print to the CLI.

    ...

    Parameters
    ----------
    log_directory : str
        The system path in which the log should be printed.
    """    
    log_file = os.path.join(log_directory, "whitelist.log")

    if not os.path.exists(log_directory):
        os.makedirs(log_directory)

    file_handler = logging.FileHandler(log_file, mode="a")
    file_formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(message)s")
    file_handler.setFormatter(file_formatter)

    console_handler = logging.StreamHandler()
    console_formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(message)s")
    console_handler.setFormatter(console_formatter)

    logging.basicConfig(level=logging.INFO, handlers=[file_handler, console_handler])
stuck furnace
vocal basin
#

logger is defined at module scope right after imports, normally

stuck furnace
#

You got it

#

That will give you a logger

#

The loggers form a hierarchy based on their dotted names

#

The root logger is just and empty string

vocal basin
#

inside config.py you can logger.error instead of logging.error

#

__name__ is just module name

stuck furnace
#

Usually, you just set up handlers on the root logger

#

Man I haven’t actually programmed in like 2 months, just realised

vocal basin
#

with optional Timber support

#

lmao

#

for Ruby too

#

and Go

#

!pypi lumberjack-logging

wise cargoBOT
vocal basin
#

@rugged root ^

stuck furnace
#

Thingymagiggywhatchamacall

#

Wat

#

👀

stuck furnace
#

You know near prisons they have signs telling you not to pick up hitchhikers lol

#

My phone is about to die sorry cya

vocal basin
#

"yes, played. lost. thrice"

#

YT back at recommending almost-no-views

stuck furnace
#

Yeah

vocal basin
#

oh hell I opened it it's gold

stuck furnace
vocal basin
#

that video uses Turbo C++ as an IDE

stuck furnace
#

Not server-appropriate sorry

#

@whole bear

#

@silk prism

deep forge
#
from components.check_player import (is_player_in_json, is_player_in_database)
stuck furnace
#

Gtg phone is dying 👋

whole bear
chilly helm
#

Hello peoples!

silk prism
#

hi

spare galleon
#

hewo peeps

balmy phoenix
#

hey

silk prism
#

hai hai

balmy phoenix
#

what yll in vc for

silk prism
#

im just doing stable diffusion inpainting stuff

balmy phoenix
#

i see you created an anime AI

silk prism
#

replacing my use of adetailer because of two things, agpl license, and my pull request to the project have been ignored for months

#

yeah, i have a video pipeline too, but it's not done yet, i need to remove so much of the agpl license stuff

balmy phoenix
#

you seem passionned about it :p

silk prism
#

i dislike the AGPL. they claim it's open source and nothing about it is opensource.

#

Oh the generation stuff, yeah

balmy phoenix
#

how old are you

spare galleon
#

im not saying my age smh

silk prism
#

old enough

#

i suppose

spare galleon
silk prism
#

i can get into the bars

balmy phoenix
#

lmfao

silk prism
#

:)

balmy phoenix
#

im just curious man

spare galleon
#

wanna help me fight the ppl in general chat

balmy phoenix
spare galleon
#

fighting is gud

silk prism
#

not really, i fight colds and viruses when i'm sick

spare galleon
#

builds charactor

willow light
#

fighting is neutral

balmy phoenix
#

neuh

willow light
#

and I am nowhere near stoned nor drunk enough to go anywhere near general chat until midnight utc. then it's showtime.

spare galleon
#

i am in the stone

willow light
#

only a few minutes left until the server icon changes and a whole bunch of bigots lose their minds.

spare galleon
balmy phoenix
spare galleon
balmy phoenix
spare galleon
balmy phoenix
#

greater

willow light
spare galleon
#

bruh, i am the greatest

spare galleon
#

i am the goat

balmy phoenix
#

im sure you believe that

spare galleon
#

unlike your code

balmy phoenix
#

lmfao

#

lets fight

spare galleon
#

join vc and we can fight

balmy phoenix
#

are you strong

spare galleon
#

i am god strong

#

i am fully trained by the military and im a buff baby

spare galleon
balmy phoenix
spare galleon
balmy phoenix
#

never

#

i must stay shy

spare galleon
#

i must break shy

balmy phoenix
spare galleon
#
console.log("Script is running");

let config = {
    type: Phaser.AUTO,
    width: 1280,
    height: 720,
    parent: 'game-container',
    backgroundColor: 'black',
    scene: {
        preload: preload,
        create: create
    }
};

let game = new Phaser.Game(config);

function preload(){
    this.load.image('player', 'smileyface.png');
    console.log('Preloading image');
}

function create() {
    this.player = this.add.sprite(100,100, 'player');
    console.log('Creating sprite');
    const square = new Phaser.GameObjects.Rectangle(this, 300, 400, 50, 50, 0xff0000)
    this.add.existing(square)

}

function update(time, delta){
    this.square.y -= 10 * (delta / 1000)
}```

plz explain why broke
spare galleon
balmy phoenix
#

are you a girl

spare galleon
balmy phoenix
#

you sure

spare galleon
#

yes im sure ima guy

silk prism
#

it's 2024, are you really sure?

balmy phoenix
#

exactly

balmy phoenix
spare galleon
#

okay you just gotta believe me

balmy phoenix
#

what do you code @spare galleon

#

your skills

spare galleon
spare galleon
balmy phoenix
spare galleon
balmy phoenix
#

whats supposed to happen you bum xoxo

spare galleon
#
> [2024-05-31T23:43:55.759Z]  "GET /" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0"
(node:27160) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
(Use `node --trace-deprecation ...` to show where the warning was created)
[2024-05-31T23:43:55.794Z]  "GET /style.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0"
[2024-05-31T23:43:55.797Z]  "GET /script.js" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0"
[2024-05-31T23:43:55.797Z]  "GET /node_modules/phaser/dist/phaser.js" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0"
[2024-05-31T23:43:55.973Z]  "GET /favicon.ico" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0"
[2024-05-31T23:43:55.975Z]  "GET /favicon.ico" Error (404): "Not found"
[2024-05-31T23:43:56.327Z]  "GET /smileyface.png" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0"
```server logs
spare galleon
balmy phoenix
#

hmm

#

have you tried restarting your computer !

spare galleon
#
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>TITLE HERE</title>
    <link rel="stylesheet" href="style.css">
    <script src="node_modules/phaser/dist/phaser.js"></script>
</head>

<body>
    <div id="game-container"></div>
    <script src="script.js"></script>
</body>
balmy phoenix
#

tbh

#

would love to help

#

but im too horny rn

spare galleon
balmy phoenix
#

im busy ifyk

spare galleon
#

why isnt this file rendering

spare galleon
balmy phoenix
#

22

spare galleon
balmy phoenix
#

you male

spare galleon
#

yes lol

balmy phoenix
#

im not that down bad to become g*y

spare galleon
#

name = nobdfasd()

balmy phoenix
#

i just finished

#

felt so good

#

now im depressed

silk prism
#

Restrict all code to very simple control flow constructs—do not use goto statements, setjmp or longjmp constructs, or direct or indirect recursion.
Give all loops a fixed upper bound.
Do not use dynamic memory allocation after initialization.
No function should be longer than what can be printed on a single sheet of paper in a standard format with one line per statement and one line per declaration.
The code's assertion density should average to minimally two assertions per function.
Declare all data objects at the smallest possible level of scope.
Each calling function must check the return value of nonvoid functions, and each called function must check the validity of all parameters provided by the caller.
The use of the preprocessor must be limited to the inclusion of header files and simple macro definitions.
Limit pointer use to a single dereference, and do not use function pointers.
Compile with all possible warnings active; all warnings should then be addressed before the release of the software.

vocal basin
#

nasa?

amber raptor
#

Thanks ChatGPT

vocal basin
#

but oddly reworded

#

(idk which one is a rewording)

#

((wikipedia one is reworded, not the message))

#

@molten bronze help with what

#

@spare galleon did you send an invite or what?

#

invites are on whitelist basis

#

as for other domains -- idk

#

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

spare galleon
vocal basin
#

ah, yes

#

it is banned

#

and similar to it

silk prism
#

don'tasktoask is banned? i don't even know what that site is

spare galleon
#
console.log("Script is running");

let config = {
    type: Phaser.AUTO,
    width: 1280,
    height: 720,
    parent: 'game-container',
    backgroundColor: '#ffffff',
    scene: {
        preload: preload,
        create: create,
        
    }
};

let game = new Phaser.Game(config);

function preload(){
    this.load.image('player', 'smileyface.png');
    console.log('Preloading image');
}

function create() {
    this.player = this.add.sprite(100,100, 'player');
    console.log('Creating sprite');
    const square = new Phaser.GameObjects.Rectangle(this, 300, 400, 50, 50, 0xff0000)
    this.add.existing(square)

}

function update(time, delta){
    this.square.y -= 10 * (delta / 1000)
}

it still doesnt work and now my square dont render also

spare galleon
vocal basin
spare galleon
vocal basin
#

jokes on you there's a language selector

spare galleon
vocal basin
#

there wasn't one on the previous version of the paste website

#

it used to guess

spare galleon
vocal basin
#

infer from syntax

#

which mostly worked

silk prism
#

@spare galleon jump to voice chat 1

spare galleon
#

i got confused

molten bronze
spare galleon
#

@balmy phoenix help

balmy phoenix
spare galleon
balmy phoenix
#

try gpt4 bro

#

gpt

spare galleon
balmy phoenix
#

ugh

#

ill look later

spare galleon
balmy phoenix
#

pay me

willow light
molten bronze
#

how i can show the error

willow light
#

!rule 15

spare galleon
#

how much

wise cargoBOT
#

:x: Invalid rule indices: 15

willow light
#

!rule 10

wise cargoBOT
#

10. Do not copy and paste answers from ChatGPT or similar AI tools.

spare galleon
vocal basin
balmy phoenix
molten bronze
#

how can i ask python help

spare galleon
willow light
#

So far they seem to be asleep.

spare galleon
#

plz

willow light
#

no

spare galleon
willow light
#

dont wanna

spare galleon
#

@balmy phoenix helppp\

willow light
#

too tired

balmy phoenix
#

help him

spare galleon
spare galleon
balmy phoenix
#

haha

#

why man

spare galleon
willow light
balmy phoenix
#

but im not good with js

spare galleon
spare galleon
willow light
#

No i'm trying to beat my planes only pb

spare galleon
willow light
#

maybe if i get past round 350

spare galleon
silk prism
#
console.log("Script is running");

let config = {
  type: Phaser.AUTO,
  width: 1280,
  height: 720,
  parent: 'game-container',
  backgroundColor: '#4488AA',
  scene: {
    preload: preload,
    create: create
  }
};

let game = new Phaser.Game(config);

function preload(){
  this.load.image('player', 'smileyface.png');
  console.log('Preloading image');
}

function create() {
  this.player = this.add.sprite(100,100, 'player');
  console.log('Creating sprite');
  const square = new Phaser.GameObjects.Rectangle(this, 300, 400, 50, 50, 0xff0000)
  this.add.existing(square)

}

function update(time, delta){
  this.square.y -= 10 * (delta / 1000)
}
#
Serving HTTP on :: port 8000 (http://[::]:8000/) ...
::1 - - [31/May/2024 19:13:01] "GET / HTTP/1.1" 200 -
::1 - - [31/May/2024 19:13:01] code 404, message File not found
::1 - - [31/May/2024 19:13:01] "GET /style.css HTTP/1.1" 404 -
::1 - - [31/May/2024 19:13:01] code 404, message File not found
::1 - - [31/May/2024 19:13:01] "GET /node_modules/phaser/dist/phaser.js HTTP/1.1
" 404 -
::1 - - [31/May/2024 19:13:01] "GET /script.js HTTP/1.1" 200 -
::1 - - [31/May/2024 19:13:01] code 404, message File not found
::1 - - [31/May/2024 19:13:01] "GET /favicon.ico HTTP/1.1" 404 -
::1 - - [31/May/2024 19:13:06] code 404, message File not found
::1 - - [31/May/2024 19:13:06] "GET /style.css HTTP/1.1" 404 -
::1 - - [31/May/2024 19:15:07] "GET / HTTP/1.1" 200 -
::1 - - [31/May/2024 19:15:07] code 404, message File not found
::1 - - [31/May/2024 19:15:07] "GET /style.css HTTP/1.1" 404 -
::1 - - [31/May/2024 19:15:07] "GET /script.js HTTP/1.1" 304 -
::1 - - [31/May/2024 19:15:07] "GET /smileyface.png HTTP/1.1" 200 -
::1 - - [31/May/2024 19:15:25] "GET / HTTP/1.1" 304 -
::1 - - [31/May/2024 19:15:25] code 404, message File not found
::1 - - [31/May/2024 19:15:25] "GET /style.css HTTP/1.1" 404 -
::1 - - [31/May/2024 19:15:26] "GET / HTTP/1.1" 304 -
::1 - - [31/May/2024 19:15:26] code 404, message File not found
::1 - - [31/May/2024 19:15:26] "GET /style.css HTTP/1.1" 404 -
::1 - - [31/May/2024 19:15:26] "GET / HTTP/1.1" 304 -
::1 - - [31/May/2024 19:15:26] code 404, message File not found
::1 - - [31/May/2024 19:15:26] "GET /style.css HTTP/1.1" 404 -
::1 - - [31/May/2024 19:15:26] "GET / HTTP/1.1" 304 -
::1 - - [31/May/2024 19:15:26] code 404, message File not found
::1 - - [31/May/2024 19:15:26] "GET /style.css HTTP/1.1" 404 -
::1 - - [31/May/2024 19:15:27] "GET / HTTP/1.1" 304 -
::1 - - [31/May/2024 19:15:27] code 404, message File not found
::1 - - [31/May/2024 19:15:27] "GET /style.css HTTP/1.1" 404 -
::1 - - [31/May/2024 19:15:29] "GET / HTTP/1.1" 200 -
::1 - - [31/May/2024 19:15:29] code 404, message File not found
::1 - - [31/May/2024 19:15:29] "GET /style.css HTTP/1.1" 404 -
::1 - - [31/May/2024 19:15:29] "GET /script.js HTTP/1.1" 200 -
::1 - - [31/May/2024 19:15:29] "GET /smileyface.png HTTP/1.1" 200 -
::1 - - [31/May/2024 19:15:29] code 404, message File not found
::1 - - [31/May/2024 19:15:29] "GET /favicon.ico HTTP/1.1" 404 -
::1 - - [31/May/2024 19:15:43] "GET / HTTP/1.1" 304 -
::1 - - [31/May/2024 19:15:43] "GET /style.css HTTP/1.1" 200 -
::1 - - [31/May/2024 19:15:43] "GET /script.js HTTP/1.1" 304 -
::1 - - [31/May/2024 19:16:28] "GET / HTTP/1.1" 304 -
::1 - - [31/May/2024 19:16:28] "GET /style.css HTTP/1.1" 304 -
::1 - - [31/May/2024 19:16:28] "GET /script.js HTTP/1.1" 200 -
::1 - - [31/May/2024 19:16:29] "GET /smileyface.png HTTP/1.1" 304 -
#
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>TITLE HERE</title>
    <link rel="stylesheet" href="style.css">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/phaser/3.80.1/phaser.min.js"></script>
  </head>

  <body>
    <div id="game-container"></div>
    <script src="script.js"></script>
  </body>
</html>
#

python -m http.server 5000

spare galleon
#

it worked

#

yay

silk prism
#

um not sure why, but that period is supposed to be part of the link

somber heath
#

@lusty ermine 👋

tulip gyro
chrome flax
#

Hii @somber heath

#

I have completed my code, How can host it with using python flask

#

Ok @somber heath

silk prism
whole bear
#

hello

#

hello

chrome flax
#

Hello @whole bear

whole bear
#

hi

#

u know how to code?

whole bear
#

i cant turn on mic

#

how do you have then/

#

whats this Active for at least three different ten-minute blocks

dire pebble
whole bear
#

i need to complete this one

#

Active for at least three different ten-minute blocks

#

yes

#

yes

#

i know little bit

#

print('Hello World')

#

or def my_function

#

you from india?

#

Ohh u from turkey??

#

cna you teach me

#

u r muslim?

#

me too

#

im pakistan

#

ok

#

but like where do i start

#

k

#

yes

upbeat bobcat
#

@dire pebble Can you send me also?

whole bear
#

yea i use it

upbeat bobcat
#

@upper basin Is this good for learning linear algebra?

upper basin
#

I'm checking it out now.

upbeat bobcat
upper basin
upbeat bobcat
upper basin
#

Yeah why not.

#

It's a free course, why wouldn't you start it.

upbeat bobcat
#

Ok thanks

whole bear
#

so boring

upbeat bobcat
dire pebble
#

super().__init__()

vocal basin
#

!e

class Base:
    def method(self):
        print(1)

class Derived(Base):
    def method(self):
        print(2)

    def method_base(self):
        super().method()

    def method_self(self):
        self.method()

Base().method()
Derived().method()
Derived().method_base()
Derived().method_self()
wise cargoBOT
somber heath
#

@lost mauve 👋

lost mauve
#

i dont have perm to talk

vocal basin
#

!voice

wise cargoBOT
#
Voice verification

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

vocal basin
#

super() is somewhat special because it infers things from context

#

!e

class Base:
    @classmethod
    def method(cls):
        print(1)

class Derived(Base):
    @classmethod
    def method(cls):
        print(2)

    @classmethod
    def method_base(cls):
        super().method()

    @classmethod
    def method_cls(cls):
        cls.method()

Base.method()
Derived.method()
Derived.method_base()
Derived.method_cls()
wise cargoBOT
dire pebble
vocal basin
#

!e

class Base:
    def __init__(self):
        self.__state = "something"
    def method(self):
        print(self.__state)

class Derived(Base):
    def __init__(self):
        self.__state = "something else"

Derived().method()
wise cargoBOT
vocal basin
#

!d itertools

wise cargoBOT
#

This module implements a number of iterator building blocks inspired by constructs from APL, Haskell, and SML. Each has been recast in a form suitable for Python.

The module standardizes a core set of fast, memory efficient tools that are useful by themselves or in combination. Together, they form an “iterator algebra” making it possible to construct specialized tools succinctly and efficiently in pure Python.

For instance, SML provides a tabulation tool: tabulate(f) which produces a sequence f(0), f(1), .... The same effect can be achieved in Python by combining map() and count() to form map(f, count()).

vocal basin
#

many things there are classes

#

even though they might feel like functions

#

map too

#

!e

print(map, filter)
wise cargoBOT
vocal basin
#

!e

print(print)
wise cargoBOT
vocal basin
#

!e

def f():
    pass

def g():
    return

def h():
    return None

print(f(), g(), h())
wise cargoBOT
somber heath
#

!e py result = print('Hello, world.') print(result)

wise cargoBOT
somber heath
#

!e py result = print('Hello, world.')

wise cargoBOT
vocal basin
#

enhancement?

somber heath
#

@buoyant bramble 👋

buoyant bramble
whole bear
#

hello

#

hello

#

he

wise cargoBOT
#

failmail :ok_hand: applied timeout to @whole bear until <t:1717235507:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

dark scroll
#

1 Hello

#

2

upbeat bobcat
#

hello

stark oxide
#

discord.js? is for discord bots

upper basin
#

Kieran, you just need to know what stuff you want to test with Actions, and then use YAML to write them.

#

I was in the same boat.

thorny canopy
#

!projects

wise cargoBOT
#
Kindling Projects

The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.

dark swan
#

@wind raptor join rq

#

❤️

green bone
#

I have no idea what's going on, I just decided to join the vc

#

anyway

primal shadow
#

The timing was impeccable

dark swan
#

join backj

#

For a sec

stark oxide
#

why? we don't want money

dark swan
#

@green bone vc 0

deep forge
#

@dark swan There is a moderator VC1.

primal shadow
muted hinge
#

french?

#

bonjour

#

ahahaha

#

I'm Canadian :p

#

I only got up like 1hr ago, but good myself!

willow light
#

NH is already descending into chaos, although I don't know whether that's because of the court decision this week or pride month

stark river
willow light
#

awww it's a "best of" episode, no new stuff this week

#

So I guess time for the workout

somber heath
#

@vale plank 👋

stark river
#

usa vs canada is tomorrow? i thought the matches started today...

muted hinge
#

concessions 🥴

#

oh lol

#

I can't spell.

stark river
#

never mind.. it translates to today evening in dallas time

#

how tf did usa beat bangladesh?

muted hinge
#

I've seen a fair amount of cricket in my part of Canada, but I'm not really a sports person anyway.

primal shadow
peak depot
muted hinge
#

Alright. I'm going to head out, enjoy yourselves folks :)

primal shadow
#

How did Vietnam get so high on the list? IDK

peak depot
#

Norway jumped to second place with this find

primal shadow
#

well, once they start producing

peak depot
#

pic from the city close to the finding:

whole bear
peak depot
#

"Nokia, the world's second-largest telecom equipment maker after Huawei Technologies, is stepping up efforts to reduce its supply chain exposure to China amid mounting geopolitical risks, going so far as to slash orders even from non-Chinese companies listed in the country."

#

"Over recent months, the Finland-headquartered company has reduced orders with longtime supplier Foxconn Industrial Internet, a Foxconn subsidiary that is not itself Chinese but is listed on the Shanghai Stock Exchange, in response to Washington's campaign for a "clean network" that is free from Chinese suppliers and capital, four people with direct knowledge of the matter told Nikkei Asia.

Nokia's move to reduce reliance on FII -- which has production capacity outside of China -- suggests an escalation in supply chain restructuring in the overall tech industry, the people said."

amber raptor
#

Caddy/Nginx/HAProxy (That's free) Paid is insane

lost tapir
#

@grim solar TCP

deep forge
vocal basin
#

minecraft load balancing? aren't literally authors of Paper making that too?

upbeat bobcat
#

Good bye see you after a month

amber raptor
vocal basin
#

yeah, was about to say about cutting the world

#

> identical worlds
are we making RAID1 minecraft lol

#

you can also just use a protocol that is built for load-balancing

#

like TIPC

#

(don't get back to me when TIPC doesn't work, it's now your problem, I don't care)

#

how many machines are we load balancing over?

amber raptor
#

load average: 0.00, 0.00, 0.00

vocal basin
#

4

#

overleaf being cringe mostly

#

I know what process groups specifically is the main culprit

#

at all times at least one core is active

#

half a vCPU on some instances

formal bramble
#

Codingame anyone?

vocal basin
#

@amber raptor "this way idealistic devops is the route to self-hate: you write shit and then you also have to deal with it"

vocal basin
formal bramble
#

yeah

vocal basin
#

okay ig it's the same username lmao

#

oh wait how did I forget that lmao

#

(I should know this from math education)

amber raptor
#

The Open Systems Interconnection (OSI) model is a reference model from the International Organization for Standardization (ISO) that "provides a common basis for the coordination of standards development for the purpose of systems interconnection." In the OSI reference model, the communications between systems are split into seven different abst...

vocal basin
#

enough codingaming for me for today

#

(I need to get back to open-sourcing a project I've been working on)

formal bramble
#

that was cool

formal bramble
#

anyone else?

upper basin
vocal basin
stark river
#

I cant im touching grass

#

Literally

stark oxide
#

no grass for me

#

how is evryone's day?

chilly helm
#

Hello from the othersideeeeeee!

#

of discord

willow light
#

Random chipmunk comes charging out of the woods, headbutts my shoe, refuses to elaborate, and leaves.

grim solar
hallow warren
#

Gippity 4-o:

A more general definition of hacking that fits both uses could be:

"Hacking is the process of creatively solving technical problems or exploiting systems, often by understanding and manipulating the underlying mechanisms. This can involve unauthorized access and activities (often termed as 'black hat' hacking) or ethical, constructive efforts to innovate, improve, or secure systems (often seen in 'white hat' hacking and hackathons)."

This definition captures the essence of hacking as a practice that can be applied in both positive and negative contexts, emphasizing the technical ingenuity involved in the process.

opal rock
#

hey guys i have a small doubt can you please help me on it.., it is regarding flet: #1246541669730488442

willow light
#

@Mods someone in here gotta question for ya

#

<@&831776746206265384>

vocal basin
#

I don't

#

(helper role only gives video perms not video granting perms)

#

@willow light git+go: got? giot? goit?

willow light
vocal basin
#

new Git is nice (as in many small random enhancement it accumulated over 7 years since the last time I updated it)

#

damn those C# hackers

#

uninstalling JVMs from computers

#

@willow light over Perl

#

you don't even need to try

#

@deep forge original wiki implementation, iirc

#

mediawiki migrated it to PHP

#

mediawiki announcement, 2043: we're migrating to this brand new framework, Ruby on Rails

#

logic based, we don't know those

#

object oriented?
so we have
java
java 8
java 7

#

C#, the other C#, the other other C#

willow light
#

You mean Microsoft Java

vocal basin
#

and if they find your JVM

willow light
vocal basin
#

AWK is popular

#

or, rather, old

#

it's ed/sed type of popular

#

I'm okay with fixing existing PHP software
but creating more of that -- rather not

chilly helm
#

@willow light His chipmunk friends dared him to do that. In return for a weeks worth of the saltiest nuts

vocal basin
#

TeX

#

SGML yeah

#

nonono

#

that's earlier

#

iirc

stark river
#

html 🫶

vocal basin
#

SGML is superset of HTML/XML in a sense

#

some allege there could be a possibility for TeX being chosen over HTML as the language of the Web

stark river
#

microsoft ❤️ XML

vocal basin
#

because java likes xml, and so does c#

stark river
#

how will you pass attrs to tex?

vocal basin
#

that's not how choosing one language over the other works

#

as in the choice was in the earliest stages of webdev

#

when attrs (or HTML at all) weren't that more of a thing yet

#

@willow light Erlang docs are in XML (and Joe Armstrong said he liked that they are this way)

#

I've heard the name

#

@deep forge which D?

#

there is more than one

#

there's also DTrace D

#

both are called D

#

and have .d as an extension, afaik

willow light
#

sazk props for using catppuccin

vocal basin
#

!d numpy.f2py

wise cargoBOT
#

Copyright 1999 – 2011 Pearu Peterson all rights reserved. Copyright 2011 – present NumPy Developers. Permission to use, modify, and distribute this software is given under the terms of the NumPy License.

NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.

vocal basin
#

USE AT YOUR OWN RISK

#

very good optimising compiler, gets hardware support before every other language

#

(fortran)

willow light
#

I learned Fortran on cards.

vocal basin
#

fortran is, like, the oldest optimising compiler

#

and from very early it was outperforming manually written machine code/whatever they had back then

#

so that people saying it couldn't outperform humans in fast code would shut up

#

@willow light yes

#

VBA

#

wasn't microsoft recently killing one of VBs?

#

A Programming Language

#

and a keyboard

#

BASIC is taught at unlucky schools where I live

#

less unlucky schools use Pascal

willow light
#

I was taught using BASIC, for a total of one hour.

vocal basin
#

wait I missed what was the language

#

lisp?

#

JavaScript is Lisp

#

Turbo Pascal was the first IDE I used

vocal basin
#

pandoc is written in Haskell

#

C+Haskell describes most of Rust

#

C + Haskell - simplicity

#

V in VLang stands for vaporware

#

I'm disconnected from socium enough not to hear/see most of that hype

#

do it generically, that's the way

#

there is poll and async-await, yeah

#

those both are needed

#

combine them, don't choose

#

tokio has migrated to async-await

#

now the problem is different

#

tokio and futures and async-std and smol have different interfaces for async

#

last three are mostly compatible

#

and making them work with tokio is just a single .compat() call

vocal basin
#

some questionable stuff in there

#

they overpromised

willow light
vocal basin
#

it's funny, compared to V, how Zig creator explicitly calls out which things Zig doesn't yet have implemented as "vaporware"

vocal basin
willow light
vocal basin
#

the language that removed "rockstar dev" from resume expectations

willow light
willow light
vocal basin
#

if they picked JavaScript there, Oracle wouldn't get the joke

willow light
#

There are jokes that Oracle gets?

vocal basin
#

compile time DoS

#

I only now realised that sqlite sounds a bit like ethnonym/whatever because of -ite
(I forgot which other groups of words have that)

#

yeah that too

#

either dug up or it burned on its own under the ground

#

dig, dig, dig, faster, faster!
no, don't dig that one, it's already burning

vocal basin
#

I know someone who uses that (the first mentioned food) to track price changes

#

order borsch (1 litre)

#

(here it is $5 for 1kg of borsch in a relatively expensive place)

#

HTML+CSS+JS -- that somewhat forces to learn more than one thing at a time

vocal basin
stark river
#

there was also an odin lang

vocal basin
#

Odin seems to work well for whatever company the creator is partnered with/working for

#

integrate over network instead of function calls

#

gRPC/ZeroMQ/others
(but not everything at the same time)

#

"we use clustered message passing"
the only RabbitMQ node the company runs, waiting for even a single message to arrive:

#

ig Python-C-Go

#

well, not guess, it is doing that

willow light
#

I'd do the one that is Python-C-JVM-Go. Because apparently for some reason I already have it installed.

#

Preinstalled on the dev vm that I spun up internally

#

Mind you the JVM itself wasn't preinstalled

vocal basin
#

Python-C-Rust-C++-C-Go
Python-C because that's the only way CPython can do
Python-C-Rust because pyo3 is great
Rust-C++ because cxx is great
C++-C because C++ core guidelines say to wrap C in C++ if you're actually doing anything relatively modern
C-Go because that's the only way Go can do

willow light
#

Go-C-C++-Fortran-NumPy.f2py()

vocal basin
#

that just sounds normal

chilly helm
#

My brain......

deep forge
chilly helm
tall kindle
#

i should save that image

vocal basin
#

in JS it does var by default in non-strict mode, iirc

#

function scope

#

@tawdry belfry starting with assembly is a sure way to either give up instantly or misunderstand everything for a long time

#

C is close enough to hardware while being actually useful, so that language is good enough to start with

#

(for those, to whom learning from lower layers of abstraction is easier)

#

((lower as in what everything above builds on top of))

vocal basin
#

@verbal zenith the "this should've been a blog entry instead" answers are useful indeed

#

as in

#

the answer is giant

somber heath
#

!kindling @tawdry belfry

wise cargoBOT
#
Kindling Projects

The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.

somber heath
#

!code

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

tawdry belfry
somber heath
#

!pep 8

wise cargoBOT
somber heath
#

Name conventions.

whole bear
#

@somber heath

#

remember me?

#

yes

#

i changed my mind

#

lol

#

i talked to hem

#

and asked him too unmute me

#

he said no

#

and he also said he didnt remember me

#

ye

#

yo

#

i gtg

#

i bsac

somber heath
#

@floral pasture 👋

#

@clear onyx 👋

whole bear
#

fdisk -l

mount -t ntfs /dev/(windows drive) /mnt

cd /mnt/Windows/System32

cp cmd.exe Utilman.exe

reboot

somber heath
#

@fresh oracle 👋

whole bear
#

y?

somber heath
#

@quiet dock 👋

#

@novel shell 👋

novel shell
#

Yooo

junior heron
#

hi

#

anyone here?

gray kraken
#

hi

dire pebble
#

What are the difference? I've seen some difference but don't get what exactly

#

The attributes whose start with property is not included in parameters of the object when creating

#

But what is this exactly? How does it function? Why?

#

Those are still attributes and reachable by add methods

#

embed = discord.Embed

somber heath
#

!e ```py
class MyClass:
def init(self, value):
self.value = value
self.abc = 'abc'

instance = MyClass(123)
print(instance.value)
print(instance.abc)```

wise cargoBOT
somber heath
#

@sharp meadow 👋

sharp meadow
#

I'm not allowed to talk tf

somber heath
sharp meadow
#

Verify failed

#

I have been in voice here before weird

#

You have sent less than 50 messages.
You have been active for fewer than 3 ten-minute blocks

dire pebble
#

As I get it

sharp meadow
#

And yea all my past messages are gone aswell

#

But i did once leave the server and rejoined

dire pebble
#

That's gg man

somber heath
#

!e ```py
class MyClass:
def init(self):
self._value = -1

@property
def value(self):
    self._value += 1
    return self._value

instance = MyClass()

print(instance.value)
print(instance.value)
print(instance.value)```

wise cargoBOT
dire pebble
#

But not a big deal

sharp meadow
#

I just Hate it when servers have requirements to join VC, but I know it's needed as of spammers nowdays (I ran a server with 2500+ members in the past) so we had to do the same

#

And like be there for 10+ minuts to even send a message

somber heath
#

Green beans are young, unripe fruits of various cultivars of the common bean (Phaseolus vulgaris), although immature or young pods of the runner bean (Phaseolus coccineus), yardlong bean (Vigna unguiculata subsp. sesquipedalis), and hyacinth bean (Lablab purpureus) are used in a similar way. Green beans are known by many common names, including ...

#

@worldly shoal 👋

#

@fossil void 👋

willow light
#
{
    "jakobkhansen/journal.nvim",
    config = function()
        require("journal").setup()
    end,
},

guess I'll work on this while waiting for Mr Sandman to arrive

#

probably going to see if I can setup autogit commits and pushes and pulls so I can get some sort of sync going

somber heath
#

@jagged ferry 👋

upper basin
#

!e

num_sites = 16
block_size = 4
blocks = []

for site in range(0, num_sites, block_size):
    blocks.append(list(range(site, site + block_size)))

print(blocks)
wise cargoBOT
stark oxide
#

how can I get the git command in the terminal?

primal shadow
#

What OS?

stark oxide
#

windows

primal shadow
#

I just install git bash

#

Pretty sure that one's git bash

stark oxide
#

I have a it, thank you

primal shadow
#

so just

#

and you have git in bash

#

and no more dealing with cmd/poweshell

#

ls and whatnot works now

#

I hate how often I hit ls in cmd

#

I know I can alias but I'm not a fan of cmd anyways

stark oxide
#

which editor should I choose?

primal shadow
#

Your call, VSCode is pretty solid

stark river
#

vim

primal shadow
#

works for just about any language

#

vim if you want to spend more time learning your editor than the language

stark river
#

emacs

primal shadow
#

vim is fun, but not good for a beginner

#

lol

#

asking for advice, not troll

stark oxide
#

I'm a beginner and know how vs code work, like the basic stuf

primal shadow
#

ms word!

#

if we're looking for terrible options

#

but vscode is a solid place to begin

stark river
#

spacemacs

primal shadow
#

spacevim

#

ooh

#

I can say terrible things for a beginner too

#

what do I win?

stark river
primal shadow
#

I can link terrible editors for beginners as well

#

do I get a prize?

stark oxide
#

no

#

only problems

primal shadow
#

so why are we spamming crap for newbies?

#

isntead of giving good advice?

stark oxide
#

idk

primal shadow
#

like i said, vscode is a nice solution, notepad++ or sublime if you really want it out of your way

#

vscode is extremely user friendly

stark river
#

hold on i have a very nice config for spacemacs

primal shadow
#

offers a ton of customization

#

I don't care, we're not talking about it

#

can we stay on topic of a good editor for a beginner?

#

luigi wants real help, not jokes

#

picking an editor can be frustrating, making a joke of it doesn't help

somber heath
#

@clear tiger 👋

stark river
#

i don't care what you dictate we should talk about

#

there is no requirement that says you cannot use emacs as a beginner. that you should only use vscode and nothing else if you're a beginner

primal shadow
#

there's not

#

no requirement for much these days, luigi asked for a recommendation, I recommended

#

I also recommended against

#

I'm free to do that, nice chat

stark river
#

you are not free to stop others from being free

#

if you are programming python, pycharm is a very nice option

somber heath
#

@sage fable 👋

sage fable
#

hi

primal shadow
somber heath
#

@valid axle 👋

#

@umbral crag 👋

#

@upper basin Total robot.

upper basin
#

Bad server.

#

Not bad wifi.

obsidian dragon
#

best game ever

stark oxide
#

how far are you in it?

obsidian dragon
stark river
#

when discord shuts down a server , users get a warning

somber heath
#

@unique sorrel 👋

primal shadow
grim solar
primal shadow
upper basin
#

@obsidian dragon I'm available now if you have questions.

#

Sorry, I'm stuck on a few mathematical problems and was seeing if anyone in the math discord can help.

obsidian dragon
#

nerd

stark oxide
#

wdym?

obsidian dragon
#

😉

wanton charm
#

How do i close a help thread

#

After im done

upper basin
#

Can we change the voice chat region to India from Rotterdam?

obsidian dragon
#

I think the bot does it

wanton charm
#

Thanks

upper basin
#

I'm asking for permission because if you think it's going to make it hard for you I'd just type here.

#

I can't talk when we're on Rotterdam.

#

@cobalt fractal Greetings there,

Hope you are well. Apologies for the bother, can you kindly set the vc0's voice region to India please? Hemlock's not available on weekends.

#

Only Admins can do that.

stark oxide
late spoke
upper basin
stark oxide
primal shadow
obsidian dragon
#
from diffusers import DiffusionPipeline
import torch
import time
timestamp = 0
x = 0


num = 4
# load both base & refiner

#prompt = input("Image Prompt:\n")
prompt = """
Draw an anime girl with black wolf ears, long black hair, red eyes, and medium chest on tan skin. The character is eating a burger
"""
while x < num:
    timestamp = time.time()
    process_start = time.time()

    base = DiffusionPipeline.from_pretrained(
        "stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16, variant="fp16", use_safetensors=True
    )
    base.to("cuda")
    refiner = DiffusionPipeline.from_pretrained(
        "stabilityai/stable-diffusion-xl-refiner-1.0",
        text_encoder_2=base.text_encoder_2,
        vae=base.vae,
        torch_dtype=torch.float16,
        use_safetensors=True,
        variant="fp16",
    )
    refiner.to("cuda")

    # Define how many steps and what % of steps to be run on each experts (80/20) here
    n_steps = 18
    high_noise_frac = 0.8

    # run both experts
    image = base(
        prompt=prompt,
        num_inference_steps=n_steps,
        denoising_end=high_noise_frac,
        output_type="latent",
    ).images
    image = refiner(
        prompt=prompt,
        num_inference_steps=n_steps,
        denoising_start=high_noise_frac,
        image=image,
    ).images[0]


    image.save(f"./images/{timestamp}.png")

    process_end = time.time()
    process_time = round(process_end - process_start, 2)
    print(f"DEBUG > {timestamp}.png took {process_time}s")
    x += 1
print("Process Complete")
stark river
#

two sets of ears

obsidian dragon
#

prompt = """
Draw an anime girl with black wolf ears, long black hair, red eyes, and medium chest on tan skin. The character is eating a burger
"""

upper basin
obsidian dragon
late spoke
obsidian dragon
upper basin
obsidian dragon
upper basin
#

It's set by default to rotterdam.

#

Not defined automatically.

#

If I go to vc1 it'll still be rotterdam.

#

DCed, let's goooo.

#

Gotta love rotterdam.

vocal basin
#

I don't understand what this all means anymore

#

> "only 300KB and another 300KB of icons"
> executable: 1.4MB (after unpacking)
> archive: 1.6M

upper basin
vocal basin
#

volt

#

as far as I've seen claimed, by the authors of vlang

vocal basin
#

there is no small package

upper basin
vocal basin
#

they claim smaller

#

well, maybe, they used a different compression, idk

#

it's 2.4MB compressed to 1.4MB

#

1337KB after re-compressing with ultra lol

hasty shore
#
for(int i = 0; i < 10; /* this happend no matter what */ printf("%d\n", i), ++i)
{
   if( i == 5 )
      continue;
}

/*
Output:
0
1
2
3
4
5
6
7
8
9
*/

@primal shadow

vocal basin
vocal basin
#

!e

def with_print(iterable):
    for element in iterable:
        yield element
        print('second', element)

for i in with_print(range(3)):
    print('first ', i)
wise cargoBOT
vocal basin
#

if you need to call something at the end of an iteration to free up some resource,

example, bad:

for _ in ...:
    file = open("example.txt")
    if some_condition:
        continue  # oops, file not closed
    file.close()

use with instead:

for _ in ...:
    with open("example.txt") as file:
        if some_condition:
            continue  # ok, calls close anyway
hasty shore
#
def lookup_usage_str_id(self, addr):
        MAX_INST_LOOKBACK = 256

        instr_address = addr
        for _ in range(MAX_INST_LOOKBACK)
            instr = ida_ua.insn_t()
            
            if idaapi.decode_insn(instr, instr_address) == 0:
                return -1

            # at this point, instruction decoded

            if not instr:
                instr_address = idaapi.prev_head(instr_address, func_entry)
                continue

            if instr.itype != idaapi.ARM_mov:
                instr_address = idaapi.prev_head(instr_address, func_entry)
                continue

            if instr.Op1.type != idaapi.o_reg or instr.Op2.type != idaapi.o_imm:
                instr_address = idaapi.prev_head(instr_address, func_entry)
                continue

            if instr.Op1.reg != ARM_REG_0:
                instr_address = idaapi.prev_head(instr_address, func_entry)
                continue

            return instr.Op2.value
            
        return -1
#

@primal shadow

vocal basin
#

why not just or/and all those conditions?

#

each iteration seems to end either in continue or return in this case

#
def instructions(addr):
    MAX_INST_LOOKBACK = 256
    for _ in range(MAX_INST_LOOKBACK):
        instr = ida_ua.insn_t()
        if idaapi.decode_insn(instr, addr) == 0:
            break
        yield instr
        addr = idaapi.prev_head(addr, func_entry)
#
def lookup_usage_str_id(self, addr):
    for instr in instructions(addr):
        if not instr:
            continue
        if instr.itype != idaapi.ARM_mov:
            continue
        if instr.Op1.type != idaapi.o_reg or instr.Op2.type != idaapi.o_imm:
            continue
        if instr.Op1.reg != ARM_REG_0:
            continue
        return instr.Op2.value
    return -1
primal shadow
#
def lookup_usage_str_id(self, addr):
        MAX_INST_LOOKBACK = 256

        instr_address = addr
        for x in range(MAX_INST_LOOKBACK)
            if x != 0:
              instr_address = idaapi.prev_head(instr_address, func_entry)
            instr = ida_ua.insn_t()
            
            if idaapi.decode_insn(instr, instr_address) == 0:
                return -1

            # at this point, instruction decoded

            if not instr:
                continue
            if instr.itype != idaapi.ARM_mov:
                continue
            if instr.Op1.type != idaapi.o_reg or instr.Op2.type != idaapi.o_imm:
                continue
            if instr.Op1.reg != ARM_REG_0:
                continue

            return instr.Op2.value
            
        return -1```
vocal basin
#

which also allows you to get rid of the extra return -1

hasty shore
#
def lookup_usage_str_id(self, addr):
        MAX_INST_LOOKBACK = 256

        instr_address = addr
        for _ in range(MAX_INST_LOOKBACK) : (instr_address = idaapi.prev_head(instr_address, func_entry))
            instr = ida_ua.insn_t()
            
            if idaapi.decode_insn(instr, instr_address) == 0:
                return -1

            # at this point, instruction decoded

            if not instr:
                continue

            if instr.itype != idaapi.ARM_mov:
                continue

            if instr.Op1.type != idaapi.o_reg or instr.Op2.type != idaapi.o_imm:
                continue

            if instr.Op1.reg != ARM_REG_0:
                continue

            return instr.Op2.value
            
        return -1
vocal basin
#

!d generator

wise cargoBOT
#

A function which returns a generator iterator. It looks like a normal function except that it contains yield expressions for producing a series of values usable in a for-loop or that can be retrieved one at a time with the next() function.

Usually refers to a generator function, but may refer to a generator iterator in some contexts. In cases where the intended meaning isn’t clear, using the full terms avoids ambiguity.

vocal basin
#

!e

def example_generator():
    yield 1
    yield 2
    yield 3

for element in example_generator():
    print(element)
wise cargoBOT
vocal basin
#

!e

def example_generator():
    print(0)
    yield 1
    print(2)
    yield 3
    print(4)
    yield 5
    print(6)

for element in example_generator():
    print(element)
    if element == 3:
        break
wise cargoBOT
vocal basin
#

break and return from the loop, that consumes the generator, cause the generator to stop

#

note how print(4) never happens

primal shadow
#

echo $env:path

somber heath
#

@mighty robin @obtuse needle 👋

mighty robin
obtuse needle
#

hey

#

slay @deep forge

somber heath
#

Sorry, @deep forge, it looks like it's time to go.

obtuse needle
#

bye @somber heath

somber heath
obtuse needle
somber heath
somber heath
#

Ah. I believe I see the mixup.

#

@deep forge, it looks like you're safe, again...for now.

obtuse needle
vocal basin
#

"fine, learn it, just don't get yourself accidentally banned from their issue tracker"

#

Rust and Python are the ones I'm actively using

#

C# I used for a single project that lasted 5 years

#

a mod which is almost at 50K downloads

#

C I have to know because everything works on top of C

#

C++, the language, I mostly know
as for standard library -- less so

vocal basin
#

because web

#

(I don't use JS on back-end)

#

before late 2023, Python
since late 2023, Rust

obtuse needle
#

that sounded crazy

vocal basin
#

very long time ago, I used to write Lua

#

lua, the regular one, not luau

#

luau is the roblox's dialect of lua

#

which now spreads outside roblox

#

that spread isn't surprising given that luau has += and lua doesn't

#

Lua had some reason as to why they don't do compound assignment

#

@deep forge Lua is made for being embedded

#

but it can work outside that setting

#

torch was Lua before they migrated to Python

#

so it was using binding capabilities coming from the embedded nature of the language, even though the use wasn't really embedded

#

some game engines are using Lua too

#

LuaJIT specifically

#

(as in what is fast)

vocal basin
#

before relatively recently, the main use of C++ for me was competitive programming

#

didn't really do much else with it

#

to quote that video,

5 games
50 game engines

#

I don't remember even a single one, I don't do game dev with visuals in Rust

#

bevy is the one that's mentioned often

#

some of those are bindings

vocal basin
#

I'm proud of the fact I actually have code formatted properly lol

deep forge
#
// This function does this.
// ### ...
// ## Parameters
// * `app` - A pointer to an `App` struct.
// * `event` - A pointer to an `ui.Event` struct.
fn main() {
deep forge
#

If I have

// ...

It'll merge onto the same line as // This function does this..

#

Very interesting.

vocal basin
vocal basin
#

I might've misread something

formal bramble
#

might take long to start

deep forge
#

<@&831776746206265384> Troll in VC.

formal bramble
muted hinge
#

my internet connection is so jank

muted hinge
#

this is why I don't mod VC god

formal bramble
#

lol

#

again, much sexier

mighty robin
#

Thh

#

Now, I'cant speak on voice chat

somber heath
mighty robin
#

You have sent less than 50 messages

#

))

formal bramble
#

just gonna wait for 4 more minutes ig 😅

deep forge
formal bramble
#
try:F=1.2;M=5/6;i=input;i(int(eval(i()+"*"+i())))
except NameError:i("UNKNOWN")

nice

vocal basin
#

this is 1 character lower than another somewhat different solution I had

formal bramble
#

I was trying with eval but f'ed up so just submitted whatever I had

somber heath
#

@whole bear 👋

vocal basin
#

actually I could've improved what I had

#
try:F=1.2;M=5/6;i=input;i(int(eval("i()*i()")))
except NameError:i("UNKNOWN")
whole bear
#

i wanna learn pygame

vocal basin
#

even smaller

primal shadow
#

I prefer arcade to pygame

formal bramble
#

don't need NameErrorig

#

anything should print UNKNOWN

vocal basin
#

doesn't work

#

I tried

formal bramble
#

oh

vocal basin
#

idk if normal print breaks too

mighty robin
#

jkl

#

print()

#

no.

formal bramble
#

!e

try:F=1.2;M=5/6;print(int(eval("F*100")))
except NameError:i("UNKNOWN")
wise cargoBOT
formal bramble
#

!e

try:F=1.2;M=5/6;print(int(eval("J*100")))
except NameError:i("UNKNOWN")
wise cargoBOT
# formal bramble !e ``` try:F=1.2;M=5/6;print(int(eval("J*100"))) except NameError:i("UNKNOWN") `...

:x: Your 3.12 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     try:F=1.2;M=5/6;print(int(eval("J*100")))
004 |                               ^^^^^^^^^^^^^
005 |   File "<string>", line 1, in <module>
006 | NameError: name 'J' is not defined
007 | 
008 | During handling of the above exception, another exception occurred:
009 | 
010 | Traceback (most recent call last):
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/LUZPALQY2DNLRYIUP6NLRSLM6M

mighty robin
#

try something

vocal basin
#

input

mighty robin
#

.

deep forge
mighty robin
#

!e

wise cargoBOT
#
Missing required argument

code

formal bramble
#

!e

try:F=1.2;M=5/6;print(int(eval("J*100")))
except:print("UNKNOWN")
wise cargoBOT
vocal basin
#

!pypi sqlalchemy

wise cargoBOT
vocal basin
#

^ example of ORM

mighty robin
#

.

#

sadf

formal bramble
mighty robin
#

first

#

second

#

third

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied timeout to @mighty robin until <t:1717343977:f> (10 minutes) (reason: burst spam - sent 8 messages).

The <@&831776746206265384> have been alerted for review.

vocal basin
#

there is kind of two parts to many ORM:
query builder
object mapping

formal bramble
#

!e

try:F=1.2;M=5/6;i=input;i(int(eval("F*100")))
except NameError:i("UNKNOWN")
wise cargoBOT
vocal basin
#

some ORMs provide access to query building, I think?

vocal basin
#

and exit code is ignored

#

and newline isn't tested for

muted hinge
#

!tvmute 610940166902775828 2w Spamming to reach our voice verification requirements is strictly prohibited. You can still join voice channels without being verified; you just have to get some legitimate server activity in order to get verified.

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied voice mute to @mighty robin until <t:1718553092:f> (14 days).

vocal basin
#

so "got something, expected nothing" is an error, afair

vocal basin
solid pagoda
#

hello

late spoke
#

<@&831776746206265384> Can I get temporary stream permissions? I have been voice verified for a few years already..

vocal basin
#

@tawdry belfry as in?

ivory stump
#

We'd need a mod to be available in vc at the time for supervision, unfortunately

vocal basin
#

@tawdry belfry you want to reimplement a simpler version of FTP?

#

if you want to use socket io in Python, I highly suggest switching asyncio-based sockets early on

#

if you need to just send a message, there is ZeroMQ, Websocket, others

#

those two are layered on top of TCP

vocal basin
#

@tawdry belfry Live Share

#

you can share a terminal

upper basin
#

Just have one person being the branch manager.

#

The rest will make PRs.

vocal basin
#

Live Share is good for pair programming, not collaboration in general

#

two people taking turns writing/reading, not two people writing the same thing in parallel

upper basin
#

It's just inefficient to do pair programming. Just delegate tasks that don't depend on each other to be done by each programmer, and have one person manage the main branch.

vocal basin
#

having reduced writing speed is not an inefficiency

#

it's the intent

#

pair programming != two people collaborating on a project

upper basin
#

Pair programming is a software development technique in which two programmers work together at one workstation. One, the driver, writes code while the other, the observer or navigator,[1] reviews each line of code as it is typed in. The two programmers switch roles frequently.

#

This is literally the image from their wikipedia.

vocal basin
upper basin
vocal basin
#

no

upper basin
#

I've literally never had a situation in any project where I went like "Oh it'd be good if two people were looking at this screen at the same time."

vocal basin
#

@tawdry belfry stream interface that asyncio provides is a bit easier to work with

upper basin
#

What's the value?

#

It's always better to divide and conquer.

vocal basin
vocal basin
upper basin
vocal basin
#

what the fuck even is branch manager

#

where are you working at? Oracle?

upper basin
#

It's the person that reviews the commit before merging it with the main branch.

#

You're both being unnecessarily mean.

#

I write my code, my team write their code, and we review each others code when we want to merge.

vocal basin
upper basin
#

You're having someone read the code as you're writing it.

#

You can just have someone go through the commit when they're done.

vocal basin
upper basin
#

How can it be a year.

vocal basin
#

well, a week in case of review on merge

#

for "one writes code, other merges", see ZeroMQ:
their reasoning for it is that it keeps people from burnout

upper basin
#

It's not even part of the codebase, it doesn't matter if it's buggy. The branch manager reviews the commit before merging. Also, there's testers that you can run automatically.

upper basin
vocal basin
primal shadow
#

In software engineering, team programming is a project management strategy for coordinating task distribution in computer software development projects, which involves the assignment of two or more computer programmers to work collaboratively on an individual sub-task within a larger programming project. In general, the manner in which this term...

upper basin
#

You have literal roles where you design these pipelines. That's the whole point of those roles. I don't want someone sitting next to me reading my code as I do it. It's a waste of their time when they can be writing their code.

upper basin
vocal basin
#

I just said that it won't take a year in that case

vocal basin
#

from writing to PR

#

not from PR start to PR end

upper basin
#

Ok, then the maintainer has to sit with every developer through the working day to check their code?!

#

That's just infeasible.

vocal basin
#

no one said you need to be doing pair programming always

upper basin
#

No, I'm offended by people just saying you don't know shit when someone states a logical opinion.

vocal basin
#

pair programming all the time is ineffective, obviously

#

people do need time to learn on their own

#

(and work on their own when there's not much to learn really)

upper basin
#

There's pipelines to automate and optimize the CI/CD process. I've never seen anyone say delegate two assets to the same task and have them stare at the screen as the other writes the code.

vocal basin
#

CI/CD is important but it can't detect all the bugs

upper basin
vocal basin
#

testers as in?

#

separate employees for the company to waste money on?

#

for testing the project in general -- sure

late spoke
vocal basin
#

for unit tests and many other types of tests -- those must be written by the programmer themselves most of the time

upper basin
#

I don't care if anyone wants to do that, all I'm saying is it's wasteful to have two people sit together to write code at the same time. You can discuss bugs/blocks in meetings. You don't need to sit together and stare at the same screen.

vocal basin
upper basin
#

There's collaboration, and there's two people sitting next to eachother staring at the same screen.