#ot1-perplexing-regexing

1 messages · Page 30 of 1

carmine apex
#

@foggy jungle since yer the de facto pydis malware researcher - what's your tool of choice when trying to identify a suspicious url, especially one that's been shortened?

coral void
#

wheregoes is pretty good

carmine apex
#

and what about when the url is found? is there some online VM kinda thing?

foggy jungle
carmine apex
#

figured that. don't have a vpn myself, so no-contact methods for me only. no google results was sus enough for the proper url, and whois (forgot about that) says it was registered today

foggy jungle
#

Yeah generally any time someone links something I don’t recognize I bump a whois out and just pop it open in a VM to see what it’s all about. Feel free to poke, if I’m around I don’t mind chasing it down quick. Caught me at a bad time cause I’m in a work meeting lol

carmine apex
#

your timing is ok - bast nuked the message and poster anyways, so the threat should be gone (from here at least)

foggy jungle
#

Someone on our team has a neat toolkit for no-contact analysis of websites I think. Lemme poke him.

foggy jungle
#

browserling is also no-contact, it's like a little few minute VM you get to browse the URL

little wasp
#

GitHub is a database

spare oriole
rough sapphire
#

this is the best code quality

foggy jungle
spare oriole
uneven ingot
#

hi guys

#

my name is itsme and im a little bit struggled with mathematics

#

i got this problem and i would like if someone can help me to solve it

#

i already make another one

#

but im struggled with this one

grave cove
#

Or to prove those are equivalent?

uneven ingot
#

because the last that i did was

uneven ingot
grave cove
#

what

uneven ingot
grave cove
#

yeah the other one looks weird

uneven ingot
#

dont say that please

#

hahaha

#

weird why

grave cove
#

what is sen and why is there one without an argument

#

also what does a dot mean in this context

uneven ingot
#

ahh yeah

#

i forgot to put the argument in the 2senx

#

i made that with mathtype in google docs excuse moi

grave cove
#

@uneven ingot let me write something out for you and i'll show you

uneven ingot
#

ohh yeah anything helps me
thanks robin for being with me like that

grave cove
#

@uneven ingot

#

lmk if you don't understand something

#

also sorry for bad handwriting lol

uneven ingot
#

your handwriting is pretty nice, im juts a little bit lost

ohh okay you first solve the (1+coscA)/cotA and then you solve the cotA/cscA

#

ohhh okay

#

you solve it both of them

#

the right part and the left part

#

uff that's was a large problem thanks!!!

#

any tip or something that you can give me ?

uneven ingot
#

for everything for start i guess

#

haha

grave cove
#

the image i sent you is just the cleaned up version

grave cove
uneven ingot
#

makes a lot of sense thanks a lot robin you are a lifesaver

#

ill study that problem you sent

grave cove
#

good luck with your studies

#

and feel free to ask for math help whenever you need

rough sapphire
#

Hi @grave cove

vale raven
#

Don’t do the code

#

Do the math with letters

grave cove
#

my math knowledge extends only to calculus

#

though the engineering program at uni makes us do linear algebra and stuffs

vale raven
#

Unlike your code that I am fixing

grave cove
#

it be that way

vale raven
#

Do what you’re good at

grave cove
#

i can make a pretty good discord bot but that's about it

vale raven
grave cove
#

doge

vale raven
#

I started talking in pygen

#

Someone is very upset

robust zephyr
#

that's a nice lookin dog

grave cove
#

its a selfie

grave cove
#

What can I do for you?

rough sapphire
#

I want to learn python along with AI

#

Is it link between python and AI

#

@grave cove

grave cove
#

Python is often the language of choice for AI/ML researchers, yes

rough sapphire
#

For that we need separate software for both or in one we can run

#

@grave cove in PhD we can take specialization of AI

crystal spruce
#

it's like 2 lines

grave cove
#

Am not good at math

#

No buli

grave cove
crystal spruce
#

since 1 + cot^2 = csc^2

#

which you get just from dividing the pythag identity by sin^2

hexed sierra
#

👀

hexed sierra
#

the good thing is that you can usually do these in several ways. some will come to you more naturally than others

#

this is the type of problem where seeing how others solve it helps a lot

grave cove
#

stickies method is probably better

crystal spruce
#

best method is clearly to differentiate and then prove equality

#

and then show equality for some A

grave cove
#

ain't no way I'm differentiating that

crystal spruce
#

it's not too bad

#

you could make it slightly easier by converting to 1+sin /cos ig

#

oh huh

#

it's 1 + sin / cos^2

#

neat

#

i guess that does follow from it being 1+t/1-t

foggy jungle
grave cove
#

get integrated nerd

tranquil orchid
#

Finally, these things are done 👀

#

I think their factories had a break for a few days recently or something so it took a lot longer than usual

foggy jungle
#

pee cee bees

tranquil orchid
#

my favourite type of bee

jaunty wraith
crystal spruce
#

damn moyen is orange now

tardy rain
#

Aboo too

#

Or was he always orang

tidal light
#

Twitter is better on the app guys.

foggy jungle
#

Proud of the homies.

tardy rain
#

We got that mod connection now

#

Aboo im putting you down as a reference

high haven
#

with interest

stark prawn
#

Mod aboose opportunity

high haven
#

he was supposed to pay up may 1st

#

but missed his payment

#

so now he owes me interest next month

low chasm
#

woah woah, I never agreed to the interest

low chasm
tranquil iron
#

I like how everyone is helping everyone else here

young shoal
low chasm
#

I've got my CSA exam in a few minutes 😩

young shoal
#

🥴

#

you can do it 🥺

tardy rain
young shoal
#

my company

#

and technically, my school, lol

low chasm
young shoal
#

remember, if you get less than a 5, you need to pick a different major than CS

low chasm
#

some dude wanted to get food so it's been delayed by a couple minutes

tranquil iron
#

is delay bad?

#

interesting

young shoal
#

sometimes

violet mural
#

modern days in office like life is out there

#

too afraid to out there so

tardy rain
#

🤔

jaunty wraith
#

wat

violet mural
#

perfection ethics work slash

low chasm
#

fuck yeah

#

AP exam over

low chasm
#

the longer it takes, the later I get to go back to actual class

violet mural
#

delay in what context

low chasm
#

delay in getting started

violet mural
#

