#voice-chat-text-0

1 messages ยท Page 277 of 1

stuck furnace
#

I use Edge now. There was a reason I switched from Firefox, but I can't remember ๐Ÿ˜„

potent sable
#

but it dont display it

stuck furnace
#

Microsoft products are ok if you can dodge all the dark patterns

stuck furnace
potent sable
#

?

long nimbus
stuck furnace
#

nvm ๐Ÿ˜„

potent sable
#
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

amber raptor
verbal zenith
#

quit doing mutation assignment and you'll fix your problem

verbal zenith
#
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
grave ether
#

hello

potent sable
#

i dont get it

grave ether
#

i need some help becouse i cant open my tool

verbal zenith
#

!e

x = 2
y = 2

x *= 0.5
y = int(y * 0.5)
print(x,y)
wise cargoBOT
#

@verbal zenith :white_check_mark: Your 3.12 eval job has completed with return code 0.

1.0 1
potent sable
#

i want it to be a float

verbal zenith
#

you want WHAT to be a float

#

the cost or the multi

potent sable
#

the multi

#

cus otherwise itll go to 2

#

and its not even displaying the boost for some reason

verbal zenith
#

you aren't understanding

#

I will try one more time

grave ether
#

i need some help becouse i cant open my tool

potent sable
#

it needs to be a float not int

amber raptor
verbal zenith
#

!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)
wise cargoBOT
#

@verbal zenith :white_check_mark: Your 3.12 eval job has completed with return code 0.

3.0 3
potent sable
#

if i do the first one haven the error is still there

#

look

verbal zenith
#

That's the point

#

The second is correct

potent sable
#

balance boost needs to be a float

stuck furnace
potent sable
#

i have

stuck furnace
# potent sable i have

Perhaps make a new post and summarise where you've got up to so far, and the problem you're currently having.

verbal zenith
#
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)
amber raptor
#

Let the database cache

potent sable
#

and even if i do what ur sayin

#

it breaks my printing system where it shows how much i get a sec

amber raptor
verbal zenith
#

Then you're doing it wrong.

potent sable
amber raptor
stuck furnace
#

ยฏ_(ใƒ„)_/ยฏ

#

Machine take money and give dopamine

stuck furnace
#

Hello ๐Ÿ‘€

#

Oh yeah sorry I thought you asked that but wasn't sure.

#

Errrm, not currently lemon_sweat

#

Whatchu typing Terror? ๐Ÿ‘€

cloud sphinx
#

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...

amber raptor
peak siren
stuck furnace
#

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.

amber raptor
#

maybe they cheated you, maybe they didn't, maybe they gave you wrong code

cloud sphinx
#

The point I'm making is in the chat above and this one.. the imediate reaction is to flaming me

peak siren
grim solar
#

anyone know a good place to learn AI programming?

#

Like to program the AI itself.

cloud sphinx
#

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

peak siren
rugged root
#

Gotcha gotcha

willow light
#

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."

stuck furnace
willow light
#

Looking back through these messages...don't make me tap the sign: Slurs are unacceptable no matter what. Do not use them.

cloud sphinx
#

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..

rugged root
#

I assure you it was coincidental

willow light
#

we generally avoid python-discussion in here

stuck furnace
#

Sometimes they're...

#

Yeah what Rabbit said

#

First rule of voice chat

rugged root
#

First rule of voice chat is to... talk?

stuck furnace
#

Come to ookay

#

Cya Haven ๐Ÿ‘‹

verbal zenith
cloud sphinx
#

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

rugged root
#

To each their own

gentle flint
willow light
#

I mean that's an accurate statement. Microsoft Java does have some good parts.

rugged root
#

And game dev isn't really Python's strong suit

#

Right tool, right job

stuck furnace
#

They're not made out of asbestos are they? ๐Ÿ˜„

willow light
#

We tried asbestos we could to get rid of it all

cloud sphinx
willow light
#

All six of them

stuck furnace
#

Yeah it's good as a glue language (Python that is)

cloud sphinx
#

ewwww lua XD looks like puke doesn't seem clean when written XD

#

but you are right ... its overhead is extremely minimal

amber raptor
stuck furnace
amber raptor
#

but it's not more fluid

willow light
#

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

