#ot1-perplexing-regexing

1 messages ยท Page 592 of 1

acoustic moss
#

miss a few or consider a few extra*

odd sluice
#

imma take a nap now

#

gbye

acoustic moss
#

cya

odd sluice
#

nice

latent scaffold
#

blue cheeto

clear sage
#

so back to this, to test if a point is within a circle, if i < 0 is true, it means i is outside the image

if i > width is true, it also means i is outside the image, so this if clause basically sees if i and j lie within the imaghe right?

And the 2nd if caluse sees if i,j are a point lying WITHIN the circle?

acoustic moss
#

yep

clear sage
#

ah i seeeee

#

i sort of get how the algorithim works now!

#

Thank you both so much!!!!!!!!!!

odd sluice
#

welcome :D

clear sage
#

just one last q

#

Is this algorithm slowby any chance?

odd sluice
#

hm?

#

depends

acoustic moss
#

depends

clear sage
#

being able to done within under a few miliseconds or so, assuming c++, if not, it would be slow, im assumignhere

odd sluice
#

Occam's Razor
the most simple solutions are often the best ones

clear sage
#

is this as simple as such a solution can get?

#

or simple in general?

gritty zinc
#

well, in Python you should be using numpy for this instead if you need performance, otherwise you'll have to deal with the slowness of Python no matter what

clear sage
#

i remember seeing anoither method but it used these golden angles or something and blew my mind into pieces

odd sluice
#

it's simple
there might be a better one tho
you never know

clear sage
odd sluice
#

k im taking a nap now

#

gbye

clear sage
#

gn!

odd sluice
gritty zinc
#

something like, uhh

from_x = max(x-radius,0)
from_y = max(y-radius,0)
to_x = min(x+radius+1,width)
to_y = min(y+radius+1,height)
image_part = img_arr[from_y:to_y, from_x:to_x, :]
Xs = np.arange(from_y-y,to_y-y)
Ys = np.arange(from_x-x,to_x-x)
Xs, Ys = np.meshgrid(Xs,Ys)
R = Xs**2 + Ys**2
mask = R <= radius**2
mean_color = image_part.astype(np.float64).mean(axis=(0,1), where = mask)
return mean_color.astype(np.uint8)

is how I'd do that with numpy

acoustic moss
#

why is the snek angry

#

yes

acoustic moss
#

doesn;t that get the bounding square

#

not the circle

gritty zinc
#

oh, whoops

#

also need a where

clear sage
#

how would i miss a few pixels tho? If the numebr im finding sqrt of is not a perfect square, ill HAVE to round down the sqrt anytway right?

gritty zinc
#

there, fixed I think

clear sage
#

because we cant have decimal values of y and x

acoustic moss
#

idk

clear sage
#

Tho ill admit im a bit unfamiliar with numpy ๐Ÿ˜…

acoustic moss
#

it should probably work the same

gritty zinc
#

well, really you shouldn't be using sqrt anyway just because it's slow ๐Ÿ˜›

acoustic moss
#

yeah ig you could compare with r^2

gritty zinc
#

instead of checking sqrt(x**2+y**2) <= r, check x**2+y**2<=r**2, that avoids a sqrt

acoustic moss
#

ye

#

no wait

#

im not comparing anything there though

#

im finding the start and end y coordinate

gritty zinc
#

ah, fair enough

gritty zinc
#

why not? these inequalities are equivalent

bleak rain
#

simply square both sides

clear sage
#

im confused because, in

root three < root 10

you said we could write it as

3<10

But here is my q. 3 < 10 is the same as root three * root three < root 10 * root 10

Now in x < y, if i multiply the same constant 5 on both sides as in x * 5 < y * 5, I can understand how the inequality is 'maintained', since the exact SAME number is multiplied on both sides

But in root three * root three < root 10 * root 10, I multiply different numbers on each side (root three on the left, root 10 on the right), so how can we assure the inequality is constant?

viscid hemlock
#

It's same as for sqrt(x) == y vs. x == y**2

viscid hemlock
#

Oh yeah sorry

clear sage
gritty zinc
#

If a==b, it follows that a**2 == b**2, always

viscid hemlock
#

In other languages I think you do ^?

#

If the square root of x is y. Then x is the same as yยฒ (y^2 but in Python typed as y**2)

gritty zinc
#

inequalities are a bit more complex - if a < b and also a and b are both positive, then we can say a**2 < b**2.
That's the case in going from sqrt(x**2 + y**2) <= r to x**2 + y**2 <= r**2

slow juniper
#

.spookyavatar

median domeBOT
#
Is this you or am I just really paranoid?
slow juniper
#

weeeeeeeeeeee

clear sage
#

Yes I understand

#