the technology is so advanced and I can solve a simple problem of delay

#

that isn't great?

#

a stop sign

#

AT 30 YEARS OLD

#

the last to know

foggy jungle
#

Local Snekbox 😄

vale raven
#

(UNREGISTERED)

foggy jungle
#

I'm not paying for Sublime Text

carmine apex
#

i think the only ones who do are the cia

violet mural
#

and me that thought that me are from there

#

😆

young shoal
foggy jungle
#

lavish maba--

foggy jungle
#

There's a better one.

elfin terrace
#

LOL

#

that is uhhh a lot of numbers

foggy jungle
#

Kinda' cool that you can see it lock in certain numbers.

elfin terrace
#

yess thats what i love about crypto challenges

#

so satisfying - it's like seeing the insides of the lock click when picking locks, but like in crypto

foggy jungle
#

You'll notice the message at the bottom tells me to do it in hex.

#

Because... you know.

#

That's cool.

#

Took me forever and I think I got distracted with something else and gave up.

#
while True:
    QUERYVAL = (UPPER+LOWER)//2
    print(f'TRY: 0x{BASE}.{QUERYVAL}')
    httpr = requests.get(f'{HOST}0x{BASE}.{QUERYVAL}')
    textresponse = httpr.text
    if 'greater' in textresponse:
        UPPER = QUERYVAL
    elif 'smaller' in textresponse:
        LOWER = QUERYVAL
    else:
        print(textresponse)
        break```
round rampart
foggy jungle
#

Made? No. Broken? Many.

#

I'm a programmer in potentially the loosest sense of the word. I can put a coherent program together, but it won't win any awards and 'working' is a fragile concept.

round rampart
#

lol

grave cove
#

welcome to the club

frozen crane
#

@frozen coral you can't make me Ansible

#

No one can

#

Not even you, @grave cove

jaunty wraith
#

Ansible good, become Ansibling

grave cove
#

the anstelble

crystal spruce
#

i suppose just taking terms of a normal real sequence also works

eternal depot
signal scroll
royal lakeBOT
#

str.replace(old, new[, count])```
Return a copy of the string with all occurrences of substring *old* replaced by *new*. If the optional argument *count* is given, only the first *count* occurrences are replaced.
small coral
#

why is it that when i do changes to code in my projects it's always about 100 lines of changes

#

i don't even think it's that much

young shoal
#

it's easy to get carried away i think

acoustic moss
#

molecular commits

violet mural
#

Grades molecular average

frozen coral
#

you're just perpetuating fake news Steler

tranquil iron
#

what fake news are we pushing this week?

high haven
short badger
#

I made a ray caster in scratch

#

It took me a few hours

#

Would like to share

frozen crane
royal lakeBOT
#

:x: The channel name chris-is-fake-news is too similar to pydis-is-fake-news, and thus was not added. Use !otn forceadd to override this check.

frozen crane
#

!otn forceadd chris is fake news

royal lakeBOT
#

:ok_hand: Added chris-is-fake-news to the names list.

low chasm
#

Chris is pydis??

frozen crane
#

no.

acoustic moss
#

maybe

frozen crane
#

your face is pydis.

jaunty wraith
#

pydis nuts

low chasm
#

you didn't have to do me like that 😔

frozen crane
#

when I worked at starbucks in like 2017, a customer called and cancelled their mobile order, and my coworker who received the call just said "[customer name] is fake news"

#

and no one was sure what they meant, so people made the order anyway.

low chasm
#

lmfao

jaunty wraith
#

@vale raven

vale raven
#

@grave cove get ur ahh in here

grave cove
#

what

vale raven
#

IDK

grave cove
#

may i be of assistance

vale raven
#

No

robust zephyr
lament cairn
#

🐾

unreal flax
#

well.

crystal spruce
tardy rain
#

One of the servers im in shows me this
Does this mean it got blasted?

#

Wouldnt discord outage have some sort of icon change or something

jaunty wraith
#

Discord mobile client gets borked often

#

clear caches and restart

thick ore
#

This OT name is lying

tardy rain
rapid thunder
tardy rain
#

var bad, use let/const

#

Consider adding strings to an array and joining them instead of += but since those operations dont change with input its fine i guess

#

Also consider template literals for multiline strings

tardy rain
#

Cant use arrow functions for everything tho

worldly ice
#

arrow functions funky stuff with this

high haven
robust zephyr
#

desktop discord crashes at least once a day for me

foggy jungle
#

things are going well for us.

young shoal
#

daily at this point

robust zephyr
#

what did you break now?

foggy jungle
foggy jungle
#

err api

#

(Malware authors reading this, our api is flawless and has no such conditions.)

grave cove
#

i dont do the command parsing

vale raven
thick ore
#

pWTF IS THIS

#

HOLY SHIT

#

THIS IS MY SLEEP PARALYSIS DEMON

spare oriole
thick ore
#

NO ITS NOT

#

ITS A MONSTER

#

A DEMON

#

AND I DONT LIKE HOW IT STARES INTO MY SOUL 😭

thick ore
#

I'm not sleeping tonight, I guess ☹️

thick osprey
foggy jungle
grave cove
foggy jungle
grave cove
#

fonts look a bit goofy on my terminal

#

gotta fix that

spare oriole
#

F

grave cove
#

skill issue

clear acorn
high haven
#

el oh el

solemn tulip
# grave cove

I imagine trying to import as module would go less well

rough sapphire
rough sapphire
#

Robin uses Arch BTW?

#

cool

#
jesus@heaven:/tmp$ python3 main.:snake:
Hello

works for me too

grave cove
rough sapphire
#

not real

tranquil iron
#

what's wrong with json for config files?

gritty zinc
#

json is IMO somewhat less human-editable than toml, and less readable

tranquil iron
#

for a language designed for configuration, it surely sucks at it

wraith hound
#

exhibit a:

#

those are shit reasons to have two comment types

#

it also just has a lot of exceptions

#

have entirely opposite rules

tranquil iron
#

your hate is irrelevant

wraith hound
#

fair

terse heron
#

@grave cove re #community-meta message

Yeah, I saw someone else using it here a while ago. It allows you to search public github repos (including via regex etc.). Super nice. GitHub are working on a native system for it, but it was like, a year ago now that they announced that. Shrug

#

