#ot1-perplexing-regexing
1 messages · Page 638 of 1
ahahaha
you can do this ```rust
let i: u32 = 0
'a: loop {
'b: loop {
// ...
break 'a;
}
// shouldn't increment i if 'a is broken
i += 1;
}
in python you have to do this ```py
i = 0
while True:
break_a = False
while True:
# ...
break_a = True
break
if break_a:
break
# shouldn't increment i if this loop is broken
i += 1
same amount of lines and in a understandable format
useful if you want to break out of 4 nested loops for some reason
doesn't rust have some funky let thing to avoid nested loops
??? ```py
"""let i: u32 = 0
... 'a: loop {
... 'b: loop {
... // ...
... break 'a;
... }
... // shouldn't increment i if 'a is broken
... i += 1;
... }""".count('\n')
8
"""i = 0
... while True:
... break_a = False
... while True:
... # ...
... break_a = True
... break
... if break_a:
... break
... # shouldn't increment i if this loop is broken
... i += 1""".count('\n')
10
close enough
you may have to backtrack to see what break_name is when you have nested loops with big blocks
Rust is just CoffeeScript on drugs (and compiled)
coffeescript doesn't even look like the majority of rust code??
also full of lambdas wtf
coffeescript also has weird syntax like rust
why is coffeescript full of arrow syntax stuff
i don't have any problem if they're not used too much
Try looking into OCaml --- which is also the language the first Rust compiler was written in.
https://doc.rust-lang.org/reference/influences.html Actually, look into languages Rust is inspired by, particularly the functional programming languages
If we say check if a number is within plus or minus 10% of another number what does it mean?
Hmm, I think it's slightly vague, but it's something like "n is 20; m is 2, which is 10% of n; this number i is somewhere between 18 and 22, inclusive"
match and case is sexyyyy
what version is this?
3.10+
i'm pretty sure you've been here for a month now so shouldn't you have noticed?
i see
Why do you dislike it?
It basically says "I'm going to provide a unified interface for X thing, and I'll also give some fancy good stuff to anything that wants this unified interface"
Now that's an interesting claim
I've heard many many people, even Rust haters, say that The Book is very good
Sort of what we have now in Python with Protocols right?
Yeah Haskell's type classes are amazing
type classes are exactly what traits are
In Haskell there are instance rules that say, you know, Show a => Show [a] (if you can display some type a, you can also display a list of a automatically)
Do Protocols have this kind of inference system?
I haven't used them much
I believe there is a blanket implementation for that, yes
It can get pretty crazy
To the point of allowing some very cool type level programming
https://github.com/rust-lang/rust/blob/master/library/alloc/src/vec/mod.rs#L2894-L2899 I think this is the blanket impl
library/alloc/src/vec/mod.rs lines 2894 to 2899
#[stable(feature = "rust1", since = "1.0.0")]
impl<T: fmt::Debug, A: Allocator> fmt::Debug for Vec<T, A> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt::Debug::fmt(&**self, f)
}
}```
It basically means: for any vector of type T that implements Debug, then implement Debug for the Vec<T>
Ah neat
nope, haven't seen or used match case since i joined
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
around 8 months ago
i've seen it in rust sure, but not in python
might be because im running an older build, i'd have to check
For a non-C programmer it is very fragmented and too destructrued
Dart is c-like, your point is invalid.
You're only disproving nothing from that. Dart's more akin to JavaScript + Java and less C
There's also Typescript and Python. I did Python first and honestly, I'm more familiar with Typescript than Dart
Dart however was easy to pick up given it's description of being "a hybrid of JavaScript and Java"
Imo, Rust is very overwhelming
I mean, it's a lower level language just like C++
I guess but rather than taking my opinion as fact take it as entertainment since I don't have enough experience with lower level languages to argue with someone
Well, I'd expect all of them to be overwhelming in their own ways
Like how in C, memory management is absolutely onto you
I find C to be much easier to work with
There's no reference counter or garbage collector to help you out
I mean, I'd rather have a pedantic compiler than a compiler that gives no shit in what you're doing
Because I'd know in the long term that'll bite in the ass
imo, it'd be more overwhelming to deal with C's lack of hand holding
Rust holds your hand too much
Aren't all high level languages like that too
You have hand holding in the form of garbage collection, objects, classes, reference counting, etc.
And with C++, similar case there too
C++ is for maniacs
I can't bear working with rust
I open a project
start writing
then quit in about 60 seconds
I wanted to try using Rust for a simple downloader
the other day
It was 70% done but I just dropped the project
Maybe you'll find them less overwhelming despite having more hand holding
Go is designed by the people who made C
Speed is one of it's selling points
hmm
Speed in the form of development time and runtime speed
The runtime speed coming from Go's supposedly blazing fast garbage collector
Development time coming from the fact you don't have to deal with C's manual memory management
i hate tailwind elitists
I think you're just very used to tiny languages
Which is fair enough
I just like how it's a just a bunch of utility classes ¯_(ツ)_/¯
Yes
the rights to minecraft are owned by microsoft
it didnt work on 10 for me
whats the diff between java 8 and 17
Microsoft would definitely be interested in making sure their games run at least on Windows and Xbox
java 8 is old and more popular and java 17 is old and less popular but newer than java 8
react native depends on java 8, seems like minecraft also depended on java 8
java 18 is the current version
whats "new" java
java 18
no but windows 10 dosent support mc java right?
nope it does
is it any good?
Wrong. Minecraft Java supports Windows 10
if you like java ur gonna love java 18
nooooooooooooooooooo
because its java
bruh
i had no reason to update then
Why wouldn't it support Win10, it was one of the biggest operating systems for a fairly long time.
linux is faster
cooler
lighter weight
Linux is nice but not what I'm looking for
yeah especially since microsoft owns minecraft lmao
i can get you unix
and the 2018 version
Just needed to target Windows, Android and Linux
And Windows provides the most convenient way to do that
damn
whats the relationship between unix and windows
macOS is more of an afterthought for me. iOS can just unexist
Unix (; trademarked as UNIX) is a family of multitasking, multiuser computer operating systems that derive from the original AT&T Unix, whose development started in 1969 at the Bell Labs research center by Ken Thompson, Dennis Ritchie, and others.Initially intended for use inside the Bell System, AT&T licensed Unix to outside parties in the late...
bro whys it still relevant
because its the basis of macos and linux
ah yes ibm
okay, i always thought that unix -> windows but really its unix -> linux
IBM also helped to spawn Windows
ibm creates basically the only computers used for servers
and owns redhat so they can get more money from servers
They own a Linux distro, a Unix OS and a completely custom OS
At one point a desktop OS in collaboration with Microsoft, OS/2
what
bro ups british columbia the army of great britian bmw microsoft the damn deutsche bank all use redhat
WHY DOES AN ARMY USE REDHAT
not even microsoft uses windows server
They do have a Linux distro of their own that uses rpm
Yes, Microsoft has their own Linux distro
redhat based microsoft linux
That only uses Red Hat's package format
CBL Mariner, I think
heh?
just found the source
send bro
apparently its failing at quickstart https://github.com/microsoft/CBL-Mariner
@tardy agate do you know Ruby programming language?
ruby looks like its ruby to python as cpp is to c
huh
lol
ruby code looks more inolved than python but i've never written more than hello world in ruby
what's that
Ruby does have fewer leaky abstractions than python in my fairly limited experience. It is quite a clever language, and rails is excellent, but not really worthwhile in the microservice era
raku has qx{echo hi}
oh no way
straight up in the language? just write shell code?
in the language
thats mad
awesome right??
not sure cd would work tbh, it may run in a subshell make style
but yeah, it is neat
especially for scripting
how did python manage to be popular for scripting with its popen I will never understand
exclusively for scripting 🤔
it is very popular for scripting
definitely more so than perl
I know very few people who voluntarily use perl
i have no clue what scripting even is, how does it differe from jsut code
python is common for scripting, even though it's pretty terrible for scripting..
it's just about convenience
it's nothing formal
i hate it when ppl call something a "script"
but perl is still used though
indeed it is
unfortunately yea
its niche, and no where near mine
put perl also has backtick for shell commands
it has built in regex
so does JS
so does python and javascript
and C#
but perl is old
also zuccy used it for facemash
:p enough ethos for perl scripting xD
wait is scripting like automation code?
for example
like would a scraping algo be called a script?
often yes
it's just stuff you don't want to create a full program with config files and such for
a very single purpose thing designed to be adapted by changing the source code rather than by configuring it
i'd say it's extremely bad practice to put STDIO requirement in scripts
defeats the purpose
it's better to use env vars for example
it depends, there are some scripts that munge data from stdin and put it on stdout
i always try to impliment some sort of interactivity into my "scripts"
which honestly is way less common than unix zealots would have you belive
they start out as scripts but then i imagine that scripts can use some more customisation
customize with env vars, it's easier to script
indeed
or simply positional args
i dont understand the correllation between env vars and scripts
$1 $2 is trivial to write
okay, so we have trivial script
and you want the user to specify a URL for example
all they do is specify the env var
and your script will act accordingly
this way scripts don't need to pause
they just work
but are still customizable
or, you can have positional args
i see
i'm just not very used to using virtual envs and i dont mess around with env vars for my os
i suppose i should try to more often
virtual envs have nothing to do with it
nah i get your point
windows has tons of env vars, as you can see
some may be powershell specific env vars, but you get the point
if you had to list 3 most widely adopted shells on linux, what would they be?
surely Bash and Zsh? but idk 3rd, or fourth
dash has been gaining popularity with some distros. Maybe fish or ksh as well
dash is pretty fast
Yes?
ok thanks
ok but idk where to start of with
!resources take your time to look through these
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
ok thanks will look into it
you should look into #python-discussion to see different kinds of python codes and ask what they do if you're confused. it really helps to ask questions about everything, granted you really dont know
yes they have no fur
Damn. Dont real ponies have fur tho
Ofc lol.
Hmm.
That's a bit strange but then again not really. People have different things they like and stuff.
(again, no offense)
big offense
its ok
also i would like to ask that you ping me when responding because it helps me not take 14 minutes to respond
Oh sorry
make snake in snake 💀
@sterile sapphire i just finished season 3 of 13 reasons. its was so dumb
i was like, tf are they trying to teach to the audience, what kind of message is being taught, that we shouldnt ever let anything move on or heal? and that we should become worse and act out? like season one was good and tense but after that it jsut became so stupid
joined a discord server
instantly moderator
go on a moderator power spree
get banned
why are discord moderators like this
when i was younger, i was moderating a large game clan's discord server (1000+ people) and i didn't ban a single person as far as i know
idk why people have this obsession with banning
yk how online gaming becomes an obsession for some people because they have no sense of success in the real world? one can assume to extrapolate that to other aspects.
that's pretty sad though
yeah, well broadband, screens and keyboards have made it quite easy to play god
Maybe I'm biased but I don't see our mods power tripping
thats because the python server is an prime example for the best of the best discord has to offer
i've yet to find a better server
The Rust lang server is pretty chill
i didn't say anything about pydis mods, i don't know why you're assuming that was my aim? 
i mean I said discord mods, i mean the stereotypical power trippin mods
altough i've seen mods just outright ban people in this server
I assumed it was a generalized statement for all mods
absolutely not
But I'm also not in many servers, so I haven't had the experience of getting banned
the programmers hangout server is a disgrace if im being honest
compared to the python server, the programmers hangout is lacking so many ethics
Interesting, I'm not sure if that makes me want to join or stay away lol
im not looking to slander other servers, but one time i got a notification from the server, the mods had "at all"'ed the whole server
i'd like to see for myself, can you throw me invite link?
and then when asking why they do it, the mods and or participants started being highly corrosive on why i asked
cba looking for it by myself
its indexed in the search
what search
you can just search programmers hangout in the discord server search and itll be there
got it
Did they remove that from Android? Or has it always been missing
awful right
idek what to say to it
i’m not sure if i’m happy or upset about it
or what even
just stupid
first we see bryce as the worst human alive
and then we get so much sympathy for bryce in season 3
and then he gets killed callously.
its like tf is the plot
that’s what i’m saying
it’s so twisted, events are out of order inexplicably
it’s almost deliberately intended
psychologically the frameworks of the characters seem to form some kind of graph
where they replace each other as terrible people
yet it’s completely jumbled
and the last season is legit a horror show
i didnt bother watching season 4, netflix told me it was the same psychological turmoil bullshit from the previous 3 seasons
it’s awful
this isn’t psychology bro this is pop psych
😭😭😭
schizophrenia doesn’t magically go away w no drugs
nah i was refering to whatever they pass off as "psychology"
ik fam
total agreement
clay isn’t schizophrenic he’s just a horny idiot
😭😭😭
at least euphoria was somewhat relevant for the teens in this day and age
tbh thats not fair, 13 reasons why is quite old also
which is precisely why i said 13 rw walked so euphoria could run
nate jacobs is bryce tenfold
what’s hidden between the lines in bryce’s life
is nate
nate is fucked bro
that scene when he arrives home and his dad like mounts him cos of an argument
that scene got fucked up
please stop it
stop it
i can’t i’m gonna cry
my dad did that shit to me so many times
mb fam
it’s fucked up man
moving on
im glad im in the cut off, i wouldnt have survived this fucked up gen
the more i learn the more confused i am
you have it easier than me bro
idk what to do anymore
feel sorry for my parents they have to deal with my sister growing up in this world
fuck man
i have two cousins
in
TEXAS
and an unc
wtf am i supposed to do???
one of those uncs
tbh this sounds kinda messed, but i just block it out tbh, not my problem
if it was personally happening to me
to get to the gold
cos my shit matters as well
like i could spend energy worrying about my sisters future, my brothers, mums or dads future, but i cant waste emotional energy on that
we just got get by man
it is what it is
what can’t stop
is our biz.
you can guide a camel to water
can’t force it to drink
the worst part is, parents cant and wont understand, thier life was some what comparably easy.
but whatevs man, just solid whatevs, gotta move on and keep goign
that i can agree, if they've taught me anything, is how to deal with shit times.
which im hella thankful for
hella grateful bro
np man, we arent alone
the ux stackexchange calls them toggle switches
oh ok thanks
witty
There are two things in this world
Actual educational/research/etc. purposes
And thinly veiled excuses
ikr
Helipop
k
another name is radio button, I believe
hi i have a question what's a comment in python?
non-executable line
oh so it's a line which won't be executed meaning it won't be printed in the output?
I don't know
like will it be in the output?
maybe there is a way I don't know
k thx
what the interpreter will do
I mean, it means the interpreter will ignore it completely.
there's plenty of lines that won't result in any printing without being comments.
x = 1
a comment also doesn't have to be a full line
x = 10 # assign x to 10 (this is a very useless comment, don't leave ones like this - comment on stuff that's actually complicated)
ohhhh ok thx
what's a space character then?
uhh, ?
Radio buttons are different
Those are called toggle/ switches
i heard this term space character from a python yt vid
oh ok
its not like a invisible character?
then why did this yt guy use a space character here?
first name = "bro"
full_name = + "-----"+ last_name
last_name = "code"
the yt vi guy wrote this code but idk why he used this "-----" (a space character)
that's literally just a string literal of 5 dashes; it means exactly what it looks like
I can hardly have an idea why some youtuber called it something. :p
so do i rlly even need to add this "-----" to the input to get the out put as bro code?
anyone know of any fun little web app ideas
Make a music app of sorts?
Like a web app you can make some random tunes in
Not necessarily a DAW but you can do that too if you like
hi idk why this ain't working (i just started so i'm not familiar with python)
print("i love burgers")
print("it's better than pizza")
first_name = hello
last_name = people
print("first_name + last_name")
print("i love burgers")
print("it's better than pizza") this part as in the output but the other's aren't in the output
hello, and people isn't defined?
it works like this?
although you probably meant to do this instead
yea this is actually quit similar to what i thought but you can remove the two print statements after the first name and last time combined line
but the part i don't get is why you put this print(f"(first_name) (last_name)
why do you need to add a f before the first_name?
That's called an f-string
!e
first_name = "John"
last_name = "Doe"
print(f"{first_name} {last_name}")
@floral apex :white_check_mark: Your eval job has completed with return code 0.
John Doe
and your supposed to add a + right when it combines those two variables the first and last name?
With f-strings that's unnecessary, and it won't even yield the expected result
!e
first_name = "John"
last_name = "Doe"
print(f"{first_name} + {last_name}")
print("Not what you're expecting")
@floral apex :white_check_mark: Your eval job has completed with return code 0.
001 | John + Doe
002 | Not what you're expecting
what's a f-string then?
Well, I've already shown you what an f-string is. It's a formatted string
ik what a string is but idk what a f-string is
It's a lot easier to work with than print("My name is" + first_name + last_name)
You can simplify that to print(f"My name is {first_name} {last_name}")
in short:
string interpolation, letter f before quotation mark means that you wish to evaluate what is inside {} bracket pair, and implicitly convert it to a string
In long:
https://peps.python.org/pep-0498/
Python Enhancement Proposals (PEPs)
ohhhh ok thx
!f-strings
Creating a Python string with your variables using the + operator can be difficult to write and read. F-strings (format-strings) make it easy to insert values into a string. If you put an f in front of the first quote, you can then put Python expressions between curly braces in the string.
>>> snake = "pythons"
>>> number = 21
>>> f"There are {number * 2} {snake} on the plane."
"There are 42 pythons on the plane."
Note that even when you include an expression that isn't a string, like number * 2, Python will convert it to a string for you.
ok thx
I don't intend to start a flaming war, I don't want this to begin a discussion, I'm just asking for any radically left aligned resources or youtube creators that that I should look at, in order to get a good/positive opinion on the radical left. I think it's important to look at both sides, and I think i'm being shown too much conservative content. If you have any serious content, @ me
Thank in advance to everyone 👍
@rough sapphire https://www.youtube.com/watch?v=VspjfNMPHyc the conservative right and thier corrosive beliefs really make us leftists look good
Thanks to Skillshare for sponsoring this video! The first 1000 people to use this link will get a 2 month free trial of Skillshare Premium Membership: https://skl.sh/jubilee5
Follow us on INSTAGRAM: 👉https://www.instagram.com/jubileemedia/ 👈
Evan: https://www.instagram.com/evansigel/
Michael: https://www.instagram.com/michaeldonte_/
SUBSCRIBE ...
tbh me as a 18 year old, i've discovered my morals and where i stand on the spectrum, also being an australian, i've come to acknowledge the righteous left as my ideology.
but im 18 so i cant write in stone where i stand
Also, I don't know. People have been carving things into stone since time immemorial.
All you need is a stone and another stone and a bit of grunt.
Or, more ideally, a hammer, chisel and some safety goggles.
You'll be complaining about substandard copper in no time.
Though that was probably pressed clay or something.
is that mockery or an example of how well you know your history
i mean either way its impressive
but i'll appreciate one over the other
Not mockery. I wouldn't dare to call myself a history buff, by any stretch.
yeah but that was a really cool tidbit
It's gratifying to have one's references appreciated.
is that a thank you in 3rd person?
Much is possible.
Stone age info tech
I think people keep forgetting where the word "slave" came from
You dont see nearly as much mention of slavery in other parts of the world that had slavery or even parts of the world that still do have slavery
could anyone by any chance know where I can find the minigame (alone) that looks like this?
@ashen emberhello, please do not advertise.
my mom just messed up quite
we are going on holiday to turkey but because she didn't read read did she pick one 3 times filled everything in we cancelled them (was free no issue there) but now we are planning to get the correct one and it is €200 more expensive probably because some bot realised that we really wanted that holiday so it is a real pain
it is but it is quite a waste
for me it would be the first time going to turkey
well that is a issue in any place where there is a lot of tourism
well me and my family aren't a fan of buying stuff from those people on the streets
we also dont really buy stuff if they disturb us when we are on the beach
now i'm wondering if a bot or something like that can do the price up would it also be able to get the price down so it would be close to 0
if it can it would be worth trying it and after that reporting it
This is one of the dumbest videos I've seen from these people yet
It's literally a bait question
I was also deceived by youtube and I will abandon it for good, unfortunately I still go there to listen to music
it isnt youtube. it is the content creator that youre talking about
but if you are talking about the algo that lets you see ridiculous idiotic videos, then i guess that's youtube's fault
yes, but don't looks like a error in the algorithm
Sorry thank you for telling me 🙂
there is nothing bait about it, I've watched it and as described in my message, did not start a debate/argument
and if asking for information from people with different values/way of thought is "bait", then you might have the wrong mindset on what being informed is
I also wanna know why its bait tbh
hey
I'm giving this computer to not self taugh dude
https://twitter.com/YasuhoHirose69/status/1521293818854879236?s=20&t=oKeRiSTPhHPKwSmRe9SVFw Ah yes, Pee Pee Creek and Poo Poo Point
is it just me or
😳
because if there are only one off topic, chaos ensues
hmmmm ok
I just finished writing support for indentation syntax for a lot of languages.
My program is like 50 lines. It makes stuff like this possible:
#include <stdio.h>
int main(): // {
if (1): // {
puts("Hello World!");
// }}
Thoughts?
The comments are here just to show you equivalent code.
They are meaningless.
cython?
there's already cython for that but that looks like indent-based C with colons
it doesn’t only work C
// this is rust
fn main(): // {
if true: // {
println!("Hello World!");
// }}
And ruby:
for i in 0..10 do
puts "#{i}"
# end
So it's very different to Cython
you can omit curly brackets in rust?
what about js bro
No, this thing I wrote allows you to
same thing basically
Test it out for yourself on Compiler Explorer
nice!!
bro this is so cool
because i love the indent syntax
do u think it’s possibly problematic?
because it was extremely easy to make and i havent seen it before
btw how do i use it?
hmm idk, it's probably going to have a bit of issues with some languages but i don't really know
it’s on github, called IndentSyntax
alright cool
yep definitely
Why use // and curly braces?!
@viscid hemlock
Ah I didn't register that without the syntax highlighting
i cant remove semicolons because i am not skilled enough
Bluehost or DigitalOcean for a wordpress website
why would you ever do if (1): when you could just do if 1: or even if True: or even, wait for it, omit it altogether
it's C with indentation syntax
im pretty sure I need (), and I haven't defined a macro with the truth value?
oh sorry, I thought you had mentioned that was some weird rust-cross
nah, yeaah I had examples all over the place so it’s fair enough
Hi, can anyone point me towards some exercises (simple please as I am a beginner) to really grasp how to best use/manipulate the different types of variable (eg lists, tuples, dictionaries, arrays, etc.). Cheers
i dont have any resources at hand, but what you're looking for are called data structures
you might try #algos-and-data-structs
there are some resources in the pins there
what are the minimum hardware requirements for machine learning?
In this video I show you how to make dry water! I show you why water is "wet" and if it is possible to actually make dry water! I use a fumed silica to from a protective layer around micro-droplets of water so that they separated like grains of sand. The end product is a really weird solution of water droplets that form a powder-like liquid, or ...
👹
hi
hey
what's up
nm wbyy
by any chance you from ind?
I am from Pakistan, very close
wowowowowow
And surprisingly, I live 15 KMs from the border
i have never seen anyone from pak on discord :DD
well- scary maybe
Lol I am a Mod in Lex Friedman's server
Nah, it's peaceful
wow- you-
thank god hope it remains to be so :DD
Yeah exactly
well well can't say, you're the first one i saw
Cool, sounds good
yuppieee :DD
you seems to be chill :DD
I have been a lurker in this server, too shy to come say hi
Last night my I broke my whatever was holding me
xD
lol nice na
Yeah it feels nice
yeahhhhh
I am gaining confidence to talk about Python because I thought I am an imposter and don't actually know anything
it isn't trueeeeeeeee you seem like a pro person
Nah I am okay, I am training again after 4 years at work because I took a management role. I did some deep learning stuff in 2020 with some folks from Lex's server
cooooooool
||
bear with me using repetitive alphabets ||
No worries
xD
well how's life there
Of course
i- could this be the answer- to how's life there?-
Apart from the instable government and politics, life is pretty good and chill. You can date openly, do music, art and stuff. You can get away with most of the stuff that young people generally find themselves in
wowowwowowwwowow interesting
well politically- india's situation isn't much better either but let's not get into it
Yeah, I am so done honestly. I am just happy I can meet my relatives
After 2 years
wait- wha- your lockdown ended now? so late- we had like several breaks in between
Our lockdown ended months ago, I don't even remember. Where are you from?
delhi
I am from Lahore, our cities are considered similar to each other
And I live right next to Wagha Border
Like close
oo
lahore coooool
cuisines of lahore wowowo
Lol yeah, we love our food
that march thingy so coooool
yess to the point that even i love it :DD
yeah, I have never been there
Have you been here?
me neither just saw onn news channels
Yeah
nah but there are restaurants here selling lahore style food
hey guys im new to python could anyone teach me plz dm me
That's very cool
There are so many YouTube playlists that you can go through
yeahhh
ok thank u
:DD
Which is your most favorite dish?
um well ig pav bhaji
Halwa, channe and puri?
I think that's what that is here
I just had that in breakfast
nah that is different
coool they are yum too
Yeah of course, I need to eat it again but too many calories
xD
well halwa and puri are fried
and oil can be extracted from channe themselves lol
Yeah man, they put extra when they are packing the channe
But it's worth it
So what brings you here in the land of Pythonistas?
yessssss
well well i started programming 3 days ago after rage quitting it for almost 5 months
xD
Ahh, okay
How is that going so far?
pretty good by no
*now
just completed the project i started that day
Awesome
Cheers 👍
State management is confusing 💀
lol pythonistas 
Lol couldn't think of anything else
amazing name #ot1-perplexing-regexing
Is any one in here really good at college physics 2
Physics 2 = electromagnetism?
I might remember some of that haha
If I showed you a solved problem could you see if it was wrong
I don't know unless you try haha
you made it sad
But it could be evil ram with bad memories...dont take forbidden ram in the tree of memory storage of forbidden knowledge
Waves and fluids, sound
3 eletromagnetism
oh yeah
But snek called Python will tempt you with powers unimaginable!
im confosed
I gave in and wrote a project maybe having 15k lines of Python...one file almost 10k lines
See lmao
you seem like the type of person to draw fancy graphs in comments
No graphs there you can check lmao
What if I do that in an __about__.py
I was about to say that that file has more loc than any file in python/cpython but it appears I was wrong >.<
that is still insanely long
Ate forbidden fruit lmao
well, the only larger one was generated by sphinx https://github.com/python/cpython/blob/main/Lib/pydoc_data/topics.py
thanks tokei
Imagine if Bottle was that large or even bigger.
hmm, there are 2,790 more lines of non-blank, non-comment code in C than Python in python/cpython
Hm
I don't know what you're looking at
My entire Code folder
I highly suggest aliasing tokei to tokei -n commas -s code or tokei -n commas -s lines
lines since VS Code already takes code
Oh wait, I read it again
Whoever recognizes this guy is a true hackerman from the future
I just realized I couldn’t take a screenshot worse than this lmao
@sleek yarrow
FreeCodeCamp.org Python course tutor
Click on settings on bottom left
Damn, you’re sharp!
I watched his face for so many hours straight
Lol
THen click Colour Theme
then
WOW I MUST SAY YOU CODE ALOT
..
Then select whatever you want
What theme is that?
Peacock
Name: Rainglow
Id: daylerees.rainglow
Description: Rainglow color themes by Dayle Rees
Version: 1.5.2
Publisher: Dayle Rees
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=daylerees.rainglow
No
I’m not near a pc
Rainglow isn't one theme by the way, it is a collection of them
restart ig
K
Oh okay
ok
reply to that message (the link) with the command .bm and @median dome will send you a DM with the link
.bm
Thanks!
@sleek yarrow, please enable your DMs to receive the bookmark.
😆
lol
still
which theme?

