#voice-chat-text-0

1 messages ยท Page 309 of 1

quartz beacon
#

but me being passive agressive isn't really helpful, i admit

upbeat bobcat
#

can you help me with object oriented programming?

#

How you will help?

ember jewel
#

Anyone have any experience with pymem?

upbeat bobcat
#

I need to create post?

ember jewel
#

Am I allowed to discuss pymem if it's made for making cheats?

upbeat bobcat
#

Can you explain me the topic? I don't know anything. I am not getting it.

#

every part

ember jewel
#

@rugged root It can be used for multi-player... but I only use it for single player just for a new experience

upbeat bobcat
#

Can I go for 10 min?

#

Ok thanks

ember jewel
#

@somber heath Hey again just curious have you heard of pymem?

#

Yeah am I allowed to discuss it?

#

Aww

#

Yeah no all good

#

I use it for assault cube cheating ๐Ÿ’€ for single player @somber heath

willow light
#

oi

ember jewel
#

Yes.

#

To get "Offsets"

willow light
#

sorry this headset and the fact that I'm using the cinnamon DE aren't getting along

#

fucking pulseaudio

ember jewel
#

Yeah but super old even if you did multiplayer no one would be online.

#

;-;

#

Yeah no I understand all good

#

I wouldent say "ruin" I'd say create

willow light
#

The way I see it is if you use cheats you're unironically admitting that you are bad at the game.

#

I would rather grind for hours, days, weeks, than do that.

ember jewel
willow light
#

I'm sure there's something about using generative ai for coding in there.

#

degenerative ai is something I'd like to see

#

"once you do it you can't go back" is exactly why I refuse

ember jewel
#

anyway ima head out nice chatting

willow light
#

I'd say Unstable Diffusion was a degen AI given it was originally used primarily for making porn. Which I know about because I'll admit that I dabbled, and then realized I was far better off paying actual human artists.

rugged root
willow light
#

Always support human artists.

rugged root
#

Found the updated arbitration stuff

willow light
#

They're doing the Roku thing?

#

That's worse than roku tbh

somber heath
willow light
#

Say it with me: enshittification

formal bramble
#

I can't speak yet

#

๐Ÿฅฒ

somber heath
formal bramble
#

yeah

#

I had that role, left and joined back the server, lost it ๐Ÿ™‚

#

lol

#

Now I need to send 50 messages to get VC access

willow light
#

@somber heath worked out well in Salem, got rid of all the witches that way

rugged root
#

@formal bramble You meet the criteria

formal bramble
#

oh right I need to trigger the verification

willow light
#

Being accused is evidence enough. Sounds almost McCarthyist

formal bramble
#

thanks lol

willow light
#

Any system is better than no system. We've all read Hobbes lol

#

Thomas Hobbes

#

where do you think the names came from

rugged root
#

Fair point

willow light
#

So I search "nasty brutish and short" on DuckDuckGo and all the image results on the main page are blurred out but clearly porn, but clicking on image results gets you quote images that you put on a wall. The internet is a mysterious place.

rugged root
#

@safe solstice Yo

safe solstice
#

and you ?

rugged root
#

Purring and happy. And I'm doing alright

safe solstice
willow light
#

If they can do it that way legally, they will. Doesn't matter if it isn't ethical or moral, if it is profitable and not explicitly illegal they'll do it.

upbeat bobcat
#

@rugged root I am back

willow light
#

Similar to how what Dell is doing with RTO is entirely legal, but also entirely wrong.

#

"If you are fully remote you are ineligble for promotions" is ableist as fuck

upbeat bobcat
#

ok

#

ok

willow light
#

@rugged root you may find this interesting, local opportunities for enforce grass-touching

somber heath
willow light
#

It left all other forms of retaliation on the table. Boy howdy did they use them.

rugged root
#

!e

class Student:
  def __init__(self, name, age, favorite_subject):
    self.name = name
    self.age = age
    self.favorite_subject = favorite_subject

  def introduce(self):
    print(f"My name is {self.name} and I am {self.age} years old!")

  def age_next_year(self):
    print(f"Next year I will be {self.age + 1} years old!")

sally = Student("Sally", 10, "Science")
billy = Student("Billy", 9, "Math")

sally.introduce()
sally.age_next_year()

billy.introduce()
billy.age_next_year()
wise cargoBOT
#

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

001 | My name is Sally and I am 10 years old!
002 | Next year I will be 11 years old!
003 | My name is Billy and I am 9 years old!
004 | Next year I will be 10 years old!
upbeat bobcat
#

what is self?

somber heath
#

@hasty path ๐Ÿ‘‹

upbeat bobcat
#

Ok

somber heath
#

@safe solstice ๐Ÿ‘‹

willow light
#

It allows the object access to itself

safe solstice
willow light
#

I mean you can if you want, but please don't.

upbeat bobcat
#

ok

scarlet halo
#
...
sally = Student("Sally", 10, "Science")
print(sally.name)
# output: "Sally"
willow light
#

Next we'll cover public, private, protected

scarlet halo
#

no

willow light
#

kidding this is python

willow light
#

Hang on writing a FactoryFactoryIntegerDividerFactoryImpl in Python

rugged root
willow light
#

Is it even OOP if it doesn't make it impossible to find the file in which the actual functionality lives?

upbeat bobcat
willow light
#

Oh wait that's just Enterprise Java

#

DECORATORS MY BELOVED

#

The only one I have off the top of my head is the one I wrote for disabling logging, and that involves an antipattern

scarlet halo
#

WAIT

#

you can do comments in markdown?

upbeat bobcat
#

why you use init as first function?

scarlet halo
#

__init__

formal bramble
#

init is constructor

safe solstice
formal bramble
#

constructs the object

willow light
#

__init__ is the equivalent of a constructor

well, not really, but it can be thought of as being similar enough to count. sorta.

upbeat bobcat
#

oh ok

willow light
#

It abstracts the part of constructors you don't want to deal with away so you don't have to.

#

My favorite decorator: @property

rugged root
#

__init__ __str__ __repr__

somber heath
upbeat bobcat
willow light
#

Don't forget my two favorite dunders: __aenter__ and __aexit__

rugged root
#

PascalCase

upbeat bobcat
willow light
#

There are a lot of dunders that let you do things that you usually have to write a lot of boilerplate to achieve.

#

such as the iterator ones

upbeat bobcat
#

Ok

rugged root
#

CollegeStudents

willow light
#

It's similar to millibar_case

#

oh right, it's 1/100th of a millibar

somber heath
#

@pulsar shale ๐Ÿ‘‹

formal bramble
#

first letter of each word is capitalized

pulsar shale
formal bramble
#

simple

#

rest all lowercase

willow light
#

I was expecting more of "how do you solve a problem like Cla-ri"

#

(sound of music)

somber heath
#

@odd glen @floral shoal ๐Ÿ‘‹

floral shoal
#

Hi

willow light
#

Wait what did I miss?

#

yeah that's a bannin'

upbeat bobcat
floral shoal
#

Did I have my voice permissions revoked?

formal bramble
#

@rugged root Is __init__() different from constructors in Java in terms of what they do except the explicitly written instructions?

somber heath
upbeat bobcat
floral shoal
#

Ah okay

willow light
#

__init__ can be thought of similar to a constructor but with significantly less mental overhead. there are ways to do full constructors if you really want to, but you don't have to, since the __new__ does it for you in the background.