And all of this (except for >0 part, because negative * negative = positive, which I'm not sure if its axiomatic ) is to be considered axiomatic?

acoustic moss
#

small * small < big * big

gritty zinc
#

(if it's not clear why y*y > x*y - it is equivalent to y*(y-x) > 0, which is true because y>0 and y>x ==> (y-x)>0)

edgy crest
#

i have a mutant snake too

#

but it has stripes instead

odd sluice
#

.spookyavatar

median domeBOT
#
Is this you or am I just really paranoid?
odd sluice
#

anything else?

#

.spookyavatar

median domeBOT
#
Is this you or am I just really paranoid?
dire siren
#

.savatar

median domeBOT
#
Is this you or am I just really paranoid?
odd sluice
#

.savatar

median domeBOT
#
Is this you or am I just really paranoid?
odd sluice
#

wow so creepy

odd sluice
dapper dew
#

.spookyavatar

median domeBOT
#
Is this you or am I just really paranoid?
dapper dew
#

Oh yeahh

clear sage
clear sage
uneven oak
#

.savatar

median domeBOT
#
Is this you or am I just really paranoid?
uneven oak
#

Nice.

#

Why the command isnโ€™t just .avatar?

odd sluice
#

.scaryavatar

#

.savatar

median domeBOT
#
Is this you or am I just really paranoid?
odd sluice
#

.spookyavatar

median domeBOT
#
Is this you or am I just really paranoid?
odd sluice
#

.spookyavatar

median domeBOT
#
Is this you or am I just really paranoid?
odd sluice
#

.spookyavatar

median domeBOT
#
Is this you or am I just really paranoid?
odd sluice
#

come onnn get a better one

#

.spookyavatar

median domeBOT
#
Is this you or am I just really paranoid?
tribal aurora
#

#bot-commands !

rugged echo
dapper dew
#

Lol, sorry that I contributed to the spooky train

odd sluice
median domeBOT
#
Is this you or am I just really paranoid?
dire siren
#

.savatar

median domeBOT
#
Is this you or am I just really paranoid?
gritty zinc
#

.spookyavatar

median domeBOT
#
Is this you or am I just really paranoid?
gritty zinc
#

lol

tardy rain
#

Neat

rough sapphire
#

when are quantum computers coming?

dire siren
tardy rain
#

Not any time soon

dire siren
#

just not public avaliable because the computer youre using is alr gud enough

rough sapphire
tardy rain
#

Quantum computers dont do better at traditional tasks than your pc back home

#

Dont get sucked in from all the hype

rough sapphire
tardy rain
#

No theyre not

dapper dew
#

They are cool due to the technology they employ and the possibilities they bring, not their current capability. (in my opinion)

dire siren
dire siren
#

looks like clickbait ๐Ÿ‘€

#

i usually get trash info in these trash websites

tardy rain
#

could

rough sapphire
tardy rain
#

That looks like an opinion piece

#

And a bad one lmao

dire siren
#

lol

rough sapphire
#

alr then

tardy rain
#

Why would encryption stay the same as today but quantum computers could advance

#

Encryption would also advance

#

Anyway you dont need a quantum computer now or ever

dire siren
#

yes

rough sapphire
tardy rain
#

They do though

acoustic moss
#

yeah

tardy rain
#

Bro are you kidding, the average driver is shit

acoustic moss
#

a computer cannot drink and drive

dire siren
#

.savatar 263560579770220554

median domeBOT
#
Is this you or am I just really paranoid?
acoustic moss
#

or fall asleep at the wheel

dire siren
#

ops

tardy rain
#

Do you know how many people die each year from car accidents

acoustic moss
#

more than 3

rough sapphire
acoustic moss
#

bruh

tardy rain
#

Bruh for real

#

You have got to be trolling

rough sapphire
graceful basin
#

as of today, elliptic curve cryptography is practically uncrackable at key sizes a microcontroller could compute in real time

#

so I can't imagine quantum computers will change that, they aren't a more powerful method of computation, though they may end up much faster for some workloads

bleak rain
rough sapphire
#

quantum can beat rsa tho

graceful basin
#

current computers can beat rsa

#

that's why we are depracating it

#

multiplication gets harder for large keys, and finding prime factors get "easier"

#

general number field sieves are kinda insane.

vocal quail
#

when you first upgrade your cookie factories they don't outpace the old ones

#

but you know they have the potential too

tardy rain
#

Their potential is not as general as people think, its not like they'll replace the traditional computer in households

winter terrace
#

Most people donโ€™t need the computing power capable of cracking modern encryption, so itโ€™s likely itโ€™ll just be a researcherโ€™s machine

#

But arenโ€™t quantum parts really expensive

tardy rain
#

Except classical computers were an improvement at all their functions, quantum computers arent

lunar shore
#

What's your favorite thing to do in programming guys? Web dev? Game dev? AI? GUI Dev? etc.

tribal aurora
#

burning the language lemon_smug

odd sluice
#

esoteric stuff

tardy rain
#

Dockerizing literally everything

lunar shore
#

ic lmao

#

but like

#

what aspect of programming

#

like from the main ones

#

Web dev

#

Game dev

#

idk Generative art

#

And like, Data Structures/Algos

#

Or something like networking/security

tardy rain
#

Full stack web i'd say

lunar shore
#

ooo ic. that's interesting

#

Django + Front-end? or something else for back-end?

tardy rain
#

So far its been Flask/fastAPI/expressjs

#

And react

#

And mongo/postgres

lunar shore
#

Ah, that's nice!

#

I asked that question cuz I have kinda lost passion gradually in this quarantine and it's reached a point where I hardly code nowadays yk

tardy rain
#

Yea flask and fastapi are nice and i like react too

#

Tried vue but i didnt like it

lunar shore
#

Vue is just as good as react. it's just less popular

#

You probably didn't like it because React already satisfied your needs yk

tardy rain
#

Im not that good with react, i just made a couple SPAs

#

"made" is an overstatement i guess

lunar shore
#

SPAs are the whole purpose of frameworks like React and Vue ig

tardy rain
#

Yea but its not like i finished the project and deployed is what i mean

#

Its functioning but they dont look good either

#

I suck at design

lunar shore
#

Ah

#

Well

#

idk why but 99% of the fullstack programmers (Including me) suck at designing lmao

odd sluice
#

idk anything about networking
maybe i should start after i finish this crypto thing

lunar shore
#

Like , I know CSS, but I can't think of a proper design

#

Networking is very good to know, even if you don't use it

#

Well, you use your wifi anyway lol

odd sluice
#

lmao

odd sluice
#

probably a couple months

lunar shore
#

Networking is mostly theory and not actual work though. I found it boring but still suffocated and learned (somewhat) lol

#

also

#

if you have nothing else to learn, try functional programming if you haven't already

#

just saying

odd sluice
#

hmmm what does it consist of

lunar shore
#

Functional programming languages

odd sluice
#

im kinda addicted to oop

lunar shore
#

Like Haskell, OCaml, and other stuff

#

Try FP it's fun imo

#

Oh and scala mixes FP and OOP

#

Maybe try it

#

Scala is nice

tardy rain
#

Pick a lisp and try it

odd sluice
#

what is FP
gimme an example

lunar shore
# odd sluice what *is* FP gimme an example

FP is functional programming. In functional programming, everything is a function (plus datatypes, yes). And what is a function? A function is an operation which returns one thing for each value. if f(x) = 2x , f(1) is 2, and nothing else. Basically, a FP language is a language avoiding side effects as much as possible

#

Those side effects also consist of printing something to the console which is one of the only side effects that FPs don't avoid

#

Like in Haskell, side effects are ONLY possible in the main function

#

But there are some languages which have side effects too, yk

lunar shore
#

You can also search for the wikipedia page, it has more details

viscid hemlock
lunar shore
#

yes lmaooo

viscid hemlock
#

Like... classes are types. And you can control how those are created.

You can define a metaclass, which will decide how a class is constructed. The class of course you define to decide how an object is constructed.

odd sluice
#

i am addicted to classes
idk why
i make classes for e v e r y t h i n g

tardy rain
#

Not everything needs to be a class

acoustic moss
#

can't hear you over my jvm

lunar shore
#

In Haskell, let's say , the datatype PrintThis, which holds a string, has a type constructor and a data constructor. Data constructor is a function which gets the values and returns the type. Like we can get PrintThis "Hi" just like what I wrote. PrintThis is the data constructor. It gets a string as an argument, and returns PrintThis + The string it got. The type constructor is used when defining function types . Let's say, we wan't a function that always returns PrintThis "Hi" , it would be like this :

myFunction :: 
               PrintThis -- This is the type constructor
myFunction = PrintThis "Hi"
#

idk if that's 100% correct but that's what I know lol

#

but yeah that's the type system

#

(a part of it)

inland wolf
#

the shadow realm

tardy rain
#

In appdata/roaming/pypoetry

opaque jolt
#

how is it going andre?

vapid nymph
dapper dew
#

Favorite paradox: "This statement is False"

stark oasis
#

if python were javascript, we would speak with a different language. We would use the pathlib API and the requests API and the SQLAlchemy API and the list comprehension API. What end would there be to things that are now APIs?

#

f-string api

#

shebang line aat the top of the file api

#

thats how js really is

#

the relative import api

#

why are they so attached to that term?

#

Im going to update my .bashrc later with some new aliases. Gotta love that bashrc alias api

tardy rain
#

pathlib is an api tho and so is requests and sqlalchemy

stark oasis
#

Right.. But we dont say that constantly with every thing in python

#

Introducing the x API

#

that is how anyone talks about javscript

tardy rain
#

No we say package instead

#

How is that better

stark oasis
#

its not about there being a package. IF JS came out with some like... type hints, which were growing in popularity....

#

It would "the new type hints API"

#

its not a objectively bad or good

#

its just how they talk

#

we have a better range of descriptors

#

because everything isnt just api.

tardy rain
#

I've never heard anyone call arrow functions an api

#

Or interfaces an api in ts

#

So where does this even come from

stark oasis
#

fetch api, useContext api, function components hooks api

tardy rain
#

Those are apis

stark oasis
#

im not debating that lol

tardy rain
#

useContext is a hook

stark oasis
#

but in the world of JS, its a new API

#

thats what im saying

tardy rain
#

Bruh

stark oasis
#

i can find you twenty aarticles right now that call functional components an api.

tardy rain
#

You mean react hooks?

graceful basin
#

python:
the method call protocol
the descriptor protocol
the iterable protocol
the iterator protocol
the boolean protocol
the attribute access protocol
the item access protocol
the mapping protocol
the sequence protocol
the set protocol
the mutableset protocol
the mutablemapping protocol

#

we aren't much better tbh

tardy rain
#

React hooks are APIs why would they call them anything else

#

This is just pointless complaining about js

stark oasis
#

Im not complaining about JS. im remarking about it. Objectively, there isnt bad or good preference for a general term.

#

But as you read about JS in the JS community, you find the use of the word in excess.

graceful basin
#

API is a very general term, and yes, JS uses it in places where python would say module

tardy rain
#

Module, package, etc are not more descriptive as just saying API anyway

stark oasis
#

Whereas in python, we say something is an API when like.... Qt5 gives the same bindings in C++ to use it with a language we know.

#

SQLAlch would be a good exaample of something pythonists would call an api yeah

#

They're not.

#

But JS has a culture of trends that we dont thave

#

in the same way

#

and when you read the articles you see it

#

disclaimer, right now i do way more js than python btw

rich rover
#

Is it even possible to shove this into a lambda function?

graceful basin
#

yes, but I would not do that

rich rover
#

I mean

#

I did that already

tardy rain
#

Why would you do that

rich rover
#

I don't know but now my brain hurts

#

I just want to make an inline lambda with the algo I made above

#

and then map it to this mess

#

I already made a reasonable solution

stark oasis
#

here i have the exact solution that you need @rich rover

rich rover
#

the input has to be a string, and the cases must remain in the same place/index as they were found in the regular string

#

only for the string to be reversed and maintain the case locations (or whatever you call it)

#

ignore the gibberish at the top of the terminal

#

there might be a simpler solution; I tend to over complicate things

rich rover
#

this is truly marvelous

stark oasis
#

@tardy rain

#

Right now i am currently using the two monitors on my desk while sitting in my chair api

#

I feel like API is a better term in reference to the actual reference material.

#

and the specification inside of it.

#

in the sitting at your desk api, you can pass a height to the chair object and set the state of its vertical positioning

#

you could say the lever is a hook into this state

#

but of course, in js, you could also just say that its an api

#

the chair api

#

๐Ÿ™ƒ

#

"Learn to use the chair API in twenty minutes in all of your react projects!"

#

my full course is available

#

ill leave you with just one question this brings to mind

#

is the chair api relevant in 2021?

onyx basin
#

this analogy went so far

#

I am highly entertained by it

agile dove
#

sending screenshot

lunar crescent
#

ah

tender smelt
#

you collapsed it

agile dove
#

no i didnt

#

oh

#

umm,

#

sorry. i did collapse it

rough sapphire
#

mary had a little lam its soul was black as coal one night it walked in to her room and it ate her soul

viscid hemlock
#

Story of my life

inland wolf
#

danm

solemn leaf
#

mary had a little lam .

#

happy ending

#

damn

wintry fractal
edgy crest
clear acorn
odd sluice
tight scarab
#

If you're bored, I'd appreciate help on upvoting the Python Developer in Residence article on Hacker News (by the end of the New page).

odd sluice
#

alr

#

oh that's what ycombinator is
i was like "wtf is that site man"

#

or is it that site hmm

tight scarab
opaque bronze
#

i dont know why its named hacker news tho

solid pollen
dire siren
#

still waiting till mr hemlock online and ask whos his dad

#

probably joe

lunar shore
#

why is PHP hated btw? modern PHP has most issues resolved, right?

acoustic moss
#

which popular language isn't hated

lunar shore
#

um

#

I mean, at least JavaScript or Python are loved my many. most PHP developers have quitted/hated it yk

#

by*

#

lol autocorrect

tight scarab
# lunar shore why is PHP hated btw? modern PHP has most issues resolved, right?

PHP, originally called "Personal Home Page" by its author, was an alternative to CGI and at the time of creation didn't have ambitions much bigger than "provide a few server-site niceties straight inside HTML". It wasn't designed as a fully fledged programming language, and its builtin functions weren't particularly thought through as a "standard library" that will grow.

#

It became super successful because through Apache it turned out that it's trivial to provide SHARED server-side hosting for people with as little as an FTP account. No long-running processes, no server-side configuration (besides .htaccess I guess). It became very popular very quick, and with that, people wanted to do more with it.

#

At around PHP4 the old design started really show its age. PHP5 shed some of that cruft, and PHP7 copied some performance-improving ideas from Facebook's HHVM. It's now a modern language by all means. But people remembering PHP3 will never forget its clunkiness and disregard for security. So they complain to this day ๐Ÿ™‚

#

You're saying that JavaScript is loved by many. Yes, but many old timers remember times of Internet Explorer 6 and before and that JavaScript sucked baaadly. I bring up Internet Explorer because while it's rightfully hated for a lot of things, it was Microsoft who came up with AJAX which changed the entire thinking about what is possible in a browser. Before it was all "fat plugins", with Java, Silverlight, and of course Flash, being the biggest players.

#

Now everybody takes it for granted JavaScript allows nice async networking and has full front-end multimedia capability with audio, video, and an hardware-accelerated 2D canvas and 3D engine built right into the browser.

#

Not so long ago none of this was true.

acoustic moss
#

something something java applets

#

i have a book from 1997 which mentions them

tight scarab
#

I ran a successful Java WebStart CMS-style application for a while that was used at Polish universities ๐Ÿ˜„

acoustic moss
#

damn

tight scarab
#

and that was 2006-2009 so really, not so long ago.

#

It was very popular because all those university office computers in 2006-2009 were still some locked down Windows XP machines with IE6. Nothing else worked if you wanted multimedia.

#

At the peak we were in >40 universities.

#

The US financial crisis killed it eventually as advertising dried up.

graceful basin
#

is there a current alternative to php/cgi/wsgi for shared hosts?

lunar shore
dire siren
#

0j0php

dire siren
twin charm
#

damn

tight scarab
#

IDK, Netlify is "free" and there's plenty of tiny VMs for $3 - $7/month.

graceful basin
#

ah no, I mean for like universities that want to give their students websites with a bit more logic than just a static site

#

my uni gives me cgi and php

#

and while cgi works, it is quite slow

honest star
#

I do miss AJAX occasionally, that was really a game changer

remote citrus
#

has anyone read the book: Journey to the center of the earth

uneven pine
#

It is a very well known book

#

Many people have read it

rough sapphire
#

I did listen to it as a audio book

#

Anyone here read Blackout by Marc Elsberg?

rough sapphire
#

so if i have a method like this,

    @staticmethod
    def meet(rule_1, rule_2):
        new_rule = []
        for i in rule_1:
            rule_added = False
            for j in new_rule:
                print('=>', i, j)
                if i.intersection(j):
                    j = j.union(i)
                    print(j)
                    rule_added = True
                    break
            if rule_added:
                continue
            r = deepcopy(i)
            for j in rule_2:
                print(i, j)
                intersection = r.intersection(j)
                if intersection:
                    print('found intersection')
                    r = r.union(j)
            new_rule.append(r)
            print('uhm', new_rule)
        r = Partition.to_rule(new_rule)
        del new_rule
        gc.collect()
        return r

here i was kinda trying to manipulate the j inside new_rule, what would be the way for it then?

acoustic moss
#

hmmm

#

j |= i might be in-place

rough sapphire
#

wym?

#

i can manage by index as an easy fix

acoustic moss
#

oh you could use j.update(i) too

rough sapphire
#

enumerate and index

rough sapphire
acoustic moss
#
In [1]: a = {1, 2, 3}

In [2]: b = {2, 3, 4}

In [3]: a.update(b)

In [4]: a
Out[4]: {1, 2, 3, 4}
rough sapphire
#

works on frozen?

#

(yeah i know my new_rule is list rn, but i was gonna change it)

acoustic moss
#

๐Ÿค”

inland wolf
#

can u put a frozenset inside a frozenset

acoustic moss
#

if b is a frozenset it works

acoustic moss
inland wolf
#

nice

rough sapphire
inland wolf
#

okay.

rough sapphire
#

so to let it update, I'll just keep it as a set, and to have sets inside I'll keep new_rule as list right now.

acoustic moss
#

hm

#

you could have new_rule as a set too
and do new_rule.add(frozenset(j))

rough sapphire
acoustic moss
#

uhhh maybe idk

#

wait wdym

rough sapphire
#

yeah wait

rough sapphire
acoustic moss
#

ah right

#

i see

rough sapphire
#

!e

def to_rule(rule):
    return frozenset([frozenset(i) for i in rule])
def meet(rule_1, rule_2):
    new_rule = []
    for i in rule_1:
        rule_added = False
        for j in new_rule:
            # print('=>', i, j)
            if i.intersection(j):
                j = j.update(i)
                # print(j)
                rule_added = True
                break
        if rule_added:
            continue
        r = set(i)
        for j in rule_2:
            # print(i, j)
            intersection = r.intersection(j)
            if intersection:
                # print('found intersection')
                r = r.union(j)
        new_rule.append(r)
    r = to_rule(new_rule)
    return r
print(meet(to_rule([[1,2], [3,4,5]]), to_rule([[1], [2,3],[4,5]])))
#

eh

royal lakeBOT
#

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

frozenset({frozenset({1, 2, 3, 4, 5})})
rough sapphire
#

ah alright, this is working now, I'll need to check again, I somehow missed edge cases last time.

acoustic moss
#

why do you have those dels and gc.collects btw

rough sapphire
#

yeah about that

#

i actually had partitions of like 400 elements.
so when i was doing meet and join operations, it was eating up ram on colab.
Because i had to do it on a lot partitions.

But issue was it was not releasing from somewhere.

So i did bit of commenting and found out these were causing issues.

So i tried to clear them out, and now things are working fine.

#

I never experienced this before tho.
It may be colab or may be my code, but after removing them forcefully, ram is getting managed.

acoustic moss
#

hmm

rough sapphire
#

but tho colab is fucking handy

#

it works perfect with drive, so we get file system and cloud so PC all easy going.

acoustic moss
#

yeah colab is nice

#

i don't feel that comfortable with notebooks but ive still used it a few times

rough sapphire
#

wow, I kinda started py with notebooks, i feel so strange with actual py files.

acoustic moss
#

heh

rough sapphire
#

notebooks are just so so handy

acoustic moss
#

the closest i get to notebooks is my ipython shell

rough sapphire
#

heh lol preferences.

#

oh anyways, i gotta hurry, Thanks a lot for the time btw:D

acoustic moss
#

cya

rough sapphire
#

@acoustic moss
So it should be
j.update(j.union(i))
right?

acoustic moss
#

no just j.update(i)

rough sapphire
#

uhm no wait

acoustic moss
#
In [1]: a = {1, 2, 3}

In [2]: b = {2, 3, 4}

In [3]: a.update(b)

In [4]: a
Out[4]: {1, 2, 3, 4}
rough sapphire
#

weird, I'm doing something wrong.

#

oh okay alright thanks, I got some bug in my code then.

winter terrace
#

hey guys could someone google "why do i have no friends" i can't really rn cuz i really don't need google giving me craigslist ads

winter terrace
vapid nymph
#

y'all, I have a question.

For a location for modmail addons/extensions/plugins/etc (basically user installed third-party stuff, mostly from github, might add some gitlab support too)
how does this seem?
modmail/plugins/{USER}/{plugin_name}/{files}
modmail/plugins/local/{plugin_name}/{files}

#

@solid pollen asking you because I know you use plugins lol

solid pollen
#

What's the context? What is that structure, the git repo ? @vapid nymph

vapid nymph
#

yeah

#

well

#

no

#

where the files will be installed to

#

the git repo will be like a monorepo

#

extension repos structure:
/{plugin_name}/{files}

solid pollen
#

So you are asking what modmail should support or how you should structure it with the current support?

vapid nymph
#

what folder structure on the bot should the plugins take

solid pollen
#

Are you asking for like your own modmail version?

solid pollen
#

Riiiight

#

Yeah, that looks about right

vapid nymph
#

not sure if i should also have a source like /gh/ and /gl/ since I want to support both.โ€ฆ

#

then again, this is easy enough to change before release

bleak lintel
#

ultimately I run things in docker

#

so it could go in /etc/golang for all I care

vapid nymph
#

well yeah

#

its more the import order

#

like

#

if you want to import from a different plugin

#

which I'm not saying will be supported, but I'm not saying it won't either.

#

but addons will be heavily supported

#

tl;dr I wrote a system to not load cogs unless the bot is in specific modes

#

so it will have an extension manager for built in cogs, eval command, etc, but they won't load under normal usage unless the env var is explicitly set

vapid nymph
#

Press F.

#

plugins are extensions too, which means rewriting the extensions system :)

rough sapphire
lost vortex
#

Could you guys tell me which one looks better?

#

I'd also appreciate any feedback on either.

rough sapphire
#

Number 1

shrewd prawn
#

i like the first one, but make "Bill Gates" have a consistent style

lost vortex
#

ahh thank you. So for the name part, i shouldn't have the last name bold?

#

also, i am not sure if the job description is too tiny, is it readable? (for number 1)

honest star
#

As long as text isn't smaller than 12 pts you should be fine. I also prefer the first. It's cleaner and looks nicer.

lost vortex
#

Awesome, thank you

distant hazel
reef geyser
#

@rough sapphire What are you on about?

rough sapphire
#

My child

#

This day will come

#

If you agree I can make you a very powerful person

reef geyser
#

What's coming though?

rough sapphire
#

My child, you will see in time

#

For it is I

#

Godfather Don Corleone

frail badge
#

Uhh

#

Are you a person with a high ego or are you just roleplaying?

latent scaffold
#

uh

last mantle
latent scaffold
#

:<

ebon condor
#

made a quick design of a trans birb lad. he is a fashion designer

shrewd prawn
#

interesting

ebon condor
#

im excited to make some more clothes for him. and digitally color and stuff

shrewd prawn
#

hmm making clothes with holes for wings AND arms

ebon condor
#

it can be constructed with a more open back/sides

#

the clothes will be more colorful, prolly not the wings

#

but... i am gonna have lots of fun with fabrics. i wanna make an outfit with batik, a fabric dyed and patterned with beeswax

hexed ridge
#

im just like that

rough sapphire
last mantle
#

yes

shrewd prawn
#

ive never seen this before, and idk what im supposed to use to sign in

#

github login doesn't work

#

hmm i tried using a token again, and now it worked. token didnt work the first time fore some reason. still have no idea what that redirect was

dire siren
#

if you didn't get the joke: ||(java is coffee)||

odd sluice
#

lmao

shrewd prawn
#

what about the guy learning julia or ruby

dire siren
#

julia is a girl ig. sure you can talk to her

odd sluice
dire siren
#

ruby is expensive i'ma not learn it

shrewd prawn
#

lol

#

also rust

#

speaking to rust is nice

odd sluice
#

yes, it will give you tetanus

#

nice indeed

edgy crest
#

so if you want to learn zig you talk to Zig?

gritty zinc
#

Joe-E is a subset of the Java programming language intended to support programming according to object-capability discipline.The language is notable for being an early object-capability subset language. It has influenced later subset languages, such as ADsafe and Caja/Cajita, subsets of Javascript.
It is also notable for allowing methods to be ...

#

you know what to do

edgy crest
acoustic moss
odd sluice
acoustic moss
#

no sebastiaan programming language rip

dire siren
#

joe lang when

acoustic moss
shrewd prawn
#

hsp whats abnended

acoustic moss
#

banned

shrewd prawn
#

but. but no. thats just, how you spell like that

odd sluice
#

this is a c copy man (except for objects)

edgy crest
#

nothing is similar to c except the braces

gritty zinc
#

looks a lot like JS, really

rough sapphire
#

except def

tribal aurora
#

it is like you combined JS, C/C++, and python together

gritty zinc
#

var, ;, dynamic typing..

acoustic moss
#

they played both sides

odd sluice
#

wtf

#

it's an amalgamation

shrewd prawn
#

nooo, the "both" memes have spilled over into ot1

acoustic moss
#

yeah it literally looks like python and js mashed together lol

tribal aurora
#

# - def - print -> python
// - {} - ; -> C/C++ - JS
var -> JS

#

they're even using objective-C in their code

dire siren
dire siren
#

!pypi brackets

royal lakeBOT
#

Use curly braces instead of indenting, plus much more sugar added to Python's syntax.

tribal aurora
#

natively it isn't for py

manic moon
#

I keep getting an error, am i doing something wrong?

const API = require('kasu.nhentaiapi.js');
const api = new API(); 
    
async function sauce(){
    let id = api.pRandID;
    const val = await api.getID(id).json()
    console.log(val)
}

sauce()

(node:15708) UnhandledPromiseRejectionWarning: TypeError: ID.replace is not a function
at main.getID (C:\Users\snowy\Documents\GitHub\Discord.js\node_modules\kasu.nhentaiapi.js\lib\main.js:28:30)
at json (C:\Users\snowy\Documents\GitHub\Discord.js\test_nhentai_api.js:6:27)
at Object.<anonymous> (C:\Users\snowy\Documents\GitHub\Discord.js\test_nhentai_api.js:10:1)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47
(Use node --trace-warnings ... to show where the warning was created)
(node:15708) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:15708) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

