#ot1-perplexing-regexing

1 messages Β· Page 13 of 1

lavish igloo
#

hello

tulip cedar
#

the mother among usℒ️

drowsy rose
#

skynet

jovial oriole
#

Oh

#

No

clear plume
#

It’s not skynet

#

Yet :)

royal lakeBOT
tranquil iron
#

lol

tranquil iron
mystic isle
tranquil iron
#

indeed

plucky ridge
drifting sage
#

Does anyone know how to flip your screen (ctrl + alt + arrow) but using a windows command?

wraith hound
#

@narrow dune (pinging here to not disrupt #python-discussion) i believe let originates from math, with let x = y meaning "let x be y"

narrow dune
#

I didn’t ask for that

wraith hound
narrow dune
#

Nope

wraith hound
#

huh. must have been someone else.

narrow dune
#

Nw

grave cove
wooden agate
#

yep that me

clear plume
#

Discord

uneven pine
#

Reported to trust and safety.

rough sapphire
#

I wanna work on a programming language written in C, anyone interested (looking for a newbie in C like myself)
nayone?

rough sapphire
#

wdym

small coral
rough sapphire
#

i know what cpython is πŸ’€ i was wondering what he meant

lament cairn
#

work on CPython

jovial oriole
#

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

uneven pine
#

I'm honestly surprised trust and safety hasn't nuked it already

ionic bane
#

Nuked it? After all its discord kek

uneven pine
#

They're usually pretty good about deleting the accounts of underaged users

marsh cipher
jovial oriole
drowsy rose
mystic isle
#

you knwo this should have been called

#

wtfSchools

stable fulcrum
mystic isle
#

then you will understand

stable fulcrum
marsh cipher
#

I had a good life at least

wanton lake
elfin holly
#

@gaunt basalt so what subjects do you have exams at?

gaunt basalt
#

then college entrance

elfin holly
#

damn

#

do you think you ready for them?

gaunt basalt
#

idk ask an indian if they are ready for jee and neet lol

#

ig yeah somewhat

#

i am hopeful

elfin holly
#

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

gaunt basalt
elfin holly
#

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

sick swallow
#

@gaunt basalt wassup πŸ—Ώ

#

Me omw to disturb someone

sick swallow
elfin holly
gaunt basalt
# elfin holly 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.

elfin holly
#

yeah I would isolate from the society on an island

exotic warren
#

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

tardy rain
#

What is data

#

That gives me page not found

marsh cipher
#

why when you change you keyboard to korean

#

they still type alfa beta letters

marsh cipher
#

are you Zuckerberg

gleaming walrus
#

πŸ˜‚

harsh tundra
# marsh cipher they still type alfa beta letters

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)

marsh cipher
harsh tundra
#

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

marsh cipher
#

thanks

#

that's explain why I'm struglling

harsh tundra
#

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)

#

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)

rough sapphire
#

They have changed!

harsh tundra
#

The fact that ot channel names change is known to all

rough sapphire
#

ok

harsh tundra
#

!offtopic just see the description

royal lakeBOT
grave cove
#

Vivek has been canceked

thin cloak
#

Why

gleaming walrus
#

Why not?

thin cloak
#

That might hurt viveks feelings

grave cove
#

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...

β–Ά Play video
harsh tundra
exotic warren
harsh tundra
#

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

harsh tundra
#

Terraforming Mars. I provided the link above :3

#

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