amber raptor
#

Object reference not set to an instance of an object.

cloud sphinx
stuck furnace
#

I actually did use python for a robotics project at university ๐Ÿ‘€

cloud sphinx
#

I've mainly used python for arduino related projects....

stuck furnace
#

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.

willow light
#

It is quick to pick up.

cloud sphinx
#

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...

stuck furnace
#

I love raw cauliflower stalk ๐Ÿ˜„

#

It's great

#

Makes your breath smell though

willow light
stuck furnace
#

Broccoli is ok

willow light
#

I usually top my salads with slivered almonds and whatever berries are discounted that week.

stuck furnace
#

There are hills in NL ๐Ÿค”

willow light
stuck furnace
#

Alright not server appropriate

upper basin
#

It's so hard to get a word in hehe.

#

Greetings everyone

stuck furnace
whole bear
#

@graceful kelp๐Ÿ‘‹

willow light
#

An idea: every thirty minutes your voice call is interrupted with political campaign ads but only in locations other than where the user lives.

rugged root
#

Crap, back later

stuck furnace
#

I can hear you!

#

But I'm focussed on something else. Maybe plome is afk

#

That's my name ๐Ÿ˜„

#

Yeah one sec

#

!stream 717749310518722691

wise cargoBOT
#

โœ… @whole bear can now stream until <t:1710787339:f>.

stuck furnace
#

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 ๐Ÿ‘‹

whole bear
#

Hello

silent fox
#

Hello

#

Does anyone want to become my dev for free

#

For like Wofs and Cheese

golden delta
#

@versed heath you guys german?

#

yes

#

im also german

#

@gentle flint

short owl
#

so is RUST faster ?

somber heath
#

@whole bear cease your destructive ways for a moment?

waxen loom
#

Does anyone here know how to use Patsy, pygam and sklearn? I have a coding problem

wind raptor
#

!paste

wise cargoBOT
#
Pasting large amounts of code

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.

waxen loom
#

TypeError: Field elements must be 2- or 3-tuples, got ''numerical''

heady minnow
#

connection issues sorry

cinder crown
#

Search up some SPECIALIZATION courses on Coursera to get started

#

what is the answer?

lavish rover
cinder crown
#

lemme go through it again

lavish rover
#

updating the default argument will keep the changes on subsequent calls

wind raptor
#

!stream 216540595403882496

wise cargoBOT
#

โœ… @ionic jacinth can now stream until <t:1710807763:f>.

wind raptor
#

!stream 216540595403882496 1h

wise cargoBOT
#

โœ… @ionic jacinth can now stream until <t:1710811726:f>.

shrewd ibex
#

chatgpt leads me in the wrong direction

wind raptor
#

!stream 626237757647355904

wise cargoBOT
#

โœ… @green fable can now stream until <t:1710809060:f>.

wind raptor
wind raptor
#

!stream 223849433614385153

wise cargoBOT
#

โœ… @waxen loom can now stream until <t:1710810203:f>.

wind raptor
#

!steam 605393032929607683

#

!stream 605393032929607683

wise cargoBOT
#

โœ… @haughty sonnet can now stream until <t:1710810536:f>.

whole bear
#

@warm iron๐Ÿ‘‹

somber heath
#

@whole bear ๐Ÿ‘‹

whole bear
green fable
woven quest
#

๐Ÿ‘๐Ÿฟ

whole bear
#

hey

somber heath
#

@cinder crown ๐Ÿ‘‹

cinder crown
#

@somber heath hi

#

Can i get voice chat perms?

somber heath
somber heath
#

@whole patio ๐Ÿ‘‹

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

coarse remnant
#

Oni San

whole patio
#

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

somber heath
#

!rule 9

wise cargoBOT
#

9. Do not offer or ask for paid work of any kind.

whole patio
#

Got it

#

Memorized the rule #admin

#

Ill be back after some days

somber heath
#

@dull pumice ๐Ÿ‘‹

whole bear
#

who is @haughty sonnet ?

somber heath
#

@haughty sonnet Desist from your singing.

whole bear
#

are you from india?

somber heath
#

It's intentionally bad and intended to annoy.

haughty sonnet
#

@somber heath im done

somber heath
#

