#voice-chat-text-0
1 messages ยท Page 277 of 1
but it dont display it
Copilot?
Microsoft products are ok if you can dodge all the dark patterns
Not that, I don't use it.
nvm ๐
def execute_Upgrade1():
Boost_Multi = 1.3
Cost_Multi = 1.65
if g.Amount_Bought1 < g.Max_Amount1 and g.Balance >= g.Upgrade1_Cost:
g.Balance -= g.Upgrade1_Cost
g.BalanceBoost = float(g.BalanceBoost * Boost_Multi)
g.Upgrade1_Cost *= Cost_Multi
g.Upgrade1_Boost *= Boost_Multi
Upgrade1_NextBoost = g.Upgrade1_Boost * 1.3
g.Amount_Bought1 +=1
if g.Amount_Bought1 == g.Max_Amount1:
Upgrade1_NextBoost = g.Upgrade1_Boost```
class MyClass:
def __init__(self):
self.BalanceBoost = 1
self.Balance = 0
self.Amount_Bought1 = 0
self.Amount_Bought2 = 0
self.Max_Amount1 = 10
self.Max_Amount2 = 10
self.Upgrade1_Cost = 15
self.Upgrade2_Cost = 100
self.Upgrade1_Boost = 1
self.Upgrade2_Boost = 1
self.Upgrade1_NextBoost = 1
self.Upgrade2_NextBoost = 1
g = MyClass()```
if u need tha
The Wells Fargo cross-selling scandal was caused by creation of millions of fraudulent savings and checking accounts on behalf of Wells Fargo clients without their consent or knowledge due to aggressive internal sales goals at Wells Fargo. News of the fraud became widely known in late 2016 after various regulatory bodies, including the Consumer ...
quit doing mutation assignment and you'll fix your problem
def execute_Upgrade1():
Boost_Multi = 1.3
Cost_Multi = 1.65
if g.Amount_Bought1 < g.Max_Amount1 and g.Balance >= g.Upgrade1_Cost:
g.Balance -= g.Upgrade1_Cost
g.BalanceBoost = float(g.BalanceBoost * Boost_Multi)
g.Upgrade1_Cost *= Cost_Multi # This is mutation assignment x *= b -> float instead of x = int(x*b) -> int
g.Upgrade1_Boost *= Boost_Multi
Upgrade1_NextBoost = g.Upgrade1_Boost * 1.3
g.Amount_Bought1 +=1
if g.Amount_Bought1 == g.Max_Amount1:
Upgrade1_NextBoost = g.Upgrade1_Boost
hello
i dont get it
i need some help becouse i cant open my tool
!e
x = 2
y = 2
x *= 0.5
y = int(y * 0.5)
print(x,y)
@verbal zenith :white_check_mark: Your 3.12 eval job has completed with return code 0.
1.0 1
i want it to be a float
the multi
cus otherwise itll go to 2
and its not even displaying the boost for some reason
i need some help becouse i cant open my tool
it needs to be a float not int
then cast it
!e
my_cost1 = 2
my_cost2 = 2
my_multi = 1.5
my_cost1 *= my_multi
my_cost2 = int(my_cost2 * my_multi)
print(my_cost1, my_cost2)
@verbal zenith :white_check_mark: Your 3.12 eval job has completed with return code 0.
3.0 3
how tho
if i do the first one haven the error is still there
look
@potent sable I suggest making a post in #1035199133436354600, if you haven't already.
i have
Perhaps make a new post and summarise where you've got up to so far, and the problem you're currently having.
my_cost1 = 2
my_cost2 = 2
my_multi = 1.5
my_cost1 *= my_multi
my_cost2 = int(my_cost2 * my_multi) # THIS IS THE CORRECT ONE DO THIS
print(my_cost1, my_cost2)
Let the database cache
but i want it to be a float u dont get it
and even if i do what ur sayin
it breaks my printing system where it shows how much i get a sec
Then you're doing it wrong.
Hello ๐
Oh yeah sorry I thought you asked that but wasn't sure.
Errrm, not currently 
Whatchu typing Terror? ๐
I love how you're all talking shit instead of looking at this from the most simplistic point of view... If the house could cheat would they? Given peoples todays morals and ethics are almost non-existant, on top of that the regulations on gaming licenses in curacao (which where almost all these online gaming sites like stake/rollbit) are almost non existant. I'd say so YES they'd easily cheat. if there's literally almost no consequences for it.... now lets add in the fact their own "provably fair" logic that checks the validity of coin flips results does not return the right results on with their own data they provided...on top of that I provided logic proving my logic is correct atleast for 87 results versus all of multiple false results of theirs in the same 87 results... oh and lets add in i provided a POC that shows you how quickly you can search for a seed that returns a loss... So what's more likely someone that controls code that is unregulated and not penalized is playing fair this day in age.. that i proved is vulnerable and can be faked? or the fact I just flipped 10 "tails" in a row which is 0.09% odds or (1:1024) . Thanks for being complete assholes instead of lookin at this like puzzle and actually analyzing it...
it's more we can't properly analyze it
Iโm sorry, but thereโs one ahole here and itโs not us
I think duolingo prioritises keeping people coming back rather than actually teaching, which is why they don't don't often have a lot of "production" exercises (not sure if that's the right word) which are harder and put people off, so they go for easier "recognition" style exercises.
maybe they cheated you, maybe they didn't, maybe they gave you wrong code
The point I'm making is in the chat above and this one.. the imediate reaction is to flaming me
But consider this a warning: donโt continue to insult people in this server, regardless of the channel. Nobody owes you anything. Please see our #rules and #code-of-conduct if you wish to be a member of this community.
There is some VC context
They did that up there in the chat above ... first.. I mean I guess these conversations could of merged ... I might of taken that out of context I guess... but still
Ok, it was a continuation too of pydis, where they were told this is the wrong server for this anyway.
Job Search these days can include a game of "count the red flags"
Some gems I've seen so far today:
"If you are looking for a company that prioritizes a 'work-life balance' please do not apply."
"Required Skills: Python 2. If you use Python 3 do not apply."
Do you mean the gif I posted? That was just in response to something someone said in voice chat. It wasn't a dig at you. Messages in this channel are usually missing some context.
Looking back through these messages...don't make me tap the sign: Slurs are unacceptable no matter what. Do not use them.
Yikes lol (to both)
Sorry for assuming you guys were "flaming" me but literally if you look in the "python-discussion" everyone immediately started talking shit based on the first section of the python link I'd posted... then it seemed like you guys went the same route ... but that conversation could of been coincidental..
I assure you it was coincidental
we generally avoid python-discussion in here
First rule of voice chat is to... talk?
Cya Alex!
Would it piss people off here for me to say that c-sharp is much more fluid and forgiving than python? XD atleast from my experience in developing games and windows applications XD
To each their own
I mean that's an accurate statement. Microsoft Java does have some good parts.
They're not made out of asbestos are they? ๐
We tried asbestos we could to get rid of it all
I'm not saying it's not Java lol because its extremely similar... interesting fact the lead architect for c-sharp was the same architect for borlands "delphi" aka turbo pascal...
Nah, I just call C# "Microsoft Java" because it pisses off the Java fanboys.
All six of them
Yeah it's good as a glue language (Python that is)
ewwww lua XD looks like puke doesn't seem clean when written XD
but you are right ... its overhead is extremely minimal
CSharp is generally much better choice then Python
This is a nice take on relative language performance: https://en.algorithmica.org/hpc/complexity/languages/
but it's not more fluid
I'll always take Lua over Lisp or JavaScript tbh. In fact, I usually only use JS if I need to interact with the DOM
Object reference not set to an instance of an object.
lol this for sure is a common mistake
I actually did use python for a robotics project at university ๐
I've mainly used python for arduino related projects....
The robot used an Arduino, but it was being controlled remotely by a python program running on a desktop that did all the computationally intensive stuff (computer vision, planning, etc.)
Go?
It's supposed to be quick to pick up, because that was one of Google's reasons for making it.
They wanted a language they could train engineers to be productive with quickly.
It is quick to pick up.
speaking of alot of +'s and -'s has anyone ever tried to code in brainfuck?
Brainfuck is an esoteric programming language created in 1993 by Urban Mรผller. Notable for its extreme minimalism, the language consists of only eight simple commands, a data pointer and an instruction pointer.Brainfuck is an example of a so-called Turing tarpit: it can be used to write any program, but it is not practical to do so, because Brai...
I usually run it through a cheese grater first. Makes chewing easier.
Might try that as a salad topping ๐ค
Broccoli is ok
If you ever have a chance to harvest beach peas, use those too.
I usually top my salads with slivered almonds and whatever berries are discounted that week.
https://cheats.rs/ @rugged root this is my new homepage on my browser
There are hills in NL ๐ค
They go up to sea level
Alright not server appropriate
Hey
@graceful kelp๐
An idea: every thirty minutes your voice call is interrupted with political campaign ads but only in locations other than where the user lives.
Crap, back later
I can hear you!
But I'm focussed on something else. Maybe plome is afk
That's my name ๐
Yeah one sec
!stream 717749310518722691
โ @whole bear can now stream until <t:1710787339:f>.
Well done!
I don't really play chess so I don't have much of a reference point though sorry ๐
Oh right yeah, I'll need to ask Hemlock.
Yeah that's a no I'm afraid. Sorry about that.
I've got to go actually cya ๐
Hello
so is RUST faster ?
@whole bear cease your destructive ways for a moment?
Does anyone here know how to use Patsy, pygam and sklearn? I have a coding problem
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
TypeError: Field elements must be 2- or 3-tuples, got ''numerical''
connection issues sorry
Search up some SPECIALIZATION courses on Coursera to get started
what is the answer?
test_data={}
updating the default argument will keep the changes on subsequent calls
I see
!stream 216540595403882496
โ @ionic jacinth can now stream until <t:1710807763:f>.
!stream 216540595403882496 1h
โ @ionic jacinth can now stream until <t:1710811726:f>.
chatgpt leads me in the wrong direction
!stream 626237757647355904
โ @green fable can now stream until <t:1710809060:f>.
!stream 223849433614385153
โ @waxen loom can now stream until <t:1710810203:f>.
โ @haughty sonnet can now stream until <t:1710810536:f>.
@warm iron๐
@whole bear ๐
hey
๐๐ฟ
hey
@cinder crown ๐
@whole patio ๐
Okay
I need to send 50 msg
3 days online
Oops
Can i talk to someone on this?
I need the shortcut
What about the admins
Yeah
I always go for shortcuts
๐ฅฒ
Anywhere in the world.. rules means to be broken
Got you, ill follow your instructions
I wish i could talk
I feel like im dumb
Canโt talk
In real life
๐ญ
This channel made me feel like iam not able to talk .. my life is a mess
God gave me mouth
Need to talk to admin
I just feel like i can convince the people
Thatโs what my ability is..
Yeah
Haha
3 days requirement I canโt skip
Thatโs way too longggg
I change 2 girlfriends over night and here i go for 3 days just to talk?
๐ฉ
. .
Me?
Can you pronounce Sesquipedalian
What about Onomatopoeia
Level 3 is crazy
Supercalifragilisticexpialidocious
Hahahaha
Om Namo Shivaya
Do you know what that is
Oni San
Anyone tried any psychedelics?
Everyone must once before they die
Thatโs what youโll be when you die
Semi Automatic is good
Go for shortgun
Sniper is hard to process
Invite me in other crowded channel
Any
I need to speak
Invite
If i Pay, how much all of you charge to make me an e-commerce website
!rule 9
@dull pumice ๐
who is @haughty sonnet ?
@haughty sonnet Desist from your singing.
are you from india?
It's intentionally bad and intended to annoy.
@gritty hound ๐
yeah

hello who want help me i want to make a Py To C libarie
Back in a sec, getting coffee
Like Cython?
"I have something for this"
I like the last one
it's not funny because it's true
it reminds me of mad
HA
Hemlock, ironically Iยดm on the line for the tax office...
I am mystifying my colleagues
at least 5 people have dropped by so far to gaze curiously upon the packages
Purely anecdotally, when I've used comparable C++ and Rust software the C++ software has tended to be... less buggy ๐ค Although there are probably some confounding factors involved.
Gladly
Specifically clangd vs Rust Analyzer, and Kakoune vs Helix
They're text editors, kind of like Vim
Errm, Helix crashed a few times and I lost work. I never had any issues with Kakoune
I always seem to have to restart Rust Analyzer in Vscode, I'm not sure why. But clangd works flawlessly.
But both pieces of C++ software were more mature so ๐คทโโ๏ธ
I have yet to have that issue with the Sublime Text version of Rust Analyzer
Maybe I've just got it configured wrong tbh 
I doubt it
Yeah
for consumer software where there's no critical code, for me a program is good as long as it does what its supposed to do and its not too slow, regardless of what programming language its made with
i like neovim (it uses lua), i like ripgrep (it uses rust), i like discord (it uses js) and i use other programs written in c# and cpp as well if they work i just use em
Never heard of ripgrep
its grep rewritten in rust, it is faster than grep atleast for me
its also available on winget as BurntSushi.ripgrep.MSVC xD funny it ends with MicroSoft Visual C
but its made in rust
๐ฌ
Honestly, winget has grown on me a lot
my last nokia was
Nokia 108 Dual SIM
and my first too.. it was the only one i owned
our oncall phone couple of jobs ago
'uge
i think either this or a very similar samsung model was my first smartphone
never had a blackberry but used my cousin sister's blackberry to play bounce all day everyday whenever i could ;-;
i will be back in a few mins ๐ see ya guys in a bit
@desert vector๐
I need help with pyspark
installation
I try more then 5 guides, but I still had problems
I spend a week on this problem
I'm new in the server
so I can't speak
Glad to have you
I'll start hunting
https://stackoverflow.com/questions/29815878/how-to-deal-with-error-spark-5063-in-spark
https://issues.apache.org/jira/browse/SPARK-5063
###################################################################################
This program reads, processes, and exports a large data file from CSV to Excel.
###################################################################################
from pyspark.sql import SparkSession # SparkSession for working with dataframes
from pyspark.sql.functions import col # Functions for manipulating dataframes
Abstract Base Class for defining interfaces
from abc import ABC, abstractmethod
Define an abstract base class for processing tasks
class ThreadedTask(ABC):
@abstractmethod
def process_chunk(self, data):
pass # This method needs to be implemented by subclasses
Subclass1 inherits from ThreadedTask and defines its own processing logic
class Subclass1(ThreadedTask):
def process_chunk(self, data):
print("Subclass 1 processing chunk")
data.show() # Example operation: display the data
Subclass2 inherits from ThreadedTask and defines its own processing logic
class Subclass2(ThreadedTask):
def process_chunk(self, data):
print("Subclass 2 processing chunk")
# Example operation: group and count data by a specific column (replace 'column_name')
data.groupBy(col("column_name")).count().show()
Subclass3 inherits from ThreadedTask (processing logic not implemented yet)
class Subclass3(ThreadedTask):
def process_chunk(self, data):
print("Subclass 3 processing chunk")
Class to process a CSV file in chunks
class CsvSplitterProcessor:
def __init__(self, spark, csv_path, num_chunks):
self.spark = spark
self.csv_path = csv_path
self.num_chunks = num_chunks
# Replace with instances of your subclasses
self.subclasses = [Subclass1(), Subclass2(), Subclass3()]
def process(self):
print("Starting processing")
data = self.spark.read.option("header", "true").csv(
self.csv_path) # Read CSV with header
# Convert DataFrame to RDD for repartitioning
split_data = data.rdd.repartition(self.num_chunks)
# AT THIS POINT THE PROGRAM CRASHED
split_data.foreachPartition(self.process_chunk_iterator)
def process_chunk_iterator(self, iterator):
dataframe = self.spark.createDataFrame(
iterator) # Create DataFrame from iterator
for subclass in self.subclasses:
# Call process_chunk on each subclass
subclass.process_chunk(dataframe)
Create a SparkSession
spark = SparkSession.builder.getOrCreate()
Define the CSV file path
csv_path = r"C:\Users\DELL\IdeaProjects\Metaverse\Workshops\Mr-Omar\python_challenges\python_challenge_2\input\data.csv"
Create an instance of CsvSplitterProcessor
processor = CsvSplitterProcessor(spark, csv_path, 3)
Start the processing
processor.process()
Stop the SparkSession
spark.stop()
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
Thanks
I past the code at the provided website
I think I have a problem in the installation
cuz I tried the same logic on spark with scala programming language
and it's work
I think this image could help in understaniding !
I passed my code here
def process_chunk_iterator(self, iterator):
spark = SparkSession.builder.getOrCreate()
dataframe = spark.createDataFrame(iterator)
for subclass in self.subclasses:
subclass.process_chunk(dataframe)
spark.stop()
maybe a temporary fix could be to create a new spark context for each chunk seems to be a thing
^ this is a chatgpt answer since i couldn't find anything else on stack overflow for now i'm not sure if its even right at all
I even try to just print a text to check of the method body executed or not, but no text get printed
but thanks man
https://github.com/maxpumperla/elephas/issues/47#issuecomment-409856830 this seems related too
Sโgotcha
Me Profile on Spotify - https://open.spotify.com/artist/0hQBkU2vuMYXucmd89JUSw?si=JA77npD1QTWbSaUr89c0sQ&dl_branch=1
Itunes/Apple Music - https://music.apple.com/au/artist/tom-cardy/1528272037
Bandcamp - https://tomcardy.bandcamp.com/album/artificial-intelligence
the error is here though and it is most likely just that function contains a SparkSession reference when pyspark wants to pickle it
Aaah
i've watched it twice and i follow the manga ๐ altho i'm behind on manga now
Co-worker is here, so back to type only
You're not wrong
I have a YubiKey
Does that count?
It counts
Finally I get the permission to speak ๐
Welcome to the party
In and oot?
HA
Back in my day....
Too many Warheads?
How
How is it worse than microwaving your tongue
Jeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeesus
Fuckin' hell
Cleanest intestines they'd ever seen
@desert vector That's not how you bleach an asshole
You took the long way around
the dumbest thing i've done in my life is just sticking my finger into a spinning ceiling fan and luckily nothing happened other than it hurt for a bit (don't do it tho)
That's absolutely incredible
Oh yeah that could be bad
Depending on what the blades are made off
I've done it a lot
Stretched to put a shirt on then -THUTHMPTHMPTHMP-
Hell yeah
Those HURT
Even the plastic blades
Those fucking hurt
Just your pride
Fair
Not since.... the incident
Oh actually that's really annoying. When you bump the fan and all the dust just leaps off it
HA
no
PEP 8 is the official style guide for Python. It includes comprehensive guidelines for code formatting, variable naming, and making your code easy to read. Professional Python developers are usually required to follow the guidelines, and will often use code-linters like flake8 to verify that the code they're writing complies with the style guide.
More information:
- PEP 8 document
- Our PEP 8 song! :notes:
If you're not looking for it...
It's why he has the big beard
Compensation
(I'm kidding, I love you Lemon)
My facial hair and hair hair is hideous right now
I keep saying I need to shave it all, but it keeps getting cold
It was like... -2 C this morning
My mustache keeps stealing my drinks
It does
Yeah but like
Effort
It is when you're laz- oh right if you're going to put effort into it
"Behold, I have cut it into the form of a dolphin!"
My beard is too patchy
Like on my cheeks, I've got the mutton chop line and that's pretty much it
Then it's all neckbeard, mustache, and goatee
Pingora?
A library for building fast, reliable and evolvable network services. - cloudflare/pingora
Ping or a....
Rust is growing on me for sure
I should probably have that looked at...
Yeah
I'm like the Cyber Truck
Is he buff?
Or does he buff?
"Much more liked" 
WOW that looks terrible

That emote did
So god damn small you couldn't tell what it was
Dude.... I swear to god.
"Hey can you get these folks the new login information for the Portal? They should already be in there."
"I'm not seeing them under that name."
"Oh they're under a completely different name"
Like
How was I supposed to know that, boss
is there anyone here that can help me with my code?
well i dont rlly need help
just like
making it look neater
where the Om go?
No idea, I'm not all seeing
?
this theres loads of spaces (which is neeeded) but i feel like i can change that?
this is how it looks rn
actually now i just feel dumb because you said impotent and omnipotent has m before
Out of curiosity, has the Om yet been appropriated by any math discipline?
Academics need more symbols.
๐ฅ
Thank you, I'll be here all week. Don't forget to tip your waitress
Flower, is the stone in your avatar AI gen'd or is it a specific kind?
Koltin is an enhanced version of java
Can anyone guide me through learning process
@desert vector It's not as groovy as the name implies
Just getting started in Python or how do you mean
@desert vector It's just.....
Fugly
Just getting started in python
Aiming to Data Science
Do you have programming experience?
It's AI generated.
The name is a translation of a surname in my family tree, and, not seeing an immediate explanation for the name, I thought it should be a thing.
Or are you coming in fresh
Total Novice
Excellent, you're my favorite kinds. Not preconceived notions about stuff
Practical data skills you can apply immediately: that's what you'll learn in these no-cost courses. They're the fastest (and most fun) way to become a data scientist or improve your current skills.
100% free
Contains everything ??
I revised the link
not sure and idk how that'd be taken considering games which use our gods as characters still get sued every now and then
There are a bunch of courses, start at the top
There's still hope for me then ๐ฅฒ
They'd still want you to get your basics, though
You're not going to get an internship if you can't even assign a variable
Is there any prerequisite ?? Or
any way to get my base and fundamentals strong
I live in tutorial hell
Project work is a great way to learn
i recently was teaching a friend pandas and we started from learning numpy and pandas and ended up going through part of numpy's source code....
It contains everything needed to get into Python and data science.
You've described the last 6 years of me futzing with programming
The number of languages I've hopped around between just to try them and frameworks...
Thanks, also I was wondering how to get started with
Learning and Practicing ratio
Like 50:50 or 80:20
!resources But for beginners, what Mindful posted with the Python tutorial is good. We've also got a bunch of stuff listed on our site. I typically recommend "A Byte of Python"
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Learning and practice should be hand in hand as you go along
As you're learning, you should be playing with the concepts you just learned, fiddle with them to get a stronger understanding of them
Wonder if they can do something different, searching to see if that thing exists, etc.
can't relate there hemlock, i definitely only have 1 language i code in
i've still never had a donut, i've gone to dunkin, bought coffee and got out many times tho
Or house chores. "Gotta take out the trash, but the cabinet drawer where the trash bags are is squeaky, but the utility closet light is going out...."
@long nimbus I can't remember the last time big-endian and little-endian has actually come up while coding
Okay Got it, just last question here
I was wondering which path will be best
I'm a core gamer and went through a documentation about how to be a Data Scientist
Now, I have set my goal as a Data Scientist. Is it worth to Try or I should hammer my way through it
Fair.
Oh yeah, that's a beginner's trap
But that's something you do once or twice and then don't do again
But they handle the function - exactly
AH, I found the stone I was thinking of
I doubt it
Desert Rose
i just try to go low level in things because i enjoy programming and i enjoy finding how things work and manipulating them
don't think i would if i just wanted to learn for work, just learn basics like some dsa, reference vs value, and basic search algorithms i feel like are required alot of times and then anything specific to the field you're doing
Sure
We'll go with that
I got it
HA
We're not that far off, you geezer
You said 36?
Yeah, only a 2 year gap
By your Quote
Is DSA necessary ??
its pretty useful, for example even in data science if you're using pandas / numpy you are using arrays at the very least
I love how easy it is to remember my age
nothing advanced but you should know the basics is how i feel
Born in Jan of '90. So just add 10 to the year
Yep
So I'm currently 2034 years old
โค๏ธ
@desert vector You came in muffled
Okay Great, Thanks for guidance everyone here.
I'm gonna go start on it.
O_O 1090?
Not as cool as you would think
Thanks JavaScript
True
Especially if you're me and easily distracted, so that you manage like... 10 lines at a time
Thank god I'm just a hobbyist
guys im confused
@desert vector Do you want to help me make a misogynist mobile OS? We can call it Mandroid
hemlock question
in javascript what does
2 + "4" evaluate to? xD
the code is the same but the output isnt
Nice to meet you confused, I'm dad
I'm a terrible person
on the balanceboost bit
no xD its based on right side so "24"
lol
because javascript was made in 10 days
Yeah, fair play to them
now guess 2 + + "4"
6
shenanigans abound
Yeah that one I knew for some reason
probably because you PoE'd the rest of them...
Pieces o' Eight
fun javascript stuff
Like an x y problem?
We all did dumb shit initially
Just have to be patient, remember what it was like when we started out
that's why i burn old projects ๐ so i never had to look back at them
it has to be in a nested scope i think
guys why is this happening? the code is the same but the output is being put differently
wait
it fixes after an upgrade
PFFFFFF
Or dealing with tiny gui setups
God I don't know what I would do if Python didn't have partials....
!e
def print_foo():
text = "foo"
def nested_edit():
nonlocal text
text = "bar"
nested_edit()
print(text)
print_foo()
@woeful salmon :white_check_mark: Your 3.12 eval job has completed with return code 0.
bar
whats partials
!d functools.partial
functools.partial(func, /, *args, **keywords)```
Return a new [partial object](https://docs.python.org/3/library/functools.html#partial-objects) which when called will behave like *func* called with the positional arguments *args* and keyword arguments *keywords*. If more arguments are supplied to the call, they are appended to *args*. If additional keyword arguments are supplied, they extend and override *keywords*. Roughly equivalent to:
```py
def partial(func, /, *args, **keywords):
def newfunc(*fargs, **fkeywords):
newkeywords = {**keywords, **fkeywords}
return func(*args, *fargs, **newkeywords)
newfunc.func = func
newfunc.args = args
newfunc.keywords = keywords
return newfunc
Partials are like... so functions have parameters:
def ham(bacon, pork):
pass
With a partial, you can prep the function so that you already have one of those parameters already set
So that you'd only have to pass in one other argument
It's really really handy in GUI stuff
@rugged root ๐
How are you
!e
from functools import partial
def add(x, y):
return x + y
add_5 = partial(add, 5)
print(add_5(10))
@woeful salmon :white_check_mark: Your 3.12 eval job has completed with return code 0.
15
partial my beloved
btw my d key's keycap is broken rn xD i'm somehow typing while also trying to keep it from falling off
That's always a rough battle
it randomly broke 2 days ago and i've been lazy to get it replaced
2 hour drive to closest service center
the cap is
Cracked or not repairable
but its a laptop keyboard so the hook that keeps it connected to the plastic part under is broken
@long nimbus Diogenes? Just leaping nude into a barrel filled with your own waste?
diogenes is my guy
hemlock can u help me plz
these need to look like in order (balance boost bit) for example
+0
+0
x0
but instead there like
+0
+0
x0
if u get me
you can calculate widths in advance or use an existing package for it
it has some
nope i wanna be a game developer
like strict/optional quotes
and also help ppl w databases
Right but not for output
??
Rich lets you do tables pretty easily.
https://rich.readthedocs.io/en/stable/tables.html
that why i doin gsce computer science
@long nimbus Anywhere near Missouri?
how do i fix it hemlock
My dad is from a small town in Missouri.
Oh sick. I'm over here in Springfield
Which one
There's a lot of them
Ohhhh no
There's dozens
That is a neat place
I lived in Amarillo, Texas for a few years
Really cool areas around there
Ye
It's a city in the panhandle area
True
I'll look when I can, I'm bouncing back and forth between here and work, sorry
@long nimbus It's like a turntable that's slowing down
I never thought of that
tongue also drifts more to the front
Same
Oh you mean with the accent
Correct
Likely you would need to be a naturalized citizen at the very least
Yeah
He was naturalized
I could see it being must be naturalized and live here for 15 years at least
Or something
Who knows what the actual law would end up being, though
Understandably
"well here it's not limited to those born in the country, but instead a specific city, SPB"
That tracks
It's pretty inflated
At least the name brands are
Generics are typically afforableish
"Do you have your claim chech?"
Thought it was the state I'm sure
Just keep annexing things to be in Europe
I doubt I can name any other than Grozny
I don't think I can name... any of them
Never really learned about that region of the world
It's not taught a lot here
I am
Ehhh
I looked at other cities' names, I don't recognise any of them
It feels like the most we're taught about Europe are the various aspects of WWII
huh
new error
The speech bubble is displeased
Jack shit. I was terrible in history
History, geography, social studies, all of those were my worst subjects
Oh and English because I hated writing book reports
@potent sable Were you still having troubles with the alignment?
yep
i should have visited bletchley park when i was in uk.. should have seen the computer that alan turing worked on.. missed an opportunity to that mechanical monstrosity in person
pandas might align
Fashionists
You can use a format specifier with your f-string to position it f"{thing:<10}" will left align up to 10 chars
@molten pewter Sup
Sup
okay
!e
data = {
"headers": ["Name", "Age", "Decimal", "Boolean"],
"rows": [
["Hemlock", 34, 1.55, "True"],
["AnnoyingOrange", 20, 1.2, "False"],
["Mindful Dev", 35, 1.8074, "True"]
]
}
print("_" * 80)
for header in data['headers']:
print(f"{header:<20}", end="")
print()
print("-" * 80)
for row in data['rows']:
print(f"{row[0]:<20}{row[1]:<20}{row[2]:<20}{row[3]:<20}")
print("-" * 80)
@potent sable
and it can be dynamic instead of just 10
@wind raptor :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | ________________________________________________________________________________
002 | Name Age Decimal Boolean
003 | --------------------------------------------------------------------------------
004 | Hemlock 34 1.55 True
005 | AnnoyingOrange 20 1.2 False
006 | Mindful Dev 35 1.8074 True
007 | --------------------------------------------------------------------------------
https://pyformat.info/ Anything listed as "new style" can also be done using f-strings
thats how i want mine
There might be one or two that aren't
But it's easier just to use a library
!e
n = 10
print(f"[{123:{n}}]")
@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.
[ 123]
Tabular? Is that one?
Tabulate maybe... i know there's a library that makes it dirt simple
I suggested rich tables: https://rich.readthedocs.io/en/stable/tables.html
super easy to use
Looooooooot of Kim as a last name
@molten pewter What last name would you choose for yourself then?
Speaking of names....
Yes, that is his legitimate, legal name
californian?
Nope
He's here in Springfield. It's a short enough article
I choose the last name Smash-o-Tron-5000
numbers would be too much like "We", the book
name โ
identifier โ
I've considered changing my surname to my screenname (because it actually is a family name)
uuid v4
That'd be cool
Very hippie, though
Fair
Translate it and it makes more sense.
"Sorry, I only sign my name in binary. You're going to be here a while."
or hash of ancestors' and older siblings' names
@chilly parcel Welcome back
thanks
@hallow warren Sup
md5 hash?
Last name collision
plausible.. since lots of people have same last names
"Stay fresh, cheese bags" then just leave
@wind raptor i made it work but now theres another issue, it dosent re-print when i delete the output to print everythin again
It happens
argon2id or equivalent so can't reverse as fast even if you have the list of all people
(with salt being first name)
Salt is a strong first name
Your indentation is wrong I think
42 through 44 need to be indented once
So that they're in the Prints() codeblock
At the same time, people can have weird names and you can get used to them.
"Cave Johnson".
os.system("clear") will always remind me of the fact that os.system("") is an actual meaningful piece of code
Buddy of mine was doing data entry and came across the name "Candy Beaver". I kid you not
(that for some reason enables ANSI sequences)
that's a stage name
This is news for me
Same
We've got a good crew
And we keep growing
Oh yeah, our regulars are great
They're our eyes and ears
And those who aren't get shot out of a cannon into the sun
Is it 1 n or 2?
I can never remember
...why would her parents do that?
Gotta code today so naturally I thought what's more conducive to coding than listening to Python voice chat
Brother also went to school with a "Justin Case"
huh
eastern languages don't have cases
it saved me cus i need to delete the output or itll just print like millions of prints so ya
is there a way to open cmd/powershell not through windows terminal without changing settings?
well maybe.. malay and bahasa indonesia have cases.. but only because they adopted the latin script after colonization.. in jawi, they didn't have casing
and the rest of the languages in the east don't have separate cases, everything in the same case.
there is a thing that makes both open windows terminal
no idea what is happening here
Yeah let me double check something
I'll just try in PyCharm
hemlock my brain is gunna melt plz help xd
Step through each line one at a time
Look at what each step is doing. You'll see it
I believe in you
i think i alrdy do
Which part isn't working
Reprinting what specifically
I do
thats the data thing
Oh unindent 43 and 44
huh
You had those loops nested
Fair enough
Oh, I was just using that data part for the demo, You'd just use whatever format your data is currently in
what loops?
The for loops you have on 40 and 43
eh kind of better
The indentation dictates what a line of code is in
have someone used edgedb with python yet?
I feel like someone mentioned it at one point but I haven't looked further than that
having to use paint because the code isn't in text
almost there
def Prints():
os.system("clear")
print("")
print("Balance:",round(Balance,2))
print("You Get",round(BalanceBoost,2),"Balance A Sec \n")
print(Seperator)
for header in data['headers']:
print(f"{header:<5}", end="")
print()
print(Seperator)
for row in data['rows']:
print(f"{row[0]:<5}{row[1]:<10}{row[2]:<5}")``` @vocal basin
outdent print()
The bad kind of communism
wdym
LETSS GOOO
Lookin' good
naw ive improved in my codin skills alot in the past week
thanks to this server
:D
@whole bear Makes sense
learned stuff i never knew existed
"to each according to his needs" - that's the central tenet of communism
As much as I hate to say it "might makes right". You can make legislation, a policy, a movement, but unless you have some way to fight for it to ensure it sticks around and people follow it, it will fall apart
how would i make a suffex system
so like if a value gets to lets say 2421 it changes to 2.42k
@whole bear Your English is pretty good.
You'll get more confident as you hang out with us
i wonder how much of that is applicable to the black civil rights movement in the us and the abolishment of apartheid in south africa
"There is no revolution without blood". I feel like I've read that somewhere...
If there is a power stronger than you trying to push you down, words alone are often not enough
Yeah thats my problem with comunism
It's not just a communist issue
That's attempting to overturn any kind of primary government system
Haskell is my governmental system, where there is no state
Only the Cabal
FOSS
GitHub is a socialist state
"Fair"
You know it's crazy how often communism gets brought up here
It's like... at least once a week
There are a number of States that claim to be communist, The Communist Chinese Party CCP
It
It's crazy how often Capitalism and Democracy gets brought up here, it's like... at least once a week
@gentle flint๐
Hey Oof
I also cup
I'm just happy to be noticed
So thats what we aiming for?
Just never breaking eye contact
@desert vector Halp. The monster and the coffee are fighting for dominance
I thought dictatorship would nullify any democratic aspect
Because at any time they can be like "nah"
I'll be back later
It..
Yes
That's the definitions
Oligarchy is a group of elites (wealthy families or other rich high society folks) that control the government and all aspects surrounding it
Yep
A Dictatorship is specifically one person controlling it
guys how do i make this update? otherwise it keeps old value and dosent update the text
can I get tickets to this exhibition match, or are they sold out
gtg
You know for the longest time I thought it was "paper view" instead of "pay-per-view"
Wanna chess?
then I'm like "who's gonna sign it? is there some paper view authority?"
do they have a number?
like-
beyond lost ๐ญ
Imma go anyways i dont wanna listen to someone defendig the system that killed my ancestors for genes. See yall next time
Copying Mindful dev eh?
I don't think anyone is defending a position? Were they? I may have phased out
I thought it was just about the specifics of it
@earnest crow Apologies if I missed that
I say it from time to time as well
We both got it from our British friends
Anyone down for chess btw?
Cheeki and Alex? ๐
And Griff and many others
?????
@whole bear background noise ๐
thanks
Hello
Sorry your audio quality is really bad
I can't really hear what you're saying
Yeah better
lol
Nope ๐
Yeah they hand them out
If you don't manage to find one
Spouses that is
does one get to choose or is it by prng?
I think because we are dealing with quantum entanglement, we get true rng
that reminds me i need to cancel a subscription service
I think you kind of just get on with it ยฏ_(ใ)_/ยฏ
smh
Wait did I get dragged up a channel?
I can code it incorrectly I never learned them
++C
I type all the right characters, just not necessarily in the right order
I'm probably only like.... 5 monkeys with typewriters and the ink ribbons are running dry
which version of C++ are you working with?
I think C++ 13 or 14
14 then
@molten pewter Huh, I didn't even know that was a thing
I know a bit of C
Nice
14 is where smart pointers were introduced, so that makes many things easier
Can you C yourself learning C in the future?
For god's sake use them
Yea i use this one
Use smart pointers
I use 14 then
This is what the C++ creator is talking about when they say the memory safety is already partially in the language
Just that enough people aren't using it
heres what i make
Oh that's gold
i can do print("Some string idk");
@rugged tundra Sure, right
do you know the difference between std::endl and '\n'?
it might matter for whatever you're doing
or it might not
@whole bear You got this
one flushes the toilet?
not realy i use '\n'
@rugged tundra Funeral
can you assign int to a double?
std::endl causes the stream to flush, so if you don't see the output it might be the cause
"Hey.... so I see you're single now."
implicitly casted, I think
Does C++ have inferred typing?
Oh right
do you can help me i want to bring as much python functions arrays and others into a new C or C++ lib
and others
ik my english very bad
python doesn't have arrays
there are ways to call Python from C/C++ and vice versa
depends on what "array" means
It does, saz
!d array broken
i see you're from the javascript crowd
Bruh (Array = [])
@rugged tundra I didn't get married until I was 28
no
that's a list not an array
My wife was 39
(I don't have the `no' blob emoji that Rabbit uses but it'd fit)
!d array
This module defines an object type which can compactly represent an array of basic values: characters, integers, floating point numbers. Arrays are sequence types and behave very much like lists, except that the type of objects stored in them is constrained. The type is specified at object creation time by using a type code, which is a single character. The following type codes are defined: