#ot2-the-original-pubsta

652 messages · Page 55 of 1

jovial island
#

was a breach of trust of sorts

#

its like, it wasn't an affair, but you thought about it

hazy laurel
#

Obviously it's a lot better now

#

but I don't think I'd recommend vanilla Ubuntu

#

Kubuntu or Xubuntu 👌🏽

jovial island
#

ive been eyeing no x for a while now

#

it has major limitations though

#

but also way less distractions

#

ive been kinda thinking about the role computers have in my life for a while now, and i dont like it

#

id very much rather i control computers than the other way around

jovial island
#

@median blade

median blade
#

yes

jovial island
#

type 'String' is not a subtype of type 'num' of 'value'

median blade
#

umm yes..

jovial island
#

the problem is

#

I want to add a result to a page

echo fern
#

why are ints called "type num of value" though

jovial island
#

even though I use toString it does not even work

median blade
#

oh

#

show the code snippet

jovial island
#

soure

#

sure

#

as I told you it's bit a lot 😄

median blade
#

show a snippet

jovial island
#
final inputDatas = {
  'input_money': [],
  'input_money_source': [],
};

final outputDatas = {
  'output_money': [],
  'output_money_source': [],
};

String circumstansesInput() {
  num sumInput = 0;

  for (int i = 0; i < inputDatas['input_money'].length; i++) {
    sumInput = sumInput + inputDatas['input_money'][i];
    sumInput = sumInput + inputDatas['input_money'][i];
  }
  return sumInput.toString();
}

String circumstansesOutput() {
  num sumOutput = 0;
  for (int i = 0; i < outputDatas['output_money'].length; i++) {
    sumOutput = sumOutput + outputDatas['output_money'][i];
  }
  return sumOutput.toString();
}
median blade
#

ah aight

#

where is the problem here

slate wraith
#

Hey. I have a doubt regarding C++ in VS CODE.
I find that to get input from the user, we have to run the program through terminal, isnt there a better way to do it?

PS: I know this is a .py server, but I just started learning c++ in VS code from python in Pycharm
tag me

clever salmonBOT
#

Hey @jovial island!

Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:

• If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)

• If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:

https://paste.pythondiscord.com

median blade
#

dont post the entire code...

jovial island
#

but I use three different files

median blade
#

yes but show the affected file and explain the imported variables or something

