#ot1-perplexing-regexing

1 messages · Page 98 of 1

marble bay
#

blame it on floating point math

steady jacinth
#

anyway I'll steal this

marble bay
#

!d decimal.Decimal if you wanna (possibly) get them to be equal

royal lakeBOT
#

class decimal.Decimal(value='0', context=None)```
Construct a new [`Decimal`](https://docs.python.org/3/library/decimal.html#decimal.Decimal) object based from *value*.

*value* can be an integer, string, tuple, [`float`](https://docs.python.org/3/library/functions.html#float), or another [`Decimal`](https://docs.python.org/3/library/decimal.html#decimal.Decimal) object. If no *value* is given, returns `Decimal('0')`. If *value* is a string, it should conform to the decimal numeric string syntax after leading and trailing whitespace characters, as well as underscores throughout, are removed:
steady jacinth
marble bay
#

just forwarding what I got recommended yesterday lol

crystal spruce
#

for this it doesn't really matter because the complex part is very easily separable

marble bay
#

actually yea

crystal spruce
#

just check if out**2 - 4*out is negative, and add a 1j if you need to

steady jacinth
lime oyster
#

Hello, Is anyone here familiar with Fourier's theorem on polynomial real roots or just Budan's Theorem? Cheers.

crystal spruce
#

what about it?

warped sentinel
strange iron
lime oyster
strange iron
#

the knowledge of which i forgot about by now

warped sentinel
lime oyster
# warped sentinel We don't allow recruitment

I am neither interested in paying someone or recruiting, I am stuck on a whole big problem so someone who has a lot of experience and they can probably help me on this. This is not a Python related issue.

warped sentinel
#

For instance, had you shared your actual question, you may already have had an answer by now

lime oyster
#

I would rather share it in private as it's something special and should be not known to anyone until released or published on arXiv.

warped sentinel
#

We don't do DMs either.
In terms of secrecy, there is no reason to trust any stranger in DMs more than in a channel like here

#

Especially if your question requires specific knowledge. Chances are if the person is able to answer, they would benefit from harvesting it even more

#

And in 2024, I hardly believe Fourrier or Budan have any such secrets

#

And in the context of publication that requires such secrecy, I would not help without making sure I am either paid or that my name is on the publication, both of which would not be allowed on this server

lime oyster
#

Pardon? I am highly unsure if you're true. I am working on something that uses it.

warped sentinel
brazen ingot
thick osprey
#

Starting a Monday with a refactor PR that changes 4 files, adds 3 lines, and removes 209 lines. FeelsGoodMan ducky_bober

radiant cosmos
#

ending a monday with a network conn issue

delicate locust
#

anyone knows how to download kali linx

lament cairn
#

@delicate locust

delicate locust
#

thx

austere willow
#

Anyone deal with Supabase and Flutterflow? I wanna be able to display a query from a table and allow information to be added or changed. Looked over google for the past 2 days, and I get half answers, but not the whole picture. Or they want to do stuff in a programming laguage I'm not familiar with

#

I'm about to lose my mind

frozen crane
#

is there a way to set all the microsoft office products on my computer (or at least outlook and teams) to always have a markdown-like text formatting experience, like Discord does? the unpredictable auto-formatting enrages me.

frozen crane
zealous comet
#

no need to make stuff that devs would like that would take way too much time to make

uneven pine
#

Apparently Sketchup isn't rfee anymore

#

is there any free software siilar to that? I want to prototype my new desk but don't reallllly feel like paying

sinful shard
#

but like who even uses that

buoyant wolf
#

writing latex feel good hahaha i wish i could write it fast

brazen ingot
#

cmp

#

or just make your fingers fast

reef goblet
#

I hate typing backslash

#

Like Ong

crystal spruce
#

i just use snippets in obsidian

thick ore
#

from vite/react/tailwind to just some html, css, and image files lol

digital oracle
#

looks good

thick ore
#

and would you look at that lmao

digital oracle
#

amazing!

polar vigil
lament cairn
#

It's DNS.

#

God fucking damnit.

digital oracle
#

classic

lament cairn
#

There's something about my isp's dns or my DoT server that discord really doesn't like
I have to use a DNS changer app. So dumb

timid latch
lament cairn
#

Tailscale's DNS override doesn't work either
I have to use a DNS changer app

#

sometimes I hate tech

harsh tundra
solemn tulip
harsh tundra
# solemn tulip

Me fixing why the fuck the PV inverter stopped connecting. It was DNS

lament cairn
#

do I have to reset my phone to fix this...? urgh

honest star
#

Avoid Pushing Mongo
Why are skateboarding terms the goofiest things ever

hexed sierra
honest star
#

lmfao

gritty zinc
#

otn a avoid pushing mongo

#

make it pydis rule 11, too

solemn tulip
#

riding switch is just board endianness

#

"little endian 180 swizzle"

hexed sierra
#

git commit -m "pushing mongo to production"

glossy niche
#

mongo 🤮

solemn tulip
#

git 😔

honest star
#

!otn a avoid pushing mongo

royal lakeBOT
#

:ok_hand: Added avoid-pushing-mongo to the names list.

fringe rain
#

Would any vim users here happen to know what constitues a "word" when using w, e, b

I noticed recently that _ (underscore) was considered part of a word rather than a new word, are there any other special cases?

young shoal
#

:h word

brazen ingot
#

:help word

small coral
#

how would i fit a function's range of outputs to another range
like i have f(x) = 0.9 ^ x but since x ranges from [1, ∞) the values from it are [0, 0.9] instead of [0, 1]

#

oh wait i just figured it out nvm

fringe rain
fringe rain
#
is_word_constituent = lambda char: char.isalnum() or char == "_"
willow narwhal
fringe rain
#

True

#

I'm not sure I'll be having an iskeyword configuration though

harsh tundra
fringe rain
fringe rain
digital oracle
#

great!

royal lakeBOT
#

:incoming_envelope: :ok_hand: applied timeout to @wintry bolt until <t:1713966389:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

jovial oriole
#

Nahhhh

#

Mondays are top

marble bay
jovial oriole
#

Nah

marble bay
#

if you get friday off

#

3 day weekend

jovial oriole
#

same with monday

marble bay
jovial oriole
#

its an extra day

marble bay
#

and the monday feeling will just shift to tuesday

jovial oriole
#

Ok but sundya night

#

will fix it

fringe rain
#

I think I'd be way happier to know monday is off than friday, because i was expecting to go to work

#

Friday i was getting ready for the break which starts after work

#

I'd be half as happy

#

Albeit thats only the first few times and if it comes as a surprise

low chasm
#

Friday is already a based day

#

it's more based if school is off

solemn tulip
#

next week I have wednesday off

#

which is just awkward

fringe rain
#

real

willow narwhal
#

I had Wednesdays off for half a year once, it was amazing. A mini-weekend in the middle of the week, plus it was easy to get stuff done (because shops are still open).

buoyant wolf
#

@harsh tundra are you there?

harsh tundra
#

No

#

It's 8am

thick ore
#

there should be a very generic language

#

a very boring one that everyone will like

unique heart
#

Someone Please Myanmar

thick ore
#

what

thick ore
#

something like Go but less fucky

rustic chasm
thick ore
#

that sounds like a functional language

#

like just the name

#

i'll look it up

thick ore
#

from "boring"

rustic chasm
#

Then maybe tcl?

thick ore
#

😔

graceful basin
#

Java

#

Though Java may be too exciting

#

Dart is probably what you're thinking of

fringe rain
#

i dont like this language

tardy rain
#

but pipe is very cool

thick ore
#

We need to evolve its ecosystem

thick ore
#

yea its basically tied to flutter and UI

fringe rain
#

Why? 💀

#

Ngl I feel like Rust just came around (got popular) and now a dozen languages are trying to get on top

#

Which is good in one way, but its all so mind numbing when technology moves so fast

#

||Me 10 days later: starts using gleam||

tardy rain
#

Isnt flutter a dart thing

#

Or are they porting it to gleam

graceful basin
#

I heard very good things about Gleam, BUT it was from erlang enthusiasts

#

but also there was the very cool graph of being 2x better than go

fringe rain
#

Better in what way?

tardy rain
#

2x cooler

graceful basin
#

more requests per second at a low latency

thick ore
#

gleam is like a nicer Rust

#

it's the perfect language

fringe rain
thick ore
#

built in formatter, linter, and package manager

fringe rain
#

rust makes me feel like a hackerman

thick ore
#

no ownership and safety bullcrap

fringe rain
thick ore
fringe rain
#

🥹

thick ore
#

not a lot of languages do that tho

fringe rain
#

yeah, its one of the things i really like about rust

#

absolute standardization and commitment to improvement

#

like when rust analyzer was better than whatever they had made they adopted it as the official tool

thick ore
#

lmao

#

i'd use rust if it wasn't so low level

#

i wish it was higher level, and gleam is as close as you can get to that

fringe rain
#

gleam feels like a people pleaser

#

rust is strong and absolute 🛡️ 🦀

#

but yeah, i will admit gleam seems like an ideal language, it tries to be

fringe rain
#

i think they mean verbose

marble bay
#

maybe it's just me but rust doesn't feel all that verbose

fringe rain
#

maybe its time to switch to python for a bit then

marble bay
#

I still use python as my main language

marble bay
fringe rain
#

well if you're writing super-conventional python code it will naturally be verbose lemon_xd (doc-strings, proper names, unnecessarily elaborate state machines, type annotations etc.)

fringe rain
#

i use type annotations for the autocomplete

marble bay
#

type annotations and proper names

fringe rain
#

and my names are pretty good half the time

fringe rain
#

our similarities are crazy

fringe rain
#

lmao

bleak lintel
#

Erlang is GREAT!

#

i have the beam... and otp... so i can code... reliably

marble bay
#

you use emacs, hence your opinion is invalidated

bleak lintel
#

hello i have tetris built into my editor hence your opinion is invalidated

marble bay
#

revolutionary

#

btw I have tetris built into wordle

#

🏃

digital oracle
rustic chasm
bleak lintel
#

M-x snake
M-x tetris
M-x doctor
M-x spook
M-x butterfly

bleak lintel
digital oracle
solemn tulip
round pendant
sharp dune
#

I made a game 😄

#

Feel free to use any code from it

cursive salmon
sharp dune
cursive salmon
#

github already provides a way of downloading as zip

sharp dune
#

Oh ok

#

Should I remove the zip then?

hearty vigil
sharp dune
#

Ok the

#

Then*

sharp dune
honest star
#

ughhhh, I need to re-learn how to calculate euler313 angles ;_;

young shoal
#

🤮

shadow dove
#

Hey Everyone!
I just recently updated my windows.
Yesterday, I clicked "update and shutdown" option.

Today when I turned on my laptop, my data was lost as I reset my windows. My lock screen had the same wallpaper. Then I restarted my laptop and my Lock screen didn't have the same wallpaper.

limpid lynx
#

maybe it logged you out of your windows account

#

and your data is still there

grave cove
#

Go to your file explorer and see if the files from your normal user are still there

shadow dove
glossy niche
#

self hosters 🤝 premature optimizers
^
wasting time on imaginary problems

acoustic moss
#

unicode meme

glossy niche
grave cove
#

so cute

fresh basalt
#

The one in the front looks like it was pasted into the image.

#

I think it was from this frame:

#

IDK what they did other than cropping and zooming perhaps.

#

maybe change the saturation

lament cairn
fresh basalt
#

it makes the fuzzy border of the cat sort of stand out against the background I think

#

looks almost unreal

#

interesting

limpid lynx
grim ridge
#

hello

#

everyone

fallow heart
#

What is the optimal block size for a miss latency of 20×B cycles?

#

This would be simply calculating the AMAT per block/miss rate, right??

So for example:


Miss latency (penalty) = 20 x 8
AMAT = 1 + (0.04 x 160)```
#