@gritty hound ๐Ÿ‘‹

still zodiac
#

hi

#

i am not able to speak idk why

somber heath
still zodiac
#

how can i verify my voice

#

ok i'll come

gritty hound
#

yes

gritty hound
rapid chasm
#

Man sometimes I just love country

rapid chasm
olive fjord
#

hello who want help me i want to make a Py To C libarie

rugged root
#

Back in a sec, getting coffee

rugged root
sweet lodge
#

"I have something for this"

gentle flint
rugged root
#

I like the last one

sweet lodge
gentle flint
rugged root
#

HA

peak depot
#

Hemlock, ironically Iยดm on the line for the tax office...

karmic elk
gentle flint
#

I am mystifying my colleagues

#

at least 5 people have dropped by so far to gaze curiously upon the packages

lucid blade
stark river
#

C++ ๐Ÿซถ

#

if you really wanted safety you would have the balls to drop javascript

stuck furnace
stuck furnace
#

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.

karmic elk
stuck furnace
#

But both pieces of C++ software were more mature so ๐Ÿคทโ€โ™‚๏ธ

rugged root
#

I have yet to have that issue with the Sublime Text version of Rust Analyzer

stuck furnace
rugged root
#

I doubt it

stuck furnace
#

Yeah

woeful salmon
#

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

peak depot
woeful salmon
#

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

rugged root
#

Never heard of ripgrep

woeful salmon
#

its also available on winget as BurntSushi.ripgrep.MSVC xD funny it ends with MicroSoft Visual C

#

but its made in rust

stuck furnace
#

๐Ÿ˜ฌ

rugged root
#

Honestly, winget has grown on me a lot

peak depot
woeful salmon
#

my last nokia was
Nokia 108 Dual SIM

#

and my first too.. it was the only one i owned

amber raptor
#

our oncall phone couple of jobs ago

rugged root
#

'uge

woeful salmon
#

i think either this or a very similar samsung model was my first smartphone

whole bear
#

Nokia 6800 was OP

woeful salmon
#

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

whole bear
#

@desert vector๐Ÿ‘‹

unique reef
#

Hello

#

guys

unique reef
#

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

rugged root
#

Glad to have you

unique reef
#

thanks

#

a long error message

#

thanks in advance guys

rugged root
#

I'll start hunting

unique reef
#

###################################################################################

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()

rugged root
#

!paste

wise cargoBOT
#
Pasting large amounts of code

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.

unique reef
#

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

woeful salmon
#
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

unique reef
#

this is the description of what the script should do

unique reef
#

but thanks man

woeful salmon
#

the error is here though and it is most likely just that function contains a SparkSession reference when pyspark wants to pickle it

unique reef
#

Aaah

sacred fog
#

@whole bear yes

#

yoo

#

whats good

#

why?

woeful salmon
#

i've watched it twice and i follow the manga ๐Ÿ˜„ altho i'm behind on manga now

sacred fog
#

heh?

#

i see

rugged root
#

Co-worker is here, so back to type only

#

You're not wrong

#

I have a YubiKey

#

Does that count?

#

It counts

unique reef
#

Finally I get the permission to speak ๐Ÿ™‚

woeful salmon
#

nice ๐Ÿ˜ฎ

#

congratz

rugged root
#

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

woeful salmon
#

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)

rugged root
#

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

rugged root
#

@wind raptor You've seen Lemon's hand, right?

#

Dude still types like a demon

wind raptor
#

no

rugged root
#

One of his hands didn't form properly when he was born (if memory serves)

#

!pep8

wise cargoBOT
#
PEP 8

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:

rugged root
#

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?

woeful salmon
rugged root
#

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" doubt

#

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

potent sable
#

is there anyone here that can help me with my code?

#

well i dont rlly need help

#

just like

#

making it look neater

rugged root
#

Impotent? Yeah probably

#

Sorry, there's added context in VC, orange

woeful salmon
#

where the Om go?

rugged root
woeful salmon
potent sable
#

this theres loads of spaces (which is neeeded) but i feel like i can change that?

#

this is how it looks rn

rugged root
#

True

#

Man it has just been raid city lately

woeful salmon
# rugged root True

actually now i just feel dumb because you said impotent and omnipotent has m before