Been using it for a long time; definitely recommend

#

And it's got a button on the top right to open the file/line in github too, so you can search and then go straight to the file on github (or even the same site if you don't care about going to the github page)

grave cove
terse heron
#

That's when they opened the beta it seems, but it's still not completely released yet

terse heron
#

And that's the beta announcement, I feel like there was another before that

vale raven
#

They really didn’t do themselves any favors there

#

But the new new code search is in open beta

terse heron
#

Nice lmao

vale raven
#

Is great

terse heron
#

Yeah, I imagine so

vale raven
#

Do you two actually not have it?

terse heron
#

Wonder if it works with your own private repos 🤔

vale raven
#

It does

terse heron
#

Nice :)

terse heron
vale raven
#

Maybe

terse heron
#

I think I just missed the beta announcement somehow

#

!remind 10M ^

royal lakeBOT
#
Sure thing!

Your reminder will arrive on <t:1683394801:F>!

vale raven
#

@carmine apex

#

Give it a shot

#

Sourcegraph was always buggy for me

#

GHCS is great

royal lakeBOT
terse heron
vale raven
terse heron
#

Just ignore the redundant f-string there, I wrote that a long time ago

#

I wonder if there's a way to easily see all the code I contributed to a repo? 🤔

#

Doesn't look like it lemon_pensive

gritty zinc
#

Floating point moment

tropic lichen
#

graph goes hard as album art

young shoal
gritty zinc
young shoal
#

ah

gritty zinc
#

it ends up calculating stuff like Sqrt[Cosh[20]^2 - (19 Sinh[20]^2)/100] which has catastrophic cancellation

#

but at least I got a fun result: if two ships start from the same point with accelerations a₁ and a₁+Δa, their distance as measured by a light distance finder changes, with the first ship's proper time, as

#

where I'm missing factors of c because c, of course, is 1

jovial oriole
#

Hello lizard peoples, I wanted to simulate gravity between bodies for fun, but i found that any more than 150 particles begins to lag immensely (the video attached is ~80 particles). everything seems dandy until up to there, I moved all the math functions like abs, sin, atan2 to numpy, optimized it and used Cython, but the very best (while running slower still) was ~250 particles. Is there anyway that I can go past this (to a few thousands, maybe even tens of thousands). BTW, the code for determining the velocity of all the particles to the rest, is O(n^2) because each particle has to be compared to the rest, is there someway that i can reduce that? (maybe through grouping very close particles as one particle or somehow)

#

and this was done with pygame, if the issues is the library, is there any other faster library i can use?

gritty zinc
#

but there's tons of complexity under the hood

#

e.g. the fact that you'll get more accuracy if you don't just assume the points in a box are a point mass, but use a multipole decomposition. so there's some mass in the center, and also some, uhh, dipole gravitic moment, and so on

EDIT: after some thinking realised that with regards to a system of particles's center of mass, the dipole moment is zero. so the lowest one after the sum of masses is the quadrupole

#

The Barnes–Hut simulation (named after Josh Barnes and Piet Hut) is an approximation algorithm for performing an n-body simulation. It is notable for having order O(n log n) compared to a direct-sum algorithm which would be O(n2).The simulation volume is usually divided up into cubic cells via an octree (in a three-dimensional space), so that on...

edgy crest
rough sapphire
#

opengl?

thick ore
wraith hound
# thick ore https://www.youtube.com/watch?v=4pOd7Fk84VA

if you like that, you'll love this https://www.youtube.com/watch?v=ul9vyWuT8SU

Follow me on Mastodon: https://hachyderm.io/@fasterthanlime
Support my work: https://fasterthanli.me/donate

00:00 Intro
00:13 What's Rust?
00:49 Number 1
01:10 Number 2
01:35 Number 3
02:01 Number 4
02:27 Number 5
02:47 Number 6
03:10 Number 7
03:30 Number 8
03:50 Number 9
04:09 Number 10
04:34 Outro

▶ Play video
#

it's absolute comedy

foggy jungle
brazen ingot
#

hes so much hilarious.

grave cove
foggy jungle
vestal basin
round rampart
vestal basin
#

lmao why

round rampart
vestal basin
#

based

stark prawn
young shoal
stark prawn
#

It would be both

young shoal
#

using nothing would be better

round rampart
#

But also the worst.

#

Cause it is... the worst.

limber mantle
proper nova
#

Hedwig bulking fr

marsh echo
#

harry potter and the swoll-cerer's stone

stray smelt
#

Hi i wanna ask,so i just finished a HTML tutorial should learn deep further about HTML or instead learn about CSS or JavaScript
The tutorial includes about
Img
Video
List
Form
Audio
Color text
Basic text
Etc

jaunty wraith
#

wdym color text

vale hull
heady lion
#

that's if lemongrab got a FAANG job and depression lol

reef goblet
warped sentinel
jaunty wraith
#

omelette au fromage

#

smh

spare oriole
#

that was a challenge from my speech teacher, bitter woman.

spare oriole
#

which one of those is the rickroll

warped sentinel
#

surprisingly, neither

jaunty wraith
#

or both

warped sentinel
#

omelette DU fromage is serious business

carmine apex
#

i must say, @warped sentinel - i've not heard of la cite de la peur before, but the scene with the manual sfx, especially the cat, is hilarious

warped sentinel
tardy rain
#

How do we feel about VScode's new dark mode

#

I need community opinion because i have none of my own

stark prawn
#

I've been using it for a while now

unborn gulch
#

Hayo, I want to make new friends

thick ore
tranquil iron
#

don't fear the dark

#

embrace the light

spare oriole
tranquil iron
#

what new UI?

terse heron
tranquil iron
#

why would anyone use VScode on mobile?

#

this new world mystifies me at times

tardy rain
#

Zoomers develop on the go

#

No time to stand still and watch the world go by

jaunty wraith
#

coding on a soft keyboard is painful

honest star
#

Once again, I am forever thankful at panera's free wifi at all locations. I get to kickstart a model to run on an hpc at some very random location in the New England area on my drive home

young shoal
#

new england? 👀

peak prairie
vale hull
#

OpenVPN on your own hardware is great for on the go

clear acorn
thick ore
#

perhaps skynse would like this

#

idk who was that flutter guy

mystic drift
#

I like pitch black IDEs

#

