#voice-chat-text-1

1 messages · Page 14 of 1

atomic hinge
#

i gavt it this ('','1d6")

#

it reterned this (side = '' '',"1d6") it shoud be this (side=6)

#

do you see?

atomic hinge
#

sided sorry

delicate wren
#

are we actively creating time paradoxes?

atomic hinge
#

??

delicate wren
#

what's on the stream

delicate wren
atomic hinge
#

yes?idk????

mild flume
delicate wren
#

no ")"

mild flume
#

"pourly" instead of "poorly"

delicate wren
#

reliable backup storage

mild flume
#

Dude what is the resolution on your computer

atomic hinge
delicate wren
#

I'd rather not bother enabling the desktop icons

delicate wren
#

I just always use shift+del

mild flume
#

Same

delicate wren
untold plank
#

@delicate wren hi

pale pivot
misty sinew
#

who?

#

halal and vegan do not go together smh

#

but still keep it halal ...

#

not haram

#

I am not vegan smh

#

neither

#

why not

#

sus

#

do you already like me or some shit

#

that was so quuick

#

Intriguing thinkmon

odd blade
#

heyhey

pale pivot
#
print_statement->expr = consume_wrapped(TokenType_Lparens, TokenType_Rparens, [&]() {
      parse_expression(...)
});
delicate wren
#

@ornate cobalt try recursive wildcard imports

#

PyCharm will meltdown after 2~3 levels

#

and that's python only

delicate wren
#

@candid garnet colours are derived from usernames, probably

#

VC default backgrounds are procedural-ish too

#

at some point, resizing the window was almost enough to change it (because sampled locally)

untold plank
#

@delicate wren Yu did you change your username?

delicate wren
#

more than once

untold plank
delicate wren
rotund lodge
#

guys i am not gay change python

#

img

delicate wren
untold plank
#

its was quit hard to find

delicate wren
#

I have no one from this server in the friend list since I re-joined last time

untold plank
#

ok

untold plank
#

on what stuff you guys are working on?.

delicate wren
misty sinew
#

@umbral rose what you coding?

green bridge
#

y cant i speak

misty sinew
#

ah shit

#

well here i am now

#

seen you in vc for quite a while

#

whatre you doing

#

i see

stone pumice
#

a french can help me

#

pleaase

solid gyro
#

the French can't help anyone

agile ice
#

@stone pumice

plain dune
mild flume
#

!stream 1034215559220432916

coarse hearthBOT
#

✅ @misty sinew can now stream until <t:1686680427:f>.

mild flume
plain dune
mild flume
pseudo raven
#

Kryptos is a sculpture by the American artist Jim Sanborn located on the grounds of the Central Intelligence Agency (CIA) headquarters, the George Bush Center for Intelligence in Langley, Virginia. Since its dedication on November 3, 1990, there has been much speculation about the meaning of the four encrypted messages it bears. Of these four me...

mild flume
pseudo raven
mild flume
#

Actually I wonder if Intel makes any kind of RISC chips...

pseudo raven
smoky lark
umbral rose
#

!stream 360284932469293056

coarse hearthBOT
#

✅ @atomic hinge can now stream until <t:1686696952:f>.

umbral rose
#

!e

x = 0

while x < 10:
    x += 1
    if x < 5:
        continue
    print(x)
coarse hearthBOT
#

@umbral rose :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 5
002 | 6
003 | 7
004 | 8
005 | 9
006 | 10
#

@candid garnet :white_check_mark: Your 3.11 eval job has completed with return code 0.

laptop1
#

@candid garnet :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | laptop1
002 | smartphone03
sly thicket
#

!e

x = 0

while x < 10:
    x += 1
    if x < 5:
        pass
    elif x >= 5:
        continue
    print(x)
coarse hearthBOT
#

@sly thicket :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 1
002 | 2
003 | 3
004 | 4
umbral rose
#

The first if is not needed

sly thicket
#

this exemplifies the difference between pass and continue

pass will make the loop keep running until the end, continue will stop the iteration and back to the start of the loop

umbral rose
#

ahh

#

I should have waited

sly thicket
#

no problem

#

!e

from keyword import iskeyword

print('hello'.isidentifier(), iskeyword('hello'))
print('def'.isidentifier(), iskeyword('def'))
coarse hearthBOT
#

@sly thicket :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | True False
002 | True True
sly thicket
#

!e

class Foo:
   def __init__(self, x):
       self.x = x
   def __add__(self, other):
       """ Overrides the + operator to behave like * operator """
       return self.x * other

foo = Foo(10)
print(foo + 10)
coarse hearthBOT
#

@sly thicket :white_check_mark: Your 3.11 eval job has completed with return code 0.

100
coarse hearthBOT
#

:incoming_envelope: :ok_hand: applied timeout to @candid garnet until <t:1686704558:f> (10 minutes) (reason: emoji spam - sent 41 emojis).

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

umbral rose
#

!unmute 924010347264897024

coarse hearthBOT
#

:incoming_envelope: :ok_hand: pardoned infraction timeout for @candid garnet.

umbral rose
#

!stream 385253945674563596

coarse hearthBOT
#

✅ @fresh isle can now stream until <t:1686711267:f>.

umbral rose
#

!stream 385253945674563596

coarse hearthBOT
#

✅ @fresh isle can now stream until <t:1686712140:f>.

delicate wren
#

wrong in Rust

#

(last ones are expressions not statements)

#

errors in:
- Algorithm
- Comment
- Debugger
- Exception
issues with:
- float
- function
- global variable

#

errors in:
- Method (in python)
- Notebook
issues with:
- IDE
- Interpreter

#

errors in:
- Parsing
- Programming
- Return statement
- Syntax error
- Tuple
- Type error (correction because it sounds funny: error that results from using the wrong data type or using the given data type wrongly)
issues with:
- Syntax

delicate wren
#

other two are expressions not statements because they are can be used as values (and have an explicit type)
if-else's type can be anything
if's type is ()
return's type is !/Infallible

delicate wren
#

and loop is different from for because it can be of any type

delicate wren
delicate wren
#

in Python, if/for are parts of an expression too

#

(ternary and comprehensions)

pseudo raven
#

🦜

uneven rock
#

if the quene is a list, perhaps reassements can be done if the quene becomes a list of list.. i say no more to hide all further usage id could suggest from that.

stuck bluff
#

@elder wraith

#

@mild flume

halcyon notch
mild flume
#

This is the face of someone who would fart in the car and lock the doors and windows

#

While staring at you with that expression

#

@stuck bluff We're getting noise from you my friend

stuck bluff
#

Oh ffs. Krisp turned off by itself.

mild flume
#

All good, don't sweat it

#

I just want to make sure my morels align with yours

#

🎶 This is the song that never N's 🎶

#

Oh no wait

#

🎶 This is the sog that ever N's 🎶

azure sierra
#

Crazy

#

yes

#

Wow that's!?

#

or money

azure sierra
#

oh

#

rip

#

lol

#

yes

#

lols

pale pivot
#

scratchensniff

#

Love it

azure sierra
#

cat pics?

#

aw

#

Rip friendship

mild flume
#

@misty sinew Yo

misty sinew
#

greetings

azure sierra
#

hi there

#

oh

misty sinew
azure sierra
#

did he drop it?

#

yes

#

or drinking

azure sierra
#

did you see the ai car get pulled over?

hollow bay
azure sierra
hollow bay
#

yeah i saw this i died from this

#

it was incredibly funny to me

heavy sphinx
#

can someone share a good resume template ?

azure sierra
#

yes it was

mild flume
heavy sphinx
#

or a good source to build one

i am thinking to rebuild my resume

mild flume
#

Might be pinned?

#

Can't remember

heavy sphinx
#

ahh oki

hollow bay
#

a work history could be a 2 hour montage of you writing out what should have taken 2 mins.

azure sierra
#

tailes

#

lol

stuck bluff
#

"The patient needs more mouse bites."

azure sierra
#

no go

azure sierra
#

all of us

stuck bluff
#

You do the inhaling face.

#

"I am showing you my nostrils and my open mouth, this indicates I'm about to speak. I may also gesture."

azure sierra
#

good luck

#

monoty

stuck bluff
#

@halcyon notch The most intelligent people are often shit at life.

#

Artists, same deal.

elder wraith
#

Still on this?

stuck bluff
#

Tail end.

#

For now.

azure sierra
#

oh

#

i did not press the button

#

it broke

stuck bluff
#

The way I look at it is, parts of the brain go brr, and the rest of it goes ahh as a result, and everything collapses, like high power fuel in a stock engine.

#

You were saying you weren't intelligent, I think. I was meaning to disagree with what you said, but I have sneeze brain.

mild flume
stuck bluff
#

I sneeze, I sneeze again, I sneeze forever.

azure sierra
#

my stable diffion broke for a sec

stuck bluff
#

@mild flume I was just thinking Gatorade because of the salts.

mild flume
#

Yep yep

#

But I was more thinking margarita salt

ember stream
halcyon notch
#

I had this

jaunty turtle
#

lol

ember stream
azure sierra
#

need to restart pc brb

#

it fixed now

pale pivot
#

what are you running SD on?

azure sierra
#

rtx 3060 12gb

stuck bluff
#

If you have computers in your shoes and you need to restart them, is that called rebooting?

azure sierra
#

he is dying

stuck bluff
#

I'd be surprised if there weren't bluetooth pedometers built into shoes.

#

Hm. Pedometers for shoes.

#

Not so much built in.

azure sierra
#

to lazy

#

....

#

it's like ......

misty urchin
#
class NumArray:

    def __init__(self, nums: List[int]):
        total = 0
        self.sums = [(total := total + x) for x in nums]

    def sumRange(self, left: int, right: int) -> int:
        return self.sums[right] - (left and self.sums[left - 1])
azure sierra
#

\

misty urchin
#
class NumArray:

    def __init__(self, nums: List[int]):
        self.cumulative_sums = [0]
        cumulative_sum = 0
        for num in nums:
            cumulative_sum += num
            self.cumulative_sums.append(cumulative_sum)

    def sumRange(self, left: int, right: int) -> int:
        sum_before_range = self.cumulative_sums[left]
        sum_after_range = self.cumulative_sums[right + 1]
        return sum_after_range - sum_before_range
azure sierra
#

dam tts

#

oh god it reads the code

mild flume
azure sierra
#

yes

stuck bluff
#

Mom said it was my turn with the brain.

azure sierra
#

i use tts to read chat

stuck bluff
#

@misty urchin What's the question?

azure sierra
#

Go faster

mild flume
#

@solid gyro 'ello

azure sierra
#

realy

#

i hear that?

#

yes that's what i head

ember stream
#

be back soonish.

misty urchin
azure sierra
#

wow

#

what?

#

lol

#

amazon locked a person out of there house for a week

mild flume
#

HA

#

How goes it

brittle raft
#

Hey ppl

mild flume
#

How's it going

azure sierra
#

can you give me a random hex color?

mild flume
#

000001

brittle raft
mild flume
#

That and the language that mustafa wrote

brittle raft
#

okay, i see

azure sierra
#

nice

#

thanking about hair style and eye color

raven orbit
azure sierra
#

ha

#

work with brain cells to

raven orbit
azure sierra
#

yes

#

Rip

stuck bluff
#

Spelled Bucket.

azure sierra
#

what ?

#

my brain

stuck bluff
#

Still, if you clean out the gunk, free bottle.

#

Well, spare.

azure sierra
#

it will kill you

#

what you aare talking abnout

#

q

#

not bad

raven orbit
#

Protein poisoning (also referred to colloquially as rabbit starvation, mal de caribou, or fat starvation) is an acute form of malnutrition caused by a diet deficient in fat and carbohydrates, where almost all calories consumed come from the protein in lean meat. The concept is discussed in the context of paleoanthropological investigations into ...

elder wraith
mild flume
misty sinew
#

hoi

#

Hello

#

I'm amazing.

wary fable
raven orbit
wary fable
raven orbit
raven orbit
#

that's a very shy bear

wary fable
#

There is considerable overlap in intelligence between the smartest bears and the dumbest people

#

Which is why bear-proof trash cans are actually impossible

mild flume
#

untrammeled

ocean orbitBOT
#

a fishing net with three layers; the outer two are coarse mesh and the loose inner layer is fine mesh

wary fable
#

Lobstahs

mild flume
#

Erh mah gurd, lurbsturs

raven orbit
#

woodworm

wary fable
#

This is a camping version of a Moka pot

hearty heath
#

You take parasciutto for skydiving ¯_(ツ)_/¯

#

I'll leave

mild flume
#

Nope, you stay

wary fable
#

Time for some therapy

#

I’ll join this sunburn party

#

Yes I lost the genetic lottery for my hairline at 30

#

Actually want that asap

tranquil drift
#

handsome

mild flume
#

Right?

raven orbit
wary fable
#

Amateur numbers

tranquil drift
#

not mobile but still lol

#

usually like a TB so this is low

mild flume
#

How

tranquil drift
#

twitch stream + discord stream + game + streaming to discord all at once every day after 5

#

might be that

mild flume
#

Fair

wary gazelle
#

I don't go over 100G a month unless I watch 4k movies

#

hhhhhhhh

#

@candid garneti cnat talk

#

what are u doing ?here

#

I did not meet the voice requirement

#

yes hhhhh

delicate wren
#

I have no clue how

wary gazelle
#

I chatted privately with my friend yesterday, but I kept failing to connect. Later, I created a new server, and he joined the call. Have you ever encountered this problem?

delicate wren
#

DM calls certainly have some issues

wary gazelle
#

strange,i dont know how to solve

delicate wren
#

cursed

#

that's 8.63 GB of text

#

just text

#

that's what happens if you leave htop open over ssh

#

windows settings thing

#

it's no necessarily internet

#

LAN counts too

#

VS Code at only 439 MB

wary gazelle
delicate wren
#

whereas this is the actual usage by VS Code

#

22

#

most of what I do with VS Code is on another computer

#

ssh

#

VS Code allows connecting over ssh

#

so
VS Code is running on the server

#

GUI is running locally

#

it's powered via an uninterruptible power supply

delicate wren
#

can't power my PC via UPS

#

PC uses 1KW, UPS output is 600W

wary gazelle
#

I don't understand network settings,just ...... i just wait until my friend wakes up to try again. . .

delicate wren
#

sometimes changing it and changing it back might help because it forces the connection to change if the voice server has issues

delicate wren
#

just a battery

#

and it beeps very loudly when the power is out

#

docker

#
  • I need some things to run 24/7
#

originally it was only a discord bot

#

(on the previous server)

#

4~5 years ago

#

it had, like, Ubuntu 14

#

(on ARM)

delicate wren
wary gazelle
delicate wren
#

started using Docker only in late 2021

wary gazelle
# delicate wren

okok I found it, when my friend wakes up, I'll try it with him.thanks~~~~~

viscid hare
#

@inland cairn سلام چجوری باید وریفای بشم؟

#

تو کدوم قسمت؟

delicate wren
#

!voice

coarse hearthBOT
#
Voice verification

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

delicate wren
#

!paste

coarse hearthBOT
#
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 floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

delicate wren
#

do you have a GitHub repo, if that's multiple files?

stuck bluff
#

@shrewd widget 👋

#

Yahoy.

#

I know.

delicate wren
#

"checking"
- cargo check
- cargo clippy

language server
- rust-analyzer

metrics
- rust-code-analysis

stuck bluff
#

There are modules in Python that provide a SQL interface.

delicate wren
#

Python is good for rapid prototyping even for this

stuck bluff
#

Or you'd stick in a floppy and run the install file.

#

Not all efforts are futile.

#

Not all endeavours succeed.

#

You want to know something stupid? It looks like if you select a minimal install of Ubuntu, it first installs everything in the normal install, then uninstalls stuff to bring it down to the minimum.

ocean orbitBOT
#

Stochastic is synonymous with random. The word is of Greek origin and means pertaining to chance. It is used to indicate that a particular subject is seen from point of view of randomness. Stochastic is often used as counterpart of the word deterministic, which means that random phenomena are not involved. Therefore, stochastic models are based on random trials, while deterministic models always produce the same output for a given starting condition

#

based on or subject to individual discretion or preference or sometimes impulse or caprice

misty sinew
#

I've tried everything, still no module named pip, gelp me please..

hollow bay
misty sinew
#

I downloaded python from the site

hollow bay
#

ok so have you made a effort install pip as per instruction found all over the internet??

#

its a been a while since ive been on windows

warped veldt
#
class pacman_player():
    def __init__(self):
        pacman_image = pygame.image.load("pacman.png").convert_alpha()
        pacman_image_resized = pygame.transform.scale(pacman_image, (30, 30))
        left = pygame.transform.rotate(pacman_image_resized, 180)
        right = pygame.transform.rotate(pacman_image_resized, -180)
        up = pygame.transform.rotate(pacman_image_resized, 90)
        down = pygame.transform.rotate(pacman_image_resized, 0)
        pacman_image_resized_direction = [left, right, up, down]
        pacman_rect = pacman_image_resized.get_rect()
        pacman_rect.centerx = 333
        pacman_rect.centery = 514
        pacman_X = pacman_rect.centerx
        pacman_Y = pacman_rect.centery
        screen.blit(pacman_image_resized_direction[0], pacman_rect)



            



run = True
while run:
    timer.tick(fps)
    screen.fill('black')
    draw_board()
    pacman = pacman_player()
    pacman.__init__

    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            run = False
        if event.type == pygame.KEYDOWN:
            if event.key == pygame.K_LEFT:
                pass
                

    pygame.display.flip()


pygame.quit()
#
rotated_image = pygame.transform.rotate(image, 45)```

I want to use this code to rotate it.
forest ore
#

dog = Dog(name="steve")
dog_name = dog.name

#

rotated_image = pygame.transform.rotate(image, 0)
rotated_image = pygame.transform.rotate(image, x)

#

!code

vivid condor
forest ore
#
class pacman_player():
    def __init__(self):
        pacman_image = pygame.image.load("pacman.png").convert_alpha()
        pacman_image_resized = pygame.transform.scale(pacman_image, (30, 30))
        left = pygame.transform.rotate(pacman_image_resized, 180)
        right = pygame.transform.rotate(pacman_image_resized, -180)
        up = pygame.transform.rotate(pacman_image_resized, 90)
        down = pygame.transform.rotate(pacman_image_resized, 0)
        pacman_image_resized_direction = [left, right, up, down]
        pacman_rect = pacman_image_resized.get_rect()
        pacman_rect.centerx = 333
        pacman_rect.centery = 514
        pacman_X = pacman_rect.centerx
        pacman_Y = pacman_rect.centery
        screen.blit(pacman_image_resized_direction[0], pacman_rect)



            



run = True
while run:
    timer.tick(fps)
    screen.fill('black')
    draw_board()
    pacman = pacman_player()
    pacman.__init__

    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            run = False
        if event.type == pygame.KEYDOWN:
            if event.key == pygame.K_LEFT:
                pacman_player.rotated_image = pygame.transform.rotate(image, 0)
                pacman_player.rotated_image = pygame.transform.rotate(image, 180)
                

    pygame.display.flip()


pygame.quit()
vivid condor
#

!e

print('xd')
coarse hearthBOT
#

@vivid condor :white_check_mark: Your 3.11 eval job has completed with return code 0.

xd
vivid condor
#

@warped veldt which model is your AI based on?

#

no im asking about the model

#

the architecture

#

yeah

#

so RLHF

warped veldt
#

pacman_player.rotated_image = pygame.transform.rotate(pacman_image_resized, 0)

vivid condor
#
class pacman_player():
    def __init__(self):
        pacman_image = pygame.image.load("pacman.png").convert_alpha()
        pacman_image_resized = pygame.transform.scale(pacman_image, (30, 30))
        left = pygame.transform.rotate(pacman_image_resized, 180)
        right = pygame.transform.rotate(pacman_image_resized, -180)
        up = pygame.transform.rotate(pacman_image_resized, 90)
        down = pygame.transform.rotate(pacman_image_resized, 0)
        pacman_image_resized_direction = [left, right, up, down]
        pacman_rect = pacman_image_resized.get_rect()
        pacman_rect.centerx = 333
        pacman_rect.centery = 514
        pacman_X = pacman_rect.centerx
        pacman_Y = pacman_rect.centery
        screen.blit(pacman_image_resized_direction[0], pacman_rect)
#

lmao

#

most of the python libraries are bloat

#

pygame bloat

#

opencv bloat

#

requests bloat

#

US?

vivid condor
#

the entire code

#

vscode

#

bla bla bla

#

hmmmmmmmmmmmmmmmmmmm

#

pro computer user

#

lmaoooooooooo

#

im black

hollow bay
vivid condor
#

lmao

vivid condor
#

lmaooooooo

#

okok

#

i believe u

#

"i can record myself for u"

hollow bay
#

!code

coarse hearthBOT
#
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.

hollow bay
delicate wren
#

@ornate cobalt RcChars should be in an isolated module (can just be a small mod {} inside the existing file) so unsafety is properly contained

#
mod module_name {
    ...
}
delicate wren
#

(in case the repository has some policy restricting file count)

ornate cobalt
#
use super::*;
delicate wren
#

it contains two pub things

#

then

use self::rc_chars::*;
#

self -- current module
super -- parent of the current module
::super -- parent of another module
crate -- root of the crate

#

not a good example

#

for a number of reasons

atomic hinge
#

sup

#

how do i get jetbrin gatway to work with github ??

stuck bluff
#

!e py data = [(1, 3), (2, 2), (3, 1)] data.sort(key=lambda a: a[1]) print(data) data.sort(key=lambda a: a[0]) print(data)

coarse hearthBOT
#

@stuck bluff :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | [(3, 1), (2, 2), (1, 3)]
002 | [(1, 3), (2, 2), (3, 1)]
ornate cobalt
#

!e

def for_each(iter, fn):  # Pretty much map just want to show you what it's doing
  return [fn(x) for x in iter]

x = [1,2,3,4]
for_each(x, print)
coarse hearthBOT
#

@ornate cobalt :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 1
002 | 2
003 | 3
004 | 4
ornate cobalt
#

!e

def for_each(iter, fn):  # Pretty much map just want to show you what it's doing
  return [fn(x) for x in iter]

x = [1,2,3,4]
x = for_each(x, lambda y: y+1)
print(x)
delicate wren
#

missing print?

coarse hearthBOT
#

@ornate cobalt :white_check_mark: Your 3.11 eval job has completed with return code 0.

[2, 3, 4, 5]
delicate wren
#

iter -> iterable/it
(for naming)

#

@golden tendon git fetch+pull is enough to sync everything usually

#

or "sync" operation which is defined in GitHub Desktop, IntelliJ, VS Code, Visual Studio, etc.

ornate cobalt
delicate wren
#

To use GitHub Codespaces with a JetBrains IDE you must have already installed JetBrains Gateway

#

did Gateway become free?

#

and Code With Me is paid

#

remote development for IntelliJ

#

they're trying to compete with VS Code Remote

#

> installing the IDE and running it for you
just like VS Code Remote

#

if you have PyCharm installed, might as well just use it

#

instead of connecting to code spaces

#

unless you're ready to pay for code spaces, a lot

#

is Fleet just IntelliJ's version of VS Code?

hollow bay
delicate wren
#

underabstracted, even for this small of a codebase

#

step 1. remove from tkinter import *, either use tk.Label or from tkinter import Label

#

!pep8

coarse hearthBOT
#
PEP 8

PEP 8 is the official style guide for Python. It includes comprehensive guidelines for code formatting, variable naming, and making your code easy to read. Professional Python developers are usually required to follow the guidelines, and will often use code-linters like flake8 to verify that the code they're writing complies with the style guide.

More information:
PEP 8 document
Our PEP 8 song! :notes:

delicate wren
hearty heath
#

You don't know what names you're adding to the namespace.

delicate wren
#

PyCharm melts down performance-wise when it tries to handle recursive wildcard imports

#

(idk if Pyright does it smarter)

delicate wren
#

in Rust that would be "don't use pub use module::*;" (wildcard re-export)

stuck bluff
#
import tkinter as tk

class App:
    def __init__(self):
        self.root = tk.Tk()

    def run(self):
        self.root.mainloop()

if __name__ == '__main__':
    App().run()```
delicate wren
#

on Rust's wildcard imports, and wildcard imports in general

#

Rust and other statically compiled languages generally handle wildcard imports a little bit better

#

if the reason why you use * is that otherwise the import would be too long, then the thing, that you import from, shouldn't be a single module or shouldn't be imported from (instead imported as a whole)

#

if you write such module, simplify it
if you use such module, import it as a whole and access it as a module

#

!e

from tkinter import *
print(len(globals()))
coarse hearthBOT
#

@delicate wren :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     from tkinter import *
004 |   File "/usr/local/lib/python3.11/tkinter/__init__.py", line 38, in <module>
005 |     import _tkinter # If this fails your Python may not be configured for Tk
006 |     ^^^^^^^^^^^^^^^
007 | ImportError: libtk8.6.so: cannot open shared object file: No such file or directory
delicate wren
#

reasonable

#

!e

from __future__ import *
coarse hearthBOT
#

@delicate wren :x: Your 3.11 eval job has completed with return code 1.

001 |   File "/home/main.py", line 1
002 |     from __future__ import *
003 |     ^
004 | SyntaxError: future feature * is not defined
delicate wren
#
>>> len(globals())
7
>>> from tkinter import *
>>> len(globals())
138
>>>
#

no

#

_name entries are not imported

#

one of the functions of _ prefixes

coarse hearthBOT
#

@ornate cobalt :x: Your 3.11 eval job has completed with return code 1.

001 | /home/main.py
002 | Traceback (most recent call last):
003 |   File "/home/main.py", line 2, in <module>
004 |     from tkinter import *
005 |   File "/usr/local/lib/python3.11/tkinter/__init__.py", line 38, in <module>
006 |     import _tkinter # If this fails your Python may not be configured for Tk
007 |     ^^^^^^^^^^^^^^^
008 | ImportError: libtk8.6.so: cannot open shared object file: No such file or directory
delicate wren
#

__all__ restricts that even further

ornate cobalt
#

!e

print(__file__)
from json import *
print(__file__)
coarse hearthBOT
#

@ornate cobalt :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | /home/main.py
002 | /home/main.py
delicate wren
#

!e

print(len(dir(__builtins__)))
print(dir(__builtins__))
coarse hearthBOT
#

@delicate wren :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 151
002 | ['ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException', 'BaseExceptionGroup', 'BlockingIOError', 'BrokenPipeError', 'BufferError', 'BytesWarning', 'ChildProcessError', 'ConnectionAbortedError', 'ConnectionError', 'ConnectionRefusedError', 'ConnectionResetError', 'DeprecationWarning', 'EOFError', 'Ellipsis', 'EncodingWarning', 'EnvironmentError', 'Exception', 'ExceptionGroup', 'False', 'FileExistsError', 'FileNotFoundError', 'FloatingPointError', 'FutureWarning', 'GeneratorExit', 'IOError', 'ImportError', 'ImportWarning', 'IndentationError', 'IndexError', 'InterruptedError', 'IsADirectoryError', 'KeyError', 'KeyboardInterrupt', 'LookupError', 'MemoryError', 'ModuleNotFoundError', 'NameError', 'None', 'NotADirectoryError', 'NotImplemented', 'NotImplementedError', 'OSError', 'OverflowError', 'PendingDeprecationWarning', 'PermissionError', 'ProcessLookupError', 'RecursionError', 'ReferenceError', 'ResourceWarning', 'RuntimeError', 'RuntimeWarning', 'StopAsy
... (truncated - too long)

Full output: https://paste.pythondiscord.com/bevonehami.txt?noredirect

delicate wren
#

recursive import * just doesn't go well with IDEs

hollow bay
#

from module import *

delicate wren
#

whatever that module exports, shouldn't come from wildcard imports itself

#

^wrong

#

a.py

__all__ = ()

from b import *

b.py

__all__ = ('C',)

from c import C

c.py

__all__ = ('C',)


class C:
    pass
atomic hinge
#

$ /home/codespace/.python/current/bin/python3 /workspaces/project-peacock-rpg/0.00.05/core_programes/screen.py
pygame 2.4.0 (SDL 2.26.4, Python 3.10.8)
Hello from the pygame community. https://www.pygame.org/contribute.html
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
^CTraceback (most recent call last):
  File "/workspaces/project-peacock-rpg/0.00.05/core_programes/screen.py", line 25, in <module>
    clock.tick(60)  # limits FPS to 60

delicate wren
#

like, graphics

#

but you need specific thing

#

German pronunciation

#

(for last name)

#

((not for first name))

delicate wren
delicate wren
#

I have an awful idea

#

to make a PyGame kernel for Jupyter

#

yes

#

@ornate cobalt make them work, then make them always throw syntax warning

#

just as things should be

#

@ornate cobalt randomly quiz the programmer on what names are getting imported
if they fail, rebase + force-push to clear the repository

delicate wren
#

what's the point of doing PCA in that code?

#

metatemplates

struct Foo<T> {
    x: T<i32>
}
delicate wren
#

Monads in Aecor

#

(abstract Monads)

#

I don't remember eactly how deep that meta thing is in my code

#

there are things generic over Context

#

Context can give a monad for each error

#

each monad is generic over the type of the wrapped value

hollow bay
delicate wren
#

not on main machine

delicate wren
#

А looks like A now

delicate wren
coarse hearthBOT
inner sleet
coarse hearthBOT
true pewter
#

I'm just in the vc

#

Doing nothing rn

#

Nah

#

Not much

#

I have to go rn

#

Nice to meet you too

#

Lol

#

Cya later

scarlet summit
#

yeh

#

heeloo

#

your voice is niceee

#

no i am suppresed

#

to speak

#

can't speak

#

50 more msg to send

#

no new to the server

#

howwwwwww

#

ok send me 10$$ so i can buy nitro

#

sarcasm

#

haha

#

just joking

#

but i have to buy the nitro

#

that's gif not gift

#

i keep hearing gift

#

wait

#

i also want to talk

#

noooo

#

yeah

#

this evil

#

noooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo

#

i want voice not legs

#

wait 1sec accept my request

#

??

#

friend request man

#

uffff

#

invite me any other vc so i can talk

#

like the mermaid

coarse hearthBOT
#

:incoming_envelope: :ok_hand: applied timeout to @scarlet summit until <t:1687055253:f> (9 minutes and 59 seconds) (reason: burst spam - sent 8 messages).

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

glacial ferry
#

thank you. Can someone help me with this?
For context carNames are carnames and I want to get the first word out of the list.

if not(carnames[i].split() in lst):      
    lst.append(carnames[i].split()[0])
limber kraken
#

!tvmute 865170731276042262 "1 week" Spamming messages to up your message count is not the way to get voice verified. You can still join voice channels without being verified; you just have to get some legitimate server activity in order to get verified.

coarse hearthBOT
#

:incoming_envelope: :ok_hand: applied voice mute to @scarlet summit until <t:1687659593:f> (7 days).

delicate wren
#
if carnames[i].split()[0] not in lst:
    lst.append(carnames[i].split()[0])
#

carnames[i].split()[0] should can be put in a variable, I guess?

#

though I'd suggest to use set instead

glacial ferry
delicate wren
#

sets use add method instead

#

!e

example_list = []
example_list.append(11)
example_list.append(11)
print(example_list)
example_set = set()
example_set.add(11)
example_set.add(11)
print(example_set)
coarse hearthBOT
#

@delicate wren :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | [11, 11]
002 | {11}
chrome walrus
#

@forest ore are streaming ?

#

i'm not voice verified

floral glade
bronze juniper
#

heyho, I can't speak out loud yet but thought I'd say hi anyway^^

#

oh hi person! happy sunday to you too!

#

what are you people up to btw^^

#

hi!

delicate wren
bronze juniper
#

hi human!

stray hedge
#

y cant i talk i n vc

delicate wren
coarse hearthBOT
#
Voice verification

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

bronze juniper
#

i think that I might head off cause I can't rly talk anyway but yee

#

happy timezone everyone :)

#

oops forgot to press leave

#

anyway

#

see y'all!

stray hedge
#

!voice

bronze juniper
#

the voice-verification one

#

it also has instructions on how to verify^^

misty sinew
#

@umbral rose

#

hi

#

there

#

im currently muted

#

😭

#

bc i havent verifiedyet

#

what you been up to?

inner sleet
#

@candid garnet

#

so a single burger costs $7

#

we sell things called "brownie bites"

#

which is like an inch

#

and it costs like $3

#

they are literally a tiny tiny mouthful

#

yes

#

like its not evem a mouthful

#

they sell out so quick

#

i stg

#

im not paying for it

#

nah i could probably get it for free but i refuse to even try

inner jacinth
#

?

inner sleet
#

starbucks is the greediest company

#

its made in a factory

#

and then its boxed

#

hell nah

#

we once had loads and loads of food go out of waste

#

like over 300$ worth

#

so me and a friend gave it to a homeless shelter

#

LITERALLY

#

YES

inner sleet
#

starbucks is a stupid company

inner jacinth
#

they are nuts

inner sleet
#

they would go in the bin

#

bro i swear every shift is like im getting robbed

#

im the middle man

#

to a robbery

#

acomplice

#

😭

#

i started when iw as 16

#

but that was a few years ago

forest ore
#

@mild flume clould you please delete the messages you sent also yes this is a message test

inner sleet
#

i first started working wehn i was 14

#

10 hours a day for $1 an hour

#

it was for a shady man selling phone cases

#

very true

#

yeah i was earning more than all us restaurant waiters at 14

vivid condor
#

hmm?

inner sleet
#

definitely

#

what was ur first job gofek

#

maths tutor when u was 1"?

#

12

#

gifted mf

#

snowball

#

what languages do u know>

#

u just know python and e

#

english

#

🤣

#

it is the hardst language

#

there is like 64 definitions for the word "set"

#

idk how my dumb ass knows english

#

no ther good ones

#

other

#

no other good ones

#

only heinz

#

ive had heinz my whole life, i dont even know if other are better

#

what if the grass if greener on the other side

#

dont risk it

#

DONT RISK IT FOR THE KETPCHUP

#

biscuit, fine

vivid condor
#

brain 200

inner sleet
#

the angels whispered in your ear "risk it for a biscuit"

vivid condor
#

heheheeh

forest ore
#
community 
#

hey please delete that message! @crystal aurora

#

hey please delete that message! @crystal aurora

vivid condor
#
individual
#

individual parrot

inner sleet
#

risk it for a parrot

vivid condor
#

gtg guys gn

#

its 4am rn

inner sleet
#

shit i gtg too

#

u better tell me how that burger uis

umbral rose
#

!stream 961672806444204094

coarse hearthBOT
#

✅ @lilac spear can now stream until <t:1687230684:f>.

umbral rose
#

!stream 776004461659160577

coarse hearthBOT
#

✅ @dry pendant can now stream until <t:1687230708:f>.

umbral rose
#

!stream 209443096990187520

coarse hearthBOT
#

✅ @misty sinew can now stream until <t:1687230713:f>.

forest ore
#

@delicate wren please delete the message you sent in voice chat text 0

forest ore
#

those nessages and because it says so in the message

delicate wren
forest ore
#

just do it please

delicate wren
#

why?

severe fiber
#

hello i need help in my program of building a roulette table
[2:45 PM]
here is the code
[2:45 PM]
import random

name = input("Hello please tell us your name: ")

print(f"Hello Mr {name} welcome to the roulette table")

print("Insert 100 bucks to play")

table = ['RED', 'BLACK', 'GREEN']

choice = random.choices(table, k=1, weights=[18, 18, 2])

colour = choice

if colour == 'BLACK':
print("You owe the roulette table 100 bucks because it landed at black")
elif colour == 'RED':
print('You owe the roulette table 100 bucks because it landed at red')
elif colour == 'GREEN':
print("Congratulations you won 7000 bucks")

Message #off-topic-lounge-text

vivid condor
#

yo

indigo wasp
#

Iron Sky - movie , nzee on the moon

#

a local computer company , memoryexpress , doesnt advertise anywhere , its all word of mouth , they started in one tiny room , now they have multiple stores in each province - with onkly word of mouth advertising

umbral rose
#

Please keep the posts more server appropriate. People on toilets probably isn't ever appropriate.

#

Thanks

indigo wasp
#

such a nice color of birds

#

oop they flew away

wheat rose
#

Anyone here who can take me with them remotely, as if I can learn to coding in python please? I've some hidden autism that need accountable environment to learn with fun! Hope you feel my struggle!

stray hedge
#

how can i talk

cloud wind
#

=]

