#ot2-the-original-pubsta
652 messages · Page 55 of 1
Obviously it's a lot better now
but I don't think I'd recommend vanilla Ubuntu
Kubuntu or Xubuntu 👌🏽
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
@median blade
yes
type 'String' is not a subtype of type 'num' of 'value'
umm yes..
why are ints called "type num of value" though
even though I use toString it does not even work
show a snippet
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();
}
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
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:
dont post the entire code...
but I use three different files
yes but show the affected file and explain the imported variables or something
class _Page3State extends State<Page3> {
@override
Widget build(BuildContext context) {
String textHolderInput;
String textHolderOutput;
setState(
() {
textHolderInput = circumstansesInput().toString();
textHolderOutput = circumstansesOutput().toString();
},
);
mhm
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);
},
);
},
holup but isnt RaisedButton deprecated?
yes that's right but it still works
oki
i cant vc
.topic
Suggest more topics here!
everything
Everything, nothing, and a bit of what's between them
The roof too
@cerulean panther
!paste
hmm hastebin is down
what do i do
@odd sphinx
B)
yo
github gists
aight
ok
oof
lol nvm
here
so yeah i wanna remove that error that i get when using the on screen keyboard
this one has two solutions
oof
scroll to the end
k
ok
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
what?
ignore him
deleted
no
u can reuse the username and pass widgets
oop
or
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
ah
thanc but its too bland
thats easily fixable
lol, what is even happening there
fwiw it persists after cache
so u can view it there
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
The first one will match with a word that starts with a uppercase vowel and ends with letter that's not a lowercase vowel and the other way around
!e
import re
print(re.search('^[^AEIOU].*|.*[^aeiou]$', 'All'))
print(re.search('^[^AEIOU].*[^aeiou]$', 'All'))
@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
word that and uppercase vowel
?
👀
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,
)
You have a |
i want to fix this
np
!charinfo ̷
̸
\u0337 : COMBINING SHORT SOLIDUS OVERLAY - ̷
\u000a : -
\u0338 : COMBINING LONG SOLIDUS OVERLAY - ̸
\u0337\u000a\u0338
/
four, i guess
y'all ever just feel like taking a bite out of an avacado
like I just wanna eat a whole avacado for some reason
at home:
1e1000
😳
i've seen someone do it with limes
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
yeah ;-;
but i want both to have the prefix
i mean
i could change it to a .format()
just str.format or fstring
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
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
You can do:
logger.warning(
"No log channel set, set one with `%(prefix)ssetup` or `%(prefix)sconfig set log_channel_id <id>`.",
dict(prefix=self.prefix),
)
and the pit???
And the inside part too?!?
inside the pit \😳
Anybody want to try my game and give me some feedback?
ew who eats that
everybody everywhere does that
me
ew
yummee
i eat the skin and the pit but not the green stuff
that's weird
lmfao i love when this occurs
the hecc
when the restart command returns to a new terminal before the device exits
do not milk your avacados
What should I add to my game, its like pokemon, there are potions moves different pets and stuff
ok
blenderpy or unity to animate blender model
both
well guys i started my modmail rewrite today
noice
of @vapid maple or a personal one?
yes
🤔 what
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
yes, ai is one of the main use cases of python
yes
what happened to the other half
in progress
it became self aware and is now on its way to gain the nuclear codes
ah shit
so amze's gotta restart
when a channel named safesearch off has a description of "keep it clean"
the names rotate by the day
👀
yeah ik
noooo !
😥
Wel I wanna thank you all for help
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
yes
very crazy and perplexed case
Earlier I coded on Scratch 3 then QB64 and now I am doing VS code python
ah, do you mind if i answer in dns?
dms
not dns
although dns is nice too
lol
.gh repo onerandomusername/modmail
A feature rich discord Modmail bot
Forked from kyb3r/modmail
The holiday season calls for the most delicious food ever!
Catch up with Tom & Jerry as they chase each other, avoid Spike, and play with friends like Little Quacker and Butch the cat.
WB Kids is the home of all of your favorite clips featuring characters from the Looney Tunes, Scooby-Doo, Tom and Jerry and More!
Tom & Jerry available on dig...
anyone remember this?
man
nostalgia
yeah
your turn
Tsum=1 + 2 * (n+1) + 2 * n + 1 = 4n + 4 =C1 * n + C2 = O(n)
Can someone help me with this ?
kill
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?
No problem
np
p
vs p*
= p*
p vs np
yes
@magic atlas 🥴
Erm, @magic atlas.