Softer on my eyes

stable fulcrum
#

I use noctis obscuro

stable fulcrum
jaunty wraith
rough sapphire
#

ngl i am a big idiot fr

heavy pawn
#

This is from 2022 so before the generative AI frenzy this year

thick osprey
mystic drift
#

It's fine

#

Honestly, this just might be the push I needed for me to actually go full Linux for development

thick osprey
#

you do you boo.

mystic drift
mystic drift
#

Aaand done

#

Now I'm an Arch believer once more

#

Gotta rice the shit out of it though

thick ore
#

when will dolby audio drivers ever get good on Linux

thick osprey
#

When you write a decent non-proprietary driver solution that sounds good.

thick ore
#

just gonna sneak in to Dolby's HQ, stealing Windows driver source and porting to Linux

#

sounds easy

tardy rain
#

Imagine waking up at 4:20 in the morning with low blood sugar, sweaty and disoriented and devouring every snackie within reach to stay alive and conscious

#

Haha

#

Couldnt be me haha

robust zephyr
tardy rain
#

Turns out i didnt have any snackies

#

Had to eat chipotle mayo on bread

robust zephyr
#

eh i've had worse snacks

tardy rain
#

Like what

#

I usually keep a jar of nutella around for things like this

#

The woman ate it all and didnt replace it, smh

robust zephyr
#

one time i ate almost an entire piece of naan before realizing it was moldy on the side i didn't see

tardy rain
#

Oh yuck

#

I think im pretty good at spotting mold

#

Or maybe im too cautious

robust zephyr
#

i certainly became a lot more cautious after that

tardy rain
#

Last time i had something bad it was milk

#

It was day old, for some reason it maybe my coffee chunky

#

It turned to yogurt overnight 💀

robust zephyr
#

ew!

tardy rain
#

It didnt even taste bad

#

It was probably not in fact, day old

grave cove
tardy rain
#

Glass and all

grave cove
#

what a beast

#

no more nutella bread for you tho

foggy jungle
tardy rain
#

Guess I'll perish 🤷

grave cove
foggy jungle
#

Woke up.
ZaoBlobDrool Snaaaak.
Ate half a loaf of moldy cinnamon bread.
Looked at it the next day and it was… not ideal.

grave cove
#

did you get sick from it

foggy jungle
#

No.

#

It’s healthy.

#

Penicillin smileW

grave cove
#

omw to eat all the mold I can

bright kernel
#

im allergic to penicillin :/

grave cove
#

speaking of

#

I'm probably going to have a so-called "headache" tomorrow

foggy jungle
grave cove
#

because school is too boring

#

i will supposedly have a headache

bright kernel
#

gn

foggy jungle
#

Oh many years ago I suffered the same fate.

#

I quit going my senior year.

grave cove
#

motivation is at rock bottom

#

🗿

foggy jungle
#

Graduated in December of my senior year YuBlobDab

grave cove
#

how

foggy jungle
#

As my father describes me regularly: “You are the smartest dumbass I know.”

grave cove
#

based father

foggy jungle
#

Would probably drown in a light drizzle by looking up at the sky with my mouth open, but I retain knowledge pretty well.

#

So I took a shit ton of advanced and AP classes

spare oriole
#

@low chasm good luck with your world exam tomorrow, have you been studying at all?

low chasm
#

I've tried ;-;

#

my teacher is doing a breakfast/cram session at 6 before the exam, so I'll go to that too

grave cove
#

very classy class

signal scroll
#

Do console.log(correct+1) in the Line before the Last line

stable fulcrum
tardy rain
#

I've used it some more by now, it feels nice

stable fulcrum
#

it looks better than the old one

#

but I am still gonna use noctis obscure

tardy rain
#

You know, some things you dont have to show people

jaunty wraith
#

that is beautiful

#

the code, I mean, not the theme

stable fulcrum
stable fulcrum
crystal spruce
#

I've seen worse

stable fulcrum
short skiff
foggy jungle
short skiff
#
from functools import reduce as red; from math import \
(factorial as fact, comb);import sys;from decimal import \
      (getcontext as c,Decimal as dc);(a:=range,
       b:=int(sys.                 argv[1]));\
       c( ).prec=b                 ;ber=lambda\
       e,f=[dc(1)]                 :[f.append(\
       1-sum(comb(                 h,g)*f[g]/(h\
       -g + 1) for                 g in a(h)))for
       h in a(1, e                 + 1)] and abs( \
      f[-1]);print                 ((2 * fact(b) / \
      (ber(b)* 2**                  b * red(dc.__mul__
      , [1 - (1/dc                   (i) ** b) for i in
      [2, 3, 5, 7]                     ]))) **1/dc(b)))

can someone deobf this

foggy jungle
#

!e