jovial island
#
class _Page3State extends State<Page3> {
  @override
  Widget build(BuildContext context) {
    String textHolderInput;
    String textHolderOutput;

    setState(
      () {
        textHolderInput = circumstansesInput().toString();
        textHolderOutput = circumstansesOutput().toString();
      },
    );
median blade
#

mhm

jovial island
#
ButtonTheme(
              minWidth: 160,
              height: 50,
              child: RaisedButton(
                shape: RoundedRectangleBorder(
                    borderRadius: BorderRadius.circular(17)),
                onPressed: () {
                  setState(
                    () {
                      inputDatas['input_money'].add(prizeController.text);
                      inputDatas['input_money_source']
                        .add(placeController.text);
                    },
                  );
                },
median blade
#

holup but isnt RaisedButton deprecated?

jovial island
#

yes that's right but it still works

median blade
#

oki

jovial island
#

I can stream my codes

#

if you are not busy

median blade
#

i cant vc

jovial island
#

mmm

#

k

jovial island
#

.topic

rustic harborBOT
#
**If you could take only three things from your house, what would they be?**

Suggest more topics here!

jovial island
#

everything

tawdry salmon
#

Everything, nothing, and a bit of what's between them

jovial island
#

The roof too

median blade
#

@cerulean panther

#

!paste

#

hmm hastebin is down

#

what do i do

#

@odd sphinx

#

B)

odd sphinx
#

yo

cerulean panther
#

github gists

median blade
#

aight

odd sphinx
#

ok

median blade
#

oof

#

lol nvm

#

here

#

so yeah i wanna remove that error that i get when using the on screen keyboard

odd sphinx
#

this one has two solutions

median blade
#

oof

odd sphinx
#

scroll to the end

median blade
#

aight

#

thanc

odd sphinx
#

k

median blade
#

oooof perfect

#

thanc

#

much thanc

odd sphinx
#

ok

median blade
#

hey zee

#

so i now have a login screen

#

oh god

#

so

#

i want a signup screen that adds just one widget to the login screen

#

how do i subclass and stuff to do that

#

or do i build the sign up screen from scratch

cerulean panther
#

what?

median blade
#

ignore him

jovial island
#

deleted

odd sphinx
#

u can reuse the username and pass widgets

median blade
#

oop

odd sphinx
#

or

median blade
#

and how do i do that?

#

keys?

odd sphinx
#

no

#

u can make the entire page a reusable widget

#

and have a paramter for anything extra

#

like ur sign up page

#

also

#

that is a nice looking app

median blade
#

ah

median blade
odd sphinx
#

thats easily fixable

wide totem
#

guys i think the discord icons are having a fight

cerulean panther
#

lol, what is even happening there

wide totem
#

fwiw it persists after cache

#

so u can view it there

royal lantern
#

whats the difference between
^[^AEIOU].*|.*[^aeiou]$ and ^[^AEIOU].*[^aeiou]$ in regex?
I am trying to filter words that don't start or end with vowels

#

both seem to filter correctly

scarlet totem
#

!e

import re
print(re.search('^[^AEIOU].*|.*[^aeiou]$', 'All'))
print(re.search('^[^AEIOU].*[^aeiou]$', 'All'))
clever salmonBOT
#

@scarlet totem :white_check_mark: Your eval job has completed with return code 0.

001 | <re.Match object; span=(0, 3), match='All'>
002 | None
royal lantern
#

word that and uppercase vowel
?

scarlet totem
#

woops lol

#

fixed

royal lantern
#

oh

#

I thought ^[^AEIOU] picks words that do not start with vowel

wide totem
#

👀

#

how does logger work

#
logger.warning(
            "No log channel set, set one with `%ssetup` or `%sconfig set log_channel_id <id>`.",
            self.prefix,
            self.prefix,
        )
wide totem
#

i want to fix this

royal lantern
#

ty for clearing it up

scarlet totem
#

np

proper python
#

̷
̸
/

#

there are three different kinds of backslashes

scarlet totem
#

!charinfo ̷
̸

clever salmonBOT
dusky cliff
#

/

proper python
#

four, i guess

dusky cliff
#

| ̸ / / _

#

me: mom can i buy a logo_stack_overflow
mom: we have logo_stack_overflow at home
logo_stack_overflow at home:
_ / / ̸ |

delicate lion
#

y'all ever just feel like taking a bite out of an avacado

#

like I just wanna eat a whole avacado for some reason

wide totem
#

i've seen someone do it with limes

delicate lion
#

there's just something about the texture of avacado tho

#

like squishy but firm

wide totem
#

smh

#
        logger.warning(
            "No log channel set, set one with `%ssetup` or `%sconfig set log_channel_id <id>`.",
            self.prefix,
            self.prefix,
        )
#

how can i get rid of the second self.prefix here

sinful sun
#

Just delete it?

#

Probably also have to get rid of the %config part

wide totem
#

yeah ;-;

#

but i want both to have the prefix

#

i mean

#

i could change it to a .format()

sinful sun
#

Why

#

This seems like a non issue tbh

tribal tinsel
#

just str.format or fstring

sinful sun
#

I wouldnt mess with logging tbh, if the module works a certain way then use it _ that_ way

#

This gives the same vibes as when people try to use fstrings or format for sql queries

tribal tinsel
#

well, sql queries are more about having sanitised things
but default logging module just uses % formatting, there's no need to sanitise anything and I've always used str.format in there

wicked hollow
hazy laurel
#

and the pit???

wide totem
#

And the inside part too?!?

hazy laurel
#

inside the pit \😳

delicate lion
#

no ew

#

just all the green stuff

daring orchid
#

Anybody want to try my game and give me some feedback?

worn sluice
#

lol

#

compared to other stuff it’s expensive in us too

#

i don’t even like it

wide totem
worn sluice
#

everybody everywhere does that

delicate lion
wide totem
#

ew

delicate lion
#

yummee

wide totem
#

i eat the skin and the pit but not the green stuff

delicate lion
#

that's weird

wide totem
#

lmfao i love when this occurs

delicate lion
#

the hecc

wide totem
#

when the restart command returns to a new terminal before the device exits

delicate lion
#

do not milk your avacados

worn sluice
#

avocavo smoothie

#

lol

#

avocado

daring orchid
#

What should I add to my game, its like pokemon, there are potions moves different pets and stuff

#

ok

viral hare
#

blenderpy or unity to animate blender model

odd sphinx
#

both

wide totem
#

well guys i started my modmail rewrite today

cerulean panther
#

noice

delicate lion
delicate lion
#

🤔 what

wide totem
#

the same source that @vapid maple has but as of now its my own source

#

like

#

atm idk if it will be merged or not

delicate lion
#

hm okie

#

any reason that you're rewriting it? Like features you're adding?

jovial island
#

Hey just wanna ask about can we make a A.I with python .

#

??

delicate lion
#

yes, ai is one of the main use cases of python

jovial island
#

ok

#

Thanks @cerulean panther and @delicate lion

#

I have made half of the A.I

dusky cliff
#

what happened to the other half

jovial island
#

in progress

delicate lion
dusky cliff
#

ah shit

delicate lion
#

so amze's gotta restart

slow lake
#

when a channel named safesearch off has a description of "keep it clean"

delicate lion
dusky cliff
#

👀

slow lake
#

yeah ik

jovial island
#

😥

#

Wel I wanna thank you all for help

slow lake
#

if you count Minecraft command block commands as a programming language, you are technically writing an instruction which is interpreted by java runtime interpreter, which was compiled by the java compiler, which was written and compiled in C, which was written and compiled from assembly

#

kinda crazy when you think about it

cerulean panther
#

yes

jovial island
#

very crazy and perplexed case

#

Earlier I coded on Scratch 3 then QB64 and now I am doing VS code python

wide totem
#

dms

#

not dns

#

although dns is nice too

median blade
#

lol

wide totem
#

.gh repo onerandomusername/modmail

rustic harborBOT
odd sphinx
#

anyone remember this?

#

man

#

nostalgia

cerulean panther
#

yeah

velvet lake
#

your turn

misty helm
#

Tsum=1 + 2 * (n+1) + 2 * n + 1 = 4n + 4 =C1 * n + C2 = O(n)

#

Can someone help me with this ?

velvet lake
#

kill

misty helm
#

1 + 2 * (n+1) + 2 * n + 1 = 4n + 4

#

2*(n+1) + 2*(n+1) = 2n+2 + 2n+2 = 4n+4

#

and we have +1

#

4n+5?

jovial island
#

Hmm

#

Not really

#

It's more 1 + (2n+2) + (2n+1)

misty helm
#

Thanks :D !

jovial island
#

No problem

odd sphinx
#

np

jovial island
#

p

odd sphinx
#

vs p*

tranquil ridge
#

= p*

dusky cliff
#

p vs np

odd sphinx
#

yes

dusky cliff
#

@magic atlas 🥴

wide totem
#

Erm, @magic atlas.

magic atlas
odd sphinx
#

erm

sullen gate
#

SO Excited For When My LAptop Setup is Complete, I CAN USE UBUNTU FOR SCHOOL AND DONE WIHT THIS STINKY iMAC

median blade
#

k

odd sphinx
#

same

sudden swallow
odd sphinx
#

yes

radiant socket
#

why lol

#

you can't have word or anything which your teachers are likely to use

odd sphinx
#

ikr

whole condor
#

"safesearch off" lol

odd sphinx
#

lol

slow valve
#

©️ copyright

odd sphinx
#

no

median blade
#

windows only

sullen gate
#

I use VScode

#

U guys use what?

cerulean panther
sullen gate
daring jay
sullen gate
#

logo_vscode Gang Rise Up! HUGH!

#

VScode is just nice, having no problems with interpreter:)

unlike Atom

#

'

#

Wait, so @cerulean panther You use both Pycharm and VScode?

sullen gate
#

Which do you use mainly?

cerulean panther
#

vscode

sullen gate
#

what's the other one for

cerulean panther
#

bigger projects

sullen gate
#

ohh I get it

#

Seriously tho, I really want to try this "PyCharm Professional" that everyone is playing, it seems really popular and people play it for a long time, so it must be addicting

median blade
#

Same

#

W0t

dusky cliff
#

true

cerulean panther
#

same

daring jay
#

It's just PyCharm but better

sullen gate
#

and that was a joke :/

daring jay
#

It's really nice

cerulean panther
daring jay
sullen gate
#

Sad, my wifi provider banned reddit 😦

cerulean panther
#

oof

median blade
#

Nice pog

somber belfry
#

which ISP do you use?

sullen gate
#

if i go to reddit this shows up:

sullen gate
median blade
#

Reload multiple times

#

Sometimes it works

cerulean panther
dusky cliff
#

🤔

somber belfry
cerulean panther
#

i even tried it on ie

sullen gate
#

My wifi provider announced it tho, so i know its offic

sullen gate
median blade
#

F

sullen gate
#

its indonesian I think

#

Thats where me FROM pog

cerulean panther
sullen gate
#

and me can't buy VPN because money none

somber belfry
#

🇮🇩

sullen gate
#

POG

#

POG

cerulean panther
sullen gate
#

Im fully indo, but I speak mainly eng and my school is in eng, so my BI(Bahasa Indo) kinda off ngl

#

lmao

dusky cliff
round moss
sullen gate
#

I don't trust Opera

wide totem
#

that's cool

#

@clever salmon scans all user messages for non-rich embeds lol

dusky cliff
wide totem
sullen gate
# dusky cliff why

just don't trust the company for the other shifty shi* they've done with their other programs

sullen gate
wide totem
sullen gate
#

Cool first time using Reddit from only watching Reddit Vids

sullen gate
median blade
#

Opera is shit👍

sullen gate
#

👍

round moss
sullen gate
sullen gate
wide totem
#

my trust hierarchy on competitive products from the main large companies are
microsoft > CloudFlare > Mozilla > Apple > Google

round moss
#

honestly, I am not sure how well it works on windows

median blade
#

Opera vpn is shit trust me

wide totem
#

u can set your dns servers to 1.1.1.1

round moss
#

but you can't get their VPN

#

just their DNS

wide totem
sullen gate
#

it doesnt say here

round moss
#

the domain is cooler IMO

wide totem
sullen gate
#

ohh

#

lmao

wide totem
round moss
#

nope, they have a VPN now

daring jay
#

I love the animation on that page

sullen gate
#

Pog

wide totem
#
Click Use The Following DNS Server Addresses.
Replace those addresses with the 1.1.1.1 DNS addresses:

    For IPv4: 1.1.1.1 and 1.0.0.1
    For IPv6: 2606:4700:4700::1111 and 2606:4700:4700::1001
wide totem
sullen gate
wide totem
#

i use the cloudflare vpn rn

sullen gate
#

damn

wide totem
#

but when i configured my dns servers for all devices to be cloudflare

#

as well

sullen gate
#

lemme try couldflare

round moss
#

the DNS probably won't bypass ISP blocks. Would be a right crappy block

wide totem
#

now, its not a full vpn

#

i've noticed some holes where it exposes my ip

sullen gate
#

Vpn's are weird

wide totem
#

but for the most part, you actually connect to a shitton of websites from an internal cloudflare ip

#

on the 172.x local subnet

#

they literally see my ip as a cloudflare ip

#

YEET

#

meanwhile at the exact same time

#

top one is the private subnet of a cloudflare ip

#

bottom ip is a cloudflare external ip

median blade
#

Did Joe teach you this

wide totem
#

nah

daring jay
#

I like how my public ip is just xx.xx.xx.xx

#

Instead of any 1 values and 3 values

wide totem
#

he might've told me they had a vpn or smth but i found this when testing if cloudflare is a vpn

wide totem
daring jay
#

It's multiple numbers

#

It just not any sets of 1 or 3

wide totem
#

ah

#

12.34.56.78

#

comcast ip address

#

ur ip starts with 75 or 76 🙂

#

or possibly 74

daring jay
#

Mine?

wide totem
#

yes

daring jay
#

It starts with 65

wide totem
#

ah

#

LOL

#

this is wonky

daring jay
#

What's wonky?

wide totem
#

THIS IS THE CLOUDFLARE NETWORK LOLOL

#

like my actual ip

#

not the cloudflare one 😓

daring jay
#

But I ain't using a vpn

wide totem
#

yeah

#

hm

#

after using it

#

why do we all trust 1.1.1.1?

#

do they gain anything out of it?

#

"never trust a free lunch" and 1.1.1.1 is the freest lunch you can get

median blade
#

It's faster ig

cerulean panther
#

speed and apparently privacy

daring jay
wide totem
#

google has 8.8.8.8 and they gain a fuckton of tracking information from that

#

but 1.1.1.1 doesn't run an advertising company so they don't need it

median blade
#

e.e.e.e

round moss
#

honestly, the most secure way to do DNS is to selfhost

wide totem
#

i mean yeah

pure tiger
#

hello

#

I've small problem using kali

#

Beginner

#

How can i put those date wifi signal and charging status to the top right

#

initially it was in the top right but i think i messed up

sullen gate
#

idek sos never used Kali before

wide totem
#

poetry

#

nothing is wrong

languid osprey
#

ooh no

wide totem
#

no seriously

#

really

#

its not

odd sphinx
#

bruh

wide totem
#

finally stopped at this

odd sphinx
#

damn

sinful sun
#

Whats the project

wide totem
#

@vapid maple

#

i'll never understand why there is a requirements.txt file, a pipfile, and a pyproject.toml file.

sinful sun
#

Its easier to deploy to heroku with a reqs.txt than poetry

daring jay
#

So people can use whatever they want

#

Maybe

wide totem
#

ik but they aren't all updated lol

sinful sun
#

poetry takes some hacks

wide totem
#

oh god

#

@daring jay i was using pipenv but i'm switching to poetry since it can't be that hard 👀

#

this is how outta date all the shit is

#
Package operations: 3 installs, 25 updates, 1 removal
daring jay
#

poetry > pipenv

odd sphinx
#

perhaps

wide totem
#

mostly

#

poetry bundles more of it together

#

which makes it slightly harder to use for some things

#

wtf

#

!pypi motor

clever salmonBOT
wide totem
#

!pypi pymongo

clever salmonBOT
wide totem
#

🤔

#

😳

#

resolve!

sinful sun
#

Fuck pylance all my homies hate pylance

wide totem
#

nah its right

#

they aren't installed

sinful sun
#

Why are you using both anyway

wide totem
#

no fucking clue tbh

#

i did not write this

#

i want to use motor

#

but uh

#

ah

#

why the fuck was a required dep marked as optional?!

#

⠠⠵

tribal tinsel
#

New friendo saying hello

daring jay
#

Aww

somber belfry
#

HELLO lemon_hearteyes

odd sphinx
#

what am i looknig at

wide totem
#

the answer to all

dusky cliff
#

damn

odd sphinx
#

lol

wide totem
#

wait those aren't even my problems

#

wtf

#

PYLANCE

#

the fuck you scanning my site-packages for

dusky cliff
#

lmao

wide totem
#

also vscode is downloading the server again lol

odd sphinx
#

pretty sure u can make it ignore sitepackages

#

not sure how

wide totem
#

well

odd sphinx
#

it should be a quick google

wide totem
#

its only a problem if my code runs

odd sphinx
#

bruh

wide totem
#

if my code doesn't run then its missing a dep

#

god i love this bot

odd sphinx
#

lol

wide totem
#

well the bot runs

#

that's good

#

although not the right hosting method

#

i'll let it pass

#

nah i won't

#

reboots machine

tribal tinsel
# odd sphinx what am i looknig at

We have blackbird nests by our roof and, well, bird parents throw out their chicks if the chicks are sick or weak. We got a dead one earlier today but this one survived the fall and after I carried it some time in my hands, it became more lively... So my mother-in-law decided we're keeping it. That was a photo of hungry smol one demanding food (i caught some flies earlier today for it!)

odd sphinx
#

ah i knew it

#

twas a bird

#

wait

#

the parents throw them from their nests?

#

and they die from the fall?

#

wtf

tribal tinsel
#

Well, it's either if they are sick - so parents are protecting the rest, or too weak if parents can't keep all, or already dead

hot pulsar
tribal tinsel
#

This one could've just fallen out as it seems to be strong... But we cannot reach the nests. We don't even know where exactly are the nests - they are kinda under our roof? Birds use some holes to get there

wide totem
#

wut m8

odd sphinx
#

sad

wide totem
scarlet totem
wide totem
scarlet totem
#

then I guess it doesn't have that

wide totem
#

oh

#

im an idiot

wide totem
#

works

scarlet totem
wide totem
#

yep installed and it works

daring jay
#

@grim seal Can I bother you about Cloudflare workers? I have two questions about them.

wide totem
#

welp

#

i now have two venvs for the same project lmfao

#

one handled by pipenv the other poetry

#

;-;

#

wait a minute

daring jay
#

I figured out one of them, but the other is, could you log events to a Discord webhook or any external service like that?

#

And if so, how would you do so?

wide totem
#

how to test one made a package properly with poetry??

wide totem
#

smh

#

i can't figure out how

languid osprey
#

You can install it locally

#

I have no idea how

#

but there should be documentation somewhere

grim seal
#

yeah, it's just a fetch

daring jay
#

Oh, it's that simple?

#

Thank you!

wide totem
#

basically i installed poetry with the system python

#

so it was a pip managed poetry

#

i went around and installed it with the script from github

#

however now i'm having issues with my own project trying to make a tar and a wheel

#

idfk how to know that the wheel will work

#

joe could you help 🥺

wide totem
#

^^ could you please help me, @grim seal ||501. no delet.||

grim seal
#

hmmmm

#

i mean

#

i thought poetry just generates wheels

#

it did for me at leasst

wide totem
#

yeah but where does the wheel save

grim seal
#

uhh

#

dist

wide totem
#

what?

#

oh

#

raspberry pi os / debian

bitter sierra
#

How many "Anderson" users are here...

grim seal
#

no i mean

#

dist folder

blissful coral
wide totem
grim seal
#

@wide totem

#

lol

#

my dude

#

a folder named dist

wide totem
#

i do not have a folder named dist lol

grim seal
#

did you run poetry build

wide totem
#

yes

grim seal
#

run tree and show me the full output

#

and the output of poetry build

wide totem
#

i uh

#

didn't notice dist

#

🤦

grim seal
#

yeah, dist is for distribution

wide totem
#

yeah

#

ITS RIGHT HERE SMH

#

okay

#

so how do i test that dist works?

#

basically how do i test a whl or a tar.gz locally?

peak iron
#

anyone can answer a simple question?

grim seal
wide totem
#

i install to a different env then

#

kek

grim seal
#

same for the tarball

wide totem
#

wait ah shit

#

i wasn't supposed to install it to the same venv lol

#

🤔

#

didn't install a dep that's in the pyproject wetf

grim seal
#

uhhh

#

platform specifiers?

#

more info pls

#

also look at the dep in the lockfile, are there any constraints on it there

wide totem
#

fixed it

#

had a optional specifier

#

dope it works

#

thanks joe

grim seal
#

👍

wide totem
#

yert

#

now to check license requirements ;-;

deep citrus
#

Hello I'm Brazilian and I would like to know what you think of Brazil (I don't know how to speak English)

languid osprey
#

hmm

#

I have never gone to brazil :P

vague steeple
#

mixed martial artists more specifically...other than that I don't know much about Brazil either.

daring jay
#

"And never use a bare exception"

vague steeple
daring jay
#

That was a quote from the PEP 8 song

#

Which was a reference to the off-topic name

vague steeple
#

good call

hazy laurel
#

hmmm

sullen gate
#

how does one optimise OBS for an 11 yr old laptop?

#

while recording VScode, Google, etc

sinful sun
#

Pick up the laptop
Put in trash
Buy something from this decade preferably

median blade
#

Oof

sullen gate
#

Spec: Intel core i5 580m 2.65ghz~
Ram 8gb ddr3
intel hd graphics 2012

sullen gate
sinful sun
#

Yea i dont think that would do streaming

sullen gate
#

Im not streaming

#

I said Recording

sinful sun
#

Screen capturing same difference

wide totem
#

Eh

#

They can probably get 480p 30fps
these numbers pulled outta my ass

wide totem
#

wat

#

🤯

vague steeple
sullen gate
#

Linux Ubuntu

#

on my laptop

vague steeple
#

use lubuntu

sullen gate
#

I don't want to, I like ubuntu its self lmao

vague steeple
#

i suggest because it's optimized to make the most of an old machine.

sullen gate
#

hmm ok I see it

vague steeple
#

but if you want to stick with ubuntu, i guess you can tweak the graphics and performance settings a bit

#

also, you can always dual boot if you want to keep your current OS

sullen gate
#

I alred have ubuntu and win10

#

i just use ubuntu as main

upbeat sandal
#

If you use a bare exception I will find you

wide totem
dusky cliff
upbeat sandal
dusky cliff
#

❤️

upbeat sandal
median blade
#

👉😬👈 — is this supposed to be DaBaby

wide totem
#

guys how can i get a path 3 levels up?

#

so if i have the file, how can i determine the path that is three levels up

ancient whale
#

../../..

wide totem
#

actually this is dumb it should use the cwd

#

thanks

wide totem
viral hare
#

well u can get the path of the current file and call parent on it

#

dont think thats recommended

ancient whale
#

can't you also use cd?

viral hare
#

cuz if u install the app there is gonna be an issue

ancient whale
#

os.chdir("../../..")

wide totem
#

for this usecase its a config.json file

#

it should really really really really be in the cwd

ancient whale
#

what's the use case?

wide totem
#

so i realize i should just use that

#

discord bot configuration settings

#

a bit like @clever salmon

ancient whale
#

how are you using the config file?

wide totem
#

with a default config file and a custom config file

ancient whale
#

I mean like are you opening/reading it?

wide totem
#

yeah

ancient whale
#

how?

wide totem
#

to note, this is the original code, i haven't pushed or rewritten it yet

ancient whale
#

can't you just do config_dir_name = "../../../config.json"?

wide totem
#

well i thought about that

#

but also no

#

because i'm writing this as a module

#

there's the possibility you could install it in site packages

#

but then you couldn't access the config

#

HOWEVER

wide totem
#

since if you scroll up you can see that it defines all of the config variables in the code

#

when i'd rather its a seperate defaults file

ancient whale
#

config_dir_name = os.path.join(os.path.join(../../../, os.path.abspath(__file__)), config.json)?

#

idk if you need the 2 os.path.join

#

or actually wouldn't just doing path = "../../../" + os.path.abspath(__file__) + "config.json" work?

wide totem
#

i think so

wide totem
#

yeah

ancient whale
#

ye actually you don't need to find the relative path at all

wide totem
#

Hm, can you bundle files outside of the project module?

ancient whale
#

os.rename(current_path, new_path) should do it

wide totem
#

What?

#

I'm confused, rename renames files?

ancient whale
#

if you rename the path of the file, it'll move the file to that new path

hazy laurel
#
def to_parent(level: int = 1) -> str:
    return "/".join([".."] * level)
odd sphinx
#

ok

median blade
#

Oof he doesn't like ok's

tribal tinsel
#

Bird friendo survived the night. Like half an hour ago, our cat heard it screaming for food and tried to peek under the covers, lol. The birdie eats a lot and today's too cold to easily hunt for flies, thankfully it eats seeds as well

odd sphinx
#

damn

tribal tinsel
#

"to easily hunt for flies" means me hunting for flies for the birdo. Birdo doesn't fly yet.

tranquil ridge
#

Bird

tribal tinsel
cerulean panther
#

kyoot birb

tribal tinsel
#

The wings look as if it has many smol paintbrushes :D

tranquil ridge
#

What's the yellowthings on its beak

#

Or is it a bill

tribal tinsel
#

Feeding clip got the best thumbnail :D

radiant socket
#

:o

#

name?

tribal tinsel
#

The common blackbird (Turdus merula) is a species of true thrush. It is also called the Eurasian blackbird (especially in North America, to distinguish it from the unrelated New World blackbirds), or simply the blackbird where this does not lead to confusion with a similar-looking local species. It breeds in Europe, Asiatic Russia, and North Afr...

radiant socket
#

oh, did you name that specific bird

tribal tinsel
#

We haven't given it any name yet. We found it yesterday and we're just happy it survived the night

#

As I wrote yesterday, bird parents throw out weak/sick/dead chicks. But this one survived the fall and seemed well. So I carried it a bit in my hands and it became even more lively.

#

So maybe this one just fell, and weren't thrown out

grim seal
#

🥺

tribal tinsel
#

My mother-in-law said it was 5th(!) smol one that day. I only knew about one other. But the nests are by the roof and it's metal black roof, so when sun hits hard, they overheat. Each summer we find dead chicks around...

jovial island
#

say what

median blade
#

e

jovial island
#

r/humansarealie

daring jay
sinful sun
#

Im trying to like castlevania so hard, this voice acting is so weird tho

jovial island
#

What is the most liquid absorbing thing?

cerulean panther
proper python
#
        <style>
            .agreement#0{
                color:green
            }
        </style>