erm
SO Excited For When My LAptop Setup is Complete, I CAN USE UBUNTU FOR SCHOOL AND DONE WIHT THIS STINKY iMAC
k
same
May god bless you✅
yes
ikr
"safesearch off" lol
lol
©️ copyright
online word
no
windows only



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?
yup
Which do you use mainly?
vscode
what's the other one for
bigger projects
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
true
same
PyCharm pro isn't a game
It's just PyCharm but better
and that was a joke :/
It's really nice
r/wooosh
oh
Sad, my wifi provider banned reddit 😦
oof
Nice pog
that sounds fucked up
which ISP do you use?
if i go to reddit this shows up:
What does that mean?
same, for some reason when i visit reddit i get "Your connection is not private", dang xl
🤔
your wifi/internet provider
i even tried it on ie
My wifi provider announced it tho, so i know its offic
Biznet
F
cool, same
and me can't buy VPN because money none
🇮🇩
yup
Im fully indo, but I speak mainly eng and my school is in eng, so my BI(Bahasa Indo) kinda off ngl
lmao
downloadoperabrowserforfreeithasabuiltinvpn
https://translate.google.com/translate?sl=en&tl=en&u=reddit.com does this work?
I don't trust Opera
why
HOLY SHI* IT FRICKEN WORKS
it worked
i installed opera gx yesterday
just don't trust the company for the other shifty shi* they've done with their other programs
This man's inteligence transcends all you bestow upon him.
honestly at that point don't trust google lol
Cool first time using Reddit from only watching Reddit Vids
but everythign for school is google based so :/
Opera is shit👍
👍
https://one.one.one.one/ is a free VPN by cloudflare, so as far as free VPN goes, this is the most reliable one
that was abrupt
lmao
Are you sure? I MEAN WHAT AM I ASKING OFC YOURE SURE !!
my trust hierarchy on competitive products from the main large companies are
microsoft > CloudFlare > Mozilla > Apple > Google
honestly, I am not sure how well it works on windows
Opera vpn is shit trust me
its not on linux sad
also uh, https://1.1.1.1
it doesnt say here
the domain is cooler IMO
dude its a fucking dns server LOL
nope, they have a VPN now
I love the animation on that page
Pog
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
its both, man
Ya, very well designed
i use the cloudflare vpn rn
damn
lemme try couldflare
the DNS probably won't bypass ISP blocks. Would be a right crappy block
Vpn's are weird
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
Did Joe teach you this
nah
he might've told me they had a vpn or smth but i found this when testing if cloudflare is a vpn
lolwat
Mine?
yes
It starts with 65
What's wonky?
http://8.21.10.104/ is what i'm exposed as to devices not on the cloudflare network
THIS IS THE CLOUDFLARE NETWORK LOLOL
although what i'm confused about is somehow this website sees my ip address https://ipchicken.com/
like my actual ip
not the cloudflare one 😓
That website sees my public ip
But I ain't using a vpn
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
It's faster ig
speed and apparently privacy
Monee from cf pro
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
e.e.e.e
honestly, the most secure way to do DNS is to selfhost
i mean yeah
hello
I've small problem using kali
Beginner
help
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
idek sos never used Kali before
ooh no
bruh
damn
Whats the project
@vapid maple
i'll never understand why there is a requirements.txt file, a pipfile, and a pyproject.toml file.
Its easier to deploy to heroku with a reqs.txt than poetry
ik but they aren't all updated lol
poetry takes some hacks
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
poetry > pipenv
perhaps
mostly
poetry bundles more of it together
which makes it slightly harder to use for some things
wtf
!pypi motor
!pypi pymongo
Python driver for MongoDB http://www.mongodb.org
Fuck pylance all my homies hate pylance
Why are you using both anyway
😳
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?!
⠠⠵
New friendo saying hello
Aww
HELLO 
what am i looknig at
damn
lol
wait those aren't even my problems
wtf
PYLANCE
the fuck you scanning my site-packages for
lmao
also vscode is downloading the server again lol
well
it should be a quick google
its only a problem if my code runs
bruh
lol
well the bot runs
that's good
although not the right hosting method
i'll let it pass
nah i won't
reboots machine
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!)
ah i knew it
twas a bird
wait
the parents throw them from their nests?
and they die from the fall?
wtf
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
nice. once its big and strong go smash the current nest and scare off the evil mother bird, then put a house for your cute bird
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
ah i see
wut m8
sad
But why is it checking in my last item on my fricking path
poetry run task start
and?
then I guess it doesn't have that
yes, it does
yep installed and it works
@grim seal Can I bother you about Cloudflare workers? I have two questions about them.
welp
i now have two venvs for the same project lmfao
one handled by pipenv the other poetry
;-;
wait a minute
go ahead
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?
how to test one made a package properly with poetry??
You can install it locally
I have no idea how
but there should be documentation somewhere
you mean can you call a webhook from in a worker?
yeah, it's just a fetch
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 🥺
^^ could you please help me, @grim seal ||501. no delet.||
yeah but where does the wheel save
How many "Anderson" users are here...
#ot2-the-original-pubsta In all my time in this server, never has a title been so much .......interesting
wtf is a dist folder?
i do not have a folder named dist lol
did you run poetry build
yes
yeah, dist is for distribution
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?
anyone can answer a simple question?
pip install ./dist/yourproject.whl
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
uhhh
platform specifiers?
more info pls
also look at the dep in the lockfile, are there any constraints on it there
👍
Hello I'm Brazilian and I would like to know what you think of Brazil (I don't know how to speak English)
Brazil has some really good martial artists.
mixed martial artists more specifically...other than that I don't know much about Brazil either.
"And never use a bare exception"
yes, you should always wrap your exceptions in a more specific one...if possible
good call
hmmm
how does one optimise OBS for an 11 yr old laptop?
while recording VScode, Google, etc
Pick up the laptop
Put in trash
Buy something from this decade preferably
Oof
Spec: Intel core i5 580m 2.65ghz~
Ram 8gb ddr3
intel hd graphics 2012
I have no money :Sadge:
Yea i dont think that would do streaming
Screen capturing same difference
what OS are you running?
use lubuntu
I don't want to, I like ubuntu its self lmao
i suggest because it's optimized to make the most of an old machine.
hmm ok I see it
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
If you use a bare exception I will find you
BaseException > Exception
except:
pass
find me, stelercus ❤️
Maybe I will!
❤️

