#ot1-perplexing-regexing

1 messages · Page 56 of 1

fathom musk
#

Sorry I probably meant this

#

So there's a 1.5% chance HmMmMmMmMmMmMmMmMmMmMmMmMmMm

rancid haven
#

@spiral bear electricity doesn't "move". As I've said, it's a human buzzword and it doesn't make sense to talk about in technical levels

eternal depot
grave cove
#

electricity is not a physical object that you can move

#

it's more of a concept

eternal depot
grave cove
#

To?

eternal depot
grave cove
#

That doesn't make electricity some physical object all of a sudden

tardy rain
#

what if i throw the battery really really hard

eternal depot
#

What about the electricity between me and your mom?

young shoal
#

emphasis on the mate 😉😉

runic plinth
#

Gross

tardy rain
#

you cant just call someone's mom gross

runic plinth
#

GROSS 🤢

gritty zinc
#

you can't just call someone's desktop environment gross

carmine apex
#

unless there's a tiling wm involved

gritty zinc
tardy rain
#

im the window manager

#

drag and dock is king

runic plinth
gritty zinc
#

actually I guess it doesn't count, since "tiling wm" means, like, tiling being the default behaviour

young shoal
#

what even is a tiling wm

grave cove
#

a wm that tiles

rough sapphire
#

i am considering qubes OS as my next OS

#

ik it's a security os but i like the isolation

#

this is all a win-win situation

low chasm
grave cove
#

running down fans when walking up fans show up

high haven
#

classic one from chad sanderson @hexed sierra @rugged owl

young shoal
grave cove
#

chad

high haven
young shoal
#

😔

#

luckily, my personal projects have no roi by default

vale raven
young shoal
#

apart from getting me a job, i guess

#

that should count as return

carmine apex
vale raven
carmine apex
#

had a feeling you were gonna say it was azure instead

vale raven
carmine apex
#

didn't feel like editing, and wasn't sure

rugged owl
solemn tulip
#

that

young shoal
#

oh

#

i just use wsl

spare oriole
#

windows actually has it built in, but it's very basic

young shoal
#

yeah windows+arrow key

solemn tulip
#

you need to manually do the thing

spare oriole
#

yeah, or semi auto kinda

young shoal
#

but i don't have a window to manage so meh

spare oriole
#

i really like pop OS auto tiling manager

solemn tulip
#

It looks almost silly on my ultrawide

young shoal
#

clock blocked

solemn tulip
#

i3 has a nice tree based structure

spare oriole
runic plinth
#

Y'all use powertoys?

young shoal
#

ya

spare oriole
#

i tried it out, wasn't really useful for me

solemn tulip
#

that would be roughly what's in my screenshot

#

I think there are some more containers

young shoal
#

if i had more screenspace i would go wild with the tmux panes fr

solemn tulip
#

one nice thing is just plain space usage, and not having to dig for that one window in the stack is nice

#

I remember having to use windows for one internship after getting used to tiling wms

foggy jungle
solemn tulip
#

I got so frustrated...

young shoal
#

why is there no frustrated

#

emoji

young shoal
solemn tulip
#

😩 is somewhat apt

solemn tulip
young shoal
#

tmux!

#

multiplexing :rtiu

solemn tulip
#

and I think this was pre wsl, but that wouldn't have helped so much

#

it was not just terminal work

young shoal
#

oh right, that is a thing

#

use w3m 😩

spare oriole
#

huh, got ghostpinged here

stiff siren
#

i'm tryna get a pet tape worm so it can help me chew my food

kindred orbit
#

recently i found bear with tapeworm in his ass and im obbesed with it i cant sleep

#

poor bear he must felt very itchy

acoustic moss
spare oriole
acoustic moss
#

a goddess revealed it to me in a dream

uneven pine
#

I did no such thing

wanton delta
glossy niche
rough sapphire
#

lmao

thick ore
#

4.1k upvotes on programmerhumor :O

#

for getting banned off Rust

severe apex
#

an ongoing joke with a friend

quasi blaze
#

So in my program, I received a 400 response code and on postman, I received the 401 response code. Strange.

grave cove
#

not really. That means something is different between the postman environment and your code environment

#

unless the server is randomly picking a response code to give you

tardy rain
#

Postman can give you snippets in a bunch of languages that would create the request youre trying

solemn tulip
crystal spruce
#

where's NAND

ruby fox
#

Xand looks awesome

quasi blaze
ruby fox
#

401>>>>400

vale raven
#

LGTM

#

Sounds like auth is working

#

Time to figure out what about your request the upstream is considering invalid

#

What's the response body?

young shoal
#

does using environment variables in postman imply auth is being turned on and off? the api is external

vale raven
#

Postman in particular screams at you to move your auth to the enviornment to "protect it"

glossy niche
#

postman sucks

vale raven
#

I'm assuming they just followed the instructions

glossy niche
#

apparently its valued at 1b USD

vale raven
glossy niche
#

its nice but it has too much VC money it

rough sapphire
#

requests > postman

glossy niche
#

its a wrapper around curl but they want to treat it like its windows 20

#

i just wish i could log my requests to git

#

i hate have 2 sources for truth for APIs

#

swagger solves that forme

vale raven
glossy niche
#

