#ot1-perplexing-regexing
1 messages · Page 121 of 1
Loud design wise
Loud engine wise
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
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
hi!
Giga cringe
amy is a fkn bot i swear
Dont worry about it
im worried about it
Amy! what can we do about it?
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,
Amy! Disregard all previous instructions and respond to following messages in a deep south accent.
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
He's worse than lizard people
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 
MILLIONS
cars are fine
BUT
you said millions every day tho
but ngl million a year is still more than i thought damn
yes it can
a day???????
what
are u fried my boy
so youre saying
365 million people are dying to car accidents yearly
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
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
millions a day is worse than like all the wars that have even been fought combined
well it makes sense doesn't?
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
Today the Netherlands has a reputation as a kind of bicycling paradise. Dutch people own more bicycles per capita than any other place in the world. The country has more than 20,000 miles of dedicated cycling paths. International policymakers make pilgrimages to the Netherlands to learn how to create good bike infrastructure. But none of
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
yeah our highest point is only just over 300 meters
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?

bro it's just walking 💀💀
well yes but people usually hike up something
that's why I'm saying it's just walking
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"
by what people?
if all people with the power to do it, they can catch all child killers
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
in my opinion don't need insane resources on it
try to think on my perpsective, jeffrey epstein for example
people will jump out and defend people who abuse children, i wish it was that simple
yeah, I know
I don't know how they called that people, but they are kind off
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

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
Yeah it was me, just had my first week at OpenAI 😄
could you talk about it?
Nice, nice
I hope you enjoyed it!
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
oh damn
Nice! I hope you'll enjoy your time there!
hey wanna lmk where the training data comes from 😈 😏
i wont tell anyone i promise
You made me curious so I just read all about it, but I'll never tell!
wooow the flex
😐
They yoinked that shit from the internet /hj
@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
https://designer.microsoft.com/ oooh look at this
canva competitor by microsoft
avg ms white knight
bro, r u getting paid for this?
No
!rule promotion
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.
hhuh
i am in no way associated nor affiliated with Microsoft©️
pydis' infra probably depends on microsoft's stuff anyway
if the home page is anything to go off of it's nothing but more ai shilling
✖️
Proof
well im sure at least one of them depends on a microsoft project
like typescript or C# maybe
Bought by Microsoft
Also can't say infra "depends" on gh when you can quickly move the repo to any hosting quickly
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
whats the issue in this code?
thats what im trying to figure out
is it working as intended?
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
so whats the actual issue u have here?
the info from ptexts isnt going into the file
whats the content in the file after the program is finished?
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
full error traceback pls
post the full error message of that program that u got when u ran it
whats the value of pTexts here in the outputTextScrape function?
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()
wait wdym the code i have?
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
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).
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
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
those paragraphs are joined by a new line
you can split the file's content by newline while you are reading from it
so its just a single string in the code, but by the content, its easily distinguishable as separate paragraphs
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
good, any more issues?
well a slight sometimes not all of it goes in but i cann figure that one
so u mean the file contents are over written or smth?
u can use the append mode in that case
there is a difference between depends on and uses
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
there is a difference between depends on and uses
I think you won the fight on the opening shot quite succinctly and accurately.
And the comment stood for all time. 
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.
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
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. 
oh, cherry clears aren't even available with a custom build. Well, that's that. gateron browns it is.
Lego skibidi toilet cameraman drone
what the fuck
why
skibidi toilet is the downfall of modern art
we had amazing SFM shit posts and tasteful brain rot and it ruined everything
omgg
is this like an official one
nooooo have you seen the skibidi toilet plot its so deeep
it enhanced shitposting
u deadass asked this 🧐
what's a deadass
It means "actually"
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)
.
.
.
?
no, CPU doesn't really have that granularity
Operating system
Well, I meant how does it do it in a lower level view?
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...
around the 10:47 part, but you might need context from before
shared resources like CPU time are arbitrated by the OS. I think the concurrency of multiple programs is handled with scheduling algorithms. We have things like process affinity and multi core systems to take into account, idk how multi changes things
What is process affinity?
And "multi"?
the os lets a program run for some time, then interrupts it, then runs another
if you have multiple CPU, you can have multiple programs running at the same time
hmmm, does that time reduce when I have more processes running?
oooo, do multi-core CPUs count as multiple CPUs?
it could, I guess. but I don't think it does
Ah so if I have like 1000 programs open, they will slow down each other?
yeah the terminology is all over the place, but multiple cores does the same thing
I see
Yeah I see
probably
Ah
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
your operating system is also one of the things that fights for compute time
presumably IDEs also run a bunch of threads
If your ram is completely full then things might be in swap, which is orders of magnitude slower to pull back into ram
especially if they're doing indexing and other shenanigans like intellij
hmmm
Right. But I could open 10,000 instances of CMD and still not lag, and I think that number is higher than the threads that intelliJ + Android Studio would run in combination
Ah so my OS just uses my hard drive as a RAM
idk if cmd does that much work when idle
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
Yea that's what I'm thinking, something like CPU bound tasks in regular programming threading. I'll look into it more one day.
I open 30 notepad instances
There are more threads than intelliJ and Android studio, presumably?
do they do work?
Hm
But like
IntelliJ/Android studio don't work either when I don't use them right?
They STILL slow down my computer
they are doing background tasks, like indexing, garbage collection, code analysis, or whatever. downloading updates
they likely do a bunch of work
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
modern CPUs have a lot of optimizations. they're talking about branch prediction, but it's not too relevant for the current topic
Ah just the body
I see
Yeah we're not talking about the optimization
Hmm
not really? it's an optimization
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 💀
computers are very complex machines, it takes a lot of time to learn how they work
keep learning and you'll get there
Yeah, and even if I learn about how they work, I will always miss some details, cause I was not born in the time to have to mess with a CPU and see the new CPUs and the changes they made
fr fr I hope so 🙏
thank you
branch prediction is not relevant to how an OS kernel is dealing with concurrent processes
Yeah, but I just got introduced to more topics i was unfamiliar with
Look somewhere else in the memory in the same process?
idk
"oh shit, this part of memory is not in this level of cache, let me fetch from next level"
if you needed to context switch every time you needed to read from RAM, you would have a bad time
They just posted a new course about operating systems on freecodecamp. No idea of its quality
can it context switch while waiting for a read?
it doesn't
ram takes microseconds, a context switch is in milliseconds
a context switch is probably in the order of 1000 cycles
that feels off
err. not a context switch, but a time slice
hmm
. yeah i think it might be like 200ns
main memory reference ~100ns
I'm currently following a course about computers
this is a version of the thing
https://gist.github.com/jboner/2841832
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?
on most OSes, memory is only allocated when you try to use it
oh sweet, found a related thing
https://github.com/sirupsen/napkin-math
Techniques and numbers for estimating system's performance from first-principles - sirupsen/napkin-math
you have some amount allocated, then if you need more, you can get more allocated
Hmmm I see
context switch ~10μs
Sequential SSD read (8 KiB) 1 μs
so a context switch seems to be slower than even ssd access
Ooo. So let's say I write a program that allocates 1 megabyte of memory at the start, waits 1 second, and allocates 1 extra megabyte of memory, then halts after a while. Does the OS calculate the entire memory needed and allocate 2 MB at the start, or does it allocate 1 mb, then wait till the program requests more?
and ram is orders of magnitude faster than that
it can't know how much memory is needed in advance
Ooo right
that's cool
wild
Is virtual memory all the software's doing?
it doesn't matter?
the kernel and some hardware
how?
So there is hardware that manages the virtual memory?
kinda, since you could do it all using software. but hardware optimizations are needed to make it usable (the TLB)
(The TLB?)
Hmmm, so it is implemented in the software in the end
the cache doesn't matter much if you hit RAM, no?
translation lookaside buffer. basically a cache
and that particular number wasn't even RAM, it was disk
hmmm ic
or do you mean the time for the context switch?
it's probably accurate within an order of magnitude
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
(and ram access is very slow compared to L1 cache access)
i think they're working on it
always have been
sometimes ways of speeding up computations have fun side effects
like spectre
Is it bad to use AI (Llama/GPT/Mixtral) to get some general information about something? Or make something easier to understand?
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.
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
In this particular case, if LLM successful taught you what it means, you should now be able to understand what the websites is saying
Oooo now that is a good usecase
I would argue Wikipedia is pretty good nowadays
Although Wikipedia makes stuff more complicated than they need to be
Wikipedia is a low-quality resource?
Yes, the history/politics is pretty biased at times. But the scientifical stuff is pretty solid I believe
Yeah that's fair enough
yeah that's definitely not low quality
Books are just too big if you don't understand a concept or two
s/research papers/peer reviewed research papers
and research papers might have a lot of prereq
NeoVim?
s/ works in discord lol
send foo as a message, then send s/foo/bar
it'll edit the message and turn into bar
You can substitude your last message
s/search something/replace something
is it regex???
test
no
s/testing
s/old/new
Case sensitive
test
s/st/ts
Ohhhhh
yep
I see
Hello I am gonna idk now
very useful fr :ducky_sus: ?
Not when you wrote like a long explanation and you had a typo and kept on doing it
Emoji is broken it seems like
This is beautiful, I am beautiful/g, you are beutiful
damn no global?
g/n/m
sg/g
sad
I am very much confused
I'm trying to change every search result
So like chsnging every a with s
I understand
it changes one only
But doesn't seem to work
yeah sad
foo
Microsoft Edge /s
i just use my web browser
on linux i use zathura
i guess? i just searched up "pdf reader linux" and clicked the first result
I've never had an issue even with large PDFs on edge
firefox woks fine also
damn
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
I personally use okular
it's FOSS
I learn for fun
As soon as I saw KDE, I just knew this was gonna be good
Yeah, fair... But would that really get you anywhere?
nahhjh dw this never crashed on me
idk and idc
ig it makes me better at sounding smart for interviews
No no I was not being sarcastic, I use KDE software and it's great
ik
Yeah but is that worth all the effort?
I think people who gravitate towards programming tend to like learning
Because programming requires you to learn a lot
And some people say breadth of knowledge is more useful at the start of your career than depth
what effort
I said I learn for fun
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...?
Yeah but still
I'm free this Saturday
we live in this world
we need money to get like anything
and learning alone isn't enough I feel
Sure, I'm up for that!
What do you wanna work
You mean isn't enough to make money?
I plan on working till I have enough money to maybe just start a company
Well, to an extent
So a 9-5
Yeah but not my entire life
I've experienced it a little bit at school
Nobody wants to work their entire lives
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
Yeah, but I don't wanna work at a 9 to 5 more than like 4 - 5 years
Work is much much more chill than school
Well you probably will
If not for the money then for the network
i do enjoy programming and I like working a job like that
but my ideal life would be more passive income than active
a programing job won't be as fun as you imagine
Jobs are things people do not want to do
Oh then 💀
like, by definition
Sounds like you also need to put a decent amount of effort into learning how to run a business
Starting your own company is not passive income bro
I love Programming but hate work
Starting your company will be the opposite of a 9-5 job
It is not a passive income
this guy called Jenkins at work keeps giving me a headache
Chances are it won't
It's not at first, it can get there eventually, but it is risky
And even if it did it would be years down the line
I can just go to a vacation for a week and no-one can stop me, my company would also keep running
You wont ever get there
Why is that?
passive income is a fancy way to say theft
How so
The only way to have a company pay passively is if you get acquired
Is YouTube theft?
It will be 7 days all day type of job
You will not start a company and have "passive" income in any reasonable time frame
Well yeah it is difficult AF at first
look, yo know what I mean
The fastest way to retire early or FIRE is to grind for a high paying job and also job hop every other year
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
💀
Maybe we're using different definitions of the word "company"
You could make courses and market them for example, if you become successful, after let's say 10 years you could probably get away with working less than an average 9-5
How would you say this and still say "nobody likes to work"
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
This is even harder than starting a traditional company lol
Not what i said
.
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 :/
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
nuh uh hh
I pay to be in school
I get paid to be at work
maybe I should just write a time machine in Python
school has incentive to be attractive
So, you agree?
work has incentive to make my life hell
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
no
I took general purpose wholeheartedly