tranquil orchid
#

Well, I can't say I'm familiar enough with JS to know this

#

However

#

(await api.getID(id)).json() I'd imagine you meant to do that

manic moon
rough sapphire
dire siren
#

wtf why are both so similar

opaque bronze
#

you may call me crazy

#

i present to you this

odd sluice
odd sluice
spare lance
#

what have i done today to see this

opaque bronze
#

see this masterpiece

#

you'll understand

opaque bronze
#

i could not contain myself

acoustic moss
#

what in the goddamn fuck is this

opaque bronze
#

see that #include "__py__"? thats where all the macros are

spare lance
opaque bronze
#

luckily you can use the gcc preprocessor on any file

spare lance
#

but no cursed

opaque bronze
tranquil orchid
#
from __future__ import annotations


@lambda c:c()
class __annotations__:
    def __setitem__(self, name, value):
        globals()[value] = globals()[name]


class Number:
    def __init__(self, value):
        self.value = value

    def __pos__(self):
        self.value += 0.5
        return self
    
    def __str__(self):
        return str(self.value)


let: i = Number(5)

++i
print(i)
```Just abuse Python syntax and make monsters
spare lance
#

what does include __py__ do

opaque bronze
#

without it this won't work

spare lance
#

ohh... macros is?

opaque bronze
#

for example

#
#define NOT_HELLO_WORLD "hello world"

printf(NOT_HELLO_WORLD)
#

the not_hello_world gets subsituted by "hello world"

#

the thing is, the substitution happens literally

spare lance
#

oh so this literally does printf("hello world") ?

#

pick and drop type of?

opaque bronze
#
#define infiniloop while (true) {
#define end }

infiniloop 
  stuff
end
``` becomes ```c
while (true) {
   stuff
}
spare lance
#

ah alright coool

opaque bronze
#

which is what im abusing in python

spare lance
#

so u defined macros like.. print to printf.. print("some string") to printf("%s","some string")?

opaque bronze
#
// Normal py stuff
from typing import *
from functools import reduce

#define do :
#define end 
#define puts print(
#define close )
#define let
#define foreach(var, iter) for var in iter
#define try try:
#define catch(exception) except exception:

// Aliases
#define fn lambda
#define require import 
#define ret return
spare lance
#

ah coool

opaque bronze
#

so py #include "__py__" f = fn x,y: x*y becomes ```py
f = lambda x,y: x*y