You would do this with each one, and then the lowest AMAT = The most optimal block size.

Correct?

shadow dove
limpid lynx
#

!resources

royal lakeBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

grave cove
lunar shore
#

Is it possible to write a "print" or "input" function (I/O) without using any libraries?

#

(Any language)

#

(Preferably Python/C)

karmic gust
#

technically

def new_print(*args, **kwargs):
    print(*args, **kwargs)
```doesn't use any libraries
lunar shore
#

But like... You're using print

#

I mean yeah, lemme rephrase

#

how could you remake the print function without the print function (or any libraries)

acoustic moss
#

oh damn

#

hi rader

crystal spruce
#

you can write to sys.stdout directly, sure

lunar shore
lunar shore
lunar shore
glossy niche
#

"Thanks for your feedback, we will start working on this as soon as possible!" -> weak, submissive, does not ones own grounds
"FUCK OFF FED" -> based, assertive, protects your precious repo

lament cairn
#

yep

#

smells like fed

fresh basalt
#

How can you tell?

#

And what do you mean by fed?

harsh tundra
# fresh basalt And what do you mean by fed?

federal agents, aka 3-letter agencies
they already did sneak backdoors into software (or made companies make backdoors for them). but since open source relies on users doing code reviews and others checking security, the backdoor is hard to sneak in and often includes some smaller changes first to later do a bigger refactor/"fix"

rant of glibc -> will make some people wonder if such fix is needed -> if pr appears, there would be people who actually thought about that fix (but that thought was "planted" by that twitter user and people sharing it), so the pr gets traction and gets accepted

normally PRs of menial stuff that aren't bugs or needed are just rejected

fresh basalt
#

forget I asked

young shoal
lament cairn
#

"trust me bro"

fresh basalt
#

I don't trust anybody.

#

I feel like ever since the xz thing that people are super paranoid and everybody on Twitter is a sudden counterespionage expert.

lament cairn
#

cant have a backdoor if no one can contribute

#

ez

floral viper
fresh basalt
#

I mean if Reddit caught the Boston Bomber then Twitter can catch the Feds trying to backdoor the softwares.

#

go team Internet

floral viper
#

Back when the pandemic kicked off everyone was a virology expert. When the full scale invasion happened in ukraine everyone was a general all the sudden.

The way I see things, the people that yell the most are the least knowledgeable because the people that really knows usually don't talk about it.

fresh basalt
#

The Feds don't need to feign their way into organizations like that. They can buy their way in.

#

We'd never hear about it.

#

The Clipper chip was a chipset that was developed and promoted by the United States National Security Agency (NSA) as an encryption device that secured "voice and data messages" with a built-in backdoor that was intended to "allow Federal, State, and local law enforcement officials the ability to decode intercepted voice and data transmissions."...

carmine apex
#

one of the few cases where the 3rd amendment applies

jovial oriole
acoustic moss
#

(i think)

limpid lynx
# jovial oriole

i think lewis with ferrari will be a proper challenge to max for once

#

maybe shell will start putting up posters of lewis at their gas stations

fickle epoch
#

Is it I'm blind or many people also forget/didn't see that there is a big ass list of help channels and posted questions on chat channels like me🤡

limpid lynx
fickle epoch
fickle epoch
#

Lol it's ok

limpid lynx
#

generally if its something simple people ask it in chat

#

elaborate things need python help

edgy crest
lunar shore
edgy crest
acoustic moss
#

reunion

lunar shore
#

fr fr

#

it's crazy

#

I think I was the only one offline for a while

thick osprey
#

til big tech's product is people.

vale raven
# thick osprey til big tech's product is people.
Forbes

Scott Goodson is the founder of StrawberryFrog. His first book, Uprising exploring Movement Marketing has been published by McGraw Hill. Google (Photo credit: Daniel Morris) The internet continues to evolve and with it our privacy continues to be a matter of debate. It was once taken for granted by people who worked in advertising [...]

#

Everyone has these "opinions"
It's annoying

carmine apex
#

exactly - that's a terrible article that barely attempts to rebut the actual argument, instead saying that free and paid companies both exploit their customers to roughly equal degrees

fresh basalt
#

techdirt isn't a great site

#

Forbes is meh too

carmine apex
#

not techdirt, the article it links

fresh basalt
#

maybe the article it links too but I don't like techdirt

carmine apex
#

He highlights that “free with advertising” has been a pretty big business for a long long time, in which there’s no indication that users were treated as “the product” or somehow treated poorly
this - from techdirt - is wrong, though. forcing people to watch or read ads is treating them poorly

#

and anyone being marketed to is absolutely a product

fresh basalt
#

It's bizarre that people get so offended and argumentative when you tell them that.

#

It's like they don't want to feel duped I think.

#

Either that or they don't care about privacy and think you're insane because you do.

jovial oriole
lament cairn
lament cairn
#

hevc moment

robust zephyr
#

I love the HEVC format

#

So tiny. So efficient

lament cairn
#

i hate it because it's not as well supported as vp9 because Patents

#

which is weird

#

because x265

robust zephyr
#

Well supported for what?

#

I don't have anything that can't play it

rough sapphire
soft violet
#

@steady jacinth Continue.

steady jacinth
# soft violet <@785778526703452162> Continue.

I'm making a notepad, you may already know this. When you save a note I want certain notes to expire and get deleted after a while. But obviously I don't want every note to be deleted, so ideally I would want the user to choose if it expires or not. But how can I do that without disrupting the fluidity of the saving process?

warped sentinel
steady jacinth
soft violet
warped sentinel
steady jacinth
#

oh, that exists!

warped sentinel
acoustic moss
#

i think theyre asking a UX question

warped sentinel
steady jacinth
soft violet
#

User experience.

warped sentinel
steady jacinth
warped sentinel
steady jacinth
#

that's why I mvoed to off-topic, since its not really pthon related

warped sentinel
#

yeah

#

indeed

#

my bad

wheat quiver
#

yo

soft violet
#

Your main application could do the checks. A daemon component of your application could do the checks. Your operating system might be able to be told to run something periodically to do the checks.

wheat quiver
#

sorry if im interrupting you. i wonder if it’s worth to downgrade from win11 to 10

steady jacinth
#

maybe pressing ctrl+shift+s instead of ctrl+s would save it as an expiry

#

idk

soft violet
#

Why would it disrupt saving?

steady jacinth
acoustic moss
#

could be a checkbox with a default

steady jacinth
acoustic moss
#

idk, some corner of the screen

steady jacinth
acoustic moss
steady jacinth
#

hmm

steady jacinth
acoustic moss
#

._.

warped sentinel
steady jacinth
acoustic moss
#

...

steady jacinth
#

I'm.... not going to do it again

steady jacinth
warped sentinel
steady jacinth
warped sentinel
#

so you could have a Expires: never that shows a calendar on click

acoustic moss
#

sgtm

steady jacinth
warped sentinel
acoustic moss
#

expires: in 30d and show calendar on click

steady jacinth
acoustic moss
#

maybe editable in both places

steady jacinth
solemn tulip
#

the embossed border feels so 90s web

edgy crest
limpid lynx
limpid lynx
#

those damn americans

timid latch
#

What html element would that be?

limpid lynx
#

bro went on a research journey

timid latch
#

Huh yhe, interesting

#

Tho the actual selection pop-up wouldn't suffer from it

solemn tulip
timid latch
#

YY/DD/MM

#

24/29/04

dapper dew
#

YDMYDMYY

#

22009424

floral viper
#

DD.MM.SS

young shoal
#

season season

cursive salmon
gaunt basalt
#

random.shuffle('YYYYMMDD')

young shoal
gaunt basalt
#

:p

fickle epoch
#

`import random

