#ot1-perplexing-regexing

1 messages · Page 71 of 1

drowsy fable
#

The quality of pixels is not how it looks live

#

What do you think about my game? Its nice, right?

bright grove
#

like a sandbox

drowsy fable
#

A sandbox? Now this is something I never thought about.

bright grove
drowsy fable
bright grove
#

that music soo fucking goofy though

drowsy fable
#

Hehe

#

Look how the game should look. Now go back to YouTube and watch it less HD.

#

This recordings are nowhere close to reality.

bright grove
drowsy fable
#

This is what happens when your sprites, in your "pixel art" game are 128 pixels size

bright grove
#

then here

drowsy fable
#

Really?

#

lol

bright grove
#

yes

drowsy fable
#

Anyway

#

Its nowhere close to reality

bright grove
#

also for small pixel art stuff, you need to make bigger using nearest neighbour algorithm

bright grove
#

like my pfp, its 32x32 pixels ingame

#

but i made it 1024x2014 pixels with nearest neighbour

#

not sure how to with videos though

drowsy fable
#

I usually just take the sprite and stretch it double size every time until I get the size I want

#

For smaller ones

#

But working with large ones is a nightmare

#

I mean, my game is forced build on 1920x1080 resolution, laptop resolution 1544 or whatever, doesnt' work for my game

bright grove
#

i always make sure my guis work at 720p

drowsy fable
#

That I should also do

#

My game works only for 1080

#

I'm glad you at least understand the problem

bright grove
#

gui dev is hell

#

thats why i didnt want to do game dev

#

just stick with backendy stuff

drowsy fable
#

This video thing is so weird, why can't we just capture reality like it looks for our eyes?

bright grove
#

@drowsy fable maybe its settings wrong on youtube

#

make sure its 1080p60

drowsy fable
bright grove
#

you dont need to in order to make a good game, you just need time and dedication

#

especially a 2d game like that

#

its 2023

drowsy fable
#

Yes.

bright grove
#

youd have pressure on you

drowsy fable
#

Since Steam doesn't bring sells on its own, why even use it?

#

I need marketing and a community and much more anyway. So why give 30% to Steam?

spare oriole
rich karma
drowsy fable
#

😆

spare oriole
#

yeah but it looks like the jetpack runner game

drowsy fable
#

I'm extremely glad you generally like it. This means a lot for me, gives me power to finish it.

drowsy fable
spare oriole
#

that's not the one i was talking about

#

it's jetpack joyride

drowsy fable
#

That level design is inspired by a pixel art game made by other studio, btw

#

It gives you vibes like Jetpack Joyride? Wow...

spare oriole
spare oriole
drowsy fable
#

Its good anyway

#

Thank you

glossy niche
#

oracle C#

stable python
hexed sierra
#

the minimum requirements are easy to meet with a used computer, which is probably what you should aim for with that budget. at this price range though, you won't find anything that runs premiere pro well

#

video editing benefits from lots of ram and a gpu

brittle void
#

guys, should a password manager encrypt the email ids as well?
cuz i think encrypting email ids that are mostly available in public doesn't make much sense to me

gritty zinc
#

a password manager should encrypt everything, i'd say

#

even just knowing that someone has an account for a site is private information

brittle void
uneven pine
#

,g define everything

gritty zinc
brittle void
#

do u do something like, convert it into some string format and encrypt it and store it in a binary format?

gritty zinc
#

i have no idea what's a good way of doing that. maybe just full-db encryption would do, with a key derived via argon2 from the master password.

#

(you could always look at how keepass does it and steal their solution)

brittle void
gritty zinc
#

the one that you use to unlock the password manager.

#

the password inside indeed have to be encrypted rather than hashed, since you need to get them out.

thin cloak
#

New use for old cd / DVD drive bed frame support since I broke mine

brittle void
#

idk how its gonna make it more secure tho

graceful basin
#

Huh, this is actually a fairly interesting problem. Do you decrypt all the websites and usernames at once, thus allowing searching for them, but allowing a malicious process to extract the list from RAM.

brittle void
#

what would u do here then?

graceful basin
#

decrypt all websites and usernames, a password manager which can't search among those is useless. But the passwords should of course be decrypted on demand

gritty zinc
#

yeah, keepass does this I think

#

though protecting data in memory is also a thing, even if it only makes it harder

graceful basin
#

put everything into closure-backed tries, that will surely solve all problems

gritty zinc
#

realistically speaking, all the time your password manager is using your password, it's vulnerable to memory reading. you can make it less trivial but can't prevent it.

graceful basin
#

I was mostly joking

brittle void
graceful basin
#

no, they should be encrypted, but then decrypted once you start the manager

thick ore
#

personally, i just make my passwords follow a fixed format

#

that way it's easy to remember, and less vulnerable to cross-password attacks

young shoal
gritty zinc
#

yup, just use the site name and your username separated by _. that way they never repeat and are easy to remember! truly genius

thick ore
#

yes

#

W

#

i mean, you can't possibly write a script to find these passwords and all their formats right?

#

unless you're targeting one user specifically

brittle void
#
def get_super_duper_secret_password(site, username):
  return f'{site}_{username}'
young shoal
#

following a fixed format reduces the randomness pithink

jaunty wraith
young shoal
#

not getting the pwd from a function named get_pwd is a bit strange

thick ore
brittle void
#

i was storing passwords under the name pwd
maybe that adds a little bit of madness to safeguard my passwords? maybe?

jaunty wraith
#

thick ore
#
$ pwd
ghost.ops_573850
#

W pwd

brittle void
#

lol

#

what i meant is, under the key pwd

#

another problem that im facing is, i need this to work in mobile too
im using termux to run my app

#

but im still not sure that it can run a mongodb instance

thick ore
#

depends

#

how powerful is your phone

brittle void
thick ore
#

you weren't sure you could run a mongodb instance

#

on your phone

brittle void
#

but still, its powerful to a decent level

thick ore
#

it can run a mongodb instance

#

the question is can your phone handle a mongodb instance

brittle void
thick ore
#

do u wanna use Docker or

brittle void
thick ore
brittle void
#

thats it?

thick ore
#

yeah

#

u don't need to use it tho

brittle void
#

ok, it installed, and i do have exactly what they've shown in that tutorial

#

currently having a cli as interface

urban cedar
#

