#voice-chat-text-0

1 messages Β· Page 205 of 1

next gull
#

i cant talk in vc for some reason

#

damn

#

it been like that fr

#

i use to travel 4 hours every monday

#

to do a job down in

#

NC

#

im a car technician

#

for bmw

somber heath
next gull
#

i do all the tuning

wise cargoBOT
#
Voice verification

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

next gull
#

yeah nc

#

yeah

#

u from the us

#

kinda

#

yeah prob

#

dont they got them big ass spiders

#

they all big like that

#

bruh i could never

#

live there i hate every spider

#

if this was in my room i would shit my sekf

#

self

#

can they kill u

#

?

#

wtf

#

it sent the same pic

opaque tree
#

spooky

next gull
#

bacon

#

i could never

whole bear
#

No more. I'm getting creeped out.

opaque tree
#

is this the uks underworld prison called Austrelia?

whole bear
#

They also go to school in Kangaroos.

opaque tree
#

oh damn that sound fun actually

whole bear
#

Theyre a problem here especially in the outback.

trim night
somber heath
vocal basin
#

containers

#

and mount stuff into a container

#

though depends on what you're running
if it expects to run on hardware, there's not much else you can do other than virtualise that hardware

#

how powerful is raspberry pi actually?

somber heath
#

@worthy blade πŸ‘‹

vocal basin
#

cpu benchmarks and ram limit seem to be at around a quarter of what I use for development

worthy blade
vocal basin
#

and it's not ARM

vocal basin
#

total would be ~twice as much, I'd expect

somber heath
#

@somber hearth πŸ‘‹

#

@gray gust πŸ‘‹

gray gust
#

@somber heath πŸ‘‹

obsidian dragon
somber hearth
#

Hi, @gray gust \

#

@somber heath

#

Hello~~~

#

πŸ‘

gray gust
somber heath
#

@storm furnace πŸ‘‹

gray gust
#

@obsidian dragon you also check this out

storm furnace
#

@somber heath hi

obsidian dragon
scarlet halo
#

yo

undone idol
#

hi

gray gust
#

hii

storm furnace
#

ε¦–ζ€ͺ

#

youkai

#

There is an anime named youkai watch

#

I don't know who to trust anymore

#

I'm just gonna trust myself

gray gust
#

haha

rugged root
#

Hey yarsh

gray gust
#

@frozen owl
which language you are using ?

vocal basin
gray gust
#

Ahh rust

vocal basin
#

so now I just have this link saved

#

it's somewhat surprising that mods aren't put before use

#

I guess to be consistent with non-file mods

#

and to have extern crate and use near each other

#

extern crate is semi-depricated

frozen owl
vocal basin
#

mod is declaration of a submodule

#

use is import

frozen owl
#

can someone please read :D

#

idk if i mis-implemented anything

vocal basin
#

you declare once

#

but use multiple times

frozen owl
vocal basin
# vocal basin `extern crate` is semi-depricated

where it's still ok to use:
extern crate ... as _; to force-include symbols
extern crate self as ...; to make the library visible by name
mostly okay to use with:
#[macro_use]

other cases, iirc, are unidiomatic

#

you can remove lib.rs if you're not using it as a library

frozen owl
#

i see

frozen owl
vocal basin
wise cargoBOT
#

main.rs line 18

env::set_var("RUST_BACKTRACE", "0");```
frozen owl
frozen owl
#

but it got messy

#

i'll del it

#

but sometimes i find it useful

vocal basin
#

@rugged root in something like C#, modules are auto-defined from file structure
but Rust avoids this type of implicitness

vocal basin
rugged root
#

Right

oblique ridge
#

i think i see the problem

vocal basin
wise cargoBOT
#

pool.rs line 35

// check if kill threads or not???```
oblique ridge
#

||you're using rust||

desert vector
rugged root
#

I'm a bit rusty using it

desert vector
#

don't get crabby when you fail to use it then

oblique ridge
#

ty ty im very orgigami

oblique ridge
#

tmi but first ||pp touch|| wonderwall was playing

rugged root
#

tee hee

oblique ridge
#

most memorable part she goes "anyway here's wonderwall"

rugged root
vocal basin
wise cargoBOT
#

pool.rs lines 20 to 27

if num_threads.load(Ordering::SeqCst) < MAX_THREADS {
    let active_threads = num_threads.fetch_add(1, Ordering::SeqCst);
    thread::spawn(move || {
        calculate(nums, &resend, &num_threads, active_threads);
    });


}```
vocal basin
#

shouldn't it break on else or something?

#

panic it's okay-ish to kill the current thread

#

since you're not intending to catch it in that same thread

vocal basin
#

1000 threads check the counter
all see 0
all increment
all start the work

#

one of the reasons why I prefer not to mess with atomics

frozen owl
#

:(

#

idk how to unfuck

#

FUCKKKKKK

#

yeah maybe no atomics

vocal basin
frigid obsidian
#

@frozen owl >unfuck

Have you considered a trip to Planned Parenthood?

willow light
#

That reminds me, I have my monthly checkup there tomorrow...

#

As should anyone who is.....active.

vocal basin
frigid obsidian
#

I want to add that planks will not give you abs. You need to not-eat to get abs.

frigid obsidian
#

Not-eating is effective at revealing abs even if your abs are weak on "ab" exercises.

oblique ridge
#

in fact, i'd say it's the easiest way to show abs

vocal basin
oblique ridge
#

i can do too many ab workouts and it'll basically never show unless i'm hard flexing because of my belly fat
drop down to even like 18% body fat and it'll be there af

frigid obsidian
#

What python package do I need to pip to reveal my abs?

oblique ridge
#

pip install pyabs

vocal basin
# frigid obsidian <@632762189257768960> >unfuck Have you considered a trip to Planned Parenthood?

Most of the time when we make mistakes in our code, a message gets displayed wrong or an invoice doesn’t get sent. But sometimes when people make mistakes in code, things literally explode, or bankrupt companies, or make web development a living hell for millions of programmers for years to come.

Join Mark on a tour through some of the worst mi...

β–Ά Play video
desert vector
willow light
#

Kevlin Henney
It is all to easy to dismiss problematic codebases on some nebulous idea of bad practice or bad programmers. Poor code, however, is rarely arbitrary and random in its structure or formulation.
Systems of code, well or poorly structured, emerge from systems of practice, whether effective or ineffective. To improve code quality, it m...

β–Ά Play video
oblique ridge
#

ok but the code i'm rewriting is legitimately trash 😩

willow light
#

Everyone writes trash code from time to time

frigid obsidian
#

Is that for sanitation engineering or something?

oblique ridge
#

we just have to be open to accepting that
my coworker is not lol

willow light
#

Beginner coding: if it works it works
Intermediate coding: {massive list of frameworks and explaining why they're superior to everything else that week}
Advanced coding: if it works it works
Enterprise coding: HEY IT COMPILES! LET'S SHIP IT

oblique ridge
#

weekly releases πŸ™ƒ

willow light
#

On a Friday afternoon

vocal basin
oblique ridge
desert vector
wise cargoBOT
#

bot/exts/moderation/voice_gate.py line 179

[self.bot.stats.incr(f"voice_gate.failed.{key}") for key, value in checks.items() if value is True]```
vocal basin
#

