#ot1-perplexing-regexing

1 messages ยท Page 51 of 1

heavy minnow
#

ok

#

that says a lot

#

I hope

naive igloo
#

ah wait, actually pycharm does understand breakpoint()

heavy minnow
#

wdym understand?

naive igloo
#

i believe then it was vscode which didnt understand breakpoint()

heavy minnow
#

lol

naive igloo
#

and will be opened in a pycharm's debugger

#

instead of python's builtin

heavy minnow
#

wow

naive igloo
#

pycharm's debugger will then integrate with pycharm

#

which gives a nice GUI

heavy minnow
#

pycharm is smart

naive igloo
#

like this

naive igloo
heavy minnow
naive igloo
#

discord is a GUI app

#

pycharm is GUI

#

vscode is GUI

heavy minnow
#

๐Ÿคฏ

naive igloo
#

vim, however, is TUI (Terminal User Interface)

heavy minnow
#

๐Ÿคฏ

naive igloo
#

cuz it doesnt have graphics

#

only text

#

and is used via a terminal

heavy minnow
#

what exactly is the graphic part

naive igloo
naive igloo
#

buttons

#

little drawings

#

like

#

images

#

(icons are images)

heavy minnow
#

hmmm... ok

naive igloo
#

it doesnt say you cant do all of those in terminal

#

but lets be honest

#

this is actually TUI

#

and this is GUI

heavy minnow
#

is it just the code?

naive igloo
#

when you just opened it

heavy minnow
#

interesting...

naive igloo
#

so you can say a "welcome page"

heavy minnow
#

hmm

naive igloo
#

(linux just doesnt have a notepad, like windows-like notepad, or at least i havent found such)

jaunty wraith
#

neovim doubles up as a great notepad

naive igloo
heavy minnow
#

hmm

#

so do you use it for writing the code?

naive igloo
#

just text

heavy minnow
#

hmm

jaunty wraith
#

neovim good editor ๐Ÿ‘๐Ÿผ

heavy minnow
#

could a note pad be a GUI

naive igloo
naive igloo
#

i suppose you are on windwos

#

so just

heavy minnow
#

on mac

naive igloo
#

WIN + R, and run notepad.exe

heavy minnow
#

lol

naive igloo
#

yeah

#

uh

#

idk

heavy minnow
#

lmao

jaunty wraith
#

on mac, sure, TextEdit exists

#

also, Notes exists

heavy minnow
#

lol but what is the difference between TUI and GUI

jaunty wraith
#

Terminal UI

heavy minnow
#

the colours and all that you said up there?

jaunty wraith
#

Graphical UI

#

one is in terminal

#

the otherโ€ฆ is not

heavy minnow
#

wdym it is in terminal?

jaunty wraith
#

a terminal (emulator)

naive igloo
jaunty wraith
#

like Windows Terminal orโ€ฆ CMD

naive igloo
jaunty wraith
#

or Terminal.app, since you're on mac

naive igloo
#

only text symbols

heavy minnow
#

Idk why but I've used the windows terminal once

naive igloo
#

(colored text as well)

heavy minnow
#

but what does it do

naive igloo
heavy minnow
heavy minnow
naive igloo
heavy minnow
#

lol

naive igloo
#

that thing

heavy minnow
#

isn't that a computer?

naive igloo
#

well

heavy minnow
#

lol

naive igloo
#

in VERY ancient days

#

(i believe)

heavy minnow
#

lmao

naive igloo
#

computer and terminal to a computer

#

were different things

heavy minnow
#

lmao

naive igloo
#

like how now we have to ssh into a server

#

back then you had a terminal into a computer

heavy minnow
naive igloo
#

tho i pulled that info stright from my assumption

#

pls correct me

jaunty wraith
#

somewhere it's still done like that I'm sure

heavy minnow
jaunty wraith
#

but mostly no

naive igloo
jaunty wraith
#

personal computers, definitely no

naive igloo
#

most likely a cheap monitor + keyboard

#

like a direct terminal into a server

heavy minnow
#

wow my ignorance astonishses me

#

how do you even write that verb

naive igloo
heavy minnow
#

terminal?

jaunty wraith
#

what verb

heavy minnow
#

lmao

naive igloo
heavy minnow
#

astonishshshs

naive igloo
#

astonishing

heavy minnow
heavy minnow
naive igloo
#

it is more like an adjective, i think

#

i doubt

#

that

heavy minnow
#

can't it be used as a verb also?

naive igloo
#

what action would that imply

#

lmao

jaunty wraith
#

ah yes, I'm terminaling into my computer

heavy minnow
#

lmao

naive igloo
#

well

heavy minnow
#

idk why I laughed so much at that sentence because I don't even understand it

naive igloo
#

btw, iirc computers bugs are called "bugs", cuz the first computer bug was actually cause by an actual bug

heavy minnow
naive igloo
heavy minnow
naive igloo
#

CPUs were big enough to be able to do that

naive igloo
#

hm

#

maybe that you impress me

#

but then just use impress lmao

heavy minnow
#

cool story btw

naive igloo
heavy minnow
#

lmao

#

I need to get the definition of bug then

naive igloo
naive igloo
#

prob not CPU

#

but RAM

heavy minnow
#

wasn't the cpu inside the computer?

naive igloo
#

they had open parts

heavy minnow
naive igloo
heavy minnow
naive igloo
#

PCs were very edge of computing technology

heavy minnow
naive igloo
heavy minnow
naive igloo
heavy minnow
naive igloo
heavy minnow
naive igloo
#

very edge

#