<p class="agreement" id="0">Strong Agree</p>
#

🤔

#

but why does it not work

#

like literally why

daring jay
#

Add a semicolon after green

#

Does that work?

#

Also, it's better to define the actual hex or rgb of a color

#

Different browsers might set different values for green

proper python
#

nope

#

if i just do class, it works

#

its not that the properties are set badly

#

if i do id, it doesnt work

daring jay
#

What if you add a space between .agreement and #0?

proper python
#

something's up with id

daring jay
#

Oh wait

proper python
#

like just id also doesnt work

daring jay
#

That won't work since if you do that, it checks if #0 is inside agreement

#

But it's not, it's at the same level

proper python
#
            #0{
                color:green;
            }

also doesnt work

daring jay
#

pithink Could you stick it in a codepen or something like that?

round moss
#

IDs and classes may not start with digits

proper python
#

ah

#

cool

#

very epic

#

yeah, starting with a letter works

daring jay
#

… why was I reading the id as #0 instead of 0

wintry tinsel
languid osprey
#

ooh

real forum
daring jay
#

They figured it out

real forum
#

ahh ok

unborn flame
#

Anyone good at java? I have a computer science assignment and I need some help.

jovial island
#

Where could I find the code for the eval command? I have the GitHub but not sure what file to look in.