[None,None,None,None,None]

#

is incr returning the new value?

#

maybe it used to be used?

wise cargoBOT
#

statsd/client/base.py lines 35 to 37

def incr(self, stat, count=1, rate=1):
    """Increment a stat by `​count`​."""
    self._send_stat(stat, '%s|c' % count, rate)```
vocal basin
#

> str % ...
*deathd*

desert vector
willow light
#

The real reason I don't like % formatting is I keep assuming modulo

vocal basin
#

"aaaaaaaa" % "aaa" is "aa"

willow light
#

wait

rugged root
willow light
#

!e
print("aaaaaaaa" % "aaa")

desert vector
#

aa moment

wise cargoBOT
#

@willow light :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 |     print("aaaaaaaa" % "aaa")
004 |           ~~~~~~~~~~~^~~~~~~
005 | TypeError: not all arguments converted during string formatting
vocal basin
#

because "aaa" * 3 + "aa" = "aaaaaaaa"

#

math

scarlet halo
#

109 messages since 16:45 or something

willow light
#

This reads like our old API Publishing API at work...when we took a Concourse Pipeline and wrapped it in a CLI, which we then wrapped in a connexion REST API

#

!pip connexion

wise cargoBOT
vocal basin
#

> Flask

willow light
#

laughs in SpringBoot for Groovy

scarlet halo
#

fun fact: alisa has no roles

vocal basin
#

CLI+HTTP -- good way to harm performance

willow light
#

And of course the stakeholders decided that the problem was with Python itself and had us switch over to a Spring API in Java 7

#

Just to prove a point, I rewrote our entire API in FastAPI in a single afternoon. They stuck to their guns.

#

"Be glad they didn't ask for Java 4"

wise cargoBOT
#

pydis_core/_bot.py line 107

self.stats = AsyncStatsClient(loop, statsd_url, 8125, prefix="bot")```
vocal basin
#

async with good; still waiting for Rust to have something like that

olive hedge
rugged root
desert vector
#

take great defense instead
hemlock is not gonna stop hitting you with bangers

frigid obsidian
#

What is this thing? Why is there like an f in front of a string and the string looks like it is supposed to do something with key

f"voice_gate.failed.{key}"

desert vector
#

!fstring

wise cargoBOT
#
Format-strings

Creating a Python string with your variables using the + operator can be difficult to write and read. F-strings (format-strings) make it easy to insert values into a string. If you put an f in front of the first quote, you can then put Python expressions between curly braces in the string.

>>> snake = "pythons"
>>> number = 21
>>> f"There are {number * 2} {snake} on the plane."
"There are 42 pythons on the plane."

Note that even when you include an expression that isn't a string, like number * 2, Python will convert it to a string for you.

olive hedge
#

I've got that cowboy chic