@rancid haven Not sure if you wanted me to put the answer in here or if you were saying the answer can be found here. I don't know the answer as to why there are so many threads being created in first place.

rancid haven
#

You're debugging your own C++ program?

urban cedar
#

?

jovial oriole
#

another gravity simulation, this time, systems start spinning because bodies can collide and merge

#

but there are few stray bodies here and there that zoom out mplt

#

i could resize it

shadow jetty
#

colorama library can help you

thick ore
#

!pip rich

royal lakeBOT
#

Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal

thick ore
#
import rich

rich.print("[green]hello world[/green]")
jovial oriole
#

I just realized

#

If i can bench 150 lbs for 2 reps

#

I can do 300 for 1 rep

#

I dont think i need a spotter for this

#

Clips seem good too

grave cove
#

benching 300 without a spotter seems like a terrible idea

jovial oriole
grave cove
young shoal
jovial oriole
#

Yeah i shoulda gotten a spotter

young shoal
#

💀

jovial oriole
#

Safety bars substitute tho

hybrid root
#

BRUH

grave cove
small coral
grave cove
#

i mean one minute near the surface of the sun would probably cook your mom's thanksgiving turkey pretty well

small coral
#

true

grave cove
#

Actually it probably doesn't even have to be too close to the sun

thick ore
#

what if we make one giant stove around the sun

dapper dew
#

Are we re discovering solar thermal energy

young shoal
#

the surface of the sun is only a measly 5778 K

grave cove
#

Step 1: Cover the sun in solar panels
Step 2: ???
Step 3: Profit

young shoal
#

that'll take too long to cook

grave cove
#

you know as they say

#

let him cook

small coral
young shoal
#

why use the sun?

#

we can make furnaces hotter than that here on earth

grave cove
#

just have your mom sit on it

small coral
#

hmm

#

good point

thick ore
#

rich.print(f"[green]{my_variable}[/green]")

peak jungle
#

@dry raft

#

@placid reef

#

@warped sentinel

#

@timid latch

#

@median trench

#

@tranquil harbor

#

@hidden chasm

#

@flint furnace

#

@warm rover

dry raft
#

!mute 1084390848587907165 1H

royal lakeBOT
#

:incoming_envelope: :ok_hand: applied timeout to @peak jungle until <t:1697950852:f> (1 hour).

dry raft
#

!ban 1084390848587907165 self-bot

royal lakeBOT
#

:incoming_envelope: :ok_hand: applied ban to @peak jungle permanently.

grave cove
#

cleanup on aisle 1 😬

lament cairn
#

It might be malicious

lucid raptor
naive igloo
#

is it a bathtub out of money

#

or bathtub with money

brittle void
#

guys, it seems like sqlite doesn't supports creation of users and authentication to prevent public users to access the daatabase
is there any good database manager that i can use for a password manager, or does sqlite does allow me to add password for the whole db?

jovial oriole
lament cairn
lament cairn
brittle void
#

@lament cairn so, in this case, do i still need to encrypt each and every value in every field (i.e, passwords) in an encrypted db?

lament cairn
#

I'm not sure

#

I think it works like a normal sqlite file

#

but it's stored as encrypted

brittle void
foggy jungle
#

you should still hash passwords.

#

hashing is not encryption.

graceful basin
#

they are afaik making a password manager, so no hashing passwords

rich karma
foggy jungle
#

Ah.

brittle void
#

but still, i think only the paid tier allows users to customize the key for encryption in sqlcipher

brittle void
#

maybe i should move on to smth like mysql or smth

foggy jungle
#

Different implementations exist for different threat models; but 'double encryption' is almost always not a good idea.

rich karma
#

mysql is one heavy fella

brittle void
foggy jungle
#

I think the implementation you'd be pursuing largely depends on the semantics of what you're building.

brittle void
rich karma
brittle void
rich karma
#

@brittle void check out how they implement the password storage and getsome inspiration

foggy jungle
#

Consider the following: A local password storage manager that does not connect to the internet.
By virtue of that, at some point, the key must exist on your computer in order to decrypt that information; and thereby, degrades the security of the application itself.
Typically we step around this with things like TPM and base windows API's whereby we can, with some confidence, defer the semantics of that to the root of trust established within Windows (and potentially your TPM itself).

rich karma
#

nicely summed up ^

foggy jungle
#

There's a lot of stuff that goes into whether or not "just encrypting it" is a sufficient protective measure.

brittle void
foggy jungle
#

My brain hurts thinking about the nuance of trying to handle cryptographic data without utilizing the API's meant to do such things.

brittle void
foggy jungle
#

Probably not in pure Python.

rich karma
#

and anything python should remain as stateless as possible

brittle void
naive igloo
brittle void
#

im thinking of using mysql

naive igloo
#

sqlite is just a replacement for those .json files you would have created

#

to store data

rich karma
#

i feel like you didn't really internalized what sentient said, yet

brittle void
rich karma
#

lmao, they're not buzz words. they're important concepts to discover and learn whenever it comes to security

#

especially in this context

#

setting your program free in the wild, without any control on the machine where the secret stuff well be kept and protected

#

that's what they meant with: A local password storage manager that does not connect to the internet.
By virtue of that, at some point, the key must exist on your computer in order to decrypt that information; and thereby, degrades the security of the application itself.

gritty zinc
rich karma
#

and then, they explained the industry standard workaround to that

#

the TPM and the system APIs

brittle void
rich karma
rich karma
foggy jungle
rich karma
#

knowing Microsoft, on Windows it must be tons and tons of hoops you need to go through that can easily be defeated by some gramps downloading an attachment thinking it came from their grandchildren

gritty zinc
#

meanwhile I looked at keepass source code and

naive igloo
foggy jungle
#
hello
              
               
                  
                                                                                                                                          world

``` lookin' code.
gritty zinc
#

that's KeePass/KeePassLib/Cryptography/PopularPasswords.cs, so not critical or anything

jaunty wraith
#

they like their spaces

naive igloo
#

9?

rich karma
gritty zinc
#

i think that's a single Tab and github just inflates it hard

foggy jungle
#

I'm honestly not sure how I'd implement this. FDE's basis of encryption used to be derived from the password you set. That was considered secure. (Though it... wasn't.)
We've moved that into the TPM as well in recent years.

gritty zinc
brittle void
#

i still have no idea what to follow, and what not to

rich karma
gritty zinc
rich karma
#

start there, man

royal lakeBOT
#

KeePassLib/Security/ProtectedBinary.cs lines 50 to 54

/// <summary>
/// A protected binary, i.e. a byte array that is encrypted in memory.
/// A <c>ProtectedBinary</c> object is immutable and thread-safe.
/// </summary>
public sealed class ProtectedBinary : IEquatable<ProtectedBinary>```
rich karma
gritty zinc
brittle void
gritty zinc
rich karma
brittle void
rich karma
rich karma
brittle void
#