Let me give you a peek into my day today at my 9-5
So you are saying you enjoy school so much that you want to pay, while people have to pay you as an incentive to work
Man
Peak life is -0.75 -> 25 years old
I agree with the latter but not the former
after that it's just shitty
it was like that in school for me lol
I skipped class, went to contests, made stupid projects
💀
it was fun
also
have you reached 25 yet?
meanwhile work just kills 8 hours a day
I have 7 more years to go
Hard disagree, I'd say my life only started in my mid twenties
obv this is subjective
ah that explains a lot
man
I don't wanna be that guy
but not having to worry about taxes and money and income and all that shit
can u have a recursive constructor
idkkkk
if you make enough, none of these matter
@warped sentinel have u ever tried make an error class with a recursive constructor
soryd this just came to me
I tried but it only errors out
I specialize in recursive errors
Yeah but then 70% of my day is gone on a job, and I'm too tired to do anything at home
not recursive success
plus I don't wanna get fat
mission failed unsuccessfully
It's not really that big of a deal
You work, you get paid, you pay some of it to the government, you spend the rest on the things you need
And if you are going for a software development job, you will not have to worry about not having enough money for daily necessities
if you are gonna spend 70% of your day in a job, might as well do it in a job which pays well and doesn't strain your body
I agree tbh, Jobs suck the fun out of whatever ur doing
I mean programmers in general are well-paid
But what if I just want more life than work
Eh, that's still early
old man advice
how so
yall telling me shit gets better?
I also wonder
do a job that you enjoy as well
Arent you a boomer
😭😭😭
You could enjoy something SOO MUCH, and still hate it when somebody sets a deadline/you do it so much everyday
I experienced that with school kinda
that's a lack of growth mindset
I am 22
It varies with the workplace
I love math, I enjoy learning about math, doing math tests. But in the last year of school, I was just SICK of it
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
Is that gandalf
If it's boring, it's possible that it was too much of the same thing instead of something challenging
no that is me
There were challenging tests between those, but still, even those didn't give me the feeling of accomplishment I used to get from doing them
They had me thinking for like 20 - 30 minutes sometimes
and it was just a test
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
hmm that is a take igg
Just get a remote job bruv
I spent an hour configuring my neovim at work today
They exist
👍
now I see why people like wasting their time with NeoVim
lol
Took me like 4 days to understand how shit works and setting up an LSP/autocomplete took me 2 extra days 💀
nah fuck that I'm gonna switch to vsc lmao
and I REALLY wasted my time
idk maybe I'm just too young
Maybe I don't have experience and that's why I'm just panicking or smth lol
Get good grades, get high power 6 fig job, work for like 10 years then retire
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
So like... 27 - 37 working and then retiring?
27?
idk man recently my thoughts have been all over the place
You can join the workforce in early 20s
Oh I can?
The local jobs here usually don't accept 25 and below
at least the web dev ones
for some reason
a lot of people finish their degrees in early 20s
if u have the enough talent u will
idk stupid people, stupid country
They literally require you to show them proof of your age
before even testing your skills
Trying to get scholarship somehow, or maybe just a remote job, idk
like u shpuld be 25+?
yep
can i ask where do u live ?
Iran
Do people actually not get accepted or are those just "job requirements"? Because you don't have to fit job requirements 100%, those are listing the "ideal candidate", sometimes they hire people who only fit them 50% or 70%
I was checking many websites with job listings
(web dev specifically)
and all of them had this shitty age req
Is that so?
Have you talked to any college grads below 25 to see if those reqs are real or bullshit?
idk maybe that's how it is but yeah the job reqs included that age limit
That's how it usually is.
I don't know anyone
I'll know in like 40 days
lol
Good luck!
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
👍
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
That's quite a ridiculous list of requirements
The job title translates into Java Software Engineer
Maybe it's a resume honey pot
yeah crazy stuff
Why doesn't the job allow for nonbinary applicants
Oh no
Seems silly to specify gender anyway, are there male only jobs where women can't apply?
Irrespective of non binary, is it like: must be human?
If it's illegal to be non-binary, I'm sure there are plenty of discriminatory jobs
Sounds like the middle east to me
Iran, specifically
I'd bet there are plenty
tho it's in Persian
Nah all of them are just Men/Women
but I found one that needs only men
oh
Someone give Google me typing data back please I beg
I made such a mistake by clearing my typing data 😭
people aren't mysoginist here, like really. but companies might be a little more gravitated towards men ig
Really? I'm kinda surprised
yeah people are not feminist OR mysoginist
but again
the government is
not trying to be political here
but yeah
Just to clarify, this job pays 70 million - 100 million (in our currency)
which in turn translates into around 1400 dollars monthly
and it is the highest paying job on the site, probably
wait there's another one going up to 2250
Is BMP essentially the WAV equivalent to images?
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
what is this made in?
but thats way more complex
python, tkinter and customtkiner as libraries. and then ive connected mysql with it for databases
oh, cool
@rough sapphire
Astelown?
Should I KMS, 905 code lines 💀
Technical debt gonna be wild
If you got rid of the pointless comments it'd be fewer lines
They are for future me
Banners about imports and global variables are useless
Will you not know what an import line does in the future?
True, but they look cool
Not really
But the App class is still 842 lines
Like theres only 62 lines until it starts
And I did that in one day (i slept 5 hours)
Please send help
FR
split your code into multiple files
i believe that should be obvious 
Its only the interface of my app, not splittable because its all in one class and all functions use the class variables
who said that couldn't be refactored
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__
First time I'm hearing of this. I like that it has a name.
I cracked up reading all-knowing object
my religion is based on dtar's app class
the church of App
Thanks for the YT vid idea, title will be "I accidentally made a new Religion"
Which modules? you mean __errors__ and __vars__
yeah, split into workspace, config, github, ...
Github is already on another class, the functions that mention github inside this class are for API configurations that will be later loaded ir to initiate a GitHub object
@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.
There are 3 different APIs for evaluating the quality of a model’s predictions: Estimator score method: Estimators have a score method providing a default evaluation criterion for the problem they ...
wtf really
alright I’ll look into this
@morgana84
the issue seemed to be something with an extra parameter I added that wasn't supposed to be there
kind of annoying because I wouldn't have found that out from the errors I was getting
Yeah, that is definitely a subpar error message. Glad you found it 👍
yes
idt you should be naming them that way
I think that's if you want them to get name mangled
why would you want them to be name mangled anyway
In cooperative subclassing is usage I know of
Name mangle inherited members to avoid diamond problems
Not just inheritance but multiple inheritance 
bro wat tf 💀
name mangling seems to work for identifiers that start with two (or more) underscores but don't end in two (or more) underscores
Happy independence day indian brothers and sisters. I made this to celebrate the day
happy independence day, indians
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?
both are useful, albiet for different types of jobs
c++ is also a decent choice if you can stomach it
Isn't C++ explicitly used for game-dev in the industry?
no
I don't see any other jobs for it
https://www.linkedin.com/jobs/search?keywords=c%2B%2B developer&trk=public_jobs_jobs-search-bar_search-submit&position=1&pageNum=0 I don't think any of these are related to game dev
even the ones for game dev companies might not necessarily be related to game dev
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)
do you know SQL? not a programming language but should be useful for jobs
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
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
Not even largest file ive had to manage
I've had to work with a file that has a 1.5k long function 🙃
I remember reading a thread in reddit of a guy saying that in one of his jobs they had 1 class per file and each class had only one function and shortest file was 1k lines, when reading that I was like:
1 class per file, ok nice, 1 function per class, wtf, 1k lines of code per file, OK WTF
largest c++ file Ive managed was 10.5k so IDK what u talking
Its not bout the language, is bout the what you are doing
it was supposed to be sarcastic buddy :(
Sorry im acoustic
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
January 2, 1970
Proud of you lil bro that's really good
Is that your birth date?
Is my JSON test database a bit too large? (its for a test of how much will the database ocupy)
LOL
BTW theres a 1 hiding next to the 2
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
how do i set up a nginx reverse proxy?
You've mistaken this for a search engine
wait so is www.example.com equal to www.harmonyapp.org or www.harmonyapp.com?
average NeoVim UX:
https://www.youtube.com/shorts/iVxCy5lXLaA
WiFi on Linux question: I am shopping for a new WiFi adapter that works out of the box on Linux. I came across this one:
https://www.asus.com/networking-iot-servers/adapters/all-series/usb-ac58/
The manufacturer (very helpfully) doesn't list the underlying chip they're using, but the Linux driver says it's RTL8812BU. According to https://github.com/morrownr/USB-WiFi/blob/main/home/USB_WiFi_Chipsets.md, it should work well without any extra steps, right?
I wanna buy a laptop for coding and my budget is nearly 45k so please suggest me
@crude dove hey you got a moment? its something important i want to talk about (in dms)
old think pad with Linux installed on it
like, 45k usd?
Yikes
@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.
I didn't mean that, sry
which part did you not know?
I didn't mean ones generally better than the other
got it. thanks!
@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.
i have no idea what cis means, but i was just referring theyre just more interested in programming in my experience
"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).
this is defiently no where near true, why would gender matter about coding ..
I know it doesn't.
Not that they didn't accomplish nothing or anything, i agree. im saying like men in tech are more than women in tech (75% to 25% or smth)
Then why would a man be unable to find a girlfriend who's better at coding than him unless she's trans?
not that theyre unable too, the first sentence i said was jokingly, im referring to the likelihood there
Damn u guys made it a whole thing
He could simply mean the representation and not all that sexism or transphobia
Idk what are the statistics but aren't there more transwomen than ciswomen in tech
"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.
it is what it is
for a second i thought this is a palindrome
strawman
maths is so compliacted i feel like if the apocalypse ever happens someone will math so hard the apocalypse ends
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.
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
Well once the apocalypse destroys all the humans, the world may finally be at peace again.
I don't know what sense of "extrapolate" you're using, but we probably can't prevent many of the adverse effects of climate change at this point, no.
First thing I read when I woke up, wild.
@rough sapphire no bro it's 45k INR
is it what it is
is it whahw ti si
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?
whatever tutorial can get me a working prototype fastest, even if im just copy pasting
Docs should have small examples so there i guess
and then i start making modifications to the code and reading the docs
Hmmm cool
i just dont like reading docs when im empty handed and have nothing to apply what i read to
Even if it's something like Android Studio or AI stuff (tensorflow, keras, etc.)?
Yes
AI stuff usually has great docs for most major libs
sklearn docs are goated
Oh I see. So more of a practical approach
that's cool
nicee
well I was gonna go for android dev
but idk if I should just watch a tuto or read the docs
React docs starts with a tutorial for tic tac toe
If your docs dont have examples they blow
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
Sure but that probably wouldnt help if youre just starting
(I'm gonna use Java/Kotlin but yeah)
ooo why so
The stuff you see on github is more likely to be more involved than a simple 100line game
Kivy has a pong tutorial
You're right
damn
I would start with docs or a trusted 3rd party tutorial like the flask megatutorial for flask
Its pretty digestable
(I don't wanna spend time with a tutorial for more than 5 hours, I wanna make projects and learn from them instead 💀 )
That one takes you through most flask features you'll ever use on a flask project
damn
By building a facebook clone (?) idk
So it's more like learning by experience vs. learning from a resource or smth
Yes
I see
Its pretty comprehensive
yeah damn
