#ot1-perplexing-regexing

1 messages Β· Page 557 of 1

low chasm
#

lmao

young shoal
#

oh hey

#

@eternal wing

misty dew
#

nice, fisher got a private channel

glossy bloom
#

why is using wsl inside of /mnt/c so slow? i want to use the ubuntu terminal but not all vscode extensions work on the wsl remote extension leading to crashes

eternal wing
#

Time for an AMA: Pilot Fisher Edition

distant hazel
#

i discovered this new artist but

#

keep reading it as mitt romney

#

halp

eternal wing
#

I think that was intentional

#

are they some edm artist?

#

Looking at you, Mord Fustang

distant hazel
#

o you're right

#

"His stage name is a spoonerism of American politician Mitt Romney"

#

oh this really describes griff perfectly lol

eternal wing
#

yes, griff is a notoriously obsessed with mitt romney

acoustic moss
eternal wing
#

ohhh easy easy questions

#
  1. Clown trigger fish
  2. My dog, duhhhhh (huskies and belgian malinois)
  3. Dog way better, cmon. Fish are idiots
  4. Idk, I heard he is some 30 year old senior dev. Works closely with rick astley
acoustic moss
#
  1. If you had to choose between a) never getting rickrolled again and b) to solve P vs NP, which do you choose
  2. If dogs > fish, why isn't your name Capitaine Dogre?
clear plume
#

*Doger

#

If we are following the theme ofc :)

ornate nymph
#

Will you fly me over Area 51?

distant hazel
#
  1. SUNMI or IU ?
eternal wing
eternal wing
eternal wing
#

I might lean towards IU 😭

distant hazel
#

that's an acceptable answer, you pass

ornate nymph
#

Sully: hero or showoff?

eternal wing
#