exotic warren
#
Uncaught TypeError: Cannot read properties of null (reading 'insertAdjacentHTML')
    at XMLHttpRequest.<anonymous> ```
#

container.insertAdjacentHTML("afterbegin",htmldata)

frozen crane
#

@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.

thick osprey
thick osprey
frozen crane
# thick osprey 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.

thin cloak
#

Because coffee

frozen crane
#

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.

thick osprey
#

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.

frozen crane
#

(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.)

thick osprey
#

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.

frozen crane
#

wooooooooooooooo

thick osprey
#

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

frozen crane
#

that was half my life ago Pepega

#

@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.

thick osprey
#

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 >.>

frozen crane
thick osprey
#

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.

frozen crane
thick osprey
#

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.

frozen crane
# thick osprey I'd work for Sam Walton.

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.

thick osprey
# frozen crane did the company change after he died? because the founder of starbucks has been ...

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.

thick osprey
#

I'm willing to bet it's both.

thin cloak
#

Inevitable thou given how corporations are run nowadays all short term

#

No long term vision

#

Profit now!

frozen crane
thin cloak
#

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

frozen crane
#

Well, we need systems that are sustainable for longer than human lifetimes. And private investors aren't going to go for that

thin cloak
#

German corporations seem to do better

thick osprey
#

I might go back to investigating it. It's a part of history that interests me.

frozen crane
#

What part of history? The birth of capitalism?

reef goblet
thick osprey
# frozen crane 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.

thin cloak
# frozen crane Well, we need systems that are sustainable for longer than human lifetimes. And ...

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

thin cloak
#

I think that is against some server rules if it is soliciting for work

flint basin
#

i have it

last mantle
#

his yt channel is also nice

gritty zinc
#

@brisk sail

Hey rust people, riddle me this, what's the difference between str and String and why format() returns latter?
an &str isn't owned, a String is. Since format necessarily creates a whole new string, it returns a String (it can't return an &str because then who actually owns that string?)

topaz aurora
#

The chaotic evil answer is 'static

gritty zinc
#

(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)

brisk sail
#

I'm not actually a rust programmer, asking for a friend. Why caller of format cannot be an owner of that str?

topaz aurora
gritty zinc
brisk sail
#

Understandable

gritty zinc
#

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 πŸ₯΄

reef goblet
#

Damn

#

Why does everyone here know rust

grave cove
#

rust is great

rough sapphire
#

i love C
C is great

#

oh my god tmux doesn't work properly

#

tmux just hangs up

grave cove
#

alacritty πŸ‘
tmux πŸ‘Ž

fiery vessel
#

kitty πŸ‘

#

Alacritty doesn't even support ligatures last I checked

rough sapphire
#

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

fiery vessel
#

iirc it's smthg like ctrl + shift + t

rough sapphire
#

in kitty?

fiery vessel
#

I've never used windows/tabs for kitty

#

Yea for kitty

rough sapphire
#

ok good i'll try it out

fiery vessel
#

For split it might be ctrl + shift + enter

rough sapphire
#

πŸ‘

fiery vessel
#

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

ionic bane
#

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.

fiery vessel
#

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

ionic bane
#

iirc also Spanish AP

#

but its quite rare

ionic bane
fiery vessel
#

Are you pursuing biology in college/university

ionic bane
#

Not really, but i do like the topic and would like to learn more about it

fiery vessel
#

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

ionic bane
fiery vessel
#

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

ionic bane
#

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?

fiery vessel
#

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

ionic bane
#

What do you think are the basics?

fiery vessel
#

Well, in python you learn about primitive data types, functions, etc then go onto OOP and other paradigms

ionic bane
#

yep

fiery vessel
#

It's sorta like that, I would try to learn about DNA, translation, transcription method

#

Uhh

#

Evolution

ionic bane
#

I should also look up on bonds i suppose?

fiery vessel
#

endosymbiotic theory probably

#

that's where mitochondria came from actually

ionic bane
#

Never heard of it

fiery vessel
#

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

ionic bane
#

oooh i see

ionic bane
fiery vessel
#

Speaking of eukaryotes and prokaryotes you should also learn those two

ionic bane
#

Will do!

fiery vessel
ionic bane
#

I also should look up on DNA i just got the base definition of it, which would be like code in a sense

fiery vessel
#

You also will get to chromosones genes, alleles and other things with DNA

#

Crossovers, etc

ionic bane
#

Yeah i dont really have a great understanding on all the concepts you just said

fiery vessel
#

Then I would look into them

#

And also organelles and what not

ionic bane
#

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?

fiery vessel
#

I studied biology because I wanted to know how things work

#

Then that got me to programming via cellular automata

#

And genetic algorithms

ionic bane
#

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πŸ˜…

fiery vessel
#

I learned most of the stuff I know through the internet

#

Biology I've done a decent amount of stuff

ionic bane
ionic bane
fiery vessel
#

yea some papers, did a few internships, one for crispr

#

I've programmed for 5 or so years now

#

my first language was vbs

ionic bane
#

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

frozen crane
#

@scarlet wadi what even is a night roast

scarlet wadi
frozen crane
scarlet wadi
#

or would u phrase that as "mean"

frozen crane
scarlet wadi
#

thats totatlly fine

#

so u arent aggressive at all

#

πŸ—Ώ

#

u just have principles

#

@frozen crane

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"?

scarlet wadi
#

aggressive trolling would be spamming i guess?

scarlet wadi
frozen crane
scarlet wadi
#

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

jovial oriole
#

thanks to the one random person that starred my repository that was not me.

#

heppy fels

#

am fameos

small coral
hidden pebble
#

Reminds me of this

jovial oriole
grave cove
#

me who just follows everyone who follows me

thick osprey
#

Can confirm. Am following you

grave cove
#

me too

#

i follow the epic egg
the egg knows all

thick osprey
#

Hmmm ducky_sus I dunno... all I know is that I don't know anything.

grave cove
#

this is all there is to know

#

to not know is to know all

  • me, 11pm
thick osprey
#

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 |
                ||     ||
grave cove
#

philosophy cow

#

it knows all

#

πŸ™‡

#

or should i say...

#

HOLY COW

thick osprey
#

Have wiser words been... uttered?

grave cove
#

Wiser words have never been uddered

thick osprey
#

mmm, d's and t's confuse me in words too much.

grave cove
#

Well, I've gotta run, happy writing!

lament cairn
#

I thought this channel name had "shitpi" instead of "shipit"

stark bison
rough sapphire
#

who uses snapchat anymore, lets be honest

#

shit died in 2021

deft spade
jovial oriole
#

guess what kinda code im running

young shoal
#
L = [0]
while True:
  L = L + L
  import pathlib
  pathlib.Path("file.txt").write_text(str(L))
jovial oriole
#

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

royal lakeBOT
#

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
deft spade
deft spade
stone crystal
#

checks to make sure this is off topic section
which one looks the best?

rough sapphire
#

anyone got a good arm/x86_64 assembly book which i can learn from

#

pls???

deft spade
#

Sorry

uneven pine
#

Weird way of saying parent

uneven pine
#

Also I just realized you multiposted

#

Don't do that it's cringe

odd jasper
last mantle
harsh tundra
rough sapphire
deft spade
deft spade
deft spade
cinder laurel
#

you don't need a book to learn it

#

just know what every instruction does and write what you want the computer to do

cinder laurel
wraith hound
#

there are always nuances to writing something well

cinder laurel
#

it works for me

#

maybe depends on your learning style, mine is more hands-on

rough sapphire
cinder laurel
wraith hound
#

but there's no harm in supplementing that with a more guided approach

cinder laurel
#

a lot of those costs money

#

i never need anyway

#

you can google search for x86 manual from Intel

rough sapphire
#

ok

cinder laurel
rough sapphire
#

my laptop is burning

cinder laurel
#

it's only 5060 pages

rough sapphire
#

oh nice

cinder laurel
#

have fun and good luck with whatever you're programming

#

if you have specific questions you can ask in an ot channel

rough sapphire
#

ye

#

has anyone even read 5060 pages of CPU instructions

#

who wrote it πŸ’€

graceful basin
#

Afaik most of that isn't an instruction listing

#

Addressing modes and such take way more words

cinder laurel
#

They're still important

cinder laurel
rough sapphire
#

can somebody explain monads to me

#

never mind no one can explain it.

deft spade
#

Not arcane discord bot
Nor any arcane you know

#

Arcane is my biggest project that I made
And it's very successful

grave cove
#

or a comma

deft spade
#

Yeah

#

I will fix it

frozen crane
#

@rough sapphire I had a dell gaming laptop, and it worked great for about three years.

frozen crane
rough sapphire
frozen crane
# rough sapphire Ram

depends on what games you want to play. I would see if you can find a good deal on one with 16gb.

rough sapphire
frozen crane
# rough sapphire 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.

young shoal
#

do any laptops these days have HDDs? ig if you're buying used you might but i don't think any new laptop would

rough sapphire
#

hp is that bad ?

frozen crane
young shoal
#

cause they're cheap and faster

frozen crane
frozen crane
young shoal
#

nowadays, SSDs in the 1-2 tb range are much cheaper

frozen crane
#

when you said "do any laptops these days have SSDs?", are you sure that you didn't mean HDD?

young shoal
#

yes, that's what i meant

frozen crane
#

In our tests, the HP computer with an HDD was painfully slow.
rekt

young shoal
#

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

frozen crane
#

you should make a RAID array with those 1tb sd cards

young shoal
#

eh?

frozen crane
#

eh for which part?

young shoal
#

idk anymore

cinder laurel
grave cove
#

but hey

#

at least its portable tho

thin cloak
#

Portable lap heating device

opaque pelican
#

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 .

grave cove
#

GPUs can only support a certain number of monitors (usually depending on the ports)

opaque pelican
#

I connect two monitors at work

#

On the same laptop

grave cove
#

You have a docking station there?

#

Might wanna get one of those

glass zinc
#

ye

open fern
#

@jolly solar I was about to send a message in your help thread, but then the bot closed it :(

#

Do you still need help?

jolly solar
open fern
#

so is it hanging in the outer or inner loop?

jolly solar
#

inner loop

rough sapphire
#

am here

jovial oriole
#

The gnome world was funded by Cia to produce crack

rough sapphire
#

thnks for changing channel btw

rough sapphire
jovial oriole
rough sapphire
#

do u mean gnome desktop environment btw?

jovial oriole
#

I am talking about gnome world under the Mariana trench

rough sapphire
#

nah πŸ’€ we were talking about linux

jovial oriole
#

Dammit

rough sapphire
#

i got concerned for a sec ngl

jovial oriole
#

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

hearty viper
#

what are your thoughts on the lines and fill colour
how should they change

earnest dust
#

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)

grave cove
#

Or perhaps notion

young shoal
#

obsidian isn't cross platform i thought

earnest dust
# grave cove Obsidian, maybe?

Both are not lightweight enough for me. I use them both for other tasks but need something quick and easy for journaling

grave cove
#

It's cross platform and lightweight!

earnest dust
#

But hard to index

grave cove
#

True.
Perhaps you could write your own?
Would be a fun project I'd say

earnest dust
#

Ig I'll stick to it and contribute to make it better. It's pretty active. Already made a PR

rough sapphire
#

happy 2024

violet roost
#

you're 5 days late

#

but you too

young shoal
grave cove
#

Some people celebrate on the 6th IIRC

#

not sure which specific people

ionic bane
grave cove
#

that's what i said

ionic bane
#

Who are you directing the first message?

wraith hound
violet roost
#

also yes

deep breach
#

taking applicants for me to redo their website
just dm me

thin cloak
#

I'm not sure this is right place for overt recruiting

violet roost
#

I'm quite sure it isn't

#

!rule 9

royal lakeBOT
#

9. Do not offer or ask for paid work of any kind.

drowsy rose
#

jayson

somber vessel
#

$sudo

#

||How will you teach python to us?||

ionic bane
rough sapphire
#

jay was the son

marsh cipher
jovial oriole
#

Feds already got here but they didn't check under the floor boards

marsh cipher
#

if you're serious I can give one of my zip

ionic bane
#

one of them?pithink

frozen crane
#

@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

grave cove
frozen crane
#

but by 6th, you have a different teacher for each subject anyway.

#

just without block scheduling

grave cove
#

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"?

frozen crane
grave cove
#

Ah, gotcha. Bit strange πŸ˜“
Was it a private school?

frozen crane
grave cove
frozen crane
jovial oriole
jovial oriole
#

One of them is among us

grave cove
#

they are where now

marsh cipher
jovial oriole
jovial oriole
#

Hahaha

#

Feds

grave cove
jovial oriole
#

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

grave cove
#

reddit has a habit of reporting people who they get into arguments with

olive remnant
#

what happens when at the bottom of the website the copyright is "©️ 2022 name" and not "©️ 2023 name" ??

frozen coral
#

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

olive remnant
#

ooh thanks

frozen coral
#

Often websites just go for 2022 - Present

#

or whatever the first year was

jovial oriole
#

Who is doing better? (I'm gold) cousin is silver

rough sapphire
#

Material-wise, you

#

There might or might not be a tactic here

#

@jovial oriole

grave ferry
ionic bane
#

The real question is why are you taking a pic of your game mid match

hidden pebble
#

cheating

ionic bane
#

Your cousin probably waiting patiently πŸ˜”

hidden pebble
rough sapphire
rough sapphire
#

h πŸ˜ͺ

raven vector
#

whats ur brain break?

rough sapphire
#

Insta, youtube, Korean dramas, anime and krunker in the order of descending relief

raven vector
#

Ohh anime.. Any good anime to suggest?

rough sapphire
#

Sure, If you're into some gore and gut wrenching sadness I'd recommend cyber punk

raven vector
#

Aww sheesh i watched that. Dang it was good

rough sapphire
#

If you want something wholesome though tonikaku kawaii is the epitome of it according to me

raven vector
#

Rebecca best girl

rough sapphire
raven vector
#

Are those new animes?

rough sapphire
rough sapphire
#

Oh also vinland saga

#

S2 is coming this year so it's the perfect time to watch it

raven vector
#

Heres how i see things:
Lucy - girl u want
Rebecca - girl u need
Kiwi - the girl u get

rough sapphire
#

Lucy is peak prettiness, but rebecca is way more beautiful ✊ πŸ˜”

raven vector
#

You got good taste bro xd

rough sapphire
#

You got some fine taste too

raven vector
#

Ahaha thanks xd. Also suggest me some kdrama

#

Less cringe kdrama romance if possible

rough sapphire
#

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

raven vector
#

I search it. Its about a police stuff. And its tag as thriller

#

Interesting πŸ€”

rough sapphire
#

Yeah

#

Both are about serial murder

raven vector
#

Thanks for these xd

rough sapphire
#

np

harsh tundra
#

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).

tropic lichen
#

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

jovial oriole
jovial oriole
tropic lichen
#

OED's word of the year is "goblin mode", which isn't even a single word πŸ˜›

jovial oriole
#

Oh wait it's been more than 8 hours

grave ferry
#

Your bishop is hanging then?

jovial oriole
rough sapphire
thick ore
harsh tundra
#

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.

rough sapphire
#

"Goblin-mode" looks like a verb

#

average cookie rejecter brainmon

rough sapphire
molten nexus
jovial oriole
ionic bane
# jovial oriole

bro pressed his volume down and power in an unsynchronized manner lol

jovial oriole
#

Shitpost quality

rough sapphire
#

t

jovial oriole
#

t

steady jacinth
#

CHATGPT!!!!!!!!

rough sapphire
#

CHATGPT

stable fulcrum
#

CHADGPT

rough sapphire
#

GIGACHADGPT

stable fulcrum
ionic bane
#

GOOGLEPLEXPT

jovial oriole
#

How can you feel more content with your life?

young shoal
#

nap more

twin hearth
#

and invest in spotify premium

acoustic moss
#

this post was brought to you by

grave cove
steady mantle
#

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}`);
});
thick ore
#

