#ot2-the-original-pubsta

652 messages · Page 34 of 1

jovial island
#

same

#

@edgy nebula age

edgy nebula
#

uh

#

why does it matter lmao

jovial island
lucid osprey
#

that dude is a bit...

#

suss

tribal tinsel
#

if you want someone's info, at least give yours first, lol

#

instead of asking questions, make it an exchange

lucid osprey
#

I think its a bit creepy

edgy nebula
jovial island
#

me 14

lucid osprey
# edgy nebula wait me?

given this conversation who do you think it could be? the person asking for personal info or the one who isnt? 🤔

#

not youu 🥴

#

I had one dude dm me asking for my location and age

#

blocked ✅

edgy nebula
#

nice

#

it's very odd now that i've got my real name here

#

it was much more peaceful when i had something else as my username

#

suddenly seeing strangers on the internet say my name gives me the chills for whatever reason

lucid osprey
#

same

jovial island
#

what a topic xD

lucid osprey
#

I get a feeling that my house is gonna get raided, (you know that sudden feeling too right? when your name gets mentioned)

lucid osprey
jovial island
#

i just asked age telling your age doesnt mean i m going to crack your locations

lucid osprey
lucid osprey
jovial island
#

or 'we'

edgy nebula
lucid osprey
#

user ids ftw

edgy nebula
#

oh true

lucid osprey
#

.topic its time

rustic harborBOT
#
**Tell us 5 things you do well.**

Suggest more topics here!

lucid osprey
#

I hate this topic.

#

bye

lament kestrel
edgy nebula
#

🥶

#

hahastinkypoop

#

this doesn't have the same effect does it 😔

dusky cliff
#

lol

nova ember
median blade
#

Repost

#

😔

lament kestrel
#

This seems like a Joe thing to do

dusky cliff
#

he's quite the joeker isn't he

halcyon gyro
#

time to dump more of my pixel art, this time from hikaru

dusky cliff
#

niice

halcyon gyro
#

thanks

full marlin
#

that looks really good

#

is the no pupils intentional

halcyon gyro
#

It's supposed to be seen from a little far away

#

so the darker pixels look like the pupils

full marlin
#

oh I see

#

that's really cool

halcyon gyro
#

thanks

#

because of the blurriness of the original image, I couldn't see what the front pieces were, so they look a little bit weird in the shape.

#

the hardest part was the mouth, I couldn't make it without it looking like a large lip or like he used a lipstick.

full marlin
#

it's pretty well done

halcyon gyro
#

?

upbeat sandal
#

!warn 744283985781194764 Advertising/self-promotion is not allowed in this community.

clever salmonBOT
#

:incoming_envelope: :ok_hand: applied warning to @uneven rune.

rigid elk
#

Uhm what is this channel exactly for?

full marlin
#

off topic stuff

rigid elk
#

Haha ok

#

But why a channel for sneaker bots if these people are like "owh its illegal so where not gonna code it”

clever salmonBOT
rigid elk
#

Oh haha

rigid elk
#

I already know that vid

#

Kinda silly

dusky cliff
#

lol

rigid elk
#

Sneaker bots are fine

#

Love them

halcyon gyro
#

What counts as self-promotion?

full marlin
#

hmmm

#

posting your youtube account and asking people to follow it would be self-promotion

halcyon gyro
#

oh

full marlin
#

that is an example

halcyon gyro
jovial island
halcyon gyro
#

yes

jovial island
#

Thought so, very nice

halcyon gyro
#

thanks

jovial island
#

Lichess OverTheBoard april joke was pretty funny:

halcyon gyro
#

I liked the chroma hair dye one

#

from razer

jovial island
#

Razer Rapunzel lol

#

They also put the guy looking at other girl meme in the video

halcyon gyro
#

I actually thought it was real for a full day.

odd sphinx
#

i thought it was real lmao

proper python
#

wdym? i remember that promotion, it seemed pretty cool and i bought one. still have it, works well though is uncomfortable

jovial island
#

why 🖌️ RuntimeError: Timeout context manager should be used inside a task

tribal tinsel
wide totem
#

fwiw ive had error: this code sucks
and couldn't figure out how to fix it

tribal tinsel
#

This should be an error on most my scripts. I should change my catch-all to say this

wide totem
full marlin
#

hm

#

🥴

#

sounds like a you problem 🥴

#

say what???

#

"good picture"?

#

ok 🥴

nova ember
full marlin
nova ember
#

Haha yeah, I love it

#

The best part is the amount of dislikes. Seems like the right people watched it;)

full marlin
#

youtube recommended me an actual sneaker bot video right after

#

I was like oh no

#

the same people who made sneaker bots are making PS5 bots too

#

it's so annoying

#

there's a reason why they're sold out so damn quickly every time

native cobalt
#

this, but with GPUs

#

been meaning to build a proper desktop battlestation since 2019

full marlin
#

I didn't actually get a PS5 yet

#

there aren't enough good games on it to justify the purchase yet imo

native cobalt
#

ye

full marlin
#

like yeah there's Miles Morales but that's such a short game

#

not to mention it quite literally plays itself 🥴

native cobalt
full marlin
#

you could watch the entire game on youtube if you wanted to

#

and you'd miss absolutely nothing

wide totem
#

lmao

full marlin
#

also what do you do if you finish the game?

#

replay it? 🥴

#

replay the same game you probably already have memorized by now?

wide totem
full marlin
#

he has a very italian sounding name

#

or am I just being stereotypical

#

idk

jovial island
#

