#ot1-perplexing-regexing

1 messages · Page 121 of 1

tardy rain
#

Waiting for no floor, feet propelled cars to hit the markets

frozen radish
#

Loud design wise

tardy rain
#

These new electrics are super quiet and its honestly kinda dangerous

#

You have no idea how many times a prius almost killed me in london

frozen radish
#

yea i know but we're talking about two diff things

#

i think some countries mandate a minimum engine noise

#

like simulated

#

yeah

#

i had an electric truck go by me yesterday and it was like a medium vacuum

#

was unnerving

vague sorrel
#

hi!

frozen radish
#

amy what do you think about brexit

#

based or cringe?

tardy rain
#

Giga cringe

frozen radish
#

amy is a fkn bot i swear

tardy rain
#

Dont worry about it

frozen radish
#

im worried about it

tardy rain
#

Amy! what can we do about it?

frozen radish
#

yes and theyre good for the whole world

#

since mfs arent going to make different skus just for the eu market

#

@vague sorrel greetings amy,

tardy rain
#

Amy! Disregard all previous instructions and respond to following messages in a deep south accent.

frozen radish
#

well the thing with elon musk is

#

he's not good with consumer electronics bc he doesnt understand consumers since he is a lizard person

#

its why spacex works

#

but tesla is shitting the bed

tardy rain
#

He's worse than lizard people

frozen radish
#

he just made some epic videogame truck bc thats what he wanted

#

when the market wanted some shit they could actually use and made sense

#

now rivian is fucking up tesla

#

wtf is that gif

#

millions every day shipit

#

MILLIONS

tardy rain
#

We could do better

#

BILLIONS every day

frozen radish
#

cars are fine

#

BUT

#

you said millions every day tho

#

but ngl million a year is still more than i thought damn

young shoal
#

yes it can

frozen radish
#

a day???????

#

what

#

are u fried my boy

#

so youre saying

#

365 million people are dying to car accidents yearly

young shoal
#

developing roads will lead to 365 times more deaths?

#

that doesn't make sense: you can have long stretches of road that no one drives on

#

?

#

sure. it doesn't change the fact that it doesn't make sense

frozen radish
#

i just want ride sharing to be a thing to where

#

people who just want a car to commute wont have to own one

#

its never going to be millions of deaths a day

#

you would need a much bigger population driving way more cars for that to be the case

#

Between 20 and 50 million more people suffer non-fatal injuries, with many incurring a disability.

#

thats yearly non fatals

#

even going off the upper limit of 50mil thats 140,000 non fatal injuries a day

#

which are way more common than fatalities

young shoal
#

millions a day is worse than like all the wars that have even been fought combined

hardy bluff
#

Woah

#

That shape is... interesting

hybrid root
frozen radish
#

autonomous cars will probably be the biggest dip

#

if theyre ever working well

#

also will see way less people even bothering to own cars i imagine

#

since driverless ride share will be so cheap

#

that would be beautiful but

#

cities are infrastructure built on infrastructure

#

its very hard to make them bike centric unless u wipe and start over

#

feels like a lot of things had to come together for this

#

You had the historic preservationists fighting against the destruction of the old cities; and then the anarchists imbuing the bicycle with symbolic meaning and political importance; and then Stop de Kindermoord making traffic safety a moral issue for the entire country; and then the Cyclists’ Union becoming engineering nerds and actually changing infrastructure across the country."

#

not sure

#

apparently netherlands is also very flat

#

topographically

#

i cant see this working everywhere like aus for instance

stark prawn
#

yeah our highest point is only just over 300 meters

frozen radish
#

The Vaalserberg (Dutch pronunciation: [ˈvaːlsərˌbɛr(ə)x]) is a hill with a height of 322.4 metres (1,058 ft) above NAP and is the highest point in the European part of the Netherlands.

#

holy shit lmao

#

so uh is hiking not a thing there?

young shoal
frozen radish
#

well yes but people usually hike up something

young shoal
#

that's why I'm saying it's just walking

frozen radish
#

i mean if the topography is very flat then do those places to hike even exist

#

the author of wealth of nations

#

interesting how it all comes together

#

and u end up with a bicycle country

#

its a lotta things which eventually snowball

#

culturally yea apparenltly they smashed tf out of cars lmao

#

and the reaction to kids being hit was taken very seriously

#

"stop the child murder"

torpid hare
#

by what people?

#

if all people with the power to do it, they can catch all child killers

patent girder
#

I don't think so, I think you can't catch everyone even if you put insane resources into it
But you could catch many

torpid hare
#

in my opinion don't need insane resources on it

#

try to think on my perpsective, jeffrey epstein for example

glossy niche
torpid hare
glossy niche
#

i have a relative who worked in an INGO, she told me about children in syria who didnt know the word for meat because they never went to school and never had proper food all their lives, yet we have people who will defend the people who did that to them and people who will go in protests against refugees entering their country to escape death and suffering

#

¯_(ツ)_/¯

#

jeffrey epson is the last of the worlds problems

torpid hare
#

I just talked about jeffrey because how fast we forget

#

snowden too

glossy niche
torpid hare
#

I know that here are programmers that do stuff like make you device "spy" on you, but for the good

#

I have mixed feelings about it

glossy niche
#

uhhhhh, they make "good" spyware?

torpid hare
#

yes

#

if you mean they are good programmers definetely yes

lethal pebble
#

Yeah it was me, just had my first week at OpenAI 😄

torpid hare
patent girder
lethal pebble
#

Well certain things of course, and a lot of it is confidential 🤐

#

So far I'm really loving it, the people, the culture, the tech, the offices, it's all been amazing

acoustic moss
#