and i absolutely love it

royal lakeBOT
#

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):```
steady mantle
jovial oriole
#

Yeah just pointing it out

steady mantle
#

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?

jovial oriole
#

Dunno

#

Add invalid urls to a list, Send the mail at the end with the urls in that list

steady mantle
#

yes, that's what I also thought

#

I'm not able to push the result into an array

#

in the promise

jovial oriole
#

The function the promiseList should just check if it is valid an append to an array

#

Idk tho

steady mantle
#
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();
steady mantle
#

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

marsh cipher
#

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

marsh cipher
#

the Attorney General of the Union
have to disclose the name of the 100 companies involved in the payment of terrorists

jovial oriole
#

Skill issue

cobalt remnant
#

I found the classic screen saver dialog in windows 11.
Settings -> Personalization > Lock Screen :: Related settings :: Screen saver

marsh cipher
#

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

young shoal
#

huh?

marsh cipher
#

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

lament cairn
#

guh

marsh cipher
#

call me Kant

tardy rain
#

@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

autumn pelican
#

lmao

#

thanks so much bro

rough sapphire
#

people on their way to freak out because some bot wrote some code (impossible)

jovial oriole
#

Gpt bro can't even write a simple discord bot

#

Forget taking enterprise functionality on

rough sapphire
#

new programmers freaking out because chatgpt solved rock paper scissors in python 2 mins quicker than them:

stark prawn
# rough sapphire new programmers freaking out because chatgpt solved rock paper scissors in pytho...
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

rough sapphire
#

could do it with a dictionary

stark prawn
#

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

tardy rain
#

Determine the winner
Absolute spaghet of a conditional
>"You win!"

grave cove
#

typo in channel name

#

eror

jaunty wraith
#

error in eror

acoustic moss
median domeBOT
#

ewwow in ewow

thick osprey
#

can we go uwu'er?

thick osprey
median domeBOT
#

ewwow in ewow

thick osprey
#

aw

stable fulcrum
#

.uwu

median domeBOT
#
You blew it.

Your input was invalid: Your message must have content or you must reply to a message.

Usage:```
.uwu [text=None]

