#ot1-perplexing-regexing
1 messages · Page 98 of 1
anyway I'll steal this
!d decimal.Decimal if you wanna (possibly) get them to be equal
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:
that doesn't handle complex I dont think
gmpy2.mpc
just forwarding what I got recommended yesterday lol
for this it doesn't really matter because the complex part is very easily separable
actually yea
just check if out**2 - 4*out is negative, and add a 1j if you need to
(0.5+0.8660254037844386j), (0.5-0.8660254037844386j) interesting
Hello, Is anyone here familiar with Fourier's theorem on polynomial real roots or just Budan's Theorem? Cheers.
what about it?
what would you ask these people if they happen to exist?
I remember reading about that in a random wiki article but thats the extend of my knowledge
I am writing a sort of research work related root finding algorithm, so looking for someone who has a bit of idea about it. Let me know if you're interested Cheers.
the knowledge of which i forgot about by now
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.
recruiting doesn't have to be paid.
If you are stuck or have a specific question about a non-python related topic, any off topic channel is fine
For instance, had you shared your actual question, you may already have had an answer by now
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.
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
Pardon? I am highly unsure if you're true. I am working on something that uses it.
Again, these have been extensively studied.
But good luck
sure but what's the problem you'd like to talk about and its okay if you want hit a DM but i prefer asking here
Starting a Monday with a refactor PR that changes 4 files, adds 3 lines, and removes 209 lines. FeelsGoodMan 
ending a monday with a network conn issue
anyone knows how to download kali linx
Home of Kali Linux, an Advanced Penetration Testing Linux distribution used for Penetration Testing, Ethical Hacking and network security assessments.
@delicate locust
thx
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
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.
i don't think it does
I just imagine the Teams developers knowing that they spend all their time betraying other developers.
they just had to make something for teachers and other simple people that are having meetings have to use
no need to make stuff that devs would like that would take way too much time to make
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
for now, it's only possible in Microsoft Teams
but like who even uses that
writing latex feel good hahaha i wish i could write it fast
i just use snippets in obsidian
from vite/react/tailwind to just some html, css, and image files lol
looks good
and would you look at that lmao
amazing!
Nice!
classic
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
wait a specific app to change dns? yours os doesnt just let you change it?
modern versions of Android (or maybe samsung's crappy rom, idk) will always use 8.8.8.8 and ignore dns settings UNLESS Private DNS is on (hence my DoT server)
but even with it on or off Discord doesn't wanna work with it
Tailscale's DNS override doesn't work either
I have to use a DNS changer app
sometimes I hate tech
Samsung's crappy rom, as you put it, doesn't really allow to change the launcher app as well. When I did it once - and that app actually started Samsung's, it was only used for custom lockscreen - I couldn't start USB tethering in the settings, it was just greyed out :x
Me fixing why the fuck the PV inverter stopped connecting. It was DNS
do I have to reset my phone to fix this...? urgh
Avoid Pushing Mongo
Why are skateboarding terms the goofiest things ever
time to play "repo guidelines or skateboard lingo"
lmfao
"360 bitflip"
riding switch is just board endianness
"little endian 180 swizzle"
git commit -m "pushing mongo to production"
mongo 🤮
git 😔
:ok_hand: Added avoid-pushing-mongo to the names list.
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?
:h word
:help word
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
Thanks, I've always used vim in vsc so I didn't know about the h command
is_word_constituent = lambda char: char.isalnum() or char == "_"
Technically you'll have to look at 'iskeyword
Without looking at vim, I'd just guess regex's \w since you said underscore
I'm not that familiar with regex either
@willow narwhal % is done and dusted! That was a lot harder than I thought it would be
https://paste.pythondiscord.com/FQNQ
great!
: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.
if you get a monday off, mondays role will be fullfilled by tuesday
Nah
same with monday
its an extra day
yea but it's at the end
and the monday feeling will just shift to tuesday
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
??
Friday is already a based day
it's more based if school is off
real
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).
@harsh tundra are you there?
Someone Please Myanmar
what
imagine Rust but without macros and all that safety stuff
something like Go but less fucky
Look into Roc
Then maybe tcl?
😔
Can't think of anything but this
https://gleam.run/
i dont like this language
but pipe is very cool
THIS
We need to evolve its ecosystem
thats the flutter one i think
yea its basically tied to flutter and UI
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||
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
Better in what way?
2x cooler
more requests per second at a low latency

