#ot1-perplexing-regexing
1 messages Β· Page 13 of 1
the mother among usβ’οΈ

lol
Maybe that's exactly what it wants you to think? have you considered that?
HOLY JEE WILIKIRS!!
indeed
And for some reason my brain turned it into "Holy Jee Wilikirs III, Esq."
Does anyone know how to flip your screen (ctrl + alt + arrow) but using a windows command?
@narrow dune (pinging here to not disrupt #python-discussion) i believe let originates from math, with let x = y meaning "let x be y"
Why are you pinging me?
I didnβt ask for that
were you not the one who asked for what let meant?
Nope
huh. must have been someone else.
Nw
iirc it's @wooden agate
yep that me
ah that makes sense
Discord
Reported to trust and safety.
I wanna work on a programming language written in C, anyone interested (looking for a newbie in C like myself)
nayone?
CPython awaits your pleasure
wdym
1h 30m earlier but it's the main implementation of python
basically where all changes to python executables in the official website at https://python.org/ are done
i know what cpython is π i was wondering what he meant
work on CPython
A forums website template i've been working on, largest thing added here is sorting of posts and pinning certain ones
as usual, disregard css
account ban any% speedrun glitchless
I'm honestly surprised trust and safety hasn't nuked it already
Nuked it? After all its discord kek
They're usually pretty good about deleting the accounts of underaged users
waiting the bribe
Can you beat chatgpt?
it wants you to think it doesn't but it actually is skyn- obv not
Whats skynet
Nvm dont wanna know
I had a good life at least
took them 3 months nice
@gaunt basalt so what subjects do you have exams at?
practicals in following week
then college entrance
idk ask an indian if they are ready for jee and neet lol
ig yeah somewhat
i am hopeful
well I am sure you have a great path, in the future, so no matter what you do, things will end up good for you
like you are smart, its impossible to not find your place somewhere very good
lol i hope so what about u how is ur life going
well I would prefer for my soul to leave my body
and enter the other world
as you enter college
there are a few years left till you get to the real world
and have you thought at a roadmap for your career and future
dr strange w
what is kamar taj?
Kamar-Taj is a fictional location appearing in American comic books published by Marvel Comics. It first appeared in Strange Tales #110 (July 1963) and was created by Stan Lee and Steve Ditko. The name "Kamar-Taj" does not appear in early Lee/Ditko Doctor Strange stories, but was created later as the country's backstory was fleshed out.
yeah I would isolate from the society on an island
index.html:181
Uncaught TypeError: Cannot read properties of null (reading 'insertAdjacentHTML')
at XMLHttpRequest.<anonymous>
// To get request data into your web page
request.addEventListener('load', function(){
const [data] = JSON.parse(this.responseText)
console.log(data.capital);
console.log(data);
// Add Data into Html
const htmldata = `
<div class="img">${data.flag}</div>
<div class="content">
<h3>${data.capital}</h3>
<p>${data.altSpellings}</p>
<a href="#">
<button>${data.timezones}</button>
</a>
</div>
`;
container.insertAdjacentHTML("afterbegin",htmldata)
})```
console.log(data) is working
but it is not showing data into web page html
π
It actually depends on the type of keyboard specifically. Some scripts are written using Latin characters and then converted, some have keyboards directly using target characters. Or they have versions where phonetic sounds are like qwerty keyboard. I played with different keyboards a few years ago already, used both types. Rn I have Polish qwerty on my phone with both Polish and English dictionaries, Russian phonetic, and Ukrainian standard (non-phonetic)
yes, I can use a korean keyboard in a phone but not in a computer?
You can use any keyboard on your computer. But I think that with Windows 10+ it became a bit harder as you have to install language pack, not only configure the keyboard
Linux distros usually have it easier with keyboard
But Windows always connected keyboards with "language" settings (different from system language)
Microsoft SwiftKey (mobile keyboard) says Korean has at least 5 layouts. 3 of them seem mobile-oriented, tho, so I don't think that translates to how many keyboard types for Korean there are on Windows
(I cannot check rn, as I'm playing board games with my partner and their sib's family)
https://boardgamegeek.com/boardgame/167791/terraforming-mars this game, to be precise
Compete with rival CEOs to make Mars habitable and build your corporate empire.
With most add-ons
We don't play the politics one because it would take too long
That's not even full photo of the play area (the politics sub-board is there but we're not using it)
They have changed!
No need to spam this in every ot channel
The fact that ot channel names change is known to all
ok
!offtopic just see the description
Off-topic channels
There are three off-topic channels:
β’ #ot0-psvmβs-eternal-disapproval
β’ #ot1-perplexing-regexing
β’ #ot2-never-nesterβs-nightmare
The channel names change every night at midnight UTC and are often fun meta references to jokes or conversations that happened on the server.
See our off-topic etiquette page for more guidance on how the channels should be used.
Vivek has been canceked
Why
Why not?
That might hurt viveks feelings
Anyone else love this channel? https://www.youtube.com/watch?v=JIvKgSyvtxI
Today we're going to talk about how to test #RustLang, and how this is less essential than testing in other popular languages.
β€οΈ If you would like to support what I do, I have set up a patreon here: https://www.patreon.com/noboilerplate - Thank you!
Thanks very much to today's sponsor RazorSecure.com
Check out their open Rust positions at htt...
horror game
Just a game with 3 add ons (one more on the table but not in use)
hii bro
this
White parts are just each person's board to mark earnings and resources + played cards (we opt to mark blue cards being used by rotating them, that takes some space). Red is actually the boards themselves
Business game?
Terraforming Mars. I provided the link above :3
Compete with rival CEOs to make Mars habitable and build your corporate empire.
Corporation is just your starting conditions + special power. We also use Preludium addon to vary the starting conditions more.
But I usually have bad luck with making my hand work with whatever powers I have... This time I had cheap cards but that also meant low starting cash, so I could build colonies... And I mostly got expensive cards. +We play with two overthinkers, it's really tiring. We haven't played it in ages
Uncaught TypeError: Cannot read properties of null (reading 'insertAdjacentHTML')
at XMLHttpRequest.<anonymous> ```
container.insertAdjacentHTML("afterbegin",htmldata)
@thick osprey they got rid of the promotion where there would be a few consecutive afternoons of half-off or BOGO frappuccinos, in favor of having more BOGOs overall throughout the year
and then one Christmas I was on register for BOGO holiday drinks. I had a really elaborate system for keeping track of all the cups that hadn't actually reached the bar yet. And if a customer tried to touch the cups, I would swat their hand.
There are few events in my working life that have left such a mark as that afternoon/evening I was helping. The day we had $2 medium pizzas for carry out only (15 hours tossing dough), the very first Black Friday I ever worked, and that one time I worked for an inventory company and we did an inventory at a mis-managed Victoria Secrets. All of them have left a scar.
I respect the heck out of the system.
I also think informed consent matters, so before someone ordered, I would tell them how long the oldest cup that hadn't made it to the bar had been there; "The next drink to enter the queue was ordered x minutes ago". But no one left at that point, I guess because they had already been waiting in line to order for 15+ minutes.
I don't get why people were willing to wait that long just to spend less to pour sugar and coffee into their gaping maws.
Because coffee
last week I walked to a grocery store, and it was too crowded, so I walked home empty handed.
and I wanted to get actual food.
Yeah, I was basically a bar-back for the event. It was immediately clear that I didn't belong anywhere within the triangle of production. I was running supplies as called out, cleaning, and wondering where in my working career I'd taken a wrong turn. haha!
I lasted a week there and then moved to a Target which then led me to where I am now. I did, however, get an offer to return to that store if my internship had fallen through.
Wow, that was nearly nine years ago now.
How time flies.
are you an analyst for Target, or something like that?
(Target was the grocery store I walked out of. Having only four self-checkouts and two cashiers is an insult when they expect me to pay like 30% more for groceries.)
Nope. I was a marketing specialist for a retail store until they shut it down. I heard of a tech company in the city doing tours. Took one. Got on a winter internship. The rest is history.
wooooooooooooooo
Holy shit... 9 years? No no... I've been where I am for seven which means it's been THIRTEEN since I started at Target.
time
time please
that was half my life ago 
@thick osprey have you been following the sbux unionization thing? I own shares of sbux, and every year I vote against every member of the board.
I have been. I have two friends who are pushing to further unionize on the east coast. I've backed them in the only way I can. If it goes south, their rent is paid.
We need more of that trend >.>
it was well known for years that the company never wanted baristas to unionize, since being a good place to work was part of Howard's vision for the company and the brand. But it's too late for that now, and the refusal to capitulate is just making it worse.
When I was burning bridges at Target I was told "This is an amazing company to work for" and asked "Name a retailer that treats their guests and their team members better"
My answer probably sealed my fate there but I thought it rang true: It doesn't matter how good you look when the bar for average is resting in the mud.
you're right though. I would rather work for Target than Walmart. But not by much.
It's a shame, Walmart. I worked there for 11 months when I was just 19. They used to have seven principle beliefs of Sam Walton in the break room walls. I remember spending my 30 minute lunches staring at that wall, reading them, and wondering how the company just tossed them all to the wayside.
The answer, of course, was profit but I was young and didn't understand.
I'd work for Sam Walton.
I won't enter any store that is his namesake today.
did the company change after he died? because the founder of starbucks has been the CEO on-and-off, but is currently, and he's not changing course on any of the things that currently suck about the company.
The company changed, yes. The difficult thing to answer is what caused the change. Was it greed from the children/shareholders? Was it the natural way of things with the growth and market control the company eventually had?
Somewhere, buried in the little fragments of the massive corporation are seven little ideas that Sam wrote down as "how to run a good company" and they peek up every now and then.
Probably shareholders
I'm willing to bet it's both.
Inevitable thou given how corporations are run nowadays all short term
No long term vision
Profit now!
If there's shareholders, then there's a fiduciary responsibility to give them a return on investment.
Yes
But a visionary CEO could sell a long term vision that will lead to greater profits in the future not this quarter and be sustainable long term and ethical
Where are they
It's the tail wagging the dog
Well, we need systems that are sustainable for longer than human lifetimes. And private investors aren't going to go for that
German corporations seem to do better
I might go back to investigating it. It's a part of history that interests me.
What part of history? The birth of capitalism?
I suppose that's a larger part of the picture. I'm more interested in the founders of things that change over time. So, I guess I'm interested in change itself. Where the tides shifted, where the mental thoughts altered from one path to another, and all that.
Send this to Starbucks maybe https://en.m.wikipedia.org/wiki/Codetermination_in_Germany
Codetermination in Germany is a concept that involves the right of workers to participate in management of the companies they work for. Known as Mitbestimmung, the modern law on codetermination is found principally in the Mitbestimmungsgesetz of 1976. The law allows workers to elect representatives (usually trade union representatives) for almos...
Systems that are sustainable and fairer do exist (outside US)
Think outside the American Box and find solutions to intractable problems
I think that is against some server rules if it is soliciting for work
his yt channel is also nice
@brisk sail
Hey rust people, riddle me this, what's the difference between str and String and why format() returns latter?
an&strisn't owned, a String is. Sinceformatnecessarily creates a whole new string, it returns a String (it can't return an &str because then who actually owns that string?)
The chaotic evil answer is 'static
(and str without a reference is... that's a bit complicated, it's a dynamically sized type much like a slice ([T]), so you can never "have" a str - there must be some indirection like a reference or a box or whatever)
I'm not actually a rust programmer, asking for a friend. Why caller of format cannot be an owner of that str?
Not even that it's correct lol
That's what returning a String does, basically - it's then up to the caller to dispose of that string. As in, when the String gets dropped, the memory actually holding the underying str gets deallocated.
Understandable
Here's an alternative way it could be: format could return an &str, if that reference can be assumed to live forever - in other words, and &'static str. For that, it would have to create a string and leak it, ensuring it never gets destroyed. That'd work, it'd just mean wasting memory on a string that lives forever for no reason.
in fact, behold:
macro_rules! format_but_bad {
($($arg:tt)*) => { Box::leak(format!($($arg)*).into_boxed_str()) };
}
fn main() {
let res: &'static mut str = format_but_bad!("{} {}", 5, 10);
println!("{}", res);
}
format, but it returns an &'static mut str by leaking the String normal format returns π₯΄
rust is great
alacritty π
tmux π
how do you "divide" your terminal in kitty/alacritty?
the first thing that comes to mind is tmux then GNU screen
me when i don't want tabs
iirc it's smthg like ctrl + shift + t
in kitty?
ok good i'll try it out
For split it might be ctrl + shift + enter
π
Okay yea ctrl + shift + enter is the split one
While ctrl + shift + t makes a new tab
You should also be able to modify the keybinds in kitty.conf
certified alacritty moment
Hey @fiery vessel , how are you? Sorry for the ping, I just have a question for you. What are good resources to learn about biology HS or uni level? I'm taking biology at my fourth year of HS and I'm a bit worried on my knowledge of biology since I haven't taken it since like middle school.
During your junior or senior year your school probably has an AP Biology class available (granted your school does AP)
It's roughly about the level of Uni I would say
But doesn't go as indepth
Prereq would probably be some basic chemistry since you need to understand bonds and some stuff with animo acids, etc
It helps for reading models
Unfortunately my school only does English AP and Math AP
iirc also Spanish AP
but its quite rare
Im taking Chemistry next year in junior year!
Are you pursuing biology in college/university
Not really, but i do like the topic and would like to learn more about it
Also I'm pretty sure since it's a regular biology class for HS you don't need to worry since it'll be basic
For AP Biology perhaps you'd be more worried but I wouldn't be for just a regular class
I know it will be easy because tbh, my schools curriculum isnt the best, but i would just like to learn enough about it
Well, I don't know what a basic biology class in HS teaches about so I wouldn't really know the best sources
I frequently read research papers on PubMed for things I need for biology
If you can handle that later I would use that source a lot
Ic, maybe ill look at them and ill look up things i dont understand, maybe if i dont understand something which i will try my best to do, i can maybe contact you?
Sure but I would be careful cause with PubMed you will probably get into a pitfall unless you have a good understanding of the basics
Heres an example paper about Mitochondrial mutations https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7276526/
What do you think are the basics?
Well, in python you learn about primitive data types, functions, etc then go onto OOP and other paradigms
yep
It's sorta like that, I would try to learn about DNA, translation, transcription method
Uhh
Evolution
I should also look up on bonds i suppose?
Never heard of it
Theory basically says that the earliest eukaryotes encapsulated a prokaryote (the mitochondria) because they couldn't produce energy on their own
And those organisms were deemed fit to continue so we've just evolved to keep mitochondria
they also split and so on
oooh i see
And they also evolved i suppose?
Speaking of eukaryotes and prokaryotes you should also learn those two
Will do!
Well I suppose anything with DNA can evolve because of mutations
I also should look up on DNA i just got the base definition of it, which would be like code in a sense
Sure
You also will get to chromosones genes, alleles and other things with DNA
Crossovers, etc
Yeah i dont really have a great understanding on all the concepts you just said
I have allot to look up onπ
Also
What made you study biology? Have you just always liked it as a kid or as a teenager?
I studied biology because I wanted to know how things work
Then that got me to programming via cellular automata
And genetic algorithms
I see, may i ask how much experience you have with programming and biology and have you ever taken computer science classes in uni, seems like you have allot of talent?
Sorry for all the questions, just curiousπ
No I haven't taken computer science
I learned most of the stuff I know through the internet
Biology I've done a decent amount of stuff
Ah i see, how many years have you done programming and what was your first language?
Studies?
yea some papers, did a few internships, one for crispr
I've programmed for 5 or so years now
my first language was vbs
i see
You have way more experience than meπ
Anyway, @fiery vessel thanks for the talk, Happy New Years! Take care!
P.S sorry for the ping
@scarlet wadi what even is a night roast
to roast me that hard im going to bed and cry myself to sleep
why would I do that
u wanted to become more active aggressive u said
or would u phrase that as "mean"
tbh, I think the term "passive agressive" is overused. and not a good descriptor of my attitude. I think it's more accurate to say that I'm impatient with uncooperative people.
thats totatlly fine
so u arent aggressive at all
πΏ
u just have principles
@frozen crane
something like that. though I wonder what it means to be aggressive in the context of a Discord server. What makes someone "aggressive" in their role as question answerer, or as moderator? Can trolls be "aggressive"?
aggressive trolling would be spamming i guess?
probably a very subjective perception of the written text