stable fulcrum
#

.uwu UwU

median domeBOT
#

uwu

jovial oriole
#

All redheads must be eliminated

rough sapphire
#

What

jovial oriole
rough sapphire
#

Oh

rough sapphire
#

.uwu fromage

median domeBOT
#

fwomage

glacial torrent
scarlet wadi
jovial oriole
#

Based french teacher is giving hot chocolate and marshmallows to everyone

#

Not taking any tho

median domeBOT
#

bwuh

jovial oriole
#

No u

ionic bane
#

Just got my book about calculus and i found this

harsh tundra
ionic bane
#

Maybe they will also undestandpithink

mossy hearth
#

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.

gritty zinc
#

do something that would be annoying/hard to do in python, I guess

#

performance-critical stuff, say

jovial oriole
#

How can I read these?

gritty zinc
#

put them in the floppy drive

jovial oriole
#

What the heck is that

ionic bane
#

how do you have ancient artifacts

rough sapphire
#

i have a floppy drive

jovial oriole
#

Oh and how do I work this printer

#

I cant tell if it's a printer

rough sapphire
#

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

molten nexus
#

what happens if you uwuify code

ionic bane
#

code go boom

carmine apex
#

.uwu code

median domeBOT
#

code

carmine apex
wraith hound
#

a deterministic uwuifier that uwuifies only all idents and doesn't insert arbitrary unicode could potentially be fine