Date: list = [ord(i) for i in 'YYYYMMDD']
Mdate: str = ''.join(str(i) for i in Date)
print(''.join(random.sample(Mdate,len(Mdate))))`

#

@gaunt basalt @young shoal @cursive salmon

young shoal
#

what does that dopithink

fickle epoch
#

turns string to decimal ascii code
then shuffles the string

#

lol

young shoal
gaunt basalt
cursive salmon
#

just why

fickle epoch
#

eNcRyPtIoN

solemn tulip
rough sapphire
gaunt basalt
#

yeah

junior hearth
#

bro judging from date format 🤣

#

anyways

fringe rain
#

all of y'all got the same type of pfp

junior hearth
#

I'm using forms in django{{ form }}, no classes other than bootstrap form control
why does input stretch across width of screen?

junior hearth
gaunt basalt
#

lmao

fickle epoch
fickle epoch
#

yea

small coral
#

oh

fickle epoch
#

gimme a mom

#

ent

small coral
#

southeast asia is different apparently

#

northeast-ish asia is different

fickle epoch
#

the date on my one year old candied peanut

fickle epoch
thick ore
#

set your width manually

junior hearth
#

thanks!

#

finally

spare flume
#

Hello, could anyone with Android studio test my small beginner app ? I just need some feedback on it, like what you think could be improved. It won’t take more than 5 minutes tops. It’s only a 2 page app with basically one functionality. I can pm the zip file and the purpose of the app to anyone who is willing to help me.

limpid lynx
#

@fathom lodge make this your profile picture

fathom lodge
limpid lynx
#

its very simple to edit

fathom lodge
#

cool

#

can u send png

#

lol

#

idk how to do that too
too dumb as a toe
lol

limpid lynx
#

just search "toe meme" on google, you'll get it

fathom lodge
#

got it

fickle epoch
#

is this considered as a good rotation? My Xingqiu have R5 Sac sword so he almost can keep up with that second E everytime.
yae E3 - nahida hEQ - kazuha hE - xingqiu EQ - kazuha Q - yae NQE3 - nahida N4 - kazuha E - xingqiu E - nahida N4hEN6 - yae E3 - kazuha E - nahida N4C

gritty zinc
#

most comprehensible ot1 comment

fickle epoch
#

wait oh shit

#

i posted at the wrong sub

#

I was busy switching between tabs

#

lol

acoustic moss
#

what is the right sub for this

fickle epoch
#

I guess I won't delete this lol
perfect for ot channle

gritty zinc
#

imagine getting roasted for your bad genshin builds on the python discord

fickle epoch
acoustic moss
#

i see

fickle epoch
#

Not sub lol
I am clowning all over this place

#

Wrong discord server

fickle epoch
thick ore
#

in degrees or radians?

young shoal
#

gradians

fickle epoch
wanton delta
fickle epoch
#

I'm all ears

fickle epoch
#

But I don't have Energy problem so guess it's better this way?

limpid lynx
#

@steady jacinth how is the notepad coming along?

steady jacinth
dense palm
fresh basalt
frozen crane
fresh basalt
#

yo dawg

thick ore
#

this is so sad to see

#

discriminating against C# like that

midnight dragon
#

I'm new to python here. Is there any other tutorials that I can follow other than w3schools, or BroCode's full 12 hour course on YouTube? Is there a better way to learn?

lament cairn
#

!resources

royal lakeBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

lament cairn
#

highlights:

  • automate the boring stuff with python
  • a byte of python
midnight dragon
#

thanks!

glossy niche
#

common microsoft L

wanton delta
#

kill them all

marble bay
jovial oriole
limpid lynx
rough sapphire
#

in-movie

fresh basalt
#

People die from complications of leprosy and usually not from the disease itself. Nowadays we can cure it but it requires a lot of medication.

honest star
#

okay I need more people to talk to about Kendrick's euphoria tho, really inspiring me to be a better hater

honest star
#

lol nah, if I'm hating then I'm hating with my whole chest

jaunty wraith
#

amateurs
hate with your whole being

limpid lynx
fresh basalt
fringe rain
#

You puff your chest everytime you walk by them

#

Assert dominance

glossy niche
#

hmmmmmmmm

#

i wonder

#

if this would work well in production

#

bec most of my job is dealing with shitty repititive cloud admin tasks that could be automated by sth like this

honest star
tranquil sleet
#

I found it

lament cairn
tranquil sleet
#

I honestly wouldn’t know

#

It’s like vanilla rust with basic multipliers

#

I got basic world commands also

tranquil sleet
tranquil sleet
#

Right now I’m attempting to just get it to utalize a couple basic functions, right now it logs into my console; and directs itself to it, from there It doesn’t wanna click the command prompt chat (which i thought api might fix instead of selenium)

#

And i don’t know if it’s properly reading the chat logs or not, but it wants to, and at least identifies the things i want it to.

lament cairn
#

Test

tranquil sleet
lament cairn
#

Ok

tranquil sleet
lament cairn
#

whatever that server you're talking about is doing likely uses a proprietary framework

#

god my internet iis SLOW

#

yeah you're trying to make the emote wheel kits on console, right?

Oxides, mods, and RUST+ are not supported on the console version of RUST

tranquil sleet
#

Yeah on console version of rust :/

#

It is within the “command console” that it will take place tho

lament cairn
#

I have no access to the g-portal dashboard and won't buy a server for a game I don't own so I can't help with getting your selenium thing to work, srry
Server plugins would be the usual way to solve this b ut since they're not supported on console I can't think of anything else

tranquil sleet
#

I have it identifying the date, time, “UnlawfulActions”, and “Wood” as variables
While the rest stay the same,
It needs to do these things with the information.
Date and time recording so you can’t spam kits,
Player recognition to know who to give the kit to,
And the material to know what kit to give.
And I can give you temporary access? There isn’t anything you can do to harm it

#

No way to upload files yada yada

#

I may be able to put cooldowns on kits in game also^

limpid lynx
#

@shy hare what are you trying to do?

#

with the space thing

shy hare
limpid lynx
#

ah ok we all do it

halcyon prawn
#

hi

jovial oriole
#

Jrlo

fringe rain
#

I was awoken

#

Now I must find a way to get back to sleep

#

Going to read chem for a bit

lament cairn
#

i didnt like how my backup script looks so i spent 5x the time it'd take to organize it to make a tool that generates a script for me

#

isnt there a quote for this

fringe rain
#

overengineering

#

but convenience > time

#

so its okay in my book

limpid lynx
#

how life feels when you finally solve that one question:

honest star
#

Kendrick dropped another fuckind diss track today ohmygod. Also posted it on IG as his second ever IG post. Dude fucking hates Drake, it's incredible

lament cairn
#

yay beef

fresh basalt
#

I haven't heard it. Why does Kendrick dislike Drake? Is it real or is it just standard beef-for-the-sake-of-selling-records?

tardy rain
#

Dudes writing poetry to one another is never not amusing

fresh basalt
#

I respect Kendrick more than I respect Drake.

#

Excuse me, Aubrey.

#

It's interesting because they come from very different backgrounds. I wonder if that's what the beef is about because Drake is sort of a f-boy.

glossy niche
#

really like haskell curry movies

fresh basalt
#

Oh it's just typical "I'm better than you" stuff.

#

yawn

jovial oriole
#

Guess

jaunty wraith
jovial oriole
#

Yes

jaunty wraith
#

what do I win?

grave cove
obtuse oak
#

hello

lament cairn
obtuse oak
#

yes

#

I am waiting 14 days for verifiny my voice

jovial oriole
#

Tbh i dunno either

fresh basalt
grave cove
#

biological microprocessor

harsh tundra
fresh basalt
#

kind of looks like a bacterium

#

not sure though

#

those do look like cells and not components of cells

#

The big middle thing looks like it's floating through some sort of liquid.

#

That's a needle I think.

#

It's not an uncommon photo type.

#

couldn't be plant because no chloroplasts and the cells aren't packed together tightly enough.

#

Looking at onion cells under the microscope is a core memory for me. Pretty neat.

jovial oriole
outer pebble
#

.dddg

median domeBOT
#
Duck Duck Duck Goose!
#
Flights Found

(5, 6, 10) - import discord as PyNon

Flights everyone missed:
(2, 7, 9)
(0, 1, 8)

outer pebble
#

1 2 3

#

5 6 10

median domeBOT
#
Time's up!

Final scores:

import discord as PyNon: 0

tropic ore
#

.ddg

median domeBOT
#
Duck Duck Duck Goose!
#
Flights Found

(1, 5, 10) - forgor
(2, 3, 7) - forgor

All the flights were found!

tropic ore
#

1 5 10

#

2 7 3

#

3 5 10

#

goose

median domeBOT
#
forgor GOOSED!

Final scores:

forgor: 3

harsh tundra
#

.ddg

median domeBOT
#
Duck Duck Duck Goose!
#
Flights Found

(2, 3, 10) - Nicky | xe/xem they/them 🌈 | ᓕᘏᗢ
(2, 8, 11) - Nicky | xe/xem they/them 🌈 | ᓕᘏᗢ
(5, 6, 8) - Nicky | xe/xem they/them 🌈 | ᓕᘏᗢ

Flights everyone missed:
(1, 4, 8)

harsh tundra
#

2 3 10

#

2 8 11

#

Goose

#

Huh

#

5 6 8

median domeBOT
#
Time's up!

Final scores:

Nicky | xe/xem they/them 🌈 | ᓕᘏᗢ: 2

tropic ore
#

.ddg

median domeBOT
#
Duck Duck Duck Goose!
#
Flights Found

(2, 3, 9) - forgor
(1, 2, 5) - forgor
(1, 7, 10) - forgor
(1, 4, 6) - forgor
(3, 4, 10) - forgor
(0, 5, 6) - forgor

All the flights were found!

tropic ore
#

2 3 9

#

2 1 5

#

10 7 1

#

6 4 1

#

10 4 3

#

3 2 9

#

goose

#

6 0 5

median domeBOT
#
Time's up!

Final scores:

forgor: 5

uneven pine
#

Why is this fucking spam back

obsidian axle
#

anyone here does cybersec?

fresh basalt
fresh basalt
fresh basalt
#

it saves the offtopic channels from bot spam

#

(and that channel was created for that specific purpose)

harsh tundra
#

I just played one game to "continue" the trend, it was almost 5h from last activity - that was also the same game

fresh basalt
harsh tundra
#

When pygen is basically-dead, people joke around and go semi-offtopic and continue joking and talking until actual full python topic gets found. So really bad comparison

fresh basalt
#

ok

#

There's a reason the bot commands channels exist though.

#

I don't really have the energy to police it though so do whatever.

harsh tundra
#

I was going to tell those two people (one of which played 2/4 games, 2nd and 4th - but you pinged only me, who played 3rd???) the same thing, but then noticed the absolute death and the 5h diff, so it looked kinda funny to fill the dead channel with logical games

#

Sometimes a ground of people will play in ot as well - it's fine as long as they're not interrupting any conversations

fresh basalt
#

I did ping the other person fwiw

#

I regret mentioning it at all.

thick osprey
#

Then it's probably best to just let it lay where it is. The command is available in OT. It can be run here. If it is disrupting active conversation then that's a moderation issue. 🤷🏽‍♀️

#

I'm still trying to figure out how it is played. pithink

karmic gust
#

.dddg help

median domeBOT
#
Compete against other players to find valid flights!

Each card has 4 features
Color, Number, Hat, and Accessory

A valid flight
3 cards where each feature is either all the same or all different

Call "GOOSE"
if you think there are no more flights

+1 for each valid flight
+2 for a correct "GOOSE" call
-1 for any wrong answer

The first flight below is invalid: the first card has swords while the other two have no accessory. It would be valid if the first card was empty-handed, or one of the other two had paintbrushes.

The second flight is valid because there are no 2:1 splits; each feature is either all the same or all different.

thick osprey
#

Well yeah, I could read that. But I was raised with the NES. We didn't read the instruction booklet that came with the game. darkoLUL

fresh basalt
#

Maybe you didn't.

rough sapphire
#

i lost my ubuntu password is there a way to reset it

harsh tundra
fresh basalt
#

dude, drop it

#

I conceded, leave me alone

harsh tundra
#

I'm not a "dude" and you didn't concede before now, you only said you "regret pinging" which is only a sign you were annoyed and not admitting who's right

fresh basalt
#

I was raised in California, everybody is a dude.

tardy rain
#

Not your dude, brah

tardy rain
#

Hell yea buddy boy

tardy rain
#

Do they use cutting edge python?

#

Should have checked, dont remember

harsh tundra
#

Python 9 or later? Where are they located, in Night City?

#

Although idk if year 2077 would be enough to get to python 9

vale raven
naive igloo
harsh tundra
acoustic moss
little sky
acoustic moss
#

mfw print(2605)

limpid lynx
acoustic moss
#

define solve

limpid lynx
#

the program should find the answer, not you

#

mfw when i win an english related argument

little sky
limpid lynx
#

so even the answer was wrong lmao

acoustic moss
crystal spruce
#

if you disallow stuff like that, then you're effectively just making a decision on what properties of the problem you are allowed/not allowed to use

little sky
limpid lynx
#

pls no ban me

thick ore
#

hsp's answer is very concise

#

and outputs the answer

#

is also O(1)

crystal spruce
#

like say i have a 30 byte solution, but it only works if the problem is specifically 99 5's
is that allowed or not?

acoustic moss
#

this would be a more interesting golfing problem if the 98 was instead a number read from stdin

limpid lynx
little sky
crystal spruce
#

that is the exact problem

#

as you've given it

limpid lynx
#

nuh uh

#

read
the
question

crystal spruce
#

if you mean solving a general case, then you have to specify that

#

the question says "99" very clearly

little sky
#

No general case just the exact problem

#

You can hardcode 99

limpid lynx
acoustic moss
#

yeah, bro is seeing things written in the question

crystal spruce
#

the solution would do the exact same thing as print(1219)

#

so it's just where do you draw the line between print(1219) and something you would accept as an actual solution

limpid lynx
#

on its own

little sky
crystal spruce
#

i would solve it using python by solving it with math, and then printing the answer

little sky
#

Then solve it using math and post the proof.

limpid lynx
acoustic moss
#

that is a different problem

little sky
#

Then I will accept print(1219) as the solution. Trust me it's not easy to solve it using just math.

limpid lynx
#

just the handwritten proof works?

little sky
#

Try it out!

limpid lynx
#

alright

limpid lynx
little sky
#

Nope, but I have the my version of a good solution

limpid lynx
little sky
#

131 Bytes

limpid lynx
#

ok imma try to do what i can

acoustic moss
#

i have a 117 pithink

limpid lynx
#

wow good job

#

send it here

little sky
#

Post it on the twitter thread

limpid lynx
acoustic moss
#

ill still die on the hill that print(1219) is a valid solution by the problem statement

R=range
S=sum(map(t:=lambda r:int(f"7{'5'*r}7"),R(99)))
print(*(m+n for n in R(3000)for m in R(3000)if n*S==t(99)+m))
acoustic moss
little sky
#

Oh ok I will post on your behalf, let's see if anyone can beat you

limpid lynx
#

will it take less bytes if we omit R and S and just do it in a single line?

#

not omit S, only R

acoustic moss
#

yeah itll work

carmine apex
limpid lynx
acoustic moss
#

omitting S will save bytes

#

but it also makes it painfully slow to test

limpid lynx
little sky
limpid lynx
#
print(*(m+n for n in range(3000)for m in range(3000)if n*(sum(map(t:=lambda r:int(f"7{'5'*r}7"),range(99))))==t(99)+m))
acoustic moss
#

using R=range saves bytes when its used thrice

carmine apex
#

wait why does python not allow assigning a variable to R(3000)

limpid lynx
#

(idk i might be wrong)

acoustic moss
#

it does but idt it would save chars

carmine apex
#

it doesn't work

acoustic moss
#

you cant assign a var to the iterable inside a comprehension

#

with :=

carmine apex
#

birdfacepalm i used r for R(3000)
r is in the lambda

acoustic moss
#

ah

carmine apex
#

and yes, they're both 117. spaces required in the comp remove the savings

acoustic moss
#
R=range
print(*(m+n for n in R(3000)for m in R(3000)if n*sum(map(t:=lambda r:int(f"7{'5'*r}7"),R(99)))==t(99)+m))

is 113

#

but it recomputes S in each iteration

little sky
#

That's totally fine, not taking execution time into account

carmine apex
#

golly this is slower

acoustic moss
#

which im estimating will take on the order of a few minutes to finish

limpid lynx
#

what is it and why have you used it here

fringe rain
limpid lynx
#

this is not done by you

crystal spruce
#

i just wrote this

limpid lynx
#

joking

acoustic moss
carmine apex
#

"a few minutes" they said

acoustic moss
#

r=1 -> "757", r=2 -> "7557" etc

carmine apex
#

well it ain't done yet, and it's been 7

acoustic moss
limpid lynx
#

or would the latter give an error

carmine apex
#

the f prefix evaluates the stuff inside the braces

crystal spruce
#

!e

r = 7
print(f"7{'5'*r}7")
print("7{'5'*r}7")
royal lakeBOT
#

@crystal spruce :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | 755555557
002 | 7{'5'*r}7
limpid lynx
#

OH i get it

#

thanks!

little sky
# crystal spruce

Let me check if this correct and rigorous solution. But great job!
But this did take you more time than just brute forcing it.

crystal spruce
#

if i used a calculator it would've taken me less time

limpid lynx
acoustic moss
#

lmao did you calculate the n*S table by hand

#

legend

limpid lynx
#

somewhere on the internet

acoustic moss
#

if its a jee question its probably going to be a sum of GP type thing

little sky
#

Yeah I know the solution is easily available online

carmine apex
#

hooray

#

630 seconds

limpid lynx
acoustic moss
carmine apex
#

10.5 minutes, yes

limpid lynx
#

/s

carmine apex
limpid lynx
limpid lynx
carmine apex
#

oh shush with the logical scales, i'm teasing hsp

limpid lynx
carmine apex
#

i don't think either of us are succeeding

acoustic moss
carmine apex
acoustic moss
#

tbd

limpid lynx
#

what does tbd mean

carmine apex
#

it means treachery and betrayal

limpid lynx
#

what about the d?

carmine apex
#

(to be determined)

acoustic moss
#

treachery betrayal and deception

jaunty wraith
#

deceit

carmine apex
#

oh, you're quite familiar with such things, huh? no surprise i suppose!

hexed sierra
#

taha binky doop

carmine apex
#

tighly bensitive derson

crystal spruce
#

oh i just realized i didn't have to compute the entire table

#

i could've just looked at the leftmost digit since that has to be 5

jaunty wraith
limpid lynx
#

waiting for your friends to come online gotta be the longest thing ever

scarlet peak
#

i have 3 mentions but 4 pings

carmine apex
scarlet peak
#

how

limpid lynx
carmine apex
#

👻

limpid lynx
#

ghost ping

carmine apex
#

yall got casper'd matey

jaunty wraith
limpid lynx
limpid lynx
little sky
acoustic moss
#

what is this pond you speak of

hexed sierra
#

highly sensitive pond

carmine apex
acoustic moss
crystal spruce
carmine apex
#

official leek from pond of ducks

crystal spruce
#

should be fixed

limpid lynx
carmine apex
# crystal spruce

stickie why is the second column of the chart flush left it's highly disturbing

jaunty wraith
#

both columns should be right justified

acoustic moss
#

wrong

#

both should be centered

jaunty wraith
#

no u

acoustic moss
#

no

acoustic moss
#

aaAA

carmine apex
jaunty wraith
carmine apex
#

as long as the digit positions in 9315 are aligned correctly with the other numbers, then is okay

limpid lynx
#

what was the name of the tool which added semicolon to python

limpid lynx
carmine apex
#

y

limpid lynx
#

left or center justification right is yuck

carmine apex
#

you prefer

47452
9315
71178
``` this garbage?
limpid lynx
carmine apex
#