i still see so many paswword manager tutorials use pbkdf/aes from pycryptodome to encrypt passwords, then use add user authentiction to keep the db secure
nobody encrypt the whole db
they don't even encrypt anything other than passwords

rich karma
#

honestly, i don't bother with tutorials anymore

#

they either implement a project half assedly, or stick to showing irrelevant examples

brittle void
#

tru tru

rich karma
#

i can't tell you the frustration i felt with goddamn asyncio.sleep "tutorials"

rich karma
#

lol

brittle void
#

guess i have to just add a user authentication to the db, and encrypt everything in the db?

#

i'll just stick to that

foggy jungle
#

I mean all of this conversation is to kind of say "It depends on your threat model."

rich karma
#

imho, see this project for what it is. your means to acquire skills and knowledge

brittle void
#

cuz once this project is done, im never gonna touch this

rich karma
#

this ain't your 1 million dollar idea, it's more important than that

foggy jungle
#

Basically, you can go as far in depth as you want. shrug

rich karma
#

it's a step towards that 1 million dollar idea

brittle void
#

just a fun little project

#

but just learning to do in the professional way

rich karma
#

what do you see yourself coding in a couple of years, in the grand scheme of things?

brittle void
#

idk, games maybe?

rich karma
#

well, you'll surely rely on some windows api or another

#

so you can see this as an entrypoint to that world

#

i think that by now, you got the idea of importing a module, using its objects, then moving on

foggy jungle
# brittle void i don't have any threat basically

Threat model is how we refer to... the measures we take to protect something, not necessarily your individual threat.
A base threat model would be... "I don't want people to be able to ctrl+f password on my computer and obtain my credentials" and that would be remedied by... not using the word password and just writing them all in a notepad file called 'secrets.txt' or something.

#

That's obviously a really dumbed down example, but that's kinda' how threat modeling works.

rich karma
#

moreover* {hashing and salting and peppering and pampering and whatever} is a straightforward process

#

so maybe this is your calling to venture a bit outside of your comfort zone into the realm of OS api fuckery

#

in my experience, i learn more with unit tests than with "implementing" a thing. because sooner or later, while implementing*, i will end up reading and understanding some code example on SO or in the documentation -> this is a way to learn, for sure

#

but coming up with your own stuff during unit testing is something that will also teach you stuff, that you never thought you'd need. e.g the standard library of python

#

itertools, os, pathlib, etc

gritty zinc
#

what if my threat model is "mossad"

rich karma
#

creating the mother of all generators and bombarding your database the fuck up with read/write queries
while timing some other thing
that's what i enjoy doing the most, tbh

foggy jungle
tulip falcon
#

Grammar enthusiasts reaction to that

rich karma
#

well, there seems to be a glimmer of hope in that emoji's eyes, so i wouldn't worry about them

#

in any case, i fixed it

tulip falcon
rich karma
#

lemme assist you a bit further into getting what i mean

#

there

tulip falcon
#

hashing, salting, peppering, pampering and whatever brainmon

rich karma
#

yup whatever steps there are in the set that is: securing a password

#

i can add hinting, if you want

tulip falcon
#

I feel sick

#

On an unrelated note

lament cairn
jovial oriole
#

why

naive igloo
#

it should be

#

why not

jovial oriole
#

about me

#

haha

naive igloo
#

and also i think thats what cave johnson said as well pithink

#

...science should be about why not to and not why
smth like that

lament cairn
# jovial oriole why

better than having it become e-waste
i think it's impressive that it works, though all that hardware can probably be replaced with a raspberry pi zero w and use far less space and power...

lament cairn
glossy niche
jovial oriole
#

The shadowy elite people dont want me to bleach or iron this delicate piece of fabric

#

Ill show those bastards

#

Guys how to add color back to a shirt???

#

Fastest way????

ruby fox
spare oriole
carmine apex
#

a paint of can? 🤔

spare oriole
hazy pine
tulip falcon
glossy niche
#

bats :D

jaunty wraith
#

cat

ruby fox
#

car

grave cove
#

dog

ruby fox
#

It's definitely a car

tough perch
ruby fox
#

That car thinks it can defeat humans

solemn tulip
#

@dreamy silo

#

just adding areas (probabilities) gives the wrong answer if there is any overlap

ruby fox
#

Do you know sets? @dreamy silo

#

In maths

solemn tulip
#

as an extreme case, flip a coin, what's the probability that the result is heads or that the result is heads?

#

the probability for either is 1/2, but you can't just add them

#

the outcomes completely overlap

ruby fox
#

Let me give an example too

tropic lichen
#

So basically, let's say you've got two events, A and B, which may or may not happen at the same time
That means we've got 4 different potential outcomes, either just A happens, just B happens, both A and B happen, or neither of them happen

When we wanna figure out the odds of A or B happening, that's basically the odds of those 3 outcomes that aren't neither of them happening -
P(A or B) = P(just A) + P(just B) + P(A and B)
P(A) is the probability of A happening, including both when B happens, and when B doesn't happens - or in other words, P(A) = P(just A) + P(A and B) (and vice versa for P(B)

So in turn, if we do P(A) + P(B), we end up with P(just A) + P(A and B) + P(just B) + P(A and B)... notice how we've now counted P(A and B) twice? If we wanna turn this into the equation that I set that P(A or B) is meant to be... we have to subtract P(A and B)

solemn tulip
ruby fox
#
#let "a" and "b" be a lists
a=[1,2,3]
b=[2,3,4]
print(a+b)

# you can see 2,3 repeated in output
#

!e

#let "a" and "b" be a lists
a=[1,2,3]
b=[2,3,4]
print(a+b)

# you can see 2,3 repeated in output
royal lakeBOT
#

@ruby fox :white_check_mark: Your 3.12 eval job has completed with return code 0.

