#ot2-the-original-pubsta
652 messages Β· Page 83 of 1
!e
@thorn dragon
class Ninja:
def __format__(self, s):
return 'π¨'
def __str__(self):
return 'π±βπ€'
ninja = Ninja()
print(f'{ninja=}')
print(f'{ninja=!s}')
```you can do this
@round moss :white_check_mark: Your eval job has completed with return code 0.
001 | ninja=<__main__.Ninja object at 0x7fb807b95ee0>
002 | ninja=π±βπ€
that's fascinating
the '=' causes the repr() of the expression to be provided, unless there is a format specified. When a format is specified it defaults to the str() of the expression unless a conversion '!r' is declared.
oh, you're right
β― ipython -c "1"
Out[1]: 1
!e
class Ninja:
def __format__(self, s):
return 'π¨'
def __str__(self):
return 'π±βπ€'
ninja = Ninja()
print(f'{ninja=:}')
print(f'{ninja=}')
print(f'{ninja=!s}')
```well, that sure is something
@round moss :white_check_mark: Your eval job has completed with return code 0.
001 | ninja=π¨
002 | ninja=<__main__.Ninja object at 0x7f7f10035ee0>
003 | ninja=π±βπ€
totally not confusing
:faint:
yeah
1st format given so __format__ called
2nd not given so repr
third??
format given then why str?
oh !s is for str()?
ah i see, makes sense.
thanks a lot @round moss & @elfin vine !!
i was quite confused with the stuff lol.
anti-monke
π΅ anti-monke yay
@fast ore Nuclear fission does not convert mass into energy, it releases potential energy by breaking apart the nucleus of atoms into smaller nuclei.
Hmm
It was energy when it was part of the original nucleus, it's energy when released.
All energy has mass.
Hold on i need some google
"Nuclear fission is the process of splitting apart nuclei (usually large nuclei). When large nuclei, such as uranium-235, fissions, energy is released. So much energy is released that there is a measurable decrease in mass, from the mass-energy equivalence. This means that some of the mass is converted to energy"
Even "massless" particles have mass.
no?
Yeah, that's a misleading statement.
Yeah, it's true. Even light does. I'll give you an example.
hmm is this like a "i have no money" and "i have 0 money" situation
Let's say you have a perfectly sealed cube whose inner walls are perfect mirrors.
"Light indeed carries energy via its momentum despite having no mass. ... Since photons (particles of light) have no mass, they must obey E = pc and therefore get all of their energy from their momentum. Now there is an interesting additional effect contained in the general equation " according to a university
Turn on a flashlight and put it inside the cube, then put the cube on a scale and measure its weight.
momentum creates weight
Then, open the lid of the cube to let light escape. Given a scale with high enough precision, you will observe how its weight gradually decreases.
by crashing into the mirror?
All energy has mass, as per E=mc^2
It's just that the mass contributed by the light is miniscule, because c^2 is such a big term.
m = E/c^2
Mass equals E upon C squared
A hot cup of coffee is heavier than a cold cup of coffee, due to the thermal energy
But the difference is extremely minute
How can an object have momentum without mass? It can do this if it is a wave. A wave transports momentum via its waving motion and not by physically transporting an object with mass. "Momentum" is the directional property of an object in motion that describes its ability to influence another object upon impact. An object with high momentum (such as a truck) can greatly influence the object it collides with (such as a barrel)
This explains it
Hence
Light is both wave and particles
Your explanation and theory is fact and not baloney
I'm not up to speed with QM, but experimental evidence supports what I just told you.
Einstein discovered this in 1915-ish I think
I can link you the paper
I'm a software engineer.
oh
According to electromagnetic theory, the rest mass of photon in free space is zero and also photon has non-zero rest mass, as well as wavelength-dependent. The very recent experiment revealed its non-zero value as [formula didn't copy because latex pic]. Even experimental results concluded that within matter (dispersive) the photon shows its imaginary rest mass. We have no exact answer as to why photon incarnates itself with versatile mass. Here we try to theoretically investigate about the rest mass of a photon.
I think that's my link. It's about how experiments showed it has mass :3
time to ask my teacher to conduct this experiment for me
I mean, it's not easy given how little mass extra energy contributes to the weight of an object.
she has good equipment
You need a lot of energy or very precise measurement instruments.
10e-54 kg
I don't think a teacher can measure it easily
also
back to the topic
nuclear fission is indeed mass to energy conversion
"Nuclear fission is the process of splitting apart nuclei (usually large nuclei). When large nuclei, such as uranium-235, fissions, energy is released. So much energy is released that there is a measurable decrease in mass, from the mass-energy equivalence. This means that some of the mass is converted to energy" - Canadian Energy Research Center
Conversion is a misleading word, since everything we call mass is just different forms of (usually potential) energy.
The mass of a proton is almost all strong force potential energy inbetween its constituent quarks.
also a scientific video about nuclear bombs did say
Quark mass is just potential energy between it and the Higgs field.
Small amount of mass can be "converted" to a lot of energy
Yeah, but the word "converted" is an oversimplification.
Though im unable to keep up
I think you're probably right
Im still a high-schooler so i don't what the higgs field is
It might make it easier to grok for new students, but it also gives the false impression that mass is one thing and energy is another, as if mass was like frozen energy that you can melt.
i think higgs is quark
When in reality, everything is just energy.
and higgs field give stuff mass
The Higgs field gives some things mass, like electrons and quarks.
But the vast majority of the mass of a proton for example does not come from its quarks' interactions with the Higgs field, it comes from the strong force inbetween those quarks.
Which is just potential energy.
can you break it down a little?
"it comes from the strong force inbetween those quarks."
Sign Up on Patreon to get access to the Space Time Discord!
https://www.patreon.com/pbsspacetime
Sign up for the mailing list to get episode notifications and hear special announcements!
https://mailchi.mp/1a6eb8f2717d/spacetime
Check out the Space Time Merch Store
https://pbsspacetime.com/
Help translate our videos! http://www.youtube.com/t...
That guy's a phd astrophysicist
(the host, not Einstein)
The rest masses of quarks contribute only about 1% of a proton's mass.[5] The remainder of a proton's mass is due to quantum chromodynamics binding energy, which includes the kinetic energy of the quarks and the energy of the gluon fields that bind the quarks together.
The first 100 people to go to https://www.blinkist.com/sciencephile are going to get unlimited access for 1 week to try it out. You'll also get 25% off if you want the full membership.
Why Everything Will Turn Into Iron?
Sciencephile Merch: https://crowdmade.com/collections/sciencephiletheai
Support me at Patreon: https://www.patreon.com/scie...
At 3:00
Okay i understand
#ot-2 is physics now?
always has been
Oh, I've been using #ot-0
what is your opinion on homeopathy
It can make you feel good, but should not be a substitute for medical advice or treatments
"feel good"?
Yes, if I think that if I drink some tea to make a stomach ache go away, I can enjoy that cup of tea and feel good
Placebo effect?
Might not cure the stomach ache
what the hell why do i know all this stuff
Not entirely placebo, but close-ish. It depends on the exact homeopathic treatment
Here is a quote
"Homeopathy claims that water can cure you, because it once held medicine"
"That is like saying I can eat off an empty plate, because once it held food"
It is 100% placebo and nothing else.
The placebo effect is real, but homeopathy is problematic because since its adherents believe the effect is real, they will tend to eschew the non-placebo treatment they actually do need, and the snake oil peddlers will actively encourage this.
Yes, placebo is a thing.
I don't know for sure, so I don't claim it universally to err on the side of caution.
Then again, homeopathy has been very dangerous and fatal in the recent covid / anti vax environment
Basic understanding of physics and chemistry will make it blatantly obvious that there is no way it could be anything other than placebo.
i would really like someone to explain that detox is bs
Homeopathic medicine does not contain any substance that could possibly have any effect on your body.
to my mom
Water has no memory, because it's just water.
kursgezat video says otherwise
no
they are a team of scientists
i think it was an expression
pretty sure there are literal atoms
btw
Link?
and link documents below
i think they mean that there are literal atoms in the water
What are the principles behind Homeopathy and does it work?
Sources & further reading:
https://sites.google.com/view/sourceshomeopathy/
OUR CHANNELS
ββββββββββββββββββββββββββ
German Channel: https://kgs.link/youtubeDE
Spanish Channel: https://kgs.link/youtubeES
HOW CAN YOU SUPPORT US?
ββββββββββββββββββββββββββ
This is how we make our li...
i watched that video, and the consensus is that homeopathy has no real proved benefits
other than placebo
that is
I mean, of course there will be trace amounts of all kinds of stuff from any water source, tap water, spring water, sea water, etc.
i think they meant that they dilute it so much that it's practically water at some point
So much feces for example.
No worries, I guess I was out of date on my definition of what homeopathy is. Looks like a bunch of nonsense.
I was getting my wires crossed with "natural plant based medicine"
Ayurveda is 80% bs aswell
what about nightshade
that's definitely "natural plant based medicine"
more like "natural plant based killer"
Sure. I mean, of course "natural plant based medicine" can work. Aspirin is a natural plant-based medicine.
Right, which is why I couched my first statement on homeopathy isn't 100% placebo. Which it totally is, and is my bad for getting the definition wrong
isnt almost every medicine plant based
God's I see the chat and get ptsd of organic notes π
It doesn't work because it's natural or plant-based.
lol
true
It works because its chemical composition has some beneficial effect on our physiology.
Fair enough.
then allopathy == ayurveda?
idk
A lot of medicine has been manufactured in a lab, of course.
dont think so, but need to check
Allopathy is the osteopathic term for regular medicine.
Given that ayurveda is alternative medicine, I don't see why you would call it allopathic.
I don't mean to say that it is allopathic
most allopathic medicines have chemicals/components extracted from plants
I don't know about the statistics of that, but it's at least plausible.
ayurvedic """medicine""" crushes those plants into a concoction or something, and makes it in to a juice or tablets.
shh
If your treatment is to cure living, then thats effective
lmao
I mean, it would only become allopathic once consensus is reached in the scientific community of its beneficial effects based on scientifically rigorous experimentation.
but for real i think they use it in open heart surgeries or smth
not sure about this
the glow in the dark three letter agents are watching
lmao
google does not yield any real proof
nvm it doesnt do this thats a different plant
Belladonna is used to treat/cause fevers
Medicinal use of belladonna has not been approved by the FDA at least.
bro bing?
yup
Use DuckDuckGo
Of all the poisons of the world, belladonna is one of the most beautifully badass. What started as a feared plant ended up becoming medicine, and then THAT medicine became a lifesaving antidote for certain forms of poisoning. In this video, weβll break down the story of belladonna and atropine.
Check out BioZoneβs video here: https://youtu.be/...
looks tasty tbh
Yum
okay it does do stuff to the heart, but indirectly
no
it attacks nerve synapses
it is more of a preventive medicine
Whenever anybody says the word "medicine", it's worth considering whether it refers to regular or alternative medicine. There is a LOT of misinformation about this, so even if someone thinks something is considered regular medicine, that isn't necessarily so.
But to me it sounds like a bunch of baloney
true
to become a doctor you have spend years studying
also true
then work as a resident or something
*doctor of medicine
I could be Dr. brad90four and have a doctorate on English Literature in 16th Century New Guinea
It really astounds me how widely accepted alternative medicine is. It's like, if it was proven to work, it wouldn't be "alternative".
lol
ok according to a journal it blocks the parasympathetic system
and to become an ayurvedic """doctor""" you just have study for 18 months
And the material you have to study is approved by who?
iirc (from zoology class) parasympathetic system calms down the body while sympathetic system initiates fight or flight response
I mean, I can spend 20 years studying articles on the internet and it will make me no more qualified to treat anyone.
its a real problem if all your heart can do is increase
Ayurvedic """Practioners or Veds"""
So that number, 18 months, really says nothing at all.
practioners wrapped around in 128 quotes
If they had a 10 year education it would not make them any more reliable.
It absolutely would though?
No, because the material they study is not scientifically verified either.
But doctors study in universities?!???
Yeah, and that material is pretty damn solid
Even if you study ayurveda in a university, that doesn't magically make it trustworthy.
I was referring to your statement that to become a real doctor, you have to study for years, but to become an ayurvedic doctor you only have to study for 18 months.
Yes
Because it sounded like you would trust the doctor more because they studied for longer.
But the time the ayurvedic doctor has studied doesn't count for anything, because they are studying ayurveda.
and solid science basis
They can study ayurveda for 20 years, and it's still not going to be real medicine.
Yeah, so, of course, it's good that regular doctors study for a long time, but even if the ayurvedic doctor studied for three times as long, it's the same as if they studied for no time at all.
Yes because ayurveda is baloney
It's alternative medicine, which means that it has not been proven to work.
If it had been proven to work, it would be called regular medicine.
work where
This is my problem with all alternative medicine, I just don't get it. Whenever it is brought up, someone always goes "it has its uses", but if it did, why have they been unable to prove it?
Why do you trust it if it can't be proven to work?
"I used this treatment and it made me feel better, therefore it works" Seems to be the most common reason. There is a disconnect between people's subjective experience with them and the objective study of the efficacy
placebos exist
Yeah, I guess it's either ignorance, irrationality or just an actual lack of faith in science.
And some "natural" medicines are the same as normal medicines... But herbs carry a lot of additional substances that may get into interactions with stuff. So it works but is not as safe as only that substance in strictly controlled dosages with strictly controlled ingredients
And that is where the borders get just a bit hazy
People don't seem to understand that something being "natural" doesn't automatically makes it better. Lots of poisons are natural as well, doesn't mean you should eat them
Normal medication is tested to heck
100% homeopathic drink 2 100ml glasses of belladonna juice all your problems will be gone
get the dark joke?
As I said about natural... We thought about the same thing :D
and needs to be approved by your medical association
if you didnt get it, belladonna is highly poisonous but is used in medicine for some reason..?
alternative that is
Oh, I remember how to make a homeopathic tea
even eating 2 tiny berries is enough to kill a child
and doubtlessly cause you a lot of trouble even if you dont die


can cure cancer 100%
buy now for Β£69.99
damn you stole the words
i did :D
How to make homeopathic tea:
Make a glass of tea.
Take a teaspoon out, mix it into a bottle of water. Shake well because something something water vibrations and memory and stuff that supposedly makes homeopathy work.
Take a teaspoon and mix into a jug of water. Shake it.
Take a teaspoon and mix into a barrel of water. Shake it.
Take a teaspoon out and mix into a tanker (tank truck) of water. Shake it.
Take a teaspoon out. That's your homeopathic tea
Basically
the fuck
How do you shake the tanker?
Dilute poison to oblivion
crane
Drive down an Alabama highway
Some homeopathic "medicine" literally say they have one "medicinal" particle for numbers that basically are more than there are particles in the universe
Can't I just pour the cup into a river and get another cup further downstream?
Bumpy road
https://www.independent.co.uk/voices/ending-homeopathy-delusion-a6733926.html here
consider the current homeopathic βbest sellerβ, oscillococcinum, which is βpotentisedβ from duck liver and recommended for colds or flu. It is sold in the C200 potency meaning that one part of organ extract is diluted in 10 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 parts of diluent: this is much less than one duck molecule per universe.
https://en.m.wikipedia.org/wiki/Homeopathic_dilutions
In homeopathy, a solution that is more dilute is described as having a higher potency, and more dilute substances are considered by homeopaths to be stronger and deeper-acting.[12] The end product is often so diluted that it is indistinguishable from the dilutant (typically ethanol or pure water for liquids, milk sugar for insoluble solids).[13][14][15]
In homeopathy, homeopathic dilution (known by practitioners as "dynamisation" or "potentisation") is a process in which a substance is diluted with alcohol or distilled water and then vigorously shaken in a process called "succussion". Insoluble solids, such as quartz and oyster shell, are diluted by grinding them with lactose (trituration). The...
#stopthedilutiondelusion
just drink water smh
We now know that the greatest dilution that is reasonably likely to contain one molecule of the original substance is 12C, if starting from 1 mole of original substance
The duck thing had 100C (100 times diluted by a factor of 100) in the article
same effect it'll have
Dilution advocated by Hahnemann for most purposes: on average, this would require giving two billion doses per second to six billion people for 4 billion years to deliver a single molecule of the original material to any patient.
they arent afraid to show they're logging your movements lmao
just dont use facebook
wat
i dont get it
It's invalid
game data
So it shows the invalid symbol
is it possible to transfer away
nopies :(
le oof
now bioluminescent three letter agents have my data :(
@elfin vine moving here since we've gone off topic. I'm not familiar with Project Winter, what is it?
It's that Social Deception game I moderate
Social Deception as in Among Us, but it has proximity chat and is much more complicated (in a fun and interesting way)
For example you can fight back (no instant-death like Among Us), there's survival elements to it, instead of individual tasks you need to finish together there are several big ones you cooperate on.
I see, sounds interesting
The game like just recently released on PS and Nintendo
And crossplay is about to be enabled with all platforms (Steam is a few updates ahead Xbox, PS and Nintendo Switch)
It works pretty good on Steam's Proton so it'll work nicely on the Steam Deck
All very exciting π
Regarding what you said about the two channels, I think ultimately it's a matter of the person's skill to convey their ideas properly through writing, and their willingness to deescalate when things get heated
Yeah exactly, and we have time- and time again gotten members who don't do this. When the discussion was real-time this easily enabled them to quickly drop in and be rather condescending
I'm not much into deception games, but I'll check it out if it's on sale π
It recently integrated with Corsairs lighting system, enter the giveaway: https://gleam.io/AGM03/project-winter-corsair-lighting-integration-partnership-giveaway
Grand Prize (1) CORSAIR SABRE RGB PRO CHAMPION SERIES Ultra-Light FPS/MOBA Gaming Mouse CORSAIR VOID RGB ELITE Wireless Premium Gaming Headset with 7.1 Surround Sound CORSAIR K60 RGB PRO Mechanical Gaming Keyboard β 100% CHERRY MV Mechanical Key switches CORSAIR MM300 PRO Premium Spill-Proof Cloth Gaming Mouse Pad Project Winter Merch Pack 8 Pro...
It's better than nothing π
Speaking of Steam Proton
haha I might
Figure it's worth posting here as well: https://twitter.com/TheBattlEye/status/1441477816311291906
BattlEye has provided native Linux and Mac support for a long time and we can announce that we will also support the upcoming Steam Deck (Proton). This will be done on an opt-in basis with game developers choosing whether they want to allow it or not.
133
This comment is hilarious
Do lmk if you get it
y'know it's funny how an anticheat has fanboys
It is
Especially considering looking at the facts battleye is pretty much the best
People just think "I saw a cheater it doesn't work at all"
@grim seal HALP.
@grim seal Erlang is the great language on Middle Earth.
@grim seal plz give !voiceverify
..
wat
please don't spam ping people
no, you didn't have to, don't spam ping people.
I tried sending you a private message
yeah, I have them off to avoid trash DMs
What up Joe
greetings π
Lmao, greetings indeed
where did the django competition go btw
do you have the results somewhere
that was 2020 or
I wanna see
or was it 2019
Hmm I vaguely remember that
I remember it was coming a few months before I kinda quit
Who were you again?
WorldWake was me
yeah well I haven't been on discord for Years
Oh I have, I practically live on discord lmao
I actually felt horrible after quitting
but it was the right decision
but the django thing?
I wanna read the source code
@jolly condor I remember you knew IT
Haha, do you remember who I was here?
I remember a good deal of things
Go on
@jolly condor I remember your face --- just because I've changed my nickname and I haven't been here for a long time doesn't mean all that much
Oh I haven't been here for a long time too
@jolly condor but okay, so,
I bought a new 4K monitor
and it was working at 60Hz perfectly
for the longest time
I turned it on this morning
as in this? https://pythondiscord.com/events/code-jams/7/
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
@grim seal 100%
Wish I'd been a part of that one
Hmm I think that was after I left
I quit pretty much right after I saw that it came into existence
I saw it existed for a month or so, then I quit
so maybe January-February 2020?
I studied Django After that... I got a job as a Django-developer
Sounds like a result haha
I mean kinda. I saw that people were doing a competition in my favorite language with some framework
so I decided to learn that framework in my free time, regardless.
ok
the winner app for that competition is nice
for 1 week of work
it's not even a lot of code
very fucking buggy though
Hey @jovial island!
It looks like you tried to attach file type(s) that we do not allow (.js). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a.
Feel free to ask in #community-meta if you think this is a mistake.
@jolly condor hi, I've seen you around, nice to see you back here π
so do i
||never gonna give you up||
and desert you
say goodbye
Oh hey, genuinely I'm just gonna be lurking but I wanted to check in
wow
that's a new line in the song wow that's a new line in the song never gonna Oh hey, genuinely I'm just gonna be lurking but I wanted to check in
wow that's a new line in the song ``wow that's a new line in the song βwowβ βthat's a new line in the song β**βwow that's a new line in the songβ** **βnever gonna Oh hey, genuinely I'm just gonna be lurking but I wanted to check inβ**
You are not allowed to use that command here. Please use the #bot-commands channel instead.
lies
I am still super proud of what we did in the summer 2020 code jam, even if we went past the deadline
Also a CPython core dev told me "Other than the return type, I'm impressed with the docstring, comments, and overall structure of this function. It was made to be very easy to follow.", so hey
what did yall do in summer 2020 code jam
Basically, a web based VM runner for Arch 0.1, released in 2002
web based vm π
Yeah
Arch >_>
Details, lmao
Is there a way to tell youtube not to translate videos in a particular language into English?
as in closed captions?
in mobile no
in pc yes
going to settings to set
ye
hm?
Some videos provide the title and the description in several languages. I want it to work like this:
- If the original video is in Russian, don't translate the title & description into English
- If the original video is in English, don't translate the title & description into Russian
- Otherwise, translate the title & description into English if available
I'm not talking about captions
^
But those are details that matter 
yeah I also hate the translated titles
lol wtf thatβs dope
we have the new Spotify thing on my floor uhhhh
where is it
the blends thing
8.154
lmfao
ha
@young fern sorry I had to step away, but you can ask any python questions you want, as long as they follow our #rules
That's okay. No worries. I realized I asked 8n wrong place first. You guys have Modmail lol.
there's also #community-meta
What I meant to ask is like. So can I ask for a kind of help like. I list whatever I've learned on python so far. And ask for help from someone to give me short projects or tasks regarding to what I have learned?
Oh.
you can, the usefulness of the answers may vary
!projects
Kindling Projects
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
we do have this ^
although those might be more useful once you get to a higher level idk
I will try them out. Thank you for the reply and your time.
np
What is a good note taking/organization software btw? Preferably one that works on Windows/Mac/Linux/iOS/iPadOS/Android and will work without having a constant internet connection...
Google docs is too much just Microsoft word, not enough organization
One Note has really weird issues for me keeping text aligned on my iPad... I really want to move my notes off of discord.
Preferably looking for something that has the concept of regular text, mixed with checkboxes, and ideally freehand writing for when I'm on the iPad...
I don't even know if such a thing exists tbh, OneNote has it all but the formating issues drive me crazy
I have heard good things about obsidian. Its closed source and i dont know how many platforms it supports
Its like a markdown editor with a ton of organization features supposedly
This looks perfect...
Has python put anyone in prison?
I mean, no I don't think so.
I'm sure someone somewhere who got in trouble and went to prison has used python in their nefarious acts
But python itself has nothing to do with that
Hi i got a simple C++ question is it ok to ask here?
Communities
The communities page on our website contains a number of communities we have partnered with as well as a curated list of other communities relating to programming and technology.
very simple stuff actually
just want to porint a number with cout << its an integer variable. lets say number 10
i want to print number with 2 decimal points
like 10.00
10/1 did not work
what can i do
int n = 10;
std::cout << n << ".00\n";
lol
careful that this will change this for all subsequent outputs in the cout
i m geting variable from user input
as 10
Donuts method might work
need to check
then cast to float with std::static_cast<float>(variable)
actually is static_cast in a namespace
idk lul
trying now
cout << fixed << setprecision(2) << "You have earned $" << static_cast < float>(10) << " gift for your purchases. With additional promotions, $" << static_cast<float>(10 + promotionAmount) << " will be added to your card" << endl;
amazing worked like charm
Suggest more topics here!
Imagine a world where people read the docs before asking a question
Imagine if people googled shit before asking a question
Suggest more topics here!
Suggest more topics here!
Suggest more topics here!
Suggest more topics here!
.topic
.topic
.topic
.topic
Suggest more topics here!
Suggest more topics here!
Y'all do realize the topic question isn't meant to be spammed, right?
You sneaky bastard!
Suggest more topics here!
Suggest more topics here!
Suggest more topics here!
Continuing to exist as an incorporated entity by resisting entropy through homeostatis
Also, cheese. And I mean thisβbut cooking with lots of cheese is one of the most satisfying things in my life. Mac and cheese, pizza, casserole, grilled cheese
Those real meals that leave you feeling fed
apple
@lofty venture this is what hunter said when I was going to by him a nitro
ah
LOL
I guess you have lots of money.
not really
I just stole my parents credit card
le oof
eeeeeeeeeeeeeeeeeeek
Oh my god
:potato_popcorn:
π¦
I'd like to say :potato_popcorn:

:potato_popcorn:
sad

deep condolences
I say the exact same thing
Hi
:I hate potato:
hey

top 1 hunters emogi
i dont like pink but i like potato 
^
but it isn't true 
its cute
yes it isn't
ofc
Bruh, I should really sleep more at nights rather than in days π₯²

Bad sleep habit 
LOL
:/
a built-in feature?
or just an app
Mi Band
oh
Mi band oh
rich
3 year old
Cya
Nowhere
Nowhere
Uhhh, I just said bye to Melon 
^^^

i think i used potato too much 
Stop the potato
but @remote widget likes it
Law of Diminishing Marginal Utility
If someone gives me nitro I wil send lots of potato
and @olive jacinth
The more u use something, the desire of that thing becomes less

lemme google

It's a human tendency
Lol
Potato
Hunter Would you add me to your friend?
And @dire kindle
...

π₯
done.
tnx
I was making breakfast for myself
U haven't eaten anything except a chocolate since 12 hours
Hunter drop table users
Done
tnx
at least I study a bit of economics
Wow
π€·
???
I mean, what you mean by What why
... ?
This message
H-h-h--huntew
@H-h-h--huntew
L. O. L.
Eh, I am good with my current nickname
I am sure @dire kindle will want to try uwufying their name tho
Lol
@remote widget pings @dire kindle
And u just did it again

pink π₯
L. O. L.
Suggest more topics here!
None
!e
hunter = bool('Hunter have no favorite composer/producer/singer')
if hunter:
print(' hunter have no favorite composer/producer/singer')
else:
print('π₯')
@lofty venture :white_check_mark: Your eval job has completed with return code 0.
hunter have no favorite composer/producer/singer
Suggest more topics here!
Suggest more topics here!
Suggest more topics here!
.uwu
Your input was invalid: text is a required argument that is missing.
Usage:```
.uwu <text>
kywee
Suggest more topics here!
Suggest more topics here!
Suggest more topics here!
LOL
.belufy
.belugafy
.belufy a
.belugafy
..
.
.
.
Hmmmmmmmmmmmmp
.src uwu
Suggest more topics here!
sum([1,2,3]) is 0
idk 
L. O. L.
Sleeping
Pissing other people off
Time pass
Gaming
Chatting
Sleeping
eh, some people cant sleep well tho
Suggest more topics here!
you're Lucky to have sleeping talent 
Doesn't seem like I have the talent
Hmm, I don't really know tbh
you just need to sleep more 
.topic
most of my sleep is light sleep
manyyy
None
.topic
Idk... U can see that chart. Light Purple --> Light Sleep
Eh, it's a difficult question to answer tbh
nothing 
what about your mom's cc

Eh, I haven't gone to one since 2-3 years
.topic
Football
is E-Sport a sport?
Suggest more topics here!
Coding Book

.topic
Suggest more topics here!
a hotel
.topic
.topic
Suggest more topics here!
The current one
Suggest more topics here!
Code a good AI
making a trick shot in pubgm 
.topic
Milk
Tea + milk = heaven

whats media genre?
.topic
Suggest more topics here!
pubgm
CoD and GTA
dont use global
Be calm and don't let self doubt come over u
.topic
normal
.topic
Suggest more topics here!
We wrap each other's presents in funny or ironic wrapping paper in my family
I got a gift last year in paw patron wrapping paper
Suggest more topics here!
Suggest more topics here!
Suggest more topics here!
@harsh willow How do you figure that it's not underrated?
how do we corner joe
Suggest more topics here!
Suggest more topics here!
PEP8 song
really
I found the server month earlier in Explore but something bugged and nothing happened when I clicked the button
so it was only when PEP8 song got released that I hit a working url (in the song description) without looking specifically for it π
anyone here know how can iwrite to json in react native?
should be possible with regular JS standard?
The PEP8 song is great
It indeed was, before I find out the song "Mad World" lol
you mean define a json?
const a = { b: 'whatever' }
With number of companies and developers using java, how would anyone say it's underrated? It does what it was meant to do.
I think they probably meant in the sense that a lot of people consider Java to be an inferior programming language.
They are just not thinking the same question.
They look at java and they see bloated code and tons of boiler plate code. It's not fun at all to code in java
I mean, I think underrated is a pretty good description, since it's kind of a meme that Java is bad, while in reality it's widely used and clearly an effective choice for the types of applications that it's designed for.
This is all true there is a reason java is one of least enjoyable languages to code in.
I think even this is a bit of an outdated view. Modern Java is fine to code in, in my opinion.
It's not my favorite, but it's not horrible either.
It supports lambdas, functional-style programming, type inference (to some extent) and I think pattern matching is on the horizon as well.
It's not as nice as Kotlin, but it's totally fine.
I think weight of past is a bit much. I'm still mostly coding in java 8 because of legacy code.
8 is a bit old, but at least you have lambdas and the stream API.
Is lambda really novel or something these days?
Yeah that is true
I think 7->8 is the most important modernization
Things get progressively better after that, but 7->8 is the biggest difference.
And there is the problem that you still need to deal with old java language. It doesn't just magically go away. Like if you Google how to do something, old code, or other programmers etc. @vital crown
Sure, you need to sift through legacy documentation, but that's true for everything as it grows older.
When you google Python stuff you need to watch out for Python 2 documentation.
Python is not anywhere as old as Java or C++ imo
Python is actually older than Java.
Most people started with python much later is what I mean
Like end of python 2 or python 3
Java was popular ages ago
Python has been gaining ground recently, sure, but it's still just a fact of life that you're always going to have to deal with outdated documentation.
It's a not a Java-specific problem.
java has so many features mashed into it now
Java has to deal with it more
I don't know, Java has been the language I've worked with the most over the course of my professional career and I don't find this to be a big problem.
how can that be an opinion lol, it either is or isn't
When I google stuff I check the date of the information I find, but I do that for everything, not just Java. I think it's a good habit to have.
It's probably not an issue with your because you use java so much. New people or casual users of java are going to suffer more.
Isn't python actually older?
That's why I wrote imo lol.
Perhaps, but I think you just learn to filter by past year when you google, you tend to find up-to-date information.
If you read back, we clarified that it's literally older, but @harsh willow has a point that Python has had its big upswing relatively recently.
Ah, fair enough
Later
To clarify I am referring to the sense that language also depends on the ecosystem. Even though python 1 existed almost no one today was using it.
If we do stuff in python, we often rely on packages to do a lot of the heavy lifting.
@ocean bough so it was asking for average total rain fall for any given month. so now we need to extract not just the month but the year as well
def rain_months():
data['month'] = pd.DatetimeIndex(data['Dygn']).month
data['year'] = pd.DatetimeIndex(data['Dygn']).year
monthly_totals_per_year = data.groupby(['year', 'month'])['NederbΓΆrd(mm)'].sum().reset_index()
monthly_total_avg = monthly_totals_per_year.groupby('month')['NederbΓΆrd(mm)'].mean()
return monthly_total_avg.to_dict()
```doing that i got 50.88 for january 
Nicely done lol. I dont even remember what january shouldve been but something like that.
Wait why do we have to extract the year?
bc first we need to sum the total rainfall per month of every year in the dataframe
then we calculate the average total rainfall per month
Hey @white olive, just FYI, "third party" means "not Instagram, the entity". It does not have anything to do with you as a user.
Thank you for researching, this shows me that you are fully commited to your job as Discord Moderator Thanks again and best of luck!
haha, thx 
But shouldnt it be the same if we take sum of every month and avg that? As we did in 1st version?
no, what we did earlier was just averaging rainfall per day per month. in this version we're averaging the total amount of rainfall per month
so if it rained 2mm every day in January the first version would give us 2
the second version gives us 2mm * 31 = 62mm for January, then takes the average of all January total rainfalls (from all years)
what you're describing here is not what we actially did in version 1
so in summary what we were doing before was averaging daily rainfall per month. what we needed to do was average the monthly rainfall instead
if that's not what the problem actually asked for, definitely bring it up with your teacher. but I guessed they were looking for average monthly rainfall based on the word "bucket" I saw in the problem lol
@hollow heart you have a fancy new role icon now~
mina went from patron II to patron III, thanks to the patron bot being terrible it doesn't consistently remove the old role
ah
you would become more useful to Kat's graphic design workflow
does it only work when you go in order?
Didnt fail to email though π
smh patreon sent me exactly 0 emails
Are you sure
first i downgraded from $15 to $5, then i canceled, then i re-joined at $5, and re-upgraded to $15
Did you count?
my face looks so scribbly
Didn't think doxxing you would be a good idea lol
WHY TY lol
π
did you get emails abt all these?
Nope

That's so blurry on mobile lol
it's blurry bc whoever made this emote made it bluryy lmao
but from what I hear from other creators on patreon, the blurriness just about sums up their quality
Lol so I've heard
kitty
Can you not spam please
You didn't mean to spam? I mean
You consciously posted in multiple channels the same thing, you meant to do it. Multiposting is also obviously spam
I mean it wasn't necessary to send the same image in three channels for no reason
i know sorry
Sharing it once, sure. Not a meme so why not, it's fine
my apologies
write to file
no that's in ram, i need to store it in disk
android has something called shared-preferences
it's android's way of storing stuff
ye
but its a key value system
similar to json
no idea
the flutter one supports a string list
and you can convert json to string and then decode it
true
hm
i'm just going to use realmdb
it's like json ngl
you can make json files.
i know
i can read them too
i can't edit them though
lol so what's the issue?
i can't edit them though
load edit write?
you can use localstorage too
ow ok




