#voice-chat-text-0

1 messages ยท Page 376 of 1

crude edge
#

hello

novel topaz
#

This probably means that Tcl wasn't installed properly.

vocal basin
#

@tawdry jungle ๐Ÿ‘‹

#

a bit of it

#

mostly the language itself, not the standard library

#

I'm more aware of principles behind STL than of its contents

#

@tawdry jungle is there any specific C++ question you have?

#

^ they have exampes, and those are sometimes useful

#

I'm aware of that channel but never watched it

#

most of those are in C too (not just C++)

#

C has way less conveniences and safeguards

#

nowadays it's recommended to write code using a C++ compiler even if you intend on only using C features

#

(source: C++ Core Guidelines)

#

C++ may or may not be easier to learn initially, depends on how you learn and what approaches to code you prefer

#

C is more of a "do it yourself" language

#

and C++ gives a lot of features

#

C is smaller and simpler to learn "in full", but using C++ to get something to work is often eaier

#

I don't know how that specific tutorial is structured and what its contents are

#

there are many, many different ways to teach and learn C++

#

it will get harder later on for sure

#

after basics (pointers, primitives, simple functions), the things that are left to learn in C++ are quite complicated, compared to how those same things are in different languages

#

templates hopefully will be easy-ish to understands

cerulean minnow
#

@tawdry jungle wassup wassup

#

@vocal basin hello

vocal basin
#

templates have a somewhat unfortunate history

#

they were intended to just be a way to express genericity

#

with the idea just being:
for example,
you can have a list of ints,
you can have a list of strings,
you can have a list of bools,
why not just represent all those as a single type that is copied for each item type T?
now you can have a list of Ts

cerulean minnow
#

Are you all there?

#

Would programmers be good at cryptography?

vocal basin
#

depends on a specific programmer

vocal basin
#

@tawdry jungle you probably shouldn't concern yourself too much with all this, just learn at your own pace, use different resources and experiment

#

all that I'm writing here is just some random trivia that you can come back to later on

tawdry jungle
#

alr

#

thanks

cerulean minnow
#

@coral basin hello

#

Yes i can hear you

#

I need help lol

vocal basin
#