[1, 2, 3, 2, 3, 4]
ruby fox
#

2 and 3 are common to both lists, so it's repeated two times

#

This can be extended to probabilities too

solemn tulip
#

missed opportunity for Counter

ruby fox
#

I wanted use the most basic one as possible

solemn tulip
#

I mean more that Counter addition is this naive addition that overcounts

ruby fox
#

Or you wanted to show the count of elements in the resultant list?

tropic lichen
# tropic lichen So basically, let's say you've got two events, `A` and `B`, which may or may not...

or if you want something written down in a little more of a mathematical way:
There are 4 different possible outcomes, 3 of which count as A or B happening:P(A | B) = P(A & ¬B) + P(¬A & B) + P(A & B)P(A) and P(B) both can be separated out into a sum of two different outcomes:P(A) = P(A & B) + P(A & ¬B) P(B) + P(A & B) + P(¬A & B)So if we add these together:P(A) + P(B) = P(A & B) + P(A & ¬B) + P(A & B) + P(¬A & B)This is nearly the equation we want, we just need to subtract one of those P(A & B)s:```
P(A) + P(B) - P(A & B) = P(A & B) + P(A & ¬B) + P(¬A & B) = P(A | B)

solemn tulip
royal lakeBOT
#

@solemn tulip :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | a|b = Counter({1: 1, 2: 1, 3: 1, 4: 1, 5: 1})
002 | a+b = Counter({3: 2, 4: 2, 1: 1, 2: 1, 5: 1})
003 | (a + b) - (a & b) = Counter({1: 1, 2: 1, 3: 1, 4: 1, 5: 1})
004 | True
dreamy silo
solemn tulip
dreamy silo
#

Sorry for the difficulties, I haven't slept very well in two days and I might need some pills.

solemn tulip
#

flip a coin, what's the chance of you getting a heads or a heads?

solemn tulip
#

simply adding would give you 1

solemn tulip
#

so the proper computation is 1/2 + 1/2 - 1/2

#

where the last part is the intersection of the two

ruby fox
solemn tulip
#

this is what's being asked about, no?

#

I can't talk about it while not talking about it pithink

dreamy silo
dreamy silo
solemn tulip
#

if the events are completely independent you can just add them

ruby fox
#

That's why I'm not explaining like them 😔

tropic lichen
solemn tulip
#

but as soon as you have events with some overlap you need to compensate

dreamy silo
#

So that would mean that all those sources were lying?

#

Since I read that you had to compensate when they were mutually INclusive.

tropic lichen
solemn tulip
dreamy silo
#

Oh, I must be getting the semantics wrong.

#

By "independent" you must mean "can't occur at once".

#

Mhm.

tropic lichen
#

well i mean, the formula still technically applies to mutually exclusive events, its just that P(A & B) is 0, so you're just subtracting zero

tropic lichen
solemn tulip
tropic lichen
dreamy silo
#

I'm sure I'll have to get educated on it more thoroughly, I do data science at university and I'm doing a foundation course on maths.

#

Maybe I'll leave that for now?

#

Thank you for your help, I'll look over it later.

solemn tulip
#

how is it, mutually exclusive implies independent?

#

it's been a good while

tropic lichen
#

i don't think either implies the other

#

though that does sound sensible, hrmm

young shoal
#

independent does not imply mutual exclusion, but the opposite is true I think

solemn tulip
#

ah

#

wait, I see people say
independent => not mutex
mutex => not independent
pithink

tropic lichen
#

if you flip a coin, the odds of getting heads or getting tails are mutually exclusive, yet dependent, no?

ruby fox
#

Yeah heads and tails are mutually exclusive, but piloting a plane and driving a car are independent events

tropic lichen
#

unless that doesn't count because it's technically the same event or something

solemn tulip
#

not A implies B if mutex

#

err

young shoal
#

huh

solemn tulip
#

assuming A+B = 1

#

knowing the outcome of of one event gives me info about the other

young shoal
#

yeah so I guess they're mutually exclusive

solemn tulip
#

for sure

#

but not independent

#

very much not independent

young shoal
#

no I mean, independence and mutual exclusion are mutually exclusive

solemn tulip
#

independently

ruby fox
#

A and A` are mutually exclusive right?

young shoal
#

they're not independent though, because knowing independence means not mutual exclusion

solemn tulip
#

too meta

solemn tulip
tropic lichen
#

if you pick a random user from this server, the chances of them being non-staff and the chance of them being an admin are mutually exclusive, yet knowing one of those outcomes influences the odds of the other being true

ruby fox
#

According to independent event formula:

P(A&B) = P(A)*P(B)

This is only possible when the A and B are independent events

#

"Head and tail" event has 0.25 according to this formula, but we know it's impossible

#

But getting a "tail and picking blue ball" is possible, and we get a finite value

solemn tulip
#

Reminds of me of these kinds of quesions:
What's more likely?
a user is an admin in pydis
a user that is a python gury is an admin in pydis

#