but on the level on a single app

#

PITA? pithink

#

the bread?

glossy niche
#

oh

#

how does insomnia compare to postman btw? havent tried it yet

vale raven
#

Insomnia is a bit better IMO
But IMHO they both have really shitty UIs

glossy niche
#

but i guess that hinges on framework support more?

vale raven
glossy niche
#

i want to be able to see all API changes in one PR for example

#

so that when something changes in an API, i can see it all in one place, the code change

#

next to the API change

#

next to the tests

quasi blaze
vale raven
#

I've gotten that a couple of different times

grave cove
#

do you have docs

#

or access to src code

vale raven
#

We're really going to need actually see the code and the request to see what does and doesn't work to be able to help you

vale raven
#

So we can't

#

hecking ripoff

young shoal
#

based company

vale raven
quasi blaze
# grave cove do you have docs

Here is an excerpt of the docs


Method 1 - API Keys - Member Authentication
It is recommended to create API Members versus using API Keys tied to a specific member.
Authorization: Basic base64(companyid+publickey:privatekey)
(Authorization: Basic *(random characters in this fields)*```
young shoal
#

that is not what public and private key mean 🗿

quasi blaze
#

The previous developer wrote a encode_base64() function with three parameters. Unsure if the function needs to be modified after the sandbox reset

glossy niche
#

wait are they using priv keys as passwords? lmao

young shoal
#

based API i guess ¯_(ツ)_/¯

young shoal
#

i assume they're just normal passwords but they call them private keys 😩

vale raven
glossy niche
#

thats the most likely explanation, my boss refuses to call staging servers staging and isntead calls them dev servers

#

so now the dev environment actually means staging

#

and local means dev

quasi blaze
glossy niche
#

which sucks because its a reserved word in react

glossy niche
#

based64

#

the best encryption algorithm

vale raven
#

What does the function say?

quasi blaze
young shoal
#

why did they write their own encoding function?

quasi blaze
young shoal
#

why does getting new credentials change that?

quasi blaze
young shoal
#

probably don't need to change it then

quasi blaze
#

400 response code is the biggest technical mystery to solve ever

young shoal
#

any error without docs or source code is a big technical mystery

quasi blaze
#

Idk why they didn’t make the api docs public smh

glossy niche
#

which is why unchecked errors are BAD because they make it impossible to differentiate between expected and unexpected errors

#

errors are values are better

#

thats why today ssponsoer, the rust foundation, have asked me to tell you about this cool language

#

crabspeak

young shoal
#

like, didn't you just post an excerpt

quasi blaze
civic pasture
#

hi guys

civic pasture
#

long time no see

#

:3

#

hi public

quasi blaze
young shoal
#

so why does it matter if they're not available to everyone 🤔. you can see them. you should use them

quasi blaze
#

You guys have any idea why an API request would be successful on Postman but receive a 400 response code on a program?

ionic moth
#

skill

young shoal
#

PEBCAK

ionic moth
glossy niche
#

have you tried exporting it with postman?

young shoal
#

problem exists between chair and keyboard

glossy niche
#

see if hte exported code is similar to your code

ionic moth
glossy niche
#

if u click on the </> symbol on the right

#

far right of the screen

#

you can find a code generator

#

export the code and see if theres anything hidden

#

maybe its an env var somewhere?

#

youre pretty good at finding things in the far right, you should be able to do this pithink

#

my suspictions are:
incorrect headers
DNS error but thats unlikely

#

cause postman does set a lot of headers for you

young shoal
#

it's always DNS

glossy niche
#

oh, also it might be a redirect?

young shoal
#

(probably not though)

glossy niche
#

DNS stands for "does no shit"

#

they are the printers of the networking world

#

jk printers are worse

quasi blaze
young shoal
#

start with the instructions they wrote

glossy niche
quasi blaze
glossy niche
#

it lets you export

#

this should show you information in a non convuluted postman format

quasi blaze
#

Can I copy and paste the code instead? Or is there a difference?

glossy niche
#

it shows you code and you copy paste it like a 1st year CS student

#

it even has a "i dont know how to highlight" button

quasi blaze
#

Ahh

glossy niche
#

FKA "i my C key is fucking broken" button

young shoal
glossy niche
#

i do

quasi blaze
#

But how come it doesn’t show my public and private keys in the code?

glossy niche
young shoal
#

because that's a horrific security nightmare

glossy niche
#

not sure honestly, i dont use postman that much

#

im a swagger kinda person

#

are you sure ur auth keys are formatted correctly

#

like

#

when you copy pasted them

#

did you drop the first or last character?

#

lol

#

or maybe forgot the word "Bearer"

#

hate to admit how much time i wasted cause of that

quasi blaze
#

Damnnn

#

It works

glossy niche
quasi blaze
#

So there’s something wrong with how my credentials are encoded in the program

glossy niche
#

did u forget to encodeURLComponent it?

#

if its in the query string, you need to encode it

#

and also that means you need to use SSL otherwise ur token is bye bye pithink

quasi blaze
#

This is how the developer wrote the base64 encode function


def encode_base64(company_id, public_key, private_key):
    auth = company_id + public_key + private_key
    auth_base64_bytes = base64.b64encode(auth.encode('ascii'))
    auth_base64_encoded = auth_base64_bytes.decode('ascii')

    return auth_base64_encoded

grave cove
#

where typehints?

glossy niche
#

is the key in the header or query params?

grave cove
#

also calling it public and private key is stupid

young shoal
#

that code does not work

#

it's also quite strange

grave cove
#

so true

glossy niche
#

why does it encode and decode 20 times

quasi blaze
glossy niche
young shoal
grave cove
#

Encode with ASCII, encode encoded ASCII with base64, decode encoded encoded ASCII with ASCII

#

👍

glossy niche
#

its this

young shoal
#

the only one that isn't necessary is the last decode

quasi blaze
glossy niche
vale raven
young shoal
#

they just need a | b64enc fr

vale raven
young shoal
#

go

vale raven
#

ewwww

young shoal
#

go templates, really

quasi blaze
#

Thanks for your help bro @glossy niche

glossy niche
#

youre welcome!

did actualy work?

glossy niche
grave cove
#

keezy you should rewrite your entire company's tech stack in rust

young shoal
#

so true

grave cove
#

it would be a haha funny moment

quasi blaze
#

The Python code provided by postman actually works but now I need to investigate why the original functions in the program are getting a 400 error response

#

Maybe the authorization header needs to be updated.

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

ionic moth
glossy niche
#

guava

young shoal
#

java does not have operator overloading

ionic moth
#

ah ok thanks

quasi blaze
ionic moth
vale raven
quasi blaze
#

I emailed the software support specialist. I provided all the information as possible. (Gave them the current authorization header, asked how the credentials are supposed to be encoded and etc.)

young shoal
#

you emailed your keys?

glossy niche
#

can i have cc

quasi blaze
quasi blaze
young shoal
quasi blaze
glossy niche
#

no doctests, stinky

young shoal
#

ouch

#

you gotta stop asking for help without sending the relevant code and docs, fr

glossy niche
#

i help out a lot of new comers to competitive programming on discord in my uni, and they all assume that just telling me that their code does not work is enough information for me to help them pithink

#

normally i respond by asking them to think of me as a computer and to provide precise instructions

vale raven
grave cove
#

can i get a cheeseburger with no fries

undone thorn
#

no fries on the cheesburger or no fries in the drink?

ionic moth
#

sir the cheeseburger does not contain any fries

grave cove
#

why not?

tardy rain
#

Fries in burgers is peak

grave cove
#

so true

rough sapphire
#

fr*nch 🤮 fries

ionic moth
#

you are tripping

civic pasture
#

so guys

#

I was talking to some people

#

and they told me Data Science Masters is shit

#

and that it wont get me any job

#

O_O

#

is that true?

tardy rain
#

No

civic pasture
#

yeah

#

Statistics discord told me i was idiot for pursuing a masters in data science

ionic moth
#

lul

tardy rain
#

What did they recommend instead

grave cove
#

people will always tell you different things. Do what you think is right or what makes you happy

civic pasture
#

they recommended Computer Science

#

:/

#

I mean what difference does it make

#

CS masters with DS track has the same courses

quasi blaze
#

I have a group chat with all of my elementary school classmates and nobody knows what they wanna do for the next reunion

vale raven
#

Lunch?

rough sapphire
#

yeah

#

❤️

quasi blaze
# vale raven Lunch?

We have a group of 14 people. I don’t think any restaurant can fit a table with 14 people.

rough sapphire
#

connect tables duh

vale raven
#

Yeah
It’ll be two or three tables
Could even push them together

vale raven
warped sentinel
#

just give a call ahead of time

#

"Hello, I would like to make a reservation for 14 people on day X and time Y. kthanxbai"

#

expect 20% tips because of large groups

#

(for the waiter)

quasi blaze
#

I have an idea for an off topic channel name

grave cove
quasi blaze
#

Something like life-notfound-exception

grave cove
#

no shot a restaurant can't

vale raven
eternal depot
grave cove
carmine apex
#

ooh ooh i know!

#

0

eternal depot
young shoal
#

drippin with-

eternal depot
quasi blaze
eternal depot
#

I remain unconvinced

quasi blaze
#

But I would raise other exceptions for sure though

eternal depot
#

ValueError?

quasi blaze
eternal depot
quasi blaze
eternal depot
#

Why would all of your exceptions be customized?

quasi blaze
eternal depot
#

You're a game now?

quasi blaze
#

Maybe they want customized instructions for an exception

eternal depot
#

Can't you just do that with the detail text of standard exceptions?

#

raise ValueError("expected integer < 7")

quasi blaze
#

Maybe or they can just make their own

#

Hence LifeNotFoundException

young shoal
eternal depot
eternal depot
quasi blaze
#

I sincerely feel fortunate that I landed a job as a jr developer . I just saw a job ad on LinkedIn and 1,500 people applied. It’s tough

#

This is why I’ve been saying it’s a battle

eternal depot
#

I'd have thought that's protected information

eternal depot
#

Cripes. A shop with 11-50 employees doesn't even have a fraction of the manpower needed to review 1602 applications

young shoal
#

most are bots or unqualified

#

if you're good, you'll get a job

#

plus it's frontend, lower barrier to entry

quasi blaze
runic plinth
#

That's why people use the shotgun approach nowadays

#

Unless you are a provable high value individual.

young shoal
grave cove
#

if you're good your chances of getting a job are pretty high if you apply to a dozen or so jobs

#

results may vary but that seems about right

quasi blaze
#

I wish there was a weekly voice-chat event

vale raven
#

There's people in the VCs here almost every day

quasi blaze
warped sentinel
quasi blaze
warped sentinel
#

then they weren't great to start with

quasi blaze
#

I think dowcet mentioned this one time when i didn't have a developer job and I'm paraphrasing this: There's too much subjectivity like racism and nepotism that comes into account when it comes to getting selected for interview.

#

It changed my whole perspective on applying for jobs.

quasi blaze
warped sentinel
#

dowcet's message is a lot more nuanced

#

would someone being racist prevent you from getting a very specific job? Sure.
Would racism prevent you from getting jobs? nope

quasi blaze
warped sentinel
young shoal
vale raven
quasi blaze
#

Anyway, point being is that it’s clearly not coping when nepotism and racism can actually hinder you from landing an interview and/or a job. Even the way your hairstyle is, it all plays a factor.

#

It’s not some coping mechanism

young shoal
#

that's why people apply to more than one job...

warped sentinel
young shoal
#

if it's happening at all the places you apply to, it's not the companies being racist

#

"you" being a general candidate, of course

quasi blaze
#

Applying for jobs isn’t a brute force objective thing to measure.

young shoal
#

it's not even a measurement 🤔 it's an action

quasi blaze
#

I don’t like the “if you’re good, you would be picked for an interview.” rhetoric

#

Because it’s not true

warped sentinel
#

they are meant to have candidates demonstrate skills.
If a candidate can't even give a hint they possess these skills on their resume, they obviously and demonstrably were not good

quasi blaze
warped sentinel
young shoal
young shoal
quasi blaze
# warped sentinel Let's say they loose _one_ job by nepotism. What about the 9 other jobs?

Several of them probably never had their resume read which happens to a lot of people. The other 3 jobs they applied for probably thought they weren’t a good fit; Which could be because they are just really bad on writing an excellent resume (Poor choice of adjectives used in the resume, bad at marketing their skills) when they are definitely right for the job. The other 2 times could be that they have bad formatting on their resume to pass the ATS scanners that some companies use.

young shoal
#

that's why they apply to more than 3 jobs

vale raven
quasi blaze
warped sentinel
young shoal
#

for formatting, it's literally just formatting. it's not hard to do

#

just pick a common template

#

you could even say it shows the candidate can't follow directions 🤷‍♂️

quasi blaze
warped sentinel
#

if they have a hard time to write a simple page about themselves, it would be difficult to communicate across multiple people or projects

warped sentinel
quasi blaze
#

And I think you are also forgetting that some excellent developers have poor interviewee skills

warped sentinel
#

I didn't forget that, not that I agree with it. I also didn't forget some interviewers are terrible at interviewing.
But all in all, it's just coping

grave cove
warped sentinel
#

If people start blaming their lack of success on nepotism here, racism there, bad interviewer over there and making excuse for their resume, then it removes the accountability part of the process.
It's far more healthy to think about it in terms of understanding what the other side is trying to assess for and how can one improve themselves to go beyond it. To that end, people apply to multiple jobs, take the learning from their failures and don't just try to blame them on others

warped sentinel
grave cove
#

relatable

vale raven
warped sentinel
grave cove
#

that's wild

young shoal
#

your mom definitely pays me

grave cove
#

🤨🤨🤨

young shoal
#

tbh I don't even know what that would mean

spare oriole
#

neither does your father

warped sentinel
#

when you are old enough, you then pay for your mom to live in your basement

quasi blaze
#

Because that was dowcet’s whole point

warped sentinel
quasi blaze
#

I guess…by that logic anything you acknowledge that could be a downside to any situation you are in is coping.

warped sentinel
# quasi blaze Because that was dowcet’s whole point

Dowcet's point is that there are factors outside of your control. It does not mean that hiring is completely unpredictable and random nor that hiring decisions are solely made based on factors outside of your control

warped sentinel
carmine bane
#

Money is colorblind.

#

@quasi blaze Wait I thought you have a job rn?

#

Like a SWE job?

#

Someone told me you did, or maybe I'm reading into this convo too much (idk the context of this convo)

ruby fox
carmine bane
#

Yeah YEgrey_agonyLaugh

ruby fox
tardy rain
#

I dont think i've been to a house with a basement before

#

Maybe i just havent noticed

#

Im only interested in going up 💸💸💸

wanton delta
#

Me too
I hope I go up some day

#

Actually, after a brief retrospection, the only direction I'm going is down.

glossy niche
#

the oppression of games is leaving us homeless

zealous comet
#

i just found out that my current computer science teacher wants us to store passwords as a string so no hash function or anything

#

it may never contain any real passwords but at least do good practices

glossy niche
#

they probably dont trust their users with hashing

zealous comet
glossy niche
#

hashing isnt hard but if it isnt the point of the course, then i would understand

zealous comet
#

ik but still it's better to not know why to hash and use it than not knowing and not using it

#

it may only take like 5min to explain the benefits

#

and we have to learn it later this year

glossy niche
#

whats the app? whats the course?

#

OOP? web dev?

#

CS101?

zealous comet
#

learning how to use those

glossy niche
#

like a first year course?

#

in uni*

zealous comet
#

well it's basically highschool 16-18 year olds

glossy niche
#

in HS we barely learned any code outside scratch and some arduino so i can honestly understand

#

the concept of a hash function can be a little out of scope here

zealous comet
#

the concept would be but usage wouldn't be

glossy niche
#

using things you dont understand isnt very helpful

#

you learn nothing from that

zealous comet
#

it takes like 5min to say.

use some hash function because it allows you to securely store the passwords in a way that no one that gets access to the database can look at the passwords directly they will see a bunch of kinda useless things that are created by a hash function and that function returns always the same output with the same input

glossy niche
#

im gonna start calling programmer who think that functional programming ==== when everything is an expression "dysfunctional programmers"

#

this decision comes after i saw a piece of code that had an if with an assignment in a ternary in each branch all in an if in a for each in an if in a for each

tulip falcon
#

Error: unparsable sentence

glossy niche
tulip falcon
#

Comma is like parenthesis grammatically for me to know what is of another, otherwise convoluted to keep track of

quasi blaze
ruby fox
tulip falcon
#

They are mysterious

#

Trust the man who says a lot, beware the man who says little for they will do something dangerously stupid when they do

rough sapphire
#

quite kid?

tulip falcon
#

In many cases yes

#

Or just something downright dangerous

tulip falcon
#

I'm not worried about you, you've said enough to be trusted at face value.

#

Live and let live as they say

ruby fox
grave cove
#

oh ok

crystal spruce
#

basically the same

quasi blaze
#

I apply his teachings whenever I play Chess.

#

48 Laws of Power is good book as well. Great teachings.

#

Law 1: Never outshine the master

grave cove
#

Nice! Though I have never been into chess. There was a period in my senior year of HS where it was a big thing. Was pretty funny though lol

#

Better than some new TikTok trend I suppose

quasi blaze
#

This is why you don’t argue with superiors especially if you are technically correct.

#

Make them think they are correct

young shoal
#

how would any of sun tzu's teachings be applicable to chess

grave cove
#

wasn't it written like a thousand years ago anyway

#

doesn't seem like applying it to the modern workplace would end up well

young shoal
#

you will be a very sad engineer if you don't advocate for your ideas

grave cove
#

you will be a sad human if you don't advocate for yourself in general

quasi blaze
young shoal
#

it doesn't work in chess

quasi blaze
young shoal
#

i mean, ok

grave cove
#

ah yes, the classic: knock off all the pieces on the board to sow confusion

#

truly a strategy of the learned grandmaster

young shoal
ruby fox
quasi blaze
young shoal
#

truly profound. it takes a genius to think of these

young shoal
ruby fox
tardy rain
#

Be good instead of bad

  • old man mar
    Write it down
quasi blaze
young shoal
plush sun
ruby fox
ruby fox
tardy rain
#

You dont study people's openings, you study openings

young shoal
#

super GMs study opponent's past games

tardy rain
#

People dont just invent new openings nowadays, the start of the game happens like textbook

#

Whats that one quote
Play the opening like textbook, the middle game like a magician and the end game like a machine

ruby fox
#

As chess is finite, and the number of openings that actually work is also finite, most of openings is probably already created

plush sun
young shoal
#

not normal players of course, but super gms

tulip falcon
#

I haven't played chess in a minute

wanton delta
ruby fox
#

I roasted by head with 100s of bullet games, and i quit it

tardy rain
#

At some point the game diverges but i dont think you would say thats the opening

young shoal
#

sure

wanton delta
tardy rain
#

Anyway i think i could own sun tzu in any game, especially krunker

#

Make him my bitch

young shoal
#

yooo

#

krunker rn

quasi blaze
tardy rain
#

That looks like syntax error

vale raven
#

That's a documentation example

tardy rain
#

Source?

vale raven
#

My ass

ruby fox
#

Is it like some kind of block chain 🤔

tulip falcon
#

It no work

quasi blaze
vale raven
# tardy rain Source?

(Just saying that's not meant to be runnable code -- it just tells you what you need to do)

ruby fox
#

(actually review)

tulip falcon
#

Gun sound happened 2 stars

quasi blaze
ruby fox
tardy rain
ruby fox
vale raven
#

It'd be... what, like --

from base64 import b64encode
def encode_authentication_credentials(company_id: str, public_key: str, private_key: str) -> str:
  return b64encode(bytes(f"{company_id}{public_key}:{private_key}")).decode()
young shoal
#

i would guess the + and : are literal characters you're meant to use

vale raven
#

Oh
I didn't think the + would be literal

young shoal
#

¯_(ツ)_/¯

ruby fox
#

Literally

vale raven
#

Years ago I had to do this for.... I forgot
But they didn't want a +, they just wanted them concatenated

young shoal
#

and b64encode takes bytes i thought

eternal depot
quasi blaze
vale raven
tardy rain
#

It'd be nice if they had an example request

#

So many packages dont have examples in their docs

eternal depot
quasi blaze
ruby fox
#

👁️👁️ 😮

tardy rain
#

Confuse the opponent by opening with A4

ruby fox
quasi blaze
#

The colon!

vale raven
#

🎉

quasi blaze
#

I suspected it had something to do with how the credentials would be encoded

young shoal
#

just read the docs next time

tardy rain
#

The manual

tulip falcon
#

They were reading the docs brainmon

quasi blaze
#

That damn colon

#

Idk why they wrote the docs like that

young shoal
#

right, but 90% of the time you were just confused why it wasn't working, and asking us without giving us any information. the answer was in the docs the whole time

vale raven
#

FYI, if you’re using something like requests they’ll have a auth parameter that takes (user, pass) so you don’t have to manually encode

royal lakeBOT
#

src/darbiadev_sns/sns_services.py line 8

response = requests.get(url, auth=("account_number", "token")).json()```
vale raven
#

In requests you just pass in auth=("user","pass") to .get, .post, etc, etc

quasi blaze
young shoal
#

sure, but like 90% of your time debugging was not spent trying to figure out what it meant, rather asking random people who know nothing about the situation what the error meant

grave cove
#

Pretty sure this sort of encoding is pretty standard

#

For basic auth, that is

vale raven
vale raven
grave cove
#

I'm aware, just saying that it's not really new

young shoal
#

it's basic basic 😔

grave cove
#

being stuck on this for weeks does suck though ¯_(ツ)_/¯

young shoal
#

the solution was right in the docs all along...

#

(it's why people were saying to look at the docs)

grave cove
#

who woulda thunked

ruby fox
tardy rain
#

Just like be authorised my guy

quasi blaze
grave cove
#

just send a good request

vale raven
grave cove
#

.http_status 400

median domeBOT
#
**Status: 400**
grave cove
#

how get dog?

vale raven
#

🖕, aka, why dogs are better

grave cove
#

this cat mean

tardy rain
#

You dont get dog

quasi blaze
grave cove
#

.http_status dog 400

median domeBOT
#
**Status: 400**
tardy rain
#

.http_status 401

median domeBOT
#
**Status: 401**
grave cove
#

no treats

vale raven
grave cove
#

what that dawg doin

tardy rain
#

You got bad request because your auth token was fucked up?

#

That doesnt seem right

vale raven
#

that's what I said

grave cove
#

maybe the api is just badly designed

tardy rain
#

What does connectwise even do

grave cove
#

keezy should write a better api

#

in rust

#

naturally

tardy rain
#

From their site it feels like some scam product

quasi blaze
grave cove
vale raven
grave cove
#

what was the issue?

tardy rain
vale raven
grave cove
#

oh

vale raven
#

Was tearing my hair out

grave cove
#

yeah I can see why that'd be confusing lol

vale raven
#

How does logging make my program work?!!?

grave cove
#

but in retrospect it makes sense

#

no point even evaluating a lower log level

quasi blaze
vale raven
#

It's for a task that gets run maybe once every month or two, and it still worked, so I never spent much time on it
So, technially at least, I was "stuck on an issue" for months

grave cove
#

also why unwrap

#

where error propo?

vale raven
grave cove
#

based

#

I feel like doing something in rust but idk what

tardy rain
#

Timesheets are such waste of my time ironically

grave cove
#

maybe it's langdev time again

quasi blaze
#

It teaches you how to deal with superiors

grave cove
quasi blaze
#

Don’t present yourself as if your better than them.

#

Don’t argue with them

tardy rain
#

Do you need a book to tell you not to show up people?

#

Thats a pretty common sense thing

quasi blaze
#

Show up people?

tardy rain
#

To behave in a way that embrassases someone youre with

#

Regardless of their position or yours

#

Never heard of robert greene btw

#

Apart from bullshit his way to best sellers what else has he done with his "power"

quasi blaze
#

Well to show your strength that outweighs your superior could be embarrassing if it’s done in front of people but even without a crowd, you wouldn’t want to do that anyway.

tardy rain
#

Lmaooooo

Greene states that he does not try to follow all of his advice as, "Anybody who did would be a horrible ugly person to be around."

#

Does that mean if you follow none of it youre a terrific beautiful person to be around?

tulip falcon
#

No

#

But who can execute 48 different laws? Which laws are superfluous and make others needless?

young shoal
grave cove
#

why?

quasi blaze
#

Well excuse me. For tech, I can’t comment. I was speaking in general.

grave cove
#

mmm. I think it's nuanced and depends on situation

young shoal
#

you're in tech though. and pretty much everyone else here

tulip falcon
#

You can float when you think an idea is stupid pretty much anywhere

quasi blaze
#

In the mob, nobody argues with the made men.

tulip falcon
#

Okay....

#

But in the real world?

quasi blaze
#

They have a hierarchical structure

young shoal
#

are you in a mob bro

eternal depot
quasi blaze
young shoal
quasi blaze
young shoal
#

why not use advice that is applicable to your situation only

quasi blaze
#

Doesn’t matter what other hierarchal archetype I use as an example.

#

Could be a mob, military, this server. Almost all relationships are hierarchical.

#

You don’t argue with your superior

vale raven
#

I do

#

All the time

young shoal
#

tech is generally a meritocracy. don't agree for the sake of avoiding conflict. advocate for your idea, but understand they have the final say

tardy rain
#

Keezy its not that deep

#

Just be polite

quasi blaze
#

By not arguing with a superior

tardy rain
#

How and why do you struggle with this concept so much

#

Why are reading books about it then

ruby fox
#

I think expressing your opinions in a wrong way make you think like this

eternal depot
quasi blaze
young shoal
tardy rain
#

Are we though 🤨

eternal depot
quasi blaze
tardy rain
#

The other day you were arguing with a mod

#

How come

quasi blaze
tardy rain
#

You were saying one thing and godlygeek was saying another thing and those two things werent the same

#

Why didnt you just agree

quasi blaze
tardy rain
#

Or with aboo

ruby fox
young shoal
#

what's the difference between an argument and a debate

tardy rain
#

Not trying to get ahead on technicalities is probably one of the rules you should follow

quasi blaze
#

Definition #2

tardy rain
#

What about definition #1

#

Did you just skip past the thing you didnt like

ruby fox
quasi blaze
#

Debate

#

Debates are far more formal than arguments

young shoal
tardy rain
#

You cant have a formal discussion on an instant messaging app

#

Debates have sections where you get to lay out your argument and evidence uninterrupted

#

And moderators

#

Thats what formal debate is

tardy rain
#

You were arguing

#

With a mod

young shoal
#

there are clearly levels of arguing

quasi blaze
#

A moderator makes an authoritative decision. I’m not going to argue with them.

tardy rain
#

mfw i used to be part of debate club

quasi blaze
#

When a mod speaks with position of authority, I’m not going to rebuttal

tardy rain
#

Why are you chatting to a mod anyway, thats not your assigned lunch table

young shoal
#

your superior isn't a dictator at work though

tardy rain
#

Right?

young shoal
#

it's a meritocracy

quasi blaze
#

My interactions with aboo and godlygeek were never speaking to me with a position of authority. We were just having a conversation

tardy rain
#

But they have higher rank than you

young shoal
#

huh?

quasi blaze
#

That’s how they set up the server. I don’t make the rules

young shoal
#

but you can choose whether or not you participate

#

you're not forced to sit down

ruby fox
tulip falcon
#

This is cursed

tulip falcon
young shoal
#

ok, but who would disagree with that

ruby fox
#

Well 😂

young shoal
#

if you use more typical definitions of "argue", it becomes much more reasonable to argue with a superior

tardy rain
#

He skipped right over the definition of argue that he didnt like

glossy niche
ruby fox
quasi blaze
#

We are getting too focused on the semantics

tulip falcon
#

Debate channel when? We need 24/7 debate

tardy rain
#

Youre the one that brought up semantics lmao

young shoal
glossy niche
#

unlike u debators u have sigma business to attend to

tardy rain
#

I think aboo should ban everyone involved in this channel today, right now

ruby fox
glossy niche
#

I do this every morning

tardy rain
#

Imagine getting up at 8 lmao

#

I get up right before standup

runic plinth
#

Mods, set up a quarantine

#

Noone in or out

tulip falcon
#

I want to see a hardcore debate about the minutia of life 24/7 365

tardy rain
#

I want this topic to move onto lobster hierarchy

tulip falcon
#

Omg that reminds me so many animals implement the Crab interface

tardy rain
#

Fun fact, lobsters are so dominant that they kill themselves by requiring too much energy to molt into a bigger shell later in life

runic plinth
#

in a video game

tulip falcon
#

Crab-like interface I should say

tardy rain
#

I hope i didnt trigger any mods with that fun fact but also im not sorry

#

Enjoy the fun fact

tulip falcon
#

Class Lobster implements Crab-like

runic plinth
#

Just remember to add "in minecraft" at the end

tardy rain
#

Lmao

glossy niche
#

the small lobster is summoned by the bigger lobster and tells him to get into the shell so that he can fight off the big evil manta rays that come from high above

but the small lobster is small and weak, even if the shell is strong enough, he doesn't have the confidence to let anyone believe in him, however he does see the bigger lobster as a romantic interest, so he moves on anyways

tulip falcon
#

They didn't kill themselves biology makes us all kill ourselves if you go into semantics far enough

tardy rain
#

💀🦞

glossy niche
#

but after he reaches the shell, he realises that the female lobster was sent by his dad

glossy niche
#

and he's trying to get him to do things for him by dangling a romantic partner in front of hi

young shoal
#

biology actively tries to stop you from dying of old age

glossy niche
#

"GET IN THE SHELL, SHINJI" yelled the dad lobster

tulip falcon
glossy niche
tulip falcon
#

Why biology not make things live forever pithink

glossy niche
#

huh no one here watched evangelion

tardy rain
#

The small beta lobster knows that fishermen have lower limits on what catch they can keep
The alpha lobster stands no chance, he'll be poached in butter shortly

runic plinth
#

Cause genes get damaged over time

#

Radiation or something

glossy niche
#

and then the small lobster is forced to participate out of empathy for the crab

tulip falcon
#

Oxygen is killing us but why didn't biology just solve that

glossy niche
#

it only gets weirder

tulip falcon
glossy niche
#

that's nothing dude

#

the weird shit starts at episode 13

#

and the movie is just something else

tardy rain
#

Crab vs lobster who is more dominant

glossy niche
#

he was depressed for years

#

don't mention it 💀

glossy niche
glossy niche
#

because lobster has tail which makes him weak

#

it says a lot about society

#

some men have tails and some don't, the men without tails are stronger

meager sphinx
glossy niche
#

what did I smoke today

tulip falcon
#

There's fumes in your house brainmon

glossy niche
#

😋

tardy rain
#

Keezy when was the last time you pet a cat

tulip falcon
#

They are on different hierarchy of existence

#

He transcends petting such creature

glossy niche
tulip falcon
#

Oof

#

Dropped kitten

quasi blaze
glossy niche
#

that explains you weird behaviour

#

you get no p-

grave cove
glossy niche
quasi blaze
#

Maybe I should concede to every argument with a superior. Mars you made me rethink about this.

tardy rain
#

JBP said so though

glossy niche
#

but I did get dropped like that as a kid

tardy rain
#

How hierarchical is JBP

grave cove
#

it's so cute 🥺

glossy niche
tulip falcon
#

They rethought it but came to the same conclusion?

grave cove
tulip falcon
quasi blaze
#

I should yield to them

#

Don’t give any pushbacks

tulip falcon
#

The tone set whether it's an argument or not

#

If they sound pissed off it's an argument

quasi blaze
#

Because mars said I was arguing with them

tardy rain
#

I think before you form such opinions you should first go out for a walk

#

Find a cat to pet

#

And then you can think whatever

tardy rain
#

No the cat step is important

glossy niche
tardy rain
#

Or any animal really

vale raven
#

oh hey

#

Just in time

#

Everything is already fixed

tardy rain
#

You also use this stuff?

vale raven
#

No

#

I just asked to register to see what Keezy was looking at

quasi blaze
#

Curiosity runs deep

young shoal
grave cove
#

ifunny strikes again

glossy niche
#

fact: 90% of discord users stop arguing online right before their opponent admits they are wrong and changes their opinion

vale raven
#

NOTHEYDON'T!!1!

tardy rain
#

Keep on trucking, soldier

hexed sierra
#

your memes are DANK

glossy niche
#

thanks i have no life

tulip falcon
hexed sierra
#

precisely

glossy niche
#

i cant post most of the memes i have here because they involve piss

#

usually graphic depictions of it

tardy rain
#

Pydis shadowbans you if your meme game is shit

tulip falcon
#

Piss memes lemon_holding_back_tears

tardy rain
#

What in the

glossy niche
runic plinth
#

pissimilated

glossy niche
#

The War of the Worlds 1897

tardy rain
glossy niche
#

the blue lobsters are many and strong

#

the brown one is weak

acoustic moss
hexed sierra
#

hey

glossy niche
#

edds an adjective, noted ✍️

hexed sierra
#

calling me out in public

glossy niche
#

more piss

#

if remembering this game makes me old, i might as well just dig a grave

hexed sierra
#

@high haven what's for lunch?

glossy niche
#

yeah, twitters been like this for the past 6 months

#

gptmaxxing

high haven
glossy niche
high haven
glossy niche
hexed sierra
glossy niche
#

(((they))) dont want you to know this

hexed sierra
#

the rest are off topic

glossy niche
#

isnt bogo sort O(1) in a quantum oputer

high haven
young shoal
hexed sierra
glossy niche
#

LITERALLY ONLY ONE FEATURE

high haven
#

problems are always nuanced

acoustic moss
high haven
#

you literally shotgunned every type of model it looks like

glossy niche
young shoal
#

yk Rex, my project would be perfect to learn about some ML

glossy niche
#

its one of thoese bayesian search thingies

high haven
#

hf psv

glossy niche
#

i have learned from it taht feature engineering is actually pretty important

acoustic moss
glossy niche
#

whats a hammer

acoustic moss
#

hammering ur mum lol

young shoal
#

🗿

high haven
#

why tho

acoustic moss
#

😔

glossy niche
young shoal
#

real

hexed sierra
#

oof

high haven
# glossy niche

dont bring this up. one of the etl jobs uses this instead of cron

#

i hate it

glossy niche
hexed sierra
#

ah, here's one for you.

glossy niche
#

ohnly exp with systemd i have is shutting down apache and turning it back on

hexed sierra
#

AI will take our jobs:

glossy niche
#

this is how i imagine rich ppl think

#

wait until the sheeple find out that salmon is actually dyed

#

not died*

#

fuck english

high haven
#

ive also seen this one. sorry not much of a reaction from me

young shoal
#

on prem servers

high haven
high haven
glossy niche
meager sphinx
hexed sierra
glossy niche
#

i saw a post like this earlier today lmao

hexed sierra
#

i don't have much content on-topic tbh. much like AI jobs, the memes are also dull

glossy niche
#

my friend literally thanked the DoD or something

#

for a scholarshi

high haven
glossy niche
meager sphinx
# hexed sierra

looking forward to be working with jurasdiction system || got a ticket for speeding and had to argue it in court ||

glossy niche
#

fornite

runic plinth
glossy niche
young shoal
glossy niche
#

the ones you turn on and off

#

with a GUI?