from functools import reduce as red; from math import \
(factorial as fact, comb);import sys;from decimal import \
      (getcontext as c,Decimal as dc);(a:=range,
       b:=int(sys.                 argv[1]));\
       c( ).prec=b                 ;ber=lambda\
       e,f=[dc(1)]                 :[f.append(\
       1-sum(comb(                 h,g)*f[g]/(h\
       -g + 1) for                 g in a(h)))for
       h in a(1, e                 + 1)] and abs( \
      f[-1]);print                 ((2 * fact(b) / \
      (ber(b)* 2**                  b * red(dc.__mul__
      , [1 - (1/dc                   (i) ** b) for i in
      [2, 3, 5, 7]                     ]))) **1/dc(b)))```
royal lakeBOT
#

@foggy jungle :x: Your 3.11 eval job has completed with return code 1.

001 |   File "/home/main.py", line 13
002 |     [2, 3, 5, 7]                     ]))) **1/dc(b)))
003 |                                                     ^
004 | SyntaxError: unmatched ')'
foggy jungle
#

No.

young shoal
#

lul

short skiff
#

dammit

#

i thought it ran

short skiff
#

oh this is the wrong version sorry

foggy jungle
#

I wanna' finish that builtins dict fuckery that I was doing.

short skiff
#

ok I got it working:

#

!e

from functools import reduce as red; from math import \
(factorial as fact, comb);import sys;from decimal import \
      (getcontext as c,Decimal as dc);(a:=range,
       b:=100);c                   ().prec=b;\
       ber=lambda                  e,f=[dc(1)]:\
       [f.append(                  1-sum(comb(h
       ,g)*f[g]/(h                 - g + 1) for
       g in a(h)))                 for h in a(1,
      e+1)]and abs                 (f[-1]);print\
      ((2 * fact(b)                 /(ber(b)* 2**
      b * red( dc .                  __mul__, [1 -
      (1/dc(i) ** b)                 for i in[2, 3,
       5, 7]]))) **                      (1 / dc(b)))
royal lakeBOT
#

@short skiff :white_check_mark: Your 3.11 eval job has completed with return code 0.

3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117064
foggy jungle
#

cute

carmine apex
#

good, now do tau, the superior constant

short skiff
#

ok that's actually a good idea

#

also it uses the gauss-legendre algorithm which converges super fast

#

you can do like 1m digits of pi easily

small coral
# short skiff !e ``` from functools import reduce as red; from math import \ (factorial as fa...
from functools import reduce as red
from math import factorial as fact, comb
import sys
from decimal import getcontext as c, Decimal as dc
((a := range), (b := 100))
c().prec = b
ber = lambda e, f=[dc(1)]: [f.append(1 - sum((comb(h, g) * f[g] / (h - g + 1) for g in a(h)))) for h in a(1, e + 1)] and abs(f[-1])
print((2 * fact(b) / (ber(b) * 2 ** b * red(dc.__mul__, [1 - 1 / dc(i) ** b for i in [2, 3, 5, 7]]))) ** (1 / dc(b)))
``` base
short skiff
#

oh no wait this one doesn't use gauss legendre

#

it uses the bernoulli number derivation published in Plouffe (2022)

#

ok wait this is my best one see if u can deobfusc this: ```python
n=256;q, t, m, e, p, c, f=(range(n),16,lambda x
,y, r=0:m((h:=x <<1,h^283)[
h&n!= 0],y>> 1,(r,r ^x)
[y&1])if y else r,lambda
a,w= 1,p=n -2:e(m(a, a),(w,m
(w,a))[p&1] ,p>> 1)if p
else w, lambda b: list(
map (print,["%.2x "*t%(*b[r:r+t],)for
r in [*q][::t]])),lambda a,i: (a<<i|a>>8-i)&255
,lambda a: (a^c(a,1)^c(a,2)^c(a,3)^c(a,4))^99);
p(s:=[f(e(i)) for i in q]);p([*map(s.index,q)])

small coral
# small coral ```py from functools import reduce as red from math import factorial as fact, co...

full ```py
from math import factorial as fact, comb
import sys
from decimal import getcontext, Decimal
getcontext().prec = 100
def ber(e, f=[Decimal(1)]):
for h in range(1, e + 1):
sumvar = 0
for g in range(h):
sumvar += comb(h, g) * f[g] / (h - g + 1)
f.append(sumvar)
return abs(f[-1])

print((2 * fact(100) / (ber(100)
* 2 ** 100
* (1 - Decimal(2) ** -100)
* (1 - Decimal(3) ** -100)
* (1 - Decimal(5) ** -100)
* (1 - Decimal(7) ** -100))) ** (Decimal(1) / 100))

short skiff
#

Though the final algorithm is a bit off, I don't think you need all those -100 exponents

small coral
short skiff
#

@small coral I'm pretty sure you can just simplify it to one division, and then the bernoulli number multiplied by those constants based on n

#

oh no wait you need two

#

also one of the other main issues with this approach is that the only algorithms that have decent complexity for calculating bernoulli numbers leverage a high precision value of pi

#

so i had to use the factorial type approach

small coral
short skiff
#

the hex values are very specific

#

She Rjindael on my S-box till I encrypt

small coral
# short skiff ok wait this is my best one see if u can deobfusc this: ```python n=256;q, t, m,...
def m(x, y, r=0):
    if y:
        h = x * 2
        if h & 256:
            h ^= 283
        if y & 1:
            r ^= x
        return m(h, y >> 1, r)
    return r

def e(a, w=1, p=254):
    if p:
        if p & 1:
            w = m(w, a)
        return e(m(a, a), w, p >> 1)
    return w

def print_lines(bytes_string):
    for r in range(0, 256, 16):
        print(' '.join(f"{x:.2x}" for x in bytes_string[r:r + 16]))

def leftrot_8(x, shift):
    return ((x << shift) | (x >> 8-shift)) & 255

def init_sbox_num(a):
    return (a ^ leftrot_8(a, 1) ^ leftrot_8(a, 2)
           ^ leftrot_8(a, 3) ^ leftrot_8(a, 4) ^ 99)

sbox = []
for i in range(256):
    sbox.append(init_sbox_num(e(i)))

print_lines(sbox)
print_lines([*map(s.index, range(256))])
``` idk
short skiff
small coral
#

this helps a lot ```py
from ast import parse, unparse
print(unparse(parse(r"""...""")))

short skiff
#

but yeah basically it uses binary finite field arithmetic to calculate a specific S-box. the e function I believe calculates the multiplicative inverse, and m calculates multiplication. the function you called leftrot_8 is basically just confining the coefficients of the polynomials to be in the right number space.

#

because you're calculating most things by shifting integers, which inevitably will result in numbers that overflow. in python you can't overflow integers, but you need to make sure that your version does have overflow so you can simulate the finite field actually being finite

short skiff
crystal spruce
low chasm
#

@mild sierra Hi, about the help thread that you opened earlier - you didn't break any rules, getting data from NewYorkTimes via their API is perfectly fine - you're good to get help with it.

mild sierra
#

@low chasm ok thx!

thick ore
#

I guess I have been developing... a lot?

grave cove
#

thats one way to put it

jaunty wraith
#

I'm gonna guess there are node_modules in there

#

or target/

thick ore
#

I use pnpm 😩

#

Idk if target is that big (assuming you're talking about Rust)

jaunty wraith
#

it can get big

thick ore
#

Easily?

jaunty wraith
#

deps

thick ore
#

ah yeah

stable fulcrum
#

It generates strings from globals

short skiff
heavy pawn
thick ore
clear acorn
rough sapphire
#

how is this as a youtube thumbnail?

tranquil iron
#

it seems racist to me

#

sexist too

young shoal
#

i don't really get how tarzan is related

#

kinda weird

foggy jungle
#

Pretty sure it's supposed to represent Neanderthals or early humans. pithink

young shoal
#

is tarzan the name of an early AI or something

tardy rain
#

Tarzan is a savage feral child

lament cairn
#

tarzan progeamming

hard niche
#

I have a python adjacent question and my Google-fu is not up to snuff today.

Is it possible to have a set of actions happen anytime I open a terminal window? I know there is a bash/ps1/etc profile that gets looked at to load certain items in a terminal. Does it have enough functionality for me to code in a process where everytime I open a terminal, it alters a specific file?

young shoal
#

yes, it's basically a bash script (or pwsh, or whatever you're using)

hard niche
#

I guess it's time to dive in powershell documentation!

low chasm
#

@terse sluice play with me? 🥺

honest star
low chasm
#

pft

young shoal
unborn gulch
#

Hayo, anybody online?

unborn gulch
#

I passed 10th so for now i can waste my time

tranquil iron
#

maybe

grave cove
young shoal
#

he's an admin here

open fern
#

when fixing a missing import fixes 3/4 of your failing tests lemon_hyperpleased

#

fixing another one got me down to a single failing test

tranquil iron
#

that's nice

stark oasis
#

You know whats a nice thought. One day we will be dead

tranquil iron
#

such is life

foggy jungle
thick ore
old briar
#

how large is your python folder?

short skiff
old briar
#

it's been 3 years

#

since mine is created

short skiff
#

Ok I selected all the folders that I'm sure are python projects

old briar
# old briar

most of the files and folders, are just venv's and meta deta

short skiff
#

I have all my venvs in a separate folder in my root directory

#

or rather ~/

#

but yeah most of the other stuff is definitely metadata

old briar
# short skiff

ooh, almost same number of items, but yours is 6.3G and mine 1G

short skiff
#

oh yeah you have 6k more files

thick ore
tulip falcon
#

“You Never Give Me Your Money / The End” - a tribute to The Beatles - is out on all digital platforms. Crush the link below to buy the vinyl and support Doctors Without Borders!

Music Video by Taylor Stephens

Buy the 7" vinyl!
https://www.tenaciousd.com/

Listen to the single on Spotify!
http://open.spotify.com/album/3To8nPz6KqbKRZtYJauPZ1
...

▶ Play video
violet mural
#

Anyone has seen the movie silver linings

outer pebble
#

Happy birthday discord

#

No

signal scroll
crystal spruce
signal scroll
crystal spruce
signal scroll
#

@vale raven

vale raven
vale raven
crystal spruce
#

ur server

signal scroll
# foggy jungle

Could you Send the Link to the Server, please? I want to join

#

If i'm allowed to

vale raven
signal scroll
#

Thanks

vale raven
crystal spruce
#

oh I just wasn't bothered to go get the link

#

so I made you do it

grave cove
vale raven
#

70 results

grave cove
#

heck u man

violet mural
#

why github it's difficulty

tranquil iron
#

?

signal scroll
signal scroll
tranquil iron
#

too late

low chasm
#

banned for advertisement lemon_angrysad

tardy rain
#

Eurovision winner bets?

#

My theoretical money is on ukraine again

tranquil iron
#

I predict that satellite song will win again

foggy jungle
#

https://www.youtube.com/watch?v=g8FmgUtUxvE
I don't think this is the song you mean but it's still a banger.

My love is like foot steps in the snow, baby,
I follow you everywhere you go, baby.
The pain as light has come to wake you
But you will never realize
That I inspire the dreams that guide you baby.

I follow the winds that bring the cold, baby,
I light a fire in your soul, baby.
The lightest touch of feathers falling
My love might be invisible
Bu...

▶ Play video
tranquil iron
tardy rain
#

But what social commentary does it bring to the table

tranquil iron
#

that most people don't care about it?

tardy rain
#

Wdym, thats exactly how people vote

#

How do you think ukraine won last year

jaunty wraith
#

substantially

tranquil iron
#

I don't vote for eurovision

tardy rain
#

Do you think its because the music is good?

wheat lynx
tardy rain
#

Impossible, there arent any good songs in Eurovision

tulip falcon
#

Is it contrarian?

#

Those damn Europeans

tardy rain
#

What about that time israel won with a chicken song 🐔💀

tulip falcon
#

Lowest hanging fruit

tardy rain
#

That song wasn't just low hanging

#

It was straight up resting on the ground

#

Like a wriggling worm ready to be pecked at by chickens

#

Ah, now I get it

tulip falcon
#

Chickens are dinosaurs and dinosaurs are badass

thick ore
glacial timber
#

Think

#

I contacted adhd

primal radish
#

what did he say

glacial timber
#

He was switching apps

rough sapphire
#

SyntaxError: not a chance

heady hamlet
muted shell
#

@rotund cipher what i mean is that people are good not because of ethics or morals or whatnot, its because bad people died out

#

just like cynical ppl

rotund cipher
#

this is just genetic morals

#

semantics

#

but semantics ARE crucial for any discussion

#

so dont take this wrong as me dismissive at all

#

i know in many places morals/ethics are understood as "objective good/bad" but theres also the more plain useage of "the good and bad of any given person"

#

i think hegel like differentiated between the two and called one morals and the other ethics but dont quote me on that

#

regardless ym actual concern with AI isnt that they could be "evil" but that they are "unpredictable"
and you sort of can mathematically prove that any neural network is unpredictable unless you comprehend the entire network itself

muted shell
#

but a human is also unpredictable?

rotund cipher
#

so like we train NWs and other AI models nowadays thru this evolution/learning method, so we have a teacher subAi and test environments and blah blah

#

not nearly as unpredictable, not even close, when you kill someones child you can make a prediction as to them being rather unhappy with you afterwards

#

with an AI, even what you trained it on, is not predictable

muted shell
#

i dont think that ais are any less predictable, especially to data scientists

rotund cipher
#

so the issue is, Ais arent algorithmic solutions to mostly algorithmic problems

muted shell
#

in fact, humans brains are much more complicated

rotund cipher
#

anything that could have an algorithmic solution, but creating an algorithm for would be too big a pain in the ass to do usually has a NW thrown at it, its rather a brute force method really

#

the issue is we make asusmptions about what its goals are

muted shell
rotund cipher
#

because we train it to complete goals

#

but it mght not ever actually encode to solve that goal but merely something that looks like that goal within the test environment

muted shell
#

same thing in life

rotund cipher
#

but then when you put it out, any anomality could have any side effect

muted shell
#

a student might go to school

rotund cipher
#

ANY side effect

muted shell
#

and then shoot it when he/she grows up

rotund cipher
#

the two are simply not a fair comparison

muted shell
#

instead of doing whatever

rotund cipher
#

this is a very american take

muted shell
rotund cipher
#

kids dont shoot up schools in europe on mass because of healthcare, whatever

#

im supporting humans because science

muted shell
#

science supports ai

rotund cipher
#

actually an algorithmic solution beats both

#

proven algorithm >>>>>> everything else

muted shell
#

whats your point

rotund cipher
#

but AIs are black boxes

muted shell
#

write an algorithm to recognize images

#

not machitoons

#

@rotund cipher some ppl are good only bec they think theyll go to hell if theyre not

thick ore
#

who cares about love when you have a proven algorithm, unlike love 🙄

muted shell
#

humans arent any better than ai

rotund cipher
#

for solving problem A? yes

#

theres a reason why so many higher up IT guys are incredibly wary about the current direction AI is heading, and thats because they understand what it is very well

#

i wish i had the language to properly explain it

#

but the reason isnt ethical

#

its practical

#

also ethical but thats secondary lol

muted shell
#

ai was being used a while ago for recognizing images its just making new leaps now

#

ppl are jealous that ai is smarter loll

muted shell
#

the gpt is just a huge transformer, nothing more

rotund cipher
#

im literally taking courses on neural networks at an academic niveau you goofball

#

i study theoretical mathematics at the university of vienna

rotund cipher
#

im not some goof who doesnt know what theyre talkng about

#

modern AI is a risk not because theyre inherently dangerous, its their implementation and the blind faith in correct goal-syncronicity thats verifiably a mistake

muted shell
rotund cipher
#

AIs will pass all testing environments and then fail miserably outsid eof it

muted shell
rotund cipher
#

due to unforeseen factors, and then those factors will be "patched" etc etc except you can prove that an AI can -always- develop hidden asyncronicites

#

because the AI doesnt intentionally cheat to pass

muted shell
#

you never call anyone out like that, even if its obv theyre lying cuz they get mad lol

rotund cipher
#

it passes perfectly what it is being tested on, it can perfectly fine complete the TESTS

#

the issue is that the tests cannot test EVERYTHING

#

there are always anonamilties

#

these two are NOT the same

#

stop with the human comparisons

#

AIs arent humans

muted shell
rotund cipher
#

ones a bundle of cells the other an algorithmic black box

#

this isnt about overfitting

muted shell
#

and any other mistakes will be insignificant, compared to the powerful ppls mistakes rn

#

yk the saying "life goes on"? whatever happens, well survive dw

rotund cipher
#

they profably will not be "insignifcant" as could be seen nmerous times already in test environments and experiments specifically proving my point

#

but experiments dont mean shit to the AIvangelists so why bother

#

whats science

#

what good is SCIENCE in the face of "but i think its fine"

muted shell
#

ai in every single vehicle backfires because of global warming or something idk

#

doesn't mean that airbags wont save right

#

and theres not much that ai can do that humans cant prevent

#

if an ai goes rogue in us then the other countries can fly in to save the day

#

itll be extremely difficult for ai to do significant damage because were not giving it power to do something, were just using it as a tool

#

just like a gun is much safer than a sentient gun

#

thanks for your contribution @rough sapphire

#

that is exactly what we are talking about btw

#

right @rotund cipher

rotund cipher
#

the reason debugging exists is because programmers dont prove their code

#

the thing is you cant debug an Ai having wild side effects easily

muted shell
#

wdym "prove"? dont they just make mistakes

rotund cipher
#

in maths you prove things, as in PROVE prove, in science you at least have evidence, but most of modern IT is pretty ... halfassed on that front, its duct taped code and hope

muted shell
#

one of the things as well is that an ai needs to have enough power to run and so any person could just nuke the computers if something happens or shut off the power or just switch it off. and maybe also a failsafe

rotund cipher
#

Ai falls in one of those categories where if you dont give them any "effect" its mostly harmless

#

like chat gpt 4 or whatever

#

it prints texts

#

texts, thats the side ffects, it often lies because it doesnt "understand" what its babbling its just a fancy chat bot really, but then you get to cars, or medical bots, or what have you

muted shell
#

btw @rotund cipher how do you have such a good vocabulary but such terrible grammar

rotund cipher
#

this wild abandon of AI implimentation, every field is warning IT that thats stupid

#

but IT does not care

#

i skip words cuz im lazy

#

i type faster than i think out loud on occasion

muted shell
#

no for example "it prints texts" text is correct

#

you make many spelling mistakes too but thats fine

rotund cipher
#

whats wrong about using the plural

muted shell
#

text is the plural

#

there is no "texts"

#

and somehow you know words like semantics, alvangelists, and so on

rotund cipher
#

text (countable and uncountable, plural texts)

muted shell
#

texts probably means many texts

#

not many letters

rotund cipher
#

i do linguistics as a hobby xP

yes i meant many texts

muted shell
#

whatever

#

language isnt as important as ai

rotund cipher
#

youd think so but na

muted shell
#

ai will do the languageing for me

rotund cipher
#

well, semantics and syntax, everything else is more or less secondary but still

muted shell
#

i remember you said useage instead of usage tho

#

or is that a typo

rotund cipher
#

yea thats a typo

#

idgaf about english spelling

muted shell
rotund cipher
#

a buncha francish scribes frenchifying words and then the english did their own language dirty by "pseudo latinizing" it

#

f.e.

#

debt

#

did you know debt never had a pronounced b?

#

never, it got added because english scribes thought its etymology comes from the latin debitum

muted shell
rotund cipher
#

but actually it comes from french dette

#

ah yea but thats like "Ye olde" or "salmon" with a pronounced l

muted shell
rotund cipher
#

where the spelling influences the pronunciation

#

ðæt, in old english

#

anyway, theres some other words like that all over english

muted shell
#

btw do you know any other languages?

muted shell
rotund cipher
#

DYK the Y in Ye is actually a very halfassed Þ

muted shell
#

also who cares where the words came from at least we have them

muted shell
rotund cipher
#

its not that new. take any creole of your liking itll be newer

#

the letter thorn used to represent all the ths in english

#

include the th in the

#

þe turned to ye

#

but was always pronounced th

#

but this became uncommon knowledge

#

hence why people think its "ye olde" instead of "þe olde"

muted shell
#

i thought ye was lazy yes

rotund cipher
#

technically ye is a lazy yeah

muted shell
#

same root

rotund cipher
#

no;nay;yes;yay, yay->yeah->ye

muted shell
rotund cipher
#

not to be confused with "hear ye hear ye!" where ye is an archaic second person plural

muted shell
#

ye ye whatever

#

history and english is meh

rotund cipher
#

my mother tongue is german, i know basic finnish grammar, basic japanese grammar, the korean "alphabet" aka Hanguel (technically not an alphabet, but w.e.) and ehm, toki pona, a cute little constructed language

muted shell
#

as a hobby??

rotund cipher
#

i SHOULD learn some spanish but am lazy

muted shell
#

that looks like a job

rotund cipher
#

are you american?

muted shell
#

no

rotund cipher
#

odd, not being monolingual is very common in europe

#

i dont speak those languages, just know bits n pieces

#

but linguistics as a hobby makes language aquisition much easier

muted shell
#

4 alphabets + 2 languages

#

translators only need 2 languages

rotund cipher
#

well alphabets are just scripts

#

i like scripts

#

because so many languages have english loan words, knowing the script alone can sometimes do wonders is understanding languages haha

muted shell
rotund cipher
#

absolutely not

muted shell
#

where then

rotund cipher
#

its just a hobby

#

i like knowing what im talking about, is all

#

its fun

muted shell
#

fun

#

having a big vocabulary is nice

#

because you can explain yourself

#

satisfying

#

idk about fun tho

#

seems more like a nightmare

#

knowing other languages which you don't know the word in this lagnuage

rotund cipher
#

fun proof by example for the LOTHypothesis ig

mystic drift
#

It's on my bucket list

violet mural
#

coincidence are silver lines? like you see the c 4 symbol/tatics/go?

grave cove
#

huh

thick ore
#

if i'm storing something in a database and want to add a created_at field

#

what type should I use?

#

using postgres btw

grave cove
#

postgres has a timestamp type

thick ore
#

ohh alright

#

what would i pass in there?

#

unix time? or

grave cove
#

Depends
Are you using an ORM?

thick ore
#

sure, I'm using gorm

grave cove
#

You should be able to pass in a regular datetime.datetime object then

#

At least, that's what we do with SQLAlchemy

thick ore
#

ahh alright

#

ty

thick ore
#

is 20 reqs/sec ratelimit reasonable for a todo list app?

young shoal
#

that seems way too high

grave cove
#

should be able to get away with a few

#

assuming this is per user

thick ore
#

soo, maybe 5 reqs/sec then?

carmine bane
#

underbeard

young shoal
thick ore
#

alright, i'm going with 8 reqs/sec

crystal spruce
#

I would like to confirm something
for the truth table

A B C X
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 0
1 1 1 1

a product of sums expression for this is

X=(A+B+C)(A+B+C')(A'+B'+C)

right?

graceful basin
#

lgtm

small coral
#

nvm

#

i got it wrong

#

X = AB' + A'B + AC

crystal spruce
#

it doesn't really matter how simplified it is yet

#

just that that expression there is correct

#

because my teacher says that all of those should be negated

#

which I disagree with because it produces the wrong truth table

graceful basin
#

Hmm, it should be the right one

crystal spruce
#

yeah

#

I think she might've accidentally negated twice

graceful basin
clear acorn
tardy rain
ancient dune
#

No longer I will have to make useless tables!

grave cove
ancient dune
#

Whom is "we"?

#

I- I thought I was the only one PE_PandaCryYou

grave cove
#

My team and I

ancient dune
grave cove
#

I think we've got a team size of like 30 but those are the ones that are active

#

DM me if you'd like to learn more :3

ancient dune
#

Nice!

foggy jungle
royal lakeBOT
#

6. Do not post unapproved advertising.

thick ore
#

oh wow look a pydis staff breaking rule 6

#

i also feel encouraged to break rule six because a trusted member in the server has done it

grave cove
#

just telling people about something cool I'm doing :(

signal scroll
tranquil iron
grave cove
#

am I allowed to say what we're doing or no

#

KP on his way to make me sign an nda

signal scroll
#

yes you are allowed

tranquil iron
grave cove
#

Let's just say its cybersecurity stuffs

signal scroll
#

okay

tranquil iron
#

cool beans

foggy jungle
grave cove
#

true

jaunty wraith
grave cove
#

🥴

tardy rain
#

Spanked

#

Its a good feeling

stable fulcrum
tranquil iron
stable fulcrum
tranquil iron
#

I have no sense of humor

low chasm
tardy rain
#

🥴

#

Aboo, in public?

#

Smh

short skiff
foggy jungle
#

just limited by memory more or less

short skiff
foggy jungle
short skiff
#

pshhh, lame

#

i got 3tb of ram on my laptop

tranquil iron
short skiff
#

but that is funny I wonder if you could do like a zip bomb but with a python file that just kept on loading larger and larger files into the interpretr

short skiff
tranquil iron
short skiff
#

also wouldn't it eventually start going to swap?

tranquil iron
#

maybe it would get so slow it could never fail?

young shoal
short skiff
#

like order of magnitude

young shoal
#

like 2^64 bytes

short skiff
#

oh that's not too bad

foggy jungle
#

16 exabytes pithink

tranquil iron
#

that sounds like a lotta bytes

#

I don't think all 64 bits are available for physical memory addressing in x86_64 architectures

#

yeah, only 48 bits available, or 256TB

short skiff
#

wait a second guys:python def infiniterator(): while True: yield """ #blank comment """ ''.join(infiniterator())

#

I had to stop the run there but it does seem to just endlessly take up space

#

idk if u even need the exec

#
from itertools import repeat
list(repeat(["string"]*100))
#

this one works way faster it was causing my computer to glitch because I couldn't stop it in time

#

ok I got a shorter and faster one I think: ```python
["💣"for _ in import("itertools").repeat(None)]

solemn tulip
#
a='x'
while 1:a*=2