👉😬👈 — is this supposed to be DaBaby
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
../../..
oh i was talking codewise with either pathlib or os lol
well u can get the path of the current file and call parent on it
dont think thats recommended
can't you also use cd?
cuz if u install the app there is gonna be an issue
os.chdir("../../..")
for this usecase its a config.json file
it should really really really really be in the cwd
what's the use case?
so i realize i should just use that
discord bot configuration settings
a bit like @clever salmon
how are you using the config file?
with a default config file and a custom config file
I mean like are you opening/reading it?
yeah
how?
can't you just do config_dir_name = "../../../config.json"?
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
the default config file i'll probably try and do that with it
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
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?
i think so
oh, yeah. I'm tired.
yeah
ye actually you don't need to find the relative path at all
Hm, can you bundle files outside of the project module?
os.rename(current_path, new_path) should do it
if you rename the path of the file, it'll move the file to that new path
def to_parent(level: int = 1) -> str:
return "/".join([".."] * level)
ok
Oof he doesn't like ok's
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
damn
"to easily hunt for flies" means me hunting for flies for the birdo. Birdo doesn't fly yet.
Bird
kyoot birb
The wings look as if it has many smol paintbrushes :D
Feeding clip got the best thumbnail :D
If you mean species, then https://en.m.wikipedia.org/wiki/Common_blackbird
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...
oh, did you name that specific bird
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
🥺
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...
say what
e
r/humansarealie
awww
Im trying to like castlevania so hard, this voice acting is so weird tho
What is the most liquid absorbing thing?
Sodium polyacrylate, according to google
<style>
.agreement#0{
color:green
}
</style>
<p class="agreement" id="0">Strong Agree</p>
🤔
but why does it not work
like literally why
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
nope
if i just do class, it works
its not that the properties are set badly
if i do id, it doesnt work
What if you add a space between .agreement and #0?
something's up with id
Oh wait
like just id also doesnt work
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
#0{
color:green;
}
also doesnt work
Could you stick it in a codepen or something like that?
IDs and classes may not start with digits
… why was I reading the id as #0 instead of 0
ooh
cant you just set the style in the paragraph tag?
They figured it out
ahh ok
Anyone good at java? I have a computer science assignment and I need some help.
Where could I find the code for the eval command? I have the GitHub but not sure what file to look in.
!src eval
Run Python code and get the results.
It's powered by https://git.pydis.com/snekbox
Thanks!
Is there a way I can integrate it with my bot?
Mind my spelling, it's late and I'm tired
@jovial island Check out this ^
hurm.... windows powertoys may just convince me to go back to multiple monitors.... maybe
tabbing between codr and docs is just too much of a pain
I don't get how you do it
I don't think an ID can start with a number Oh, that was mentioned already
are Your guys school still online?
yes
school is almost over for me, but yes its online
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
English 10 lmfao
I already took English 9, 11, and 12
but I never took English 10... so I'm taking it now
Why do you need to know so many english
and it's the worst class I've ever had to take
One for each grade :|
pepega
*Any Australians in the chat?
aussies