clever salmonBOT
#
Command: eval

Run Python code and get the results.

Source Code
daring jay
jovial island
jovial island
#

Mind my spelling, it's late and I'm tired

daring jay
wheat aurora
#

hurm.... windows powertoys may just convince me to go back to multiple monitors.... maybe

radiant socket
#

tabbing between codr and docs is just too much of a pain

#

I don't get how you do it

jovial island
jovial island
sullen gate
#

are Your guys school still online?

hazy laurel
#

yes

cerulean panther
sullen gate
#

same mine is almost over

#

and online

hazy laurel
#

ugh. I have a ton left to catch up on

#

Last night I did an assignment that took me an hour to do

#

for only 25 points... and I need 800

sullen gate
#

what subject?

hazy laurel
#

English 10 lmfao

#

I already took English 9, 11, and 12

#

but I never took English 10... so I'm taking it now

sullen gate
#

Why do you need to know so many english

hazy laurel
#

and it's the worst class I've ever had to take

hazy laurel
sullen gate
#

pepega

forest ether
#

*Any Australians in the chat?

odd sphinx
#

aussies

dusky cliff
viral hare
#

imagine living in australia

#

couldnt imagine living upside down

dim root
#

@storm birch just rename yourself to Hapitaine Fisher, griff would be far away from you