because we dont have alternatives really

heavy minnow
naive igloo
#

(also i actually meant computers in generally, not PCs)

heavy minnow
heavy minnow
heavy minnow
jaunty wraith
#

supercomputers be like: I'm not at the edge, I am the edge

heavy minnow
naive igloo
naive igloo
#

i meant computers

heavy minnow
#

hmmm right

#

oh ok

naive igloo
#

PCs are personal computers

#

we also got servers

#

supercomputers

heavy minnow
#

oh no

#

lmao

#

I hate my ignorance

naive igloo
#

you are not ignorant

heavy minnow
#

how do you learn all this

heavy minnow
#

lmao

#

hahahhahahahaa

naive igloo
heavy minnow
#

that face always gets me

naive igloo
#

btw, another thing when debugging, you cant change code of application when it is running

#

it would be really nice if you could

#

but you cant

#

you have to fully restart the app

jaunty wraith
#

depends on the runtime

naive igloo
heavy minnow
# naive igloo curiousity โœจ

but you probably just google it in seconds and understands it, while I have to do research for hours to know the definition of every word they use to describe a basic concepts as server or idk

naive igloo
#

but generally no

jaunty wraith
#

lisp has famously supported debugging running apps like this

heavy minnow
heavy minnow
naive igloo
#

that thing

#

is called

#

"code"

#

and application is... a bunch of code which does specific job

#

like.... base64 is a coreutil application, which's job is to decode and encode base64-encoded data

heavy minnow
naive igloo
heavy minnow
#

lol

heavy minnow
#

lol

heavy minnow
#

which one was which one lol

naive igloo
#

lol

#

jk

heavy minnow
naive igloo
#

Base64 is basically converting binary data, into a specific representation out of characters

#

this can be useful to be able to send binary data, over url links

heavy minnow
#

isn't that ascii?

naive igloo
#

cuz base64 uses ASCII set

heavy minnow
#

hmm

#

oh no

naive igloo
heavy minnow
#

they're different things

#

lol

naive igloo
#

well yeah

heavy minnow
#

query oh no

#

lmao

naive igloo
#

ASCII just tells what byte represents what character

#

and base64 converts bytes into representation of characters

#

actually you know what

heavy minnow
#

lol

naive igloo
#

you know what is binary and decimal?

#

like

heavy minnow
#

oh no

#

you're mad at me

naive igloo
heavy minnow
#

:c

naive igloo
#

there we convert from 10-digits, into 2-digits

#

base64 is basically converting 256-digits into 64-digits

heavy minnow
#

I see 8 digits to the right lol

naive igloo
#

binary has 2 digits - 1 and 0

heavy minnow
naive igloo
#

decimal has 10 - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9

heavy minnow
#

now I know

naive igloo
#

hex has 16 digits

heavy minnow
#

lmao

naive igloo
#

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F

#

base64 has 64 digits

#

and fuck it i aint writing all digits of base64

naive igloo
heavy minnow
naive igloo
jaunty wraith
naive igloo
#

its codebase is terrible btw

heavy minnow
jaunty wraith
#

lol

naive igloo
#

and the only file

#

the most of the qalc code

#

is in 1 single file

#

and it is huge

heavy minnow
jaunty wraith
naive igloo
jaunty wraith
naive igloo
#

it is not main.cpp

#

no

#

it is just the actual code

#

that does the thing

#

like library code

#

ENTIRE SOURCE CODE

jaunty wraith
#

at least it's unit tested

naive igloo
naive igloo
heavy minnow
#

wow, it's impressive that someone can be speaking the same language as you while understanding nothing of it

#

crypting is solved

naive igloo
#

ikr

heavy minnow
#

just speak code

jaunty wraith
#
println!("'tis code")
heavy minnow
jaunty wraith
heavy minnow
royal lakeBOT
#

@jaunty wraith :white_check_mark: Your 3.11 eval job has completed with return code 0.

0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/=
naive igloo
jaunty wraith
#

there you go

naive igloo
#

actualy looks like something i would write

#

and this dev maintaince even BETTER practice with comments

#

1 comment per 2000 LOC

#

not 1 comment per 500 LOC

jaunty wraith
#

this is truly some code

naive igloo
#

this if-statement ๐Ÿ’€