median domeBOT
#

a detewministic uwuifiew that u-uwuifies onwy aww idents and doesn't insewt awbitwawy u-unicode couwd potentiawwy be fine

wraith hound
#

you just have to avoid collisions

molten nexus
#

avoid collisions by adding more w's

wraith hound
#

pwecisewy

molten nexus
#

.uwu (t:=(...).dir(),print(t[5][2]+t[0][3]+t[8][4]*2+t[4][3]))

median domeBOT
#

(t:=(. rawr x3 .).diw(),pwint(t[5][2]+t[0][3]+t[8][4]*2+t[4][3]))

molten nexus
#

ah

#

it breaks

#

.uwu

print("hello world")
median domeBOT
wraith hound
#

no ;, no -, no , etc.

molten nexus
wraith hound
#

oh right only local idents too

#

unless we do some fuckery. i have no idea how, but i'm sure such a thing exists.

odd moon
#

i would assume a laminator

rough sapphire
#

ew @ i use edge

native wedge
#

Edge is best

cinder tulip
native wedge
cinder tulip
#

πŸ’€

rough sapphire
#

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

native wedge
#

My computer actually seems to handle edge better then it does chrome for some reason which is why i use it

cinder tulip
#

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

rough sapphire
#

firefox ftw.. + ublock origin addon.. no ads anywhere