long nimbus
# woeful salmon ?

Out of curiosity, has the Om yet been appropriated by any math discipline?

#

Academics need more symbols.

rugged root
#

Electronics

#

Although that's Ohm....

#

@versed heath Yo

long nimbus
rugged root
#

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?

unique reef
#

Koltin is an enhanced version of java

tepid abyss
#

Can anyone guide me through learning process

rugged root
#

@desert vector It's not as groovy as the name implies

rugged root
#

@desert vector It's just.....

#

Fugly

tepid abyss
rugged root
#

Do you have programming experience?

long nimbus
rugged root
#

Or are you coming in fresh

tepid abyss
rugged root
#

Excellent, you're my favorite kinds. Not preconceived notions about stuff

wind raptor
#

100% free

tepid abyss
wind raptor
#

I revised the link

woeful salmon
wind raptor
#

There are a bunch of courses, start at the top

rugged root
#

Still gotta get your fundamentals, though

#

Preach it

stuck furnace
#

There's still hope for me then ๐Ÿฅฒ

rugged root
#

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

tepid abyss
#

Is there any prerequisite ?? Or
any way to get my base and fundamentals strong

rugged root
#

I live in tutorial hell

stuck furnace
#

Project work is a great way to learn

woeful salmon
rugged root
#

HA

#

That's a new term, I hadn't heard that one before

wind raptor
rugged root
#

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...

tepid abyss
rugged root
#

!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"

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

rugged root
#

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.

woeful salmon
rugged root
#

HA

#

Donuts are anytime food

#

I've heard the phrase, can't remember what it means

woeful salmon
#

i've still never had a donut, i've gone to dunkin, bought coffee and got out many times tho

rugged root
#

Ohhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

#

Yeah, I know what you mean

long nimbus
rugged root
#

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

tepid abyss
#

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

rugged root
#

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

woeful salmon
#

pithink 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

rugged root
#

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

tepid abyss
woeful salmon
#

its pretty useful, for example even in data science if you're using pandas / numpy you are using arrays at the very least

rugged root
#

I love how easy it is to remember my age

woeful salmon
#

nothing advanced but you should know the basics is how i feel

rugged root
#

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

tepid abyss
#

Okay Great, Thanks for guidance everyone here.

I'm gonna go start on it.

woeful salmon
rugged root
#

Not as cool as you would think

rugged root
#

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

potent sable
#

guys im confused

rugged root
#

@desert vector Do you want to help me make a misogynist mobile OS? We can call it Mandroid

woeful salmon
potent sable
#

the code is the same but the output isnt

wind raptor
rugged root
#

I'm a terrible person

potent sable
#

on the balanceboost bit

rugged root
#

@woeful salmon It's based on left hand so 6?

#

I think that's right

woeful salmon
#

lol

rugged root
#

WHY is it based on right

#

How drunk were the JS folks...

woeful salmon
#

because javascript was made in 10 days

rugged root
#

Yeah, fair play to them

woeful salmon
#

now guess 2 + + "4"

rugged root
#

6

woeful salmon
#

yes

#

lol

desert vector
#

shenanigans abound

rugged root
#

Yeah that one I knew for some reason

desert vector
#

probably because you PoE'd the rest of them...

rugged root
#

Pieces o' Eight

woeful salmon
#

fun javascript stuff

rugged root
#

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

woeful salmon
#

that's why i burn old projects ๐Ÿ˜„ so i never had to look back at them

rugged root
#

I keep forgetting how to properly use non-local

#

Never really comes up

woeful salmon
potent sable
#

guys why is this happening? the code is the same but the output is being put differently

#

wait

#

it fixes after an upgrade

rugged root
#

PFFFFFF

#

Or dealing with tiny gui setups

#

God I don't know what I would do if Python didn't have partials....

woeful salmon
#

!e

def print_foo():
  text = "foo"
  def nested_edit():
    nonlocal text
    text = "bar"
  nested_edit()
  print(text)
print_foo()
wise cargoBOT
#

@woeful salmon :white_check_mark: Your 3.12 eval job has completed with return code 0.

bar
potent sable
#

whats partials

woeful salmon
#

!d functools.partial

wise cargoBOT
#

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
rugged root
#

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