upbeat bobcat
#

Ok

willow light
#

You just do the stuff you actually want to do in __init__

somber heath
#

@sudden palm ๐Ÿ‘‹

formal bramble
#

nice

#

got it

upbeat bobcat
#

can you give me an example with @ ?

willow light
#

Python's approach to OOP is "how can I do this with the least amount of mental bandwidth?"

upbeat bobcat
#

ok

willow light
#

or "how do I do this in a way that is approachable for non-CS students?"

somber heath
#

!e ```py
class MyClass:
pass

instance = MyClass()

print(type(instance))``````py
class MyClass:
def new(self):
return 123

instance = MyClass()
print(type(instance))```

wise cargoBOT
#

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

001 | <class '__main__.MyClass'>
002 | <class 'int'>
willow light
#

"Democratizing Software Engineering"

somber heath
#

You almost never need a __new__

upbeat bobcat
#

ok

rugged root
#

!e

class Student:
  def __init__(self, name, age, favorite_subject):
    self.name = name
    self.age = age
    self.favorite_subject = favorite_subject

  def introduce(self):
    print(f"My name is {self.name} and I am {self.age} years old!")

  def age_next_year(self):
    print(f"Next year I will be {self.age + 1} years old!")
  
  @staticmethod
  def same_favorite(first_student, second_student):
    return first_student.favorite_subject == second_student.favorite_subject

sally = Student("Sally", 10, "Science")
billy = Student("Billy", 9, "Math")

print(Student.same_favorite(sally, billy))
willow light
#

You only need __new__ if you know what you are doing. Given most of my code makes it clear I got my start using Python as a better TI-84 Plus...

wise cargoBOT
#

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

False
ancient herald
#

I'll come join u guys after learning all Basic of Python it's hard to understand ๐Ÿซก

scarlet halo
#

oh hey i didnt know about @ staticmethod!

willow light
#

I've been using Python for everything for almost a decade and I'm still learning new Basics.

#

It is impossible to fully "master" python because there's always something new. Especially every October ๐Ÿ˜‰

upbeat bobcat
#

ok

scarlet halo
#

ah ok

formal bramble
#

Makes sense

scarlet halo
#

hhemlock what are C++ pointers

upbeat bobcat
#

What does @ property do?

willow light
#

My favorite way to use @property is for OAuth:

class Auth:
  ...
  @property
  def token:
    resp = requests.get(path_to_auth_endpoint)
    return resp.get("token")

and you can call it as

auth = Auth()
token = auth.token

and it'll run the method and then store the output as an attribute

#

I usually pair it with TTLCache() from cachetools

#

!pip cachetools

wise cargoBOT
#

Extensible memoizing collections and decorators

Released on <t:1708979603:D>.

rugged root
#

!e

class Student:
  def __init__(self, name, age, favorite_subject):
    self.name = name
    self.age = age
    self.favorite_subject = favorite_subject

  def introduce(self):
    print(f"My name is {self.name} and I am {self.age} years old!")

  def age_next_year(self):
    print(f"Next year I will be {self.age + 1} years old!")
  
  @staticmethod
  def same_favorite(first_student, second_student):
    return first_student.favorite_subject == second_student.favorite_subject

sally = Student("Sally", 10, "Science")
billy = Student("Billy", 9, "Math")

print(sally.name) # that's our getter equivelant
sally.name = "Steve" # that's our setter equivelant
print(sally.name)
wise cargoBOT
#

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

001 | Sally
002 | Steve
willow light
#

so I'd get

class Auth:
  ...
  @cachetools.func.TTLCache(30*60)
  @property
  def token():
    ...

and it'll get the token, set the attribute, and automatically remove it after 30 minutes, when the token expires

scarlet halo
#

@rugged root can i change what the print() function does?

#

even for other modules??

willow light
rugged root
#

Working on writing up a decent @property example

scarlet halo
#

alr

willow light
#

Namespaces are a great idea, we should do more of them

willow light
#

I treat @property as I want to call the method as an attribute because it makes my code prettier.

whole bear
#

@somber heath You shouldve been my CS teacher years ago

willow light
#

There are getters and setters with @property kinda

upbeat bobcat
#

How to do this?

willow light
#

backticks

#

` character

rugged root
#

!e

class Student:
  def __init__(self, name, age, favorite_subject):
    self._name = name
    self.age = age
    self.favorite_subject = favorite_subject

  @property
  def name(self):
    return self._name

sally = Student("Sally", 10, "Science")
billy = Student("Billy", 9, "Math")

print(sally.name)
print(sally._name)
sally.name = "Steve"
wise cargoBOT
#

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

001 | Sally
002 | Traceback (most recent call last):
003 |   File "/home/main.py", line 15, in <module>
004 |     sally.name = "Steve"
005 |     ^^^^^^^^^^
006 | AttributeError: property 'name' of 'Student' object has no setter
willow light
#

it's the equivalent of this in JS or Java

somber heath
#

!e ```py
class MyClass:
def get_self(self):
return self

instance = MyClass()
print(instance is instance.get_self())```

wise cargoBOT
#

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

True
upbeat bobcat
#

you didn't use it in @staticmethod?

willow light
#

JavaScript is weird? NOOO WAAAY

#

yes this is different from self but calling them similar or equivalent is good-enough for this context

upbeat bobcat
#

Why you use _name?

willow light
#

I'll just name it dee-jango

upbeat bobcat
#

ok

rugged root
#

!e

class Student:
  def __init__(self, name, age, favorite_subject):
    self._name = name
    self.age = age
    self.favorite_subject = favorite_subject

  @property
  def name(self):
    return self._name

sally = Student("Sally", 10, "Science")
billy = Student("Billy", 9, "Math")

print(sally.name)
print(sally._name)
sally.name = "Steve"
wise cargoBOT
#

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

001 | Sally
002 | Sally
003 | Traceback (most recent call last):
004 |   File "/home/main.py", line 16, in <module>
005 |     sally.name = "Steve"
006 |     ^^^^^^^^^^
007 | AttributeError: property 'name' of 'Student' object has no setter
willow light
#

It tells coders what your intentions are. Similar to type hinting, something that everyone totally agrees on. /s

willow light
formal bramble
#

this is pointer and self is the object itself, is that?

willow light
formal bramble
#

๐Ÿ˜…

upbeat bobcat
#

anything more I need to know?

formal bramble
willow light
#

I genuinely don't know the specifics, I only know the good-enough.

upbeat bobcat
#

ok

willow light
#

Similar to how science is taught in elementary school vs in college. In elementary school you get taught that animals are herbivores, carnivores, or omnivores. In college you learn that it's more a sliding scale.

#

So I was teaching the simple and probably inaccurate but good-enough version.

somber heath
#

!e ```py
class MyClass:
def init(self):
self.var = 'var'
self.__internal = 'internal'

def get_internal(self):
    return self.__internal

instance = MyClass()
print(instance.var)
print(instance.get_internal())
print(instance.__internal)```Name mangling.

wise cargoBOT
#

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

001 | var
002 | internal
003 | Traceback (most recent call last):
004 |   File "/home/main.py", line 12, in <module>
005 |     print(instance.__internal)
006 |           ^^^^^^^^^^^^^^^^^^^
007 | AttributeError: 'MyClass' object has no attribute '__internal'. Did you mean: 'get_internal'?
rugged root
#

!e

class Person:
  def __init__(self, name):
    self.name = name

  def introduce(self):
    print(f"Hello, my name is {self.name}")


class Student(Person):
  def __init__(self, name, age, favorite_subject):
    super().__init__(name)
    self.age = age
    self.favorite_subject = favorite_subject


billy = Person("Billy")
sally = Student("Sally", 10, "Science")

billy.introduce()
sally.introduce()
wise cargoBOT
#

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

001 | Hello, my name is Billy
002 | Hello, my name is Sally
willow light
#

Anyway, I gotta head to the library and focus on my new book

scarlet halo
willow light
scarlet halo
#

i use hyprland

formal bramble
#

lol, forgive me for the crap on the way:

#

!e

class SomeClass():
    def __init__(this):
        this.attrib = "confusing to python coders, but works"

    def __str__(this):
        return f"This is {this.attrib}!"


s = SomeClass()
print(s)
wise cargoBOT
#

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

This is confusing to python coders, but works!
upbeat bobcat
#

what is super?

verbal wind
#

@rugged root While we're talking inheritence, advanced question: When do we use mix-ins, and when do we use meta-class?

willow light
#

I see nothing wrong with that. If it works, it works.

formal bramble
wise cargoBOT
#

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

This is confusing to python coders, but works!
willow light
#

<trolling>So in python do we use switch-case or do we use polymorphism?</trolling>

verbal wind
#

Meta-class as in....er....@metaclass? I forgot the syntax

upbeat bobcat
willow light
#

I was referring to the dogmatic approach some Enterprise Java devs take to avoiding switch-case

#

Then again, Enterprise Java is more dogma than engineering. That's my hot take.

upbeat bobcat
#

why we do this?

whole bear
#

exec

willow light
#

So when do we bring up the implications of "everything" being an object in Python?

upbeat bobcat
#

oh

willow light
#

This is your reminder that we're just brains driving meat robots, people are indeed objects.

whole bear
#

!e

class SomeClass():
    def thisworks(blah):
        blah.attrib = "confusing to python coders, but works"

    def thisworkstoo(blah):
        return f"This is {blah.attrib}!"


s = SomeClass()
print(s)
wise cargoBOT
#

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

<__main__.SomeClass object at 0x7f5d45267860>
whole bear
#

lol

willow light
#

ok g2g ttyl l8r

verbal wind
#

passing in additional methods
@rugged root I remember doing mixins when I was coding some SQLAlchemy tables: A "base" table and other mixins to introduces additional columns

upbeat bobcat
#

Anything more I need to know?

somber heath
# upbeat bobcat what is super?

!e ```py
class A:
def init(self):
print('A')

class B(A):
def init(self):
print('B')

class C(A):
def init(self):
super().init()
print('C')

A()
print()
B()
print()
C()```

vocal basin
#

@rugged root I just got code generic over monads to work in Rust at compile-time;
my sanity isn't coming back

wise cargoBOT
#

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

001 | A
002 | 
003 | B
004 | 
005 | A
006 | C
upbeat bobcat
#

ok

verbal wind
#

I thought I was being smort by cutting down on repetitive structure. But it turned out to be hard to read. Makes sense now

#

Thanks Hemlock

upbeat bobcat
#

how I practice?

#

and how I practice the whole python?

#

?

verbal wind
#

Speaking of Python and such, why is pyenv the prevalent way to manage Python runtimes? I don't like its overreaching arms trying to be the solution to Python runtime management. I prefer asdf and pipx

vocal basin
# rugged root Wait what why how?

how:
I've made something that works like an associated trait (i.e. the monad itself can specify what it wants of wrappers it deals with instead of reducing them all to a single type)

rugged root
#

!kindlings

wise cargoBOT
#
Kindling Projects

The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.

safe solstice
verbal wind
#

@rugged root May I suggest Simon Tatham's Puzzle Collection? Grab a game, and then try to "generate" a valid puzzle string for the thing

#

It's a great time killer

somber heath
#

@solar spruce ๐Ÿ‘‹

upbeat bobcat
#

Thanks for your time

verbal wind
#

I don't know whether this is gonna apply, but my advice would be: Chase the fun. A lot of people using git? Learn git. People be doing Docker? Learn Docker. People be doing DB? Learn DB.

solar spruce
#

@somber heath hello

upbeat bobcat
#

Nah they were good

safe solstice
#

@peak depot its an outdoor cat though

verbal wind
#

Oh, should we have like a "recommended install list for #1035199133436354600 helping"? I've seen a lot of asking on common libraries like numpy, matplotlib, django, flask, Pillow, whatnot

rugged root
#

Maybe not recommended, but certainly commonly installed

#

Because people may install all of those to a project when you really don't need them

vocal basin
upbeat bobcat
#

how I can know maximum functions?

verbal wind
#

?

vocal basin
#

!d max

wise cargoBOT
#
max

max(iterable, *, key=None)``````py

max(iterable, *, default, key=None)``````py

max(arg1, arg2, *args, key=None)```
Return the largest item in an iterable or the largest of two or more arguments.