cinder tulip
#

same

rough sapphire
#

i tried to send a email to owner of Apache webserver begging them to stop supporting non-encrypted mode all together

cinder steppe
#

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

gritty zinc
#

try compiling with --release

stable fulcrum
#

I use brave btw

thick ore
#

ew

rough sapphire
#

i use lynx btw

jovial oriole
#

Went to the beach today, it was really snowy

#

And skipped some stones

ionic bane
royal lakeBOT
#

@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

jovial oriole
#

Went to go visit my cousins in Toronto

#

And we went on the beach

#

8k 60 fps camera and a steady hand tho

grave cove
#

just endless blue and a blazing sun above

rough sapphire
#

has anyone played cuphead

pastel oar
#

ld

#

because

#

fuck me

#

i haev

rough sapphire
#

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

grave cove
#

society

jovial oriole
#

Sussiety 🀑

jovial oriole
noble atlas
thick ore
#

aw manπŸ˜”

stable fulcrum
rough sapphire
rough sapphire
#

i am about to cry 😭 #imdeepandthisis14

#

but ant colonies are actually good,,,,,

#

ants are really chad

stable fulcrum
rough sapphire
#

and is this 14? i'm deep

stable fulcrum
rough sapphire
#

ahhh ok sorry

rough sapphire
#