chilly parcel
#

@rugged root ๐Ÿ‘‹

rugged root
#

Yo Noah

#

How goes it

#

Good good

chilly parcel
rugged root
#

Hanging in there

#

Tired

#

So par for the course

woeful salmon
#

!e

from functools import partial
def add(x, y):
  return x + y

add_5 = partial(add, 5)
print(add_5(10))
wise cargoBOT
#

@woeful salmon :white_check_mark: Your 3.12 eval job has completed with return code 0.

15
rugged root
#

Glad you caught yourself before I had to, Char

#

@whole bear

desert vector
#

partial my beloved

rugged root
#

Your impulse control is improving

#

@earnest crow Bad why?

woeful salmon
#

btw my d key's keycap is broken rn xD i'm somehow typing while also trying to keep it from falling off

rugged root
#

That's always a rough battle

woeful salmon
#

it randomly broke 2 days ago and i've been lazy to get it replaced

#

2 hour drive to closest service center

rugged root
#

That sounds so stressful

#

Is the cap itself busted or the little peg on the switch?

woeful salmon
#

the cap is

rugged root
#

Cracked or not repairable

woeful salmon
#

but its a laptop keyboard so the hook that keeps it connected to the plastic part under is broken

rugged root
#

Ohhhhh

#

Yeah

#

@earnest crow Who in the what now?

#

Yeah gotta play catchup then

woeful salmon
#

i gotta go now probably be back in a few hours

#

cya

rugged root
#

@long nimbus Diogenes? Just leaping nude into a barrel filled with your own waste?

desert vector
#

diogenes is my guy

rugged root
#

Too niche even for me

#

HA

#

That's gold

#

How do I pronounce it? Badly

potent sable
#

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

vocal basin
rugged root
#

Is this all homework?

#

@potent sable

vocal basin
#

actually
does csv align things?

#

the module

#

or can it rather

rugged root
#

Good question

#

I don't think it has any formatting

vocal basin
#

it has some

potent sable
vocal basin
#

like strict/optional quotes

potent sable
#

and also help ppl w databases

rugged root
#

Right but not for output

potent sable
wind raptor
potent sable
#

that why i doin gsce computer science

rugged root
#

@long nimbus Anywhere near Missouri?

potent sable
#

how do i fix it hemlock

long nimbus
rugged root
#

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

rugged root
#

@long nimbus It's like a turntable that's slowing down

#

I never thought of that

long nimbus
#

tongue also drifts more to the front

rugged root
#

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

vocal basin
#

"well here it's not limited to those born in the country, but instead a specific city, SPB"

rugged root
#

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

vocal basin
#

I doubt I can name any other than Grozny

rugged root
#

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

vocal basin
rugged root
#

It feels like the most we're taught about Europe are the various aspects of WWII

vocal basin
#

huh
new error

rugged root
#

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

wind raptor
#

@potent sable Were you still having troubles with the alignment?

stark river
#

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

vocal basin
rugged root
#

Fashionists

wind raptor
# potent sable yep

You can use a format specifier with your f-string to position it f"{thing:<10}" will left align up to 10 chars

rugged root
#

@molten pewter Sup

molten pewter
#

Sup

potent sable
#

okay

wind raptor
#

!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

vocal basin
#

and it can be dynamic instead of just 10

wise cargoBOT
#

@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 | --------------------------------------------------------------------------------
rugged root
rugged root
#

There might be one or two that aren't

wind raptor
#

But it's easier just to use a library

vocal basin
#

!e

n = 10
print(f"[{123:{n}}]")
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.

[       123]
rugged root
#

Tabular? Is that one?

#

Tabulate maybe... i know there's a library that makes it dirt simple

wind raptor
rugged root
#

Forgot that was a thing

#

@long nimbus Korea has a lot of that

wind raptor
#

super easy to use

rugged root
#

Looooooooot of Kim as a last name

long nimbus
#

kim, park, lee

#

for vietnam, nguyen is the big one

rugged root
#

@molten pewter What last name would you choose for yourself then?

#

Speaking of names....

#

Yes, that is his legitimate, legal name

stark river
#

californian?

rugged root
#

Nope

#

He's here in Springfield. It's a short enough article

#

I choose the last name Smash-o-Tron-5000