storm birch
#

I cannot forsake the purity of this name :C

dim root
#

change griff's nickname lol

misty wedge
#

hey look, another dog 😏

odd sphinx
#

how do u make an object immutable in python

hazy laurel
odd sphinx
#

then how are tuples

hazy laurel
#

Tuples aren't implemented in Python, though... are they?

odd sphinx
#

hm

#

tru4e]

dusky cliff
#

you could override __setitem__ and __setattr__

#

there's almost definitely some way to work around it but wtv

#

at least it will appear immutable

odd sphinx
#

hm

#

ok

#

ez

median blade
#

lol

#

wait how did you color your python REPL

#

huh its not the official REPL?

odd sphinx
#

no

#

the fabulous ipython

dusky cliff
#

lmao i like how it just says no

median blade
#

so you can just override any class right

#

hmmmmmmmmmm

odd sphinx
#

Yes

round moss
#

even tuples can be bypassed (though not without impl details), and here you can just skip calling the setitem and setattr

scarlet totem
odd sphinx
#

fuck

median blade
#

lol

manic geyser
gaunt jacinth
#

mate stop

#

thats 3 channels now

odd sphinx
#

lol

somber belfry
# manic geyser

hey steve, why have you sent that image in all three off-topic channels?

#

(I don't get the meme, but that's another story)