If one positional argument is provided, it should be an [iterable](https://docs.python.org/3/glossary.html#term-iterable). The largest item in the iterable is returned. If two or more positional arguments are provided, the largest of the positional arguments is returned.

There are two optional keyword-only arguments. The *key* argument specifies a one-argument ordering function like that used for [`list.sort()`](https://docs.python.org/3/library/stdtypes.html#list.sort). The *default* argument specifies an object to return if the provided iterable is empty. If the iterable is empty and *default* is not provided, a [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError) is raised.
willow gate
upbeat bobcat
verbal wind
#

I'm gonna go grind some rhythm game

#

bye~

upbeat bobcat
#

what does format function do?

#

??

somber heath
#

!d format

wise cargoBOT
#

format(value, format_spec='')```
Convert a *value* to a โ€œformattedโ€ representation, as controlled by *format\_spec*. The interpretation of *format\_spec* will depend on the type of the *value* argument; however, there is a standard formatting syntax that is used by most built-in types: [Format Specification Mini-Language](https://docs.python.org/3/library/string.html#formatspec).

The default *format\_spec* is an empty string which usually gives the same effect as calling [`str(value)`](https://docs.python.org/3/library/stdtypes.html#str).

A call to `format(value, format_spec)` is translated to `type(value).__format__(value, format_spec)` which bypasses the instance dictionary when searching for the valueโ€™s [`__format__()`](https://docs.python.org/3/reference/datamodel.html#object.__format__) method. A [`TypeError`](https://docs.python.org/3/library/exceptions.html#TypeError) exception is raised if the method search reaches [`object`](https://docs.python.org/3/library/functions.html#object) and the *format\_spec* is non-empty, or if either the *format\_spec* or the return value are not strings.
upbeat bobcat
#

thanks

vocal basin
#

!d f-strings

wise cargoBOT
#

2.4.3. f-strings

Added in version 3.6.

A formatted string literal or f-string is a string literal that is prefixed with 'f' or 'F'. These strings may contain replacement fields, which are expressions delimited by curly braces {}. While other string literals always have a constant value, formatted strings are really expressions evaluated at run time.

Escape sequences are decoded like in ordinary string literals (except when a literal is also marked as a raw string). After decoding, the grammar for the contents of the string is:

upbeat bobcat
#

len?

#

!d len

wise cargoBOT
#
len

len(s)```
Return the length (the number of items) of an object. The argument may be a sequence (such as a string, bytes, tuple, list, or range) or a collection (such as a dictionary, set, or frozen set).

**CPython implementation detail:** `len` raises [`OverflowError`](https://docs.python.org/3/library/exceptions.html#OverflowError) on lengths larger than [`sys.maxsize`](https://docs.python.org/3/library/sys.html#sys.maxsize), such as [`range(2 ** 100)`](https://docs.python.org/3/library/stdtypes.html#range).
safe solstice
#

@still herald ohh just judge them back and get back to work

somber heath
#

@whole bear ๐Ÿ‘‹

safe solstice
#

in cities people are more busy ig, and care less

whole bear
upbeat bobcat
#

@somber heath you have nice voice

whole bear
#

@somber heath any advice on how to start learning python ? any particular yt vids ?

somber heath
#

Corey Schafer

whole bear
somber heath
safe solstice
#

how do i go about python if i wanna focus upon graphs and plotting fractals and stuff like that.

whole bear
#

and is it a readable doc or a vid ?

#

could you please send me the library.pdf

safe solstice
#

can u spell it? the first one

whole bear
#

ima watch corey scharfer rn, thank you @somber heath

somber heath
#

matplotlib seaborn

#

pillow

#

numpy

safe solstice
#

Alright! Thankyou @somber heath

somber heath
upbeat bobcat
#

what to look first?

somber heath
#

@split night ๐Ÿ‘‹

#

@fresh osprey ๐Ÿ‘‹

upbeat bobcat
#

I want to do machine learning what libraries should I know?

#

ok

upbeat bobcat
#

@whole bear u are doing machine learning?

#

oh ok

peak depot
#

@whole bear

#

๐Ÿ˜„

rugged root
#

@burnt ravine If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know about the voice gate

burnt ravine
#

Wait

#

Can you help me with some thing ?

rugged root
#

Sure, what's up

burnt ravine
#

Listen

#

I try to do the cool tjhing that it would look like I script

#

Like ``

rugged root
#

Right

somber heath
#

!code

wise cargoBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

burnt ravine
#

I can't submit it

rugged root
#

Is it too much code?

burnt ravine
#

It's in lua

somber heath
#

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

burnt ravine
#

I will send it rn

rugged root
#

Or you might need to make sure you're putting the closing triple ticks

burnt ravine
#

I will send a screen shot

#

And there's more

#

It's eeven more then that

short owl
#

distinguished gremlin ...... lol

rugged root
#

Do you have any white space after lua? Like a space?

#

local AFKstatus = {}

local Event = game:GetService("ReplicatedStorage")
peak depot
short owl
#

Insane British Comedy ... theres a long list

#

The entire DUNE SAGA is on MP3 , all books

rugged root
#

3 day runtime

ancient herald
#

Good night ๐Ÿซก

safe solstice
#

why r all these people differently abled xD @rugged root

#

xD

rugged root
#

Yeah I only realized that after you said it

#

Huh

safe solstice
#

xD @still herald

still herald
upbeat bobcat
#

@rugged root where to find the doc of OOP?

#

I downloaded the pdf but i cant find it.

short owl
#

mmmm ya gonna BBQ ? @peak depot

#

ohh wagyu , just salt + pepper

high acorn
#

@upbeat bobcat share with me too . I have forgetten about solid principles and all ๐Ÿคฃ

upbeat bobcat
high acorn
#

Thanks ๐Ÿ‘

upbeat bobcat
quartz beacon
#

ello

#

Bist du aus Deutschland?

dry jasper
dry jasper
quartz beacon
#

nice

#

i'm ukrainian and learning dutch ๐Ÿ˜Ž

civic ivy
quartz beacon
#

doofenschmirtz?

quartz beacon
civic ivy
#

Perry!

quartz beacon
quartz beacon
#

I have Borsch in my Vyshyvanka ๐Ÿ˜‚

civic ivy
#

borsch is that beetroot soup thing right?

quartz beacon
#

yes

civic ivy
#

what is vyshyvanka

quartz beacon
#

i always forget about hemlock being a mod here because for the last 2 years the only hemlock i knew was this guy

quartz beacon
#

it's pronounced as Yiff

civic ivy
quartz beacon
rugged root
#

(I'm not back yet, just had to throw the joke in)

quartz beacon
rugged root
#

HA

quartz beacon
#

it's YitHut @dry jasper

#

we're going back full greek

#

every g is a y now

#

Yreeting

rugged root
#

I keep forgetting my avatar on that is my old fursona when I was still involved with the community

quartz beacon
#

you quit the furry community? :(

rugged root
#

Just didn't fit me anymore

quartz beacon
#

expect an assassin protogent running on C++ soon ๐Ÿ‘€

#

i would love to voice but haven't been on server in 3 days yet

rugged root
#

Back shortly, just have to help one more co-worker with something

quartz beacon
#

i'm from western Ukraine ๐Ÿ˜Ž

#

๐Ÿ‡บ๐Ÿ‡ฆ

#

is there an enby flag?

#

i saw ace flag

#

you don't want kansas land

#

utilitarianism is literally a philosophical point

#

like, as opposed to other ones

#

๐Ÿ˜ณ

#

the funny 3 polygon car

#

also i was lookign into market of why cars became smooth

#

you know why???

dry jasper
quartz beacon
#

because people don't like to be cut when you run them over

quartz beacon
dry jasper
quartz beacon
#

that works

#

we need more trains.

#

we need trains and public transport

#

there is almost no need for a personal vehicle unless you are like

#

hunter?

rugged root
#

I do delivery so I'd need it

quartz beacon
#

well, ye, but if public busses were better then you wouldn't

#

i'm talking theoretical hypothetical universe here

#

CIS?

#

oh i thought you meant like

#

Commonwealth of Independent States

#

i knew you didn't mean cisgender

#

๐Ÿ˜‚

#

i want to work for CIA

#

(you get free drugs ๐Ÿ˜ณ)

#

/srs i don't want to work for CIA

dry jasper
#

@quartz beacon ukraine signed a contract with a french company to make the rail roads nice again

quartz beacon
#

i am a leftist ๐Ÿ’€

quartz beacon
dry jasper
#

it was a big contract for over 1 billion

quartz beacon
#

i volunteered at a railway

#

MRNA

#

20

#

no worries

#

i'm not shy

#

i don't have the privilege to voiec :(

#

@rugged root has schizophrenia and is talking to voices ๐Ÿ˜ณ

#

i got autism and adhd ๐Ÿ˜Ž

#

mostly helping people

#

low mobility people, children and soldiers

#

we also gave out humanitarian aid

dry jasper
#

krasava

quartz beacon
#

met an iraqui veteran

quartz beacon
dry jasper
#

i did

quartz beacon
#

in russian

#

they

#

and no,i would know.

#

i speak russian, ukrainian, english AND polish

#

and learning dutch

#

i also write music but that's self promo

#

so i won't say much more about it

#

i want to live in netherlands

#

cause i'm a transgender and i want to have rights

#

spreek je nederlands?

dry jasper
#

FRIESLAND!!!

quartz beacon
#

hoarse

#

๐Ÿด

rugged root
#

A horse with a cough is a hoarse

quartz beacon
dry jasper
#

The Friesian (Fries paard in Dutch; Frysk hynder in West Frisian) is a horse breed originating in Friesland in north Netherlands. The breed nearly became extinct on more than one occasion. It is classified as a light draught horse, and the modern day Friesian horse is used for riding and driving. The Friesian horse is most known for its all-blac...

quartz beacon
#

XD

#

ubisoft will be real in 5

thorny hinge
rugged root
quartz beacon
#

i own 2 beautiful rabbits, one of which is named Hemlock the Rabbit๐Ÿ˜‚

dry jasper
#

The Stabyhoun, or Stabijhoun or Stabij (in Frisian), is one of the rarest dog breeds in the world. It hails from the Dutch province of Friesland; its origins lie in the forested region of eastern and southeastern Friesland. The breed has been mentioned in Dutch literature dating back to the early 1800s, but it was not until the 1960s that the br...

quartz beacon
#

half of dutch is just Old English

#

it's first and foremost a germanic language

#

and then it got normanised

dry jasper
#

The Holstein Friesian is an international breed or group of breeds of dairy cattle. It originated in Frisia, stretching from the Dutch province of North Holland to the German state of Schleswig-Holstein. It is the dominant breed in industrial dairy farming worldwide, and is found in more than 160 countries. It is known by many names, among them ...

quartz beacon
#

๐Ÿ˜” damn you the french

#

is holstein related to holand?

#

also Nestor Makhno invented Tachanka
love the man

#

where are you from Milien?

#

could describe anything in america

#

๐Ÿ’€

#

you can't get rich off of {anything}

#

Canada

#

also you need to be a "good white" white

#

i'm slavic, they hate us too

#

despite being white

rugged root
#

Yarp. Americans will find a way to discriminate against anyone. Kind of a hobby

quartz beacon
#

๐Ÿ˜ณ

#

yeah also

#

Slave literally derives from Slav

#

we were the first slaves ever ๐Ÿ˜Ž

#

even then, poles owned ukrainians

#

nah, communism wasn't really all that good either

#

as someone from commie block, it had it's ups and downs

#

like, we got education, but also

#

my family was Kulak'd on the father's mom side

#

she wasn't even like

#

Not poor

#

EINSTEIN

#

girl ๐Ÿ’€

#

i love germanic languages

#

mordhau

#

it's fine

#

where u from?

#

o

#

kiitos

#

i only know 1 word

#

yes

#

i know

#

it's like the 1 word i know

#

i know you call yourself Suomi

#

that's good?

#

they're safe

#

also i don't really like women ๐Ÿ˜Ž

#

i'm a geay non binary thing

#

๐Ÿณ๏ธโ€๐ŸŒˆ

#

nice

rugged root
#

You're in good company in the server

quartz beacon
#

are ukrainian women nice to you?

#

cause i know in romania a lot of ukrainians suck ๐Ÿ’€
cause a lot of them are not there because they're refugees, but because it's better to live there

#

good for them

#

do they speak finnish?

#

i only know suomi and kiitos

#

๐Ÿ˜ญ ๐Ÿ˜‚

#

it is, but it's hard to see with that amount of sun ๐Ÿ’€

#

"silly stuff, like can i have a glass of water"

rugged root
#

https://worldhappiness.report/about/

We use observed data on the six variables and estimates of their associations with life evaluations to explain the variation across countries. They include GDP per capita, social support, healthy life expectancy, freedom, generosity, and corruption. Our happiness rankings are not based on any index of these six factors โ€“ the scores are instead based on individualsโ€™ own assessments of their lives, in particular, their answers to the single-item Cantril ladder life-evaluation question, much as epidemiologists estimate the extent to which life expectancy is affected by factors such as smoking, exercise, and diet.

upbeat bobcat
quartz beacon
#

I know Germans are like
very not social

#

seen tourists here in Ukraine

#

they always just dismiss me

upbeat bobcat
#

yes

quartz beacon
#

i just realised how ironic it is that so many Non Binary people like to learn programming ๐Ÿ˜‚

rugged root
quartz beacon
#

talking about hapiness in finland

rugged root
#

Give me a sec, I'll give you the one I would use

upbeat bobcat
#

ok

#

yes

rugged root
#

!d collections.Counter

wise cargoBOT
#

class collections.Counter([iterable-or-mapping])```
A [`Counter`](https://docs.python.org/3/library/collections.html#collections.Counter) is a [`dict`](https://docs.python.org/3/library/stdtypes.html#dict) subclass for counting [hashable](https://docs.python.org/3/glossary.html#term-hashable) objects. It is a collection where elements are stored as dictionary keys and their counts are stored as dictionary values. Counts are allowed to be any integer value including zero or negative counts. The [`Counter`](https://docs.python.org/3/library/collections.html#collections.Counter) class is similar to bags or multisets in other languages.

Elements are counted from an *iterable* or initialized from another *mapping* (or counter):

```py
>>> c = Counter()                           # a new, empty counter
>>> c = Counter('gallahad')                 # a new counter from an iterable
>>> c = Counter({'red': 4, 'blue': 2})      # a new counter from a mapping
>>> c = Counter(cats=4, dogs=8)             # a new counter from keyword args
quartz beacon
#

do you often call yourself in the 3rd person Hemlock?

upbeat bobcat
#

you just tell me I will do it

quartz beacon
#

it's funny, with rabbits, we don't really call hemlock hemlock

#

it's usually hemhem

#

also i want to ask a python question, but don't wanna interrupt

#

i know, just not rn

#

don't wanna interrupt mtr

#

nothing in programming is cheating

#

Stealing 98% of the code from StackOverflow is not cheating ๐Ÿ˜‚

#

Auspdrk

#

pandas are cool

#

๐Ÿผ

#

here, copy mine

#

~`

#

@thorny hinge

thorny hinge
#
data.columns = ["a", "b", "c", "etc."]```
dry jasper
quartz beacon
#

i know the original too

#

hier kommt die sonne

upbeat bobcat
#

my question?

rugged root
upbeat bobcat
#

ok

quartz beacon
#

i hate having add/adhd

#

legit can't fucking code without any stimulants nowadays

still herald
#

I wanna talk but i don't wanna hear u guys

dry jasper
quartz beacon
quartz beacon
#

not on adderal unfortunately

#

am afraid of therapists because i'm queer

#

in ukraine

#

not exactly tolerant here

rugged root
#

Ah okay, I've got what I was thinking now

still herald
#

I'm not feeling good to be talking so I'll just talk here on chats

quartz beacon
#

you want a grave?

#

XD

upbeat bobcat
quartz beacon
#

i would like to die in netherlands but i might die in Soledar ๐Ÿ˜”

#

buy land in Nevada ๐Ÿ˜‚

dry jasper
#

hugoton

rugged root
#

Still working on it, I promise

safe solstice
#

for how much would you have a pretty good quality land? @thorny hinge

rugged root
#

I'm at work so I'm juggling between here and there

still herald
#

I'm sorry guys I sound pathetic most of the time

still herald
#

Ik you don't like it

safe solstice
quartz beacon
#

god i am like

#

afraid rn

dry jasper
rugged root
quartz beacon
#

only me ๐Ÿ˜Ž

#

(i am immensely not doing well mentally)

#

also Dier means animal in dutch

#

pretty cool

dry jasper
still herald
#

Idk I've changed in a really pathetic way in my early 20s, i thought i would be a happy person but I'm not

upbeat bobcat
quartz beacon
#

nvm

dry jasper
#

dat deer in het nederlands dier is

quartz beacon
#

new word for me

dry jasper
#

๐Ÿ˜„

quartz beacon
#

i love building ๐Ÿ˜Ž

#

hey, so, i need some healp

#

need to do a PUSH request to see every ID or it's relative name and the amount

#

and the total price

#

i have total price but not the ID and Item names

#

here's my Menu.html

{% extends 'main/base.html' %}
{% block title %}My Cafe - Menu{% endblock %}
{% load static %}
{% block content %}
    <h1>Menu</h1>
    
    <form method="post" action="{% url 'place_order' %}">
    {% csrf_token %}
    <ul>
        {% for item in menu_items %}
            <li>
                <a href="{% url 'itemname' item.item %}">{{ item.item }}</a> - ${{ item.price }}
                <input type="number" name="quantity_{{ item.id }}" min="0" value="0" style="width: 3em;">
                <input type="hidden" name="item_id" value="{{ item.id }}">
            </li>
        {% endfor %}
    </ul>
    <button type="submit">Place Order</button>
    
<p>Total Price: <span id="total-price"></span></p>
{% endblock %}
#

also regarding starlink @thorny hinge

#

it's pretty nice, but also Elon can turn it off if he deems your acts bad against russia

#

as he did with out soldiers ๐Ÿ˜ 

#

yes

#

i've said it like 50 times ๐Ÿ˜‚

#

thanks ๐Ÿ‘

#

your cool to

#

not a fan that it went to israel too, but

#

unfortunately so is life

#

can we stop

#

with the politics

#

i don't want to get sadder

#

west

#

they

#

๐Ÿ˜‚

#

at least this is warmer lol

#

i go by she with close friends

#

close

#

i meant like

#

Close close

#

but yeah, anyways

#
def place_order(request):
    if request.method == 'POST':
        # Process the order form data
        total_price = 0
        
        for key, value in request.POST.items():
            if key.startswith('quantity_'):
                item_id = key.split('_')[1]
                quantity = int(value)
                # Retrieve the menu item from the database
                try:
                    menu_item = MenuItem.objects.get(pk=item_id)
                except MenuItem.DoesNotExist:
                    return HttpResponse(status=400, content='Invalid menu item ID')

        # You can further process the order here, such as saving it to the database
        
        # Return an HTTP response with the total price
        if total_price <= 0:
            return HttpResponse(status=405, content='Price is 0')
        
        else:
            order_items = f"Item ID: {item_id}, Quantity: {quantity}"
            order = Order(
                order_items=order_items,
                total_price=total_price,
                user=request.user  # Assuming you have authentication set up
            )
            order.save()
            return HttpResponse(status=200, content=f'Total price: {total_price}')
        
    else:
        # If the request method is not POST, return an error response
        return HttpResponse(status=405, content='Invalid request method')

here's my views.py method

#

it doesn't work since i migrated

#

because i changed the code according to Boxed's suggestion

#

it currently always says the price is 0

#

and i need it to make a list of every thing ordered and show it to the admin

#

so that it can go and be shown to barista

#

sorry

short owl
#

California = high taxes

quartz beacon
#

if i was rich i'd buy a house in the center of amsterdam ๐Ÿ˜Ž
and like 50 tons of we'd

rugged root
#
from collections import Counter

word_counter = Counter()

with open("text.txt") as file:
  for line in file.readlines():
    cleaned = line.strip().split(" ")
    word_counter.update(cleaned)

word_counter.most_common(2)
#

Something like that

short owl
#

a weed farm

rugged root
#

Sorry it took me so long, prepping for a meeting

quartz beacon
#

no worries

rugged root
#

For MTR

quartz beacon
#

yeah, i just saw

#

sorry

rugged root
#

I should have pinged

upbeat bobcat
#

you wrote the whole code

quartz beacon
#

why wouldn't he

thorny hinge
rugged root
#

Yeah I didn't have an easy way to just suggest it

#

Look at it, don't copy it. Understand what it's doing, ask questions

thorny hinge
upbeat bobcat
#

I wanted you to explain me

rugged root
#

Right, sorry, got distracted.

upbeat bobcat
#

Ok np

rugged root
#

Key thing is going to be using this

quartz beacon
rugged root
#

I should have just linked that to begin with

upbeat bobcat
quartz beacon
#

gotch

rugged root
#

Again, my bad

#

I'm usually better about that

quartz beacon
#

don't apologise

#

you're literally amazing

upbeat bobcat
#

I just didn't know how I can do that

quartz beacon
#

i am not a fan of second ammendment as it is rn

upbeat bobcat
rugged root
#

Yeah, you can either implement something similar to Counter, but it's easier and more efficient to just use it from collections

quartz beacon
#

strip you? ๐Ÿ˜ณ

#

do they strip you each year?

upbeat bobcat
#

thanks @rugged root

rugged root
#

Yarp

quartz beacon
#

i can confirm

#

i own an air rifle

thorny hinge
quartz beacon
#

i have a 1 loader

#

it's 4.5mm

#

1100 FPS

#

good for clearing pests

dry jasper
#

fx drs

quartz beacon
#

but yeah, if your air rifle is stronger than a pistol it's for either big game or asssassinations

safe solstice
alpine crow
rugged root
#

I'll be back after the meeting

thorny hinge
quartz beacon
#

do i need to post the db?

upbeat bobcat
dry jasper
upbeat bobcat
#

how

alpine crow
#

!collections

quartz beacon
#

correct me if i'm wrong, pip install collections?

alpine crow
#

!doc collections

wise cargoBOT
quartz beacon
alpine crow
#

that is right

#

but I thought this is part of python

#

like importing csv

upbeat bobcat
alpine crow
#

I mean its on the python docs

#

yeah u should have it

#

what error are you getting

#

when u run the code?

#

collections should just be a package in python that lets you use more datatypes

upbeat bobcat
alpine crow
#

u shouldnt need to install it

#

its part of python

#

Im 99% sure

upbeat bobcat
#

ok

alpine crow
#

!e

from collections import defaultdict

def occurrence(inside: list) -> dict:
    occurrence = defaultdict(int)
    for txt in inside:
        occurrence[txt] += 1
    return dict(occurrence)
print(occurrence([1,1,1,2,3,4,4,4,3,2,3]))```
wise cargoBOT
#

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

{1: 3, 2: 2, 3: 3, 4: 3}
alpine crow
#

this is some random code I gave someone yesterday tho

#

it should run on ur pc too tho if u just wanna check collections works

#

but I dont think u need to do anything to get collections to work in your code, if you're having an issue its prolly something else

upbeat bobcat
#

Yeah it was my mistake I didn't print anything and I was expecting output

alpine crow
#

same thing I did in the example ๐Ÿ˜‚

upbeat bobcat
#

๐Ÿ˜…

safe solstice
#

@whole bear have you ever had a loss, since you don't have any security stuff?

#

that's weird

alpine crow
#

No action shall be maintained against any person for the recovery of real property who has been in open, exclusive and continuous possession of such real property, either under a claim knowingly adverse or under a belief of ownership, for a period of fifteen (15) years.

quartz beacon
#

oh yeah

#

my b

alpine crow
#
  • Hostile/Adverseโ€”The squatter must not have a valid lease or rental agreement with the owner.
  • Actualโ€”The squatter must have actively lived in the property for a certain length of time.
  • Open and notoriousโ€”The squatterโ€™s possession of the property is open and obvious to neighbors or anyone else. They arenโ€™t living there โ€œin secretโ€ or trying to hide their presence.
  • Exclusiveโ€”The squatter does not share possession of the property with anyone else. They prevent others from living there like an owner would.
  • Continuousโ€”The squatter must hold continuous and uninterrupted possession of the property (15 consecutive years in Kansas).
quartz beacon
#

god

#

that's a lot of rules

safe solstice
#

how do u prevent such an event?

dry jasper
#

Adverse possession is a legal principle in Anglo-American common law that allows a person to acquire legal ownership of a property, usually land, based on continuous possession or occupation of the property without the permission of its legal owner for a specified period of time.

safe solstice
dry jasper
safe solstice
dry jasper
#

if you have a big piece of land i would need deer cameras, they take pictures when they detect movement. so you can spot when someone is walking on your land.]

dry jasper
vestal light
#

Take a look around. The only greenery is the irrigation.

#

No trees, no hills, nothing but "stick an irrigation circle on it"

whole bear
safe solstice
#

are you allowed to build a house or any commercial property on a hunting and grazing land?

vestal light
#

"Consistent mineral production" usually refers to oil/gas production or some kind of mining. Mineral rights are a separate topic of dicussion.

alpine crow
thorny hinge
vestal light
vestal light
#

Farming... be very good friends with your farm insurance guy.

safe solstice
#

so you could have some owned work like a startup or something and then the 3,4 months you just work in the farm

thorny hinge
vestal light
#

It's really damned hard

#

Y'all are thinking of the Disney version of farming

#

Huge costs, loans, massive reliance on government insurance

#

Have y'all watched Clarkson's Farm?

#

There's no guarantee you'll sell what you grow.

thorny hinge
vestal light
#

You can also get stuck with unsellable stock.

#

Storage fees are a *****

#

That's not by choice

#

Getting an agg exemption is a pretty low bar for a small property.

alpine crow
#

@whole bear

safe solstice
#

but blinker is a latter part, he firstly needs to know how to drive xD

vestal light
#

It's a sad BMW driver face. Wondering what that weird side stalk is for.

alpine crow
#

It looks like you tried to attach file type(s) that we do not allow (.avif). We currently allow the following file types: .jpg, .jpeg, .mov, .gif, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a, .csv, .json.

vestal light
#

The 'bruv' didn't give kawaii away?

alpine crow
#

gets +1 hp

#

-0.1 lbs

#

seatbelt delete also

#

+3 hp

alpine crow
#

sheee

vestal light
#

8515 acres though

thorny hinge
alpine crow
safe solstice
#

good idea

vestal light
#

Has DJI fixed their altitude bug?

alpine crow
vestal light
#

The one where it wasn't taking into account the local altitude for height limits

alpine crow
vestal light
#

Just wait till we start down the path of cattle ranching.

alpine crow
#

so even if gps is messed up it should be fine

safe solstice
#

@whole bear i meant that you said in commercial world they don't receive the 100% profit, but with the mechanism that you have you do, so I just wanted to know if there are any shortcomings in that method that you use

alpine crow
upbeat bobcat
#

why they are wasting tomatoes?

vestal light
#

Celebration/tradition

upbeat bobcat
#

what you said?

upbeat bobcat
vestal light
#

Oranges have a convenient hard wrapper for storage

#

Now mix the tomatoe thing with the bull run. I'm sure that won't go wrong.

#

Oranges and limes store well and have enough to work for purpose

thorny hinge
vestal light
#

The problem I have with tomatos is variability

#

A good fresh heirloom has so much flavor. Most are bland and empty of joy.

#

Daaaang. That's a good looking rack elk.

#

You won't hold onto it any better than that pig

rugged root
#
use gtk::prelude::{BoxExt, ButtonExt, OrientableExt};
use rand::prelude::IteratorRandom;
use relm4::{gtk, ComponentParts, ComponentSender, RelmApp, RelmWidgetExt, SimpleComponent};
quartz beacon
#

hello mr hemlock

quartz beacon
#

sad i can't talk :(

rugged root
vestal light
#

@quartz beacon Everyone is getting redy for fall?

rugged root
#

I'm barely ready for summer

#

If you plan a trip, would it be in fall?

quartz beacon
#

oh

#

Autumn?

vestal light
#

Nuts, missed the "reply-to". And missed the delivery on that joke ๐Ÿ˜ฆ

quartz beacon
#

there's C and there's C++

#

where's C+

vestal light
#

I prefer c++++

quartz beacon
#

I prefer the evil version

#

B--

vestal light
#

F# that!

lavish rover
#

ocen best lang

alpine crow
vestal light
#

I tried some haskell stuff a while back. It was fun to play with, nothing I wanted to live in.

rugged root
#

I couldn't get into Haskell as much

#

F#, OCaml, ones like that click better in my head

vestal light
#

An ME degree? More like a Masters of Excel.

#

<-- Also a MechE

alpine crow
rugged root
#

Rust has some fun functional stuff, too

#
#[derive(Debug)]
enum AppMsg {
    Increment,
    Decrement,
}

fn update(&mut self, msg: Self::Input, _sender: ComponentSender<Self>) {
    match msg {
        AppMsg::Increment => {
            self.counter = self.counter.wrapping_add(1);
        }
        AppMsg::Decrement => {
            self.counter = self.counter.wrapping_sub(1);
        }
    }
}
alpine crow
#
   enum IpAddr {
        V4(String),
        V6(String),
    }

    let home = IpAddr::V4(String::from("127.0.0.1"));

    let loopback = IpAddr::V6(String::from("::1"));```
alpine crow
#

OP

#
enum Coin {
    Penny,
    Nickel,
    Dime,
    Quarter,
}

fn value_in_cents(coin: Coin) -> u8 {
    match coin {
        Coin::Penny => 1,
        Coin::Nickel => 5,
        Coin::Dime => 10,
        Coin::Quarter => 25,
    }
}```
lavish rover
#

most langs have the regular enumd right?

#
enum Coin {
    Penny
    Nickel
    Dime
    Quarter
}

def value_in_cents(coin: Coin): u8 => match coin {
      Penny => 1,
      Nickel => 5,
      Dime => 10,
      Quarter => 25,
}
rugged root
vestal light
#

Drivers first, check temperatures next

#

What are you trying to run raven?

#

What settings?

#

Is this a new problem? Last couple days?

#

If temps aren't hitting 80-90s, it's not thermal throttling

#

850 should be plenty at stock

rugged root
rapid chasm
#

@rugged root I love Python. Does Python love me?

lavish rover
wise cargoBOT
#

@rapid chasm Reply hazy, ask again later.

rapid chasm
#

Of Course

rugged root
#

God I love the improved echo I did...

#

Probably one of the few things I added to the bot that's still there

#

Oh and the voice verify button

upbeat bobcat
#

class User(): def __init__(self, name, age, gender): self.name = name self.age = age self.gender = gender def details(self): print ('"Personal Details"') print ("") print ("Name: ", self.name) print ("Age: ", self.age) print ("Gender: ", self.gender) class Bank(User): def __init__(self, name, age, gender): super().__init__(name, age, gender) self.balance = 0 def deposit(self,amount): self.amount = amount self.balance = self.balance + self.amount print("Account balance has been updated: $", self.balance) def withdraw(self, amount): self.amount = amount if self.amount > self.balance: print ("Insufficient Funds | Balance Available: $", self.balance) else: self.balance = self.balance - self.amount print ("Account balance has been updated: $", self.balance) def view_balance (self): self.details() print ("Account balance has been updated: $", self.balance)

#

this is correct?

rapid chasm
lavish rover
rugged root
#

You have hunted well

dry jasper
rugged root
#

Looks fine

rapid chasm
#

See you guys in the fog

upbeat bobcat
#

why not giving output?

vestal light
#

@flint hill After an ME and MBA... yeah, most people do have to deal with that shit

rugged root
#

You have to make an object from it and call the methods

upbeat bobcat
#

How

#

?

vestal light
#

Eh, lithium is dropping

#

There was a recent big find in Utah

#

The sodium battery tech is coming on strong, I wouldn't bet heavy long term on lithium

upbeat bobcat
rugged root
#

I'm just typically not on during the weekends

upbeat bobcat
rugged root
#

Sorry

#

How drunk are you

upbeat bobcat
#

Ok see you on Monday

rugged root
#

Jesus, Beer

cunning spindle
#

valid

rapid chasm
thorny hinge
dry jasper
#

@rapid chasm โค๏ธ ๐Ÿ‡บ๐Ÿ‡ธ ๐Ÿฆ…

vestal light
#

LEEDS 2.0

rugged root
#

3M = Mike, Mike, and Mike

#

Fancy

thorny hinge
#

minnesota mining and manufacturing

vestal light
#

So ask yourself why they aren't

#

They're way ahead of us on keeping track of demand and conditions

#

So why aren't they already there up to their eyeballs

alpine crow
thorny hinge
#

greenhouse gas sources

#

us epa

#

yeah

#

yeah just a proxy

rugged root
#

Fun fact, small airplanes still use leaded gas

alpine crow
dry jasper
#

Nuclear marine propulsion is propulsion of a ship or submarine with heat provided by a nuclear reactor. The power plant heats water to produce steam for a turbine used to turn the ship's propeller through a gearbox or through an electric generator and motor. Nuclear propulsion is used primarily within naval warships such as nuclear submarines an...

rugged root
#

Still makes me cringe

cunning spindle
#

Nuclear power reactors do not produce direct carbon dioxide emissions. The Co2 comes from enriching the materials used. The materials used in nuclear weapons, such as enriched uranium and plutonium, can be repurposed for use in nuclear reactors therefore bypassing the Co2 produced. France are currently using this model and thats why they have so many nuclear reactors.

cunning spindle
# rugged root TIL, I didn't realize that

Its a very interesting fact that a lot of renewable energy supporters tend to not know. Germanys renewable energy campaign vs French nuclear campaign is very interesting.

#

About 27 tonnes of uranium โ€“ around 18 million fuel pellets housed in over 50,000 fuel rods โ€“ is required each year for a 1000 MWe pressurized water reactor. In contrast, a coal power station of equivalent size requires more than two and a half million tonnes of coal to produce as much electricity.

Source: https://world-nuclear.org/nuclear-essentials/how-is-uranium-made-into-nuclear-fuel#:~:text=About 27 tonnes of uranium,to produce as much electricity.

alpine crow
#

Marv Adams, deputy administrator for defense programs at the National Nuclear Security Administration explained what happened in the successful fusion experiment with a prop.
Subscribe to Guardian News on YouTube โ–บ http://bit.ly/guardianwiressub

Holding up a cylinder similar to the one used in the experiment he walked the audience through the p...

โ–ถ Play video
#

Succesful Fusion Test ๐Ÿ˜ฉ

#

net positive energy output

rugged root
alpine crow
#

pr sure it was the first net positive

cunning spindle
alpine crow
#

yeah

rugged root
#

Again, I'm not disagreeing. Nuclear is dope

#

More just saying why the public is going to be hesitant

#

A lot of misinformation and misunderstanding

cunning spindle
#

The problem is how to communicate to future generations where nuclear waste is. Proper disposal and management of nuclear waste pose significant technical, logistical, and regulatory challenges. Identifying suitable disposal sites, designing secure containment facilities, and implementing robust monitoring and safeguard measures are essential for minimizing the long-term risks associated with nuclear waste. The current radioactive sign does not inheritably communicate what radioactivity is.

alpine crow
#

yeah

cunning spindle
#

this doesnt mean anything to someone who hasnt been taught what it is

alpine crow
#

but only if all history is destroyed

#

everyone that has seen our current society knows what that means

#

so we r worried abt post apocalyptic humans?

vestal light
#

US has a phobia of reprocessing spent fuel rods.

alpine crow
#

when we have current problems of co2 emissions

cunning spindle
alpine crow
#

yeah

#

but that doesnt matter

dry jasper
#

Yanar Dagh (Azerbaijani: Yanar DaฤŸ, lit.โ€‰'burning mountain') is a natural gas fire which blazes continuously on a hillside on the Absheron Peninsula on the Caspian Sea near Baku, the capital of Azerbaijan (a country which itself is known as "the Land of Fire"). Flames jet into the air 3 metres (9.8 ft) from a thin, porous sandstone layer. Admini...

alpine crow
#

if we have stable society

#

only if we lose all history

#

why do we care what happens after an apocalypse

#

y dont we prevent it

#

we will know where they r unless we somehow lose all our information

whole bear
cunning spindle
#

its not about what happens after an apocalypse, an apocalypse is not the only cause for losing information

rugged root
#

History is written by the winners.

stark river
rugged root
#

Entire civilizations and their history have been completely wiped away

stark river
#

History is nothing but memoirs of the victor - Napolean

vestal light
rugged root
cunning spindle
#

@alpine crow im assuming this was the concept of hostile design you were talking about

vestal light
#

Roses

cunning spindle
# alpine crow why do we care what happens after an apocalypse

Nuclear waste remains hazardous for thousands to millions of years, far beyond the timescales that human societies have existed. Ensuring that warning markers, signage, or other communication methods remain intact and understandable over such vast timescales is a significant challenge. Apocalypse is not necessary for this to be a problem.

alpine crow
#

no way millions

#

idk any isotope with a half life that long

vocal basin
#

what remains for millions of years doesn't radiate that much

alpine crow
#

I feel like its 10k years

#

tops

vocal basin
#

uranium and some others have a very long half-time

cunning spindle
#

Uranium-238 has a half-life of 4.5 billion years

thorny hinge
cunning spindle
thorny hinge
#

Its for france the number I gave you

alpine crow
#

but what REM is the uranium they put in the ground

#

and what REM is a safe amount

#

it does not have to completely decompose

vocal basin
alpine crow
#

the process of fission breaks uranium into cesium and stronium

#

which have much shorter half lives

#

and also they can use cleaner fuels

vocal basin
#

?

alpine crow
#

yea htypo

rugged root
#

Nuclear Fishin'

alpine crow
#

obviously as there r no fusion reactors

vestal light
#

The designs for the smaller thorium reactors cover most of the issues...but still "nuclear" with "radiation"

dry jasper
vocal basin
#

uranium waste comes from refining uranium not from reactors