built in formatter, linter, and package manager
rust makes me feel like a hackerman
no ownership and safety bullcrap
rust has all that too..
i know
🥹
not a lot of languages do that tho
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
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
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
i think they mean verbose
maybe it's just me but rust doesn't feel all that verbose
maybe its time to switch to python for a bit then
I still use python as my main language
especially with completions, I feel like I don't write anything "extra"
well if you're writing super-conventional python code it will naturally be verbose
(doc-strings, proper names, unnecessarily elaborate state machines, type annotations etc.)
I do 2/4
i use type annotations for the autocomplete
type annotations and proper names
and my names are pretty good half the time
lmao
TRUE!
Erlang is GREAT!
i have the beam... and otp... so i can code... reliably
ABBA 1982 MAMA 2016
Martin and Maja playing the Erlang song
you use emacs, hence your opinion is invalidated
hello i have tetris built into my editor hence your opinion is invalidated
wow, I can procrastinate from within my code editor?
revolutionary
btw I have tetris built into wordle
🏃
joe, have you watched the interview with emacs enthusiast video?
Emacs OS
Interview with an Emacs Enthusiast in 2023 with Emerald McS., PhD - aired on © The Emacs.
org. air date 1990.
Programmer humor
Software humor
Elisp humor
Software tools
Retro computing
Vim vs emacs editor
Computerphile
Emacs humor
Emacs jokes
emacs vs vim
Programming memes
gnu emacs
spacemacs
emacs memes
lex friedman ide
VS Code
confi...
Nim
yeah of course
M-x snake
M-x tetris
M-x doctor
M-x spook
M-x butterfly
i LOVE this video
doctor is literally the best
the real chatbot
im curious, what parts of it make you feel like its too low level to you?
I made a game 😄
Feel free to use any code from it
why's there a zip?
I tried to upload it as a zip
github already provides a way of downloading as zip
yeah
Done
ughhhh, I need to re-learn how to calculate euler313 angles ;_;
🤮
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.
this happened to me a couple times. your data should still be there, you're just on the wrong account
Go to your file explorer and see if the files from your normal user are still there
Thanks! I'll check it shortly
self hosters 🤝 premature optimizers
^
wasting time on imaginary problems
unicode meme
snake
so cute
Is that image edited?
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
Looks like cropped and increased saturation
it makes the fuzzy border of the cat sort of stand out against the background I think
looks almost unreal
interesting
i think it is due to the focus of the camera
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?
Files are still there, how do I undo all this and setup everything as it was before update error?
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Try restarting again. It put me back into my old user account when i did that
Is it possible to write a "print" or "input" function (I/O) without using any libraries?
(Any language)
(Preferably Python/C)
technically
def new_print(*args, **kwargs):
print(*args, **kwargs)
```doesn't use any libraries
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)
you can write to sys.stdout directly, sure
elloooo
does print use that? Is that like, DIRECTLY accessing the output?
but yeah long time no see!
"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
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
forget I asked
depending on what you mean by "DIRECTLY"
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.
This is exactly what happened. People suddenly realized that intelligence agencies does indeed backdoor systems and everyone is still in the reaction phase.
I mean if Reddit caught the Boston Bomber then Twitter can catch the Feds trying to backdoor the softwares.
go team Internet
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.
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."...
one of the few cases where the 3rd amendment applies
when the process starts it receives three channels for stdin stdout stderr (usually the same as its parent process) which can represent actual files or one end of a pipe
if you invoke it from a shell when the process writes anything to the stdout channel it is piped out to the terminal screen
(i think)
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
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🤡
when someone knowledgeable about the topic sees your question, they will help, its not mandatory for everyone who sees your question to provide you with an answer
Maybe my sentence was too disorganized, you misunderstood what I meant
I mean I think I am a clown not reading the rules and posting my questions in chat channels, instead of posting it in Help list
And I'm curious if this is something most ppl do or I'm really stupid
ohh
my bad
Lol it's ok
generally if its something simple people ask it in chat
elaborate things need python help
true
YOOO HELLO VINAM
Hii
reunion
til big tech's product is people.
Always has been
https://www.forbes.com/sites/marketshare/2012/03/05/if-youre-not-paying-for-it-you-become-the-product/?sh=4d3820005d6e
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 [...]
oh apparently we're not allowed to say that anymore https://www.techdirt.com/2012/12/20/stop-saying-if-youre-not-paying-youre-product/
Everyone has these "opinions"
It's annoying
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
not techdirt, the article it links
maybe the article it links too but I don't like techdirt
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
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.
techdirt sounds like a satire website name
i hate it because it's not as well supported as vp9 because Patents
which is weird
because x265
vp9 better
@steady jacinth 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?
why asking Opal Specifically?
that's a good question, idk
I may have known that, but I don't really have much of a recollection of it. I don't always remember things.
it's a great question for a thread or #software-architecture
oh, that exists!
some possible approaches are:
- Schedule a future task
- Use a GC approach
???
i think theyre asking a UX question
are you asking a python question or UX question?
what does UX mean?
User experience.
user experience
then its UX
ah nevermind
that's why I mvoed to off-topic, since its not really pthon related
yo
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.
sorry if im interrupting you. i wonder if it’s worth to downgrade from win11 to 10
it wasn't about running checks, it was about how can I make the user select whether the note expires or not, without disrupting the flow of saving a note, which I want to always be 1 button or shortcut
maybe pressing ctrl+shift+s instead of ctrl+s would save it as an expiry
idk
I actively avoid Windows.
Why would it disrupt saving?
well right now saving is simple. You open a new note, type stuff, then press ctrl+s and boom, the note is titled and saved automatically
could be a checkbox with a default
where would that checkbox be?
idk, some corner of the screen
hmm
"een"?
._.
I would replace the checkbox with a date/calendar thingy
"r"?
...
I'm.... not going to do it again
is it possible to do this in a clean and unobtrusive way?
in general, you can use any widget for your default value and make it switch to a calendar component onClick
or just adding an extra widget bar in general
so you could have a Expires: never that shows a calendar on click
sgtm
thing is, people might never use the expiry, and then end up with a bunch of cluttered notes they don't need any more
you could make it look like a chip or something. Or other visual cues
expires: in 30d and show calendar on click
or maybe I should have something on the note selection page
maybe editable in both places
I will be adding a "Properties" option when you right click on a note, may you could edit it in there along with the name
the embossed border feels so 90s web
's'?
gosh the date format
those damn americans
What html element would that be?
you could set the default expiration time to a month and then add a red exclamation to the side of each note where the expiration date is unedited. once the user edits it or sets it to not expire, the red mark goes away, you should also add a setting to change the default expiration date for new notes
bro went on a research journey
I need my YYYY-MM-DD
DD.MM.SS
season season
Please no
random.shuffle('YYYYMMDD')
None
:p
`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
what does that do