dry pendant
#

Python of course

#

I wouldn't bother with js anymore.

vivid condor
#

dont

umbral rose
#

I heard it from someone online who provided 0 evidence. It must be true.

dry pendant
#

it is great because it doesn't relate to JS at all. it's based on webassembly. I think it will make javascript obsolete. it's just not all that popular yet.

delicate wren
#

you can't fix DOM

#

and DOM is that second part of writing front-end that is often hated

delicate wren
#

it being compiled to wasm doesn't mean it gets any optimisation

#

it's still cpython

#

also, good luck achieving ergonomics of JS lambdas using Python

#

different languages are for different purposes

#

"you don't like it" doesn't mean it's going to be obsolete in any way

#

will it become obsolete before Fortran or after?

#

when ECMA says it is

#

there are alternatives definitions too

delicate wren
#

(the problem being a standard organisation can't just do that)

#

"code written in JS becomes obsolete after only a week"

delicate wren
#

if someone unironically followed suggestions in every Fireship video:

delicate wren
#
dry pendant
inner sleet
clear prawn
#

hey

vivid condor
misty sinew
misty sinew
wheat rose
#

How much text I've to put here?

#

I've been trying to talk in server but wouldn't able yet

delicate wren
#

that might delay the time it takes, as a result

misty sinew
#

yoooo

hollow bay
misty sinew
#

not good not bad, something between that

#

how are you doing guys

hollow bay
misty sinew
#

Iphone is good for security but Android in the other hand is open source and you can try many things in ti

#

I mean without something like jailbreak or so

delicate wren
#

custom android distributions aren't necessarily open source

misty sinew
#

yooo @candid garnet

#

what college are you in?

#

is it engineering

gloomy niche
#

Would someone mind helping me? I have some homework I am trying to do but my code went from functional to completly broken and now im lost lol

jade seal
#

why can't i speak and message in voice chat 0 ???

mild flume
#

@zenith wedge Sup

zenith wedge
#

i want to send Gump waving meme, but the phone does not show gif option

mild flume
#

Weird

zenith wedge
#

I guess web browser version does not show.

mild flume
#

Wait

#

You're using the browser version on your phone?

zenith wedge
#

yes

#

Have a fun weekend 🎆

copper cedar
#

Nae -> (New Ae)cor

elder wraith
#

!e ```python
from dataclasses import dataclass

@dataclass
class Person:
name: str
age: int

def __post_init__(self):
    if not isinstance(self.name, str):
        raise TypeError('Name should be of type str')

    if not isinstance(self.age, int):
        raise TypeError('Age should be of type int')

    if self.age < 0 or self.age > 150:
        raise ValueError('Age must be between 0 and 150')

a = Person('Bob',5)
a.age = 160
print(a)```

coarse hearthBOT
#

@elder wraith :white_check_mark: Your 3.11 eval job has completed with return code 0.

Person(name='Bob', age=160)
delicate wren
#

o cane

pale pivot
#

@stuck bluff : ocen: kinda like ocean but not

#

also maybe: ocaen but o-cane sounds dumb

delicate wren
#

objective cane

#

I googled cane programming language and I found this
one more wrong acronym

#

cAtegorical atrributE trAnsformation environmEnt

mild flume
#

Amazing

delicate wren
#

!e

from enum import Enum, auto

class Aaa(str, Enum):
    AAA = auto()

print(Aaa.AAA)
print(str(Aaa.AAA))
coarse hearthBOT
#

@delicate wren :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | Aaa.AAA
002 | Aaa.AAA
delicate wren
#

why did I think it could've ever printed something different

#

(after putting into str)

#

"root of all evil"

#

!e

from enum import Enum, auto

class Aaa(str, Enum):
    AAA = auto()

print(dir(Aaa.AAA))
coarse hearthBOT
#

@delicate wren :white_check_mark: Your 3.11 eval job has completed with return code 0.

['AAA', '__add__', '__class__', '__contains__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getnewargs__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__iter__', '__le__', '__len__', '__lt__', '__mod__', '__module__', '__mul__', '__ne__', '__new__', '__objclass__', '__reduce__', '__reduce_ex__', '__repr__', '__rmod__', '__rmul__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_generate_next_value_', '_member_map_', '_member_names_', '_member_type_', '_missing_', '_name_', '_new_member_', '_sort_order_', '_unhashable_values_', '_use_args_', '_value2member_map_', '_value_', '_value_repr_', 'capitalize', 'casefold', 'center', 'count', 'encode', 'endswith', 'expandtabs', 'find', 'format', 'format_map', 'index', 'isalnum', 'isalpha', 'isascii', 'isdecimal', 'isdigit', 'isidentifier', 'islower', 'isnumeric', 'isprintable', 'isspace', 'istitle', 'isupper', 'jo
... (truncated - too long)

Full output: https://paste.pythondiscord.com/edahexuvaf.txt?noredirect

delicate wren
#

now to guess what of that isn't str

#

!e

from enum import Enum, auto

class Aaa(str, Enum):
    AAA = auto()

Aaa.AAA.AAA.AAA.AAA.AAA.AAA.AAA.AAA.AAA
coarse hearthBOT
#

@delicate wren :warning: Your 3.11 eval job has completed with return code 0.

[No output]
delicate wren
#

(somewhat expected to work)

#

these are from Enum, I guess

'_generate_next_value_', '_member_map_', '_member_names_', '_member_type_', '_missing_', '_name_', '_new_member_', '_sort_order_', '_unhashable_values_', '_use_args_', '_value2member_map_', '_value_', '_value_repr_',
#

!e

from enum import Enum, auto

class Aaa(str, Enum):
    AAA = auto()

print(Aaa.AAA._name_)
coarse hearthBOT
#

@delicate wren :white_check_mark: Your 3.11 eval job has completed with return code 0.

AAA
shadow mountain
#

Yo

#

Hi

#

It's July 1st here

misty sinew
#

?

#

what i made 😅

#

you mention me

#

i cant open the mic
i dont have the permison
to write or opening the mic

delicate wren
#

epic fail

#

I forgot there are no f-strings in Rust

#

it uses format! instead

steel otter
#

what ups

#

you will try

delicate wren
#

I think they should add syntax hint on such error
how, for example, compiler suggests changing def to fn

#

format!, yes

#

and variations thereof

#

panic!, println!, print!, write!, etc.

latent raven
#

hi

chrome prism
#

@mild flume i got a question, what does billy 9 math do?

#

what does 9 represent

chrome prism
#

@mild flume were you a real discord mod at some point in your life?

mild flume
#

If you're asking about the badge I was in the Discord Moderator Discord before they disbanded it

#

That's all

chrome prism
#

sooooooooooooooooooo

#

you were in trial FOR a discord mod

#

maybe ??????

chrome prism
#

if age >= 18:
print("You are an adult!")
if age <= 0:
print("Thats a lie! No way you're "+str(age))
else: print("You are a child, only "+str(18-age)+(" years to go!"))

misty sinew
#

i need words down bad

#

for vc

#

:*)

misty sinew
#

so smart

misty sinew
#

@wheat kelp

#

yeah bro

#

i need still ned words

acoustic flicker
#

@steady finch yo thoughts on chatgpt

steady finch
#

I hate peoples attitudes towards it

#

chatgpt itself is fine

#

I see alot of people treat it as an all knowing god despite it literally trying to gaslight them while they are showing it to me

delicate wren
#

code suggestion tool not code generation tool

steady finch
delicate wren
delicate wren
steady finch
#

lol yeah

pure kestrel
#

hello @delicate wren

#

are u available for a quick sol for me

#

tried using async but didn't know how to use it at all as i was using threadPool executer before that

misty sinew
#

@umbral rose

#

sorry for the ping

#

how do i check i much more messages i need for 50 messages

umbral rose
#

You can search your name in the server

misty sinew
#

iv been talkin since yesterday

misty sinew
delicate wren
#

!user in #bot-commands is more accurate

misty sinew
#

i knew i passed 50 lol

umbral rose
#

There's a 3 day thing too

delicate wren
#

singly-linked-list -> linked-once-list

#

can't find a better backronym for LOL applied to linked lists right now

stuck bluff
cyan epoch
misty sinew
#

guys i burned linux mint onto my usb and booted my computer with it but i don't know how to turn it back i use windows 11 will it switch back if i take the usb out?

still ether
#

faz o L

#

MAKE THE L

#

sorry guys

#

do the l and meme here in brazil

stuck bluff
steady finch
#
struct stupid_string{
  char*,
  size: i32
}

printf(char*, ...)
#

printf("%i")

gaunt pelican
#

DM IF U CAN MAKE A YOUTUBE VIDEO UPLOADER BOT IL PAY

drifting coral
#

hi

worn heath
#

why cant I livestream

proven pecan
#

.topic

ocean orbitBOT
#
**What is the most useless talent that you have?**

Suggest more topics here!

proven pecan
#

complain

crimson flare
#

don't care about me am trying to complete my 50 message🥹 for verification

#

🥲

#

😊

mild flume
#

!pep8

coarse hearthBOT
#
PEP 8

PEP 8 is the official style guide for Python. It includes comprehensive guidelines for code formatting, variable naming, and making your code easy to read. Professional Python developers are usually required to follow the guidelines, and will often use code-linters like flake8 to verify that the code they're writing complies with the style guide.

More information:
PEP 8 document
Our PEP 8 song! :notes:

mild flume
north shadow
raw wren
#

Daddy likes svelte

misty sinew
#

@lean bear how do you improve the scalability within a network model that utilizes authentication, authorization, and accounting within a rest configuration module?

mild flume
#

@umbral rose This bullshit

delicate wren
#

> how do you improve the scalability
"just don't make it worse in the first place"
https://www.youtube.com/watch?v=cNICGEwmXLU

How can we build large self-healing scalable systems?

In this talk I will outline the architectural principles needed for building scalable fault-tolerant systems. I'll talk about building systems from small isolated parallel components which communicate though well-defined protocols.

Programs will have errors in them and will fail so I'll tal...

▶ Play video
worn heath
steady finch
#
await bot.process_commands(message)
worn heath
#

@steady finch

inner seal
#

@misty sinew hi

misty sinew
fair heron
#

hi @onyx topaz

onyx topaz
fair heron
#

how to write this as an not ugly code?

$(document).ready(function() {
  text = $("body").text();


  text = text.replace(
    /new/g,
    '<span class="aqua">new</span>');

  text = text.replace(
    /topstock/g,
    `<span class="yellow">topstock</span>`)

  text = text.replace(
    /overstock/g,
    `<span class="yellow">overstock</span>`)

  text = text.replace(
    /false/g,
    `<span class="red">false</span>`)
  console.log(text);
  $("body").html(text);
});
onyx topaz
#

what d u mean by 'ugly code'?

#

@fair heron

fair heron
#

repeated chunks

#

like overstock and topstock are the same class and should be in a list

onyx topaz
#

ic. did u try with switch

fair heron
#

can you do switch replace from array?

onyx topaz
#

i mean, try this.

#

text = text.replace(/(new|topstock|overstock|false)/g, function(match) { let className; switch (match) { case "new": className = "aqua"; break; case "topstock": case "overstock": className = "yellow"; break; case "false": className = "red"; break; default: className = ""; break; }

fair heron
#

```

#

three

onyx topaz
#

what?

fair heron
#
text = text.replace(/(new|topstock|overstock|false)/g, function(match) {
    let className;
    switch (match) {
      case "new":
        className = "aqua";
        break;
      case "topstock":
      case "overstock":
        className = "yellow";
        break;
      case "false":
        className = "red";
        break;
      default:
        className = "";
        break;
    }
onyx topaz
#

and then return text with the span tag and the className

fair heron
#

heh what about

text = text.replace(*)/g, functon(match) {
   let className;
    switch (match) {
      case "new":
        className = "aqua";
        break;
      case "topstock":
      case "overstock":
        className = "yellow";
        break;
      case "false":
        className = "red";
        break;
      default:
        className = "";
        break;
    }
onyx topaz
#

u bet

fair heron
#

efficiantcy is not important

nimble cosmos
#

[('a',), ('b',), ('c',), ('d',)]

#

['a', 'b', 'c', 'd']

#

[i[0] for i in account]

misty sinew
#

hey

#

beep

#

bop

tranquil thistle
#

list(map(tuple, 'abcd')) momenet

molten harness
#

yh Intelx86 is ideal for CAD

#

bootcamp is not available anymore now

mild flume
#

But that was the name, right?

molten harness
#

on the new macs with AppleSilicon

#

name of what?

mild flume
#

The like

#

Windows for Mac thing

molten harness
#

Wine?

#

I use an HP for work and it's good

#

but the battery degredation is bad I woulkd say

mild flume
molten harness
#

External Battery is now an option with USBC

mild flume
#

Ah, this was what I was thinking of

molten harness
#

like couple hundred I think with right wattage

#

I think lol

#

surely not 120W

#

unless you are maxing it out

#

most modern intels are actually very power efficient

#

300Watts LOL

#

jesus christ

#

Isn't their a new standard for the pwer brick materail which makes it really small?

#

hahaha normal

#

Lenovo I like alot but for programming

#

next step is the A100s in the laptop

#

btw I heard you talking about awful rpices on Amazon in France

#

Ah ok so you couldn't use a foreign amazona nd ddeliver it to you

#

I see that is rough

mild flume
molten harness
#

merci 😉

obtuse valve
#

tu travailles en france?

#

quand

mild flume
#

@stoic geode Make sure that you get Windows Pro

obtuse valve
#

i wouldn't need to write the crappy code im doing rn

#

just use windows remote desktop lol

mild flume
#

@forest ore I'll grant it if you don't narrate what you're doing, since we're currently discussing other things

forest ore
#

ok

#

@mild flume

mild flume
#

!stream 1053732836693258391

coarse hearthBOT
#

✅ @forest ore can now stream until <t:1689264565:f>.

mild flume
#

@dawn wolf If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know about the voice gate

molten harness
mild flume
molten harness
umbral rose
#

Hey all 🙂

mild flume
#

Yo

#

How goes

umbral rose
#

Getting some fiber internet within the next hour partypepe

mild flume
#

Bran muffins?