(let's assume I phrased that correctly)

ruby fox
#

Or if every admin is a python guru 😮

solemn tulip
ruby fox
#

🤔

young shoal
#

reads like a bayes theorem problem

solemn tulip
#

maybe when disguised a bit better as something more wordy

ruby fox
#

What you meant in the question is probability of finding a python guru, who is also an admin right?

tropic lichen
#

bayesian stats is all about dependent events, since of course knowing python has an influence over whether you're gonna become a pydis admin

solemn tulip
#

and yes

tropic lichen
#

i think they meant "What are the odds that someone is an admin in pydis, given that they're also a python guru?"

solemn tulip
#

no

tropic lichen
#

or not 😅

ruby fox
#

It's an "admin and python guru" question i suppose?

tropic lichen
#

so it's:

  • odds of someone being a pydis admin
  • odds of someone being good at python and a being a pydis admin
    (if you want something a little less debatable (ducky_devil ), you could replace being good with python with being able to speak english, or having good people skills)
ruby fox
solemn tulip
#

something like that

ruby fox
#

Then I'm sure that probability of finding an admin is high than, admin and guru

solemn tulip
#

it is

young shoal
#

I think you worded it wrong pithink

ruby fox
young shoal
#

or forgot a key point

solemn tulip
#

The conjunction fallacy (also known as the Linda problem) is an inference that a conjoint set of two or more specific conclusions is likelier than any single member of that same set, in violation of the laws of probability. It is a type of formal fallacy.

#

and yes seems I did phrase it wrong

young shoal
#

yeah

solemn tulip
#

all the parts are kinda there, just jumbled about 😛

young shoal
#

I loved the "assume it's phrased correctly"

#

if I somehow become a prof I'll put that in every question

#

force students to write down what the assumed the question asks 😩

tulip falcon
#

AI will replace thinking

#

Got to yeet my phone out of reach I'm behind today

ruby fox
ruby fox
young shoal
ruby fox
#

Degree is used to assume that you have the needed skills

young shoal
#

huh?

ruby fox
young shoal
#

not at all

#

but that's different

ruby fox
#

That's the theory, but for practicality things are different hmm

young shoal
#

I'm just talking about each individual problem

young shoal
tulip falcon
#

Sounds like Jordan Peterson theory

ruby fox
glossy niche
#

jorpsy ❤️

honest star
#

US Folks!!! Check your voter registration today~
There are some states where today's the last day to register to vote/update your registration status (looking at you Pennsylvania eyesUnamused)

uneven pine
#

registered and confirmed

young shoal
honest star
young shoal
#

idk

#

i did like 2 years ago

honest star
young shoal
#

looks like i do not need to register again

#

so i should be registered

glossy niche
#

american culture is so cool like every leap year you get to do x factor but with demented old men

tardy rain
#

Contestant skill issue

tulip falcon
#

Don't think imma vote. Don't care.

tulip falcon
#

they all lie to get into the White house and are serial liars

#

What's his face makes up lies on the spot all the time like a school kid

#

If I was gonna bet money I'd say Democrat will win , they are loving oppressing the US for a good decade straight

honest star
#

... right anyway. Please register to vote! Local politics are very important

jovial oriole
#

What

spare oriole
#

that's illegal....

tulip falcon
#

💀

bright grove
#

!pypi pillow

royal lakeBOT
bright grove
#

bro i love this library

#

soo good

#

image.putdata

lament cairn
lament cairn
young shoal
#

does fine

high haven
#

use bass clef. done.

brittle void
#

guys, where should i store the hash of the password manager's master password? can i just store it in a separate table within the same database that has all the passwords? or is there any better way to do this?

glossy niche
#

that's a data modelling problem, needs more details for an answer

thick ore
#

Why not? Is Fastify stupid?

brittle void
#

i saw someone store its hash in an another separate table, within the same database

#

can i just do that?
or how should i store it?

glossy niche
#

depends on your requirements

#

what other columns does the password table have?

#

personally, I'd store it in its own table in case there was a change of requirements and other stuff ended up being store along with the master password

brittle void
glossy niche
#

database modelling depends on the requirements

#

¯_(ツ)_/¯

brittle void
#

and also, i've just noticed, in pycryptodome, if i encrypt something with some random initialization vector (IV) in AES like this IV + ciphertext , it gives me a cipher text
and then i just store it in the db
but to decrypt that, i can just read the first n bytes of the ciphertext as IV, and then i can read the remaining as the actual encrypted ciphertext

which means, if u still can't understand
encryption is done like this
ciphertext = Encryption(IV + data)

but decryption is done like this

IV, actual_ciphertext = ciphertext[:length_of_IV], ciphertext[length_of_IV:] # length of IV is pre-determined
data = Decryption(actual_ciphertext)

I can read and take the IV out separately, even if the actual data is encrypted along with it, which is weird to see, and i don't think this is still storing data safely

actual code

from Crypto import Random
from Crypto.Cipher import AES
from Crypto.Util.Padding import pad, unpad

key = Random.get_random_bytes(32)
data = b'hii'

def encrypt():
    IV = Random.new().read(AES.block_size)
    cipher = AES.new(key, AES.MODE_CBC, IV)
    ciphertext = cipher.encrypt(pad(IV + data, AES.block_size))

    with open('secrets.txt', 'wb') as f:
      f.write(ciphertext)

    print(f'encrypt {ciphertext = }\n{IV = }')


def decrypt():
    with open('secrets.txt', 'rb') as f:
      IV, ciphertext = f.read(AES.block_size), f.read().rstrip() # i can separate IV and ciphertext right away while reading the file, even before decryption

    print(f'decrypt {ciphertext = }\n{IV = }')

    cipher = AES.new(key, AES.MODE_CBC, IV)
    plaintext = unpad(cipher.decrypt(ciphertext), AES.block_size)
    print(f'\n{plaintext = }')

encrypt()
decrypt()
brittle void
jovial oriole
#

What is goig on in the gc?

thick ore
#

their bad cuh

honest star
#

Okay folks, I'll have a free Saturday in LA in the next upcoming weeks. What are good things to do?

uneven pine
#

Go to a better place

runic plinth
#

Fly to Japan or korea

naive igloo
high haven
#

also good soju but i dont remember the place.

jaunty wraith
naive igloo
#
  1. for status look at status code, in the HTTP response, seriously
#
  1. that removes a need for data
tardy rain
#

Somebody explain how every project im assigned to ends up using 7+ year old tech

graceful basin
#

All useful tech is 7+ years old

grave cove
#

so true

jaunty wraith
#

2023 - 7 is 2016

#

lots of stuff

#

just out of the crop is Rust and C11

#

and that's just langs

naive igloo
tardy rain
#

i hate it i hate it i hate it

acoustic moss
#

banning Zig for being on discord as 8 yo

tardy rain
#

i hate shitty class components and wrappers upon wrappers and jest 16.0.0 for some reason

naive igloo
#

if my math correctly mathing

#

8 + 6 should be 14

acoustic moss
#

15 indeed

naive igloo
#

i misstyped on a keyboard 😭

#

what if

#

i make a language

#

which lives with objects

#

there wont be even a "class"

#

you can only initiate an object

#

more meta than python

#

or will it actually be?

jaunty wraith
#

what is an object

naive igloo
#

yk in python there is still a tiny difference between classes and functions?

#

like where __call__ on clases does (c := Class.__new__(Class)).__init__()?

#

well

jaunty wraith
#

__call__ defined in a class is for making an instance of it callable, yeah

naive igloo
#

because everything is an instance already

#

i mean by that logic

#

however

#

python's classes are already instances of type

#

HMM

#

ok is there any way to go beyond python

naive igloo
#

and wouldnt be JS?

#

because like in JS everything is an instance-- ah wait no..?..

#

nvm failed idea

jaunty wraith
#

…good talk

naive igloo
#

because in python everything is already an instance of object

#

...HOWEVER object itself is an instance of type

#

i believe there is some under-the-hood difference between the two

#

instance of object and instandce of type

#

ie an instance of an instance of type

#

like it changes from class to object

>>> type
<class 'type'>
>>> (Yeah := type('Yeah', (), {}))
<class '__main__.Yeah'>
>>> Yeah()
<__main__.Yeah object at 0x7fee184adcd0>
>>> 
#

what..?

#

got it

#
def print(*parts: str, sep: str = ' ', end: str = '\n') -> None:
  ...
#

is this too cursed?

#

obj keyword creates a new object

#

hmm

#

i think i would need to get drunk to create something truly cursed

#

because rn that was just... "weird"

#

or rather "what python would look like without class keyword"

#

however i like the idea of doing those "aliases"

#

sep: stringable means that sep will contain .repr.str.value%() method

#

so smth like impl Into<&str> in rust

solemn tulip
naive igloo
solemn tulip
#

be brave

#

use f

naive igloo
#

i will.

young shoal
#

just use math notation

#

f(x) =

#

then use end=

cobalt remnant
#

I didn't turn on my PC in a couple months, and now it kernel panics on boot.

#

All I did was update it.

#

I guess now is a good time to install endeavour instead of manjaro

jade harbor
#

recently added a split pane markdown editor to biscuit, the project has become huge lol

#

it looks strikingly similar to vscode

#

but yes, it isn't, thing is fully written in python using tkinter only

cobalt remnant
#

who needs graphical installers?

#

though the liveiso could have a motd set mentioning archinstall

jovial oriole
#

Unfortunately i have no idea how to cook

ionic bane
thick ore
thick ore
#

😳

jovial oriole
#

I burnt the eggs a bit

#

Just a tad

#

Yes

tulip falcon
#

Atta boy

wanton delta
tulip falcon
#

I had a dream there was a swimming party at a mansion and I was just eating snacks the whole time

#

and that there was an old lady who kept trying to talk to us so it was hard to leave

#

She kept giving me more snacks lmao

#

like "oh before you go" and opened a box of turnovers or something and ate one in one bite

jovial oriole
lunar vault
#

Guido van Rossum (Python Programming Language Creator) is Engineer of the Day at the Instagram of Interesting Engineering: https://www.instagram.com/p/Cy0bA5Gtu9w/?igshid=MTc4MmM1YmI2Ng==

Guido van Rossum, born in 1956 in the Netherlands, is the visionary behind Python, a programming language that has left an indelible mark on the software development landscape. With a remarkable aptitude for mathematics, Guido's journey began with a bronze medal at the 1974 International Mathematical Olympiad. He further honed his skills, gradua...

Likes

539

ancient mortar
#

i want to ask if there's a place to get math questions for practicing maths?

#

like some sort repository of math questions

crystal spruce
#

textbooks usually have nice questions

ionic moth
#

me when the catastrophic failure

#

that's really descriptive thanks microsoft

ancient mortar
#

i read that only high school math required

ionic moth
#

afaik ml requireres big times math

#

nothing you'd do in hs

glossy niche
#

Most of it is taught in hs

ionic moth
#

ok nvm then

glossy niche
#

The thing that isnt taught.in hs is linear algebra

#

like eigenvalues

#

also Bayes theorem isn't taught in school

#

but those aren't difficult for the average high schooler

#

you'd want calculus tho

#

and if you want to get into nns

#

you better get good at it

ancient mortar
#

is vector calculus required for ml?

ionic moth
#

yes

glossy niche
#

you can learn some of it on the fly

#

what about machine learning are you interested in?

#

neural networks?

ancient mortar
glossy niche
#

like linear regression ?

ancient mortar
#

something like that

#

i want to learn the general aspect of it

glossy niche
#

I'd suggest you brush up on calculus and linear algebra, and then some statistics

#

there is a lot of overlap between ml and statistics

ancient mortar
#

how hard is calculus to be honest

#

my uni do have that kind of course

ionic moth
#

everyone be askin how hard is calculus but never how's calculus doing 😔

ancient mortar
#

alright i think i got it

ionic moth
#

it has to do with topics such as

naive igloo
ionic moth
#

limits derivates and integrals

ionic moth
#

the archive had a password

#

and the built in zip thingy couldn't handle it

glossy niche
naive igloo
ionic moth
#

eh at least they got a built in zip support

#

iirc win 10 didn't have that

#

did it

glossy niche
#

the core idea is simple: derivatives rate of the amount of change in something and integrals measure the amount of change

sorta

ionic moth
#

i started doing integrals yesterday

#

or maybe it was 2 days ago

#

they do be pretty cool

glossy niche
#

@ancient mortar last thing: watch statquest and 3blue1brown on YouTube, those are goated for math and ml

young shoal
#

CS doesn't do as much calc as math majors

glossy niche
#

Cs at my uni didn't even have calc 3 or differential equations, which cse majors did have

young shoal
#

cse?

ionic moth
#

computer sciencee

ancient mortar
#

but no math taught there

young shoal
#

well then idk. it can't have more math requirements than cs

glossy niche
young shoal
#

huh

glossy niche
#

a Cs degree is like 1/4 math but half of that is abstract math

grave cove
#

at least for me its 3/4 math courses

vocal oyster
#

courses here (UK) don't have much, its just a module or two

jovial oriole
#

Guys why is my dad always talking in the NATO phonetic alphabet

tulip falcon
#

He's a glowie

jovial oriole
#

Overheard him "that is Romeo, Echo, Julliet Oscar" "when is the flight"

#

I also overheard something about 1945 or something

#

Hes supposed to be going on a trip

tulip falcon
#

May of 1945 brainmon

#

Allies won the war

#

Wtf is "Rejo"

jovial oriole
#

Idk

gritty zinc
#

soviet spy

jovial oriole
gritty zinc
#

that's what you think

jovial oriole
#

He was born 1980

#

Thats it

gritty zinc
#

like i said, that's what you think

jovial oriole
#

bruh

tulip falcon
#

Someone activated his sleeper cell

#

Rejo is his designated codename

#

He's flying to the carry out his mission

jovial oriole
#

No

#

Hes visiting my grandma

jovial oriole
tulip falcon
rough sapphire
jovial oriole
#

Why

lament cairn
thin cloak
#

Rawr

jaunty wraith
#

YC?

thin cloak
#

Ye

#

Waiting still if we get in

#

Meanwhile ever heard of a whale jet

sullen pier
#

I'm interested in difference between "going to" and "about to".
If I understand correctly, "about to" refers to nearest future plans, while "going to" can refer to both short-term and long-term plans.

For example:

  • We are about to start (we are starting in nearest future)
  • We are going to start something (in several minutes, or in several years)

Did I get it correctly? Did I miss something?

gritty zinc
#

looks good to me

ruby fox
jovial oriole
#

Too real

abstract marlin
jovial oriole
#

Its called "the great outdoors"

tulip falcon
#

That's a big lake

jovial oriole
solemn tulip
#

eerie

#

topical

jovial oriole
#

Topical?

#

Like cream?

solemn tulip
#

topical for the season 😛

jovial oriole
#

What

#

.wa topical

median domeBOT
jovial oriole
#

No

solemn tulip
#

definition 3

#

of interest at the present time

tulip falcon
#

Lake Hughmungus

solemn tulip
#

spooky skeleton pumpkin season

tulip falcon
jovial oriole
#

Spooky skeleton pumpkin bat ghost skull night demon candy treat season

#

.source candy

median domeBOT
#
Command: candy

Get the candy leaderboard and save to JSON.

Source Code
proven ermine
#

.candy

median domeBOT
#
Top Candy Records

🥇 @jovial oriole: 12
🥈 @hidden pebble: 8
🥉 @kindred orbit: 6
🏅 @inland cape: 5
🏅 @ornate obsidian: 4

Your Candy Score

@proven ermine: 0

Candies will randomly appear on messages sent.
Hit the candy when it appears as fast as possible to get the candy!
But beware the ghosts...

proven ermine
#

Wild

jovial oriole
#

Guys i know i was on a cut, but you gotta understand

low chasm
young shoal
#

ayo

wanton delta
wanton delta
#

why are they out

#

i mean
that's i believe how most are done, if you need it to be in a folder anyway.

because I expect you would need external deps, git, etc

#

especially git. but if you don't need it then eh who cares

jovial oriole
jovial oriole
#

Do it

#

Penguin

lament cairn
wanton delta
lament cairn
wanton delta
#

that's my new pfp

lament cairn
#

chomp

grand trellis
#

How we can make an array in C++ with different data types?

stark prawn
#

There's vector however

#

vector<variant<type1, type2, ..., typen>>

tulip falcon
#

Store the base class for your derived classes in the array

#

Pointers to them, of course, since an object cannot fit inside a block

#

Liskov Substitution says that an object should be substitutable for its base class in your language

solemn tulip
#

lol, many answers for different contexts

#
  • type punning (a la variant/any)
  • inheritance
  • if situation allows it, maybe use a tuple
thick ore
#

i feel bad for graphics programmers

#

they have to deal with all these complex Vulkan, DX stuff

sick swallow
#

whats pycon apac guys 💀

glossy niche
#
  • featherless ✅
  • biped ✅

THIS IS A MAN

grave cove
#

dog

harsh tundra
sick swallow
#

hmm wha happens on that event

#

xd

tardy rain
#

They talk about python

grave cove
#

cat

crystal spruce
#

elementary symmetric polynomials are great, but i wish someone would figure out a better notation for them

harsh tundra
#

Some brand on IG looking for "ambassadors", look what url they posted as contest rules 🤦

#

There's over 60 comments under the post (some commented "sent" + even though the application is supposed to be mailed, some post it in the comments), so it gives at least that many people who didn't every try to read the rules

uneven pine
#

Lol

outer sundial
gritty zinc
#

That's ipython on the screenshot, isn't it?

outer sundial
#

Nope, it is in fact a pycharm :)