@storm birch just rename yourself to Hapitaine Fisher, griff would be far away from you
I cannot forsake the purity of this name :C
hey look, another dog 😏
how do u make an object immutable in python
you don't
then how are tuples
Tuples aren't implemented in Python, though... are they?
you could override __setitem__ and __setattr__
there's almost definitely some way to work around it but wtv
at least it will appear immutable
lmao i like how it just says no
Yes
even tuples can be bypassed (though not without impl details), and here you can just skip calling the setitem and setattr
object.__setattr__(o, "item", 1)
fuck
lol
lol
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)
||the statuses||
i dont see any pointing
ahhh
true
now shush child
yes zeeshan
you have a point
vivek
ok grandpa
no
zeeshan for @ Owners role
yes
yes
vote now here:
Better yet, zeeshan for @vapid maple
damn
and now there are none
Nearly 3,4
=-1?
There is 1
No
okbr
are u guys saying i shouldnt have an incredible amount of power in this server which has more than 200k members?
Wru
are u saying that i will instaban everyone the moment i get @ owners?
Are you owner?
oh hey happy steve
Hi vivek
Please don't post the same image across multiple channels, it's kinda annoying
hi steve
Ok sorry
thank you
yes if u vote for me i will solve these issues
you are my only issue bro ❤️
papa vivek
sus
yoda(ddy)
extreme sus
okay, bye
Alright, father
thats the best way to react
.topic
Suggest more topics here!
rick roll my friends
probably reach top 500 in the german leaderboard for beatsaber
damn
i mean, a lot of practice and effort paying off is very satisfying
lordsabermo
lmao😂
@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
cool
lol
is this easy enough to do?
Why are you replying to 2018 messages? 
Lmao
the fuck
Ree
@short cliff how was demotion
Meanie mr @grim seal always demoting Hemlock
Hello friend. You haven’t snapped me in a while so I figured I’d come say hi

What'd I do this time?
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
🥴
Hey @jovial island please don’t post memes/chainmails here
SUP
HOMIES
howdy howdy
howdy howdy
howdy howdy
howdy howdy
I am so proud of literally everyone here
the fuck
O.o
howdy is the one true greeting
howdy
I say it irl all the time. It is a bit of a problem
But I also own an actual cowboy hat, so like... no surprises
haha
ooh cool
anyways, I'll go eat dinner, bye :D
See ya
howdys nuts haha gottem
that was awful. I'm never doing that again
Good
is anyone here
no
what is a word I can use to refer to where a server is kept in a network
wut.. no
ESOTERIC LEMON
that's me
lEEEEMMMOOONNN
I mean, in a cloud network, when you have different servers at different levels on the hierarchy
LeeMone
ilemmmmooonnnn\
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..
idk
like a word for saying.. you can put it on this level.. or this other level
idk
Yeahhhhh
just did it
lol
i deleted half the config.py file
and more specifically, moved the bot class to a new file
why are you making a mod mail bot?