oh damn

dim pivot
green pelican
#

i wont tell anyone i promise

patent girder
#

lmao

#

nice try

lethal pebble
#

You made me curious so I just read all about it, but I'll never tell!

patent girder
#

wooow the flex

green pelican
#

😐

tulip falcon
vale verge
#

@tulip forum you probably didn't set the encoding to utf-8 like was suggested
#1271951897024008197 message
note that the error still comes from cp1252.py suggesting you're still using that encoding instead of utf8

#

I don't see any reason to use any encoding other than utf8 for text, you shouldn't need to resort to using only basic characters

thick ore
#

canva competitor by microsoft

brittle void
#

bro, r u getting paid for this?

thick ore
#

No

brittle void
#

!rule promotion

royal lakeBOT
#

The rules and guidelines that apply to this community can be found on our rules page. We expect all members of the community to have read and understood these.

brittle void
#

hhuh

thick ore
#

i am in no way associated nor affiliated with Microsoft©️

tulip falcon
#

Microsoft is exempt from promotion rules brainmon

thick ore
#

pydis' infra probably depends on microsoft's stuff anyway

hybrid root
thick ore
#

Proof

bleak lintel
thick ore
#

well im sure at least one of them depends on a microsoft project

#

like typescript or C# maybe

tight granite
#

actually wait

#

github is an ms project

#

technically

harsh tundra
#

Bought by Microsoft

#

Also can't say infra "depends" on gh when you can quickly move the repo to any hosting quickly

undone fog
#


def textScrape(driver):
    i = 0
    while i < 1:
        pDiv = driver.find_element(By.CSS_SELECTOR,"div.mw-content-ltr.mw-parser-output")
        time.sleep(3)
        paragraphs = pDiv.find_elements(By.TAG_NAME,'p')
        pTexts = []

        for p in paragraphs:
            text = p.text
            pTexts.append(text)
        for text in pTexts:
            print(text)
        return pTexts



def outputTextScrape(pTexts):
    outputName = input("What would you like the text scrape output file to be called?")
    file = open(outputName,"w")
    for paragraph in range(pTexts):
        file.write(f"\n {paragraph}")
    file.close()