willow light
#
somebody.let { s ->
    People().let { f -> 
         f.children.add(s)
         s.parent.add(f)
    }
}
``` I guess this is the closest we'll get
vocal basin
#

but that doesn't work with async

frozen owl
#

would this be better @vocal basin

pool.rs

use std::sync::mpsc::{Receiver, Sender};
use threadpool::ThreadPool; // try this!
use crate::Nums;

pub fn manage(receiver: &Receiver<Nums>, resend: &Sender<u8>) {

    let pool = ThreadPool::new(REGULAR_SPAWN);

    loop {
        let nums = receiver.recv().unwrap();
        let resend = resend.clone();

        
        pool.execute(move || {
            calculate(nums, &resend);
        });
    }
}

fn calculate(nums: Nums, resend: &Sender<u8>) {
    let result = nums.first + nums.second;
    resend.send(result).unwrap();
}


const REGULAR_SPAWN: usize = 5;

rugged root
#
Drop the_mic
scarlet halo
# wise cargo

wait, since when? ive always had problems with different types. (or im just imagining and instead im being stupid and using the + )

rugged root
#

f-strings have been around since 3.6

rugged root
#

They're my favorite feature

vocal basin
#
pub fn drop<T>(_x: T) { }
scarlet halo
rugged root
#

Oh yeah yeah

#

Will do the same thing with .format()

scarlet halo
#

damn.

rugged root
#

Just concat and the c style that won't

scarlet halo
#

never knew

rugged root
#

I think

willow light
#

The JavaScript f-string equivalent is nice.

let x = 5;
console.log(`The value of x is ${x}`);
desert vector
#

${} is always nice

vocal basin
frigid obsidian
#

Is the comma here separating elements of the list or is it running the "value" through the for loop?

for key, value

vocal basin
#

@rugged root depends on implementation

vocal basin
#

there is no pooling in Rust itself

desert vector
#

!e

x, y = 1, 2
print(x, y)
wise cargoBOT
#

@desert vector :white_check_mark: Your 3.12 eval job has completed with return code 0.

1 2
vocal basin
#

it's in crates

frigid obsidian
#

So where is "key" coming from?

desert vector
#

!e

d = {"string": 1}
print(d.items())
wise cargoBOT
#

@desert vector :white_check_mark: Your 3.12 eval job has completed with return code 0.

dict_items([('string', 1)])
vocal basin
#

either

  1. spawn maximum number of threads at the start -- memory penalty
  2. spawn on demand -- CPU penalty
frozen owl
frozen owl
#

idk sounds like red/blue pill /j

vocal basin
#

where? ( @rugged root )

frozen owl
#

wdym

#

"where"

desert vector
#

dict items gets a view now?
since when

vocal basin
frozen owl
willow light
#
products = requests.get(f"{apigee_base_path}/products")
# len(products) ~= 98_000
expanded_products = [requests.get(f"{apigee_base_path}/products/{product}") for product in products]

Is what I did at first. Then I did the multiprocessing.Pool() and starmap() method.

Now I just use httpx.AsyncClient

frigid obsidian
#

so "checks.items()" returns a, uh, datastructure with "key, value" things in it and the for loop goes over these things?

vocal basin
#

thread::spawn + sync::mpsc as was done initially

rugged root
#

its?

#

Whatever

#

Know what I mean, not what I say

frozen owl
#

stru (4 chars) vs struct (too many chars for me to count)

vocal basin
#

do like C++:

[](){}()
frozen owl
#

fun > def > func > function > define function

#

idk man

vocal basin
frozen owl
#

ye

#

short keywords ftw

desert vector
#

@rugged root

frigid obsidian
#

So you can write a for loop with the stuff in front of the for and no colon?

frozen owl
#

i like code golfing but my handicap is so fucking high

vocal basin
frigid obsidian
#

"the stuff"= the repeated code in the loop

willow light
#
const func2 = (x, y) => {
  return x + y;
};

is my preference tbh

frozen owl
vocal basin
#

it would be a thread pool anyway

frozen owl
#

why? i thought threadpool good

scarlet halo
#

gtg boys and girls and everything inbetween

vocal basin
#

jobs would just be long-running

#

given that the project is a chess engine, you can actually do without messaging, I guess
but you might have to schedule more jobs than you have CPUs

frigid obsidian
#

I've only ever seen for loops formatted as

for item in stuff:
do.action(item)

but apparently for loops can be formatted as:

do.action(item) for item in stuff

is this correct?

vocal basin
#

second is comprehension

#

!e

print((x for x in range(10)))
print([x for x in range(10)])
print({x for x in range(10)})
print({x: x for x in range(10)})
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | <generator object <genexpr> at 0x7f9d25b48ac0>
002 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
003 | {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
004 | {0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9}
frozen owl
#

im following something like this @vocal basin

#

actually im following that but the diagram was not updated

vocal basin
#

yeah, this involves messaging, just as arrows show

frozen owl
#

yeah

#

but like

#

there should be a pool between S and executor

vocal basin
#

you're trying to train it, not play a single game at a time, right?

frozen owl
#

no

#

this is not the training loop

#

the training loop is in py

#

this is data generation

gray gust
#

vue is newer

frozen owl
#

ie, playing games for training data

vocal basin
#

you can make "playing games" single-threaded then

#

at least, that makes it simpler

#

multiple threads, thread per game at a time

gray gust
#

oldest one is angular after that react come

vocal basin
#

there is also AngularJS/Angular separation

frozen owl
gray gust
#

vue is mixture of angular and react

frozen owl
#

like the Threadpool crate

vocal basin
#

yes, it might work

#

just for scheduling

frozen owl
#

wdym "just for scheduling" i thought all im doing is to allocate GPU resource to incoming requests?

vocal basin
#

@willow light
and then you also have to choose async runtime

#

in something like Rust

#

iirc, Python has that too, somehow

#

alternative asyncios

desert vector
#

gevent and friends?

vocal basin
#

yes

frozen owl
desert vector
#

I still know people that are so damn adamant on not using the built-in asyncio lol

vocal basin
#

thread pool is supposed to be the part responsible for spawning and managing the thread

#

hell is written with yaml

frozen owl
vocal basin
#

some problems

frozen owl
#

i still dont fucken get it

vocal basin
#

thread pool just abstracts away this:

do N times:
    spawn thread doing:
        receive job
        do job
        send result
amber raptor
#

Ugh

#

Use messaging system please

vocal basin
#

yes

frigid obsidian
#

@vocal basin I've never seen "comprehension" used in this way. I thought I knew what "second" meant, but "comprehension" is just building a big list, whcih in this case comes from the outside brackets. I thought "second" referred to the position in the for loop code.

[self.bot.stats.incr(f"voice_gate.failed.{key}") for key, value in checks.items() if value is True]

willow light
#

Don't mind me, just setting the logging level for our entire prod cluster to DEBUG and then sending to datadog. What could possibly go wrong?

vocal basin
willow light
#

I predict dd to run out of memory in 20 seconds maximum.

vocal basin
#

as in it should not be a comprehension

frozen owl
rugged root
vocal basin
oblique ridge
vocal basin
frigid obsidian
#

@vocal basin Shouldn't it be

[self.bot.stats.incr(f"voice_gate.failed.{key}") if value is True for key, value in checks.items()]

instead of

[self.bot.stats.incr(f"voice_gate.failed.{key}") for key, value in checks.items() if value is True]

because you need the key, value tuple from items() before you can check the value?

I.e. doesn't the if statement execute first as originally written?

Thanks for responding

vocal basin
#

if before for gets parse as a ternary operator

#

and as such expects else

#

if after for is for filtering

#

!e

print([x for x in range(5) if x % 2])
#                          ^^^^^^^^ filter
print([x if x % 2 else -1 for x in range(5)])
#        ^^^^^^^^ switch
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | [1, 3]
002 | [-1, 1, -1, 3, -1]
desert vector
willow light
#
Kotaku

The thick, black-and-white rulebook packaged with every copy of the 1979 war-game The Campaign For North Africa is full of obtuse decrees, but the tabletop community always had a special appreciation for entry 52.6 - affectionately known as the β€œmacaroni rule.” The Italian troops in World War II were outfitted with…

vocal basin
frigid obsidian
#

But you'd have to waste skill points to do a prestige class

#

That was a little flavorful

vocal basin
#

@rugged root
> obfuscation which gave them ...
which gave them a job at proprietary software company

willow light
#

Six Degrees of Cain

frigid obsidian
#

@Alisa Feistel So this:

[self.bot.stats.incr(f"voice_gate.failed.{key}") if value is True else continue for key, value in checks.items()]

should generate the same as this:

[self.bot.stats.incr(f"voice_gate.failed.{key}") for key, value in checks.items() if value is True]

?

rugged root
#

Latter would be correct

#

I don't think the former is valid

#

I think if has to come at the end

frigid obsidian
#

!e
print([x for x in range(5) if x % 2])

^^^^^^^^ filter

print([x if x % 2 else continue for x in range(5)])

wise cargoBOT
#

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

001 |   File "/home/main.py", line 3
002 |     print([x if x % 2 else continue for x in range(5)])
003 |                            ^^^^^^^^
004 | SyntaxError: invalid syntax
vocal basin
#

continue/break don't work inside comprehensions

frigid obsidian
#

Is this supposed to be difficult to use on purpose?

rugged root
#

else also doesn't work in list comps

vocal basin
#

it's limited

rugged root
#

Unless that changed

#

Or I have the dumb

#

Not sure which

vocal basin
#

else works in expressions

desert vector
#

no, no else for the filtering if

#

it works for the actual expression though, yea

frigid obsidian
#

Why the fuck does it break that usage of loops because you are formatting it differently. That seems dumb

vocal basin
#

it's not a loop, semantically

rugged root
#

It's closer to a map, right?

vocal basin
#

you generally should not have side effects in comprehensions

#

it not only gets allocated, it creates a scope

#

!e

[x for x in [0]]
print(x)
wise cargoBOT
#

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

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 2, in <module>
003 |     print(x)
004 |           ^
005 | NameError: name 'x' is not defined
vocal basin
#

it will insta-dealloc before gc, likely

#

because refcount hits 0

#

it also re-allocates multiple times, I'd expect

#

because comprehensions don't take size hints into account

#

I forgot again

desert vector
#

!d operator

wise cargoBOT
#

Source code: Lib/operator.py

The operator module exports a set of efficient functions corresponding to the intrinsic operators of Python. For example, operator.add(x, y) is equivalent to the expression x+y. Many function names are those used for special methods, without the double underscores. For backward compatibility, many of these have a variant with the double underscores kept. The variants without the double underscores are preferred for clarity.

The functions fall into categories that perform object comparisons, logical operations, mathematical operations and sequence operations.

The object comparison functions are useful for all objects, and are named after the rich comparison operators they support:

desert vector
#

go searching :D

vocal basin
#

!d operator.length_hint

wise cargoBOT
#

operator.length_hint(obj, default=0)```
Return an estimated length for the object *obj*. First try to return its actual length, then an estimate using [`object.__length_hint__()`](https://docs.python.org/3/reference/datamodel.html#object.__length_hint__), and finally return the default value.

New in version 3.4.
willow light
#

!e
from future import braces

wise cargoBOT
#

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

001 |   File "/home/main.py", line 1
002 |     from __future__ import braces
003 |     ^
004 | SyntaxError: not a chance
vocal basin
vocal basin
willow light
#

Looks beautiful

desert vector
#

Hello World in Python 6

{
    println!("Hello World!");
}
willow light
#
from __future__ import console

console.log("Hello World")
vocal basin
#

def main()

desert vector
#

"definitely main"

willow light
#
from __future__ import public, protected, private, static, void,
rugged root
#
from __past__ import input
vocal basin
#

eval(raw_input())

desert vector
#

ecks dee

vocal basin
#

docker run python:2

frozen owl
#

helloworld.asm

vocal basin
desert vector
#

you WHAT

#

financial nerds rejoicing

vocal basin
#

@willow light the talk was at the time of release >90% fiction

willow light
vocal basin
#

webweb

#

Almost all Ethiopians use a modified 12-hour clock system. The daytime cycle begins at dawn 12:00 (6:00:00 AM EAT) and ends at dusk 11:59:59 (5:59:59 PM EAT). The nighttime cycle begins at dusk 12:00 (6:00:00 PM EAT) and ends at dawn at 11:59:59 (5:59:59 AM EAT). The convention is that the day begins at 1:00 o'clock in the morning according to the 12-hour cycle (7:00 AM EAT) rather than midnight (12:00 AM EAT). Therefore, the local population could be said to effectively observe UTC-03:00 rather than UTC+03:00 in terms of the numbering of hours and their association with 24-hour days, with the exception of the hour from 6:00 AM EAT to 6:59 AM EAT.

frigid obsidian
#

OMG_I_cant_remember_what_its_called_now would be a funny name for a package.

rugged root
#

I would always be importing it

#

100%

#

"import... fuckin... what's the name"

willow light
#

My pull-up bar is also a sit-up bar and a pushup bar

sour willow
#

it reduces its effectiveness

willow light
#

I'm not. I'm using my gut. This just stops my feet from flying into the air when I go back down.

willow light
sour willow
#

one works on your hip flexors. the other works on your abdominals

#

no what

willow light
#

And not doing a sit-up at all works on neither

rugged root
#

If you do a slow laying back down it'd still work

#

Slow being an important part of that

#

So long as you're doing it with your abs not your back at that point

#

Which you might be with the foot hooked on the bar

willow light
#

What matters is doing the situps at all. Work on the how after you work on the what and the when.

#

And, most importantly, the if.

#

At the moment I'm not worried about how I do my situps, I'm worried about doing them more than once per economic quarter.

sour willow
frigid obsidian
#

The only reason to do ab exercises is combat sports and even then wood chops are the way to go.

I feel like most other ab exercises are wastes of effort and time.

willow light
#

I'm just doing ab exercises to feel something at all

frigid obsidian
#

Hot take

willow light
#

Even though I use my arms and legs far more.

rugged root
willow light
#

But I will die on the hill that doing exercises "wrong" is still better than not doing exercises

rugged root
#

I'm saying for the lowering back to the floor

#

Low back and hips

vocal basin
#

> leaked memory on each action
"someone forgot to put using on DB connections"

frigid obsidian
#

Do you do pull ups?

vocal basin
willow light
#

I'm still too heavy to pull it off

vocal basin
#

too lazy to find the timestamp, so here's the very compressed clip

sour willow
#

its about working out smart

willow light
#

It's not about that at all. It's about working out at all.

#

If you don't work out, then it doesn't matter how you work out.

sour willow
#

its the reason why alot of people go in the gym following youtube shorts whom dont achieve anything in months

willow light
#

If you watch youtube shorts then you are even less informed than if you left that app closed.

frigid obsidian
#

Building habits is important. Getting a routine. Improving the effectiveness of the routine is the easy part.

willow light
#

Building habits

laughs in ADHD

#

I can not build habits. everything has to be a conscious decision.

#

I would love to be capable of building habits.

frigid obsidian
#

Oh, do P90X, that shit was great and they probably have rips on YouTube or people doing equivalents. You already have a pullup bar which is basically the only required equipment for the legs and back routine and the chest and back routine.

sour willow
#

having a list of certain habits and following them daily sounds boring=

willow light
#

This is entirely because going to the gym involves being around other people. Fuck that.

frigid obsidian
#

You need to schedule it. Make it a regular part of your schedule.

p90c is a home workout

willow light
#

Being around other people is just an invitation to get physically attacked.

Which is what happened whenever I went to the gym growing up.

frigid obsidian
#

It is still extremely intense and will preserve your muscle mass while you diet.

willow light
#

I would prefer workouts that don't require me buying anything else. Or worse, subscriptions.

frigid obsidian
#

Fuck, let me see if I can find a free 1 hour legs and back workout on YouTube. You already have all the equipment the old P90X videos required for legs and back workouts, which is a pull up bar (and a floor I guess).

sour willow
#

you can lift tyres if your want to

rugged root
#

If you have them

frigid obsidian
willow light
#

Does he at least explain the why in addition to the how?

frigid obsidian
#

Dude, I forgot how long the stretching warmups were

#

He'll probably tell you where you should expect to feel tension and burn

#

Those stretching warmups were really good. Very thorough and it like psyches you up for the workout because it is super easy at first.

#

Be careful with this one, you will burn your legs so hard on this from a non-working out state that you will have difficulty walking after the first one. That will last a few days potentially.

That will only happen once if you do the workout at least weekly.

sour willow
#

you realize stretching prevents injuries

willow light
#

Wait the soreness is supposed to happen? I needed an ibuprofen to get to work last time.

frigid obsidian
#

DOMS is not an injury

rugged root
#

Mmmm.... day 2 soreness....

#

Delicious

willow light
#

Everyone I talked to when I was in high school during mandatory gym time told me to just stop crying over everything and get over myself.

#

And then locked me in my locker for two hours.

frigid obsidian
#

Delayed onset muscle soreness (DOMS) is the pain and stiffness felt in muscles after unaccustomed or strenuous exercise. The soreness is felt most strongly 24 to 72 hours after the exercise.:β€Š63β€Š It is thought to be caused by eccentric (lengthening) exercise, which causes small-scale damage (microtrauma) to the muscle fibers. After such exercise...

frozen owl
frigid obsidian
#

Yes, a sufficient workout will likely cause DOMS if you haven't worked out in a few weeks. Leg work outs are usually the worst for DOMS, at least in my experience.

You can ease into it potentially and avoid DOMS by gradually increasing workout intensity over several days. No amount of stretching will avoid DOMS though, regularly working out is the only way to avoid it.

quaint cape
#

hi

#

guys i can't speak !

#

why

vocal basin
quaint cape
#

so i need to wait 3 days tho

willow light
#

3 days is nothing

quaint cape
#

all good

willow light
#

I've been here for 4 years. 3 days is barely anything.

rugged root
#

Coding anything new?

vocal basin
#

> the only way to avoid it
well, not only
another is not doing it at all

willow light
#

There should be one-- and only one --obvious way to do it.

desert vector
willow light
vocal basin
#

I finally know how much I'm going to get paid
after three months of work + one month since now
yay

quaint cape
#

is this server the official server for python lung ?

rugged root
#

We're the closest there is. We aren't run by the PSF, but we do events with them from time to time

vocal basin
#

depends on the definition of "official"

terse needle
willow light
#

I need assistance with a decision

#

This zygarde is giving me more difficulty than the last legendary i caught

quaint cape
#

i need some help

#

on a bot i am creating

rugged root
#

What's the issue?

quaint cape
#


import pyautogui
import time
import threading
from tkinter import Tk, Button

# Flag to indicate if the bot is currently running
bot_running = False

def capture_screen():
    # Capture the screen and return the center pixel color
    screenshot = pyautogui.screenshot()
    width, height = screenshot.size
    center_pixel = screenshot.getpixel((width // 2, height // 2))
    return center_pixel

def click_k_button():
    # Simulate key press for 'k' button
    pyautogui.press('k')

def bot_task():
    # Perform the bot's task
    while bot_running:
        center_pixel_color = capture_screen()
        if center_pixel_color == (225, 0, 205):
            click_k_button()
        time.sleep(1 / 45)

def toggle_bot():
    global bot_running
    if bot_running:
        bot_running = False
        toggle_button.config(text='Turn On')
    else:
        bot_running = True
        toggle_button.config(text='Turn Off')
        # Start the bot task in a separate thread
        threading.Thread(target=bot_task).start()
#

i have problem with my hotkey not working

#

or maybe the hole bot not good coding

#

simple trigger bot for learning how it is work

#

i think i need to take the screan shot and look on the center pixcl if it is "red or purple'' the program will kick the right mouse button

#

yes

#

not good choice then to develop it on python

#

i read on enternet it can work

frigid obsidian
#

Is a "story" like some corporate speak from JIRA or something?

vocal basin
#

not exactly

quaint cape
#

but you need to take screan shott at least 60 fps so you can test ever frame

willow light
#

"As a user, I want this functionality, so I can do this task"

vocal basin
# vocal basin not exactly

In software development and product management, a user story is an informal, natural language description of features of a software system. They are written from the perspective of an end user or user of a system, and may be recorded on index cards, Post-it notes, or digitally in project management software. Depending on the project, user storie...

#

Extreme Programming, then BDD

quaint cape
#

like valorant as example

vocal basin
willow light
vocal basin
#

I think last time someone asked me about it, they got banned here

#

for rule 5 and something else

#

that was some random Roblox game

frigid obsidian
#

Just introduce the Beaver's natural enemy: the sausage

terse needle
undone idol
#

tonsils

terse needle
#

hopefully I'll be able to implement factorisation, symbolic differentiation and integration

undone idol
#

no i think its because of drinking cold water.

frigid obsidian
#

It would be funny if "Tonsil Hockey" were a ritualized dual where the object was to choke your opponent with a skittle manipulated by your tongue.

undone idol
#

yep indeed

#

exactly

frigid obsidian
#

What happened to Alexander Hamilton?

He lost a Tonsil Hockey match, sadly.

#

You could fight a Tonsil Hockey duel to first cough if you didn't want it to be lethal.

undone idol
#

gosh my chest.

willow light
#

What about tonsil croquet?

frigid obsidian
#

I'll leave it to the French

willow light
#

Tonsil curling might be interesting

undone idol
#

uh no

willow light
#

Better than tonsil shuffleboard

frigid obsidian
#

Tonsil Ski Jumping

willow light
#

Tonsil wreck diving

gentle flint
frigid obsidian
#

Wreck diving is not a Winter sport! You can't do that on Tonsils!

You'd need the jejunum for that.

willow light
#

You can go wreck diving in the winter. Just wear a dry suit.

frigid obsidian
#

AFK for a few minutes

gentle flint
willow light
#

.wa 2 lbs to kilos

viscid lagoonBOT
willow light
#

.wa 2 pounds in kilograms

viscid lagoonBOT
rugged root
#

Kill me, this is the exact same issue I ran into last year with this licensing bullshit

#

Alllll coming back to me now

#

Still here. Still hate QB

serene thicket
#

halp

gentle flint
rugged root
#

Get ratio'd?

willow light
#

Actual front of the building

frigid obsidian
#

Apple glass is the new nerd pocket protector

willow light
#

For a while, tesla was. Then the normies showed up.

#

I'd say this is the pocket protector

frigid obsidian
#

The only console I have is a Tiger Electronics pinball game

rugged root
#

Oh god I haven't thought about the Tiger handhelds in a long time...

gentle flint
#

In een braadpan (ook wel stoofpan, stoofpot, sudderpan of sudderpot genoemd, in het verleden ook wel casserole) kan een product – veelal vlees, gevogelte of wild – worden gebraden of worden dichtgeschroeid alvorens het wordt gebraden in de oven. Om het vlees dicht te schroeien verhit men de braadpan tot een hoge temperatuur en gebruikt men boter...

frigid obsidian
#

Call that a Foodhold

willow light
#

We call that a Le Creuset sometimes

#

But I'm cheap so mine... isn't

frigid obsidian
#

Skillet? Frying pan? You mean a Foodflat?

rugged root
#

Foodflat
Never heard that one before

normal cipher
willow light
normal cipher
#

lotta love

gentle flint
willow light
#

And here's my frying pan

normal cipher
normal cipher
frigid obsidian
#

forgot to add "in Minecraft"

#

Is sustainable locally sourced tea?

#

They can actually grow tea in the American South?

#

TIL the American South, including California, can grow tea.

willow light
#

Their tea is actually pretty good

frigid obsidian
#

I thought you needed a straight up tropical biome like in India to grow it. Maybe it was grown in Northern India? I have to brush up on my East India Company history.

willow light
#

Florida is tropical AF

#

Also wasn't tea from China originally?

frigid obsidian
#

So apparently Darjeeling, which I have actually heard of, is basically in the foothills of the Himalayas in Eastern India. So is another main tea region of Assam.

#

And THAT"S THE TEA

rugged root
willow light
frigid obsidian
#

!e

print("hello World?")
wise cargoBOT
#

@frigid obsidian :white_check_mark: Your 3.12 eval job has completed with return code 0.

hello World?
willow light
#

I may need more than this though

frigid obsidian
#

[self.bot.stats.incr(f"voice_gate.failed.{key}") for key, value in checks.items() if value is True]

gentle flint
willow light
terse needle
gentle flint
#

roasted tomatoes with cheese

#

and garlic

willow light
#

i have fried some garlic in olive oil and then added heirloom (amish) paste tomatoes.

#

just what is locally grown

#

after that, once the tomatoes are cooked, adding fresh basil

terse needle
#

I have roast peppers stuffed with couscous and topped with cheese

willow light
#

I prefer stuffed artichokes

#

So how many of my ghost peppers should I add to the sauce

gentle flint
terse needle
gentle flint
#

tracemalloc

desert vector
#

@rugged root I'm on your ass

willow light
#

Stuffed Artichokes

6 artichokes
1 lemon

Toasted Breadcrumbs
1 1/2 cups plain breadcrumbs
3 tablespoons Extra Virgin Olive Oil

Filling
Toasted Breadcrumbs
1/2 cup Pecorino-Romano Cheese
1 teaspoon salt
several grinds of black pepper or to taste
2 garlic cloves, chopped
6 sprigs Italian flat leaf parsley, chopped
Drizzle of extra virgin olive o...

β–Ά Play video
#

This is the recipe I use

terse needle
#

Myfanwy

gentle flint
#

SiobhΓ‘n

tulip yew
#

I can't chat for some reason

rugged root
tulip yew
#

you mic is discombobulating my ears lol

#

but yo guys I need a tutor for python

#

I am struggling with classes currently

#

opp concept

#

ya

pale agate
#

hey

tulip yew
#

Just going from user input and functions and then putting it into classes has been kinda hard

#

the while loops are not clicking for me somewhat

#

I got a lab

#

I can write it down and if you can you can help me through it

rugged root
#
        checks = {
            "joined_at": (
                interaction.user.joined_at > arrow.utcnow() - timedelta(days=GateConf.minimum_days_member)
            ),
            "total_messages": data["total_messages"] < GateConf.minimum_messages,
            "voice_gate_blocked": data["voice_gate_blocked"],
            "activity_blocks": data["activity_blocks"] < GateConf.minimum_activity_blocks,
        }
tulip yew
#

well the lab is:

#

The class should be named BankAccount

The user will be able to do the following using methods:

Deposit funds.
Withdraw funds.
Show balance information.
Display all of their account information. E.g., account number, account holders name, current balance.
Additional requirements:

Withdrawals need to be validated to prevent the user from an account overdraft.
All transactions should display the ending (new) account balance.

#

and the code I have so far is

willow light
#

What is the difference between if x is True and if x while we're here?

tulip yew
#

class BankAccount:
"""Putting Bank Account in classes """
def int(self, name, bank_type):
self.name = name
self.bank_type = bank_type

def show_balance(self):

"""Seeing the Deposit_funds and Withdraw_funds"""

bank = BankAccount('UBT','Card_Holder')
print({bank.show_balance})

bank.show_balance = 500

#

it not working for me for some reason

terse needle
#

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

willow light
#

you want init and not int

desert vector
#

!e print(True is True)

wise cargoBOT
#

@desert vector :white_check_mark: Your 3.12 eval job has completed with return code 0.

True
willow light
#

!e

x = 5
assert x
assert x is True
wise cargoBOT
#

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

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 3, in <module>
003 |     assert x is True
004 | AssertionError
desert vector
#

!e

l1 = list(range(3))
l2 = list(range(3))

print(l1 == l2)
print(l1 is l2)
wise cargoBOT
#

@desert vector :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | True
002 | False
rugged root
#

Hokay, so

tulip yew
#

I'm trying not to use chatgpt becuase I actually want to know this stuff lol

rugged root
#

Good

#

Good good good

#

You good if we start from the top on classes?

#

Just give you the rundown and what have you

willow light
#
import os
import requests

requests.get(os.path(base_path, endpoint))
pale agate
#

That's incredible how Python do all the job for you

tulip yew
#

HAHAHAHAAHAHAHAHAHA

rugged root
#

So there's two main components with classes: attributes and methods

#

attributes are variables that are specific to a class and its objects.
methods are functions that are specific to a class and its objects.

#

So if we look at the BankAccount class you have, self.name and self.bank_type would be attributes, while show_balance() would be a method

desert vector
rugged root
#

How do you mean?

tulip yew
#

but I is there an indent issue or something

rugged root
#
class BankAccount:
  """Putting Bank Account in classes """
  def int(self, name, bank_type):
    self.name = name
    self.bank_type = bank_type

  def show_balance(self):


    """Seeing the Deposit_funds and Withdraw_funds"""

bank = BankAccount('UBT','Card_Holder')
print({bank.show_balance})

bank.show_balance = 500
#
def __init__(self, name, bank_type):
tulip yew
#

hmm

#

ohhhhhhhhhhhhhhhhhhh

#

I that now

#

so I mistypes the init part and I had syntax errors

rugged root
#

You'll run into another issue since the show_balance block is empty

tulip yew
#

I meant to modify that

#

but thank you

rugged root
#

Right right, just force of habit to point it out

desert vector
# rugged root How do you mean?

!e

class A:
  def __init__(self, val):
    self._val = val

  def something(self):
    print(self._val)

obj = A()
obj.something()
A.something()

something only exists on the instance after it's built; A.something() doesn't work
It's not really that an attribute/method can be specific to a class and its objects,
but that an attribute/method can be specific to a class or its objects

The only exception to that rule is a class method, since you can call it on either the class itself or the instance

wise cargoBOT
#

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

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 8, in <module>
003 |     obj = A()
004 |           ^^^
005 | TypeError: A.__init__() missing 1 required positional argument: 'val'
rugged root
#

Um, actuwuwy

desert vector
rugged root
#

I hate myself for typing that

desert vector
viscid lagoonBOT
#

i hate mysewf fow typing that

rugged root
viscid lagoonBOT
#

um, a-actuwuwy

willow light
#

Shall I add some of this

rugged root
#

Which squash is that?

willow light
#

delicata

#

I like to cut it into half moons and roast on a sheet pan. great alternative to french fries.

rugged root
#

@pure lance Yo

#

@gleaming yarrow Yo

gleaming yarrow
#

hi

rugged root
#

How goes it

gleaming yarrow
#

im kinda lost

rugged root
#

What's up?

gleaming yarrow
#

just hearing

rugged root
#

Yeahhhhh

#

This is pretty standard

#

It'll just jump around

#

Although programming does come up most of the time

tulip yew
#

what abour moby dick

pure lance
#

Hi @rugged root !

rugged root
#

How's it going

pure lance
#

going very well, currently learning classes in python, and I'm stuck

tulip yew
#

william shakespeare?

pure lance
#

learning python on my own, at home, I got no degree or any diploma's, so yeah doing it on my own is a big challenge, and "chatgpt" isn't answering everything correctly at this point. So I looked up this server, and joined just now!

tulip yew
#

GTG I'll be right back

pure lance
#

lmao

#

stop it you guys xD

#

anyway, where can I post my Q?

rugged root
pure lance
#

can't find the "new post" thing

rugged root
desert vector
#

big blurple button

pure lance
#

thank u! finally posted one

oblique ridge
willow light
#

I think it came out well

#

That is damn good ravioli. Truffled mushroom and onion ravioli

oblique ridge
#

@jaunty turret

whole bear
#

I need to learn flask in January 😭

#

(or Fast API)

willow light
#

It's like Express except Pythonic instead of JavaScriptish

#

@jaunty turret we're in here

#

...why

oblique ridge
#

lmfao

scarlet halo
willow light
#

colloquially walking around at the speed of fast

rugged root
#

@scarlet halo If you have something like that to report, send it to @rapid crown

#

Otherwise it comes off as you also spreading racist comments in chat

oblique ridge
toxic venture
#
dict1 = {"Hello": "Bye", "Apple": "Banana", "A": "b", "a": "B"}
print(dict1.keys())```
desert vector
#

list(dict1)[0]

rugged root
#

Don't even need to specify .keys()

oblique ridge
#
>>> dict1 = {"Hello": "Bye", "Apple": "Banana", "A": "b", "a": "B"}
>>> dict1
{'Hello': 'Bye', 'Apple': 'Banana', 'A': 'b', 'a': 'B'}
>>> del(dict1["Hello"])
>>> dict1
{'Apple': 'Banana', 'A': 'b', 'a': 'B'}
whole bear
#

I'll catch you later guys

desert vector
#

!kindling

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.

golden sonnet
#

πŸ‘‹

golden sonnet
#

ididn't wanna know about that finger?

#

i was filling a job interview form :/

#

they're asking me to give strories of me handling arguments with my boss

#

i keep silent?
what are they expeting?

#

it was a django project

#

well i was underqulified anyways πŸ™‚
maybe next time

#

but i really don't have that much drama in my life

#

have some tea 🍡

rugged root
oblique ridge
#

ah ye there's also lichess

golden sonnet
#

i hope they lose

#

i'd take 80% of those off of your hands if you don't wanem πŸ‘€

#

kramer was another level of acting tho

vocal basin
desert vector
#

touche

desert vector
#

340282366920938463463374607431768211456 @umbral cape

forest zodiac
#

discord web is bugged

#

it is not showing who's speaking

#

the green circle that comes when someone speaks

#

it is not there

desert vector
#

@wind raptor just solved it

#

it's shit though all things considered

wind raptor
#

What was your solution?

neon perch
#

That is so true. There is a difference between kindness and niceness.

desert vector
#
int findCenter(int** edges, int edgesSize, int* edgesColSize){
    

    for (int i = 1; i < edgesSize; i++) {

        if (edges[0][0] == edges[i][0]) {
            printf("hey, egdes[0] this works!\n");
            return edges[i][0];
        }

        else if (edges[0][1] == edges[i][1]) {
            printf("hey, edges[1] this works!\n");
            return edges[i][1];
        }
    }

    return -1; // somehow it fucked up
}

I need something better
I must ruminate; this is annoying me now

#

actually, the prints are in the way lol

wind raptor
#

Nice

desert vector
#

there we go

#

slightly less memory usage

umbral cape
wind raptor
#

This was my original solution:

class Solution:
    def findCenter(self, edges: List[List[int]]) -> int:
        return list(set(edges[0]) & set(edges[1]))[0]
desert vector
#

just comparing the first and second elements?

wind raptor
#

taking the intersection of two edges

desert vector
#

I mean, yeah

#

the first two edges, no?

wind raptor
#

yeah

desert vector
#

yeah, that's what got me the first time it looks like

#

the intersection only exists in the first and third set in my tests

wind raptor
#

You only need 2 edges in this example because the edges only connect to the center node

desert vector
#

yeah, which makes sense

#

but

wind raptor
#

maybe the c one is different

desert vector
#

probably not; making different tests for different languages is unnecessary

wind raptor
#

True

shy raft
#

hi guys

wind raptor
#

Hi

desert vector
#

oh, I'm fucking stupid, that's why

wind raptor
#

It's easy to overcomplicate questions

desert vector
#

I'm limiting intersections for the 0th and 1st element to OTHER 0th and 1st elements

#

it'll iterate for longer than needed

wind raptor
#

ohhh

#

whoops

desert vector
#

big whoops indeed lol

#

lemme go fix it

vivid ether
#

yall are dwarfs

desert wolf
desert vector
#

and why do you say that @vivid ether

#

@wind raptor

return e[0][0] == e[1][0] || e[0][0] == e[1][1] ? e[0][0] : e[0][1];

this is apparently the simplest solution in C

#

damn

#

if only I was this wizardrous

wind raptor
#

nice

desert vector
#

indeed

vestal mason
#

it's tough right now

vale scarab
#

hoi

#

@tulip gyro valid

#

you can tell

#

that makes sense

#

home slice

spice escarp
vale scarab
#

welcome to the podcast

spice escarp
vale scarab
#

how was your day

spice escarp
#

every Tuesdays

spice escarp
vale scarab
#

good to hear

#

down the bin just like my calc grades

spice escarp
vale scarab
#

ok

#

so

#

i need some help

#

to test some code

spice escarp
vale scarab
#

@desert wolf as a person that only gets algebre wrong it might be algrebre

vale scarab
#

like some data

#

i need a monologue

#

you know?

spice escarp
#

uhm ok what does the code do?

#

🀨

vale scarab
#

its a dialog system

spice escarp
#

ok and what is problem with it how do you want help.

vale scarab
#

there is no problem i jsut need a funny test to show my friend

spice escarp
#

if I see code I can give good tests

vale scarab
#

its a bit big

spice escarp
#

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

vale scarab
#

yeah i think i put some scuffed stuff

spice escarp
vale scarab
#

i just need a test case

#

aka

#

a monologue

#

let me ask you a question

spice escarp
#

oh unity

vale scarab
#

yeah

#

i just need a monologue

#

the code works perfectly

#

mostly

#

its just a ux thing that bugs me

spice escarp
#

πŸ˜„

#

mhm ux is hard

vale scarab
#

yeah

#

@desert wolf f in the chat

spice escarp
#

@desert wolf I love to code but I lose motivation a lot of times. How can I keep on track and not lose motivation?

vale scarab
#

^

#

its usually the hard bugs that are pain

spice escarp
#

it's not even that

vale scarab
#

no?

spice escarp
#

it just I have no ideas that

#

and when I force myself to code some projects it can feel annoying.

#

πŸ’€

vale scarab
#

i don't think they notice

spice escarp
#

ya lol

vale scarab
#

hm

spice escarp
#

😭

vale scarab
#

how do we get them to notice

spice escarp
#

uhm idk

#

😡

#

they in the podcast

#

mode

vale scarab
#

i have breached the podcast

spice escarp
#

πŸ‘€

vale scarab
#

i wanna be polite

#

and not interupt them

#

but i want to talk

spice escarp
#

mhm

vale scarab
#

how do i go about this

spice escarp
#

...

#

OK heres the game plan

vale scarab
#

ok

spice escarp
#

wait until they end sentence

vale scarab
#

they end sentences fast

spice escarp
#

fr

#

why do they make us write on paper

#

it stupid

#

😭

#

STOKED

#

@desert vector what are you working on?

desert vector
#

a toy language, called Pipp

spice escarp
desert vector
#

to exist

spice escarp
#

🀣

desert vector
#

I just want to make a language and an associated compilershrug

spice escarp
#

fair enough what are you writing it

desert vector
#

C

#

will bootstrap afterwards though

spice escarp
#

is it c syntax langauge

desert vector
#

pardon?

spice escarp
#

like curly braces semicolons

#

all that fun stuff

desert vector
#

of course, yeah

wind raptor
#

Gotta go to bed. Cheers all πŸ˜„

spice escarp
#

c family I think it is called

desert vector
#

night chris!

#

I'm using C itself

#

none of the "descendants"

spice escarp
#

oh wow

#

that's impressive

desert vector
#

not necessarily

#

it's not hard to learn, just hard to build the tools you need
a lot of implementing stuff yourself

spice escarp
#

mhm what resources are you using?

#

/papers

desert vector
#

crafting interpreters, though since my language is going to machine code, it only works as a guide to a certain point lol

spice escarp
#

interesting

#

@vale scarab look in to openxr

#

REST API

#

type stuff

spice escarp
#

htm

#

πŸ’€

#

@tulip gyro KOTLIN

#

it so much better

#

to write

#

SQL is easy

#

πŸ’€

#

i love SQLITE

tulip gyro
#
select co.author_id, (authors.first_name || " "|| authors.last_name || " ("||authors.initials ||")") as full_name, c2.total_written, co.co_authors
from (select t1.author_id, sum(t2.total_authors) as co_authors
from(select * from author_article_join) as t1
    join(select article_id, count(*) - 1 as total_authors
    from author_article_join
    group by article_id) as t2  on t1.article_id = t2.article_id
    group by t1.author_id) as co
join authors on co.author_id = authors.id
join (select author_id, count(*) as total_written
    from author_article_join
    group by author_id) as c2 on co.author_id = c2.author_id
limit 5000 offset {offset};```
spice escarp
#

turing complete

#

named after Alan Turing

#

"For instance, in bagging the random vector theta
generated as the counts in N boxes resulting from N darts thrown at random at the boxes, where N is number of examples in the training set. In random split selection theta consists of a number of independent random integers between 1 and K. The nature and dimensionality of theta depends on its use in tree construction." - Random Forrest

#

explains random numbers

#

in the most complex way

#

that's almost how old I am

#

πŸ˜”

#

pyiodide @vale scarab

#

super slow

#

tabular = relational

#

@spark kettle

#

!d lambda

wise cargoBOT
#

An anonymous inline function consisting of a single expression which is evaluated when the function is called. The syntax to create a lambda function is lambda [parameters]: expression

spice escarp
#

yes

#

they are

#

in python

#

they are anonymous

#

async is awesome

#

my ip 127.0.0.0

#

😀

fiery juniper
#

damn mine is 0.0.0.0

spice escarp
cobalt cloak
#

hello

scarlet halo
stuck furnace
#

Can I talk to you about our lord and saviour object oriented programming?

#

Composition just means like combining things together into some kind of structure.

#

1 is an atomic expression. 1 + 1 is a composite expression.

#

42 is an atomic data value. (1, 2, 3) is a composite data value.

#

A class conceptually is a set of values that have similar structure/behaviour.

#

1, 2, and 3 are members of the int class. "hello" and "world" are members of the str class. All of those objects are members of the most general object class.

#

@spark kettle this

#

Chalk dust

#

Β―_(ツ)_/Β―

#

Hagomoro I think? πŸ€”

tulip gyro
gentle flint
stuck furnace
#

Do it yourself? πŸ˜„

#

Nice. Usually you need to top up the pressure in the system afterwards though.

#

Cya πŸ‘‹

gentle flint
#

yeah, usually
but this is district heating

#

so the pressure is supplied by the city

gentle flint
stuck furnace
#

Ah right ok

hallow pond
#

anyone knows what to do with this problem?

#

checking whether the C compiler works... no
configure: error: in /mnt/d/python/MyApps/Hagz_app/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libffi/arm64-v8a__ndk_target_21/libffi': configure: error: C compiler cannot create executables See config.log' for more details

#

i use buildozer to convert python and kivy to apk

#

and subsystem ubunto

somber heath
#

Fix that and you can deal with the next problem.

#

Then the next.

#

Then the next because it's Buildozer.

#

etc etc

#

Just keep reading the logs and error messages and keep figuring out what it snags on.

#

If you get stuck, talk to the Kivy Discord.

#

@turbid ridge πŸ‘‹

turbid ridge
#

yo

#

I've now realised this server has that thing where it doesn't let you vc unless you're lvlNaN

somber heath
#

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

turbid ridge
#

probably message requirements

#

I don't use messages on servers

#

I just vc honestly

#

I do hate those people but I hate voice verification systems more

#

I feel like it's a difference in personality between me and you

#

my priorities are in perfect order from my pov

#

"Have messages from three different ten-minute blocks" also what do they mean by this?

#

fair enough but "spam" is a very loose term

#

what I'm doing rn could be considered spam if it's a speed limit thing

#

I would agree but you can see my point