#voice-chat-text-0
1 messages Β· Page 205 of 1
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
!voice π
i do all the tuning
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
i cant
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
spooky
No more. I'm getting creeped out.
is this the uks underworld prison called Austrelia?
Maybe.
They also go to school in Kangaroos.
oh damn that sound fun actually
They also have dropbears. You gotta be careful because they could just drop on you and kill you.
Theyre a problem here especially in the outback.
Computer hardware or delicious sweet? You decide!
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?
@worthy blade π
cpu benchmarks and ram limit seem to be at around a quarter of what I use for development
Hii oops sorry
there's also this which costs like two rpi5s
https://www.hardkernel.com/shop/odroid-h3-plus/
and it's not ARM
but that cost doesn't include RAM, storage, etc.
total would be ~twice as much, I'd expect
@somber heath π
Use your webcam to detect and solve any 9x9 sudoku - GitHub - tfeldmann/Sudoku: Use your webcam to detect and solve any 9x9 sudoku
@storm furnace π
@obsidian dragon you also check this out
@somber heath hi
nani?
yo
hi
hii
ε¦ζͺ
youkai
There is an anime named youkai watch
I don't know who to trust anymore
I'm just gonna trust myself
haha
Hey yarsh
@frozen owl
which language you are using ?
Put imports before module declarations.
https://doc.rust-lang.org/nightly/style-guide/items.html
Ahh rust
rust
it took me way too long to find this first time
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
updated!
can someone please read :D
idk if i mis-implemented anything
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
i see
this one @vocal basin
this probably shouldn't be a part of the program
https://gist.github.com/andreaslam/389db5d8c17c66ed53c3ad8eb8f30d09#file-main-rs-L18
main.rs line 18
env::set_var("RUST_BACKTRACE", "0");```
lol, sometimes, i put a 1 in there
but it got messy
i'll del it
but sometimes i find it useful
@rugged root in something like C#, modules are auto-defined from file structure
but Rust avoids this type of implicitness
this extends panic messages
Right
i think i see the problem
would be stopping rather than killing
https://gist.github.com/andreaslam/389db5d8c17c66ed53c3ad8eb8f30d09#file-pool-rs-L35
pool.rs line 35
// check if kill threads or not???```
||you're using rust||
ecks dee
don't get crabby when you fail to use it then
tmi but first ||pp touch|| wonderwall was playing
tee hee
most memorable part she goes "anyway here's wonderwall"
@olive hedge I found a gif of you
doesn't this cause busy loop if the condition is false?
https://gist.github.com/andreaslam/389db5d8c17c66ed53c3ad8eb8f30d09#file-pool-rs-L20-L27
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);
});
}```
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
even then, this is incorrect
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
I guess, you need to check after fetch_add
@frozen owl >unfuck
Have you considered a trip to Planned Parenthood?
That reminds me, I have my monthly checkup there tomorrow...
As should anyone who is.....active.
ah, nvm, manage is not race-conditioning since it's ran only in one thread
I want to add that planks will not give you abs. You need to not-eat to get abs.
Not-eating is effective at revealing abs even if your abs are weak on "ab" exercises.
in fact, i'd say it's the easiest way to show abs
I would use something like this instead of writing my own thread pool
https://docs.rs/easy-parallel/latest/easy_parallel/
Run closures in parallel.
alright i'll read it
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
What python package do I need to pip to reveal my abs?
pip install pyabs
unfuck.exe
https://youtu.be/qC_ioJQpv4E?t=121
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...
specifically python brand
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...
ok but the code i'm rewriting is legitimately trash π©
Everyone writes trash code from time to time
Is that for sanitation engineering or something?
we just have to be open to accepting that
my coworker is not lol
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
weekly releases π
On a Friday afternoon
the final example is funny and too realistic
except in reality no one is going to let you refactor
legit
great way to have on call weekends
this is brilliant lmao
"so I sent the support person unfuck.exe"
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]```
[None,None,None,None,None]
is incr returning the new value?
maybe it used to be used?
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)```
> str % ...
*deathd*
ecks dee
The real reason I don't like % formatting is I keep assuming modulo
"aaaaaaaa" % "aaa" is "aa"
wait
The community bot for the Python Discord community - python-discord/bot
!e
print("aaaaaaaa" % "aaa")
aa moment
@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
109 messages since 16:45 or something
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
> Flask
laughs in SpringBoot for Groovy
fun fact: alisa has no roles
CLI+HTTP -- good way to harm performance
both of which were calling a pipeline that itself was calling an external REST API
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"
pydis_core/_bot.py line 107
self.stats = AsyncStatsClient(loop, statsd_url, 8125, prefix="bot")```
CGI was a mistake that is bound to repeat
async with good; still waiting for Rust to have something like that
I take great offense xD
I'm just saying you're stylish, homes
take great defense instead
hemlock is not gonna stop hitting you with bangers
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}"
!fstring
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.
I've got that cowboy chic
somebody.let { s ->
People().let { f ->
f.children.add(s)
s.parent.add(f)
}
}
``` I guess this is the closest we'll get
Rust's idiomatic way to do with is Drop
but that doesn't work with async
would this be better @vocal basin
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;
Drop the_mic
wait, since when? ive always had problems with different types. (or im just imagining and instead im being stupid and using the + )
f-strings have been around since 3.6
Disposes of a value.
They're my favorite feature
pub fn drop<T>(_x: T) { }
oh sorry i was reading this:
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.
damn.
Just concat and the c style that won't
never knew
I think
The JavaScript f-string equivalent is nice.
let x = 5;
console.log(`The value of x is ${x}`);
${} is always nice
not sure what the purpose is, so for now testing whether it works should be enough
Is the comma here separating elements of the list or is it running the "value" through the for loop?
for key, value
@rugged root depends on implementation
separating
there is no pooling in Rust itself
!e
x, y = 1, 2
print(x, y)
@desert vector :white_check_mark: Your 3.12 eval job has completed with return code 0.
1 2
it's in crates
So where is "key" coming from?
!e
d = {"string": 1}
print(d.items())
@desert vector :white_check_mark: Your 3.12 eval job has completed with return code 0.
dict_items([('string', 1)])
either
- spawn maximum number of threads at the start -- memory penalty
- spawn on demand -- CPU penalty
not sure what the purpose is
this is a proof of concept for a multithreaded simulation (which uses neural nets and sometimes the simulations need forward passes)
but yeah i hope my proof of concept works
i choose 1
idk sounds like red/blue pill /j
where? ( @rugged root )
dict items gets a view now?
since when
Rust is against making such choices
fyi trying to make alphazero clone in rust
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
so "checks.items()" returns a, uh, datastructure with "key, value" things in it and the for loop goes over these things?
thread::spawn + sync::mpsc as was done initially
Thought that's always how it's been
its?
Whatever
Know what I mean, not what I say
stru (4 chars) vs struct (too many chars for me to count)
do like C++:
[](){}()
capture nothing, take nothing, do nothing, call with nothing
@rugged root
So you can write a for loop with the stuff in front of the for and no colon?
i like code golfing but my handicap is so fucking high
what I would do:
create two queues:
main to threads
threads to main
spawn N threads
each receives a control message from main
processes it
sends out events to the main
"the stuff"= the repeated code in the loop
const func2 = (x, y) => {
return x + y;
};
is my preference tbh
what's wrong with using threadpool struct?
it would be a thread pool anyway
why? i thought threadpool good
gtg boys and girls and everything inbetween
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
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?
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)})
@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}
im following something like this @vocal basin
actually im following that but the diagram was not updated
yeah, this involves messaging, just as arrows show
you're trying to train it, not play a single game at a time, right?
no
this is not the training loop
the training loop is in py
this is data generation
vue is newer
ie, playing games for training data
you can make "playing games" single-threaded then
at least, that makes it simpler
multiple threads, thread per game at a time
oldest one is angular after that react come
there is also AngularJS/Angular separation
but i still think the threadpool solution might work?
vue is mixture of angular and react
like the Threadpool crate
wdym "just for scheduling" i thought all im doing is to allocate GPU resource to incoming requests?
as in not having to call thread::spawn manually
@willow light
and then you also have to choose async runtime
in something like Rust
iirc, Python has that too, somehow
alternative asyncios
gevent and friends?
yes
??? i thought we spawn a fixed number of threads (say 10) and then we let the Threadpool crate take over the scheduling?
I still know people that are so damn adamant on not using the built-in asyncio lol
thread pool is supposed to be the part responsible for spawning and managing the thread
hell is written with yaml
so doesn't that lib abstract all my problems?
some problems
i still dont fucken get it
thread pool just abstracts away this:
do N times:
spawn thread doing:
receive job
do job
send result
yes
@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]
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?
yeah, the original code that was discussed is likely using comprehensions incorrectly
I predict dd to run out of memory in 20 seconds maximum.
as in it should not be a comprehension
but that's what i want right?
maybe
try building what you're building on top of it
if it fails, try message-based approach instead
Just because the Angry Video Game Nerd's presentation of Super Mario 3 includes this crazy battle doesn't mean it has to make sense.
AVGN episode 46 (minus this crazy battle sequence): https://www.youtube.com/watch?v=Ua77xx74Hs8
The following bonus link contains a section discussing deadly sins (something briefly mentioned in this video): http:/...
it is like "I don't want to use tokio in Rust" but more extreme
@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
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
@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]
did you mean for this to match odds or?
https://kotaku.com/the-notorious-board-game-that-takes-1500-hours-to-compl-1818510912 well now i really want to get this game
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β¦
yes, just to demonstrate the difference between different if locations
But you'd have to waste skill points to do a prestige class
That was a little flavorful
@rugged root
> obfuscation which gave them ...
which gave them a job at proprietary software company
Six Degrees of Cain
@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]
?
Latter would be correct
I don't think the former is valid
I think if has to come at the end
!e
print([x for x in range(5) if x % 2])
^^^^^^^^ filter
print([x if x % 2 else continue for x in range(5)])
@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
continue/break don't work inside comprehensions
Is this supposed to be difficult to use on purpose?
else also doesn't work in list comps
it's limited
else works in expressions
Why the fuck does it break that usage of loops because you are formatting it differently. That seems dumb
it's not a loop, semantically
It's closer to a map, right?
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)
@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
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
!d operator
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:
go searching :D
!d operator.length_hint
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.
!e
from future import braces
@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
Following on from "The History of Programming, Part 0", which covered 50CE to 2017, we take a look back at what happened in the world of code in the first half of the 21st century, including:
C#s 8 through 42
Java 11
The Great Monad shortage of 2025
The First and Second Python Wars
That time America just went ahead and elected a Russian bot for ...
Looks beautiful
Hello World in Python 6
{
println!("Hello World!");
}
from __future__ import console
console.log("Hello World")
def main()
"definitely main"
from __future__ import public, protected, private, static, void,
from __past__ import input
eval(raw_input())
ecks dee
docker run python:2
helloworld.asm
finally
@willow light the talk was at the time of release >90% fiction
this was scheduled for 2030~2040
webweb
The time zone in Ethiopia is East Africa Time (EAT) (UTC+03:00). The IANA time zone database identifier is Africa/Addis_Ababa.Ethiopia does not observe daylight saving time.
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.
OMG_I_cant_remember_what_its_called_now would be a funny name for a package.
My pull-up bar is also a sit-up bar and a pushup bar
the whole point of sit-up is not using feet as leverage
it reduces its effectiveness
I'm not. I'm using my gut. This just stops my feet from flying into the air when I go back down.
How you do a sit-up is irrelevant, as long as you do a sit-up at all.
no.
one works on your hip flexors. the other works on your abdominals
no what
And not doing a sit-up at all works on neither
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
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.
when your feet have leverage its your hip thats gonna do the pulling not your abs
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.
I'm just doing ab exercises to feel something at all
Hot take
Even though I use my arms and legs far more.
For the initial sitting up part yeah
But I will die on the hill that doing exercises "wrong" is still better than not doing exercises
> leaked memory on each action
"someone forgot to put using on DB connections"
Do you do pull ups?
I think it was in this same talk
too lazy to find the timestamp, so here's the very compressed clip
its not about doing something wrong
its about working out smart
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.
its the reason why alot of people go in the gym following youtube shorts whom dont achieve anything in months
If you watch youtube shorts then you are even less informed than if you left that app closed.
Building habits is important. Getting a routine. Improving the effectiveness of the routine is the easy part.
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.
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.
having a list of certain habits and following them daily sounds boring=
This is entirely because going to the gym involves being around other people. Fuck that.
You need to schedule it. Make it a regular part of your schedule.
p90c is a home workout
Being around other people is just an invitation to get physically attacked.
Which is what happened whenever I went to the gym growing up.
It is still extremely intense and will preserve your muscle mass while you diet.
I would prefer workouts that don't require me buying anything else. Or worse, subscriptions.
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).
you can lift tyres if your want to
If you have them
Ok, this guy is a genius. To get around Beach Body copyright he just shot the videos over in his home gym.
Lower production value but you get the basics:
Beach Body is a great company offering programs like P90X, but they can't compete with my videos in one important way...
NORAAAAAA!!!
Does he at least explain the why in addition to the how?
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.
you realize stretching prevents injuries
Wait the soreness is supposed to happen? I needed an ibuprofen to get to work last time.
DOMS is not an injury
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.
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...
istg i had this a lot
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.
so i need to wait 3 days tho
3 days is nothing
all good
I've been here for 4 years. 3 days is barely anything.
Coding anything new?
> the only way to avoid it
well, not only
another is not doing it at all
There should be one-- and only one --obvious way to do it.
your mom
cool so I'm no longer the only disappointment in her life
I finally know how much I'm going to get paid
after three months of work + one month since now
yay
is this server the official server for python lung ?
We're the closest there is. We aren't run by the PSF, but we do events with them from time to time
depends on the definition of "official"
it isn't "official" but it's the most official Discord one
I need assistance with a decision
This zygarde is giving me more difficulty than the last legendary i caught
What's the issue?
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
Is a "story" like some corporate speak from JIRA or something?
not exactly
but you need to take screan shott at least 60 fps so you can test ever frame
"As a user, I want this functionality, so I can do this task"
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
like valorant as example
wait, I've hear this one before
I see that particular request at least twice a day on #python-discussion
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
Just introduce the Beaver's natural enemy: the sausage
and also @rugged root a symbolic algebra library for Racket because I know how much you love lisp https://github.com/jbutcher5/sym-rkt
Contribute to jbutcher5/sym-rkt development by creating an account on GitHub.
tonsils
hopefully I'll be able to implement factorisation, symbolic differentiation and integration
no i think its because of drinking cold water.
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.
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.
gosh my chest.
What about tonsil croquet?
I'll leave it to the French
Tonsil curling might be interesting
uh no
Better than tonsil shuffleboard
Tonsil Ski Jumping
Tonsil wreck diving
Wreck diving is not a Winter sport! You can't do that on Tonsils!
You'd need the jejunum for that.
You can go wreck diving in the winter. Just wear a dry suit.
AFK for a few minutes
.wa 2 lbs to kilos
.wa 2 pounds in kilograms
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
halp
still for sale on the website
https://www.imagesco.com/geiger/uranium-ore.html
Get ratio'd?
Apple glass is the new nerd pocket protector
For a while, tesla was. Then the normies showed up.
I'd say this is the pocket protector
The only console I have is a Tiger Electronics pinball game
Oh god I haven't thought about the Tiger handhelds in a long time...
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...
Call that a Foodhold
Skillet? Frying pan? You mean a Foodflat?
Foodflat
Never heard that one before
pot looks well used
It was my grandmother's
lotta love
And here's my frying pan
so wide
induction stove or electric ?
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.
Their tea is actually pretty good
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.
Florida is tropical AF
Also wasn't tea from China originally?
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
!e
print("hello World?")
@frigid obsidian :white_check_mark: Your 3.12 eval job has completed with return code 0.
hello World?
I may need more than this though
[self.bot.stats.incr(f"voice_gate.failed.{key}") for key, value in checks.items() if value is True]
stuffed peppers?
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
ah
I have roast peppers stuffed with couscous and topped with cheese
I prefer stuffed artichokes
So how many of my ghost peppers should I add to the sauce
do you have a recipe
tracemalloc
@rugged root I'm on your ass
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...
This is the recipe I use
Myfanwy
SiobhΓ‘n
I can't chat for some reason
Check out the #voice-verification channel
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
hey
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
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,
}
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
What is the difference between if x is True and if x while we're here?
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
!code
you want init and not int
!e print(True is True)
@desert vector :white_check_mark: Your 3.12 eval job has completed with return code 0.
True
!e
x = 5
assert x
assert x is True
@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
!e
l1 = list(range(3))
l2 = list(range(3))
print(l1 == l2)
print(l1 is l2)
@desert vector :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | True
002 | False
Hokay, so
I'm trying not to use chatgpt becuase I actually want to know this stuff lol
Good
Good good good
You good if we start from the top on classes?
Just give you the rundown and what have you
import os
import requests
requests.get(os.path(base_path, endpoint))
That's incredible how Python do all the job for you
HAHAHAHAAHAHAHAHAHA
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
more like or,
some methods/attirbutes only apply to an instance
How do you mean?
I get that
but I is there an indent issue or something
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):
hmm
ohhhhhhhhhhhhhhhhhhh
I that now
so I mistypes the init part and I had syntax errors
You'll run into another issue since the show_balance block is empty
Right right, just force of habit to point it out
!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
@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'
Um, actuwuwy

I hate myself for typing that
.uwu
i hate mysewf fow typing that
.uwu
um, a-actuwuwy
Shall I add some of this
Which squash is that?
delicata
I like to cut it into half moons and roast on a sheet pan. great alternative to french fries.
hi
How goes it
im kinda lost
What's up?
just hearing
Yeahhhhh
This is pretty standard
It'll just jump around
Although programming does come up most of the time
what abour moby dick
Hi @rugged root !
How's it going
going very well, currently learning classes in python, and I'm stuck
william shakespeare?
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!
GTG I'll be right back
You can ask in here or you can use the help system (see #βο½how-to-get-help for details on that)
can't find the "new post" thing
#1035199133436354600 Should be in the top right hand corner of that channel
big blurple button
thank u! finally posted one
Make builtins like max work with your classes.
β mCoding with James Murphy (https://mcoding.io)
Source code: https://github.com/mCodingLLC/VideosSampleCode
SUPPORT ME β
Patreon: https://patreon.com/mCoding
Paypal: https://www.paypal.com/donate/?hosted_button_id=VJY5SLZ8BJHEE
Other donations:...
In this Python Object-Oriented Tutorial, we will be learning about special methods. These are also called magic or dunder methods. These methods allow us to emulate built-in types or implement operator overloading. These can be extremely powerful if used correctly. We will start by writing a few special methods of our own and then look at how so...
I think it came out well
That is damn good ravioli. Truffled mushroom and onion ravioli
@jaunty turret
It's like Express except Pythonic instead of JavaScriptish
@jaunty turret we're in here
...why
lmfao
idek
colloquially walking around at the speed of fast
@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
Pale Moon is an Open Source, Mozilla-derived web browser available for Microsoft Windows and Linux, focusing on efficiency and ease of use.
dict1 = {"Hello": "Bye", "Apple": "Banana", "A": "b", "a": "B"}
print(dict1.keys())```
list(dict1)[0]
Don't even need to specify .keys()
>>> 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'}
I'll catch you later guys
Got it thanks so much!
!kindling
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.
π
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 π΅
@desert vector https://nextchessmove.com/
Drag pieces to configure the board and press Calculate next move. I'll tell you what the computer player does.
ah ye there's also lichess
https://lichess.org/editor
then analysis board to solve
Load opening positions or create your own chess.Position on a chess board editor
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
next(iter(dict1))
340282366920938463463374607431768211456 @umbral cape
discord web is bugged
it is not showing who's speaking
the green circle that comes when someone speaks
it is not there
What was your solution?
That is so true. There is a difference between kindness and niceness.
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
Nice
print (hello world)
This was my original solution:
class Solution:
def findCenter(self, edges: List[List[int]]) -> int:
return list(set(edges[0]) & set(edges[1]))[0]
just comparing the first and second elements?
taking the intersection of two edges
yeah
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
You only need 2 edges in this example because the edges only connect to the center node
maybe the c one is different
probably not; making different tests for different languages is unnecessary
True
hi guys
Hi
oh, I'm fucking stupid, that's why
It's easy to overcomplicate questions
I'm limiting intersections for the 0th and 1st element to OTHER 0th and 1st elements
it'll iterate for longer than needed
yall are dwarfs
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
nice
indeed
it's tough right now
π board
welcome to the podcast
fr
how was your day
every Tuesdays
good
π
send
@desert wolf as a person that only gets algebre wrong it might be algrebre
i need more of a test case
like some data
i need a monologue
you know?
its a dialog system
ok and what is problem with it how do you want help.
there is no problem i jsut need a funny test to show my friend
if I see code I can give good tests
its a bit big
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
c#?
oh unity
yeah
i just need a monologue
the code works perfectly
mostly
its just a ux thing that bugs me
@desert wolf I love to code but I lose motivation a lot of times. How can I keep on track and not lose motivation?
it's not even that
no?
it just I have no ideas that
and when I force myself to code some projects it can feel annoying.
π
i don't think they notice
ya lol
hm
π
how do we get them to notice
i have breached the podcast
π
mhm
how do i go about this
ok
wait until they end sentence
they end sentences fast
fr
why do they make us write on paper
it stupid
π
STOKED

@desert vector what are you working on?
a toy language, called Pipp
what is its goal?
to exist
π€£
I just want to make a language and an associated compiler
is it c syntax langauge
pardon?
of course, yeah
Gotta go to bed. Cheers all π
c family I think it is called
not necessarily
it's not hard to learn, just hard to build the tools you need
a lot of implementing stuff yourself
crafting interpreters, though since my language is going to machine code, it only works as a guide to a certain point lol
htm
π
@tulip gyro KOTLIN
it so much better
to write
SQL is easy
π
i love SQLITE
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};```
not bad at all
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
@tulip gyro https://pyscript.net/
Run Python code in your HTML.
super slow
tabular = relational
@spark kettle
!d lambda
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
yes
they are
in python
they are anonymous
async is awesome
my ip 127.0.0.0
π€
damn mine is 0.0.0.0
π
hello
oh crap didnt mean that
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 
Chalk dust
Β―_(γ)_/Β―
Hagomoro I think? π€
Do it yourself? π
Nice. Usually you need to top up the pressure in the system afterwards though.
Cya π
all I need to do is bleed the air occasionally
Ah right ok
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
I'd be reading config.log.
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 π
yo
I've now realised this server has that thing where it doesn't let you vc unless you're lvlNaN
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
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