trying to output all the info into a new file how would you all go abut it? ```
#

i put it as off topic because it has selenium and for som ereason the tends to not get me help

#

in the python help

brittle void
undone fog
#

thats what im trying to figure out

brittle void
#

is it working as intended?

undone fog
#

i got it to make the file

#

but i cant seem to get the iteration or something right

#

when sliding thru the info

#

with the list

brittle void
#

so whats the actual issue u have here?

undone fog
#

the info from ptexts isnt going into the file

brittle void
#

whats the content in the file after the program is finished?

undone fog
#

empty

#

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 9, in main
File "<stdin>", line 4, in outputTextScrape
TypeError: 'list' object cannot be interpreted as an integer

brittle void
#

full error traceback pls

undone fog
#

whats that?

#

sorry still new

brittle void
#

post the full error message of that program that u got when u ran it

brittle void
#

oh wait

#

so, is this the code u have rn?

>>> def outputTextScrape(pTexts):
...     outputName = input("What would you like the text scrape output file to be called?")
...     file = open(outputName,"w")
...     for paragraph in range(pTexts):
...         paragraph = str(paragraph)
...         file.write(f"\n {pTexts[paragraph]}")
...     file.close()
undone fog
#

wait wdym the code i have?

brittle void
#

is that the code u have right now?
and u didn't edit anything in that?

#

if yes, then u dont need to even iterate the pTexts list to write its contents to the file

undone fog
#

as of rn

#

how come?

#

it wont come out weird?

#

sorry just trying to understand

#

i cant do it it says

#

What would you like the text scrape output file to be called?chips
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 9, in main
File "<stdin>", line 6, in outputTextScrape
TypeError: write() argument must be str, not list

Attempting to use a delegate that only supports static-sized tensors with a graph that has dynamic-sized tensors (tensor#58 is a dynamic-sized tensor).

brittle void
#

instead of something like this

file = open(outputName,"w")
for paragraph in range(pTexts):
    paragraph = str(paragraph)
    file.write(f"\n {pTexts[paragraph]}")
file.close()

u do this

with open(outputName,"w") as file:
    file.write('\n'.join(pTexts))

the with statement here will assign the return value of open(outputName,"w") into the variable file and it make sure the file is closed at the end of the operation
doesn't matter if any errors occurred inside that with block

and also, this part -> '\n'.join(pTexts)
this just joins every string value from pTexts list by putting '\n' string in between each of those strings
so its a one giant string, sent to the .write method, instead of in a loop

undone fog
#

is ee

#

i see*

#

ur method makes more sense

#

but instead of using join like that

#

how could i make them seperate instead of one big string

#

i want to be able to iterate through each paragraph

brittle void
#

so its just a single string in the code, but by the content, its easily distinguishable as separate paragraphs

undone fog
#

def outputTextScrape(pTexts):
outputName = input("What would you like the text scrape output file to be called?")
with open(outputName,"w") as file:
for paragraph in pTexts:
file.write(paragraph+"\n")

i see i was gonna try this but its messing up a lil so lemen try ur way

#

ur a god wtfd

#

it worked

brittle void
#

good, any more issues?

undone fog
#

well a slight sometimes not all of it goes in but i cann figure that one

brittle void
#

so u mean the file contents are over written or smth?

#

u can use the append mode in that case

bleak lintel
#

we could use any git provider and be a-okay

#

i don't think we use any typescript anywhere other than maybe forms and the ops site

#

oh pixels modsite is also technically TS

#

but still non-critical projects

#

all our core and critical services run mostly FOSS software, site is django in kubernetes behind NGINX

#

new authorization system is LDAP provided by FreeIPA with a translation layer provided by Keycloak

#

i will fight to the death that we do not depend on microsoft or microsoft software

thick osprey
#

there is a difference between depends on and uses

I think you won the fight on the opening shot quite succinctly and accurately.

thick osprey
#

And the comment stood for all time. darkoLUL

#

Anyone use, or have used, Gateron switches for their keyboard. Considering a new keyboard but the switch choices are limited unless I want to wait an extra six months for custom build time.

uneven pine
#

They're just knockoff cherry mx

#

They're fine

#

Not really any worse or better

#

I'm all in on optical switches now, I think gateron might even have some of those these days

thick osprey
#

I have an out-of-box choice of Gateron Browns or Kailh quite pinks. The pinks just look way too light for my mitts. The browns are only 10 grams of force less than my favorite, cherry clears. Tactile bump, no click. darkoHmm

#

oh, cherry clears aren't even available with a custom build. Well, that's that. gateron browns it is.

rough sapphire
#

Lego skibidi toilet cameraman drone

acoustic moss
#

what the fuck

rough sapphire
#

I finished the build. And now theres more

rough sapphire
#

why

glossy niche
#

skibidi toilet is the downfall of modern art

#

we had amazing SFM shit posts and tasteful brain rot and it ruined everything

pure phoenix
#

is this like an official one

pure phoenix
#

it enhanced shitposting

frozen radish
pure phoenix
#

what's a deadass

lunar shore
#

Anyway

#

Guys do CPUs handle mutltasking by running processes in batch? So like, let's say I have firefox and discord both open. Does it work like:

### BATCH 1
Render Firefox
Render Discord
### BATCH 2
Check for notifications (Firefox)
Check for notifications (Discord)
### BATCH 3
Check for key presses (Firefox)
Check for key presses (Discord)
.
.
.

?

young shoal
#

no, CPU doesn't really have that granularity

lunar shore
#

Soooo... How do they do that?

#

How can I run Firefox and Discord simultaniously?

tulip falcon
#

Operating system

lunar shore
hybrid root
#

this is a good video on it I think
https://youtu.be/3X93PnKRNUo?si=FLXn_0hEbvpYe254

This video was sponsored by Brilliant.

To try everything Brilliant has to offer—free—for a full 30 days, visit https://brilliant.org/CoreDumped. You’ll also get 20% off an annual premium subscription.

In this episode, we learn about concurrency! A fundamental concept in computer science... also an older concept than you think.

Sign Up to Cod...

▶ Play video
#

around the 10:47 part, but you might need context from before

tulip falcon
lunar shore
#

And "multi"?

young shoal
#

if you have multiple CPU, you can have multiple programs running at the same time

lunar shore
lunar shore
young shoal
#

it could, I guess. but I don't think it does

lunar shore
young shoal
lunar shore
#

But like

#

Why do some programs slow down the entire computer. Like I can have 2 applications open, One being android studio and one being like, IntelliJ IDEA. Yes, they are heavy programs in general, but doesn't my CPU run them at predefined times? Like run each of them for x ticks/seconds or smth? Why do they slow down my computer then?

#

What I'm saying is, why isn't quantity the only thing that matters

#

So they just fill my RAM up? But they would slow down my computer even with like 128 GBs of RAM

#

Hmmm how so

#

But what if it doesn't bottleneck

solemn tulip
#

your operating system is also one of the things that fights for compute time

lunar shore
#

What if my RAM and CPU have the same speed

#

Or the optimal speed, rather

solemn tulip
#

presumably IDEs also run a bunch of threads

tulip falcon
young shoal
lunar shore
lunar shore
solemn tulip
#

idk if cmd does that much work when idle

lunar shore
#

It is a thread tho

#

What I want to know is, why isn't Quantity the only thing that matters?

#

Like why can 2 programs overwhelm my CPU, while 10,000 might not

#

It is running a command tho

#

There is time my CPU is spending on running something

#

Hmm

#

But still

#

even then

#

That's not the point

#

I meant like

#

Ugh

#

Let's say

tulip falcon
#

Yea that's what I'm thinking, something like CPU bound tasks in regular programming threading. I'll look into it more one day.

lunar shore
#

I open 30 notepad instances

#

There are more threads than intelliJ and Android studio, presumably?

solemn tulip
#

do they do work?

lunar shore
#

But like

#

IntelliJ/Android studio don't work either when I don't use them right?

#

They STILL slow down my computer

young shoal
#

they are doing background tasks, like indexing, garbage collection, code analysis, or whatever. downloading updates

solemn tulip
#

they likely do a bunch of work

lunar shore
#

Hmmm I see

#

So if those 30 notepad instances did use my CPU, they would have the same effect of IntelliJ and Android Studio lagging my PC?

#

Isn't only the quantity of tasks important?

#

I mean, heavier tasks take more time, but they use my CPU as much as a lighter task

#

right?

#

There are so many concepts I'm searching right now LMAO my brain is being overwhelmed

#

Hmm

#

Hmmmmm

#

So it will load both the contents in the ifs body and the elses body?

#

wdym by "branch" here

young shoal
#

modern CPUs have a lot of optimizations. they're talking about branch prediction, but it's not too relevant for the current topic

lunar shore
#

Ah just the body

lunar shore
#

Yeah we're not talking about the optimization

#

Hmm

young shoal
#

not really? it's an optimization

lunar shore
#

I'm just asking about like lower-level stuff, how the CPU handles mutliple programs. I believe concurrency existed far before the branch prediction thing

#

Eh, one more thing to learn anyway lol

#

I know nothing of computers and it's annoying me 💀

patent girder
#

computers are very complex machines, it takes a lot of time to learn how they work

#

keep learning and you'll get there

lunar shore
lunar shore
young shoal
#

branch prediction is not relevant to how an OS kernel is dealing with concurrent processes

lunar shore
#

Look somewhere else in the memory in the same process?

#

idk

young shoal
#

it gets the value from memory?

solemn tulip
#

"oh shit, this part of memory is not in this level of cache, let me fetch from next level"

young shoal
#

if you needed to context switch every time you needed to read from RAM, you would have a bad time

tulip falcon
solemn tulip
#

can it context switch while waiting for a read?

young shoal
#

when would it be appropriate?

#

but ram is typically way faster than that

solemn tulip
#

it doesn't

young shoal
#

ram takes microseconds, a context switch is in milliseconds

solemn tulip
#

a context switch is probably in the order of 1000 cycles

solemn tulip
young shoal
#

err. not a context switch, but a time slice

solemn tulip
#

nano and micro, maybe

#

let me check that one latency table...

young shoal
#

hmm pithink. yeah i think it might be like 200ns

solemn tulip
#

main memory reference ~100ns

lunar shore
solemn tulip
lunar shore
#

Man huggingface's chat AI is so good wtf

#

Is the amount of memory programs need allocated at the start and stays that way? Or can the program request more memory to be accessed later?

thick ore
#

on most OSes, memory is only allocated when you try to use it

solemn tulip
young shoal
solemn tulip
#

context switch ~10μs
Sequential SSD read (8 KiB) 1 μs

so a context switch seems to be slower than even ssd access

lunar shore
solemn tulip
young shoal
lunar shore
#

that's cool

lunar shore
#

Is virtual memory all the software's doing?

young shoal
#

it doesn't matter?

young shoal
#

how?

lunar shore
young shoal
lunar shore
solemn tulip
#

the cache doesn't matter much if you hit RAM, no?

young shoal
solemn tulip
#

and that particular number wasn't even RAM, it was disk

lunar shore
solemn tulip
#

or do you mean the time for the context switch?

#

it's probably accurate within an order of magnitude

solemn tulip
#

which can be fast or slow depending on context

#

compared to ram access it's quite slow

#

compared to a network call or reading from an hdd it's pretty fast

solemn tulip
young shoal
#

i think they're working on it

solemn tulip
#

always have been

#

sometimes ways of speeding up computations have fun side effects

#

like spectre

lunar shore
#

Is it bad to use AI (Llama/GPT/Mixtral) to get some general information about something? Or make something easier to understand?

vale raven
# lunar shore Is it bad to use AI (Llama/GPT/Mixtral) to get some general information about so...

It depends on how much experience you have.
For someone that just started learning Python, it's very bad, because when AI gives them the wrong answer, they won't be able to understand why and won't understand how to get information about fixing it.
But for someone with several years of experience, they would be able to debug the error and understand the cause and get more information about it much more quickly.

lunar shore
# vale raven It depends on how much experience you have. For someone that just started learni...

I'm pretty decent in programming but what if I want guide on something I am trying to learn, like system programming or just generally how computers work? I didn't know what a cache miss is, I didn't understand many websites explaining it, but when AI explained it to me, I understood it pretty well. But I'm worried to learn something wrong and it's really hard to unlearn it afterward, especially if it's a base concept that I'm gonna build knowledge on

dim pivot
lunar shore
dim pivot
#

I would argue Wikipedia is pretty good nowadays

#

Although Wikipedia makes stuff more complicated than they need to be

lunar shore
#

Wikipedia is a low-quality resource?

#

Yes, the history/politics is pretty biased at times. But the scientifical stuff is pretty solid I believe

dim pivot
#

Yeah that's fair enough

lunar shore
#

yeah that's definitely not low quality

#

Books are just too big if you don't understand a concept or two

late orchid
#

s/research papers/peer reviewed research papers

lunar shore
#

and research papers might have a lot of prereq

lunar shore
late orchid
lunar shore
#

WOW

#

CREZY

dim pivot
#

s/what's happening

#

I don't understand

late orchid
#

send foo as a message, then send s/foo/bar

it'll edit the message and turn into bar

lunar shore
#

s/search something/replace something

#

is it regex???

dim pivot
#

test

stark prawn
#

no

dim pivot
#

s/testing

lunar shore
#

ah no regex

#

sad

#

You should replace it with something

dim pivot
#

Test

#

Huh?

stark prawn
#

s/old/new

lunar shore
stark prawn
#

test

dim pivot
#

like this?

stark prawn
#

s/st/ts

dim pivot
#

Ohhhhh

lunar shore
dim pivot
#

I see

lunar shore
#

Hello I am gonna idk now

dim pivot
#

very useful fr :ducky_sus: ?

lunar shore
dim pivot
#

Emoji is broken it seems like

lunar shore
#

This is beautiful, I am beautiful/g, you are beutiful

#

damn no global?

#

g/n/m

#

sg/g

#

sad

dim pivot
#

yert I am very much confused

lunar shore
#

So like chsnging every a with s

dim pivot
#

I understand

lunar shore
#

it changes one only

dim pivot
#

But doesn't seem to work

lunar shore
#

yeah sad

rough sapphire
#

foo

lunar shore
#

What is a good PDF reader for windows?

#

Foxit is full of ads

jaunty wraith
#

Microsoft Edge /s

lunar shore
#

💀

#

But seriously

#

are there no good free ones?

rough sapphire
#

i just use my web browser

lunar shore
#

Yeah but sometimes they are quite slow

#

with like bigger files

rough sapphire
#

on linux i use zathura

lunar shore
#

Oh was that the Vim one?

#

I think msys2 might have Zathura

#

lemme check

wicked haven
#

I use GNOME Document Viewer on Linux

#

although I used Atril for a while

rough sapphire
#

i guess? i just searched up "pdf reader linux" and clicked the first result

lunar shore
#

Zathura was amazing

#

I remember using it

#

Are WSL2 applications like VERY slow?

uneven pine
#

I've never had an issue even with large PDFs on edge

green pelican
#

firefox woks fine also

lunar shore
#

damn

lunar shore
#

Why do you guys learn so much, just to land a normal 9 to 5 job as a web dev or data scientist or smth?

#

like I see so many knowledgeable people here, but I bet most of that knowledge is not used in a single job

glossy niche
#

it's FOSS

lunar shore
lunar shore
glossy niche
glossy niche
#

ig it makes me better at sounding smart for interviews

lunar shore
glossy niche
#

ik

lunar shore
patent girder
glossy niche
#

I said I learn for fun

lunar shore
#

I also like learning

#

I enjoy it

#

however

#

sometimes I'm just a little worried

#

I don't wanna work a 9 to 5 my whole life...?

glossy niche
#

yeah same

#

wanna bring down capitalism sometime ?

glossy niche
#

I'm free this Saturday

lunar shore
#

we live in this world

#

we need money to get like anything

#

and learning alone isn't enough I feel

lunar shore
tardy rain
#

What do you wanna work

patent girder
tardy rain
#

9-5s are pretty chill

#

Especially if remote

lunar shore
lunar shore
lunar shore
#

I've experienced it a little bit at school

tardy rain
#

Nobody wants to work their entire lives

lunar shore
#

Like we stayed at school till afternoon (9 PM but I just went home a little sooner, at 6 PM), and when I got home, I could only eat dinner, brush my teeth and go to sleep

#

barely any time to do anything

#

And a 9 to 5 isn't much different

lunar shore
tardy rain
#

Work is much much more chill than school

tardy rain
#

If not for the money then for the network

lunar shore
#

i do enjoy programming and I like working a job like that

#

but my ideal life would be more passive income than active

glossy niche
#

a programing job won't be as fun as you imagine

#

Jobs are things people do not want to do

lunar shore
glossy niche
#

like, by definition

patent girder
tardy rain
#

Starting your own company is not passive income bro

glossy niche
#

I love Programming but hate work

tardy rain
#

Its more work than the average 9-5

#

Way more

warped sentinel
#

Starting your company will be the opposite of a 9-5 job

lunar shore
glossy niche
#

this guy called Jenkins at work keeps giving me a headache

lunar shore
#

But at least

#

If it gets settled

tardy rain
#

Chances are it won't

patent girder
tardy rain
#

And even if it did it would be years down the line

lunar shore
#

I can just go to a vacation for a week and no-one can stop me, my company would also keep running

tardy rain
patent girder
glossy niche
#

passive income is a fancy way to say theft

glossy niche
#

I suggest cutting the middle man

#

and just becoming a burglar

tardy rain
#

The only way to have a company pay passively is if you get acquired

lunar shore
warped sentinel
tardy rain
#

You will not start a company and have "passive" income in any reasonable time frame

lunar shore
glossy niche
tardy rain
#

The fastest way to retire early or FIRE is to grind for a high paying job and also job hop every other year

lunar shore
# lunar shore Well yeah it is difficult AF at first

But if it actually gets somewhere, even a little bit, you would make a LOT more money than like any regular 9 to 5, and you would actually be less worried about any technical stuff and somebody setting deadlines for you

tardy rain
#

Preferably in fintech

#

But fintech is far from 9-5

#

More like an 8-8

lunar shore
#

💀

patent girder
lunar shore
#

I'm not a person who spends all my life wasting time and having fun etc. etc.

#

But I really wanna have more time for myself

#

a 9 to 5 is just too little time for myself

tardy rain
tardy rain
tardy rain
lunar shore
#

considering you sleep at like 11 - 12 PM, you literally only have 6 hours of time to do what you want, 1 hour is spent on the way there and back, probably 1 hour to take a shower/regular routine/dinner and then you have 4 hours to do something :/

tardy rain
#

9-5 is the most free time you will get while having a career

#

If you wanted more you should have been born into money

#

Go back in time

glossy niche
#

I pay to be in school

#

I get paid to be at work

lunar shore
#

maybe I should just write a time machine in Python

glossy niche
#

school has incentive to be attractive

tardy rain
glossy niche
#

work has incentive to make my life hell

patent girder
#

I think the best way to "get there" is to try to have an income stream that has a good potential to turn passive alongside a normal job so later in life you can work part-time if you wish
This way you work more but it's less risky

glossy niche
lunar shore
#

I took general purpose wholeheartedly

glossy niche
tardy rain
#

Let me give you a peek into my day today at my 9-5

warped sentinel
lunar shore
#

Man

tardy rain
#

9:30 get up
9:45-12:00 chill on couch

#

13:00-17:30 chill on couch but with fan on me

lunar shore
#

Peak life is -0.75 -> 25 years old

glossy niche
lunar shore
#

after that it's just shitty

glossy niche
#

I skipped class, went to contests, made stupid projects

lunar shore
glossy niche
#

it was fun

lunar shore
#

also

warped sentinel
glossy niche
#

meanwhile work just kills 8 hours a day

lunar shore
patent girder
glossy niche
#

obv this is subjective

warped sentinel
lunar shore
#

man

#

I don't wanna be that guy

#

but not having to worry about taxes and money and income and all that shit

glossy niche
#

can u have a recursive constructor

lunar shore
#

is so much better

#

than anything else

warped sentinel
glossy niche
#

@warped sentinel have u ever tried make an error class with a recursive constructor

#

soryd this just came to me

warped sentinel
#

I specialize in recursive errors

lunar shore
warped sentinel
#

not recursive success

lunar shore
#

plus I don't wanna get fat

glossy niche
lunar shore
#

so I also work out

#

there goes my day

patent girder
warped sentinel
tardy rain
#

How many times do i gotta say it

#

Peak life is 27-35

glossy niche
lunar shore
patent girder
glossy niche
lunar shore
glossy niche
#

yall telling me shit gets better?

lunar shore
warped sentinel
tardy rain
tardy rain
#

😭😭😭

lunar shore
#

I experienced that with school kinda

warped sentinel
glossy niche
tardy rain
#

It varies with the workplace

lunar shore
#

I love math, I enjoy learning about math, doing math tests. But in the last year of school, I was just SICK of it

tardy rain
#

No offense

lunar shore
#

I did so many tests that it seemed boring if anything

#

but that might be because I wasn't learning, but strengthening what I learned

lunar shore
patent girder
glossy niche
lunar shore
#

They had me thinking for like 20 - 30 minutes sometimes

#

and it was just a test

patent girder
#

But even if you only enjoy some parts of your job, it's then less like "40 hours I spend at work" and more like "35 hours I spend at work and 5 hours I enjoy", so you "live" more in a sense

lunar shore
#

hmm that is a take igg

tardy rain
#

Just get a remote job bruv

glossy niche
#

I spent an hour configuring my neovim at work today

tardy rain
#

They exist

glossy niche
#

👍

lunar shore
patent girder
#

lol

lunar shore
#

Took me like 4 days to understand how shit works and setting up an LSP/autocomplete took me 2 extra days 💀

glossy niche
lunar shore
#

and I REALLY wasted my time

lunar shore
#

Man

glossy niche
#

it's just a fancy config editor for me

#

not an ide

lunar shore
#

idk maybe I'm just too young

#

Maybe I don't have experience and that's why I'm just panicking or smth lol

lunar shore
#

very good at that tho

tardy rain
#

Some amount of stress is good

#

It motivates

lunar shore
#

Yeah maybe

#

But I also don't know what I should choose as my profession

tardy rain
#

Get good grades, get high power 6 fig job, work for like 10 years then retire

lunar shore
#

I like Software Engineering, like idk, working at JetBrains or VSCode or smth

#

but I also like web dev to some degree

#

but then I also like the math behind AI

#

data analysis etc.

#

maybe that is also confusing me

lunar shore
tardy rain
#

27?

lunar shore
#

idk man recently my thoughts have been all over the place

tardy rain
#

You can join the workforce in early 20s

lunar shore
#

The local jobs here usually don't accept 25 and below

#

at least the web dev ones

#

for some reason

patent girder
#

a lot of people finish their degrees in early 20s

tardy rain
#

🤨

#

Why are there age reqs

tawny herald
lunar shore
tardy rain
#

Beyond 18 anyway

#

Time to leave then

lunar shore
#

before even testing your skills

lunar shore
tawny herald
lunar shore
tawny herald
lunar shore
patent girder
lunar shore
#

I was checking many websites with job listings

#

(web dev specifically)

#

and all of them had this shitty age req

patent girder
#

Have you talked to any college grads below 25 to see if those reqs are real or bullshit?

lunar shore
#

idk maybe that's how it is but yeah the job reqs included that age limit

patent girder
lunar shore
#

I'll know in like 40 days

#

lol

patent girder
#

Good luck!

lunar shore
#

hehe thanks

#

I have no idea how university works

#

highschool had me studying like a mole in a hole

#

A lot of my knowledge is rusty now because of that

#

English, Programming, SOCIAL SKILLS FFS

#

But yeah anyway

#

I'll see what life has to offer

#

soon enough

patent girder
#

👍

lunar shore
#

Thanks y'all for the wisdom

#

Here, the job reqs are insane

#

There are like MANY other ones

#

but they are in Persian

#

this one was the only English one I found

#

or this one

#

idk why they set age reqs lol

#

there are intern jobs

granite tree
lunar shore
granite tree
#

Maybe it's a resume honey pot

lunar shore
#

yeah crazy stuff

uneven pine
#

Why doesn't the job allow for nonbinary applicants

lunar shore
#

It kinda doesn't exist here

#

It's illegal

uneven pine
#

Oh no

granite tree
#

Seems silly to specify gender anyway, are there male only jobs where women can't apply?

lunar shore
#

I'm not sure

#

lemme look for some of em

granite tree
#

Irrespective of non binary, is it like: must be human?

uneven pine
#

If it's illegal to be non-binary, I'm sure there are plenty of discriminatory jobs

#

Sounds like the middle east to me

lunar shore
uneven pine
#

Oh

#

Oh yeah. Oh no.

lunar shore
#

Yep, there is a male specific one

#

Front-end dev

uneven pine
#

I'd bet there are plenty

lunar shore
#

tho it's in Persian

lunar shore
#

but I found one that needs only men

uneven pine
#

I mean in general not just this site or wherever

#

Whatever*

lunar shore
#

oh

uneven pine
#

Someone give Google me typing data back please I beg

#

I made such a mistake by clearing my typing data 😭

lunar shore
#

people aren't mysoginist here, like really. but companies might be a little more gravitated towards men ig

uneven pine
#

Really? I'm kinda surprised

lunar shore
#

yeah people are not feminist OR mysoginist

#

but again

#

the government is

#

not trying to be political here

#

but yeah

lunar shore
#

and it is the highest paying job on the site, probably

#

wait there's another one going up to 2250

lunar shore
#

Is BMP essentially the WAV equivalent to images?

spice storm
#

ive tried to make it rlly rlly "bug free"

#

@plucky stratus

#

ive used key bindings, a lott of functions to properly make the widgets work as they do in real softwares

#

even tho this has nothing to do with the user interface or wtv my project is about, ill add a dev tools kinda tab/window/section and add this in there to flex obviously coz why the hell not, i think its pretty cool

#

works just like the mysql terminal

patent girder
#

what is this made in?

spice storm
#

but thats way more complex

spice storm
patent girder
#

oh, cool

spice storm
#

yess

#

lol

vocal whale
#

@rough sapphire

vocal whale
wise oriole
#

Should I KMS, 905 code lines 💀
Technical debt gonna be wild

tardy rain
#

If you got rid of the pointless comments it'd be fewer lines

wise oriole
tardy rain
#

Banners about imports and global variables are useless

#

Will you not know what an import line does in the future?

wise oriole
tardy rain
#

Not really

wise oriole
#

Like theres only 62 lines until it starts

#

And I did that in one day (i slept 5 hours)

#

Please send help

#

FR

thick ore
#

i believe that should be obvious pithink

wise oriole
thick ore
#

it sounds like you have a god object

In object-oriented programming, a god object (sometimes also called an omniscient or all-knowing object) is an object that references a large number of distinct types, has too many unrelated or uncategorized methods, or some combination of both. The god object is an example of an anti-pattern and a code smell.

#

from what I can see, your App class could probably be split into WorkspaceManager, ConfigManager, etc

#

also why are you prefixing your methods with __ and naming your modules like __xyz__

soft violet
opal trout
thick ore
#

my religion is based on dtar's app class

opal trout
#

the church of App

wise oriole
solemn tulip
#

TIL mirror means "watcher"

#

same base word as mire, like in admire

wise oriole
solemn tulip
wise oriole
outer sundial
#

@slim hill It's always silly when help channels close as I'm typing. https://discord.com/channels/267624335836053506/1273010474711252992
Looking at the docs for matthews_corrcoef, it looks like as an input it only accepts a value between -1 and 1. Looking at the docs for predict, it's not obvious to me that predict's output is constrained to that range. If it doesn't, then that would explain why it says your make_scorer doesn't work.

slim hill
#

alright I’ll look into this

vocal whale
#

@morgana84

slim hill
#

kind of annoying because I wouldn't have found that out from the errors I was getting

outer sundial
#

Yeah, that is definitely a subpar error message. Glad you found it 👍

thick ore
#

idt you should be naming them that way

tulip falcon
thick ore
#

why would you want them to be name mangled anyway

tulip falcon
#

In cooperative subclassing is usage I know of

#

Name mangle inherited members to avoid diamond problems

#

Not just inheritance but multiple inheritance ducky_sphere

rough sapphire
toxic sun
rough sapphire
#

Happy independence day indian brothers and sisters. I made this to celebrate the day

unreal flax
#

happy independence day, indians

glossy niche
#

oh it's Indias "fuck Britain" day? neat pithink

#

happy independence day guys

lunar shore
#

Any good programming languages I could use to do general projects (other than Python) while also useful for work and getting a job?

#

Java? JS?

undone thorn
#

both are useful, albiet for different types of jobs

#

c++ is also a decent choice if you can stomach it

lunar shore
#

Isn't C++ explicitly used for game-dev in the industry?

undone thorn
#

no

lunar shore
#

I don't see any other jobs for it

undone thorn
#

even the ones for game dev companies might not necessarily be related to game dev

lunar shore
#

Rockstar games

#

isn't that a game company?

#

hmm might be they need Cpp for their clients

#

but in general

#

I don't think I'd get any job with C++ like in the next 5 years. It's just too underused

#

yes there are jobs

#

but few

#

(again, except game-dev)

patent girder
#

do you know SQL? not a programming language but should be useful for jobs

lunar shore
#

I know SQL to some degree

#

worked with some ORMs too

#

How about

#

Go?

patent girder
#

I don't know anything about Go tbh
I'm personally planning to go for html/css/JavaScript later, maybe that will get me a better chance for a job

#

knowing frontend + backend I think would be nice

lunar shore
#

I also went that path but like

#

it is kinda boring tbh

#

the JS part is fun

#

the back-end and HTML/CSS? Nahhh

#

I was just trying to learn Java for these stuff

#

like java has good job opportunities and also you can use it for general projects

#

but I feel like the environment is too bloated

#

like the best support you can get with Java is with the IntelliJ IDE. And that is just too many features for me, and too heavy of an application

thick ore
#

whats up pydis

#

i am typing this on a laptop with its internal battery removed

lunar shore
#

ooo

#

nice

wise oriole
solemn tulip
wise oriole
drowsy flax
#

🙏

wise oriole
#

Its not bout the language, is bout the what you are doing

drowsy flax
wise oriole
drowsy flax
raw kraken
#

Yoo

#

Tony here

green pelican
#

hey tony

#

wanna see my meme

wise oriole
# drowsy flax Which programming languages you learned, like beginner to intermediate level

I'm 17, not that experienced, just touched some C++ files for customizing some GIMP features.
I can say I know Python and JavaScript thats it
And I'm learning React and TypeScript (I like more typescript, but its better to learn first JS, cause typescript is just a statically typed version of JS)
And I know a bit of C/C++, C# and Java, C# because I did use Unity once for some game testing but left it appart, C/C++ because I was taught in school last year, and Java because I have done some Minecraft modding stuff

tardy rain
#

January 2, 1970

drowsy flax
wise oriole
tardy rain
#

No

#

I am beyond birth dates

wise oriole
#

Is my JSON test database a bit too large? (its for a test of how much will the database ocupy)

#

LOL

wise oriole
#

its just to test database avg size

#

im just doing a custom-badge view counter because the one that already exists I do not like

rough sapphire
#

how do i set up a nginx reverse proxy?

uneven pine
#

You've mistaken this for a search engine

dim pivot
#

(xkcd/what if reference)

shell raptor
cedar leaf
#

I wanna buy a laptop for coding and my budget is nearly 45k so please suggest me

rich topaz
#

@crude dove hey you got a moment? its something important i want to talk about (in dms)

glossy niche
rough sapphire
#

like, 45k usd?

fervent furnace
#

Guys very unrelated but

#

How do u get a programmer gf

#

That's better than u

tribal aurora
#

unless theyre trans or smth

uneven pine
#

Yikes

frozen crane
#

@tribal aurora I'm not really sure what you're getting at. there's no way of saying if one person is "better" than another person. and being cis or trans doesn't make you inherently better.

frozen crane
tribal aurora
frozen crane
#

@tribal aurora to be clear: if you're suggesting that trans women are better programmers than cis women because trans women are "actually men" (not true) and men are better programmers than woman (also not true), that definitely isn't appropriate.

tribal aurora
frozen crane
# tribal aurora i have no idea what cis means, but i was just referring theyre just more interes...

"cis" means "same side of", as opposed to "trans". Both "cis" and "trans" come from Latin.

It isn't really true that men are more interested in programming than women. Some of the most significant contributions in computer science have been made by women. When I was in university, I was a research assistant for a woman professor, and my current supervisor at a research company is a woman (with a PhD in computer science).

dense tide
tribal aurora
frozen crane
tribal aurora
fervent furnace
#

Damn u guys made it a whole thing

fervent furnace
#

Idk what are the statistics but aren't there more transwomen than ciswomen in tech

soft violet
#

"Excuse me, we're doing a survey, what's in your pants and do you work in tech?"

#

I think it would be a bit on the nose.

#

Programming is objectively a sausagefest. It oughtn't be. It doesn't have to be.

fervent furnace
#

it is what it is

soft violet
#

The sky is blue.

#

But what's the point of saying it?

fervent furnace
fervent furnace
soft violet
#

We can always do better.

#

I'm very vocal about my lack of a brain.

drowsy rose
#

maths is so compliacted i feel like if the apocalypse ever happens someone will math so hard the apocalypse ends

soft violet
#

I think it more likely we are in a slow-roll apocalypse because people have ignored math.

#

By the time people have stopped ignoring math, math will be saying, "Should have listened. We're boned."

#

Then math will be thrown out a window because math failed to prevent it.

#

A new dark age of fear and superstition and doctrine will reign.

uneven pine
#

We're already there

#

Pretty sure climate change extrapolates past the point of no return

#

I don't think there's a chance we change enough to stop the avalanche at this point

strange blade
#

Well once the apocalypse destroys all the humans, the world may finally be at peace again.

frozen crane
tulip falcon
cedar leaf
#

@rough sapphire no bro it's 45k INR

rough sapphire
#

old think pad with Linux installed on it

glossy niche
#

I like this keypad

#

Futo Keypad

#

Its the first Foss one I like

solemn tulip
fervent furnace
#

is it whahw ti si

lunar shore
#

Do you guys look for tutorials when you wanna learn something? Or just lookup the docs? Like let's say you wanna learn kivy

#

would you start from a tutorial/guide?

glossy niche
#

whatever tutorial can get me a working prototype fastest, even if im just copy pasting

tardy rain
#

Docs should have small examples so there i guess

glossy niche
#

and then i start making modifications to the code and reading the docs

glossy niche
#

i just dont like reading docs when im empty handed and have nothing to apply what i read to

lunar shore
tardy rain
#

Yes

glossy niche
#

sklearn docs are goated

lunar shore
#

that's cool

lunar shore
#

well I was gonna go for android dev

#

but idk if I should just watch a tuto or read the docs

tardy rain
#

React docs starts with a tutorial for tic tac toe

#

If your docs dont have examples they blow

lunar shore
#

Ah

#

I can also just look into other projects I think?

#

Like obviously people HAVE made some small projects like a tic tac toe game in react native or smth

tardy rain
#

Sure but that probably wouldnt help if youre just starting

lunar shore
#

(I'm gonna use Java/Kotlin but yeah)

tardy rain
#

The stuff you see on github is more likely to be more involved than a simple 100line game

#

Kivy has a pong tutorial

tardy rain
#

I would start with docs or a trusted 3rd party tutorial like the flask megatutorial for flask

lunar shore
#

ooo

#

(megatutorial sounds scary af)

tardy rain
#

Its pretty digestable

lunar shore
#

(I don't wanna spend time with a tutorial for more than 5 hours, I wanna make projects and learn from them instead 💀 )

tardy rain
#

That one takes you through most flask features you'll ever use on a flask project

lunar shore
#

damn

tardy rain
#

By building a facebook clone (?) idk

lunar shore
#

So it's more like learning by experience vs. learning from a resource or smth

tardy rain
#

Yes

lunar shore
#

I see

#

thanks for the tips bsc and yoink

#

fr fr preciate it

tardy rain
lunar shore
#

I see

tardy rain
#

Its pretty comprehensive

lunar shore
#

yeah damn

tardy rain
#

Goes through hello world, templating, auth, models, shit like email support, ajax and other js stuff

#

And deployment