i know when i first met u in chat around my first days here i was like ok he hates me π
but was mainly due to dumb question and incomplete information
so by now i can somewhat understand that behaviour better π
but now i gotta go to bed @frozen crane wish u a "productive" night
sleep well 
thanks to the one random person that starred my repository that was not me.
heppy fels
am fameos
am fameoser
Reminds me of this
Issue pertaining to one's experience in skill
me who just follows everyone who follows me
Can confirm. Am following you
Hmmm
I dunno... all I know is that I don't know anything.
Deep.
Well time to listen to the cow and get to writing.
_________________________________________
/ Write down everything that happens in \
| the story, and then in your second |
| draft make it look like you knew what |
\ you were doing all along. - Neil Gaiman /
-----------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
Have wiser words been... uttered?
Wiser words have never been uddered
mmm, d's and t's confuse me in words too much.
Well, I've gotta run, happy writing!
you must do whatever the cowsays
I thought this channel name had "shitpi" instead of "shipit"
fucking snapchat news
who uses snapchat anymore, lets be honest
shit died in 2021
This is not advertising, I just want to share what i made https://github.com/VelikiFeniks0/SkyOS
guess what kinda code im running
L = [0]
while True:
L = L + L
import pathlib
pathlib.Path("file.txt").write_text(str(L))
100 mbs write?
thats more like it
imma run it after this is done
yeah seems about right
it was actually producing this
!d numpy.ndarray.compress
ndarray.compress(condition, axis=None, out=None)```
Return selected slices of this array along given axis.
Refer to [`numpy.compress`](https://numpy.org/devdocs/reference/generated/numpy.compress.html#numpy.compress "numpy.compress") for full documentation.
See also
[`numpy.compress`](https://numpy.org/devdocs/reference/generated/numpy.compress.html#numpy.compress "numpy.compress")equivalent function
Idk
I am fameos too π₯²
checks to make sure this is off topic section
which one looks the best?
D
Sorry
You've mistaken this for Google my dear friend.
Also I just realized you multiposted
Don't do that it's cringe
B looks cute
H
πΏ
That's supposed to be discord logo? Then the "hands" or whatever that is, need to go towards the middle. So that gives us either B, C, or I
I think B is nice, sigh kinda implied bottom and kinda "ππ" cute emoji
While C looks like a weird smile, I looks like π
i was looking for recommendations smh
Gotta be B for me
Creator of...
I didn't screeshot everything
Should I add paint and solitaire?
bro
you don't need a book to learn it
just know what every instruction does and write what you want the computer to do
I believe it was a joke (creator of programmers = creator of a person (having children) = parent)
that's not really helpful whatsoever
there are always nuances to writing something well
huh? that's how I do it personally
it works for me
maybe depends on your learning style, mine is more hands-on
wtf can i write
like what how
sure
depends on what you want your program to do
but there's no harm in supplementing that with a more guided approach
a lot of those costs money
i never need anyway
you can google search for x86 manual from Intel
ok
my laptop is burning
it's only 5060 pages
oh nice
have fun and good luck with whatever you're programming
if you have specific questions you can ask in an ot channel
Afaik most of that isn't an instruction listing
Addressing modes and such take way more words
They're still important
Multiple people working at Intel
I am 13 years old
Okay this is what it says
Not arcane discord bot
Nor any arcane you know
Arcane is my biggest project that I made
And it's very successful
@rough sapphire I had a dell gaming laptop, and it worked great for about three years.
8 gb is fine?
for RAM or what?
Ram
depends on what games you want to play. I would see if you can find a good deal on one with 16gb.
8 gb one's r like 800$ 16 gb gonna cross 1k$ ig ;-;
I see. anyway, here are what your considerations are:
- RAM -- you already know about this
- Hard drive size -- how much space you have
- Hard drive type -- There's solid state drive (SSD) and hard disk drive (HDD). solid state has faster IO
- Number of CPUs -- More is better
- Processor speed -- how fast the CPUs can do stuff
- GPU memory -- More is better, but it only matters during gaming
And then there are things like screen size, how many USB ports it has, whether or not it has a CD drive, etc. But in general, it's up to you to decide how you want to weigh those main considerations, and find whatever you think the best deal is, as long as it isn't HP.
do any laptops these days have HDDs? ig if you're buying used you might but i don't think any new laptop would
hp is that bad ?
New ones? Yeah
why would newer models be more likely to have SSD than HDD?
cause they're cheap and faster
everyone in my family who has bought HP products have regretted it.
which one is cheap and faster?
nowadays, SSDs in the 1-2 tb range are much cheaper
when you said "do any laptops these days have SSDs?", are you sure that you didn't mean HDD?
yes, that's what i meant
In our tests, the HP computer with an HDD was painfully slow.
rekt
oof
yeah i mean for the same price as a 2 tb SSD you could get like, a 6tb hdd? but honestly not many people need that much space
you should make a RAID array with those 1tb sd cards
eh?
eh for which part?
idk anymore
mine works great for 2-3 years then overheat to 100 degrees using 0% cpu
Portable lap heating device
Could someone tell me how to connect two vga monitors with my laptop? I have hdmi type c and usb port. I would really like a device that uses only one port on my laptop and then splits into two wires for monitor .
Are those ports the only thing your laptop has?
GPUs can only support a certain number of monitors (usually depending on the ports)
ye
@jolly solar I was about to send a message in your help thread, but then the bot closed it :(
Do you still need help?
yes
so is it hanging in the outer or inner loop?
am here
The gnome world was funded by Cia to produce crack
thnks for changing channel btw
do u have a source?
Nice man named Greg who lives in an alley says the Crack he got has traces of gnome hair
do u mean gnome desktop environment btw?
I am talking about gnome world under the Mariana trench
nah π we were talking about linux
Dammit
i got concerned for a sec ngl
You should be, the Cia is producing Crack for a guy named John doe,
He is everywhere
Every form online has John doe
Feds are gonna raid my house for arson in a public area, but it's actually because of the 17 kilograms LSD I liberated from a lab
what are your thoughts on the lines and fill colour
how should they change
What cross-platform app would you suggest for journaling/short diary that has markdown support, is lightning fast, has pdf/HTML export, and is completely free of cost.
Emphasis is on markdown and lightweight. (looking for a dev-friendly tool)
Obsidian, maybe?
Or perhaps notion
obsidian isn't cross platform i thought
Both are not lightweight enough for me. I use them both for other tasks but need something quick and easy for journaling
Maybe a physical notebook π
It's cross platform and lightweight!
It's not that I haven't considered it ποΈ
But hard to index
True.
Perhaps you could write your own?
Would be a fun project I'd say
Yes, I found one in Python actually, here it is in case you want to see
Ig I'll stick to it and contribute to make it better. It's pretty active. Already made a PR
happy 2024

No? 3 kings day is on the 6th of jan
that's what i said
Who are you directing the first message?
more like 360 days too early :ΓΎ
also yes
taking applicants for me to redo their website
just dm me
I'm not sure this is right place for overt recruiting
jayson
jay has a son?
jay was the son
I assume the blame if you give a a few kg of lsd
What is your mailing address
Feds already got here but they didn't check under the floor boards
Brazil
if you're serious I can give one of my zip
one of them?
@grave cove middle school was only 7th and 8th for me. and we did all of 7th through 12th in the same school, but middle and high school were considered separate things (like, middle school courses aren't part of your GPA)
I was surprised when I learned that 6th is part of middle school in most US places
Was 6th grouped in with elementary school?
yeah
but by 6th, you have a different teacher for each subject anyway.
just without block scheduling
Ah ok.
Yeah that does happen in certain schools
Just surprised yall had 7-12 in the same school ;P
Was it like, same campus but still seperate "schools"?
nope, same school. the area with your locker was grade-dependent, and the administrative staff for your grade would be near your locker area, but anything that wasn't grade-specific (cafeteria, gym, the music area) was shared.
Ah, gotcha. Bit strange π
Was it a private school?
no, public school. I grew up in an area with a high density of single-family homes, so it was determined to be more cost-effective to just have one giant school, and send everyone's 12+ kids to the same place.
Must've been a lot of kids, then?
yeah, thousands
Sent
They are among us
One of them is among us
they are where now
SΓ£o Paulo
John, "example", Doe is in the Cia. they are currently distributing crack to the trees
Is this a serious issue or did some angry redditor just report you because they were mad?
I have no clue
Who did it
I got into an argument
As usual
And I consider it a victory because they stopped responding after i pointed out all their sources were false and cherry picked as well as the fact they kept throwing opinions as verified facts
we found the culprit
reddit has a habit of reporting people who they get into arguments with
what happens when at the bottom of the website the copyright is "Β©οΈ 2022 name" and not "Β©οΈ 2023 name" ??
The date of copyright should show the first publication date of the content, rather than updated every time
Although, if you update the content every year then you could update the date if you wanted to
but either way it doesn't affect the status
ooh thanks
Who is doing better? (I'm gold) cousin is silver
Whose turn is this
The real question is why are you taking a pic of your game mid match
cheating
Your cousin probably waiting patiently π

Yeah, I said it might be cheating earlier and I edited it out, lol
whats ur brain break?
Insta, youtube, Korean dramas, anime and krunker in the order of descending relief
Ohh anime.. Any good anime to suggest?
Sure, If you're into some gore and gut wrenching sadness I'd recommend cyber punk
Aww sheesh i watched that. Dang it was good
If you want something wholesome though tonikaku kawaii is the epitome of it according to me
Rebecca best girl
I agree, I guess if you like stuff like that I'd suggest tomodachi game
Are those new animes?
π , but I cant say she isnt in the top 3
Tomodachi game is new
Oh also vinland saga
S2 is coming this year so it's the perfect time to watch it
Heres how i see things:
Lucy - girl u want
Rebecca - girl u need
Kiwi - the girl u get
Lucy is peak prettiness, but rebecca is way more beautiful β π
You got good taste bro xd
You got some fine taste too
Ahaha thanks xd. Also suggest me some kdrama
Less cringe kdrama romance if possible
Of course
I rarely watch rom com k drama
I'm watching memorist rn, and it's cool, if you want a more amplified version of it (and also way better imo) try mouse
Mouse is my favourite
Thanks for these xd
np
As a reply to #python-discussion message @plain prism
I don't have 4 pronouns. Most people have more than that, because there are 5 forms. π Subject, object, possessive determiner, possessive pronoun, reflexive.
Those 4 in my name are pairs, showing what main pronouns and one of their forms I use. I use both xe/xem and they/them. Usually people choose they/them for me because it's easier (singular they is normative in English language).
the best part of english: there's no set rule of what words are correct, you can just make up words and boom, those are now words
the worst part of english: there's absolutely no consistency in pronunciation
Yes
Opponents
OED's word of the year is "goblin mode", which isn't even a single word π
Oh wait it's been more than 8 hours
Your bishop is hanging then?
Goblin-mode
Nah he just forfeited
Damn, I thought it was your turn and you had a free pawn
this year has been so goblin mode
Dash seems wrong here. Mashing them together without connector is slightly better.
The only goblin-derived word/term I know is goblincore. Goblincore is mood. Sometimes also named crowcore/corvidcore, but in Polish magpies are more associated with hoarding shinies, so I sometimes refer to myself as magpie.
https://www.youtube.com/watch?v=l1ma9KD9auM is it just me or this is just pure ASMR
Provided to YouTube by NAXOS of America
Prelude and Fugue in E Minor, BWV 548, "Wedge" Β· Jonathan Dimmock
Bach at Haarlem
β 2013 Loft
Released on: 2013-04-30
Artist: Jonathan Dimmock
Composer: Johann Sebastian Bach
Auto-generated by YouTube.
bro pressed his volume down and power in an unsynchronized manner lol
Shitpost quality
t
t
CHATGPT!!!!!!!!
CHATGPT
CHADGPT
GIGACHADGPT
GOOGLEPT
GOOGLEPLEXPT
How can you feel more content with your life?
nap more
go out for a walk lmao
and invest in spotify premium
this post was brought to you by
Your mom
My goal is to create a script to hit a list of urls and get their http status codes and if the status code is not equal to 200, then notify via e-mail. (In the email, list all the invalid urls)
I then also want to run it on cron (github actions)
Here is my code
const express = require("express");
const app = express();
const port = 5000;
const path = require("path");
const request = require("request");
const nodemailer = require("nodemailer");
// const require = require("require");
let urls = ["http://google.com", "http://goo3gllllllll.com"];
let transporter = nodemailer.createTransport({
host: "smtp.gmail.com",
port: 587,
auth: {
user: "ujjw@gmail.com",
pass: "a.com",
},
secure: false,
});
app.use(express.static(path.join(__dirname, "www")));
app.get("/", (req, res) => {
function getStatus() {
urls.forEach((uri) => {
request(uri, function (error, response, body) {
result = response.statusCode;
if (!error && response.statusCode == 200) {
res.end(`${uri} Is Up`);
console.log(result);
} else {
res.end(`${uri} is Down`);
// send mail
const message = {
from: "ujj32@gmail.com",
to: "worldtop@gmail.com",
subject: "Subject",
html: `<h1>Following URLs have issues:</h1>
<p>${uri} is down</p>`,
};
transporter.sendMail(message, function (err, info) {
if (err) {
console.log(err);
} else {
console.log(info);
}
});
}
});
});
}
getStatus();
});
app.listen(port, () => {
console.log(`Example app listening on port ${port}`);
});
The port for smtp.gmail.com is 465 not 587
climail/classes.py line 58
def __init__(self, password: typing.AnyStr, user: typing.AnyStr, smtp_server: typing.AnyStr = "smtp.gmail.com", imap_server: typing.AnyStr = 'imap.gmail.com', smtp_port: typing.SupportsInt = 465, imap_port: typing.SupportsInt = 993):```
that's not the issue
Yeah just pointing it out
I have created a script in node js which basically fetch some urls and get their http status codes. If the http status code are not equal to 200 and I want to send mail using nodemailer. (In the email I want to also send the url that is down).
Currently if 2 urls are down, nodemailer is sending 2 seperate e-mails. I only want to send one e-mail which will contain all the invalid urls.
const request = require("request");
const nodemailer = require("nodemailer");
const urlList = [
"https://www.google.com",
"https://www.mongodb.com",
"https://www.mongoslsdb33.com",
"https://www.google.comslflalfdkjlsdfj",
];
const transporter = nodemailer.createTransport({
host: "smtp.gmail.com",
port: 587,
auth: {
user: "email",
pass: "password",
},
secure: false,
});
function getStatus(url) {
return new Promise((resolve, reject) => {
request(url, function (error, response, body) {
resolve({
site: url,
status:
!error && response.statusCode == 200
? "OK"
: "Down: " + error.message,
});
});
});
}
let promiseList = urlList.map((url) => getStatus(url));
Promise.all(promiseList).then((resultList) => {
resultList.forEach((result) => {
if (result.status.startsWith("Down")) {
console.log(result);
const message = {
from: "from-email",
to: "to-email",
subject: "Subject",
html: `<h1>Following URLs have issues:</h1>
<p>${result} is down</p>`,
};
transporter.sendMail(message, function (err, info) {
if (err) {
console.log(err);
} else {
console.log(info);
}
});
} else {
return;
}
});
});
What should I do?
Dunno
Add invalid urls to a list, Send the mail at the end with the urls in that list
yes, that's what I also thought
I'm not able to push the result into an array
in the promise
The function the promiseList should just check if it is valid an append to an array
Idk tho
const request = require("request");
const nodemailer = require("nodemailer");
// list of urls that need to be checked
const urlList = [
"https://mongodb.com/blog/39384792/",
];
// e-mail setup
const transporter = nodemailer.createTransport({
host: "smtp.gmail.com",
port: 587,
auth: {
user: "email",
pass: "password",
},
secure: false,
});
//get the http status code
function getStatus(url) {
return new Promise((resolve, reject) => {
request(url, function (error, response, body) {
resolve({
site: url,
status:
!error && response.statusCode == 200
? "OK"
: "Down: " + error.message,
});
});
});
}
let promiseList = urlList.map((url) => getStatus(url));
//return a list of only the sites in an array with status of Down
const returnListOfUrls = Promise.all(promiseList).then((resultList) => {
const listWithDownStatus = resultList
.map((result) => result.status.startsWith("Down") && result.site)
.filter(Boolean);
return listWithDownStatus;
});
const runNodeMailer = () => {
returnListOfUrls.then((res) => {
const message = {
from: "email",
to: "email",
subject: "test",
html: `<h1>Following URLs have issues:</h1>
<p>${res.join(", ")} is down</p>`,
};
console.log(res, "---", message);
transporter.sendMail(message, function (err, info) {
if (err) {
console.log(err);
} else {
console.log(info);
}
});
});
};
runNodeMailer();
I figured it out
now the problem is that
when all the urls are valid, then also it is sending mail
" is down"
How can I fix it?
I don't want to trigger the mail when the urls are valid
a group of donkeys tried to carry out a coup d'Γ©tat in Brazil, in fact they only destroyed public property
I mean they are terrorists but they don't reach the goal
the Attorney General of the Union
have to disclose the name of the 100 companies involved in the payment of terrorists
Skill issue
I found the classic screen saver dialog in windows 11.
Settings -> Personalization > Lock Screen :: Related settings :: Screen saver
it's very embarrassing
and sad
a group of people that is literally controlled by fake news, lives and a few heads with bad intention
just need to have the minimal sense
huh?
the group of people who destroyed the square of the three powers here in Brazil
destroying paintings, ornaments received by other countries and so on
Have you ever seen how to play cattle?
they have a lot of footage so you can grab how they operate
Former Secretary of Public Security was arrested and had the manliness to return to Brazil and surrender to the police
and the commandar of the police
guh
call me Kant
@autumn pelican its a chat bot from openai, its pretty fancy for what it is but pretty bad if you treat it as anything more than that
People seem to think its the second coming of jesus and put all their hope on it or panic about their jobs
people on their way to freak out because some bot wrote some code (impossible)
Gpt bro can't even write a simple discord bot
Forget taking enterprise functionality on
new programmers freaking out because chatgpt solved rock paper scissors in python 2 mins quicker than them:
import random
# The options the computer can choose from
options = ['rock', 'paper', 'scissors']
# Get the player's move
player_move = input("Enter rock, paper, or scissors: ").lower()
# Check that the player entered a valid move
if player_move not in options:
print("Invalid move.")
else:
# Get the computer's move
computer_move = random.choice(options)
# Determine the winner
if player_move == computer_move:
print("Tie!")
elif (player_move == 'rock' and computer_move == 'scissors') or
(player_move == 'paper' and computer_move == 'rock') or
(player_move == 'scissors' and computer_move == 'paper'):
print("You win!")
else:
print("You lose!")```
acutally not bad
could do it with a dictionary
That would be more relavant for more complicated games like rock paper scissors lizard spock
It also changes the page title, never noticed that before
Didn't use %, 2/10
Determine the winner
Absolute spaghet of a conditional
>"You win!"
error in eror
.uwu
ewwow in ewow
can we go uwu'er?
.uwu
ewwow in ewow
aw
.uwu
Your input was invalid: Your message must have content or you must reply to a message.
Usage:```
.uwu [text=None]
.uwu UwU
uwu
All redheads must be eliminated
What
All redheads will be eliminated
Oh
.uwu fromage
fwomage
@scarlet wadi re. https://discord.com/channels/267624335836053506/1063385725015437332
pipe.steps['scaler'] would let you access the scaler, where you can find data_min_ and data_max_ amongst other things, does that help?
literally about to answer and the post closed on me
ah cool pipeline is new to mew nice that one can return its steps @glacial torrent
Based french teacher is giving hot chocolate and marshmallows to everyone
Not taking any tho
bwuh
No u
I was taught calculus by women 
Maybe they will also undestand
Guys any tips for getting motivation for learning a new prog lang? The first language i learned was python, I tried learning others after, but I always end up coming back to python and giving up.
do something that would be annoying/hard to do in python, I guess
performance-critical stuff, say
How can I read these?
put them in the floppy drive
What the heck is that
how do you have ancient artifacts
i have a floppy drive
what?
what is happening here... how does apl treat 2 β₯ 12 10 for example
so β³ 10 = 1 2 3 4 5 6 7 8 9 10
β½ β³ 10 = 10 9 8 7 6 5 4 3 2 1
then
2 β₯ 10 9 8 7 6 5 4 3 2 1
how does apl work after this ^^
someone finally told me
APL goes: 2^9 * 10 + 2^8 * 9 ... 2^0 * 1 for anyone wondering
what happens if you uwuify code
code go boom
.uwu code
code
not much
not necessarily
a deterministic uwuifier that uwuifies only all idents and doesn't insert arbitrary unicode could potentially be fine
.uwu
a detewministic uwuifiew that u-uwuifies onwy aww idents and doesn't insewt awbitwawy u-unicode couwd potentiawwy be fine
you just have to avoid collisions
avoid collisions by adding more w's
pwecisewy
.uwu (t:=(...).dir(),print(t[5][2]+t[0][3]+t[8][4]*2+t[4][3]))
(t:=(. rawr x3 .).diw(),pwint(t[5][2]+t[0][3]+t[8][4]*2+t[4][3]))
well, all chars that doesn't work in idents, really
no ;, no -, no , etc.
uwued python be like ```py
pwint(os.wistdiws())
oh right only local idents too
unless we do some fuckery. i have no idea how, but i'm sure such a thing exists.
what is that
i would assume a laminator
ew @ i use edge
Edge is best
vegan
If i gotta be a vegan to use edge then nevermind lol
its harder to cope using edge than it is to be vegan
π
if u used internet explorer, you can tell that microsoft used alot of the core code to make edge.. it handles webpages the same annoying way.. i hated it then and i still hate it! lol
My computer actually seems to handle edge better then it does chrome for some reason which is why i use it
i really dont understand why anyone would use a browser thats not firefox or de-googled chromium
im not some security nut that uses tor and a vpn, but like at that point you are begging them to track you
firefox ftw.. + ublock origin addon.. no ads anywhere
same
i tried to send a email to owner of Apache webserver begging them to stop supporting non-encrypted mode all together
yo rust keeps crashing every two seconds any tips on how to improve performance
running a 3060 yet every two seconds it drops to a freeze frame then window is loading waiting to respond
try compiling with --release
I use brave btw
ew
i use lynx btw
nah those are renderes
@untold horizon Per Rule 6, your invite link has been removed. If you believe this was a mistake, please let staff know!
Our server rules can be found here: https://pythondiscord.com/pages/rules
Nope
Went to go visit my cousins in Toronto
And we went on the beach
8k 60 fps camera and a steady hand tho
oddly peaceful and scary at the same time
just endless blue and a blazing sun above
has anyone played cuphead
humans are literally ||cancer||
||cities would look like a tumor if you zoom out enough||
||cancer cells can kill each other||
||cancer won't stop before it stops destroying its host||
||that's exactly what we are||
we are the aliens
society
Sussiety π€‘
Don't tell him about ant colonies
im 14 and this is deep
Beautiful..
aw manπ
just refresh a few times
i'm deep and this is 14
ant colonies are cancer
i am about to cry π #imdeepandthisis14
but ant colonies are actually good,,,,,
ants are really chad
14 deep and im this is
and is this 14? i'm deep
no 14 deep this is
ahhh ok sorry
Thoughts on how this looks?
Apparently, Wikipedia will have this skin in desktop in like three days
Just noticed you can remove the space at the right with the button at the bottom right
Oh, nice. This is amazing for wide screens to have both compact text and fit to width
At work I have a wide screen which I divide into 3rds at width. At home, we use 4k screens. I use same mappings for work, but my partner mostly uses whole screens
That's nice to hear
I also kinda like it (or at least okay with it?)
I've been testing it and I think the sticking point will be that the Table of Contents aren't easily visible with the new skin, compared to before
Yeah, I saw some people mention the ToC in the discussion page for the skin
Example of monitor layout. Pep8 line limits are great, this is around 100 characters width visible but I rarely have any line beyong that.
Tiled with gnome extension called gTile
How wide is that monitor tho
I don't have any measuring tool on me, but according to LG site that's around 70cm
LG 29WK500/50S, 2560x1080 resolution (21:9 ratio), 29 inch
htop lol
you're wrong
I wonder what happens if I press the big button at the top that says "Block number"... π€
Can you please explain
I don't get it
What is it telling me to do
"for details ... visit "
Wow. Just wow. A guided tutorial on building an os from the ground up
https://github.com/jmielkeway/ccos4rbpi_volume0
Bookmarked in case I ever start to think I am in any way better than anyone else.
https://github.com/mit-pdos/xv6-public this is a barebones os that you can change lots of things easily such as the scheduler and system calls
if your intrested in os
then if you actually want to make an os https://wiki.osdev.org/Main_Page
I recently installed arch, and I setup pywal π
why am i so good at programming 
do u drink soda
yes, I drink sodas
any ideas to modify cpython that isn't too hard
Pipe operator
How hard could it be when ecma is doing it
https://github.com/tc39/proposal-pipeline-operator
how should multiple arguments be passed
also what precedence
Idk, im not an expert pipeline-ologist
Theres already a proposal for js, go off of that
And use your best judgement β’οΈ
It should probably have the lowest precedence
feels wrong but ok
Start from something like
def add_two(x): ...
def square(x): ...
square(add_two(0)) # 4
0 |> add_two |> square # 4
Imagine the esoteric potential
lower than 5, 2, 4 or above it?
Idk what that means
like ```py
(a := 2, b) # walrus has a "precedence" higher than ,
actually let's not focus on multiple arguments for now
actually how about a precedence just below bitwise OR
Or just use Haskell
I'd rather keep making money with python and js thanks 
Lmao practical
The more python/js look and feel like elixir/ocaml/f# the better imo
Then someone should propose it
Mucho work and probably more work than usual for introducing new syntax and such
Intermediary variables to hold stuff only to be used in other function calls are annoyin tho
Writing a PEP isn't trivial either
In js especially, with async, you go from callback hell to tons of temp variables, piping would help
Yeah that is clutter
plumbing*
daaaaamn
Do the Mario
p
It's a me
Yoh didn't post any question or problem. So we cannot help
It's already loaded. This is your wallpaper
Try bigger window to see if something is cut from the view, I guess
Do you know what graphical environment (or whatever it is called) is that?
lik
What do you mean? You created a virtual machine with the system
Set virtual machine size scaling
Try ctrl+alt+t, it is a common shortcut to start a terminal
https://superuser.com/questions/1131728/kde-taskbar-missing this says what process to restart for the missing taskbar
it dont
i cant press that things
The link also says how to get to terminal-only session (the ctrl+alt+f[1-7]) so you can actually use a terminal
i press ctrl alt f7
thx
wait
i cant input anything
bruh
i didnt even made any login
uhm
what is default login?
uhmmmmmmmmm
Try ubuntu and ubuntu
ubuntu and ubuntu?
I went to Google to look what defaults it may use
Login ubuntu, password ubuntu
Or root and empty password
Reinstall this thing, maybe? Like, create from iso, don't download existing VM files... Or check if there are default passwords somewhere from where you downloaded it
kubuntu
site
thats where i got it
no vm file
(i downloaded lts)
Did you previously select skipping installation?
i didnt even saw anything
i saw logo "kubuntu"
and that
Here, in this window. You can select skipping installation so Virtual Box will go with defaults
yes
black scren
is they racist? why not white?!?!?!?!
Because not turning a pixel on is simpler than turning it on?
done ```pycon
'251' |> int |> (a:=[]).append
a
[251]
>>> from dis import dis
>>> dis("'251' |> int |> (a:=[]).append")
0 0 RESUME 0
1 2 PUSH_NULL
4 LOAD_CONST 0 ('251')
6 LOAD_NAME 0 (int)
8 SWAP 2
10 CALL 1
20 BUILD_LIST 0
22 COPY 1
24 STORE_NAME 1 (a)
26 LOAD_ATTR 5 (NULL|self + append)
46 SWAP 2
48 SWAP 3
50 CALL 1
60 RETURN_VALUE
so it evaluates the thing from left-to-right which is the reason SWAPs are needed
Its the pipe
Common in functional prog langs like elixir, f#, ocaml, etc
It does pretty much what the name suggests
why doesn't this work for me though
It doesnt exist in python
did he modify python?
Yea
added varargs support ```pycon
*map(int, '201754183') |> max
8
It's valid python syntax?
!e
"hello, world" |> print
@grave cove :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | "hello, world" |> print
003 | ^
004 | SyntaxError: invalid syntax
One day
more ideas anyone?
add the ability to specify where the piped arg goes, like x |> f(a, _) (with some other char since _ is an ident, but that's the idea)
ok i'll try
what if there's multiple
β«(_ ,like f(a, _, b
error, presumably
would something like
smol, large = min <| map(int, '168482') |> max
print(smol, large) # 1 8
be feasible?
not sure
i don't have any idea how that'd be parsed
ok
probably too niche to have a use tbh
that is horrible man
ok this is gonna be hard
so i won't do it for now
@rough sapphire this is the code
i wonder how it work for this homework
why it work
Can you explain why 3 is the correct answer?
3 is the correct answer because it move...
uhm may be i'll need to take photos
ok i get how the example works ```
ORIGINAL:
A B C
0 1 2 3 4 5 6 7 8 9 10
MOVE 1 (A):
B A C
0 1 2 3 4 5 6 7 8 9 10
MOVE 2 (B):
A B C
0 1 2 3 4 5 6 7 8 9 10
MOVE 3 (C):
A C B
0 1 2 3 4 5 6 7 8 9 10
oh noice thank you
Ahh
that iss absolute ly howw it wwork
i wonder why this code work
if i dont understand this thing i'll have to learn by heart the whole answer for the exam
π
Does it also work for other starting positions of A, B, and C?
yes
anywhere position of a b c on the whole number category
i also wonder how will this homework help me in the future
Do you need to move them in A-B-C order or can you skip turns?
I'm thinking of a scenario which has this: ```
A B C
0 1 2 3 4 5 6 7 8 9
they said "sequencely" in #python-discussion AKA sequentially
so needs to move in A-B-C order ig