dusky cliff
odd sphinx
#

i dont see any pointing

somber belfry
#

ahhh

odd sphinx
#

in the statuses

#

therefore u are wrong

dusky cliff
#

true

odd sphinx
#

now shush child

somber belfry
#

yes zeeshan

odd sphinx
#

let the adults speak

#

yes

somber belfry
#

you have a point

odd sphinx
#

vivek

dusky cliff
#

ok grandpa

odd sphinx
#

no

somber belfry
#

zeeshan for @ Owners role

odd sphinx
#

yes

dusky cliff
#

yes

odd sphinx
#

vote now here:

daring jay
#

Better yet, zeeshan for @vapid maple

dusky cliff
#

damn

odd sphinx
#

bruh

#

why is everyone voting against me

manic geyser
#

Hi

#

There were more pointing fingers before

dusky cliff
#

and now there are none

manic geyser
#

Nearly 3,4

dusky cliff
#

=-1?

manic geyser
#

There is 1

manic geyser
dusky cliff
#

okbr

odd sphinx
manic geyser
#

Wru

odd sphinx
#

are u saying that i will instaban everyone the moment i get @ owners?

manic geyser
#

Are you owner?

somber belfry
#

oh hey happy steve

odd sphinx
#

vote for zee

manic geyser
#

Hi vivek