LOL, he did a good job. I say hero, he probably could have been a bit more humble though (those pesky geese are the villains of this story though, how dare they fly in man's sky)

ornate nymph
#

Scariest thing that's happened during a flight?

eternal wing
#

yayy, ty for participating xD lolol

#

The scariest thing was when I was flying at 5,500ft and a MASSIVE drone was just sitting there (illegally), I had to roll the plane as far as it could physically go to avoid hitting it. That was spooky

young shoal
eternal wing
#

other than that: landing in 30mph winds was tough, that was more fun that scary though

edgy crest
eternal wing
#

i dont get it :C

young shoal
#

most people think p != np

edgy crest
#

:c

ornate nymph
edgy crest
eternal wing
#

it was like, probably a meter across

edgy crest
#

wdym sitting there

#

how does one sit on air?

young shoal
#

hover?

eternal wing
#

it was hovering, haha

edgy crest
eternal wing
edgy crest
#

did your dog ever bite you

acoustic moss
#

did you ever bite your dog

edgy crest
mellow spire
eternal wing
#

my dog bites me every day for funsies, but I am like 75% I have not bitten her

#

I am the captain haha

#

I was just doing a casual flight to an airport

edgy crest
#

have you taken your dog to the skies

last mantle
#

heh

eternal wing
#

doggo was flown to me from southern california, but that is the only time. The planes I fly are mostly too loud for her

last mantle
#

hello Captain

eternal wing
#

howdy

last mantle
#

fly airliners ;-;

eternal wing
#

I always thought I would, but I am about to be a professional dev πŸ˜„

last mantle
#

:(

inland wolf
#

u can dev the software of airliners

eternal wing
#

I actually will be working in the aviation department of this company πŸ˜„

brazen ingot
vapid nymph
#

1OO

acoustic moss
#

eπŸ…±οΈic

brazen ingot
#

101

low chasm
vapid nymph
#

the point is the font btw

low chasm
#

Lol

last mantle
vapid nymph
#

1OO

#

why is it so weird

#

more readable the people said

#

YOU SAID WHAT?

last mantle
#

lol

#

the 1 is so small

glossy bloom
#

wsl2, it causes vscode to crash on certain extensions (mainly just theme extensions, although i believe vetur might be a culprit too)

pine sundial
#

any one help me so im writing a slot machine program pretty much the whole program is written but i cant find a way to add the scores up i know what your think bruh you just make a int called score and all them but it wont add it only adds the most recent score in all in a while loop then asks the user if they want to go again idk if that is the problem
this is the code
https://glot.io/snippets/fyiyy367ap
as you see if you keep going and say you draw -5 on the first go then you say i wanna go again then you draw say -5 on the other go aswell it will say the final score is -5 not -10

#

please @ me when you can help thx

gaunt solstice
#

how could i expose a ssh connection through tcp without getting massive delays?

void imp
#

bruhhhhh i keep getting someone to start helping me in discord.py channel then im bein ignored

elder schooner
#

Hey

#

is anyone available?

clear acorn
#

yes

elder schooner
clear acorn
elder schooner
#

oh okay i need help with java

#

java helpers?

misty dew
acoustic moss
#

ask your question anyway tho

inland wolf
#

lol

misty dew
#

whaddyamean

rough sapphire
royal lakeBOT
#

Communities

The communities page on our website contains a number of communities we have partnered with as well as a curated list of other communities relating to programming and technology.

rough sapphire
#

I remember having seen a Java server there

wraith hound
#

There is

vapid nymph
#

Oh those servers aren't too great

rough sapphire
#

coding den is good but look out for rules. they are very very serious in terms of rules.

#

but its a good community.

misty dew
#

I've gotten good help in both

surreal otter
#

I'm a member of both but never go to either

rough sapphire
#

i go sometimes for java. i always get help. they're good.

tardy rain
#

Never asked for help anywhere but here and Programming

#

I dont really like the coding den

surreal otter
#

I don't do enough not Python to need to ask for help

#

Google has my questions covered mostly

#

Though I guess I coulda gone there for my pi troubleshooting

misty dew
#

TCD can be slow when providing help for things like javascript, html, and css (which is what I've asked for help with previously) but when I did get help it was good

surreal otter
#

sqlite didn't install when I installed python from source...it's a setting you have to enable apparently?

#

so I got to do that yesterday, but now it all works

#

and my bot has aiosqlite keeping track of something

wraith hound
#

JS, HTML, and CSS can be hard to google when you're looking for complex things

surreal otter
#

That's why it's so important to learn good googling

wraith hound
#

Because you're trying to do something very specific

tardy rain
#

For html i go to mdn

rough sapphire
#

if you're precisely looking for html and js help reactiflux is good.

tardy rain
#

For css i usually go to css-tricks

rough sapphire
#

great place for js too. mdn.

wraith hound
#

MDN docs are amazing

misty dew
tardy rain
#

I havent used docs for js cause i dont do anything special with it

#

Its mostly react and mapping, filtering

rough sapphire
#

and slicing, spreading.

tardy rain
#

Yea i guess

#

Can always pull up a repl and try things

vapid nymph
#

me when people can't use github and make a seperate pr for every change for one feature that shouldn't even be added

#

this is their sixth pr to add code that doesn't even work.….

solid pollen
#

Sounds repo ban worthy if you ask me

vapid nymph
#

I've asked other staff to ban them but it's a personal repo and I've never met the repo owner.

solid pollen
#

Uhhh

#

That's... interesting

vapid nymph
#

sorry, meant personal repo

vapid nymph
#

what the fuck is this and how do i turn it off

#

okay good

#

basically typing a message starting with ? or ! in a server with slash command bots will start to search the slash commands but without the UI

opaque sentinel
#

Doesn't do that for me...

latent scaffold
#

wot

wraith hound
#

Doesn't do that for me

harsh tundra
#

they have beta, I think

latent scaffold
#

I have Canary

#

does not do that for me

vapid nymph
wraith hound
vapid nymph
#

but without the ui

#

use up and down arrows and you won't move to the front of the message like you should

opaque sentinel
#

?s

wraith hound
#

That's with the up and down arrow keys

#

But I'm not on Canary rn

wraith hound
#

Nice

#

This server was made 4 years, 4 days, and 4 months ago

low chasm
#

whaoh

latent scaffold
#

Sheesh, my account was made before this server

wraith hound
#

You're an og Discord user? Nice

low chasm
latent scaffold
#

beat PyDis by a whole 2 months

tardy rain
#

Ok discord boomer

low chasm
#

lmao

tardy rain
#

Whats the command to see account age

low chasm
#

!user

royal lakeBOT
#

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

latent scaffold
#

!user

low chasm
#

lmao

latent scaffold
#

banned

tardy rain
#

#bot-commands message

#

Read it and weep youngun

low chasm
#

wow

#

old \s

tardy rain
#

I dont remember when i made this

#

I made it then forgot about it

low chasm
#

lmao

tardy rain
#

Then made a new one and used that for gaming

#

I forgot about this one until october or november last year

vapid nymph
latent scaffold
#

What?

#

What does Canary have to do with ModMail?

vapid nymph
#

… the fact that you can not use up and down arrow keys to naviagate a message?

#

and if you do, it switches to a slash command

tardy rain
#

#tothemoon

idle night
#

May someone here please help me with a programming language other than python?

misty dew
#

he pretty much just controls crypto at this point

rough sapphire
#

Woah

latent scaffold
#

oh wow.

#

Welp, time to move to Doge haha

vapid nymph
latent scaffold
#

What do you mean I can't buy a Tesla with Bitcoin!?

misty dew
mellow spire
#

Join me

last mantle
mellow spire
#

ducky_maul become obi wan!

inland wolf
#

goddamn

#

vaduck

mellow spire
#

lol even i just saw it, hence changed the name

acoustic moss
#

java:
what's the point of instance initializer blocks? if i understood correctly, they serve the same purpose as constructors

#

is it just to allow the double brace initialization thing

gritty zinc
#

TIL these exist

rough sapphire
#

Hi
Excuse me, you can do something, it means you can teach me how to write my name in Japanese in Twitch. Some people write like this.

acoustic moss
#

Instance Initialization Blocks or IIB are used to initialize instance variables . So firstly, constructor is invoked and the java compiler copies the instance initializer block in the constructor after the first statement super()
dafuq what

#

how reliable is geekforgeeks

#

O wait

#

I think I get why it might be needed

#

When you have multiple constructors and you want the same code to be executed in each

#

its weird
constructor gets called first, if there's a super() call in the constructor then that happens first
then the initializer block gets executed
then the rest of the constructor gets executed

acoustic moss
#

yeah

#

hmm

inland wolf
#

tf

#

interesting

acoustic moss
#

If I'm using a font in my project, do I need to include their license file in my project too?

last mantle
#

o

inland wolf
acoustic moss
#

F

rich moon
#

god everything is dark blue now in discord

regal zodiac
#

ouch

tardy rain
#

Bro

#

What makes you think it'd be a good idea to send that to every channel in this server

#

Oh I see, youre trynna get over the 50 message limit for vc by spamming every channel here

#

Yeet

edgy crest
#

oh they might have deleted the msgs

tardy rain
#

I think they got pbanned

vapid nymph
#

A few weeks later I ended up running the command

acoustic moss
last mantle
#
class CalculateModel extends ChangeNotifier {
  final List<String> toBeParsed = [];
  final List<String> finalText = [];

  UnmodifiableListView<String> get items => UnmodifiableListView(toBeParsed);
  UnmodifiableListView<String> get text => UnmodifiableListView(finalText);

  void add(String value) {
    toBeParsed.add(value);
    notifyListeners();
  }

  void calculate() {
    notifyListeners();
  }

  void clear() {
    toBeParsed.clear();
    notifyListeners();
  }

  void clearTop() {
    finalText.clear();
    notifyListeners();
  }
}```
@inland wolf this is my model
#

ChangeNotifiers are present only on 2 text fields

#

The notifiers are called each and every button press

inland wolf
#

ok..

#

and?

#

@last mantle

last mantle
#

its laggy lol

inland wolf
#

where is ur consumer

inland wolf
#

.java

#

lol

last mantle
#

lol

inland wolf
last mantle
#

yea

#

rebuilding too

inland wolf
#

hmm

#

i don't see why any of that should lag

last mantle
#

idk too

#

ppl in the flutter server are confused

honest pawn
inland wolf
#

nop

inland wolf
#

lol

#

this kinda stuff usually does not lag

#

do u have the latest flutter and stuff?

last mantle
#

ye

inland wolf
#

hm

last mantle
inland wolf
#

oh

#

why

#

wait did u have an ontap listener as well?

last mantle
#

yea

inland wolf
#

bruh

#

so u rebuilt the widget every time u tap and double tap

#

kinda much imo

#

also for such simple state provider is overkill ngl

last mantle
#

tbf i thought double tap would be taps in quick succession

inland wolf
#

yes

#

isnt that what a double tap is?

last mantle
#

yes but who knew that it would lag

vapid nymph
#

BRUH THIS LOGO CHANGE HAS BEEN COMING SINCE 2020

latent scaffold
#

yes.

vapid nymph
#

new logo from a ytvideo

opaque sentinel
#

Cool PR Rapptz/discord.py#6905

median domeBOT
latent scaffold
#

The Linux App Summit (LAS) is designed to accelerate the growth of the Linux application ecosystem by bringing together everyone involved in creating a great Linux application user experience.

rough sapphire
clever solstice
twilit shore
#

lol

vapid nymph
#

they didn't edit the documentation πŸ˜”

#

unless the docs edit automatically

wraith hound
#

Docs are generated from the docstrings

#

I think

opaque sentinel
#

So they like have

def foo():
    """foo"""

And then

.. autofunction:: foo

In the reST files

latent scaffold
#

What's the story behind this otn?

rich moon
#

rocket go brr?

vapid nymph
#

cringe paid feature

opaque sentinel
#

?

latent scaffold
#

hmm

lunar crescent
#

wat

vapid nymph
vapid nymph
acoustic moss
#

didn't realize who you were lol

low chasm
#

Wait

#

The fuck

low chasm
vapid nymph
#

Yes

edgy crest
acoustic moss
#

lol

vapid nymph
#

It's a blurple cat

low chasm
#

Wat

#

Guess we'll have to pay to see it :P

vapid nymph
#

Damn

misty dew
rich moon
#

sudo unlock cat

vapid nymph
#

Which means u can see my blurple cat pfp

acoustic moss
#

how often do y'all clean your keyboards

#

good to know
i don't think i've ever cleaned a keyboard lol

latent scaffold
#

I've got an awful laptop keyboard

#

it's like impossible to clean

last mantle
#

sad

rich moon
#

just disassemble laptop

#

to clean it

last mantle
#

yes

tranquil orchid
#

Well now that I have white keycaps, I give it a quick clean every few weeks or so

eternal wing
#

Cool gamer tip: Get cheetos colored keycaps and you will never need to clean them again πŸ˜„

acoustic moss
eternal wing
#

str.replace("cheetos", f"{my_snack}")

last mantle
#

colors vary ;-;

eternal wing
#

The cheetos cover a variety of more neutral colored snacks as well (probably)

mellow spire
#

If anyone of you are using piston-cli, I would love to have feedback on this https://github.com/Piston-CLI/piston-cli/pull/43. Do you like the new features? Would you want to change anything in that PR like make stuff customizable (making it configurable in ~/.config/piston/config.yml?

What other things do you want to see in this in future updates?

opaque sentinel
graceful basin
#

:concern:

twin charm
#

oh lawd.

gritty zinc
#

that's concerning

#

sublime doesn't use electron, right?

graceful basin
#

nope

#

I think I just have an a large file open

twin charm
#

did you just.... change your pfp to match that of the new logo colour and shape? brainmon

graceful basin
#

of course

twin charm
#

oh lol

vapid nymph
vapid nymph
#

Processing at 0%

#

That's fucking nice

graceful basin
#

when I focused it, it was at 17%

vapid nymph
#

My pc is like

#

10% per background process stuff

graceful basin
#

but I do value that it can actually not use CPU when it does nothing

wraith hound
#

Nice nickname ARU

#

I didn't realize that was you

edgy crest
#

even my terminals consume some CPU while being idle

#

or not in focus

vapid nymph
vapid nymph
#

when defining custom errors, how does that even work?

acoustic moss
#

you typically subclass Exception and raise an object of this class

young shoal
#

basically you just inherit all the fun behaviors from an exception and it behaves exactly the same but with a different name

gritty zinc
#

for example, all exceptions that happen at runtime are supposed to be RuntimeErrors, As far as I know

vapid nymph
#

eh i'll just use BaseException

fervent dock
#

be careful with that

#

if you inherit from BaseException, then except Exception: won't catch your error

#

usually only exceptions that should rarely be caught inherit from BaseException, e.g. a KeyboardInterrupt

vapid nymph
#

it was a joke lol

distant hazel
#

omg i just noticed all the food emoji in channel descriptions for the help channels
how qt ; ~ ;

honest star
#

But the emojis were too noisy for some folks, so we opted to put them in the channel description instead

distant hazel
#

that's so me LOL
but yeah i agree would be too noisy

#

also many emoji widths are not consistent and that would eventually bother me

#

tho they look pretty uniform here

honest star
#

It doesn't look too bad, with 42 of them I can understand it being... a bit much emoji wise

misty dew
#

I kinda like the emoji idea but it would be a bit much

vapid nymph
#

were the emojis manual or done by bot?

honest star
#

It's on my personal test server. And I added the emojis manually just to get an idea of what it would look like so we could properly vote on it. It was... a controversial vote to say the least

vapid nymph
#

yeah i uh

#

would really really dislike that

#

glad it got rejected

wraith hound
#

That's not bad

#

It's easy to remember if it's visual

#

It's just a little noisy

fervent dock
#

I wonder what it'd look like with my font

honest star
#

I can send you an invite to my test server if you wanna find out

fervent dock
#

okay 😌 i'll be at my laptop in ~30 minutes

young shoal
#

vote was almost completely split

vapid nymph
latent scaffold
wraith hound
vapid nymph
#

u can't modify the discord font without it breaking tos

vapid nymph
wraith hound
#

There's a legal way to change it

vapid nymph
#

well, how?

#

because the new font sucks

fervent dock
#

the system font is used for emoji, you do not change anything

#

they look different on every platform

vapid nymph
#

OHHHHHHH

#

i uh forgot alllllll about emojis LOL

fervent dock
#

or dont show at all in case of eg debian

vapid nymph
#

yeah ik about the emojis

#

i just

fervent dock
#

not too different

#

i think it's cute

#

but i understand the concerns

low chasm
#

ignore the README and Description

#

also ignore the site

#

its all outdated

little wolf
#

oooh, checking it out

low chasm
#

thanks :D

little wolf
#

whats the location of the site?

low chasm
#

Its outdated

#

So none of it is accurate at all

little wolf
#

oh

low chasm
#

I updated it a few months ago

#

so all of my new changes are outdated

#

language looks pretty different now

modern haven
low chasm
#

Nope

little wolf
#

oh it looks really like a language i know

#

yup im talking about php

modern haven
#

why indeed πŸ˜‚

low chasm
#

Yup

#

haha

low chasm
#

Its amazing

#

Its one of my favorite documentation generators

little wolf
#

nice

#

looks like you are recreating python with rust (ofcoursce you are)

low chasm
#

My language as of now looks more or less like a lovechild of python and Rust

#

Its not that similar to python in structure

#

My language is statically typed

little wolf
#

oh

low chasm
#
x: int = 10
x = "10"
``` This will raise an error
#

Although I'll have the option to turn off the type checker

modern haven
little wolf
#

nice

low chasm
#

Something like lite run --no-type-checker

little wolf
#

oh hey, you implemented switch cases before python did lol

low chasm
#

lmao

#

Many languages did it :P

#

my match statement is based off of Rust's, duh

little wolf
#

i actually really like the language

#

and might try it in a real world application

#

its whitespace based right?

low chasm
#

yes

#

It uses indentation

#

which was a pain to get working

#

It still barely works, I'll have to add in optimizations and improvements later on

little wolf
#

also you might wanna link your website to the README.md

low chasm
#

I'll do that eventaully

gritty zinc
#

how to tell if something was written a long time ago πŸ™‚

ancient minnow
#

well it even isnt that long ago lol

#

2012

#

10 years

glossy knot
ancient minnow
#

yeah funny how time has changed

ancient minnow
#

yes its a hosting service lmao

#

im using shareX for screencapture

#

and im saving it to an external host

wraith hound
#

pays is not good imo

ancient minnow
#

why not?

wraith hound
#

They tolerate some not so nice stuff

#

If you read their domain list

vapid nymph
#

STICKERS AREN'T SHIPPING LIKE ANTICIPATED

ancient minnow
#

And i mean i got a free invite link. So it would be stupid to not accept that.

wraith hound
#

True

wraith hound
#

It's dumb

#

Oh wait

#

Do I need to read the article

honest star
#

I'm excite about custom stickers. I can do a lot with animating the python /pydis logo since stickers are bigger

vapid nymph
#

stickets

vapid nymph
#

Tl;Dr NITRO ONLY

#

No buying stickers.

wraith hound
vapid nymph
#

Wtf lol

wraith hound
#

I saw the system message

#

Some people posted screenshots

#

In other servers

gritty zinc
#

Maybe in a few decades we'll advance computer science enough that Python would be considered a pretty low-level language πŸ™‚

wraith hound
#

Maybe, maybe not

scenic blaze
#

There will always be disagreement, but imo low level mid level high level should always be relative to other languages

#

I dislike the binary distinction of ASM vs everything else as low level high level

#

Like yes C is high level compared to ASM but so many other languages build off of a C framework or build off of languages built off of a C framework and having the resolution to make those distinctions is more helpful than some kind of gatekeeping/purity test of the olden days

gritty zinc
#

low-high level is a continuum, and nowadays, it's kind of weird to put C on the high-level side

#

it's only high level compared to very, very few things

#

Yikes, this one is firing some shots

#

In summary, it is possible to make C code run quickly but only by spending thousands of person-years building a sufficiently smart compilerβ€”and even then, only if you violate some of the language rules. Compiler writers let C programmers pretend that they are writing code that is "close to the metal" but must then generate machine code that has very different behavior if they want C programmers to keep believing that they are using a fast language.

graceful basin
#

C is about as low level as an architecture independent language can be

#

which, from a certain point of view, is high level

#

for example, C doesn't have the heap and the stack

#

it has automatic and "manual" variable lifetimes (as well as static)

#

how those those lifetimes are implemented is up to the compiler

#

people put asm and C far closer together than they really are

#

I would argue C is closer to python on the high level/low level scale than ASM

ancient minnow
#

hmm there should be like an intermediate level to put C in

#

so at low level asm and machine code, intermediate C, high level C# and python etcetera

rich moon
#

rocket or firework?

wraith hound
#

pencil

rich moon
#

true

wraith hound
#

With curved sides

rich moon
#

gonna need to figure out the von karman nose cone formula

#

so it wont be pencil

latent scaffold
#

definitely pencil

vapid nymph
#

VSC has entered the chat

vapid nymph
wraith hound
#

Lul

#

Why is it VS Code

tardy rain
#

These new colours are pretty nice, saw them today for the first time in the webapp

#

Very nice deep vibrant blue

vapid nymph
wraith hound
#

What I meant is, it's either "Visual Studio Code" or "VSCode" from what I've seen

vapid nymph
#

oh

#

what were u saying

#

@wraith hound bout those exceptions

#

how

#

is that proper?

wraith hound
#

That was a joke

vapid nymph
#

oh

wraith hound
#

I thought since you were in ot

vapid nymph
#

smh

wraith hound
#

You were joking

vapid nymph
#

no i'm being serious lol

#
class ThreadError(Exception):
    pass

class ThreadNotCreated(ThreadError):
    pass
wraith hound
#

I have no idea

vapid nymph
#

I haven't used that channel in days

rich moon
#

finally got the von karman nose

#

still looks like pencil tho

wraith hound
#

That looks more like a missile

#

Or rocket

rich moon
#

yeah lots of missles use the von karman shape

#

cuz its optimized aerodynamically for the given width and length

gritty zinc
#

I think we derived that formula in my mathematical physics (actually mostly variational calculus) class

latent scaffold
#

I still think it looks more like a pencil

tardy rain
#

An aerodynamic pencil

latent scaffold
#

just maybe like a mechanical one now

wraith hound
#

Across the room

latent scaffold
#

just like any other pencil

wraith hound
#

But like better

rich moon
#

gonna add some fins and then i can finally animate it

gritty zinc
#

ah yes, it'd indeed be hard for it to swim without fins

#

maybe a nice long tail too

young shoal
#

maybe some arms

tardy rain
#

Claws

young shoal
#

i thought we were making a human

latent scaffold
#

and a nose to... breathe

latent scaffold
tardy rain
#

Humans cant have claws now? Wtf

rich moon
#

lol

tardy rain
#

I thought this was america

young shoal
#

πŸ¦… πŸ”«

latent scaffold
#

that eagle does not look bald

young shoal
#

what

latent scaffold
#

the eagle doesn't look bald

young shoal
#

ok

latent scaffold
#

I'm going to cry

tardy rain
#

Blad eagles arent actually bald

#

That would kill their self esteem

young shoal
#

they're just white

#

on the top

#

why is that πŸ˜‰worthy

latent scaffold
#

America in a nutshell

low chasm
#

lol

rich moon
#

got dem fins on

#

a real fish now

latent scaffold
#

uh oh

rich moon
#

now ima see if i can animate it

#

its supposed to be a sounding rocket

acoustic moss
#

ebic

rough sapphire
#

I just got out of jail

edgy crest
#

noice

rough sapphire
#

I did not like being behind πŸ“Š

latent scaffold
#

uh

vapid nymph
#

define exceptions all in their own file or in the file where they are used and stuff

misty dew
vapid nymph
#

well

#

exceptions

#

this is literally all i have so far

#
class ThreadError(Exception):
    pass


class ThreadNotCreated(ThreadError):
    pass
misty dew
#

it's whatever u prefer

#

don't think it matters too much

latent scaffold
#

am I high for thinking that maybe you might want to reorganize your files

rich moon
#

ya know the file naming tho

#

isnt there already a built in module named time

latent scaffold
#

oh. F

vapid nymph
#

this is the source for @polar knoll

latent scaffold
#

riot

lunar crescent
#

wat

vapid nymph
#

….why does it edit the channel topic right after creating a channel.

#

why does it not supply the channel topic when creating the channel

latent scaffold
#

tbh I'm kind of proud of the way I structure projects now

vapid nymph
#

why do you need an __init__.py?

latent scaffold
#

for them to be recognized as modules, yeah?

#

ah, maybe not for the src folder

rich moon
#

i think u can still import the files even tho its not a module

vapid nymph
#

oh

#

to import the folder itself

#

so you can do

#

import robot

latent scaffold
#

src does not need __init__.py

#

but robot does

vapid nymph
#

instead of import robot.lib

latent scaffold
#

and robot/lib.py just has

from wpilib import PWMVictorSPX  # TODO: Change this.


class Motors:
    left:  PWMVictorSPX
    right: PWMVictorSPX

    def __init__(self):
        self.left = PWMVictorSPX(0)
        self.right = PWMVictorSPX(1)

for now

#

I did this so I can just say robbie.motors.left or something

#

I should probably just change it over to a dataclass or something

harsh tundra
acoustic moss
#

catouflage

near bolt
#
public class q4 {
    static int sumArr(int[]intArr){
        int sum = 0;
        for (int i = 0; i < intArr.length; i++) {
            if (intArr[i] > 0) {
                sum = sum + intArr[i];
            }
        }
        return (sum);
        }

    public static void main(String[] args) {
        int[] arr = new int[]{0, -1, 1, -2, 2};
        int x = sumArr(int[]arr);
        System.out.println(x);
    }
    }
acoustic moss
#

int x = sumArr(int[]arr); is wrong

#

just int x = sumArr(arr);

inland wolf
#

u only need to use int[] when u are declaring a variable

#

and in function parameters

#

which is techincally declaring a variable

near bolt
inland wolf
#

u dont write System.out.println(int x) right?

#

in the same way

near bolt
inland wolf
#

nice

near bolt
#

could anyone give some advice on using recursion to solve problems?

#

i find it hard to apply

#

one of the problem i have is
there's n number of stairs, and a guy can either take 1 or 2 or 3 stairs, and i think it's possible to use recursion to find the total number of ways

#

is there a process/ method to figure out? cuz i don't know how to start

inland wolf
#

wait

#

i dont get the question

near bolt
#

eg. there's 5 stairs in total

#

he can do
1, 1, 1, 1, 1
2, 2, 1
3, 2
and alot more

harsh tundra
#

Yep, it's doable. Also look at backtracking and n queens problem (it can also be done in both recursion and backtracking) - https://en.m.wikipedia.org/wiki/Eight_queens_puzzle

The eight queens puzzle is the problem of placing eight chess queens on an 8Γ—8 chessboard so that no two queens threaten each other; thus, a solution requires that no two queens share the same row, column, or diagonal. The eight queens puzzle is an example of the more general n queens problem of placing n non-attacking queens on an nΓ—n chessboar...

inland wolf
young shoal
#

that's a dp problem, probably

#

complexity is 2^n for brute force

young shoal
graceful basin
#

I don't really know what DP is exactly, but you can do it with recursion and memoization in what I assume is fast enough for the problem space. (unless my solution is wrong)

lunar crescent
young shoal
#

you can do it in linear time

graceful basin
#

yup

young shoal
#

isn't the answer for 1-2 steps the Fibonacci numbers or whatever

graceful basin
#

oh yeah, these solutions are just ||tribonacci numbers||, right?

young shoal
#

ohh coool

graceful basin
#

oh wait, this means you can go sublinear

young shoal
#

is there an exact formula?

#

I guess there would be

graceful basin
#

well, I was thinking rank 3 matrix powers

young shoal
#

that lets you get... logarithmic?

graceful basin
#

yes if you are calculating it mod some integer

#

if you are getting exact solutions, it is a bit more due to bigint math

twilit shore
#

bro don’t ask in 3 ot channels

#

ask in 1

tardy rain
#

Make your own server
Dont invite anyone
???
Profit

#

<@&831776746206265384> spamming images/memes across multiple channels

rough sapphire
#

!mute 841771032872615956 Investigating

royal lakeBOT
#

:incoming_envelope: :ok_hand: applied mute to @distant canyon until 2021-05-15 13:07 (59 minutes and 59 seconds).

rough sapphire
#

!ban 841771032872615956 Troll

royal lakeBOT
#

:incoming_envelope: :ok_hand: applied ban to @distant canyon permanently.

acoustic moss
#

thank

low chasm
#

thank indeed

vapid nymph
#

@misty dew do u use mongodb 😰

tardy rain
#

Can I do this with just partial functions in python

#

!e

class func:
	def __init__(self, *args):
		self.x = sum(args)
	def __call__(self, *x):
		return func(self.x, *x)
	def __str__(self):
		return str(self.x)
		
res = func(1, 2)(3)(4, 5)(6, 7, 8, 9)
print(res)
royal lakeBOT
#

@tardy rain :white_check_mark: Your eval job has completed with return code 0.

45
stable sentinel
#

Hey guys, does someone here have expertise in Julia language? I was rewriting my Python script in Julia and stuck with some Numpy methods

#
    def distance(seq1:"np.array", seq2:"np.array") -> float:
        """in: two vectors with equal lengths with int values 0 to 255 """        
        common = np.logical_and(seq1, seq2)
        diff = np.count_nonzero(np.not_equal(seq1[common], seq2[common]))
        total = np.count_nonzero(common)
        return diff/total if total else 0.0
#

i hope there's a clever translation for this, but I've just started learning Julia few days ago to increase performance (I don't sure it can beat numpy though)

#
1.First it takes two arrays:
[0,1,0,2,5,0]
[0,3,2,2,5,1]

2.Finding common (both non-zero) elements:
[_,1,_,1,1,_] # like that, you know

3.Counts ones, that differ:
[_,1,_,0,0,_] #1 differs,

4.Counts total common: 3 total

5. Returns ratio: differ/total or 0.0
#

if both arrays has different non-zero elements -- returns 1.0

#

if arrays are same -- it's 0.0

#

last line ternary operator is optional -- it's there to avoid zero division if there're no common elements (the vectors are 20k elements long, so it is statistically impossible)

#

this is the point, i couldn't find an easy way to translate that line (which I myself took from some old project on Python2) to Julia, so I use PyCall, but it has overhead (which I try to avoid)

stable sentinel
#

oh, thanks m8, i'll try this one

#

hmm, it executes 15% faster than my previous attempts, but returns something odd

#

oh. I changed .^ to .* in line 2 and it works

#

thanks man!

#

just what I was looking for

#

yeah, i am getting used to annotating everything in Julia, it is matter of several days of excess computation you know

graceful basin
#

Also, there is (@. a+b+c) which implicitly places a dot for all those operators

stable sentinel
#

Man, there still was a flaw, you were comparing each pair, even if one of the elements was zero. Now i managed to avoid that (line 50 does the thing). And it blazing f-ing fast! 140k comparisons per second vs former 16k using PyCall or 21k in my Python implementation! Thank you anyway, you gave me right direction.

young shoal
tardy rain
#

but how can i tell partial to return a value at the end

#
func(3)(1, 2)(4)

would return <partial func ...>

#

i can get away with this in OOP with implementing __str__

young shoal
#

oh i see...

#

that seems extremely hacky though

tardy rain
#

I saw it on codewars and couldnt think of another way than classes

#

Js has some fuckery with binding to function prototypes but i dont understand that lol

brisk spoke
#

.

mellow spire
#

Anyone has got tokyonight themed wallpapers?

#

need them to match my nvim

wraith hound
#

Google says yes

mellow spire
#

found them, but not really fighting the colorscheme

wraith hound
#

So you want like, dark blue?

#

Wait

#

How did I just upload 17 and 13 mb pngs

#

Isn't there an 8mb limit?

topaz aurora
#

@wraith hound Boosts up that limit

wraith hound
#

Ohhh

#

I forgot about that

#

That's nice

mellow spire
#

hmm, the first one is not that bad

#

that's good

vapid nymph
#

Wait u can add images into terminal?

mellow spire
#

nope, i changed the opacity to 30% transparent

#

set sidebar to color

#

and the editor to no background

wraith hound
#

What languages does Vim support?

vapid nymph
#

Smh I need that config pls put it on github ASAP
100% begging

mellow spire
#

so that it will use the terminal bg

vapid nymph
#

Ah nice

wraith hound
#

I wish you could set VSCode backgrounds without extra extensions

topaz aurora
wraith hound
#

Ooh, that's nice

vapid nymph
#

Do note the above is nvim as well

mellow spire
#

default ubuntu terminal

#

i will put it on github

vapid nymph
#

AH SHIT

#

I just accidently sent ?close instead of ?help close

wraith hound
#

Where?

vapid nymph
#

In a modmail thread

wraith hound
#

Oop

#

Open a thread with them from your end

#

And say sorry

vapid nymph
#

Mods here can probably relate ;-;

#

I did lol

vapid nymph
wraith hound
#

Just stalk Jason's github

#

and keep reloading

vapid nymph
#

Nah I'm on mobile

#

It's a bit slower connection than pc

mellow spire
vapid nymph
#

By more than i would expect

mellow spire
#

i will add the instrucutions tomorrow

vapid nymph
#

Is piston needed for nvim?

mellow spire
#

nope

vapid nymph
#

For your config

mellow spire
#

but piston is needed on your terminal

#

or ducky_devil

vapid nymph
#

Desktop 😳

#

I don't think I have a desktop folder

wraith hound
#

Piston cli is good

vapid nymph
#

I am entirely terminal

wraith hound
#

Very useful for sandboxed stuff

#

Like testing random PyDis code

vapid nymph
#

Yeeties

wraith hound
#

That people post

vapid nymph
#

Wait what

#

Piston will sandbox everything?

#

πŸ€”

#

Explain

latent scaffold
#

What even is Piston

wraith hound
#

Ya. It sends a request to the Piston API iirc

acoustic moss
#

code running API

vapid nymph
latent scaffold
#

I thought it was a game library for some reason

mellow spire
mellow spire
acoustic moss
latent scaffold
acoustic moss
#

@Moderators advertisement

mellow spire
#

lol

acoustic moss
#

πŸ”¨

latent scaffold
#

Imagine Discord's next design choice being that you can ping in in-line codeblocks

#

would you be surprised?

acoustic moss
#

πŸ‘€

wraith hound
#

Uhhh

vapid nymph
#

guys contribute to @polar knoll its the only bot here not by pydis

acoustic moss
#
@Moderators

ez

wraith hound
#

How do you install pistoncli again?

#

I forget after I reset my computer

mellow spire
#

@vapid nymph I will brighten up the README with screenshots and instructions tomorrow, since that would take time to do, I would need to go through all the config to see what all is to be done

mellow spire
wraith hound
#

Nvm I found it

vapid nymph
#

Can't wait, I want to really do my own comparison how fast it boots and the amt of ram usage in comparison to vsc

mellow spire
acoustic moss
#

i find making readmes boringgggggggggg

vapid nymph
#

Hm, is it possible to have config (workspace) files for nvim?

mellow spire
vapid nymph
#

Okay that's a dumb question ofc it is

vapid nymph
latent scaffold
#

What's the purpose of using Piston over something like Docker

vapid nymph
#

Not the graphical portion but the part that runs on a remote server

wraith hound
#

It's just like snekbox but for multiple languages

latent scaffold
#

I don't think I understand

#

What's not for production deployment

mellow spire
wraith hound
#

Piston is nothing like Docker

mellow spire
#

one sec

wraith hound
#

Piston is like snekbox

vapid nymph
#

For my use cases, Nvim seems perfect to use to edit files on other machines rather than having to launch vsc, establish a remote connection , and open the fild

mellow spire
last mantle
#

How tf do I use tio api

latent scaffold
wraith hound
#

But with multi-lang support

mellow spire
#

a small test recording i did before

wraith hound
mellow spire
#

yeah a unversal repl

vapid nymph
#

With nvim I could open the file and have a mini vsc inside my terminal

last mantle
#

Oh piston now has an api?

vapid nymph
wraith hound
#

Bug when I resize my terminal

mellow spire
#

someone had asked yest in unixporn server

vapid nymph
#

We literally talking about piston api rn

vapid nymph
mellow spire
wraith hound
#

Uh, lemme check

mellow spire
#

cuz the table went weird

latent scaffold
#

Piston sounds a little weird hahaha

wraith hound
#

Oh yeah

vapid nymph
wraith hound
#

The terminal size is fine

last mantle
#

Piston has api?

wraith hound
#

After I run again

latent scaffold
#

yes

vapid nymph
latent scaffold
wraith hound
#

It just depends on current size of terminal at run ig

mellow spire
#

yeah, that would be fixed in 1.4.0

vapid nymph
#

Ah

last mantle
#

Oooooh

vapid nymph
#

I have the 0.2 version of neovim installed

#

Guess I gotta not use my package installer smh

mellow spire
#

there is a pr open, waiting for super's review, and few tests, if you guys wanna test it, would be awesome

latent scaffold
#

Why not make piston-TUI instead of piston-CLI?

mellow spire
last mantle
#

So piston cli is based on the api? @mellow spire

mellow spire
#

for my dots

vapid nymph
latent scaffold
last mantle
#

Oh

mellow spire
vapid nymph
#

Ah

latent scaffold
#

sounds like Nim

last mantle
#

This is sick

mellow spire
#

doesn't really matter, 0.5 is basically stable too

mellow spire
#

don't setup up my config now, u will stuff up, wait for me to add instructions

vapid nymph
#

Lol

#

Didn't @wraith hound just set it up tho

wraith hound
#

What?

#

No

#

That was my windows terminal

vapid nymph
mellow spire
#

he setup up piston, not nvim

vapid nymph
#

OH

#

Lol

mellow spire
#

ok anyways i gtg, cya

wraith hound
#

Cya Jason

vapid nymph
#

Bye

latent scaffold
#

wait is piston-CLI curses

mellow spire
#

is anyone of you FrenzyExists?

mellow spire
vapid nymph
#

@mellow spire wait one question. Does vim still run even with the new config files?

latent scaffold
#

you've got it almost looking like curses \πŸ€”

mellow spire
vapid nymph
#

Yeah because they both use .vim iirc

mellow spire
#

or if you add our config to ~/.config/nvim, will nvim take it up?

#

they use, but here i am using init.lua

#

so vim won't take it up

vapid nymph
#

Iirc you have to add a few ifs to detect if it is one or the other

#

Ah

mellow spire
#

since they are present in ~/.config/nvim

latent scaffold
#

using my excellent detective skills, you're looking for Frenzy#5808 @mellow spire

mellow spire
#

and since i don't use /.vimrc

mellow spire
latent scaffold
#

are you demeaning my act of duty >:L

mellow spire
latent scaffold
#

and

#

did you see their status

wraith hound
#

Oh but the pfp ignore me

latent scaffold
#

and their profile picture

#

and they live in Puerto Rico and their name is Hispanic

#

that's pushing on stalking, isn't it... hahaha

acoustic moss
#

πŸ”¨

latent scaffold
#

I should make a GitHub README thing for my profile

#

but I've literally done nothing useful

acoustic moss
#

same

latent scaffold
#

all I would say is "hi I use Python and I'd like to think I'm somewhat competent"

#

man. there was this 12 year old in one of these channels like a month ago who had a much better GitHub README than I could ever make

acoustic moss
#

_⚠️ TOS ⚠️ _

#

yeah i've very few good projects tbh

latent scaffold
#

I couldn't report them, they said they were 12 on GitHub

#

not on Discord

acoustic moss
#

half my repos are just random discord bots

wraith hound
#

I have no good projects yet

vapid nymph
#

I have 6 bots

latent scaffold
#

I own an organization and co-own a dead one

vapid nymph
#

The two that are mind are ded

acoustic moss
#

F

vapid nymph
#

Or as I like to say

acoustic moss
#

gone for a walk

latent scaffold
#

gone for milk?

acoustic moss
#

yes

#

they'll be back

vapid nymph
#

temporarily under no development

acoustic moss
#

lol

latent scaffold
#

or just... dead

vapid nymph
#

No, because they both are running rn

latent scaffold
#

is the commit activity flat-lining?

vapid nymph
#

Yeah

latent scaffold
#

I pronounce dead

acoustic moss
#

😩

vapid nymph
#

Smeh

latent scaffold
#

Smeh?

acoustic moss
#

i didn;t know how to use github before march ok

#

i didn't even know how to use git

verbal glen
#

my github is even drier than my ig dms and that's saying something

acoustic moss
#

lmfao

verbal glen
acoustic moss
#

lol

verbal glen
#

should probably use it more

wraith hound
#

I like my graph

#

Very empty

acoustic moss
#

orz

wraith hound
#

orz?

acoustic moss
#

its a person bowing if you look closely

#

πŸ˜›

wraith hound
#

What is?

acoustic moss
#

orz

wraith hound
#

Noice

mellow spire
#

one of my good projects got transfered to a org

acoustic moss
#

hm

mellow spire
#

and now I think i only got one okay project, rest are mostly forks

#

my graphs is 🌝

wraith hound
#

Ooh

acoustic moss
#

chad

wraith hound
#

That's nice

mellow spire
#

see vco's

wraith hound
#

vco probably has all green

#

Oh

acoustic moss
#

i still don't know how to spell vkcoltfree

wraith hound
#

He has 3,470 contribs

acoustic moss
#

damn

wraith hound
latent scaffold
mellow spire
#

just say alec

latent scaffold
#

like in my mind I said m-arch

acoustic moss
latent scaffold
#

;-;

wraith hound
#

You say Arch is bad so much

#

That you see Arch everywhere

acoustic moss
#

pro

mellow spire
#

i got 100 of my commits from a stupid school project, which is a website, made it private, so that i don't feel bad lol

acoustic moss
#

he legit has commits everyday now

wraith hound
#

Woah

mellow spire
#

thats the starting part of the graph

wraith hound
#

vco is dedicated