gritty zinc
#

Looks like it's because- yeah, was about to link that.

outer sundial
#

It's very interesting that it just changes it, since the envirmoent I'm using isn't even a conda one, just normal 3.11

rough sapphire
#

Nintendo DS graphics

tulip falcon
#

Pikachu working cold cases

wanton delta
#

it's hard to look good after a day's worth of hard work you know
leave pikachu alone

harsh tundra
#

Too much ambient light and some weird other shading config stuff. See the shadows on the cup - look kinda OK, but that's gray, the pikachu is flat-looking - seems the yellow is too light in the first place and there's too much light even in the shadows

#

The hand holding the cup is basically not visible with how the shading works...

acoustic moss
#

counterpoint pikachu always looks great

thick ore
#

the cup looks like it was just pasted in

honest star
#

It's 80F and almost November 💀

low chasm
young shoal
honest star
#

Also LA has criminally consistent and nice weather. Unfortunate they ruined it with ... well all the cars and highways and LA in general

grave cove
#

yeah the fact that it's still hot outside and november is just ridiculous

ruby fox
#

Did anyone say global warming

young shoal
#

kat did you listen to the taylor swift thing

honest star
#

Parts of it during my flight, not bad. Also dragging harry styles

#

Really adore Slut! though, wish that came out at the time

