#voice-chat-text-0
1 messages ยท Page 309 of 1
Anyone have any experience with pymem?
I need to create post?
Am I allowed to discuss pymem if it's made for making cheats?
Can you explain me the topic? I don't know anything. I am not getting it.
every part
@rugged root It can be used for multi-player... but I only use it for single player just for a new experience
@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
oi
sorry this headset and the fact that I'm using the cinnamon DE aren't getting along
fucking pulseaudio
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
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.
Not really I find myself decent with hand and eye coordination It's just a whole new area of gaming but I tend to do it single player
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
Yeah well I guess its preference I find it super fun
anyway ima head out nice chatting
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.
Have a good one
Always support human artists.
Did you know you have rights? Well Discord does and they've gone ahead and fixed that for you.
Because in Discord's long snorefest of their Terms of Service, they signed you up for FORCED ARBITRATION. Now when I first heard of this, I had no clue what arbitration meant and if it was even important.
So that's why I've made a whole Discord video...
Say it with me: enshittification
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
@somber heath worked out well in Salem, got rid of all the witches that way
@formal bramble You meet the criteria
Just have to hit the button in #voice-verification
oh right I need to trigger the verification
Being accused is evidence enough. Sounds almost McCarthyist
thanks lol
Any system is better than no system. We've all read Hobbes lol
Thomas Hobbes
where do you think the names came from
Fair point
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.
@safe solstice Yo
Purring and happy. And I'm doing alright
great
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.
@rugged root I am back
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
@rugged root you may find this interesting, local opportunities for enforce grass-touching
Sounds like potential grounds for a lawsuit.
My ADA accommodation to be fully remote (before I was laid off) was, in its entirety, "we won't fire you for not coming in".
PIP was on the table.
It left all other forms of retaliation on the table. Boy howdy did they use them.
youtube in the terminal (python)
!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()
@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!
what is self?
@hasty path ๐
Ok
@safe solstice ๐
It allows the object access to itself
hey @somber heath how r u?
I mean you can if you want, but please don't.
ok
...
sally = Student("Sally", 10, "Science")
print(sally.name)
# output: "Sally"
Next we'll cover public, private, protected
no
kidding this is python
is this good?
Hang on writing a FactoryFactoryIntegerDividerFactoryImpl in Python
factory*3?
@whole bear https://github.com/rust-lang/rustlings
Is it even OOP if it doesn't make it impossible to find the file in which the actual functionality lives?
I saw people using @ somthing above functions
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
why you use init as first function?
__init__
init is constructor
don't know what to say, hope it all works out : )
constructs the object
__init__ is the equivalent of a constructor
well, not really, but it can be thought of as being similar enough to count. sorta.
oh ok
It abstracts the part of constructors you don't want to deal with away so you don't have to.
My favorite decorator: @property
__init__ __str__ __repr__
Nothing is forever.
Student S should be capital for class
Don't forget my two favorite dunders: __aenter__ and __aexit__
PascalCase
ok
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
CollegeStudents
@pulsar shale ๐
first letter of each word is capitalized
Hi
@odd glen @floral shoal ๐
Hi
why you put self. in 'init' function?
Did I have my voice permissions revoked?
@rugged root Is __init__() different from constructors in Java in terms of what they do except the explicitly written instructions?
???
Ah okay
__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.
Ok
You just do the stuff you actually want to do in __init__
@sudden palm ๐
can you give me an example with @ ?
Python's approach to OOP is "how can I do this with the least amount of mental bandwidth?"
ok
or "how do I do this in a way that is approachable for non-CS students?"
!e ```py
class MyClass:
pass
instance = MyClass()
print(type(instance))``````py
class MyClass:
def new(self):
return 123
instance = MyClass()
print(type(instance))```
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | <class '__main__.MyClass'>
002 | <class 'int'>
"Democratizing Software Engineering"
You almost never need a __new__
ok
!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))
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...
@rugged root :white_check_mark: Your 3.12 eval job has completed with return code 0.
False
I'll come join u guys after learning all Basic of Python it's hard to understand ๐ซก
You'll be a while.
oh hey i didnt know about @ staticmethod!
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 ๐
ok
wouldnt it be smarter to use sally.same_favourite(billy)?
ah ok
Makes sense
hhemlock what are C++ pointers
What does @ property do?
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
!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)
@rugged root :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | Sally
002 | Steve
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
Yup. You can do that with anything, but then you'll piss off anyone who tries to maintain or run it.
Working on writing up a decent @property example
alr
Namespaces are a great idea, we should do more of them
ok
I treat @property as I want to call the method as an attribute because it makes my code prettier.
@somber heath You shouldve been my CS teacher years ago
There are getters and setters with @property kinda
How to do this?
!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"
@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
why you use self?
it's the equivalent of this in JS or Java
!e ```py
class MyClass:
def get_self(self):
return self
instance = MyClass()
print(instance is instance.get_self())```
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
True
you didn't use it in @staticmethod?
JavaScript is weird? NOOO WAAAY
yes this is different from self but calling them similar or equivalent is good-enough for this context
Why you use _name?
I'll just name it dee-jango
ok
!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"
@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
It tells coders what your intentions are. Similar to type hinting, something that everyone totally agrees on. /s
how? sorry I was deafened
they occupy similar niches in the object
this is pointer and self is the object itself, is that?
I wish it was that simple
๐
anything more I need to know?
I'm asking
That was code for "fuck if I know"
I genuinely don't know the specifics, I only know the good-enough.
ok
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.
!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.
@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'?
!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()
@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
Anyway, I gotta head to the library and focus on my new book
is that gnome?
Cinnamon, because I'm a masochist
i use hyprland
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)
@formal bramble :white_check_mark: Your 3.12 eval job has completed with return code 0.
This is confusing to python coders, but works!
what is super?
@rugged root While we're talking inheritence, advanced question: When do we use mix-ins, and when do we use meta-class?
I see nothing wrong with that. If it works, it works.
!e
class SomeClass():
def __init__(blah):
blah.attrib = "confusing to python coders, but works"
def __str__(blah):
return f"This is {blah.attrib}!"
s = SomeClass()
print(s)
@formal bramble :white_check_mark: Your 3.12 eval job has completed with return code 0.
This is confusing to python coders, but works!
<trolling>So in python do we use switch-case or do we use polymorphism?</trolling>
Meta-class as in....er....@metaclass? I forgot the syntax
Why you define name in second class?
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.
why we do this?
exec
So when do we bring up the implications of "everything" being an object in Python?
oh
This is your reminder that we're just brains driving meat robots, people are indeed objects.
!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)
@whole bear :white_check_mark: Your 3.12 eval job has completed with return code 0.
<__main__.SomeClass object at 0x7f5d45267860>
lol
ok g2g ttyl l8r
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
Anything more I need to know?
!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()```
@rugged root I just got code generic over monads to work in Rust at compile-time;
my sanity isn't coming back
@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
ok
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
Wait what why how?
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
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)
!kindlings
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.
thanku
@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
@solar spruce ๐
Thanks for your time
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.
@somber heath hello
Nah they were good
@peak depot its an outdoor cat though
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
Maybe not recommended, but certainly commonly installed
Because people may install all of those to a project when you really don't need them
flask is not recommended for any circumstance
how I can know maximum functions?
?
!d 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.
hello
??
!d format
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.
thanks
!d f-strings
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:
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).
@still herald ohh just judge them back and get back to work
@whole bear ๐
in cities people are more busy ig, and care less
hello
@somber heath you have nice voice
๐๐ญ
@somber heath any advice on how to start learning python ? any particular yt vids ?
Corey Schafer
ill defo check that out, thank you for the help
how do i go about python if i wanna focus upon graphs and plotting fractals and stuff like that.
can u spell it? the first one
Alright! Thankyou @somber heath
python.org, documentation, upper left download page link
@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
Sure, what's up
Right
!code
I can't submit it
Is it too much code?
It's in lua
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
I will send it rn
Or you might need to make sure you're putting the closing triple ticks
distinguished gremlin ...... lol
Do you have any white space after lua? Like a space?
local AFKstatus = {}
local Event = game:GetService("ReplicatedStorage")
"...and now for something completely different." was first released in August of 1972 [ United States ].
It was then re-released in 1974 as a response to the Flying Circus' growing viewer popularity on PBS (Public Broadcasting Service) television stations which, at that time, were airing their original comedy series.
{Script}
"Squad.....Cam...
Insane British Comedy ... theres a long list
The entire DUNE SAGA is on MP3 , all books
3 day runtime
xD @still herald
Ik I'm the funniest
@rugged root where to find the doc of OOP?
I downloaded the pdf but i cant find it.
@upbeat bobcat share with me too . I have forgetten about solid principles and all ๐คฃ
Thanks ๐
np
klar ๐
doofenschmirtz?
sounds like him ๐
Perry!
I have Borsch in my Vyshyvanka ๐
borsch is that beetroot soup thing right?
yes
what is vyshyvanka
i always forget about hemlock being a mod here because for the last 2 years the only hemlock i knew was this guy
Ukrainian traditional clothing
it's pronounced as Yiff
Oh
too cute
How'd you get that picture of me
(I'm not back yet, just had to throw the joke in)
your github
HA
it's YitHut @dry jasper
we're going back full greek
every g is a y now
Yreeting
I keep forgetting my avatar on that is my old fursona when I was still involved with the community
you quit the furry community? :(
Just didn't fit me anymore
expect an assassin protogent running on C++ soon ๐
i would love to voice but haven't been on server in 3 days yet
Back shortly, just have to help one more co-worker with something
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???
why? i saw property for 800-900 dollar the acre
because people don't like to be cut when you run them over
i can hear you dw, but it's because you don't want to live in the US
i do for pension when i am old
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?
I do delivery so I'd need it
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
@quartz beacon ukraine signed a contract with a french company to make the rail roads nice again
i am a leftist ๐
well, yeah, after russia destroyed them
it was a big contract for over 1 billion
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
krasava
met an iraqui veteran
don't call me that ๐
i did
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?
FRIESLAND!!!
A horse with a cough is a hoarse
the typa thing happening in Friesland
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...
i own 2 beautiful rabbits, one of which is named Hemlock the Rabbit๐
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...
half of dutch is just Old English
it's first and foremost a germanic language
and then it got normanised
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 ...
๐ 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
Yarp. Americans will find a way to discriminate against anyone. Kind of a hobby
๐ณ
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
You're in good company in the server
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"
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.
The World Happiness Report is a partnership of Gallup, the Oxford Wellbeing Research Centre, the UN Sustainable Development Solutions Network, and the WHRโs Editorial Board. The report is produced under the editorial control of the WHR Editorial Board.
From 2024, the World Happiness Report is a publication of the Wellbeing Research Centre at...
I want to create a program that reads a text file and print the top 2 words written in it. how can I do that?
I know Germans are like
very not social
seen tourists here in Ukraine
they always just dismiss me
yes
@thorny hinge Just linked it
i just realised how ironic it is that so many Non Binary people like to learn programming ๐

So there's a few ways
talking about hapiness in finland
Give me a sec, I'll give you the one I would use
!d collections.Counter
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
do you often call yourself in the 3rd person Hemlock?
you just tell me I will do it
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
data.columns = ["a", "b", "c", "etc."]```
@quartz beacon https://youtu.be/bSPKqa-jXSI
Provided to YouTube by DistroKid
Sonne ยท Grandma's Smuzi
Sonne
โ Grandma's Smuzi Records
Released on: 2021-06-30
Auto-generated by YouTube.
lol, thanks
i know the original too
hier kommt die sonne
my question?
ok
I wanna talk but i don't wanna hear u guys
like what? coffe?
XD
yeah, or energy drinks
not on adderal unfortunately
am afraid of therapists because i'm queer
in ukraine
not exactly tolerant here
Ah okay, I've got what I was thinking now
I'm not feeling good to be talking so I'll just talk here on chats
That's alright
?
i would like to die in netherlands but i might die in Soledar ๐
buy land in Nevada ๐
hugoton
Still working on it, I promise
for how much would you have a pretty good quality land? @thorny hinge
I'm at work so I'm juggling between here and there
I'm sorry guys I sound pathetic most of the time
8k per acre he said
Ik you don't like it
okk
You're fine, we all have those times
we can't all be 100% all the time
only me ๐
(i am immensely not doing well mentally)
also Dier means animal in dutch
pretty cool
klopt
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
ok take your time
dat deer in het nederlands dier is
new word for me
๐
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
California = high taxes
if i was rich i'd buy a house in the center of amsterdam ๐
and like 50 tons of we'd
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
a weed farm
Sorry it took me so long, prepping for a meeting
no worries
that for me?
nvm
For MTR
I should have pinged
you wrote the whole code
why wouldn't he
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
I wanted you to explain me
Right, sorry, got distracted.
Ok np
Key thing is going to be using this
i can explain the written code
I should have just linked that to begin with
I understand the code
gotch
I just didn't know how I can do that
i am not a fan of second ammendment as it is rn
np
Yeah, you can either implement something similar to Counter, but it's easier and more efficient to just use it from collections
thanks @rugged root
Yarp
fx drs
but yeah, if your air rifle is stronger than a pistol it's for either big game or asssassinations
the sunrise sunsets must look really pretty from here
I'll be back after the meeting
gotta go, if you can help lmk with a ping, also i added OrderItem db for it to handle the MenuItems being saved
do i need to post the db?
@quartz beacon I have to install library collection
yes
how
!collections
correct me if i'm wrong, pip install collections?
!doc collections
Source code: Lib/collections/__init__.py
This module implements specialized container datatypes providing alternatives to Pythonโs general purpose built-in containers, dict, list, set, and tuple.
if not then ask Video
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
when I install collections.
ok
!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]))```
@alpine crow :white_check_mark: Your 3.12 eval job has completed with return code 0.
{1: 3, 2: 2, 3: 3, 4: 3}
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
Yeah it was my mistake I didn't print anything and I was expecting output
same thing I did in the example ๐
๐
@whole bear have you ever had a loss, since you don't have any security stuff?
that's weird
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.
- 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).
how do u prevent such an event?
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.
how would you save your property from such events, is there a particular way or you'll have to use brute force or any such kind of thing? cause the outsider would just claim it eventually otherwise
you have to spot them and tell them to leave the property and call the police i guess
alright, there aren't any such tactics ig then
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.]
ohh alright
3 miles northwest of Hugoton, KS sits a great opportunity for deer hunting, cattle grazing, or both. This 155 +/- acre pasture is surrounded by irrigated cropland to the north and west and rolling pastures to the south and east. As you arrive on the county road on the west side, you will find a secure all-metal gate with a well-maintained fence ...
Take a look around. The only greenery is the irrigation.
No trees, no hills, nothing but "stick an irrigation circle on it"
fair enough
are you allowed to build a house or any commercial property on a hunting and grazing land?
"Consistent mineral production" usually refers to oil/gas production or some kind of mining. Mineral rights are a separate topic of dicussion.
Depends on how you file the property. Very dependent on the state.
alrightt
Farming... be very good friends with your farm insurance guy.
so you could have some owned work like a startup or something and then the 3,4 months you just work in the farm
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.
okk
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.
but blinker is a latter part, he firstly needs to know how to drive xD
It's a sad BMW driver face. Wondering what that weird side stalk is for.
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.
The 'bruv' didn't give kawaii away?
yeah I did the turn signal delete in my bmw
gets +1 hp
-0.1 lbs
seatbelt delete also
+3 hp
sheee
8515 acres though
Introducing DJI Dock 2, the next step in remote drone technology.
Dock 2 is a drone-in-a-box unit that allows you to operate drones remotely. It is 70% smaller in size and weight than its predecessor, enabling operators to transport the unit to previously impossible-to-reach locations. Dock 2 is equipped with the Matrice 3D or Matrice 3TD, bot...
good idea
Has DJI fixed their altitude bug?
whot bug
The one where it wasn't taking into account the local altitude for height limits
m300 has 6 way 360 avoidance
Just wait till we start down the path of cattle ranching.
so even if gps is messed up it should be fine
@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
why they are wasting tomatoes?
Celebration/tradition
what you said?
ok
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
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
use gtk::prelude::{BoxExt, ButtonExt, OrientableExt};
use rand::prelude::IteratorRandom;
use relm4::{gtk, ComponentParts, ComponentSender, RelmApp, RelmWidgetExt, SimpleComponent};
hello mr hemlock
I think this is starting to make sense. My issue has been trying to remember or know what to import while making the GUI stuff. But it's starting to click in my brain
@quartz beacon Everyone is getting redy for fall?
what fall?
oh
Autumn?
Nuts, missed the "reply-to". And missed the delivery on that joke ๐ฆ
I prefer c++++
F# that!
ocen best lang
I tried some haskell stuff a while back. It was fun to play with, nothing I wanted to live in.
same
I couldn't get into Haskell as much
F#, OCaml, ones like that click better in my head
๐
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);
}
}
}
enum IpAddr {
V4(String),
V6(String),
}
let home = IpAddr::V4(String::from("127.0.0.1"));
let loopback = IpAddr::V6(String::from("::1"));```
^^^ yeah enums for actions also
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,
}
}```
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,
}
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
Kind of surprised that you don't have commas after the enums
@rugged root I love Python. Does Python love me?
they're optional, there's no reason they need to be there so don't see a point in making them necessary
@rapid chasm Reply hazy, ask again later.
Of Course
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
Fair.
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?
don't really even need commas after the match cases
You have hunted well
check out paulaner
?
Looks fine
See you guys in the fog
why not giving output?
@flint hill After an ME and MBA... yeah, most people do have to deal with that shit
You have to make an object from it and call the methods
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
how? tell me tomorrow for now Good night
I won't be back until Monday. I'll see you then
I'm just typically not on during the weekends
nooooo
Ok see you on Monday
Jesus, Beer
valid

@rapid chasm โค๏ธ ๐บ๐ธ ๐ฆ
LEEDS 2.0
minnesota mining and manufacturing
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
Fun fact, small airplanes still use leaded gas
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...
Still makes me cringe
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.
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.
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...
Succesful Fusion Test ๐ฉ
net positive energy output
pr sure it was the first net positive
@rugged root Death toll of nuclear vs other energy sources.
Source: https://www.engineering.com/story/whats-the-death-toll-of-nuclear-vs-other-energy-sources
yeah
That was my fusion test. It didn't work
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
That is definitely true
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.
yeah
this doesnt mean anything to someone who hasnt been taught what it is
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?
US has a phobia of reprocessing spent fuel rods.
when we have current problems of co2 emissions
the problem is how to communicate nuclear waste sites to future generations
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...
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
A brief history of natural gas. Although naturally occurring gas has been known since ancient times, its commercial use is relatively recent.
its not about what happens after an apocalypse, an apocalypse is not the only cause for losing information
History is written by the winners.
- Napolean
Entire civilizations and their history have been completely wiped away
History is nothing but memoirs of the victor - Napolean
There's no proof ๐
Well played
@alpine crow im assuming this was the concept of hostile design you were talking about
Roses
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.
what remains for millions of years doesn't radiate that much
uranium and some others have a very long half-time
Uranium-238 has a half-life of 4.5 billion years
yeah
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
iirc radon and lead are the problematic results of this
radon because it's a gas
lead because it's stable and toxic
the process of fission breaks uranium into cesium and stronium
which have much shorter half lives
and also they can use cleaner fuels
you meant fission
?
yea htypo
Nuclear Fishin'
obviously as there r no fusion reactors
The designs for the smaller thorium reactors cover most of the issues...but still "nuclear" with "radiation"
thats why you always have to wash your hands after shooting for example
uranium waste comes from refining uranium not from reactors
whats wrong with radiation