eNcRyPtIoN
WDYM
Hii 👋
are you indian?
yeah
all of y'all got the same type of pfp
I'm using forms in django{{ form }}, no classes other than bootstrap form control
why does input stretch across width of screen?
you're not so different
lmao
this could be any east aisian country too
but anyways
really?
yea
oh
the date on my one year old candied peanut
southeastern aisa is MDY my bad
but:
form-control is width: 100%
set your width manually
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.
ye fs lol
is this ai generated lol
its an old meme
its very simple to edit
just search "toe meme" on google, you'll get it
got it
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
most comprehensible ot1 comment
what is the right sub for this
I guess I won't delete this lol
perfect for ot channle
imagine getting roasted for your bad genshin builds on the python discord
r/Genshin
r/NahidaMains
r/KusanaliMains
i see
This is not build BTW
this is Rotation
in degrees or radians?
gradians
of course it's in pechus
Now that you're here you're gonna be tricked into learning
You're going to judge my rotation as well?
I'm all ears
no xq eqe?
But I don't have Energy problem so guess it's better this way?
@steady jacinth how is the notepad coming along?
made some design planning on paper, had a few more ideas, not done much practical work on it since
I somewhat agree. I wear crocs and I like them.
wtf
yo dawg
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?
hi, we have a list of curated resources that we frequently recommend to beginners:
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
highlights:
- automate the boring stuff with python
- a byte of python
thanks!
how? they can't even be waterboarded
"Ok, you may now be relieved of your life"
image goes hard
Baldwin IV of Jerusalem (Latin: Balduinus, French: Baudouin) (1161–1185), known as the Leper King, was the king of Jerusalem, from 1174 until his death in 1185. He was admired by his contemporaries and later historians for his willpower and dedication to the Latin Kingdom in the face of debilitating leprosy. Choosing competent advisers, Baldwin ...
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.
okay I need more people to talk to about Kendrick's euphoria tho, really inspiring me to be a better hater
lol nah, if I'm hating then I'm hating with my whole chest
amateurs
hate with your whole being
whole being?
my entire bloodline has a common hatred
How do you hate with your chest?
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
This you?
Genuinely spoke to my soul
I found it
#python-discussion message are the servers for PC Rust and console Rust different? @tranquil sleet
I honestly wouldn’t know
It’s like vanilla rust with basic multipliers
I got basic world commands also
So basically, i’m trying to just create a bot that would serve as what pc plugins do,
Right now every server has like $5 lr metal kit type shit; I wanna just create a good server and get sponsored by d11 down the line for the upkeep.
Pretty much everyone selling shit screwed themselves outta that kinda deal
But, if i were able to level the playing field in making a non malicious bot that can run servers like what Rcon kinda does, i’d be estatic.
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.
Test
I wish but read the first thing it says
Ok
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
Yeah on console version of rust :/
It is within the “command console” that it will take place tho
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
“05/01/2024 19:14:15:LOG:DEFAULT: [CHAT LOCAL] UnlawfulActions : d11_quick_chat_i_need_phrase_format d11_Wood”
Pops up in chat box
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^
its ok i was making it to dificult for myself and confused myself
ah ok we all do it
hi
Jrlo
I was awoken
Now I must find a way to get back to sleep
Going to read chem for a bit
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
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
yay beef
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?
Dudes writing poetry to one another is never not amusing
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.
Python
Yes
what do I win?
silicon wafer
hello
hi
It's biological.
biological microprocessor
Become active in the server instead of "waiting", it's not time-based but activity-based
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.
.dddg
(5, 6, 10) - import discord as PyNon
Flights everyone missed:
(2, 7, 9)
(0, 1, 8)
Final scores:
import discord as PyNon: 0
.ddg
Final scores:
forgor: 3
.ddg
(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)
Final scores:
Nicky | xe/xem they/them 🌈 | ᓕᘏᗢ: 2
.ddg
(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!
Final scores:
forgor: 5
I am acitve ant thanks yeah ok
Why is this fucking spam back
anyone here does cybersec?
#sir-lancebot-playground exists for this
In future if you want to play bot games please use #sir-lancebot-playground
it saves the offtopic channels from bot spam
(and that channel was created for that specific purpose)
I wasn't even the first who used it here. And this channel was fully dead when other users did that and when I did that
I just played one game to "continue" the trend, it was almost 5h from last activity - that was also the same game
Would you do this in #python-discussion if it were fully dead?
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
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.
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
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. 
.dddg help
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.
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. 
Maybe you didn't.
i lost my ubuntu password is there a way to reset it
Only the other person who did 1 game. You didn't ping a person who played half the games by themself
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
I was raised in California, everybody is a dude.
Not your dude, brah
They're All Gonna Laugh at You! (1993) - Track 03
Hell yea buddy boy
Python 9 or later? Where are they located, in Night City?
Although idk if year 2077 would be enough to get to python 9
You still don’t have 3.0 in 2077?
that python better be faster than C
Omg, typo, I'm so used to writing "python 3" I did it automatically
timezones, man
mfw print(2605)
"The code should solve the problem..."
define solve
find an answer to, explanation for, or means of effectively dealing with (a problem or mystery).
the program should find the answer, not you
mfw when i win an english related argument
Correct, print(1219) won't work
so even the answer was wrong lmao

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
Haha yes
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?
this would be a more interesting golfing problem if the 98 was instead a number read from stdin
i dont think that satisifies the question
You have to solve the exact problem
if you mean solving a general case, then you have to specify that
the question says "99" very clearly
bro is seeing things
yeah, bro is seeing things written in the question
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
did you solve the question using certain steps? the code has to do all of them
on its own
Suppose you didn't already knew the answer how would you solve it using Python. Minify that code.
i would solve it using python by solving it with math, and then printing the answer
Then solve it using math and post the proof.
thats not solving it with python, thats solving it yourself and then printing it with py
that is a different problem
Then I will accept print(1219) as the solution. Trust me it's not easy to solve it using just math.
really?
just the handwritten proof works?
Try it out!
alright
have you received any submissions yet?
Nope, but I have the my version of a good solution
how many char is it?
131 Bytes
ok imma try to do what i can
i have a 117 
Post it on the twitter thread
i wanna see
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))
i dont use twitter
Oh ok I will post on your behalf, let's see if anyone can beat you
will it take less bytes if we omit R and S and just do it in a single line?
not omit S, only R
yeah itll work
of course. i was getting nothing, and suspecting float errors. not even decimal could save me. removing the division fixes it
then do it
we need less bytes not more speed
I get that it is a valid solution and I didn't specify exact rules. But suppose you were given this problem and you had to come up with the answer fast. Solving it using math and just printing the solution will be very slow and time consuming in this case. Will update the rules. Thanks!
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))
using R=range saves bytes when its used thrice
i see
wait why does python not allow assigning a variable to R(3000)
its a range
(idk i might be wrong)
it does but idt it would save chars
it doesn't work
i used r for R(3000)
r is in the lambda
ah
and yes, they're both 117. spaces required in the comp remove the savings
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
That's totally fine, not taking execution time into account
golly this is slower
which im estimating will take on the order of a few minutes to finish
Very slow but seems correct.
can you explain the f string
what is it and why have you used it here
I was gonna suggest R=range(3000) since they're non-exhaustive, but I saw the R(99) 😔
this is not done by you
i just wrote this
joking
f"7{'5'*r}7" creates a string of "7" followed by r "5"s followed by another "7"
"a few minutes" they said
r=1 -> "757", r=2 -> "7557" etc
well it ain't done yet, and it's been 7
i didnt actually run it smh
whats the difference between f"7{'5'*r}7" and "7{'5'*r}7"
or would the latter give an error
the f prefix evaluates the stuff inside the braces
!e
r = 7
print(f"7{'5'*r}7")
print("7{'5'*r}7")
@crystal spruce :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 755555557
002 | 7{'5'*r}7
Let me check if this correct and rigorous solution. But great job!
But this did take you more time than just brute forcing it.
if i used a calculator it would've taken me less time
there is a solution available to the public
somewhere on the internet
if its a jee question its probably going to be a sum of GP type thing
Yeah I know the solution is easily available online
thats a few minutes isnt it?
shadow reveal
10.5 minutes, yes
remember, this is "a few minutes"
in the grand scheme of time, it is
oh shush with the logical scales, i'm teasing hsp
and im tryna annoy you
i don't think either of us are succeeding
this is why i get my minions to run it instead of running it myself
when do i get my share of the carboard they call pizza as loyal minion
tbd
what does tbd mean
it means treachery and betrayal
what about the d?
(to be determined)
treachery betrayal and deception
deceit
oh, you're quite familiar with such things, huh? no surprise i suppose!
taha binky doop
tighly bensitive derson
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
when was this meme born?
waiting for your friends to come online gotta be the longest thing ever
i have 3 mentions but 4 pings
how
someone pinged you then deleted it
👻
ghost ping
yall got casper'd matey
I have not caught up with the pond
i read that in a scottish and australian accent
to us regular people, the link shows "No access"
@crystal spruce you have mixed N and n in the proof.
what is this pond you speak of
highly sensitive pond