how can someone be so very objectively irrefutably wrong

acoustic moss
#

left < right < center

limpid lynx
acoustic moss
#

no

limpid lynx
#

yes

jaunty wraith
#

numbers being right aligned is the only sane decision

crystal spruce
#

diagonal justification when

carmine apex
#

okay. right > left > center

limpid lynx
#

nuh uh

acoustic moss
#

hm

#

i changed my mind

#

right > center > left

crystal spruce
carmine apex
#

also i misused "left justified" instead of "left aligned" or "flush left" and now i've infected you all

limpid lynx
#

me vs like 2 mods and a helper

jaunty wraith
little sky
# crystal spruce

Can you explain that you will definitely have a solution given m,n <3000?

acoustic moss
#

true

carmine apex
jaunty wraith
#

so flipping it is lawful good

carmine apex
#
        c
         e
          n
right >        > left
           t
            e
             r
jaunty wraith
#

what

acoustic moss
#

??

jaunty wraith
#

center fell off

carmine apex
#

center being in the center isn't chaotic enough

crystal spruce
scarlet peak
limpid lynx
#
                                                 center```
jaunty wraith
novel condorBOT
#
Missing required argument

code

jaunty wraith
#

ok

limpid lynx
#

have your right alignment you bastards

carmine apex
acoustic moss
#

&format

                                        right >        > left
                                                 center
novel condorBOT
#
Invalid Syntax!
  File "<unknown>", line 1
    right >        > left
IndentationError: unexpected indent

crystal spruce
jaunty wraith
limpid lynx
limpid lynx
acoustic moss
#

arthur ed

crisp fableBOT
#

?

acoustic moss
#

best bot

limpid lynx
#

are any of you left handed? tryna test out a hypothesis

jaunty wraith
#

sad kratos :(

hexed sierra
little sky
hexed sierra
#

which reminds me my issue asking for amogi and ducks has not been addressed

jaunty wraith
#

you could do it yourself

jaunty wraith
#

or bully stickie into doing it

limpid lynx
#

plural of amongus?

#

shouldnt it be amongi

carmine apex
hexed sierra
carmine apex
#

little mountainscape, really

little sky
hexed sierra
#

ideally someone that already has a test bot and server checks it first

limpid lynx
#

guys mountains or beach

jaunty wraith
#

neither

carmine apex
#

beach on mountains

limpid lynx
#

i hate mods

carmine apex
#

console player huh

limpid lynx
#

here comes the ban

limpid lynx
jaunty wraith
limpid lynx
hexed sierra
jaunty wraith
carmine apex
hexed sierra
#

could you do it?

jaunty wraith
#

nah

hexed sierra
#

smh

jaunty wraith
#

naha ainky hoop

hexed sierra
#

i left all the instructions in the issue 😔

jaunty wraith
#

ain't readin allat

carmine apex
#

also technically hawaii is a series of mountains with sandy beaches that touch the pacific ocean

limpid lynx
#

are yall obese like the memes (joke)

hexed sierra
limpid lynx
#

oof

carmine apex
#

yes

limpid lynx
#

tell me some simple but slightly difficult task to do im python noob

carmine apex
#

i suppose from a certain point of view, all continents are a mountain with a possibly-sandy beach that touches an ocean 🤔

jaunty wraith
limpid lynx
#

and then the ocean is right there

carmine apex
#

mountains can have depressions in them. like mt st helens had a giant chunk kaboomed out of it after it went kaboom

jaunty wraith
#

why did it go kaboom

limpid lynx
#

then the opening solidifes and rain accumulates = beautiful lake

carmine apex
#

the rocks got too hot and wanted to leave, so they forced their way out

jaunty wraith
#

damn rocks

jaunty wraith
limpid lynx
#

bruh

carmine apex
limpid lynx
#

Anak Krakatoa is a volcanic island in Indonesia. On 29 December 1927, Anak Krakatoa first emerged from the caldera formed in 1883 by the explosive volcanic eruption that destroyed the island of Krakatoa.

carmine apex
#

the gif is from the october 2018 eruption though

limpid lynx
#

yes

#

i just pasted whatever the intro in wiki said

carmine apex
#

moyen had lucky guess. aruk is 46 km from java

thick ore
#

lol java

limpid lynx
thick ore
#

truly

limpid lynx
# thick ore truly

Ladies and gentlemen, prepare yourselves for a comedic suare of such lavish detail and verbosity, that it may leave you questioning the very fabric of humour itself. Once upon a time, in the whimsical hamlet of jesterville, there lived a linguistically adept squirell named sir chatterton, known for his verbous anecdotes. One day he embarked on a particularly elaborate tale about a pun loving hedgehog, an heirudite owl, and a grammatically challenged snail. The narrative traversed through linguistic acrobatics, captavating the audience in a symphony of laughter. As sir chatterton reached the cresendo, he declared "why did the semi colon break up with the exclamation mark? It just couldn't handle the excessive excitement". And in that moment, jesterville echoed with the harmonious laughter of linguistically enlightened merriment

#

dont call the grammar police on me

thick ore
#

oh dear we have a yapperton

crystal spruce
little sky
thick ore
#

idk but the dsa guy from youtube told me that nested for loops are bad

little sky
crystal spruce
#

please don't

#

just stay in this chat

little sky
crystal spruce
little sky
little sky
hexed sierra
#

@crystal spruce morphocular's theta looking kinda sus

solemn tulip
#

I would be surprised if there wasn't some significantly better solution with some basic math though

crystal spruce
#

i realized after working through all the modulo stuff that the GP solution is like 5 lines

solemn tulip
crystal spruce
little sky
little sky
little sky
solemn tulip
#

so?

#

doing an in check in a range is O(1)

little sky
#

Never used range like this before so not too sure but:

https://stackoverflow.com/a/57933679/10373123

In python-3.x a range(..) is an object, it does not construct a list. If you perform member checks with an int as item, then it can do that quite fast. The algorithm is a bit complicated, since there are both positive and negative steps. You can look it up on [GitHub]. A simple algorithm with a positive step count (c > 0) for x in range(a, b, c) is something like:

x ≥ a ∧ x < b ∧ mod(x-a, c) = 0.

For a negative step count (c < 0) is is quite similar:

x ≤ a ∧ x > b ∧ mod(x-a, c) = 0.

If we consider the comparisons to be done in O(1) and calculating the modulo as well, it is an O(1) algorithm. In reality for huge numbers, it scales in the number of digits of the numbers, so it is an O(log n) algorithm.

#

This will be more costly than just comparison.

solemn tulip
#

comparing two numbers is also O(log n)

little sky
#

Yes for large numbers it is. Anyways let's benchmark the performance just to be sure.

solemn tulip
#

I'm not benchmarking this, I'm trying to make the overall algorithm just less crap

little sky
#

If comparison is crap, then all code in this world is crap

solemn tulip
#

I didn't say that

#

I meant the overall algorithm used