if((to_str[0] == '?' && (!printops.use_unit_prefixes || !printops.use_prefixes_for_currencies || !printops.use_prefixes_for_all_units)) || (to_str.length() > 1 && to_str[1] == '?' && to_str[0] == 'a' && (!printops.use_unit_prefixes || !printops.use_prefixes_for_currencies || !printops.use_all_prefixes || !printops.use_prefixes_for_all_units)) || (to_str.length() > 1 && to_str[1] == '?' && to_str[0] == 'd' && (!printops.use_unit_prefixes || !printops.use_prefixes_for_currencies || !printops.use_prefixes_for_all_units || CALCULATOR->usesBinaryPrefixes() > 0))) {
                        printops.use_unit_prefixes = true;
                        printops.use_prefixes_for_currencies = true;
heavy minnow
#

it is truly a nightmare

naive igloo
#

it is even worse

#

then i wrote one day

#

like

jaunty wraith
#

a different implementation of qalc that calls into libqalculate would be great

heavy minnow
naive igloo
naive igloo
#

no wonders they are the only contributor

#

legitemetely

heavy minnow
#

thx

naive igloo
#

excuse me?

heavy minnow
#

and get outputs?

jaunty wraith
#

@royal lake is special

#

!help e

royal lakeBOT
#
Command Help

!eval [python_version] <code, ...>
Can also use: e

Run Python code and get the results.

This command supports multiple lines of code, including formatted code blocks. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.

The starting working directory /home, is a writeable temporary file system. Files created, excluding names with leading underscores, will be uploaded in the response.

If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside them.

By default, your code is run on Python 3.11. A python_version arg of 3.10 can also be specified.

We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!

naive igloo
#

i mean like

#

it is insane

#

remember that xkcd

#

this is another such "project some random person in netherlands(?) has been thanklessly mainting since 2016"

heavy minnow
naive igloo
royal lakeBOT
#

@naive igloo :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 1
002 | 3
003 | 5
004 | 7
005 | 9
jaunty wraith
#

(use #bot-commands )

naive igloo
heavy minnow
#

lol

#

wait I don't understand

heavy minnow
naive igloo
#

you put it in \`\

#

uh

heavy minnow
#

wait lol

#

!eval ยดยดยดprint("Hello, World!")

royal lakeBOT
#

@heavy minnow :x: Your 3.11 eval job has completed with return code 1.

001 |   File "/home/main.py", line 1
002 |     ยดยดยดprint("Hello, World!")
003 |     ^
004 | SyntaxError: invalid character 'ยด' (U+00B4)
heavy minnow
#

lmao

#

!eval ยดยดยดprint("Hello, World!")ยดยดยด

royal lakeBOT
#

@heavy minnow :x: Your 3.11 eval job has completed with return code 1.

001 |   File "/home/main.py", line 1
002 |     ยดยดยดprint("Hello, World!")ยดยดยด
003 |     ^
004 | SyntaxError: invalid character 'ยด' (U+00B4)
naive igloo
#

...from both sides

#

and on a separet line

#

let me show

heavy minnow
#

lmao

naive igloo
heavy minnow
#

this is so funny

#

let me try

#

!eval

royal lakeBOT
#
Missing required argument

code

heavy minnow
#

omg

#

lmao

#

I cant enter a new line without sending the message lol

naive igloo
heavy minnow
#

!eval
ยดยดยดpy
print("Hello, world!")
ยดยดยด

royal lakeBOT
#

@heavy minnow :x: Your 3.11 eval job has completed with return code 1.

001 |   File "/home/main.py", line 1
002 |     ยดยดยดpy
003 |     ^
004 | SyntaxError: invalid character 'ยด' (U+00B4)
naive igloo
#

excuse me waht

heavy minnow
#

lmao

naive igloo
#

ah

#

wrong backticks

#

you need `

#

not '

heavy minnow
#

oh lol

#

hahahahaha

naive igloo
#

ah wait

#

that is not even '

#

wtf is ยด

heavy minnow
#

lol

#

idk

#

lmao

#

hahahahha

naive igloo
#

!eval print(ord('ยด'))

royal lakeBOT
#

@naive igloo :white_check_mark: Your 3.11 eval job has completed with return code 0.

180
heavy minnow
#

what

#

180?

naive igloo
#

!eval print(ord('`'))

royal lakeBOT
#

@naive igloo :white_check_mark: Your 3.11 eval job has completed with return code 0.

96
heavy minnow
#

how the f

#

what

#

xd

naive igloo
#

you need 96th character

#

not 180th

heavy minnow
#

lmao

#

what

#

!eval

royal lakeBOT
#
Missing required argument

code

heavy minnow
#

omg

#

again

#

!eval
'''py
print("Hello, world!")

royal lakeBOT
#

@heavy minnow :x: Your 3.11 eval job has completed with return code 1.

001 |   File "/home/main.py", line 1
002 |     '''py
003 |     ^
004 | SyntaxError: unterminated triple-quoted string literal (detected at line 2)
heavy minnow
#

omg

naive igloo
#

still wrong

#

you need `

heavy minnow
#

I forgot the shift enter ๐Ÿ’€

naive igloo
#

which is near ั‘ on russian layout

#

which is near ~

jaunty wraith
#

use #bot-commands

naive igloo
#

which is near 1

heavy minnow
#

รฅ in swedish layout

naive igloo
#

i am talking about `

heavy minnow
#

ok

heavy minnow
#

let me try again lol

naive igloo
#

on US keyboard

#

on swedish

#

with SHIFT

#

(as per wikipedia)

heavy minnow
#

lmao now I can't send the message

#

:agony:

#

agony

naive igloo
heavy minnow
#

I don't have nitro lol

naive igloo
naive igloo
heavy minnow
naive igloo
#

i have fakenitro...

heavy minnow
#

wth

#

I put !eval

naive igloo
#

ok yk what

heavy minnow
#

then newline

naive igloo
#

screw `

#

just do

#

!eval
print("hello, world")

royal lakeBOT
#

@naive igloo :white_check_mark: Your 3.11 eval job has completed with return code 0.

hello, world
heavy minnow
#

then triple ``

naive igloo
#

without them

heavy minnow
#

what is the difference

royal lakeBOT
#

@heavy minnow :white_check_mark: Your 3.11 eval job has completed with return code 0.

hello, world
heavy minnow
#

what

naive igloo
#

uh

#

#bot-commands

#

cuz

spamming is not a valid datetime

heavy minnow
#

wait what

#

wdym

heavy minnow
naive igloo
naive igloo
#

except for others it would be more readable

heavy minnow
naive igloo
#

for offtopic channels

#

changes every 24 hours

#

one time it was "continuos-ducky-integration"

heavy minnow
#

ducky?

naive igloo
#

"python-general-is-not-rust-general" too

naive igloo
heavy minnow
#

what is that

heavy minnow
naive igloo
heavy minnow
#

rust is another language right?

naive igloo
heavy minnow
#

ok

naive igloo
#
fn main() {
  println!("this is rust!");
}
heavy minnow
#

looks fun

#

not

naive igloo
heavy minnow
#
print("hello, world")
naive igloo
heavy minnow
#

๐Ÿคฏ

#

that extra ยด annoys me

heavy minnow
#

wait how do you write that word

naive igloo
heavy minnow
#

incomprehensible

#

or how

#
Hello```
#

wow

#

!evalpy print("Hello, world!")

royal lakeBOT
#

@heavy minnow :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello, world!
heavy minnow
#

now I get it

#

but it seems like the syntax is:

#

wait

#

`this is weird``

#

hi

#

hi

#

!eval
`py

#

!eval
py print("hello, world")

#

๐Ÿคฏ

#

!eval

print("Hello, world!")
royal lakeBOT
#

@heavy minnow :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello, world!
heavy minnow
#

!evalpy print("Hello, world!")

royal lakeBOT
#

@heavy minnow :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello, world!
heavy minnow
#

!evalpy print("Hello, world!")

royal lakeBOT
#

@heavy minnow :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello, world!
heavy minnow
naive igloo
#

sssshhh

#

dont tell mods

#

;)

heavy minnow
#

lol

heavy minnow
#

lmao what was that

heavy minnow
naive igloo
heavy minnow
#

lmao

naive igloo
#

did you watch the film?

heavy minnow
#

ignorance I love it

heavy minnow
#

just for not needing to scroll

#

i dont understand why there's two lines into the ground

quasi furnace
#

GUYS

#

i need help

#

with pc SPECS

#

:(

oblique rune
#

what kind of help do you need

#

@quasi furnace

quasi furnace
#

hi

#

is a GTX 970 for 50$ good

#

used

#

and working

oblique rune
#

not real sure but i think yes last year i bought a used but working 1050 ti for 100$ and a 970 is kind of better

quasi furnace
#

lmfao

#

its like im robbing the guy

#

i hope hes not gonna kill me or smth im scared to meet up

oblique rune
#

well not really if he decided the price

quasi furnace
#

yes i am robbing him

oblique rune
#

but what VRAM does it have? 4GB GDDR6? less? more?

quasi furnace
#

yeah

#

4gb

#

@oblique rune is that good ;-;

oblique rune
#

yeah

#

for that price its pretty well

#

thats what i had in my 1050

#

now i changed for a 3060 but thats storry for another time

quasi furnace
#

would you say thr price is too good? or good

#

like is it a believable price

#

for such a piece

#

i really dont wanna die

oblique rune
#

well did you decide the price or the seller did?

quasi furnace
#

seller did

#

but i think i can negotiate

#

pray for me

tardy rain
#

whats this project for?

civic pasture
#

Hi @thick osprey

#

Howโ€™s it going

#

Iโ€™m conflicted @thick osprey

thick ore
#

lmao. TIL

fn main() {
    break rust;
}
quasi furnace
#

i have no money

#

@thick osprey perocts

#

can i help you with your project

naive igloo
#

that thing literally breaks rust

rough sapphire
#

does anybody have the code to join users who authorized my application to a guild?

fierce minnow
#

Wasn't there a code pasting service used to link code that was used on here? Does anyone remember?

carmine apex
#

!paste

royal lakeBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

carmine apex
#

migrated from hastebin to the current pinwand a few months ago, but they're both self-hosted

fierce minnow
#

Awesome thanks!

bleak lintel
rough sapphire
rough sapphire
#

bcuz i cant figure anything out

bleak lintel
#

the code snippets you need are on that page

#

i don't have an example unfortuntely

#

but you just need to get the access token using the snippet on the first link, and using that token make a request using the second link

rough sapphire
#

ok thanks

bleak lintel
#

token URL

rough sapphire
#

ok thx

bleak lintel
quasi blaze
#

Have you seen those people who go to a doctor to remove all of there teeth and have these placeholder things installed in their mouth so they can put fake teeth in their mouth. Why couldnโ€™t they get braces instead?

rough sapphire
bleak lintel
#

no, but there is very little code you need

#

literally make a PUT request, fill in the user ID and the guild ID, and set the authorization header to that

rough sapphire
#

ok thx

rough sapphire
bleak lintel
#

no

#

you don't use the bot token

#

you use the access token that you've requested using the token endpoint

#

Authorization: Bearer <the-returned-token>

rough sapphire
#

i dont understand anything

rough sapphire
bleak lintel
#

there may be some online

#

i just unfortunately don't have one right now, nor the time to make one right now

rough sapphire
bleak lintel
#

i don't have the time to write out this example, but you may find one online searching around on github gists or something

rough sapphire
# bleak lintel no
def join_server(access_token: str, guild_id: Union[str, int], user_id: Union[str, int]) -> dict:
        """
        Attempts to add a user using their access token by sending a put request directly to
        `discord.com/api/guilds/{guild.id}/members/{user.id}` returns a request status code, if the return
        statement is 500, an error has occurred.
        """
        token = "Bot Token" # Bot Token Here

        headers = {
            "Authorization": f"Bot {token}",
            "Content-Type": "application/json"
        }

        json_data = json.dumps({
            "access_token": access_token
        })

        try:        
            response = requests.put(url=f"https://discord.com/api/guilds/{guild_id}/members/{user_id}", headers=headers, data=json_data)

            # json_response = response.json() # Easier to do, already parsed response

            print(response.status_code)
            print(response.text)
            return response.status_code            
        except Exception as error:
            print(f"Error occurred: {error}")
            return 500

would this one work? i got it from stack owerflow

bleak lintel
#

that would probably work yes

#

if you can collect the access_token, guild_id and user_id and pass it into that function it'll work

#

but please please please make sure you understand what this is doing

rough sapphire
#

ok

rough sapphire
bleak lintel
#

you need to have a server that Discord redirects to after your user authorises the guilds.join scope

bleak lintel
#

no

#

it needs to be a server that runs your code

rough sapphire
#

ohhh

#

ok

bleak lintel
#

discord sends the user back to your server with the access token

#

so you need a publicly accessible webapp running on a server

rough sapphire
#

ok

#

thx

rough sapphire
bleak lintel
#

no

#

it needs to be a website that your python code is running on

#

this is where the code that runs the joining request runs

rough sapphire
bleak lintel
#

you need to buy a domain or find a service where you can run your application and be allocated a subdomain

rough sapphire
#

ok

bleak lintel
#

like cloudflare workers

rough sapphire
#

ok

#

thx

soft violet
#

Microsoft, in addition to the contemptible work they've been doing with Minecraft, have been doing a decent job with optimisation, compared to earlier versions.

I can't speak to Roblox.

rough sapphire
#

i can do pull ups with 3 fingers but i am afraid if i do it with 2 then my fingers will suddenly, you know, pop off

#

is that even possible

soft violet
#

Your fingers will likely register pain before significant damage is incurred.

#

Muscle strain/tear, bone fracture, dislocation and dermal injury are possible outcomes.

#

@rough sapphire Training your body is encouraged, but be reasonable in your treatment of it.

#

A lower intensity resistance training technique may be more appropriate.

tardy rain
#

Theres no muscle in your fingers what are you training

thick osprey
rough sapphire
#

i just did it with two fingers, only once though

#

it was pretty average tbh, i didn't feel much pain in my fingers

#

and yes, my fingers didn't pop out

small burrow
#

i just had a thought

#

imagine something that puts the numbers as far from each other as possible

soft violet
#

-inf, inf

small burrow
#

imagine the numbers
1,2,3,4,5

it would look like
3,5,2,4,1

crystal spruce
#

wdym as far from each other as possible

soft violet
#

!e ```py
import itertools
def func(arr):
return sum(abs(a - b) for a, b in zip(arr, arr[1:]))

result = max(itertools.permutations(range(1, 6)), key=func)
print(result)```

royal lakeBOT
#

@soft violet :white_check_mark: Your 3.11 eval job has completed with return code 0.

(2, 4, 1, 5, 3)
small burrow
#

like imagine the numbers 1,2,3, 1 is alergic to 2 and they need to get as far from each other as possible, so it now looks like 1,3,2

acoustic moss
#

"maximise total variation"

tardy rain
#

Why isnt 1 allergic to 3

#

Or 3 to 2

#

Sounds like racism

young shoal
#

cause 7 8 9

solemn tulip
small burrow
#

uh oh\

small burrow
royal lakeBOT
#

@alpine edge :white_check_mark: Your 3.11 eval job has completed with return code 0.

2set()3
small burrow
#

i mean 1 is really far from 3 in the line

royal lakeBOT
primal herald
#

@ionic jolt I wouldn't say they are trolling, people learn different skills at different rates and the last dpy post they made seems genuine enough to me

ionic jolt
primal herald
lapis nymph
#

<@&831776746206265384>

#

Deleting ur msg wonโ€™t help u lol

karmic gust
#

Don't harass people

#

If you have a problem with someone, contact @polar knoll
needling people doesn't help anyone

proven ermine
#

is that white stuff plastic bowl?

soft violet
#

Not any more?

proven ermine
#

I'm sure with enough duct tape it can be reassembled

wanton delta
#

๐Ÿ’€

pure phoenix
#

rip

quasi blaze
#

How is a wireless charger suppose to work? Itโ€™s a flat circle.

young shoal
#

magic

vale raven
quasi blaze
#

So is my phone charging right now?

#

Itโ€™s not plugged in

#

But I plugged the flat circle to an outlet with an USB

jaunty wraith
#

if it says it's charging, it's probably charging

quasi blaze
#

How do I get my phone to charge?

vale raven
#

Depends

#

You shouldn't have to do anything

#

Just set it on there

#

If it's plugged in... Does your phone support wireless charging?

#

You probably just need to remove your case or reposition your phone

quasi blaze
#

Wth man. I got so excited about the concept of wireless charging.

I was thinking I could charge my phone whenever Iโ€™m out.

young shoal
#

physics disagrees

quasi blaze
#

Oh I see. I just used it. Itโ€™s like a magnet.

tulip falcon
#

Always the blocked messages I can't unhide lemon_pika

#

Broken discord

quasi blaze
#

But I really thought a wireless charger was basically a portable charger.

young shoal
#

you can't move it?

quasi blaze
#

For it to charge

tulip falcon
#

They learned about wireless charging from Nikola Teslas idea of wireless electronics

young shoal
vale raven
quasi blaze
#

I thought it could be portable

young shoal
#

conceptually, they are different. practically, probably not

tulip falcon
vale raven
#

I can charge an Android and an iPhone with the same charger

young shoal
vale raven
young shoal
#

i can charge both my laptops, phone, old phone, new phone, earbuds

quasi blaze
#

Well this sucks. I wonโ€™t be able to charge my iPhone whenever I take the train to go to a different city.

vale raven
#

Me too

#

But I still need a Lightning cable for my iPhone and iPad

quasi blaze
#

I have to take the train back to charge my phone

tulip falcon
#

Micro USB Gang

graceful basin
#

you can get a powerbank with wireless charging

young shoal
#

you could just bring a charger

graceful basin
#

though I am not sure wireless charging is quite efficient enough to have that be a useful thing

young shoal
#

the only place i've seen wireless charging be cool is with mouses

#

but that requires you to have an annoying pad under your mousepad

tulip falcon
#

I like that apple mouse with the charger on the bottom of it

quasi blaze
# graceful basin you can get a powerbank with wireless charging
vale raven
#

"Google AD services .com"

#

๐Ÿคจ

young shoal
#

๐Ÿคจ

tulip falcon
quasi blaze
vale raven
#

Yeah
Someone got fired for that

quasi blaze
#

Mini portable charger is exactly what I need

proven ermine
young shoal
#

L apple fr

quasi blaze
#

It would be cool if charging stations exist in major cities.

proven ermine
#

yup, still there

#

worst mouse ever designed

graceful basin
#

there was this cool thing I saw in denmark I believe where you bought a powerbank for like 15 euro, then for an euro could swap it out with a fully charged one at a vending machine.

proven ermine
#

unless you mean like car chargers

graceful basin
#

Someone told me that the reason you can't use the mouse while its charging is because the cable is not designed to be bendy enough for a mouse cable, so the experience would suck

#

wait, it couldn't be denmark

#

it must be germany

#

denmark doesn't use euro

young shoal
#

i think logitech made a cool wirelessly charging mouse

proven ermine
#

yeah the wirelessly charging mice are cool

#

has someone done it for a keyboard yet?

graceful basin
#

I am not quite ready to put batteries into things that are meant to last decades

#

ye, there are wirelessly charging keyboards

#

which is IMO the most pointless thing

#

just run the cable through your table if you really hate seeing that much

young shoal
#

or get some fancy cable

proven ermine
#

yeah but that's work I have to do to cable manage

graceful basin
#

well, you still have to cable manage the wireless charger in place

#

we can't quite magic electricity around yet

proven ermine
#

fair

young shoal
#

and it'd probably have to be in the desk lol

graceful basin
# vale raven Why?

I think something about that much radio power causing cancer or something similarily dumb. /j

young shoal
#

you never know with 5g these days

grave cove
proven ermine
#

magic !!!!

graceful basin
#

IG it could charge a keyboard

young shoal
#

that is quite not a lot ๐Ÿค”

#

over 10 meters is kinda wild though

uneven pine
#

Excuse me

#

TEN METER WIRELESS POWER?

#

that cannot be safe for humans to be around

graceful basin
#

I doubt it can do the 300mW at that range

young shoal
#

the 300mW one is 5 meters

#

it looks to mostly be for low power IoT stuff. the examples they give are smart faucets and electric toothbrushes ๐Ÿ˜ฉ

#

also it says it uses IR which is interesting

graceful basin
#

I wonder if it is stable enough to run a device without a battery

young shoal
#

so they say

graceful basin
#

then it is something I am actually interested in

tulip falcon
#

Microphones everywhere lemon_sweat

young shoal
#

i wonder if it has to be line of sight though

graceful basin
#

I would expect so

young shoal
#

given it uses IR. can't really beam that through walls

tulip falcon
#

The Thing, also known as the Great Seal bug, was one of the first covert listening devices (or "bugs") to use passive techniques to transmit an audio signal. It was concealed inside a gift given by the Soviet Union to W. Averell Harriman, the United States Ambassador to the Soviet Union, on August 4, 1945. Because it was passive, needing electro...

graceful basin
#

I doubt it can even do the one wall WiFi can

young shoal
#

this does look quite cool

graceful basin
#

an OEM, commercial or industrial business, or a private investor
damn, I am just a guy who wants to mess around with wireless power.

tulip falcon
#

So was Tesla

ruby fox
#

Tin foil hat time lol

graceful basin
young shoal
#

gotta start a sham business and get them to send you some

tulip falcon
#

There's stiff competition from Sham-wow

graceful basin
tulip falcon
#

Okay I will try to uninstall for like two days I feel weird

quasi blaze
#

I want to know everybody thinks about this. This does not reflect my personal views but I read and hear arguments about is that what humans do is fundamentally deep rooted in procreation. When men get a career, it's to provide resources and security which is all deep rooted in trying to procreate if they meet a woman. When women are trying to make themselves look attractive and healthy, it's all deep rooted in procreation when if meet a men. I want know how accurate you guys think this is.

eager cliff
spare oriole
eager cliff
#

you can argue that anything is for procreation 'deep down' with enough emphasis

#

'but its REALLY DEEP DOWN'

#

actually you could argue any psychological reason is the rationale for anything by the same logic

#

humans dont do things exclusively for procreation

#

and thats a fact

#

(see: altruism)

#

people who say shit otherwise are trying to justify them objectifying women and only seeing them as sex objects lol

grave cove
#

preach

eager cliff
#

sure, the need to reproduce is absolutely a fundamental desire of a vast majority of people and all life

#

but, to consider it the only one is a bit misguided of people since humans are by and large very complex creatures

daring mason
#

anyone have a script for a moddern gui??

eager cliff
#

i want to get a career so i can feed myself. if someone else comes along that i would want to support, sure thats great, but its not the only reason

#

but the issue with the 'deep down' logic is that its.. well.. kind of unfalsifiable

thick osprey
quasi blaze
#

Thanks for your input guys. Itโ€™s reassuring and insightful

proven ermine
#

the ergonomics are the thing that makes me not like it

#

how your hand sits on it, it's too flat, and it doesn't sit right in your hand

rough sapphire
#

a mayfly has a lifespan of 24 hours
why doesn't it just die

jaunty wraith
#

it does die, in 24 hours

stark prawn
#

They live quite a bit longer, they are only adults for one to two days.

tardy rain
#

.wiki mayfly

median domeBOT
#
Wikipedia Search Results

Mayfly
Mayflies (also known as shadflies or fishflies in Canada and the upper Midwestern United States, as Canadian soldiers in the American Great Lakes region

Mayfly (disambiguation)
Look up mayfly in Wiktionary, the free dictionary. A mayfly is a type of insect belonging to the order Ephemeroptera. Mayfly or Mayflies may also refer

tardy rain
#

Uh

glossy niche
tardy rain
#

You are what

glossy niche
vale raven
#

Are you ready for that promotion?

glossy niche
#

hopefully with a good career, i can afford not only more cats but more destructive ones too

grave cove
#

dog

crystal spruce
#

doog

glossy niche
#

thats actually a linux

rough sapphire
#

well, that's actually a linus

low chasm
#

hollow knight ๐Ÿ˜ค

#

I've been playing through Persona 5 Royale recently

rough sapphire
#

tf2

low chasm
#

yeah, it's decent

grave cove
sterile sapphire
#

i play pes mobile

#

it sucks

#

lol

#

i used to play this naruto game on my phone but it's only available in china

#

i strangely zone out when i play games on my console

wanton delta
quasi blaze
#

Had to ride the train back home because Iโ€™m losing batteries on my iphone

high verge
#

tfw iphone and cant wirelessly charge your device with other phones

high verge
#

that feeling when

quasi blaze
#

Iโ€™m seriously proud of myself; I once again overcame my fear to approach several drop dead gorgeous women at an amusement park.

#

Action > Inaction. I remind myself this everyday.

low chasm
#

eh the power sharing is kind of slow

quasi blaze
#

May I get everybody's story from the gentlemen on how they met their partner?

thick osprey
#

Truncated version: I found friends that I wanted to spend more time with. They agreed.

#

Oh, "from the gentlemen". My answer probably doesn't count. I'm not much one of those.

jovial oriole
#

DOOM 64

#

I dont really play games as a main thing too much

#

And some geometry dash

jovial oriole
jovial oriole
quasi blaze
#

Iโ€™m just seriously curious on how men ended up being in a relationship with their woman. I want to see if they are any consistencies in everybodyโ€™s story. Maybe I am missing something; Iโ€™m trying my best to nail down the dating game on itโ€™s head.

thick osprey
# quasi blaze Iโ€™m just seriously curious on how men ended up being in a relationship with thei...

How did some of us end up with our partners? We met them in a social situation whether face to face or long distance. We chatted, usually awkwardly, about our interests. We liked chatting enough that we did it again. Then again. Then again. We became friends. Then best friends. Trust, communication, and an understanding of each other grows. Where it leads is different for everyone.

For you, I'm going to guess that you can't tell us much about those women you met earlier other than "they are drop dead gorgeous". It's presumptuous of me, I know. Your verbiage strikes me as the type of mindset that focuses on a narrowed view of what should be a life commitment of mutual friendship.

tulip falcon
#

Trust communication growing hmm sounds idyllic.

high verge
harsh tundra
tulip falcon
#

Yeh don't listen to me, I'm still sore where the knife was stuck in my heart

#

Phantom pain if you will

#

Since I'm alright I think. I would never try to call them

#

So it feels weird to be still alive after that

#

I almost thought "I want to call" a week ago, but I thought about how you made me feel so nonchalantly, see you never

thick osprey
#

Some wounds take more time to heal than others. Some leave scars. The good news is that we do heal, the pain does fade, and the memories get a bit fuzzy around the edges.

naive igloo
#

i didnt even have any

#

ยฏ_(ใƒ„)_/ยฏ

ocean plover
#

hey can someone help me

#

i mean this is offtopic channel but this help is also offtopic

#

i accidentally deleted my explorer.exe and downloading explorer.exe from internet doesn't work as it has explorer.exe from only windows 7 to 10, i was trying to replace explorer.exe with explorerplusplus but somehow i deleted both the original and backup explorer.exe

#

and i need windows 11 explorer.exe, if someone got windows 11 please do dm me. Dont even think about sending me reverse shell, i will be analysing the file first

quasi blaze
grave cove
#

You have a bulky mass attached to the bottom of your phone

wanton delta
#

I like rust's error traceback

quasi blaze
wanton delta
analog berry
quasi blaze
#

But I will be going to an amusement park again

grave cove
#

again?

#

I only go to those like once a year

#

the rides are scary

uneven pine
#

I went on one rollercoaster. Once.

#

Actually 2 but the second one wasn't very intense

#

Hypercoaster, the Mamba at Worlds of Fun. My reasoning for going with that was if I hated rollercoasters at least I went on a proper one first. Don't like it, little too intense for my tiny body

#

I actually had massive bruises afterwards where I got pushed down into the side of the car lol

low chasm
#

I'm bad with heights

uneven pine
#

I hate heights too but being strapped in helps

#

Although

#

On the freefall from the 205 feet or whatever it was, I definitely felt like I was slipping out of those restraints

low chasm
#

I've gone before, but every time it was out of peer pressure lol

uneven pine
#

The hilarious thing is that it didn't excite nor scare me. My heart rate didn't even go up really

#

I just started dropping, saw the bottom and was like "oh, this is going to hurt very badly"

#

It did.

#

My girlfriend was next to me and screaming in pure joy, she loves rollercoasters. After the first couple of turns she stopped and looked at me and said "ARE YOU OKAY?"

#

I managed a ๐Ÿ‘ as the tails beat the shit out of my back

#

I looked at her as we were rolling into the station and said "I hate rollercoasters"

low chasm
#

I can probably stomach a "traditional" roller coaster

#

but the shit that spins you in circles and sticks you upside down is an immediate no

#

there's one at Hershey Park that dangles you by the feet

uneven pine
#

I shouldn't ride those kinda rides because of my heart

#

But on the other hand it doesn't really get my heart rate up so I guess it's not that bad

#

The other one I rode was the spinning dragons or w/e it's called and it was far more tolerable

low chasm
#

hmm

uneven pine
#

I can't do things that spin fast I learned. Even the kiddy rides really. Triggers my migraines

#

So amusement parks are really not my thing

low chasm
#

fair enough

uneven pine
#

Took 26 years to find out cause that was my first time going

#

It's probably reasonable to assume if I'd been going my whole life I'd probably fare better

#

Just too old to start now

#

Too old and body too broken

low chasm
#

I can't stomach the more intense stuff, so I'm not a huge fan either lol

tulip falcon
#

I went on like my 24th birthday and rode a big Rollercoaster , and the turns gave me a headache that lasted the rest of the day

#

That ride used to be fun to me as a kid

jovial oriole
#

Roller coasters were scary before, now they're sorta boring

#

Too short

#

Beginning drop is good tho

quasi blaze
# grave cove again?

Yes. Itโ€™s the last day before it closes for the rest of the year. Thereโ€™s always beautiful women there and nice bands playing there too.

#

Also wrestling matches, a computer game center to play video games and etc

tulip falcon
#

Sounds like the amusement park from that Johnny Knoxville movie

#

I guess minus kids getting hurt on makeshift slides

#

Okay , it's nothing like that amusement park

#

Can't believe I can't remember the name of that movie lemon_sweat

#

It's kind of boring

naive igloo
ocean plover
#

ok trying

#

the new explorer.exe is bit sus, i wish i hadn't overwritten backup so i could use one or other whenever i felt like it

#

i think i need to find someone with win 11 and ask for the executable, till then gotta work with this explorer.exe

naive igloo
ocean plover
#

@naive igloo starting explorer.exe still brings up new one

#

the original is still destroyed

naive igloo
#

ok then it must mean you fucked up the store

#

idk what to do

vale raven
#

But... How is your system running?

tulip falcon
#

System running better go and catch it.

vale raven
#

๐Ÿ˜ฉ

ocean plover
vale raven
vale raven
vale raven
young shoal
#

how did you even delete it anyway

ocean plover
#

so i mistakely overwrote the backup file

vale raven
# ocean plover

Read the directions
Go ahead and reboot now, and then do this:

sfc /scannow
dism /online /cleanup-image /restorehealth
sfc /scannow

(yes do the same thing twice)

If that doesn't work, I dumped my explorer.exe here, that might possible work

vale raven
#

It's in C:\Windows

ocean plover
vale raven
#

ye
okay

ocean plover
vale raven
tulip falcon
#

Maybe if I just sleep all day I can feel better

#

Idk

#

I'm studying all day but do I really have a choice?

#

Guess I can sit and watch TV all day

#

I feel fucking bad

ocean plover
#

then now i booted into windows and

#

everything looks good

vale raven
#

Oh

#

Linux

#

That's how you did it

#

Yeah

#

They keep you from doing that for a reason

ocean plover
#

yeah, windows has too much difficult modifying system files

#

thanks @vale raven

jaunty wraith
#

you're not supposed to be modifying them

jaunty wraith
#
โฏ nix profile upgrade '.*'
warning: error: unable to download 'https://github.com/NixOS/nixpkgs/archive/3c15feef7770eb5500a4b8792623e2d6f598c9c1.tar.gz': HTTP error 503

       response body:

       <!DOCTYPE html>
       <!--

       Hello future GitHubber! I bet you're here to remove those nasty inline styles,
       DRY up these templates and make 'em nice and re-usable, right?

       Please, don't. https://github.com/styleguide/templates/2.0

       -->
       <html>
         <head>
           <title>Unicorn! &middot; GitHub</title>

pithink

#

weird comment

stark prawn
#

Hello GitHubber

stark prawn
#

If you manage to delete something like that a reinstall might be more useful

low wraith
#

.

#

oh they removed it from their name ๐Ÿ˜ข

#

woops sweg sorry for the ping in this channel, I thought the original msg I sent was in the channel

ionic moth
#

nw

thick ore
#

should i be letting copilot write my readme

dry tinsel
#

probably not

#

AI isn't always the best at understanding whatever in the world someone may be trying to do

stable fulcrum
stable fulcrum
cobalt remnant
#

Minecraft just had the great idea of loading the world in chunks over the network.

#

previously, chunks were only used for storing and generating the world. Now they prioritize loading chunks closest to the player.

tulip falcon
#

Chonk

eager cliff
#

Pentium 4 here to play

regal ember
#

i love this

dusky gate
#

hello
is anyone can help me
I just need to active my minecraft bot buy its gives error
I mean minecraft mineflayer bot
how to active him if code gives error

regal ember
#

what is the error?

tulip falcon
#

lemon_pensive mfw no sudorem

#

Just get something from Amazon or Walmart you probably be good to go in the morning