Thoughts on how this looks?

#

Apparently, Wikipedia will have this skin in desktop in like three days

rough sapphire
#

Just noticed you can remove the space at the right with the button at the bottom right

harsh tundra
#

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

rough sapphire
#

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

harsh tundra
#

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

tardy rain
#

How wide is that monitor tho

harsh tundra
young shoal
#

htop lol

jovial oriole
#

Please correct me if I'm wrong but

#

This is telling is me to call 911?

young shoal
#

you're wrong

grave cove
jovial oriole
#

I don't get it

#

What is it telling me to do

young shoal
#

"for details ... visit "

jovial oriole
#

?

#

Am stupid

#

Explain

#

Oh wait I get it

weary moat
#

Bookmarked in case I ever start to think I am in any way better than anyone else.

cinder tulip
#

if your intrested in os

timid latch
last mantle
#

why am i so good at programming ducky_sphere

rough sapphire
#

do u drink soda

timid latch
small coral
#

any ideas to modify cpython that isn't too hard

tardy rain
#

Pipe operator

small coral
#

also what precedence

tardy rain
#

Idk, im not an expert pipeline-ologist

small coral
#

what associativity

#

there's just so many questions

tardy rain
#

Theres already a proposal for js, go off of that

#

And use your best judgement ℒ️

#

It should probably have the lowest precedence

small coral
tardy rain
#

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

small coral
tardy rain
#

Idk what that means

small coral
#

actually let's not focus on multiple arguments for now

#

actually how about a precedence just below bitwise OR

tardy rain
#

I'd rather keep making money with python and js thanks ducky_sphere

thin cloak
#

Lmao practical