spare lance
#

geee this is cooooool!

opaque bronze
#

you can do this if you have gcc

spare lance
#

i sound like a 7 year old.. and i dont mind.. this seems so cool

opaque bronze
#

:)

#

also, i also smiled like a 10 year old when i realised i could do this

tribal aurora
opaque bronze
tribal aurora
#

why

#

is that C++ or python

graceful basin
#

it's cpp running on python code

tribal aurora
#

so all of those are preprocessors

#

not hard to do in C++

opaque bronze
#

lovely python abuse

opaque bronze
#

i just slapped a bunch of macros inside __py__ and included it

tribal aurora
#

so why do you have py syntax highlighting

opaque bronze
#

because it is a python file

#

it is actually python

tribal aurora
opaque bronze
graceful basin
#

it's important to keep in mind that the cpp is completely independent from C or C++ and even has it's own tokenization rules

tribal aurora
#

c++ is cpp isn't it

graceful basin
#

cpp is the c preprocessor

opaque bronze
graceful basin
#

still works

opaque bronze
#

ye

graceful basin
#

it takes stdin by default

tribal aurora
#

wha

graceful basin
#

the syntax highlighting is enough reason to keep elvish, even if it is not as nice as powershell

shadow ridge
#

there isnt anything in it so

#

no use of downloading it lol