somber belfry
#

Please don't post the same image across multiple channels, it's kinda annoying

odd sphinx
#

hi steve

manic geyser
#

Ok sorry

somber belfry
#

thank you

odd sphinx
somber belfry
#

you are my only issue bro ❤️

odd sphinx
#

by banning anyone who does a small mistake

#

bruh

somber belfry
#

you are a smal-

#

okay

odd sphinx
#

so i should ban myself

#

got it

dusky cliff
odd sphinx
#

sus

dusky cliff
#

yoda(ddy)

odd sphinx
#

extreme sus

somber belfry
#

okay, bye

dusky cliff
#

Alright, father

odd sphinx
#

thats the best way to react

jovial island
#

.topic

rustic harborBOT
#
**What is the most satisfying thing you've done in your life?**

Suggest more topics here!

jovial island
#

rick roll my friends

idle comet
#

probably reach top 500 in the german leaderboard for beatsaber

dusky cliff
#

damn

idle comet
#

i mean, a lot of practice and effort paying off is very satisfying

sudden swallow
wide totem
#

@grim seal !!! New toml and pylance config system works!!!

#

Now I need to figure out how to define a few custom methods on the Config class which inherits from BaseModel

#

Hopefully it's easy enough to do

grim seal
#

cool

median blade
#