young shoal
#

I'm only at style

#

1989 was one of my favorite albums so i'm quite pleased

next vessel
#

I'm learning js and c# for college and am looking for more ways to apply them. Which frameworks are the most modern/popular for making cross-platform gui apps, in either of those? Or is another language used more?

grave cove
#

Electron, probably

#

And I'm pretty sure dotnet can be used to make desktop apps

low chasm
#

1989 has to be her best album

young shoal
#

nah

low chasm
#

I disagree

young shoal
#

you don't even get to vote

low chasm
#

I'll be old enough to vote next year

#

blank space is one of her best songs

young shoal
#

do you measure an album by the best song? or all the songs in it

low chasm
#

most of the songs are pretty great

#

there's a couple of relatively mid ones, but I like the majority of songs in the album.

#

huh, what's the difference between the normal and the deluxe version

young shoal
#

an extra song

low chasm
#

I see

#

hmm

#

the vaulted songs are decent

high haven
young shoal
#

😩

honest star
#

the last song is so brutal

young shoal
#

in the non-deluxe?

honest star
#

ah, yeah. I discount the bad blood 1989 with kendrick as being the actual last track. In my head it replaces the regular bad blood version

young shoal
#

icic

uneven pine
#

Malware?

#

Probably

#

Demands I download the app, in Russian no less.