vocal basin
#

numbers would be too much like "We", the book

stark river
#

name โŒ
identifier โœ…

long nimbus
#

I've considered changing my surname to my screenname (because it actually is a family name)

vocal basin
#

uuid v4

rugged root
#

In a database somewhere, we are just a number

rugged root
#

Very hippie, though

#

Fair

long nimbus
rugged root
#

"Sorry, I only sign my name in binary. You're going to be here a while."

vocal basin
rugged root
#

@chilly parcel Welcome back

chilly parcel
#

thanks

rugged root
#

@hallow warren Sup

stark river
#

md5 hash?

rugged root
#

Last name collision

stark river
#

plausible.. since lots of people have same last names

rugged root
#

"Stay fresh, cheese bags" then just leave

potent sable
#

@wind raptor i made it work but now theres another issue, it dosent re-print when i delete the output to print everythin again

rugged root
#

It happens

vocal basin
#

argon2id or equivalent so can't reverse as fast even if you have the list of all people

rugged root
#

Not worth

#

Implant a yubikey into everyone

#

Problem solved

#

They're small enough

rugged root
#

Salt is a strong first name

potent sable
#

why is it above

#

its supposed to be at the bottom

rugged root
#

Your indentation is wrong I think

#

42 through 44 need to be indented once

#

So that they're in the Prints() codeblock

long nimbus
vocal basin
#

os.system("clear") will always remind me of the fact that os.system("") is an actual meaningful piece of code

rugged root
vocal basin
stark river
#

that's a stage name

rugged root
#

Right?

#

It's great

wind raptor
rugged root
#

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

long nimbus
hallow warren
rugged root
#

HA

#

Right?

rugged root
potent sable
stark river
#

eastern languages don't have cases

potent sable
vocal basin
#

is there a way to open cmd/powershell not through windows terminal without changing settings?

rugged root
#

Without changing settings?

#

How do you mean

stark river
#

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.

rugged root
#

Ohhhhhh

#

That's... a good question

vocal basin
potent sable
#

no idea what is happening here

rugged root
vocal basin
#

I'll just try in PyCharm

potent sable
#

hemlock my brain is gunna melt plz help xd

rugged root
#

Step through each line one at a time

#

Look at what each step is doing. You'll see it

#

I believe in you

potent sable
#

i think i alrdy do

rugged root
#

Which part isn't working

potent sable
#

its reprinting for each thing

#

so like its reprinting it for each header

rugged root
#

Reprinting what specifically

potent sable
#

the upgrades

earnest crow
#

I do

potent sable
#

thats the data thing

rugged root
#

Oh unindent 43 and 44

potent sable
#

huh

vocal basin
rugged root
#

You had those loops nested

earnest crow
#

Fair enough

wind raptor
#

Oh, I was just using that data part for the demo, You'd just use whatever format your data is currently in

potent sable
rugged root
#

The for loops you have on 40 and 43

potent sable
#

eh kind of better

rugged root
#

The indentation dictates what a line of code is in

whole bear
#

have someone used edgedb with python yet?

rugged root
#

I feel like someone mentioned it at one point but I haven't looked further than that

vocal basin
#

having to use paint because the code isn't in text

potent sable
#

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
vocal basin
#

outdent print()

rugged root
#

The bad kind of communism

potent sable
vocal basin
#

print() should be after the loop not after

#

seems like

potent sable
#

where do i put it then?

#

oh wait

#

SO CLOSE

rugged root
#

But they were taking a long time. They were really Stalin

potent sable
#

LETSS GOOO

rugged root
#

Lookin' good

potent sable
#

naw ive improved in my codin skills alot in the past week

#

thanks to this server

#

:D

rugged root
#

@whole bear Makes sense

potent sable
#

learned stuff i never knew existed

stark river
#

"to each according to his needs" - that's the central tenet of communism

rugged root
#

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

potent sable
#

how would i make a suffex system

#

so like if a value gets to lets say 2421 it changes to 2.42k

rugged root
#

@whole bear Your English is pretty good.

#

You'll get more confident as you hang out with us

stark river
rugged root
#

"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

earnest crow
rugged root
#

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

molten pewter
#

There are a number of States that claim to be communist, The Communist Chinese Party CCP