@wide totem link to the video?

rigid elk
wide totem
full marlin
#

bc it's against ToS?

#

🥴

#

you have a moral obligation as someone who can code to create things that benefit society

jovial island
#

mhm

#

it also teaches a lesson

#

don't do stuf against tos

full marlin
#

yeah

pearl tide
#

imagine the python bot was made in node.js lol

languid osprey
#

Lol

#

It's made In python

#

!src

clever salmonBOT
full marlin
#

🥴

#

are you like 7 lmao

odd sphinx
#

aha

#

69 thehw funny number

#

the*

wide totem
#

I was the first to point that out

hazy laurel
#

Uh... Admitting you're under 13 is enough to get you banned jokingly or not

#

yes, and I told you "jokingly or not"

#

Just saying, regardless of it being a joke, it's usually enough to go off of

#

You could end being locked until you provide identification (proving you're >13)

#

also depends where you live

hazy laurel
#

huh...?

#

No, I say that anytime someone jokes/lies about their age if it's under 13

unreal sigil
#

@jovial island He is right, you shouldn't say you're under 13 even jokingly. I've heard of people getting banned for the exact same situation, it isn't worth risking it.

tribal tinsel
hazy laurel
#

They would make the "safe" choice. If they're above 13, they can prove it

tribal tinsel
#

I think our mods research the context. But discord may not. But it's easy to fake the message, so idk

hazy laurel
#

but it's unnecessary trouble

#

Discord doesn't accept images for that reason

tribal tinsel
#

Oh. I didn't know that. Good thing

hazy laurel
#

basically it's bad to joke about breaking TOS in any form

tribal tinsel
#

I think you may survive if you're fast enough to edit it to say /s or /jk (or just mark it like that from the start)

hazy laurel
#

Discord doesn't just poof messages out of existence, though

#

if you catch the ID of the message, they can see messages even if they're deleted/edited

tranquil ridge
hazy laurel
#

yeah

tranquil ridge
#

so ye not something to joke about

hazy laurel
#

I mean you could do anything illegal and append jk to it

#

doesn't make you immune, does it? \😩

tranquil ridge
#

smol weary

hazy laurel
#

I like this emoji pack, idek which one I got

tranquil ridge
#

\🥺

hazy laurel
#

looks better than 😩

#

hate twemoji

tranquil ridge
#

i only like few of the twemojis

#

they are atleast better than the 3d android ones

hazy laurel
#

joypixels

#

that's what I got

tranquil ridge
#

wait

#

they just look like tiny twemoji to me

hazy laurel
#

because you've got twemoji installed

tranquil ridge
#

when did i install twemojis

#

is this the doing of manjaro again

hazy laurel
#

perhaps

#

hate manjaro

#

Arch's nice

#

by the time you learn how to install it, anything you break... you know how to fix

#

Manjaro's breakage is Manjaro's doing

#

Arch's breakage is your doing

tranquil ridge
hazy laurel
#

Well, no

#

I've been using Arch for a couple days

#

pretty easy to not break things

tranquil ridge
#

i see

hazy laurel
#

Just learn what you're using before you use it

tranquil ridge
#

ill switch to arch soon enough when i got some free time thinkies

round moss
#

And read the forums before update

hazy laurel
#

basically install packages with pacman -Syu and don't edit weird files, you'll be fine \😩

tranquil ridge
#

when you install arch do you just have tty

hazy laurel
#

Yeah, pretty much

tranquil ridge
#

nice

hazy laurel
#

It's sort of... DIY, but it's really fun honestly

#

and easy, as long as you read the wiki

tranquil ridge
#

ill directly install bspwm i havent tried that, kinda bored with i3

round moss
#

You can install the x env in a chroot And never have to deal with a raw tty

hazy laurel
round moss
#

One thing I want to try someday is installing arch from wsl arch

#

I don't think so, it just tells you to run commands. I think I did that when I installed it in a VM, but I may be misremembering

hazy laurel
#

Well, I just followed the Archiso guide

#

it was pretty easy other than me forgetting to pacstrap iwctl

#

I had to set up systemd-networkd to use ethernet

#

Google and whatever I remembered from Cloudflare

nova ember
rigid elk
#

I've copped a lot of heat without a bot

#

you just have to be lucky

#

and yes bots do increase your changes of winning but you also have to learn the bot and figure out what works the best for you

hazy laurel
#

Well... Caffeine is a drug

lucid osprey
#

@tranquil ridge remember when I was talking about your old anime pfp?

tranquil ridge
#

yes

#

you found it?

lucid osprey
#

I found it

#

it was a gif tho

tranquil ridge
#

oh shoto

lucid osprey
#

Mhm

#

Now I can sleep peacefully

tranquil ridge
#

this one?

lucid osprey
#

yessssss

vital nimbus
#

🅰️

odd sphinx
#

tf

dusky cliff
#

tf

severe trout
#

tf

lament kestrel
#

tf

odd sphinx
#

tf2

dusky cliff
#

tf2

median blade
#

lol

tribal tinsel
#

lol2

odd sphinx
#

no

dusky cliff
#

no2

odd sphinx
#

theres no league of legends t2

#

that was exactly what i was talking abt lmao

#

sheesh

tribal tinsel
#

portal2

odd sphinx
#

lol

sinful sun
#

Never

full marlin
#

never

#

half life alyx was terrible 🥴

rocky salmon
#

is this valid python?

round moss
#

yes

sinful sun
#

Why wouldnt it be?

#

I'd put all of the imports on the same line tho

#

Since theyre all found in the same package

rocky salmon
#

okay

odd sphinx
#

u can do ```py
from utils import (
date.
update_package_list,
write_install_headers
)

median blade
#

yeah

#

toople

wide totem
#

@echo fern #help-honey message
because some of my bot commands are named _name and have the name set it the parameter

echo fern
#

oh dear

idle oxide
#

should i install kali or linux?

wide totem
#

uh wait no

soft quiver
#

@woven glade carrying on from #discord-bots, i'm using this code:

from time import time
from functools import wraps

def timed(func):
    @wraps(func)
    def wrapper(*args, **kwargs):
        ts = time()
        func(*args, **kwargs)
        tt = time() - ts
        print(f"{func.__name__} finished in {tt}")
    return wrapper

@timed
def dot_format():
    for i in range(1000000):
        "{a} {b}".format(a=1, b=2)

@timed
def fstring():
    a=1
    b=2

    for i in range(1000000):
        f"{a} {b}"

dot_format()
fstring()
#

and i get that in 1M iterations the f-string is faster than the dot_format by about 0.13s

pliant dragon
#

results ran in my vps:

#

using vco's above code

soft quiver
#

adding

@timed
def dot_format_numbered():
    a, b = 1, 2
    for i in range(1000000):
        "{0} {1}".format(a, b)
``` i get 0.19s (faster than dot_format but slower than f-string)
#
dot_format finished in 0.2795529365539551
dot_format_numbered finished in 0.19567012786865234
fstring finished in 0.16080927848815918
woven glade
#

i get ~10M iterations with my code. But run it on i5 9600 I think it matters

pliant dragon
#

sh

#

stupidity grows on trees

#

i leaked my ip

soft quiver
#

yeah, at 10M iterations on Ryzen 7 2700x i'm still getting f-strings are faster by a decent margin

pliant dragon
#

yup

unreal sigil
#
dot_format finished in 0.3520529270172119
fstring finished in 0.18193912506103516
```yep
pliant dragon
#

actually i should stop execution of my bot

#

gimme a min

soft quiver
#

side note i love my timed decorator i just made 😄

#

much convenience

pliant dragon
#

can i keep it haha

#

pretty useful

woven glade
#
import time
reload_time = time.now() + 1 #or something same, i forgot how right
while True:
  if time.now() < reload_time: 
    count += 1
  else:
    print(f' {count} iterations per second')
    count = 0
    reload_time = time.now() + 1

if i change f' {count} iterations per second' to count i get 20M iterations :thinking:

soft quiver
#

by all means do kek

pliant dragon
#

100 million lol

#

what about using the plus sign?

#

think it'd be any different?

#

like 'string' + 'string'

soft quiver
#

just to be absolutely sure i also ran with the thing being formatted as the i variable of the loop, and the results are pretty conclusive

dot_format finished in 1.9955894947052002
dot_format_numbered finished in 1.5194904804229736
fstring finished in 0.6834473609924316
#

myth: busted kek

pliant dragon
#

i'm kinda curious as to how exactly they can be that fast

#

gonna try my hand at reading the source

soft quiver
#

3 words: the c language

woven glade
pliant dragon
#

you can just do one character

#

C

#

and they'll understand

soft quiver
#

loads of things, range and f-strings included are pure c, and as such there's no bytecode step

#

so speeeeeed

woven glade
#

They included too...

soft quiver
#

depends what youre iterating over

pliant dragon
#

ah you're supposed to use variables

#

1 sec

#

shoulda just called it plus

soft quiver
#

speedy f-string

pliant dragon
#

true

#

eh .format is quite out of date isn't it

wide totem
#

lol i uh

#

just wrote a format

#

format isn't deprecated at all, is it

pliant dragon
#

no

#

it's just slow

wide totem
#

lol

#

i used it because im putting 5 things together

soft quiver
#

formats have their places, for example some sort of templating or longer/more complex strings

pliant dragon
#

yeah

wide totem
#
return "{0}/{1}/{2}/tree/main/{3}#L{4}-L{5}".format(
    Github.base_link,
    Github.Me.org,
    Github.Me.repo,
    file.lstrip("/"),
    line_num + 1,
    end - 1,
)
soft quiver
#

in the end also, although yes f-string is faster, python is not the language you use if you care about every drop of performance, and generally when you use python things like readability count a lot for how good a program is

pliant dragon
#

yup

#

i think f-strings are more readable though

#

i prefer em

wide totem
soft quiver
#

depends, f-strings are more readable for a lot, but sometimes a big bulky thing just doesnt fit them as well

wide totem
#

in the above example of what i wrote today i think its more readable as not an f -you-format string

soft quiver
#
my_large_string.format(a_bunch_of_args)
```vs
```py
f"" \
f"" \
f""
idle comet
pliant dragon
#

yeah

wide totem
pliant dragon
#

please do laundmo

wide totem
#

wait no that includes whitespace or ignores them

idle comet
#

!e ```py
a = 1
b = 2
c = f"""
{a}
and
{b}
"""
print(c)

clever salmonBOT
#

@idle comet :white_check_mark: Your eval job has completed with return code 0.

001 | 
002 | 1
003 | and 
004 | 2
wide totem
#

yeah no~~

soft quiver
#

but thats ugly when indented and i like pretty code

pliant dragon
#

hm

#

yeah vco is right

wide totem
#

it will be a hard day in python and i want my intents

pliant dragon
#

that's not gonna look so great indented

wide totem
#

i also

#

uh

#

perhaps made my source command reliant on pep8

soft quiver
#

f-strings are almost universally better

idle comet
#

i use textwrap.dedent for multiline strings that are indented

soft quiver
#

it depends™️

wide totem
#

my source command is jank but it works well

pliant dragon
#

if everything in the world were perfect, we wouldn't have hot dogs

soft quiver
wide totem
#

jank as in it does stuff a source command shouldn't need to do but it does anyhow

soft quiver
#

the more you need to process the more annoying it is to do so

wide totem
#

^

#

my eval command doesn't even use textwrap anymore

soft quiver
#

'you' referring to the human not the computer kek

pliant dragon
#

that's computerphobic alec

soft quiver
#

oH nO

wide totem
#

because uh, look. You don't have to do that to have a really good eval command.

pliant dragon
#

have_you_boxed_today.qak

idle comet
#

i mean, at some point you might actually want to look into proper templating if your format strings are too complex to easily read

wide totem
pliant dragon
#

box gang

soft quiver
#

jishaku > all other evals

pliant dragon
#

yes

wide totem
pliant dragon
#

agreed

idle comet
pliant dragon
#

i have not ducked today

soft quiver
#

snekbox doesnt let you break the host tho, no fun

pliant dragon
#

what's snekbox again

#

it's some containerized eval thing

#

isn't it

idle comet
pliant dragon
#

ah i see

soft quiver
#

or more importantly it doesnt let you access internal bot variables

pliant dragon
#

oh yeah true

#

those can be very useful

soft quiver
#

i'll revise to

#

jishaku > all other internal evals

pliant dragon
#

but i dislike the fact jishaku puts a _ before those variables

#

it annoys me

soft quiver
#

you can disable that as an env var

idle comet
clever salmonBOT
#

:x: According to my records, this user already has a mute infraction. See infraction #31066.

#

:incoming_envelope: :ok_hand: applied mute to @pliant dragon until 2021-04-05 01:19 (9 minutes and 59 seconds) (reason: burst rule: sent 8 messages in 10s).

idle comet
#

yeah maybe dont do that anthony

soft quiver
full marlin
#

🥴

wheat aurora
#

please... please don't do that type of messaging

#

!unmute 819750600123744276

clever salmonBOT
#

:incoming_envelope: :ok_hand: pardoned infraction mute for @pliant dragon.

full marlin
#

.topic

rustic harborBOT
#
**Tea or coffee? What about milk?**

Suggest more topics here!

full marlin
#

hm

#

I like iced coffee

idle comet
#

neither, chocolate milk all the way

soft quiver
#

as for your question @pliant dragon

#

The underscore prefix is to help reduce accidental shadowing. If you don’t want your variables to be prefixed, set JISHAKU_NO_UNDERSCORE=true in your environment variables.

full marlin
#

iced coffee gives me a soul

soft quiver
#

(from jishaku's pypi page)

full marlin
wide totem
pliant dragon
#

yeah i think i need to chill on the caffeine

full marlin
#

chokky milk makes the pain go away

pliant dragon
#

or over excitement

soft quiver
pliant dragon
#

i learned my lesson, thanks

full marlin
#

I only drink coffee once a day

#

I used to do it twice a day

soft quiver
#

yeah probably best to not trip the anti spam lol

pliant dragon
wide totem
#

guys should i add a codeblock parser next or a proper error_handler

soft quiver
#

i've used jishaku so much by now i'd be confused if they werent prefixed with _ tbh

pliant dragon
#

let me add it to my zshprofile

#

or is it zprofile

#

it is zprofile right

soft quiver
#

¯_(ツ)_/¯

pliant dragon
#

/home/user/.zprofile

soft quiver
#

i just stick stuff in .zshrc

pliant dragon
#

good point

wide totem
#

guys uh

#

what shell is better than bash

soft quiver
#

zsh

wide totem
#

and how to set it up

pliant dragon
#

so export JISHAKU_NO_UNDERSCORE=true

#

zsh

soft quiver
#

zsh is love zsh is life

pliant dragon
#

zsh is like cleaning a very dirty car

wide totem
#

is it typically already installed~~

pliant dragon
#

nvm thats a bad metaphor

idle comet
soft quiver
#

no, but if youre on debian/ubuntu it's as simple as sudo apt install zsh

wide totem
#

kek

pliant dragon
#

pacman -S zsh for the arch boys

wide totem
#

probably not gonna do it rn

soft quiver
#

though you'll also want oh-my-zsh

pliant dragon
#

oh and i'd reccomend getting oh-my-zsh

wide totem
#

its 9:15 pm

#

and uh

pliant dragon
#

let me pull the github page

idle comet
#

oh-my-posh ftw
cross platform
cross shell

pliant dragon
#

it has an auto install script

wide totem
#

i got school tomorrow

pliant dragon
#

very useful

wide totem
#

and don't wanna fuck up my pyenv and pipenv

pliant dragon
#

here's oh my zsh JISHAKU_NO_UNDERSCORE=true

#

oops

soft quiver
idle comet
#

actually

#

even better than using dotenv

#

set the env var directly in your code

pliant dragon
soft quiver
#

just fork jishaku /s

idle comet
#

dont make stuff that works outside of your shell dependant on your shell variable

pliant dragon
#

hm

#

good advice

#

i'll set it there

#

gonna fork it

idle comet
#

for convenience

os.environ["JISHAKU_NO_UNDERSCORE"] = "true"
pliant dragon
#

or just do that

soft quiver
pliant dragon
#

yes

#

it truly is

#

also

soft quiver
#

how have i never come across this before...

pliant dragon
#

do yourself a favor and get fzf if you dont have it

#

which is 100% unrelated to zsh

#

but it also changed my life

soft quiver
#

just type more accurately kek /s

pliant dragon
#

the main thing that annoyned me in bash

#

is that to autocomplete something you have to get the first letter's case right

wide totem
#

guys i'm dumb

pliant dragon
#

because it is case sensitive

soft quiver
#

very good autocomplete

pliant dragon
idle comet
#

i just noticed you have a wonder egg priority pfp, nice

wide totem
#

i was going to make a huge regex and stuff to find a specific word within a few lines of text but that could error in places and not always work so it'd need a lot of checking and then

#

command.qualified_name became command.callback.__name__

pliant dragon
#

very nice

wide totem
#

🤯

#

like bruh

#

made it easy

#

now i search a file for f'def {command.callback.__name__}'

idle comet
#

one sec

#

are you searching a python file like that

#

?

wide totem
#

yes

#

well

#

no

idle comet
#

what for?

wide totem
#

a bot source command

#

hear me out~~

idle comet
#

have you heard of the ast module?

#

why searh it

pliant dragon
#

loudly bangs into the room

idle comet
#

if you can just parse it

wide totem
#

because its not actually running on my computer

pliant dragon
#

slams head on keyboard

idle comet
#

and use the parsed object to find your thing

wide totem
#

its a str from an api request

pliant dragon
#

jsk source

idle comet
#

you can ast parse any string

wide totem
#

fuck

#

are you

idle comet
#

!e ```py
import ast
pycode = """
def funcname(a):
print(a)
"""
print(ast.dump(ast.parse(pycode)))

clever salmonBOT
#

@idle comet :white_check_mark: Your eval job has completed with return code 0.

Module(body=[FunctionDef(name='funcname', args=arguments(posonlyargs=[], args=[arg(arg='a')], kwonlyargs=[], kw_defaults=[], defaults=[]), body=[Expr(value=Call(func=Name(id='print', ctx=Load()), args=[Name(id='a', ctx=Load())], keywords=[]))], decorator_list=[])], type_ignores=[])
pliant dragon
#

oo

soft quiver
pliant dragon
#

in the name of the dataclass we pray 🙏

#

also, mCoding, nice!

#

love that dude

soft quiver
#

such a good channel

pliant dragon
#

really underated

soft quiver
#

found them through the structural patma video

idle comet
#

!e ```py
import ast
pycode = """
def funcname(a):
print(a)
"""
the_ast = ast.parse(pycode)
for node in ast.walk(the_ast):
print(node)

clever salmonBOT
#

@idle comet :white_check_mark: Your eval job has completed with return code 0.

001 | <ast.Module object at 0x7fb33f1c3b50>
002 | <ast.FunctionDef object at 0x7fb33f1c3b20>
003 | <ast.arguments object at 0x7fb33f1c3070>
004 | <ast.Expr object at 0x7fb33f1c3100>
005 | <ast.arg object at 0x7fb33f1c3190>
006 | <ast.Call object at 0x7fb33f1c31c0>
007 | <ast.Name object at 0x7fb33f1c3220>
008 | <ast.Name object at 0x7fb33f1c3430>
009 | <ast.Load object at 0x7fb33f1705b0>
010 | <ast.Load object at 0x7fb33f1705b0>
pliant dragon
#

i'm rooting for the algorithm to boost him

pliant dragon
soft quiver
#

i found functools cache by autoplay from pattern matching, and promptly started using them wherever applicable

pliant dragon
#

oh yeah pattern matching

#

i tried building python 3.10 but couldn't figure it out haha

soft quiver
#

i watched the video, thought "huh cool" and proceeded to not install 3.10 because im scared i'll break something kek

pliant dragon
#

oh lol

#

python 3.10 is on the Arch User Repo so

#

i built it quite easily

#

but then, like the idiot it am

soft quiver
#

aur is such a beautiful thing

pliant dragon
#

i selected (remove deps after install?) y

#

and it deadass erased my linux boot image

#

no idea how

soft quiver
pliant dragon
#

but the second i saw grub rescue

#

i had the worst pain in my heart

#

but, it's nothing chroot can't fix

soft quiver
#

grub rescue pops up
i'd rather reinstall thanks

pliant dragon
#

oh my god yes

#

haha

#

btw, is there a list somewhere with the modules we can use with @clever salmon 's public eval command

soft quiver
#

most stdlib stuff i think

pliant dragon
#

pardon me but

#

stdlib means the standard library right?

soft quiver
#

!e print(help('modules'))

clever salmonBOT
#

@soft quiver :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | NameError: name 'help' is not defined
soft quiver
#

pain

pliant dragon
#

oof

#

which IDE do you use alec

soft quiver
#

vscode

pliant dragon
#

the microsoft version?

soft quiver
#

i cant remember tbh, been a while since i installed it

pliant dragon
#

one thing i miss from it is the plugin repo

#

the one for the open source version is so small

soft quiver
#

the microsoft version is also open source

pliant dragon
#

oh i mean

#

OSS

#

which has all the microsoft stuff removed

soft quiver
#

oh yeah arch has its own special version kek

pliant dragon
#

yea

#

i could build vscode but

#

time

#

i've slowly begun to get microsoft things out of my life

#

not just microsoft but

#

anything that's not exactly transparent goes

#

foss 4 life

idle comet
#

ngl i couldn't live without pylance
probably

soft quiver
#

^

idle comet
#

i mean im exaggerating

#

but it would be a PITA

pliant dragon
#

pylance?

soft quiver
#

i'd be stupidly unproductive compared to current me if i had neither pylance nor tabnine

idle comet
#

the new microsoft python language server

pliant dragon
#

i feel like i'm missing out

idle comet
#

tabnine suggestions

pliant dragon
#

and what does pylance do

#

from the name i'm guessing it's some sort of advanced linter suggestion thing?

#

sorry i don't know much lol

idle comet
#

it does all the things vscode needs to show you the attributes in autocompletes, basic linting, refactoring etc

pliant dragon
#

oh

#

i see

idle comet
#

its literally the thing telling vscode what the code is

#

im assuming the default alternative on demicrosoftified vscode is jedi

soft quiver
#

generally it does things like type annotations way better and deeper than the normal python extension does, which is v nice

pliant dragon
#

damn

#

fine

soft quiver
#

lol

pliant dragon
#

i'll give it a go

#

i got it here,

#

let me take a look at the extension tab

#

pylance and tabnine eh

#

hm

full marlin
#

Mr Robot is kind of meh

pliant dragon
wide totem
#

@idle comet smh

idle comet
#

m

wide totem
#

all that to six lines of code

idle comet
# pliant dragon

well, can always use the cloud model, its a gpt-2 model after all

pliant dragon
#

i am right now but

#

this just makes me more tempted to get a job

ancient whale
#

@lucid girder since when have you played osu?

lucid girder
#

4 years

#

I used to be top 35k global

ancient whale
#

wtf ive never seen you play it

#

what're you now?

lucid girder
#

well I stopped playing for like

#

6 months

#

so I've decayed to uuuuuuuuh

#

80k

ancient whale
#

phfffffffffh

#

I was gonna say I'll 1v1 ya but I've got like a -10% chance of being able to compete

lucid girder
#

I have a vid from where I was near my peak

#

let me find it

#

this was when I was at 43k

ancient whale
#

do

#

do you play with mouse?

lucid girder
#

yes

ancient whale
#

damn

jovial island
#

Ako ay pilipino

lucid girder
jovial island
#

Sino mahilig sa halo halo?

lucid girder
#

@jovial island Sorry, this is an English speaking server.

jovial island
#

Oh

ancient whale
jovial island
#

But this channel is Filipino salad

lucid girder
#

lol

jovial island
#

Lol

#

Im Filipino BTW

#

I like vegetable salad

full marlin
#

that's nice

#

I had greek salad and kebabs for dinner

#

it was nice

#

all homemade

full marlin
#

<@&267629731250176001>

storm birch
#

!pban 468832389242552342 porn not allowed here

median blade
#

oh ffs

clever salmonBOT
#

:incoming_envelope: :ok_hand: applied purge ban to @stark ginkgo permanently.

storm birch
full marlin
#

np

#

.topic

rustic harborBOT
#
**What is your favorite fruit?**

Suggest more topics here!

full marlin
#

probably mangos

storm birch
#

ohhhhh, I love mangoes

median blade
#

yee

lucid girder
median blade
#

you said lol twice

lucid girder
#

huh

#

I did

#

time for a third

#

lol

wide totem
#

xith is not a bot

dusky cliff
#

totally

storm birch
#

this otn always makes me hungry

languid osprey
#

Lol

devout ingot
#

How do I replace a \\ with a \ in rust?
old_str.replace(r#"\\"#, r"\") doesn't work
I want Hello\\nWorld to become Hello\nWorld

odd sphinx
#

old_str.replace("\\\\", "\\") ?

devout ingot
odd sphinx
#

hmm

jovial island
#

(The replacing, I mean. I don't use Rust)

#

Maybe replace \\n into a \n?

devout ingot
jovial island
#

Ah

median blade
severe trout
#

i legit don't know what happened

dusky cliff
median blade
#

well, Qt Creator for Windows and all the packages with it (probably not needed) is like 100GB

#

and thats excluding backwards compatibility support

severe trout
#

wha

#

VS ftw in windows

hazy laurel
#

I wouldn't be a Linux user if I didn't hate Windows

gentle jewel
#

@hard canyon sorry, you closed the chat while i was looking stuff up lol
you might want to start looking for a library here: https://awesome-python.com/#search

hard canyon
#

hm, this is way complicated than what iw as preparing for haha

#

but i am happy that i know what to do (for now)

severe trout
tranquil ridge
severe trout
#

like jython and other implementations

#

or is it abandoned?

tranquil ridge
#

bruh

#

that rustpython

#

tbh ill only prefer cpython

#

most of the times

severe trout
#

i like this lol

odd sphinx
#

lol

tribal tinsel
#

Hm, Filipino fruit salad? 🤔 Now I wonder what interesting fruit you have there that are not here or are rarely imported here (middle of Europe)

eager tide
lucid osprey
#

ahah.. yes

broken summit
#

i.e. U+000a

#

so

#

you need to do something like

#

wait

#

no

#

don't do that

#

just do old_str.replace("\\n", "\n")

#

lmao

#

yeah do that

#

you can't really generalize it

round moss
#

that won't work, since you can have rust "\\\\n"

broken summit
#

hm?

#

oh true

round moss
#

you need a really simple parser for this afaik

broken summit
#

yeah probably

#

or some regex

round moss
#

regex could indeed parse escape sequences

#

sth like
/\\([ntb01e\\]|u[0-9a-fA-F]{4})/g
etc

broken summit
#

would (?<=[^\\](\\\\)*)\\n work?

round moss
#

as long as you go with non overlapping matches

broken summit
#

o.o

round moss
#

in python you can just use the unicodeescape codec though

#

no idea if rust has such an encoding builtin

broken summit
#

just use this crate

#

actually don't it's 5 years old

devout ingot
#

I do not really want to bring in an external dependency for just one simple task

#

Is there a better solution? :(

round moss
#

regex

broken summit
#

regex

rare moat
#

regex

devout ingot
#

This is asking a lot but could you write a regex for me?

dusky cliff
#

regex

broken summit
#

regex is probably your best bet

odd sphinx
#

so true

broken summit
#

so true

rare moat
#

so true

dusky cliff
#

so true

lucid osprey
#

so true

dusky cliff
#

monke see monke say

odd sphinx
#

monke see monke say

rare moat
#

Valgrind is the most useful program to ever exist.

lucid osprey
#

return to monke

odd sphinx
#

ikr

lucid osprey
#

oh I broke it

dusky cliff
rare moat
#

it is a collection of utilities for debugging C code.

dusky cliff
#

I C

rare moat
#

one of the main parts is memcheck, which finds memory leaks.

odd sphinx
#

memory usage checker

#

yes

dusky cliff
#

C what i did ther?

rare moat
#

and good lord.

#

it is so useful.

round moss
rare moat
odd sphinx
dusky cliff
#

ok

round moss
#

or just for loop over the characters and check for \

devout ingot
rare moat
round moss
#

!e
meanwhile in pythonland

s = b"\\N{CUCUMBER}"
print(s.decode('unicode_escape'))
clever salmonBOT
#

@round moss :white_check_mark: Your eval job has completed with return code 0.

🥒
odd sphinx
#

pyflex

rustic harborBOT
#

That'S TOO maNy abSTRACTiONs

sly cedar
#

idk

lucid osprey
#

you will get....

#

a nobel prize?

#

idk

#

hmm.

#

truth or dare?

#

you're playing that?

round moss
#

bake some bread

lucid osprey
#

ahah nice. Rei can give the bread to his parents

#

.topic

rustic harborBOT
#
**What websites do you use daily to keep yourself up to date with the industry?**

Suggest more topics here!

lucid osprey
#

just answered above this

#

you need to learn how to send messages all in 1 line.

#

you've done what?

#

baking a bread?

#

Mhm.

#

ok let me see.

#

make a paper swan.

#

its kinda fun to make stuff with paper, especially origami

#

I suck at it. but I like it

#

oof. lemme think

#

Tried drawing?

#

or painting

dusky cliff
#

drink water

#

being hydrated is important

full marlin
#

yeah

lucid osprey
#

ahah best dare ever.

lament kestrel
lucid osprey
#

I dare you to wake up 1 hour earlier than you usually do.

#

its kinda fun thinking of what to do with all the free time.

dusky cliff
lucid osprey
#

why are you talking in 3rd person lol

lucid osprey
#

is this Rei?

#

Mhm.

#

"you think he'll wake up"

#

you're talking about yourself right

#

yeah.

#

I'm a bit confused as to why you refer to yourself by using "he" , "rei"

#

and not "I"

#

Oh I see.

#

so you must be Rei's sibling?

lament kestrel
#

You don't get to choose when to live

lucid osprey
#

ok so you just said you're not Rei. Then who are you?

#

ummm

#

give the phone to Rei.

#

eh??

#

..

#

aight ima head out.

limber pollen
# tribal tinsel Hm, Filipino fruit salad? 🤔 Now I wonder what interesting fruit you have there ...

By filipino fruit salad I believe I meant https://en.m.wikipedia.org/wiki/Buko_salad

Buko salad, usually anglicized as young coconut salad, is a Filipino fruit salad dessert made from strips of fresh young coconut (buko) with sweetened milk or cream and various other ingredients. It is one of the most popular and ubiquitous Filipino desserts served during celebrations and fiestas.By changing the ratio of milk, buko salad dessert...

lucid osprey
#

Nope, its not in my nature to "use someone".

#

this conversation is making my brain go brrr

#

Mhm.

tribal tinsel
#

I use Rei. To sign him up for therapy and get him to a cat cafe so that he can chill

tribal tinsel
lucid osprey
#

thats cute.

tribal tinsel
tribal tinsel
languid osprey
tribal tinsel
languid osprey
#

Ooh another cat

#

cats pog

lucid osprey
#

I have a stray cat that always comes up in the backyard or front. then disappears suddenly

languid osprey
#

Lol

lucid osprey
#

but its not my pet tho.

#

but cute to look at.

lucid osprey
# languid osprey cats pog

the problem with cats is that they really don't express their emotions or love to their owners that much. Compared to a dog... damn

#

dogs be following you around and wagging the tail and running upto you

round moss
#

my cats do express affection

lucid osprey
#

but it isn't that expressive.

languid osprey
#

I like cats

lucid osprey
#

yeah me too.

tribal tinsel
#

I cannot use someone in a bad faith. I want to help

round moss
#

a cat laying on you and constantly cuddling is pretty expressive

languid osprey
#

Yes

lucid osprey
#

fair enough.

languid osprey
#

Mhm, cats purr and shit

tribal tinsel
#

Yup. Dogs express their love always. Earning cats' love is more rewarding

lucid osprey
#

what about a dog..? they be liking walks with you, going outside... playing fetch etc

#

also its very over expressive which makes it cuter

languid osprey
lucid osprey
dusky cliff
#

Cats = Dogs

languid osprey
#

Hi

lucid osprey
dusky cliff
#

yes

#

also

lucid osprey
#

to help != being naive

dusky cliff
#

you're using periods way too much

languid osprey
#

Uh, ig

lucid osprey
#

periods way too much?

dusky cliff
#

yes

lucid osprey
#

wdym

languid osprey
#

Whats classified as fun?

tribal tinsel
#

I can make you addicted to playing minesweeper and complete the expert mode in 80s. Did you mean playing like that? I don't think so :P

dusky cliff
#

fullstops

languid osprey
#

Uh

dusky cliff
#

yes

languid osprey
#

Coconuts pog

tribal tinsel
#

I know I'm a weirdo. I'm proud of that. Embracing my neurodiversity and being myself :p

tribal tinsel
#

@jovial island as Ankith quoted one of the older messages, you're another front now? Hence speaking of Rei in 3rd person?

full marlin
#

well I'm allergic to dogs

languid osprey
#

Oof

full marlin
#

and cats hate me

languid osprey
#

I'm slightly allergic to both cats and dogs

full marlin
#

like I got scratched badly a lot

languid osprey
#

But slightly

full marlin
#

idk why the cats I met were so agressive

#

I pushed the cat off me bc it was clawing my arm

#

and then my friend was like dude that's abuse

#

🥴

#

what the hell would you do if a cat was clawing your arm huh

#

do cats even have training or do they just do their own thing

round moss
#

you can train cats

full marlin
#

like you can condition a dog to not bite people or run out onto the street

#

oh

#

well

#

then my friend did a horrible job at training his cat

round moss
#

you generally don't have to, they can mostly adapt

tribal tinsel
#

Nice to meet you. How would you like to be addressed? Do you use any name or nickname? ^^

#

Yup, I know how plural systems work. I was once what one could call a median system (no switching, just... personified parts of deeper parts of psyche). ^^

median blade
#

you gonna be muted again if you message like that lol

tribal tinsel
#

Next time would you want us to encourage your alter to leave you a message? I read that communicating with alters when you don't remember the switch is tricky

lucid osprey
#

ok I'm back from dinner

tribal tinsel
lucid osprey
median blade
#

this is bizarre

lucid osprey
#

I'm a bit confused now.

tribal tinsel
#

I read it's not that easy. But don't worry. Do you want some resources on plural systems?

lucid osprey
#

@jovial island can you tell me what is going on?

full marlin
#

what's a front?

#

plural system???

tribal tinsel
lucid osprey
full marlin
#

oh

#

so like the dude in Split?

#

forgot his name

tribal tinsel
#

Front is an alter that's in control

lucid osprey
#

nicky, you seem to have followed the conversation

lucid osprey
lucid osprey
#

how many such entities do you have in you?

#

Mhm?

tribal tinsel
#

Plural system is a general name for multiple personas (alters) in one mind. It doesn't have to be switch like Rei here had, i mentioned i was once what could be considered a median system (so more like different parts of me than full personas, and no switches)

lucid osprey
#

oh.

tribal tinsel
lucid osprey
#

lemme go through it

#

a game of tic tac toe would clear the mind wouldn't it?

#

this is giving me mr.robot vibes.. anyone else watched the series?

full marlin
#

yes

#

yes indeed

tribal tinsel
#

You should interact with some systems. I already linked Reddit but there are more spaces which could help you understand yourself better. There's even a whole Mastodon server (mastodon is like decentralised twitter) for plural systems

full marlin
#

I'm getting mr robot vibes

#

and Split vibes

lucid osprey
#

Mhm.

#

I liked the first season the most. Since the hacking scenes are more common.

#

but the rest is like elliot getting his mind fucked.

full marlin
#

but then he hacks the FBI

lucid osprey
full marlin
#

and you're like sure of course he hacks the FBI

lucid osprey
#

very accurate indeed.

tribal tinsel
#

Plural systems. Other multiples like you, to help you

full marlin
#

it just devolved into him losing his shit

lucid osprey
#

atleast the terminal isnt green with 0's and 1's flowing

full marlin
#

and I didn't know what was happening

lucid osprey
#

lol

full marlin
#

I stopped watching the second season

#

just got bored

lucid osprey
#

welp.

full marlin
#

no interest in seeing Elliot trip

#

it doesn't even end concretely

lucid osprey
#

season 4 gets better with a Chinese dude and dark army

full marlin
#

it ends ambiguously

#

elliot dies... but he dies in his head?

#

🥴

#

if you're going to end a show do it concretely

#

like how Breaking Bad did it

lucid osprey
#

actually when was it revealed that Darlene's brother is elliot? that was a big twist

full marlin
#

yes

lucid osprey
#

season2 beginning right

full marlin
#

Darlene is Elliot's sister

#

yes

#

but the dad is dead

lucid osprey
#

always has been.

full marlin
#

the dad is a figment of his imagination

lucid osprey
#

yeah

#

actually in season4.

#

there is another big twist

full marlin
#

the mental health aspect is not done well in my opinion

toxic viper
full marlin
#

not surprising

toxic viper
#

Nah they didn’t lol

lucid osprey
#

joke right

full marlin
#

oh

toxic viper
#

Yea

lucid osprey
#

lol

full marlin
#

oh you're saying if they did

#

well I don't really know

#

I'm just speaking from personal preference here

toxic viper
#

You end a show concretely, it’s done