#

but im just happy that i managed to upload it

graceful basin
#

nice

shadow ridge
#

ill make a new one for another project

#

btw im unable to change the description

#

the project description ;-;

opaque bronze
#

so you can do gcc -E file.py && python3 file.py to "enjoy" the "benefits" of macros

spare lance
#

uh so i have some code like this... (not some program code.. just a random scenario i ran across while making a program)

    if n<10:
        return "hello world"
    while True:
        yield n
        n+=1

so if i put n=2 or sumn ... it basically returns None
so i am wondering what caused it ๐Ÿ‘€...
like does type of a_func become generator and the return function will not return some value but just mark end of function? ---> if yes why does it happen so ๐Ÿ˜…

opaque bronze
#

hmm

#

!e ```py
def a_func(n:int):
if n<10:
return "hello world"
while True:
yield n
n+=1
print(next(a_func(2)))

royal lakeBOT
#

@opaque bronze :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 7, in <module>
003 | StopIteration: hello world
opaque bronze
#

thats strange ๐Ÿค”

spare lance
#

yeah

rough sapphire
#

why is this strange

tribal aurora
#

why did throw an exception tho

spare lance
#

not an exception

#

it just returns none

#

!e ```py
def a_func(n:int):
if n<10:
return "hello world"
while True:
yield n
n+=1
print(list(a_func(2)))