#

It

rugged root
#

Teehee

#

Oh misread

#

Was thinking cpp

#

I too cpp

molten pewter
#

It's crazy how often Capitalism and Democracy gets brought up here, it's like... at least once a week

whole bear
#

@gentle flint๐Ÿ‘‹

rugged root
#

Hey Oof

molten pewter
#

I also cup

rugged root
#

I'm just happy to be noticed

earnest crow
#

So thats what we aiming for?

rugged root
#

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"

earnest crow
#

Oh well its just the majority having all pover

#

*w

gentle flint
#

I'll be back later

rugged root
#

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

earnest crow
#

Yep

rugged root
#

A Dictatorship is specifically one person controlling it

earnest crow
#

Not in the context of "dictatorship of proletariat"

#

But yeah its never gonna work

potent sable
#

guys how do i make this update? otherwise it keeps old value and dosent update the text

desert vector
earnest crow
#

gtg

rugged root
desert vector
#

SAME

#

I'm like "how do I see this on paper"

whole bear
rugged root
#

Or like "do I have to get a paper signed off on?"

#

Stratocaster?

desert vector
#

then I'm like "who's gonna sign it? is there some paper view authority?"

#

do they have a number?

#

like-

#

beyond lost ๐Ÿ˜ญ

rugged root
#

Innocent times...

#

Broman

#

The Broman gods

#

Like Broseidon

#

God of the Brocean

earnest crow
#

Imma go anyways i dont wanna listen to someone defendig the system that killed my ancestors for genes. See yall next time

rugged root
#

Cheers

#

All good

whole bear
rugged root
#

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

rugged root
#

We both got it from our British friends

earnest crow
#

Anyone down for chess btw?

whole bear
rugged root
#

And Griff and many others

stuck furnace
#

@whole bear background noise ๐Ÿ‘€

whole bear
#

thanks

stuck furnace
#

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

stark river
wind raptor
#

I think because we are dealing with quantum entanglement, we get true rng

stark river
#

that reminds me i need to cancel a subscription service

stuck furnace
#

I think you kind of just get on with it ยฏ_(ใƒ„)_/ยฏ

whole bear
#

smh

rugged root
#

Wait did I get dragged up a channel?

olive fjord
#

Who can code C or C++;

#

?

rugged root
#

I can code it incorrectly I never learned them

vocal basin
#

++C

stuck furnace
rugged root
#

I'm probably only like.... 5 monkeys with typewriters and the ink ribbons are running dry

vocal basin
olive fjord
#

I think C++ 13 or 14

vocal basin
#

14 then

rugged root
#

@molten pewter Huh, I didn't even know that was a thing

stuck furnace
olive fjord
vocal basin
#

14 is where smart pointers were introduced, so that makes many things easier

whole bear
rugged root
#

For god's sake use them

olive fjord
#

Yea i use this one

rugged root
#

Use smart pointers

rugged root
#

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

olive fjord
#

heres what i make

rugged root
#

Oh that's gold

olive fjord
rugged root
#

@rugged tundra Sure, right

vocal basin
#

it might matter for whatever you're doing

#

or it might not

rugged root
#

@whole bear You got this

stark river
olive fjord
rugged root
#

@rugged tundra Funeral

stark river
vocal basin
#

std::endl causes the stream to flush, so if you don't see the output it might be the cause

rugged root
#

"Hey.... so I see you're single now."

vocal basin
rugged root
#

Does C++ have inferred typing?

vocal basin
#

at times

#

auto

rugged root
#

Oh right

olive fjord
vocal basin
#

and others

rugged root
#

Cython

#

Honestly

olive fjord
stark river
#

python doesn't have arrays

vocal basin
#

there are ways to call Python from C/C++ and vice versa

vocal basin
rugged root
#

It does, saz

vocal basin
#

!d array broken

stark river
#

i see you're from the javascript crowd

olive fjord
#

Bruh (Array = [])

rugged root
#

@rugged tundra I didn't get married until I was 28

vocal basin
stark river
#

that's a list not an array

rugged root
#

My wife was 39

vocal basin
rugged root
wise cargoBOT
#

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:

rugged root
#

Wait no

#

Not that one, bot

#

That one