N is 7 {5*99} 7
i have, but that doesn't affect the validity of the proof
official leek from pond of ducks
the article sounds highly sarcastic, its like mocking people who overreact in public for no reason
stickie why is the second column of the chart flush left it's highly disturbing
both columns should be right justified
no u
no
is this better
aaAA

could be better
as long as the digit positions in 9315 are aligned correctly with the other numbers, then is okay
what was the name of the tool which added semicolon to python
this is triggering me
y
left or center justification right is yuck
you prefer
47452
9315
71178
``` this garbage?
its better than right just
how can someone be so very objectively irrefutably wrong
left < right < center
just inverse right and left
no
yes
numbers being right aligned is the only sane decision
diagonal justification when
okay. right > left > center
nuh uh
this is chaotic good
also i misused "left justified" instead of "left aligned" or "flush left" and now i've infected you all
me vs like 2 mods and a helper
so like, left < center < right
Can you explain that you will definitely have a solution given m,n <3000?
true
having right on the left is more chaotic, tbh
so flipping it is lawful good
c
e
n
right > > left
t
e
r
what
??
center fell off
center being in the center isn't chaotic enough
that's the "for the problem to make sense, there has to be a solution"
if the table didn't generate any values that worked, then that'd mean there's no solutions, if that's what you mean
🤦🏽♂️👎🏽
center```
&format
code
ok
have your right alignment you bastards
stickie or whoever asked for it, i got yer diagonal alignment now
&format
right > > left
center
File "<unknown>", line 1
right > > left
IndentationError: unexpected indent
can i get sinusoidal alignment
average robin L
i would prefer the other diagonal
lancebot better cope
arthur ed
?
best bot
sad kratos :(
open a PR for the xkcd font in our latex header
@crystal spruce The answer could be no such m,n exist. This solution isn't very rigorous and gives guessing vibes.
which reminds me my issue asking for amogi and ducks has not been addressed
you could do it yourself
amogi?
or bully stickie into doing it
also sorta other diagonal, too, per cobra:
g t f
i h n e e t
r t e r l
c
> >
i don't wanna set up all the testing environment to check it myself
little mountainscape, really
Also can you share the markdown?
ideally someone that already has a test bot and server checks it first
guys mountains or beach
neither
beach on mountains
i hate mods
console player huh
here comes the ban
moderators
is that a thing?
if you dump a ton of sand and water on a mountain then yeah
do you have a test bot?
yes
bodies of water occur on mountains, yes. like a lot
could you do it?
nah
smh
naha ainky hoop
i left all the instructions in the issue 😔
ain't readin allat
also technically hawaii is a series of mountains with sandy beaches that touch the pacific ocean
are yall obese like the memes (joke)
yes, that's how your mom likes it (joke)
oof
it's also an island
yes
tell me some simple but slightly difficult task to do im python noob
i suppose from a certain point of view, all continents are a mountain with a possibly-sandy beach that touches an ocean 🤔
even if you're below sea level?
sea floor is sandy
and then the ocean is right there
mountains can have depressions in them. like mt st helens had a giant chunk kaboomed out of it after it went kaboom
why did it go kaboom
then the opening solidifes and rain accumulates = beautiful lake
the rocks got too hot and wanted to leave, so they forced their way out
damn rocks
quiz: id the volcano
somewhere in Java
bruh
aruk krakatau, yes. went kaboom in october 2018, then superkaboomed in december, destroying itself and making a big tsunami
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.
you beat me to it :<
the gif is from the october 2018 eruption though
moyen had lucky guess. aruk is 46 km from java
lol java
very funny
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
oh dear we have a yapperton
that's what i said
if no such m,n exist, then this method would be able to tell you that
Can you think of a faster solution than this @acoustic moss:
sum1 = sum([int(f"7{'5'*i}7") for i in range(99)])
num2 = int(f"7{'5'*99}7")
for m in range(3000):
for n in range(3000):
if n * sum1 == num2 + m:
print(m + n)
break
else:
continue
break
idk but the dsa guy from youtube told me that nested for loops are bad
DMing you to understand your solution better.
Okay, can you elaborate more on this?
actually i see what you mean now
you could use GPs to show that it'll work, but at that point you've basically solved the problem that way already
Yeah that's what. But anyways your approach would have worked in MCQ format. Good try!
Nested loops are bad if you can avoid them, in this case how would you proceed then?
@crystal spruce morphocular's theta looking kinda sus
an obvious improvement is
sum1 = sum([int(f"7{'5'*i}7") for i in range(99)])
num2 = int(f"7{'5'*99}7")
for n in range(3000):
m = n * sum1 - num2
if m in range(3000):
print(m + n)
break
I would be surprised if there wasn't some significantly better solution with some basic math though
the general formula for S having r fives is 13*r-77 + 9
i realized after working through all the modulo stuff that the GP solution is like 5 lines
what's even the original problem? 🥴
i'll use regex syntax
define f(r) = 75{r}7, N = sum(f(i) for i in range(99)), S = f(99)
find integers n,m < 3000 so that N = (S + m) / n, and compute m + n
@solemn tulip
We shouldn't check if m is in a range. We can just compare:
sum1 = sum([int(f"7{'5'*i}7") for i in range(99)])
num2 = int(f"7{'5'*99}7")
for n in range(3000):
m = n * sum1 - num2
if 0 < m < 3000:
print(m + n)
break
we shouldn't we?
m will always be a integer only
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.
comparing two numbers is also O(log n)
Yes for large numbers it is. Anyways let's benchmark the performance just to be sure.
I'm not benchmarking this, I'm trying to make the overall algorithm just less crap
If comparison is crap, then all code in this world is crap