lol

blazing lynx
#

YESSSSSS. Mr. Beast = honey + money

#

is that even possible?!?!

daring jay
#

Why are you replying to 2018 messages? pithink

blazing lynx
#

wdym it is 2018...

median blade
#

Lmao

languid osprey
sudden cloud
#

todays channel name is amazing

ocean grove
wide totem
#

@short cliff how was demotion

ocean grove
#

Meanie mr @grim seal always demoting Hemlock

grim seal
#

i'm just built different

#

lol hello clay nice to see you

ocean grove
#

Hello friend. You haven’t snapped me in a while so I figured I’d come say hi

lean birch
grim seal
#

lmfao

#

snap replied

short cliff
wide totem
#

channel name

sinful sun
#

I never said i'd answer

#

Why are you asking

#

What makes you curious

#

How would you know, i've never interacted with you before you started bothering me just now

#

Oh, well

#

🥴

hazy laurel
#

"app store"

#

damned Apple users

keen burrow
#

Hey @jovial island please don’t post memes/chainmails here

spice ruin
#

SUP
HOMIES

storm birch
#

howdy howdy

hollow heart
#

howdy howdy

raw raptor
#

howdy howdy

hazy laurel
#

howdy howdy

exotic hound
#

howdy howdy 🙂

#

How do I get my first 50 reputation on stackoverflow?

storm birch
#

I am so proud of literally everyone here

languid osprey
#

the fuck

storm birch
#

O.o

languid osprey
#

so many howdys

#

RIP spelling

storm birch
#

howdy is the one true greeting

languid osprey
#

lmao

#

yes

storm birch
#

I say it irl all the time. It is a bit of a problem

languid osprey
#

Howdy :D

#

rip

storm birch
#

But I also own an actual cowboy hat, so like... no surprises

languid osprey
languid osprey
#

anyways, I'll go eat dinner, bye :D

daring jay
#

See ya

hazy laurel
#

that was awful. I'm never doing that again

median blade
#

Good

jovial island
#

is anyone here

radiant socket
#

no

jovial island
#

what is a word I can use to refer to where a server is kept in a network

lean galleon
#

The Domain Name System

#

i think

jovial island
#

wut.. no

tall temple
#

ESOTERIC LEMON

hazy laurel
#

that's me

lean galleon
#

lEEEEMMMOOONNN

jovial island
#

I mean, in a cloud network, when you have different servers at different levels on the hierarchy

tall temple
#

LeeMone

jovial island
#

and you can choose to put a server on one level.. so it has a certain level of connectivity at that level, what is that called..

lean galleon
#

idk

jovial island
#

like a word for saying.. you can put it on this level.. or this other level

lean galleon
#

idk

wide totem
#

i should probably commit at some point

jovial island
#

Yeahhhhh

wide totem
#

just did it

wide totem
dusky cliff
#

bruh

wide totem
#

lol

#

and more specifically, moved the bot class to a new file

median blade
#

why are you making a mod mail bot?