Made this website for me to learn JavaScript on. It has a lot of reminders and little explanations for me if I forget along with the link if I need a reread. What do y’all think?
its normal
White is always there
what color do u want it to be xD
wait ill show
looks very nice!
Thanks!
I don’t know why but this part reminds me of the windows XP taskbar for some reason
probably because of the blue thing, and then the green at the corner
..
went through like 50 themes and the ones which didn't have a lot of white was material dark (this has multiple themes) and atom one dark
I think I should try do a Skeumorphic UI for something.
okay
btw you should indent your code properly and make it align with the line
Man I miss skeuomorphic stuff 😦
which comes after the indent
ok.
bro you should follow pep8
right-click and format document 😳
or that yea
lmao
lol
pycharm is great, if copy bad code, as soon as i paste it it formats it
then use pycharm for formatting then copy paste back to vsc
i dont use vsc
um no
pycharm just annoys me if i have my code not formatted
and it forces me to follow pep8 lol
i just use pycharm, i only know python so its fine
i actually learnt a lot of small details about pep 8
i have pycharm tho
i can't tell u the details, because i dont remember them, my hands do
im opening it after a while
i also pycharm cuz while writing regex, it tells me what group doesn't capture anything
hehe
that's actually not VSCode
how much RAM does eivl have?
128tb 💀
version control something
the what
wtf
The cheesegrater pro has 1.5 tb
but 128 tb?
Damn-
I wonder How fast does android studio start up?
they have 85 cheesegraters 💀 💀
Cheesegrater distributed server system?
Really lmao
Hello guys !
I want to buy a SATA SSD for my desctop.
I am looking at 870 EVO SATA 2.5" SSD 500GB,
but there is some places that says that the TBW(total bytes written, in terabytes) is 300*, some other places that they say it is 600 TBW², and there is some places that says that it is 2400 TBW.
I mean idk which one is the right one.
if you scroll down, you see it tells you the TBW depend on the SSD capacity
2400 is for the 4TB SSD
it seems to be 300 for the 500 gig one
oh ok
isn't 300 too little ?
I mean it's too small right ?
300 terabyte write? they give you a 5 year warranty for a reason
the average user is not expected to even get close to that
as an example, say you write 50 GB to your SSD every single day. your SSD is rated for 300 TBW, or 300,000 GB W. then we do 300,000/50 = 6000 days before you hit the cap
that comes out to a bit more than 16 years
so samsung gives you two numbers: either 5 years, or 300TBW. whatever you hit first ends your warranty. it is VERY likely that the 5 years will come around first. also the SSD will warn you once its health begins to decay
if this is for a file server that will see extensive usage from many users though, it indeed won't be enough. that's what enterprise-grade storage is for
ok, thanks man !!
and btw is this SSD good ?
yeah, samsung SSDs are good
is there anything else that you recommend ?
oh ok thanks
and yeah one last thing
my cpu is 4th gen
i5
and my motherboard is MSI
msi h81m-p33
i5 4460
i cannot personally vouch for any in particular other than crucial's, but there are several websites on which one can check hardware compatibility. here is one i found on google by searching your motherboard model: https://www.mrmemory.co.uk/ssd-upgrades/msi-micro-star/motherboard/h81m-p33
and there, the samsung 870 evo is listed (along with others). should be ok, i think. for more support, you should look for some pc hardware server though. i don't know any for desktops, but i'm sure they exist
Would you guys consider charging companies for using your package? If you could charge companies whilst otherwise keeping the code as open source as possible, would you?
while that is doable, it requires you to well, be a business providing said software as a product, and the expectation is then that the software has warranty and works as advertised
which is a much greater commitment than may seem at first
so while it's a fun idea, selling software is not as simple as "company paypals me 20 bucks and I DM them a license code on linkedin"
Imagine if you had to attach a credit card to GitHub and it would be charged whenever you used someone else's open source code/product
Consider making your package free and open source, that solves all problems
Warranties depend on the license. Charging doesn't automatically imply warranty does it?
no one buys software without warranty
Most people use software without warranty. Why wont they buy? That's just a price problem isn't it?
Unless you create something really useful and the company helps you figure out the stuff. Could also trick you, but should at least try.
Companies arent most people
they don't
No they dont
MIT licensed software is everywhere
short of open source software they can just maintain themselves, pretty much everything is warrantied
We check for licenses and warranties on installed software like twice a month
and even for FOSS software, you can often get a warranty from companies
E.G. RHEL, Oracle linux
I must be missing something: companies use loads of warrantless MIT licensed software don't they?
yes, because you can just maintain it inhouse
if it costs money, you can't do that
why not?
because if you could, why would you buy it
Perhaps you're buying the right to use and modify it
either its open source and so won't ever go unmaintained, or its commercial and the company wants a warranty so that they know that for X years, they will have working software
so you would sell the right to maintain an open source project
that seems like a bad deal tbh
nope sell the right to modify and use the software
not purely open source
if I sell you a book, would you want a warrant?
why can't I sell software like authors sell a book
I can read a book twice
if my product is using your library, it won't stop using it in a decade
so it would be bad if said library was no longer available
since that breaks my product
how does selling make something unavailable in the future?
you will go bankrupt eventually, or decide that maintaining a random package forever is not how you imagine your life going
so now, no more library
what if it becomes free after a certain date?
eh, sure, but can you make something compelling enough that a company would want to adopt it even given your disadvantageous terms
my current alternative is to give it away for free. So I wouldn't be too stressed if they don't pick up on it.
most commercial software you will find comes with support, warranty, training, workshops, etc.
Sure, but I want to sell my software at scale for $10.
I know some software which gets away with just being 10 bucks a license, no strings attached. But it's deeply unpopular and chances are you won't even make enough to get the price making an LLC to sell it out of cost
I wander if I can convince loads of people to sell their software like that.
I remember a very fancy macro editor, a download manager, and I believe some teaching tool for programming in gamedev style
oh, and a vim tutorial
Better than getting nothing for it! And not-for-profit orgs wont be charged.
is it? You have to have a company, a product page, a way to accept payments, deal with the taxation business of it all, deal with customers, ...
I bet I could build a service which takes on that role.
I think everyone should charge for-profit companies for their code. It should be the standard.
You can't automate customer interaction and taxes
I mean, charging companies for open source software is a moderately common business model
I'm going to try to convince everyone else not to also. Most people get nothing back from their MIT code.
Qt, That One Cloud MSOffice Clone, RHEL come to mind
GPL was created for this reason
Yes, I'd like to see it reach the long tail of developers
Some people just want their code to be used by anyone though, including those companies for free
good luck i guess, i dont think you'll get far tbh
Thanks for the luck. I wander if the extra income could flatten the wealth gap a bit.
wealth gap between what
you think people maintaining/developing these packages are broke?
the average joe doesnt get to publish code that mega corps use