tulip falcon
#

State haxors

gritty zinc
#

it's not in russian for me. self-doxx :p

uneven pine
#

Not exactly a self dox considering I live snack dab in the middle of the US

#

Granted my secondary language is set to Russian but the primary is set to English so the site is at the very least broken

#

The kid posted it in the ot0 too

hybrid root
#

They stop talking march of last year and all of a sudden they post a photo blocked to only inside a random app ?

wicked haven
wicked haven
# uneven pine Malware?

appears that it is not, just a low quality app. From what I can tell, it allows you to share a link to others to get some of its in-app currency

#

You can earn diamonds every day on Hoop. Use them to send friend requests, see the previous profile again or customize your own profile.
lol

tulip falcon
#

Woaw diamonds

uneven pine
#

So not computer malware

#

Just social malware

harsh knoll
#

srry guys

jovial oriole
#

powur abuce 😔

ruby fox
minor portal
#

is this real? (the twitter accounts)

graceful basin
#

No

minor portal
#

why was this on r/programminghumor?

young shoal
#

think about it

tardy rain
#

Wish 1: i wish i could think

ruby fox
jovial oriole
tulip falcon
#

just hearing Ñ⁴ made me tremble in my boots

rough sapphire
#

https://github.com/vaibhavpandeyvpz/apkstudio Whoever manages to change the language of this program is a Genius, it has a folder with 21 translations, but I can't find a way to change the language. you dont need to install it

GitHub

Open-source, cross platform Qt based IDE for reverse-engineering Android application packages. - GitHub - vaibhavpandeyvpz/apkstudio: Open-source, cross platform Qt based IDE for reverse-engineerin...

jovial oriole
#

Crossposting mfs

naive igloo
sullen pier
#

what is the difference between me/my/mine?
in some cases "mine" works like "me", in some - like "my"
this is why i am confused

examples:
friend of me / friend of mine / my friend / mine friend

heavy trench
#

Im mining friends

gritty zinc
# sullen pier what is the difference between me/my/mine? in some cases "mine" works like "me",...
#

probably the "double genitive" thing is where to dig for a more comprehensive answer.

sullen pier
#

i also have a question about phrase "a lot of", like in "There is a lot of things"
it violates the "subject verb object" order, is this like it is supposed to be?
should i use "is" or "are" in this example? there is an "a" article, but also there is "thingS"?

heavy trench
#

You can also do "a ton of", like "I ate a ton of lemons"

sullen pier
#

also "I ate tons of lemons" 🤔

heavy trench
#

"I ate loads of lemons" "I ate a load of lemons"

sullen pier
#

fells like "a ton of" is usually used for physical things, while "a lot of" is usually used for more abstract things

sullen pier
heavy trench
#

Yeah I googled to confirm, its mostly british

sullen pier
#

question still stands:
why do we say "There is a lot of lemons" and not "A lot of lemons is there" or "There a lot of lemons is"

heavy trench
#

Now if you said "I ate a boatload of lemons" thats american

sullen pier
heavy trench
keen marsh
#

who ghost pinged me stare

spare oriole
#

can't judge people who've never had friends

small coral
#

oh my god

#

poor guy

acoustic moss
#

obviously satire

grave cove
#

chat is this real

foggy mountain
thick ore
#

hanging out?? like hanging processes?? in Linux??

stiff siren
#

i was driving kind of fast downtown and a cop saw and tried to pull me over or something but he was on a bicycle so i just drove away

wanton delta
#

i offer free shin slapping for extra confirmation that this is real

glossy niche
crystal spruce
#

it's a pretty generic romance show

shell jolt
#

Hmm I might watch it when I get some freetime. Added to my 50 long anime planning

naive igloo
tulip falcon
#

Mein Friend

hexed sierra
#

freund

thick ore
#

implementing protocols are not fun

thin cloak
#

What about writing one

drowsy rose
#

cthuwu

ruby fox
#

Ghjbdjut

thick ore
#

web server in Brainfuck ✅

acoustic moss
#

what

wanton delta
naive igloo
uneven pine
#

Probably used chatgpt

ruby fox
uneven pine
#

Let me test

#

It can definitely generate Brainfuck code

#

So in theory it could

thick ore
#

ofc brainfuck cant make a tcp server on its own

#

so I just piped input and output to the incoming clients

thick ore
#

parts of the output get cut off lmao

thick osprey
#

And another class bites the dust. ♪ᕕ(ᐛ)ᕗ

#

I'm in my anti-class where-ever possible phase apparently.

Daily GitHub Summary:
|    Contribution    | Count |    Metric     | Total |
------------------------------------------------------
| Reviews            |   0   | Files Changed |  15   |
| Issue              |   0   | Additions     |  306  |
| Commits            |  19   | Deletions     |  222  |
| Pull Requests      |   2   |               |       |
wicked haven
thick ore
#

that exists?

wicked haven
thick ore
#

oh

#

damn alright

royal lakeBOT
#

api/app/models.py lines 40 to 43

class modelfields:
    Username = MutableField(min_length=1, max_length=20, regex=r"^[a-z0-9\.-]+$")
    Password = MutableField(min_length=1, max_length=100)
    DisplayName = MutableField(max_length=50)```
open fern
#

Probably a bit of class abuse but /shrug

wicked haven
#

what other way of namespacing is there, other than modules?

open fern
#

classes

thick ore
#

folders too

wanton delta
#

doesn't look bad to me

civic pasture
#

You can haveeeeeeeee

#

All that’s lefttttt

#

What’s left of me 🎶

minor portal
minor portal
civic pasture
#

Thanksss

jovial oriole
carmine apex
jovial oriole
carmine apex
#

well the outer section is down to n^3 from n^4

jovial oriole
#

yeah but it no longer works

#

anyway

#

Cya

civic pasture
#

how do you guys like my Python notes?

rough sapphire
#

meow meow

undone thorn
#

also note the splat operator can be used on any iterable not just iterators

thick osprey
#

pithink .... NaNoWriMo 2023 starts, for me, in about 3 hours. And here I am starting a short story completely unrelated to the novel I intend to write.
"Just a warm up" - me to my partner as they gave me that slow blink of disbelief.