royal lakeBOT
#

@spare lance :white_check_mark: Your eval job has completed with return code 0.

[]
tribal aurora
#

why list

spare lance
#

just to show it returns None? ๐Ÿคท

rough sapphire
#

because you are not yeilding hellow world

winter terrace
spare lance
#

yup it just calls stop iteration without yielding "hello world"

#

but why >:((

rough sapphire
#

!e

def a_func(n:int):
    if n<10:
        yield "hello world"
    while True:
        yield n
        n+=1
print(a_func(2))
royal lakeBOT
#

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

<generator object a_func at 0x7fbc9019e6d0>
spare lance
#

use list to catch the output

#

or starred

#

but this will yield "hello world" yeah

#

and the numbers ahead too

rough sapphire
#

!e

def a_func(n:int):
    if n<10:
        yield "hello world"
    while True:
        yield n
        n+=1
print(list(a_func(2)))
royal lakeBOT
#

@rough sapphire :warning: Your eval job timed out or ran out of memory.

[No output]
rough sapphire
#

yeah outta memory, expected.
So what is your issue @spare lance

spare lance
rough sapphire
#

yeah obviously

spare lance
rough sapphire
#

uhm, probably someone better may help.

spare lance
#

okay the answer to second is prolly that it isnt defined that way.. but what is it defined as then ๐Ÿ‘€

opaque bronze
#

usually when you next a iterable, you expect a value or StopIteration, but not both ๐Ÿฅด

spare lance
#

ah hmm that could be one thing

prisma island
#

Does anyone here how knows dynamic programming?

opaque bronze
inland wolf
#

guys

#

whats the site for monkeytype multiplayer

brazen ingot
#

uh

#

they released it?

#

lol I don't think so

inland wolf
#

hm

median peak
#

can i vent programming woes here?

tardy rain
#

What kind of venting are you planning to do

solid pollen
#

Blue sus saw him vent

median peak
#

Because the programming subject dropped me from the course because my code LOOKS like what someone posted online

#

after 3 months of work

solid pollen
#

Uh oh

median peak
#

someone from the same course had a smart idea to post the problem on stackexchange

#

I'm like collateral damage cuz i've never seen the forum post

#

how do you properly detect plagiarism of code?

#

is that even a thing?

#

if it's word for word sure

dapper dew
#

File creation date vs stackoverflow date?

median peak
graceful basin
#

if you had a git history, it could be pretty convincing proof, that is a bit hard to fake

median peak
#

like i never used github or uploaded my code in any way

tardy rain
#

Yet another case for the use of git

median peak
tardy rain
#

Is this about school work

median peak
#

ye

dapper dew
tardy rain
#

Best you can do is plead with your dept head i guess

median peak
#

it sucks so much because I have to retake if I don't fight the accusation

#

the issue in question was a machine problem where it was about graphs and flows and capacities and all of that

#

and the MP was split up into like subtasks and u couldn't move on from 1 subtask to the next without completing the previous one

#

the reason it was flagged because it looks like I used similar variables, liked the named variables were similar in function albeit with different names

graceful basin
#

yeah, if you didn't use a version manager, that's not useful

median peak
#

the only ammo I have is that the subtask where I supposedly 'plagiarized' is that it was a copy paste from the previous subtask I did, because it was basically almost the same code with a different function at the end

#

my argument is that if I plagiarized the subtask in question, then why is the code in the previous subtask similar? Won't that mean the variable names in question was something I came up for myself and not copied online?

#

idfk i almost got a heart attack when i received the email about the whole goddamn thing

weary tulip
#

can i go off topic in off topic

tribal aurora
#

that's why it is made for ig

solid pollen
#

You can't

#

There is no topic

weary tulip
#

what

solid pollen
#

Everything is on topic

weary tulip
#

i dont like bannana that much

#

but litchies are great

#

can i go this off topic? py_guido

inland wolf
#

yes

weary tulip
#

so help me with potatoes

#
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>org.example</groupId>
    <artifactId>JavaDiscordBot</artifactId>
    <version>1.0-SNAPSHOT</version>

    <properties>
        <maven.compiler.source>16</maven.compiler.source>
        <maven.compiler.target>16</maven.compiler.target>
    </properties>

    <repositories>
        <repository>
            <id>dv8tion</id>
            <name>m2-dv8tion</name>
            <url>https://m2.dv8tion.net/releases</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>com.sedmelluq</groupId>
            <artifactId>lavaplayer</artifactId>
            <version>1.3.77</version>
        </dependency>
    </dependencies>


</project>```

error in groupid and artifactid and version
#

copied from docs

#

placed in right place

#

but why are the potatoes not frying

shadow ridge
#

not to mention, the only messages i get in the help channels that i open are "help channel has been marked dormant" messages

weary tulip
#

looks like u also like going absolute off topic

tardy rain
#

Have you considered asking better questions

fringe tulip
#

I'm making a windows assistant, anyone have ideas for some features I could add?

weary tulip
#

i mean ur windows assistant

rough sapphire
weary tulip
#

yes

solemn leaf
#

any usb bluetooth adapter recommendations

#

ffs

#

5.0 if possible

rugged echo
#

it's all objects
i know this isn't a meme dump, but there are no ongoing convos so i'm starting one with this meme

solemn leaf
#

dont
block
my
problem ffs

rugged echo
solemn leaf
#

lol jk

sullen condor
rugged echo
sullen condor
#

I used to get so confused with unity trying to multiply vectors and quaternions

#

I used to multiply the quaternion by the vector (smort)

hybrid pivot
#

im making my own "isnt" function in python

rugged echo
tardy rain
#

Make a new operator ==nt

#

Tests for inequality

#

Oh fuck wait we already got that

royal lakeBOT
proper harness
#

Made a sorting algorithm from scratch cuz why not

#

wanted to see what type it is

inland wolf
#

DomgSort

graceful basin
#

that's a less optmised variant of the selection sort as far as I can tell

fickle dirge
#

got a core i7-2600 with no box or anything

#

how much could i sell it for on ebay

proper harness
#

so I can name it

viscid hemlock
#

Perfect, and just like that MeSort was made. Because "it was made by me" according to its author.

proper harness
#

And normal b is boring so German s it is

hybrid pivot
#

gonna learn cython first tho

viscid hemlock
#

Does anybody know where I can read about the current lifetimes of all Python versions?

hybrid pivot
#

yeah so uh

#

i may or maynot need help

eager trout
#

@rancid aspen

rancid aspen
#

hello

eager trout
#

You can't get viruses on an ipad

rancid aspen
#

so my cmd keeps opening and my computer crashes after maybe 10 seconds

rancid aspen
#

my iphone is jailbroken can that get viruses?

eager trout
#

probably not

rancid aspen
#

thats good

frail badge
#

You should've downloaded a paid antivirus cracked version and gotten a virus from there brainmon

rancid aspen
#

why would i pay for a virus

#

when i can get one for free?

frail badge
#

true

eager trout
#

It's paid but can be used after the trial

rancid aspen
#

does it delete a virus

eager trout
#

Just do a quick run, that should solve everything

frail badge
#

they were before too

rancid aspen
#

the thing is i cant download because my computer crashes before i can do anything

timid frigate
#

the os with builtin keyloggers

hybrid pivot
#

i have an counter point to end everything

#

why care if it isn't yours?

#

"hey why are you using a json instead of a db in your project(dummy)"
"why care if it isnt your project"

#

why do you stir 3 sugar cubes instead of 2?

#

why care if it isnt yours!!!!!

proper harness
hybrid pivot
#

ITS A GOOD IDEA

#

just like isntโ„ข๏ธ

#

and devalโ„ข๏ธ

#

and dexecโ„ข๏ธ

thick osprey
#

@shell raptor @wise schooner I completely botched the paste in pygen. This is the "fun" javascript gift a friend showed me. the 0/0+ makes all the difference

0/0+([]+1/0)[!+[]+!+[]+(+!+[])]

wise schooner
#

pehehehe that expression is overpowered

gritty zinc
#

I wonder... how does Python's speed compare to C# in a scenario like "loading a ton of rows from a database and making each row into an instance of a certain class"?..

#

in both of them it should involve expensive stuff like multiple memory allocations per object, etc, so I wonder how much faster C# is there.

timid frigate
#

c# will be faster

acoustic moss
#

0/0 becomes NaN
1/0 becomes Infinity, doing [] + 1/0 makes it "Infinity"
!+[] is true, or 1, so !+[]+!+[]+!+[] becomes 3
so ([] + 1/0)[!+[]+!+[]+!+[]] becomes "Infinity"[3], i.e. "i"
then 0/0 + "i" becomes NaN + "i", "NaNi"

inland wolf
#

bruh

#

wtf

twin charm
#

too advanced

latent scaffold
#

too stoopit

twin charm
floral apex
#

Folding is nice

tranquil orchid
#

I don't think I've ever used it

#

I just wanna see my stuff

latent scaffold
#

I fold when I have like a massive class or something

#

and I there's code that I don't want to edit that only makes everything look messier than it is

gritty zinc
#

I often use it for codingame bots

#

because it allows only one file

#

so all of my 1000+ lines of Rust are in one file lemon_grimace

tranquil orchid
#

๐Ÿ‘€

weary tulip
#

hi

topaz aurora
#

VS Codeโ„ข sure is nice

dire siren
#

anyone else make all tables and values in sql caps

#

or is it just me

modern haven
#

What no ๐Ÿ˜‚ the keywords are caps but the names shouldn't be lmao

dire siren
#

YES IT'S PROBABLY JUST ME TOO LAZY TO TURN OFF CAPS LOCK (OOPS)

#

100% UNINTENTIONAL

spare lance
dire siren
#

but i think most sql developer do caps on keywords like insert into

spare lance
#

yeah prolly

latent scaffold
#

I think my days of bad posturing have finally caught up with me

#

I woke up cause my shoulder feels so much like it just needs to pop, but she refuses

#

It may or may not be 4:27

noble atlas
latent scaffold
#

Well not anymore but it was for my

#

Me*

#

4:33 AM right now D:

noble atlas
#

hmm

latent scaffold
#

Anyways, my other shoulder is also really sore now cause I got my second dose of the vaccine

#

Arm more than shoulder, I guess

#

Either way, pain on either side lemon_angrysad

edgy crest
#

i switched to xubuntu

#

def better than manjaro stonks

tranquil orchid
#

I'm thinking about wiping my PC tomorrow and then dual booting windows and probably a new linux distro to try it out

#

I've heard trying to dual boot with windows after having already installed Linux is a pain, and I don't actually have a heap of stuff stored on my PC, so wiping it will probably be the fastest way

#

I'll just backup what I want

tranquil orchid
#

Not too sure yet, but I think I'll go with something more stable this time

#

Haven't been a huge fan of rolling release

proper harness
edgy crest
#

i am liking a ubuntu flavour much more

tranquil orchid
#

Yeah I'm probably going to go with something like that

wise schooner
#

i wanna try https://pearos.xyz/ once

#

it's ubuntu based ๐Ÿ‘€

tranquil orchid
#

I might go for Kubuntu or something

#

I do like kde

last mantle
#

why pearintosh when KDE plasma skin

dire siren
#

quite confused with license stuffs rn

#

nvm the pylint might not be included in the source

#

it's 99% running the cli of pylint

viscid hemlock
#

I think that would make sense in terms of licensing

dire siren
#

oh great so i don't have to include pylint in my source

#

but actually requesting the user to install it and use it in my program?

viscid hemlock
#

Are you use PyLint isn't LGPL?

dire siren
#

seems to be gpl

viscid hemlock
#

Hmm, alright. Because I remember there being issues with if you use a library you also need to release under GPL? Like if a module is used as GPL

dire siren
#

yea i think so

#

i think it's the "same license" part

viscid hemlock
#

Could be different when you use a CLI, vs like using a module's functions.

#

Either way, if your project relies of PyLint for linting and you just have people download it seperately. I am pretty sure that should be okay.

dire siren
#

hm thanks

modern haven
dire siren
#

YEA I THINK MOST PEOPLE USES CAPS FOR KEYWORDS IN SQL

spare lance
modern haven
#

Lmao

rough sapphire
#

it's mr sentdex's chat bot

#

it's high today

dire siren
thin swallow
#

Input/Data:

13/07/2021, 9:52 pm - 0124873: Lorem
13/07/2021, 9:52 pm - 1894738: Ipsum
14/07/2021, 9:20 pm - Ahadb: Multiline!

Lorem!
Ipsum!

Dolor!

How I want this data:
['13/07/2021, 9:52 pm - 0124873: Lorem', '13/07/2021, 9:52 pm - 1894738: Ipsum', '14/07/2021, 9:20 pm - Ahadb: Multiline!\n\nLorem!\nIpsum!\n\nDolor!']

Could anyone point me in the direction of any regex specific tokens that might help me do this?

last mantle
harsh tundra
thin swallow
harsh tundra
# thin swallow any clue how i would do that? Can't find any tokens to help me

positive lookahead works for "look for next date" but doesn't work on last entry because it doesn't have a next date...
https://regex101.com/r/9H51TW/1 this is what works for anything (including multiline) but the last one

regex101

Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java. Features a regex quiz & library.

thin swallow
#

hmm thanks! ill try and see if i can modify something in order to make it work!

latent scaffold
dire siren
#

wait does 0% exists

#

i think itll cause zero division error

#

because % is equal to divided by 100 am i correct?

rough sapphire
#

jesus christ no

#

x% of y = y*x/100

#

so if x=0
0% of y = y*0/100 = 0

dire siren
#

but what if its y*(0/100)

rough sapphire
#

so how is 0 in the bottom?

edgy crest
#

ye

junior basin
dire siren
#

oops i made an oopsie

solemn leaf
#

guy wanted to reach infinity

inland wolf
#

landed at 0

odd sluice
#

why do i find it funny that microsoft community has less members than r/apple discord

spare lance
#

surprisingly lot of mods are offline atm.. sunday = rest :yes:

odd sluice
#

tru

#

or they're sleeping

spare lance
#

sleeping = rest too

#

sleeping is fun

acoustic moss
#

unbased scoping in python

In [1]: x = []; i = 0

In [2]: while i <= 2:
   ...:     x.append(lambda: i)
   ...:     i += 1
   ...:

In [3]: x[0](), x[1](), x[2]()
Out[3]: (3, 3, 3)

based scoping in julia

julia> x = Vector{Any}(undef, 3); i = 1;

julia> while i <= 3
           let i = i
               x[i] = () -> i
           end
           i += 1
       end

julia> (x[1](), x[2](), x[3]())
(1, 2, 3)
#
In [4]: x = []; i = 0

In [5]: while i <= 2:
   ...:     x.append(lambda i=i: i)
   ...:     i += 1
   ...:

In [6]: x[0](), x[1](), x[2]()
Out[6]: (0, 1, 2)

wack

quick ledge
#

we are in shadows

#

watching ๐Ÿ‘๏ธ

acoustic moss
#

you are resting in the shadows

quick ledge
#

๐Ÿ˜ 

rough sapphire
quick ledge
#

๐Ÿ˜ 

floral apex
solemn leaf
royal lakeBOT
#

@solemn leaf :white_check_mark: Your eval job has completed with return code 0.

001 | 0
002 | 1
003 | 2
004 | 2
005 | 2
006 | 2
solemn leaf
#

bypass late binding ๐Ÿ˜Ž with i=i

solemn leaf
acoustic moss
#

sends julia too

solemn leaf
#

ok

opal atlas
#

I love this community

tranquil orchid
#

@tacit shore Well JS and Python more or less cover all of those, except for mobile app development

#

Which you'd probably want kotlin or java for on android, and swift or objective-c on ios

tacit shore
#

hmm

#

is swift only for

#

IOS

#

apps

tranquil orchid
#

I think it's only for IOS, or at least was built for that

tacit shore
#

hmm

#

ok

#

i know some of react js

floral apex
#

I guess it's just much more ideal on Apple's platform though

austere forum
#

@topaz aurorawait, weren't you a mod before? ping me when replying

austere forum
#

i was surprised lol

#

alr

remote citrus
#

Happens with nearly everybody ig

tranquil orchid
#

If you study well you can just have a lower flat line

#

Instead of dying come exam time

remote citrus
#

I use pomodoro technique

harsh tundra
#

I hate coffee but this is the best coffee

spare lance
remote citrus
#

๐Ÿ‘€

spare lance
harsh tundra
spare lance
harsh tundra
spare lance
harsh tundra
#

Soft whipped == whipped so it's light but still liquidy

harsh tundra
harsh tundra
spare lance
#

Might have to skip the whiskey part till 18 tho ๐Ÿ‘€

#

Uh no wait it was 21