(I'm away making cursed tea)

#

maybe

#

too much citrus for a milk tea

#

+some honey

#

the weirdest I made was probably hibiscus tea mixed with banana-flavoured soy milk

#

it tasted good but

#

I need to find what it looked like

vocal basin
#

it's so grey

vocal basin
#

(it's actually just complete grey)

somber heath
#

@whole bear ๐Ÿ‘‹

whole bear
#

YOOO

#

what's good bro

whole bear
somber heath
#

!d list

wise cargoBOT
#

class list([iterable])```
Lists may be constructed in several ways:

โ€ข Using a pair of square brackets to denote the empty list: `[]`

โ€ข Using square brackets, separating items with commas: `[a]`, `[a, b, c]`

โ€ข Using a list comprehension: `[x for x in iterable]`

โ€ข Using the type constructor: `list()` or `list(iterable)`...
somber heath
#

!e print(dir(list))

wise cargoBOT
# somber heath !e print(dir(list))

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

['__add__', '__class__', '__class_getitem__', '__contains__', '__delattr__', '__delitem__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getstate__', '__gt__', '__hash__', '__iadd__', '__imul__', '__init__', '__init_subclass__', '__iter__', '__le__', '__len__', '__lt__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__reversed__', '__rmul__', '__setattr__', '__setitem__', '__sizeof__', '__str__', '__subclasshook__', 'append', 'clear', 'copy', 'count', 'extend', 'index', 'insert', 'pop', 'remove', 'reverse', 'sort']
vocal basin
#

.md it

#

technically, a class

#

I think

#

!e

print(reversed)
wise cargoBOT
vocal basin
#

yes

soft axle
#
items[:-1]
vocal basin
#

[)

soft axle
#
def list_reverse():
    items = list(input("Give a list you want reversed "))
    rev = []
    for i in items:
        rev.append(-i)
        items.remove(-i)
    return items
somber heath
#

!if-name-main

wise cargoBOT
#
`if __name__ == '__main__'`

This is a statement that is only true if the module (your source code) it appears in is being run directly, as opposed to being imported into another module. When you run your module, the __name__ special variable is automatically set to the string '__main__'. Conversely, when you import that same module into a different one, and run that, __name__ is instead set to the filename of your module minus the .py extension.

Example

# foo.py

print('spam')

if __name__ == '__main__':
    print('eggs')

If you run the above module foo.py directly, both 'spam'and 'eggs' will be printed. Now consider this next example:

# bar.py

import foo

If you run this module named bar.py, it will execute the code in foo.py. First it will print 'spam', and then the if statement will fail, because __name__ will now be the string 'foo'.

Why would I do this?

  • Your module is a library, but also has a special case where it can be run directly
  • Your module is a library and you want to safeguard it against people running it directly (like what pip does)
  • Your module is the main program, but has unit tests and the testing framework works by importing your module, and you want to avoid having your main code run during the test
somber heath
#
def function(parameter):
    pass

function('argument')```
vocal basin
#

map(int, input().split())

soft axle
#
def func([1, 2, 3, 4, 5])
somber heath
#

!e py print('abc def ghi'.split())

wise cargoBOT
somber heath
#

!d str.split

wise cargoBOT
#

str.split(sep=None, maxsplit=-1)```
Return a list of the words in the string, using *sep* as the delimiter string. If *maxsplit* is given, at most *maxsplit* splits are done (thus, the list will have at most `maxsplit+1` elements). If *maxsplit* is not specified or `-1`, then there is no limit on the number of splits (all possible splits are made).

If *sep* is given, consecutive delimiters are not grouped together and are deemed to delimit empty strings (for example, `'1,,2'.split(',')` returns `['1', '', '2']`). The *sep* argument may consist of multiple characters as a single delimiter (to split with multiple delimiters, use [`re.split()`](https://docs.python.org/3/library/re.html#re.split)). Splitting an empty string with a specified separator returns `['']`.

For example:
vocal basin
#

program user input

#

not function user input

#

!e

def print_all(items: list[int]):
    for item in items:
        print(item)

print_all([3, 2, True, False])
wise cargoBOT
vocal basin
#

technically passes type check

#

!d slice

wise cargoBOT
#

class slice(stop)``````py

class slice(start, stop, step=None)```
Return a [slice](https://docs.python.org/3/glossary.html#term-slice) object representing the set of indices specified by `range(start, stop, step)`. The *start* and *step* arguments default to `None`.
soft axle
#

st_reverse
rev.append(-i)
TypeError: bad operand type for unary -: 'str'

somber heath
#

!e -''

wise cargoBOT
# somber heath !e -''

:x: Your 3.12 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     -''
004 | TypeError: bad operand type for unary -: 'str'
vocal basin
#

(that'd just be per-item negation)

soft axle
#
def list_reverse(lst):
    return lst[::-1]
somber heath
#

@wanton estuary ๐Ÿ‘‹

vocal basin
#

[1,1,1,1,1,1]

#

reverse of that isn't [1]

#

!d list

wise cargoBOT
#

class list([iterable])```
Lists may be constructed in several ways:

โ€ข Using a pair of square brackets to denote the empty list: `[]`

โ€ข Using square brackets, separating items with commas: `[a]`, `[a, b, c]`

โ€ข Using a list comprehension: `[x for x in iterable]`

โ€ข Using the type constructor: `list()` or `list(iterable)`...
somber heath
vocal basin
#

!d collections.abc.MutableSequence

wise cargoBOT
#

class collections.abc.Sequence``````py

class collections.abc.MutableSequence``````py

class collections.abc.ByteString```
ABCs for read\-only and mutable [sequences](https://docs.python.org/3/glossary.html#term-sequence).

Implementation note: Some of the mixin methods, such as [`__iter__()`](https://docs.python.org/3/library/stdtypes.html#container.__iter__), [`__reversed__()`](https://docs.python.org/3/reference/datamodel.html#object.__reversed__) and `index()`, make repeated calls to the underlying [`__getitem__()`](https://docs.python.org/3/reference/datamodel.html#object.__getitem__) method. Consequently, if [`__getitem__()`](https://docs.python.org/3/reference/datamodel.html#object.__getitem__) is implemented with constant access speed, the mixin methods will have linear performance; however, if the underlying method is linear (as it would be with a linked list), the mixins will have quadratic performance and will likely need to be overridden.

Changed in version 3\.5: The index() method added support for *stop* and *start* arguments.
somber heath
#

@chilly thorn ๐Ÿ‘‹

chilly thorn
#

๐Ÿ‘‹

somber heath
#

Accept a list, create a new, empty list, iterate over the input list, insert into the new list, return the new list.

soft axle
#
def func(lst):
  rev = []
  for i in lst:
    rev.insert(lst[-i])
  return rev
vocal basin
#

!e

help(list.insert)
wise cargoBOT
# vocal basin !e ```py help(list.insert) ```

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

001 | Help on method_descriptor:
002 | 
003 | insert(self, index, object, /) unbound builtins.list method
004 |     Insert object before index.
vocal basin
#

never for i in lst

soft axle
#

o

vocal basin
#

i and j are almost exclusively for indices

#

by convention

soft axle
#

so then item? or?

vocal basin
#

!e

def func(lst):
  rev = []
  for i in lst:
    rev.insert(lst[-i])
  return rev

print(func(["1", "2", "3"]))
wise cargoBOT
vocal basin
#

what you're trying to do is append

#

don't do arithmetic yet

vocal basin
#

no

#

it won't work

jovial iris
#

morning @somber heath

vocal basin
#

you're using items as indices

#

it did not work

#

@soft axle what data are you testing on?

soft axle
#
def rev_list(lst):
  rev = []
  for i in lst:
    rev.append(lst[-i])
  return rev
#

this worked

vocal basin
#

it didn't

#

test on [100, 200, 300]

soft axle
vocal basin
#

you're just being lucky with your inputs

soft axle
#

huh

vocal basin
#

test on 100, 200, 300

soft axle
#

let me chekc

vocal basin
#

(I'm not running that again because I've literally ran on a different input before and it did not work)

somber heath
#

!e ```py
def rev_list(lst):
rev = []
for i in lst:
rev.insert(0, i)
return rev
print(rev_list('abc'))

wise cargoBOT
vocal basin
#

!e

# what list.insert does
a = ["0", "1", "3", "4", "5", "6", "7"]
a.insert(2, "2")
print(a)
wise cargoBOT
vocal basin
#

only AI watermarks work

#

the only reliable detection

#

I once applied for a role on some server using AI text, but it was as a joke and quite openly

#

"detection" that says "definitely AI" instead of "not sure it's human" should be banned

#

in case of text

#

for images, there are reasonable cases to conclude definitively

#

you can't fake cursed AI art well manually given enough detail

#

with all the artifacts

#

but you can trivially fake AI-gened text without using AI

#

if you can fake it easily, you can accidentally "fake" it too

#

after all LLMs are literally are "how like is it to be written by human?" machines

#

which makes the AI text "detection" fundamentally impossible

#

you can only use it to compare models

#

brb

late spoke
#

I will be back in a bit

#

take care

steel delta
sage basalt
#

@steel delta hey can i work with the sqthonAI with you?

sage basalt
#

well im interested in working with the project can you dm me

#

never built this kind of library

#

but im good at python

steel delta
#

I have sent you msg.

#

you need to be familier with sqlalchemy btw to work on this package.

crude edge
#

HIII

wheat needle
#

Support Wintergatan:

Marble Machine Engineering Discord Server:
https://discord.com/invite/7aSFJA6bkH

Video edited By Martin and Hannes from the Trainerds YouTube Channel:
https://www.youtube.com/c/TRAINERDS

โ€”
PATREON โ–บ https://patreon.com/Wintergatan
YO...

โ–ถ Play video
plush ether
wheat needle
#

@Manasa ๐Ÿ™‚

woeful salmon
#

fellow wintergatan watcher ๐Ÿ˜„

wheat needle
#

yep it is awesome ๐Ÿ™‚

plush ether
wheat needle
#

@plush ether how is it going? what is your weekend? ๐Ÿ™‚

crude edge
true bloom
#

Indians everywher

wheat needle
#

is harry at home? ๐Ÿ˜„

plush ether
plush ether
wheat needle
#

@Manasa i am fine, thx for asking.

odd dove
tall ridge
#

@odd dove I find it helpful to remember Patanjali yoga sutra 1.33

odd dove
odd dove
hasty shore
junior flint
#

what is better a student with foreign key group id or group that has the list of students

#

what do you thonk of cloud computong

#

im thinking to follow up in that field

dapper mist
#

!e

import random
def pick(one):
    return one[random.randint(0, len(one))]
wise cargoBOT
dapper mist
#

!e

import random
def pick(one):
    return one[random.randint(0, len(one))]
wise cargoBOT
lime fractal
#

hwid

odd sphinx
#

pls help me

whole bear
#

Hey how do i learn competitive programming in python

cerulean minnow
#

is this still a good field to learn?

odd dove
oblique hollow
river lion
#

hi

vocal basin
#

@upper basin time to invent a new marketing term: Quantum ORM

vocal basin
#

technically what I was referring to is a query builder rather than an ORM

#

but `ORM' is more popular as a term

vocal basin
sage basalt
#

well i know bout that but i thought of a marketing strategy

#

i wanted to know what do you mean by quantum ORM?

vocal basin
vocal basin
sage basalt
#

i dont have that much knowledge on this but the scientist max plank lost all of his hair just by discovering quantum mechanics

dapper mist
#

@obsidian dragon What software do you use for the avatar in your stream? I know veadiotube for PNGtubers, but the motion detecting 3D ones are cool

dapper mist
#

Thanks, Could you put the name down here. I'll check it out

sage basalt
upper basin
sage basalt
upper basin
#

To create a universal tool for creating and compiling quantum circuits.

#

Most people have to use one package or another, where the two may have slightly or drastically different syntax, so with my package that's eliminated. Additionally, I do the main synthesis and such on my side, so the performance between different packages is much less (essentially, the performance across different frameworks I integrated/wrapped become more consistent).

dapper mist
#

Thank you @obsidian dragon

#

Has anyone used veadotube on Ubuntu? I just cannot get it to run

vocal basin
#

evaluate the expression

#

it must resolve to a boolean

#

and that's kind of all

#

@fossil dirge == and other operators are not inherent to if

upper basin
#

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

fossil dirge
vocal basin
#

== is just like arithmetic, but outputs a boolean value

#

same for <, and and others

#

they aren't related to if

#

these are two separate concepts

#

condition is just an expression, the value of which is either truthy or falsy

#

evaluate the condition

#

evaluates to true => go into if body
evaluates to false => go into else body
evaluates to something else => type error

#
condition = (a == b)
if condition:
    ...
fossil dirge
vocal basin
#

there is no reason to make == an inherent part of if

fossil dirge
#

why not

#

c does it

vocal basin
#

no

#

in C, if just takes an integer

fossil dirge
#

i just wan t it like that lol

#

ok?

#

and?

vocal basin
#

in case of C#, they do have special handling for ifs

#

but

#

it's only for things like is, which bind variables

fossil dirge
#

look i jsut want to have c if conditions

vocal basin
#

then just evaluate expressions within the condition

fossil dirge
#

idk how to do dat

vocal basin
#

can the language compute 1 + 2 already?

#

1 == 2 is no different

fossil dirge
somber heath
#

Being under the weather has a simple solution. Helium balloons. UP.

fossil dirge
#

hmm

vocal basin
#

how C handles it:
1 + 2 is 3
1 == 2 is 0

1 + 1 is 2
1 == 1 is 1

somber heath
#

It might not cure you, but you're liable to not care about it so much.

vocal basin
#

C considers the condition true when it evaluates to anything other than 0

fossil dirge
#

can u walk me through on adding the conditions

#

this is what the code is so far

fossil dirge
#

i gtg now

#

if u awnna help just throw me a dm to open a dm

#

ill respond when available

#

cya

cerulean minnow
#

What are the requirements for me to have chat permission?

vocal basin
#

!voice

wise cargoBOT
#
Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

sour willow
#

wassup lads

#

wsg af

#

damn dsc bugged

vocal basin
#

@upper basin you need something generic to do "set to False, do something, set back to True"?

#

can you show the code again?

#

yes

#

it should be a context manager, but probably not the way the copilot suggests it

#
with self.without_logs():
    ...
#

or suppress logs

#

(whatever name is better)

#

@upper basin with finally

#

also add checks to make sure it's actually changing

#

right now, nesting results in an invalid state

#
with self.suppress_logs():
    with self.suppress_logs():
        ...
    # issue here
#

within a block but logs

#

@upper basin it's unrelated

#

no

#

finally is there to make sure exceptions don't invalidate the state

#
with self.suppress_logs():
    with self.suppress_logs():  # this should raise an error
        ...
#

when already False, raise

#

same inside when setting it back to True

#

@upper basin it's a RuntimeError not a ValueError

#

!d contextvars

wise cargoBOT
#

This module provides APIs to manage, store, and access context-local state. The ContextVar class is used to declare and work with Context Variables. The copy_context() function and the Context class should be used to manage the current context in asynchronous frameworks.

Context managers that have state should use Context Variables instead of threading.local() to prevent their state from bleeding to other code unexpectedly, when used in concurrent code.

See also PEP 567 for additional details.

Added in version 3.7.

vocal basin
vocal basin
#

I might be confusing it with something else

#

yeah, contextvars is likely too heavy for this

frozen owl
#

@obsidian dragon what is the vscode plugin you are using for sql

crude edge
#

hii

#

hi

#

hello

vocal basin
#

@obsidian dragon working directory

#

@upper basin home

#

the button

#

@obsidian dragon

#

cd there?

#

you also need to venv

obsidian dragon
#

@vocal basin how to select a cell in the database?
<td>{{ order[[0,2]] }}</td>

vocal basin
#

does order[0][2] work?

obsidian dragon
#

no

vocal basin
#

@somber heath prototype-oriented

#

JS is too

#

or with first two letters of scala

#

(if we're just looking for -oop prefix acronyms that make a word)

#

Scala I'd expect to just have Java's OOP

#

non-prototype

upper basin
#

I'll stream after I eat dinner.

#

Have to see if I broke anything with this new labelling for circuit log.

obsidian dragon
#

I r smrt

vocal basin
#

each program is a quine

#

codeout

#

It originally referred to a fictitious instruction in IBM System/360 computers (introduced in 1964)

#

The Z1 (1938) and Z3 (1941) computers built by Konrad Zuse contained illegal sequences of instructions which damaged the hardware if executed by accident.

#

amazing

vocal basin
peak depot
#

AF, how can I avoid this: Thread 'MainThread': missing ScriptRunContext! This warning can be ignored when running in bare mode.

vocal basin
#

in which context is it happening?

peak depot
#

running a python file

#

In a multiperson project, dataproject

vocal basin
#
#

docs don't even include streamlit.runtime

#

and very painful to navigate in general

#

well, at least, search seems to work

vocal basin
#

this might be a bug in streamlit

whole bear
#

hello @pine iron

#

how are you

naive basalt
#

@young matrix adventofcode

#

Events link gives past years

flat mirage
#

Hello, people!

wintry barn
#

hello

#

people

#

how are you all

wintry barn
flat mirage
#

What is the more impressionant Python software to you guys?

grand dew
#

hi all

karmic rain
#

@somber heath hello :}

#

logo_panda3d i see its hard to read

somber heath
#

@mystic storm ๐Ÿ‘‹

#

@pine flax ๐Ÿ‘‹

#

@vivid jay ๐Ÿ‘‹

peak depot
somber heath
#

@rugged root I inspired some awfulness. Mainly Grote's fault.

peak depot
jovial iris
#

shalom

peak depot
somber heath
#

@split flower ๐Ÿ‘‹

split flower
split flower
#

We finished our EOT exams we r closin school on friday

rugged root
#

End of term?

split flower
#

yep

rugged root
#

Nice

split flower
#

Bro our time table changed like 3 times this term, so annoying...

rugged root
#

How close to the exams did they do it?

split flower
rugged root
#

Like day before?

whole bear
#

How do cats balance themselves while eating with two hands?

split flower
#

like every 2 weeks

#

and every CAT 1 exam our ict teacher never counts the marks properly ;-;

wintry osprey
#

@timid marten what is the origin of your name? โ˜ฎ๏ธ

#

I was the king of highschool ahh story

upper basin
#

I thought she was about to say we don't have to pay for anything because we're european.

rugged root
timid marten
upper basin
#

If you put it on your pinky you're a villain.

upper basin
#

Everyone knows that.

split flower
#

gtg bye

#

cya

upper basin
# timid marten

Thumb and Index, you're middle-eastern. Middle finger you're green lantern. Ring you're married. Pinky you're villain. I'll go with green lantern.

cerulean minnow
timid marten
cerulean minnow
timid marten
dapper mist
#

Sorry folks, the room cieling fan makes some noise. ANd I am just too old to be able to mute instantly when I join

whole bear
cerulean minnow
#

sentence = input('Enter a sentence: ')
index = 0
uppercase_count = 0
lowercase_count = 0
while index < len(sentence):
if sentence[index].isupper():
uppercase_count = uppercase_count + 1
sentence[index].islower()
lowercase_count = lowercase_count + 1
index = index + 1
print('That string has', uppercase_count, 'uppercase letters')
print('That string has', lowercase_count, 'lowercase letters')

dapper mist
whole bear
# cerulean minnow sentence = input('Enter a sentence: ') index = 0 uppercase_count = 0 lowercase_c...

sentence = input('Enter a sentence: ')
index = 0
uppercase_count = 0
lowercase_count = 0

while index < len(sentence):
if sentence[index].isupper():
uppercase_count = uppercase_count + 1
elif sentence[index].islower():
lowercase_count = lowercase_count + 1
index = index + 1

print('That string has', uppercase_count, 'uppercase letters')
print('That string has', lowercase_count, 'lowercase letters')

#

This shall work well

wintry osprey
rugged root
whole bear
#

Glad it work @cerulean minnow
I told you its logical error

wintry osprey
cerulean minnow
#

thank you jigar

timid marten
whole bear
#

@cerulean minnow Could you add logic for a special character?
So it can count the number of special characters used in the sentence.

dapper mist
#

@upper basin What do I need to do to get Screen sharing rights? Is there a process?

upper basin
dapper mist
#

Gotcha!

upper basin
#

If you have sth to stream right now, you can try asking Mr. Hemlock.

dapper mist
#

No I don't. I just noticed that I wouldn't be able to share my screen, like you were, if I wanted to convey something to someone

upper basin
#

Similar to the voice verification which is to prevent voice trolls.

dapper mist
#

Yes, that's important too

gentle flint
dapper mist
#

Yes, but this has always been a delicate balance.

#

He was too confrontational and a douche.

#

But any kind of #wontfix answer would have pissed some or the other, no?

late spoke
#

brb, eating dinner

amber raptor
#

I prefer blunt responses

gentle flint
upper basin
amber raptor
#

Too many people see โ€œI donโ€™t think this a good ideaโ€ as โ€œif you argue with me more, Iโ€™ll change my mind. โ€œ

whole bear
#

i had asthama when i was 5

upper basin
amber raptor
dapper mist
#

Not trying to argue, but to genuinely understand how to do this tact fully, what is a general tactful answer?

amber raptor
#

"I will not be implementing this because I worry about having a ton of options that requires heavy maintenance."

dapper mist
#

"Sorry folks, we do not want to add option flags so we will not be taking this up"

gentle flint
upper basin
amber raptor
#

Yea, this is why I get in trouble all the time.

dapper mist
amber raptor
#

I'm more Finnish then Dutch. Fluffy language is for worthless people without work to do.

gentle flint
#

though we are transitioning away from that over his pointless refusal to support pyproject.toml

upper basin
amber raptor
#

pyproject.toml will be supported when pip freeze does would be my answer

gentle flint
#

I'd love it

dapper mist
#

Again, I am not encouraging that behaviour, but trying to understand if he is obliged.

upper basin
gentle flint
upper basin
#

It's like saying did you owe that guy to say "Hello". It's just common manners.

gentle flint
#

it's how it works

gentle flint
#

be nasty to your userbase and your userbase vanishes

amber raptor
#

Is his job his library?

dapper mist
gentle flint
#

gaddafi before he went to seed

rugged root
#

Yeah, they're both handsome

#

I'll agree

#

Not great people

#

But still handsome

gentle flint
#

vs gaddafi after he went to seed

#

quite the downfall

#

most other dictators weren't good-looking to start with

#

such as the Angry Moustache Man

dapper mist
#

Oh come on, he was not that Angry!

#

< I am joking, please, just joking />

#

What do you mean by "going to seed"

rugged root
#

Yeah I forgot what that term meant

gentle flint
#

salazar in later age

upper basin
#

@rugged root Can you watch sth real quick?

rugged root
#

I can't currently. I'm having to look through hundreds of our clients to see if they have an engagement letter in our document management system

upper basin
#

All good.

timid marten
#

44 34 33 23 13 03 02 01 00

#

44 43 42 32 31 30 20 10 00

#

44 34 33 32 31 21 11 01 00

#

24 14 04 03 02 01 00

#

11 01 00

#

@peak depot Can you make a list? :D

desert vector
#

make a set instead; i need to use & to see if we share similar don'ts

peak depot
desert vector
#

can you though

timid marten
late spoke
#

good night people

desert vector
#

nighty noo

timid marten
gentle flint
timid marten
#

First gear : Second Gear

#

10 : 180

#

10 : 180 : 560

gentle flint
#

1/18 * 18/560

#

aka 1/560

#

unless you also have a small ring on the 180 ring

timid marten
#

24 : 8 : 24 : 8 : 24 : 8 : 24 : 8

versed heath
gentle flint
#

24/8 * 24/8 * 38/12

rugged root
#

@whole bear Yo

whole bear
versed heath
#
d*pi
5.5*pi = 17.28
*114 for rotations per second
/100 for meters per second
*3.6 for km/h
71km/h

@gentle flint

rugged root
lethal shell
#

why are guys mean? o.o

rugged root
#

Like

#

Men in general or....

lethal shell
#

nah

#

programmers, idk i might be catching a wrong vibe here

#

is it a clasic case of a shot pp sindrome?

versed heath
#

!rule 12

wise cargoBOT
#

:x: Invalid rule indices: 12

rugged root
#

!rule 5

wise cargoBOT
#

5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.

gentle flint
#

input angular velocity is 4 rotations per second
output is 28.5 times input
output is 114 rotations per second
output wheel diameter is 5.5 cm
circumference is 5.5ฯ€ = 17.3 cm = 0.173 m

0.173*114 m/s
19.722 m/s
1 km/h = 1000/3600 m/s = 1/3.6 m/s
1 m/s = 3.6 km/h
19.722 m/s = 71 km/h

lethal shell
#

o.o

#

DDDD;

#

I wanna go home ;,<

#

4 Hz x 114

rugged root
#

If a radio operator gets punched, does it Hz?

lethal shell
#

do you mean punching speed of the sound vibration of the punch?

#

shor ansdwer yes

versed heath
#

28.5 + 24/8

lethal shell
#

hz = s^-1

lusty kernel
#

Could someone help? I cannot be in VC but i need help understanding what I am to do, it says no value is set for the code and I'm not sure what I have done incorrectly

rugged root
#

Can you share the code?

lethal shell
#

T = period time (mesured in seconds)

lusty kernel
# rugged root Can you share the code?

def convert_kg(value):
"""Converts kg to lb and oz"""
#1kilogram = 35.247 ounces
#1kilogram = 2.20462 pounds
pounds = value * 2.20462
ounces = value * 35.247

def convert_pounds(value):
#1pound = 0.453592 kilograms
#1pound = 16 ounces
kg = value * 0.453592
ounces = value * 16

def convert_ounces(value):
#1ounce = 0.0283 kilograms
#1ounce = 0.0625 pounds
kg = value * 0.0283
ounce = value * 0.0625

if name == "main":
# Test your code here
convert_kg(10)
convert_pounds(10)
convert_ounces(10)

#

I've been at it for hours but I'm not sure if I should add the correct formulas like in math, since it gives the converted numbers in the lab already

lethal shell
#

frequency = amount of periods per second

rugged root
#

Can you give the error code as well?

lusty kernel
rugged root
#

Does it tell you a particular line?

lusty kernel
lethal shell
#

meow meow meow

gentle flint
lusty kernel
#

this is the last time i will show the error

gentle flint
lusty kernel
lethal shell
#

wait ill show you something cool

rugged root
#

!traceback

wise cargoBOT
#
Traceback

Please provide the full traceback for your exception in order to help us identify your issue.
While the last line of the error message tells us what kind of error you got,
the full traceback will tell us which line, and other critical information to solve your problem.
Please avoid screenshots so we can copy and paste parts of the message.

A full traceback could look like:

Traceback (most recent call last):
  File "my_file.py", line 5, in <module>
    add_three("6")
  File "my_file.py", line 2, in add_three
    a = num + 3
        ~~~~^~~
TypeError: can only concatenate str (not "int") to str

If the traceback is long, use our pastebin.

rugged root
#

Can you give me that? Like what it gives you there

lethal shell
#

cool isnt it?

lusty kernel
rugged root
#

Ah gotcha gotcha, sorry

lethal shell
#

yes I think he is an oricle

#

and needs therapy D:

lusty kernel
#

def convert_kg(value):
"""Converts kg to lb and oz"""
#1kilogram = 35.247 ounces
#1kilogram = 2.20462 pounds
pounds = value * 2.20462
ounces = value * 35.247

def convert_pounds(value):
#1pound = 0.453592 kilograms
#1pound = 16 ounces
kg = value * 0.453592
ounces = value * 16

def convert_ounces(value):
#1ounce = 35.274 kilograms
#1ounce = 0.453592 pounds
kg = value * 35.274
pounds = value * 16

if name == "main":
# Test your code here
convert_kg(10)
convert_pounds(10)
convert_ounces(10)

print(value, " kg converted is ", ounces , " ounces and ", pounds ,"pounds" )

rugged root
#

So wait, is THIS the current code or is the code in the screenshot the current one

#

Because there're some differences

lethal shell
#

I have some cool candies o.o

#

Python confuses me, theres too little words

lusty kernel
rugged root
#

All good.

#

So the problem here is the scope. When you call a function, once it finishes, everything within the function disappears

lusty kernel
#

Write code for the convert_pounds(value) function that converts value into kg and ounces. The function should output the following statement โ€œx pounds converted is y kg and z ounces.โ€. (So this Im assuming i need to put print statements between each conversion group)

rugged root
#

Like in convert_kg(), pounds and ounces aren't available after that. If you want to use a value from those functions, you need to return them, like how you have it in the screenshot

#

However, even in those cases, all you're doing is feeding those values to print(), so they disappear after that

lusty kernel
rugged root
#

Yep

lusty kernel
#

ok

rugged root
#

You'd need to assign them to a variable if you wanted to use them later in the code, though

#

So like pounds, ounces = convert_kg(45) or something

lethal shell
#

I need to send more msges

#

to be able to talk

#

but i9m not talkative.. :/

lusty kernel
lethal shell
#

I think someone invited me here from some other place

lusty kernel
#

like before everything else

rugged root
#

@warm garnet I try not to make exceptions when it comes to the voice gate

#

You'll need to get the role like everybody else

warm garnet
#

no problem

lethal shell
#

but it was related to other stuff not just programmin

rugged root
lethal shell
#

they said it has cool ppl

rugged root
#

Remember, things are read top to bottom in Python (and most other programming languages)

warm garnet
#

anyone here into web dev ?

#

i have a web app (CRM System) i want to turn it into a saas

lethal shell
#

cool ppl, as if learning motivated, not people who just flex skills they dont have

lusty kernel
warm garnet
#

something like when a user buys a subscription he gets his own database

rugged root
lethal shell
#

well, I'm a bit of bser, because i dont learn anything, I have motivation problems, but I dont claim to know what i dont know, and still try to engage in related topics

lusty kernel
warm garnet
#

i heard that i need to do it using dockers actually

#

i have a crm system

#

it's all about installation

lethal shell
#

programming communities tend to be people who like to rub it in your face if you do something wrong, like as if you didnt spend years learning it and now you treat me like im mentaly set back, just because I dont know it.

gentle flint
warm garnet
#

i made researches about if it's gonna be better to have sub domains for each client

lethal shell
#

cyber security communities are filled with people who try to act like they are the shit o.o

warm garnet
#

or have them all under the same domain

warm garnet
#

and have the Databases splitted using accounts

lethal shell
#

kalilinkox

#

no but

warm garnet
gentle flint
# lethal shell I use arch btw

you aren't a real linux user unless you reverse engineered teams, rewrote it in apl, and compiled it from scratch on Kali

lethal shell
#

i don5t do much with programming now days, im trying to get a tutoring job, so im trying to remember the knoweledge in there, I like to do sometimes it stuff on free time, but that is rare

lethal shell
#

its so light

warm garnet
#

but i still having troubles using it

#

as a 4gb ram laptop

#

whenever i open gmail the laptop crashes lool

#

what did you say hemlock ?

lethal shell
#

I dont really get, having it difficult just because, I acept using something for learning purposes, but like other then that, in front of who are you flexing, actually give me reasons why is it more advantagious

lethal shell
warm garnet
lethal shell
#

sooo... you dont have more ram ports?

#

in your motherboard

warm garnet
#

haven't checked yet

#

i need to get a 8gb next to the main one

lusty kernel
# rugged root If you get stuck, don't hesitate to ask

I wrote this and I got this error: Traceback (most recent call last):
File "/workspaces/9780357421796_python-fundamentals-1e-6bacfd41-bf70-4ae4-9c39-d7d12180b0de/chapter1/mla01/student/main.py", line 1, in <module>
pounds, ounces = convert_kg(10)
^^^^^^^^^^
NameError: name 'convert_kg' is not defined

warm garnet
#

use the function after defining it

#

get the first 3 lines below the function

rugged root
#

Yep, so remember what I said about it reading it from top to bottom

lethal shell
#

usually they have that much bus space to expand, but due to previous operating system limitations, this amount of ram was not usable, theorethicaly, it would just sit there unused even if you had it plugged in, so you might need new motherboard.

warm garnet
#

idk what's my motherboard's limitations

lethal shell
lusty kernel
warm garnet
lethal shell
#

as far as I know from what im using, i rarely find something below 8 ram to run properly as minimum requirment

gentle flint
lethal shell
#

but I mostly game ;p

#

so idk @lusty kernel what are you doing on your pc

lethal shell
#

everything is moving forward

lethal shell
#

sorry pinnged wrong person D:

rugged root
#

I think they meant to ping Ahmed, Conf

#

And apologies in advance, I'm lazy and give people nicknames

warm garnet
#

i just use these apps

lethal shell
#

?

warm garnet
#

onenote on ubuntu is a web version it sucks @drowsy apex

lethal shell
#

do you use it on virtual machine?

warm garnet
#

nope

lethal shell
#

guys i dont remember can u assign how much ram you need to use when instaling distro? =.=

#

hmm

#

in memory it says 2 6 or 8 ram, so probably they mean its up to people who sell, so it must be same mother board with ability to upgrade it to 8 ram

warm garnet
lethal shell
#

seems so

#

ill try to look up what motherboard they have

warm garnet
#

so what do you recommend to get another 4gb ram or just add 1 8gb

rugged root
warm garnet
#

chat gpt says it can have up to 16gb

lethal shell
#

it says 16 ram

#

max

warm garnet
#

yeah

#

The Dell Latitude E7450 supports a maximum of 16GB of DDR3L (low voltage) RAM across two SO-DIMM slots. Each slot can accommodate up to 8GB, meaning you can install two 8GB RAM sticks to reach the maximum capacity.

rugged root
#

@viral dove Yo

viral dove
#

Hello

lethal shell
#

yes, if they are talking about the same model

#

idk sometimees it gets confusing with all the, max note and pro

lusty kernel
#

@rugged root I understand it now a bit better but want to double check, the output has no errors just text

warm garnet
#

i am thinking of changing my laptop actually

#

the processor is core i5 5th gen

lusty kernel
#

in belive i would just have to add 10 to the statement

#

to make it clear how many Kg, lb, and oz are being converted

warm garnet
#

actually i always use linux instead of windows because of the performance and it ends up lagging lool

#

what do you guys actually do in coding ?

#

what are you into ?

rugged root
#

I can actually show you a project I'm working on (still quite a ways off from being finished)

warm garnet
#

ok

#

what's it about

rugged root
#

A unique multiplayer game built on a free Web API. The best sandbox platform to learn a new skill or apply your knowledge in a fun and meaningful way. Use any programming language with our RESTful API to control the most powerful fleet in universe.

GitHub

An async Python wrapper around SpaceTraders v2 API - MrHemlock/aioSpaceTraders

warm garnet
#

looks good

rugged root
#

Hopefully

#

Still quite a bit to work on

warm garnet
#

good luck with it

rugged root
#

Thanks

warm garnet
#

facebook is old school @lethal shell

rugged root
#

Eh, still relatively relevant

warm garnet
#

all the social media

#

it turned to be very brain washing

rugged root
#

@jovial lichen Yo

lusty kernel
#

just a general question so I can get a note i can write

#

Oh nvm i understand it

wheat needle
gentle flint
sweet sorrel
lusty kernel
sweet sorrel
gentle flint
sweet sorrel
flat mirage
#

Hello, people

wheat needle
soft axle
#

on campus, so is kinda loud

#

finished my python class

vocal basin
#

was it in Scala?

rugged root
#

Yo AF

vocal basin
#

yeah, it was

#

*is

rugged root
#

That's surreal

#

@lethal shell Found it ^

woeful salmon
#

my favorite is still C# because my eyesight is weak so its the only way i can say i can see sharp

rugged root
lethal shell
#

If Musk would be a programmer those are the languages he would develop

rugged root
#

fuuuuu I'm going to have to call a client

#

I don't normally talk with clients

#

Not that I'm incapable of doing so, just not thrilled

#

The client was much nicer than I thought they would be

woeful salmon
#

i need to go now cya guys kbye

urban abyss
rugged root
#

It's like... you know when you have a bucket of sand and you flip it over and lift up the bucket

#

That's what it reminds me of

wheat needle
#

bye people

gentle flint
urban abyss
gentle flint
#

o

urban abyss
rugged root
urban abyss
rugged root
#

Back in a sec, have to hit the little nerd's room

urban abyss
gentle flint
urban abyss
gentle flint
cerulean minnow
rugged root
#

Sup?

soft axle
#

@rugged root wanted to know what you thought about taking these classes together

rugged root
#

Wrong Hemlock ping

urban abyss
#

classic

rugged root
#

Happens a lot

#

And what do you mean taking classes together?

soft axle
#

we dont talk about it

#

uhh for my next semester

#

I have 2-3 python classes

#

and uh

#

SQL

#

and an SAS class

#

im not familiar with SAS or SQL at all

rugged root
#

Define together

soft axle
#

within the same semester

#

for school

rugged root
#

I can't afford to take classes

soft axle
#

uh

rugged root
#

I'm not a student

soft axle
#

i was wondering if the topics are closely related or miles apart

rugged root
#

They're closely related for sure

soft axle
#

one of them is data mining and machine learning with python

#

one is web scraping, data analysis and visualization with python

#

then SQL i've never done before

#

and then a marketing analytics with big data class

rugged root
#

Back in a tic

cerulean minnow
#

Python Prog Srty Alys Pen Test

rugged root
#

Crisis averted

#

@somber heath ๐Ÿ‘‹

#

It

#

Fucking

#

It ADDED the folders, just to remove them

#

!resources

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
whole bear
#

hi

#

who are you all

rugged root
#

Who or how

torn yarrow
#

I use it for variable explorer

whole bear
#

d

rugged root
#

!rule 5

wise cargoBOT
#

5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.

rugged root
#

!stream 344164464062496768

wise cargoBOT
#

โœ… @soft axle can now stream until <t:1733189410:f>.

rugged root
#

!stream 344164464062496768 30M

wise cargoBOT
#

โœ… @soft axle can now stream until <t:1733191297:f>.

civic zephyr
#

Hey everyone

rugged root
#

Yo

#

How goes it

civic zephyr
#

Good! Been here for awhile but left and came back

rugged root
#

Well we're happy to have ya back

late spoke
#

back after good night sleep โœจ

rugged root
#

Nice and peaceful?

late spoke
#

yeah just having morning tea ๐Ÿ˜„

#

good mood, ready to code

rugged root
#

Hell yeah

torn yarrow
#

Hehe

#

Lol

somber heath
#

@zealous pond ๐Ÿ‘‹

rugged root
#

Opal

#

Halp

#

I'm still stuck here

#

!stream 344164464062496768 30M

wise cargoBOT
#

โœ… @soft axle can now stream until <t:1733194374:f>.

somber heath
#

What form would you have my help take?

rugged root
#

Pitty

whole bear
somber heath
#

@fresh verge ๐Ÿ‘‹

rugged root
#

I hate this program

fresh verge
rugged root
#

Fucking.... Lacerte DMS

rugged root
#

No

#

Just no

late spoke
#

no python no AI ?

whole bear
#

I suppose it's harder to get dataset to work on comparatively to make your own model.

It's hard to get a dataset and it's a pain to process unstructured data

rugged root
#

This is just making me so much happier that I was a CIS major

#

I'm still angry with myself for not finishing and just getting a bachelors

#

But I was so burnt out and just destroyed

whole bear
#

Easy?
How could you be sure it's easy when you haven't explored it yet?

rugged root
whole bear
#

Not just readability but efficiency as well

rugged root
#

Depends

#

That's.... unconvincing

whole bear
#

@whole bear Talk as much as you can sir

rugged root
#

You meet the criteria

#

Just hit the button

#

I think it was a New York university

#

I have to grant the streaming perms

#

My ADHD is winning

#

!tvmute 920060007607844984 1d Constantly interrupting an on-going conversation after being asked not to is not acceptable behavior.

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied voice mute to @whole bear until <t:1733281946:f> (1 day).

rugged root
#

It echoed what I'm assuming is your recording of our convo from earlier

#

Yeah it's just a voice mute

#

Because of the... interruptions

#

They will be verbally corrected, in the same way you were

#

And if it happens again, then the infraction hits

#

Swore? No

#

Interrupted?

#

Yes

#

And since it continued, it got a mute

late spoke
#

take my good, soft & respectful advice.. (remember I'm not even involved):
"relax & cool off"
Come back later

primal shadow
#

late crowd tonight

late spoke
old heart
#
import pandas as pd

def outcome(row):
    if row['adderall'] + row['celsius'] > 5:
        return "burnout"
    elif row['capacity'] >= row['load']:
        return "success"
    else:
        return "failure"

def get_input(prompt, limit=10):
    while True:
        try:
            value = int(input(f"{prompt} (0-{limit}): "))
            if 0 <= value <= limit:
                return value
            else:
                print(f"Enter a number between 0 and {limit}.")
        except ValueError:
            print("Invalid input. Numbers only.")

def main():
    print("Courseload Calculator")

    adderall = get_input("Adderall?")
    celsius = get_input("Celsius?")
    discipline = get_input("Discipline?")
    load = get_input("Courseload?")

    data = {
        'adderall': [adderall],
        'celsius': [celsius],
        'discipline': [discipline],
        'load': [load]
    }

    df = pd.DataFrame(data)
    df['capacity'] = df['discipline'] + df['adderall'] + df['celsius']
    df['burnout'] = (df['adderall'] + df['celsius']) > 5
    df['result'] = df.apply(outcome, axis=1)

    print("\nHereโ€™s the breakdown:")
    print(df)

    # Save to CSV
    df.to_csv("data.csv", index=False)
    print("\nYour data has been saved to data.csv. You can use it to train a model :)")

    # Show the outcome
    print(f"\nResult: {df.loc[0, 'result']}")
    if df.loc[0, 'burnout']:
        print("Too much reliance on stimulants. Balance is key.")
    elif df.loc[0, 'result'] == "success":
        print("You made it. Discipline wins!")
    else:
        print("You didnโ€™t make it. Try a better strategy.")

if __name__ == "__main__":
    main()
#

๐Ÿ™‚

#

its a bad joke. but the point is simple

#

there is no replacement for hard work.

#

good luck ๐Ÿ™‚

rugged root
#

It's such gold

upper basin
#

Greetings Opal.

rugged root
#

It's good to see that your internet connection to ChatGPT is still working, Nett

#

Was worried for a bit

upper basin
#

Your style of typing did not match what you pasted.

whole bear
#

Exactly ๐Ÿ˜‚

old heart
#

why isn't pg more used, why sql

rugged root
#

Chat's Chat

#

ChatGonnaPasteThis

#

I CRACKED THE CODE

torn yarrow
#

ChatGonnaPasteThis

#

Oh

#

For what

rugged root
#

What the GPT part really meant

#

Or at least what it seems to mean anymore

upper basin
#

I'd strongly advice against picking a fight with the admins of the server.

rugged root
#

Meh

#

Oh man, he called me out

#

So cray cray

whole bear
rugged root
#

Sorry, are you trying to use that as an insult, Nett? The two women holding hands emoji?

upper basin
#

I feel maybe a temporary chat ban would be appropriate. Cause being arguing and insulting a staff?

rugged root
#

We do have a message log

late spoke
#

Dude, if you are a teenager.. don't be impulsive. You haven't understood the meaning of 'cool off' ..

rugged root
#

Mmhmm

upper basin
#

Opal, wanna hop down?

rugged root
#

So very tired

primal shadow
rugged root
#

It is

#

Doing some database updates

#

Just wrapping up one last email

#

Dude now I have to bother looking at the message log

#

Exhausting

primal shadow
#

๐ŸงŒ gotta ๐ŸงŒ

split flower
grand dew
#

hi everyone

sweet sorrel
grand dew
#

yes agncy123 u r really good in statistic

whole bear
sweet sorrel
grand dew
#

bye

whole bear
#

hello

late spoke
#

I am just trying out a few things.. teaching myself tailwindcss along the way as well

whole bear
late spoke
whole bear
late spoke
whole bear
#

more

#

definitely more

late spoke
whole bear
#

my final exam is wednesday

late spoke
turbid parcel
#

50

#

49

#

48

#

47

#

46

#

45

#

44

#

43

#

42

#

41

#

40

#

39

#

38

#

37

#

36

#

35

#

34

#

33

#

32

#

31

#

30

late spoke
#

doing fine

vocal basin
turbid parcel
#

No

wintry barn
#

Hello ๐Ÿ‘‹

upper basin
# turbid parcel No

You cannot spam your way to voice verification. If mods, such as Alisa, see you doing it they will give you a two week delay on voice perms.

To see these, check #voice-verification which contains the criteria for unmuting.

wintry barn
#

Is anyone here?

upper basin
#

Yes.

#

Greetings.

#

Do you have a question?

timid marten
wintry barn
wintry barn
timid marten
wintry barn
timid marten
wintry barn
wintry barn
timid marten
wintry barn
timid marten
#

There should be a list of them on the right of your screen if you're on pc.

#

The orange people :p

wintry barn
wintry barn
#

Coz I want to get voice verified

timid marten
wintry barn
#

I need to get verified first

timid marten
#

Well, welcome to the python server :D