tardy rain
#

The more python/js look and feel like elixir/ocaml/f# the better imo

thin cloak
#

Yes

#

There is a pipe library for python but haven't used

thin cloak
tardy rain
#

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

thin cloak
#

Writing a PEP isn't trivial either

tardy rain
acoustic moss
grave cove
#

daaaaamn

thin cloak
#

Do the Mario

rough sapphire
#

p

grave cove
timid isle
#

help me

harsh tundra
timid isle
#

what

#

it just dont load

#

it stuck on that cool iamge

#

image*

#

i waited

#

many

harsh tundra
timid isle
#

how to get my taskbar?

harsh tundra
#

Try bigger window to see if something is cut from the view, I guess

timid isle
#

and why here already wallpaper?

#

i didnt installed it...

harsh tundra
#

Do you know what graphical environment (or whatever it is called) is that?

timid isle
#

lik

harsh tundra
harsh tundra
#

Try ctrl+alt+t, it is a common shortcut to start a terminal

timid isle
#

i cant press that things

harsh tundra
#

The link also says how to get to terminal-only session (the ctrl+alt+f[1-7]) so you can actually use a terminal

timid isle
#

i press ctrl alt f7

#

thx

#

wait

#

i cant input anything

#

bruh

#

i didnt even made any login

#

uhm

#

what is default login?

#

uhmmmmmmmmm

harsh tundra
#

Try ubuntu and ubuntu

timid isle
#

ubuntu and ubuntu?

harsh tundra
#

I went to Google to look what defaults it may use

#

Login ubuntu, password ubuntu

#

Or root and empty password

timid isle
timid isle
harsh tundra
#

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

timid isle
harsh tundra
#

Did you previously select skipping installation?

timid isle
timid isle
#

i saw logo "kubuntu"

#

and that

timid isle
#

its all!

#

no buttons

#

nothing

harsh tundra
# timid isle

Here, in this window. You can select skipping installation so Virtual Box will go with defaults

timid isle
#

black scren

#

is they racist? why not white?!?!?!?!

tardy rain
#

Because not turning a pixel on is simpler than turning it on?

timid isle
#

ok

small coral
#
>>> 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

rough sapphire
#

what's the |> operator

#

have never seen it

tardy rain
#

Its the pipe

#

Common in functional prog langs like elixir, f#, ocaml, etc

#

It does pretty much what the name suggests

rough sapphire
#

why doesn't this work for me though

tardy rain
#

It doesnt exist in python

rough sapphire
#

did he modify python?

tardy rain
#

Yea

rough sapphire
#

cool

#

(we need this)

small coral
grave cove
#

!e

"hello, world" |> print
royal lakeBOT
#

@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
grave cove
#

rip

#

Would've been great

tardy rain
small coral
#

more ideas anyone?

wraith hound
# small coral 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)

small coral
#

‫(_ ,like f(a, _, b

crystal spruce
#

let it go the other way

#

so <|

wraith hound
crystal spruce
#

would something like

smol, large = min <| map(int, '168482') |> max
print(smol, large) # 1 8

be feasible?

small coral
small coral
crystal spruce
#

probably too niche to have a use tbh

small coral
#

so i won't do it for now

heady hamlet
#

@rough sapphire this is the code

#

i wonder how it work for this homework

#

why it work

rough sapphire
#

Can you explain why 3 is the correct answer?

heady hamlet
#

uhm may be i'll need to take photos

small coral
# heady hamlet

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

heady hamlet
#

that iss absolute ly howw it wwork

heady hamlet
#

if i dont understand this thing i'll have to learn by heart the whole answer for the exam

#

πŸ™€

rough sapphire
#

Does it also work for other starting positions of A, B, and C?

heady hamlet
#

yes

rough sapphire
#

Ah

#

Lemme check the code for a minute

heady hamlet
#

anywhere position of a b c on the whole number category

#

i also wonder how will this homework help me in the future

rough sapphire
#

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

small coral