#voice-chat-text-0
1 messages ยท Page 957 of 1
''Sorry to dissapoint you." - something marco says to his wife after a night of lovemaking
from .pyBed import pyBed
pyBed.create_items()
pyBed.create_items():
Items.new(
name="Hello",
)
from .pyBed import pyBed
pyBed.create_items():
Items.new(
name="apple",
)
Items.new(
name="orange",
)
Items.new(
name="carrot",
)
{
"format_version": "1.10",
"minecraft:item": {
"description": {
"identifier": "minecraft:sweet_berries"
},
"components": {
"minecraft:use_duration": 32,
"minecraft:food": {
"nutrition": 2,
"saturation_modifier": "low",
"is_meat": false
},
"minecraft:seed": {
"crop_result": "sweet_berry_bush",
"plant_at": [
"grass",
"dirt",
"podzol",
"moss_block",
"mycelium"
]
}
}
}
}
pyBed.create_items(
Item.new(
name="Apple"
)
)
return(a+b)
print(test(12,13))```
pyBed.create_items(Items):
apple = Items.new(
name="apple",
)
print(apple)
makefood.add("FoodYouWanted",3,True)
def add(name,health,ismeat):
adding_healthtoItem = health
if ismeat == True:
print('food made')
else:
print('Not food')
return
makefood.add("FoodYouWanted",3,True)```
@midnight agate I just realized I don't have rust-vim listed in my vimPlugins, lol
im new to python. what are some good basics to learn. i know how to print('hello world') but thats about it
uhh ok thanks
btw i really enjoyed your lesson. very engaging
what lesson do you mean?
when everyone was tuned in about an hour ago
no big deal, not really a lesson, just a ipython demo
volumes:
- ./data/rabbitmq/:/var/lib/rabbitmq/
- ./scripts/run_rabbitmq.sh:/opt/rabbitmq/run_rabbitmq.sh
- ./logs/rabbitmq/:/var/log/rabbitmq/
โจ Community!โจ
lookit some things that are still made with Python2 -> ctrl f python2 here: https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
@somber heath say something ๐
Or don't... I gotta run, ciao!
But...I did.
@somber heath hlo sir
it seems i should write 50 messages to be able to speak in vc
hey
hlo @rancid stream
hru
fine wbu
im fine too. i want to start learning python but dont know where to start
Learning Python, or conducting oneself?
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
thank you
I refer people to Corey Scafer's Youtube playlists for Python beginners.
learning python i guess
thanx im gonna check it out rn
If you get stuck, #โ๏ฝhow-to-get-help
hey
thanx. got it
its completely black
usually, the servers were apart of have a bot called plural kit. i have DID so it makes it easier for u to know who your talking to
Disassociate Identity Disorder
multiple personality disorder
uhhhh ok
cody is usually the one who likes to code but i wanna give coding a try. oh ya lol i tend to merge sentences a lot, sorry
oh idk at this point lol
whats your role in this server
uh ok thats cool. this is my first day in this server
i dont have permissions to talk yet
its super annoying
is there a piece of code i can write in python to override that feature?
its a small price to pay for long term benefits
damn ok ๐
๐ฆ
all of a sudden u get a 12 year old screaming at the top of their vocal cords and then your def
yup absolutly, if they poking the wrong bear they might get their ip tracked
ya i know
u can try to get their email, send them the "I LOVE YOU" virus and watch chaos unfold
trueeeee
its probably patched
how does one go about finding 0 days?
wow thats older than me
so its an illogical return? or an illogical function?
its possible to make about $100k per 0 day found
thats why im asking
and not flimsy plywood
to carry on with the building analogy, a crack in the foundation is like a 0 day. its very rare to find a crack but they can still form
@somber heath what you working on man?
wow sounsa cool, ive used matplot lib a couple times
are you interested in data science
have you used pandas before?
got you
๐
how would you visualise 3 dimensional?
i get 2 dimensional, but what would you do
so no graphs?
๐
ok thats cool so it dosent just refer to axis
but wouldnt 255 fall on the axis?
ok but you understand it which is cool, it sounds pretty deep
yea i like visualisation
im trying to make a cli application right now for a project
im getting into how to make a blockchain in python currently
yea the marketing i got you
give it fancy terms for normal things
smart contracts
brb
Hello
yo
arrr.. matey
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
oi
h i hi h i
def timer(func):
from datetime import datetime
def wrapper(*args, **kwargs):
print(f"Function Name:{getattr(func, '__name__')}")
start = datetime.now()
func(*args, **kwargs)
end = datetime.now()
time_to_run = end - start
print(f'Time to run: {time_to_run}')
return wrapper
what do u think about that decorator? anything more to incress
@vivid igloo ?
Cool
@whole bear hi
yes?
what's up?
not much doing work, bored
what work are you doing?
school work
just done with applying for internships
now im zoning out listening to lectures
wbu
I had an internship (co-op) last year
in tech
?
It was supposed to be about tech
They never accepted any other Co-op student before
I was the first one
pardon me whats a co-op
Co-operative education
im more into finance and stuff, not super familiar with tech internships
am considering a career in tech tho
vc is dead today is it cuz its a weekend
but why would it be dead on a weekend
because everyone would be out having fun
.
what technology career are you considering?
data analytics
any entry role will do
as long as compensation is above 3k
im just using it as a stepping stone
I'm really hoping I'll be able to find a job like 2 years from now
you graduate then?
Yes
nice
i graduate in 1.5 years
I wanna do something with databases
gonna work aap when i do
i see, what does that fall under
man why's everyone quiet
I can't talk becaues I'm muted
no cap
snippinig tool just froze
sure
oh lol
is that why you're talking to me
๐
oh no
file explorer is now freeezing too
what
@molten pewter (skids)
happens to me a lot
script kiddie
I listened to the ltt podcast
https://www.whitesourcesoftware.com/resources/blog/the-top-10-companies-contributing-to-open-source/
oh
of course
facebook too
im assuming
NVIDIA just came out with the 3080
or 3080 Ti idk
I deleted my instagram account too
facebook was just for students back then
back in the good old days
what do you guys think about discord?
are they respecting our data?
they have tons of valuable data
didn't they get investigated by the fbi once
oh i just saw this xD
they're making money
brb 5min
discord only came out in 2015
its a relatively new company
As you can see, the pandemic got them lots of money
ow
wow*
thats some exponential growth
It is a really easy thing to get into
everyone at school has it
does data visualization mean graphs?
i do
obviously a company like facebook would agree with that subreddit name
really?
I never used myspace before
myspace is a really ugly looking website
something
Probably by using a graph data structure
Being fired probably really hurts
I cannot talk
Show your code
@turbid forge
I can try to help
You need a function that prints numbers froom 1-10?
I'm lost
Maybe write it in text
what
lmao
lol
me too
im not curious ๐
for i in range(10):
break_discord_tos()
๐
Ever wondered how to make a sneaker bot? You should watch this video!
Check us out at:
https://pythondiscord.com
https://discord.gg/python
not possible
I will
@turbid forge
if you post instructions in written form
Does anybody program in c#?
i wish i could use vc :(
for i in range(10):
print(f'You are {i} years old}')
@turbid forge
he's probably not lol
its not a solution
I am making a program that lets the user choose searching and scorching algorithms to use on an array of numbers
I can teach you C#
Are you guys programming anything?
not atm
am chillin
๐ i was till a bit ago now playing games for resting xD
Rule 9
Do not offer or ask for paid work of any kind.
@midnight agate deep voice
i enjoy talking rubbish
but its important to have meaningful conversations sometimes
im a huge verbal shitposter
so I need to wait 3 days just for voice?
well if you want help with something you can look at #โ๏ฝhow-to-get-help as well
emphasis on try
I can help with things that are not python exclusive
i'm a c# programmer
and i know c++ too
so data structures and algorithm stuff basically
i can help with that
print('Date (DD.MM.YYY)?:)
a=(input).split('.')
a=int(a)
if(a1)=='01'
print('Jan')
elif a(1)=='02'
print('Feb')
elif a(1)=='03'
print('March')
elif a(1)=='04'
print('April')
elif a(1)=='05'
print('May')
elif a(1)=='06'
print('Jun')
elif a(1)=='07'
print('July')
elif a(1)=='08'
print('Aug')
elif a(1)=='09'
print('Sep')
elif a(1)=='10'
print('Oct')
elif a(1)=='11'
print('Novem')
elif a(1)=='12'
print('december')
that's very bad
Whats problem on this
everything is hard-coded
well that looks full of errors
Thats what I tried to do
input() not (input) as input is the function name and () is for calling it
brb, grabbing brecky-breck
oh please man
oh I know this
this is why coding interviews exist
the only problem is this?
oh
the first line
print('Date (DD.MM.YYY)':)
print('Date (DD.MM.YYY)')
but I have to write it depend on problem
print(:'Date (DD.MM.YYY):')
you don't need a : at the beginning
:print('Date (DD.MM.YYY)')
not that either
print:('Date (DD.MM.YYY)')
You don't need a : when calling a function
denoting or relating to language used for general purposes of social interaction, rather than to convey information or ask questions. Utterances such as hello, how are you? and nice morning, isn't it? are phatic.
can't be a phatic breakfast
a=(input).split('.')
print:('Date (DD.MM.YYY)')
a=(input).split('.')
a=int(a)
if(a1)=='01'
print('Jan')
elif a(1)=='02'
print('Feb')
elif a(1)=='03'
print('March')
elif a(1)=='04'
print('April')
elif a(1)=='05'
print('May')
elif a(1)=='06'
print('Jun')
elif a(1)=='07'
print('July')
elif a(1)=='08'
print('Aug')
elif a(1)=='09'
print('Sep')
elif a(1)=='10'
print('Oct')
elif a(1)=='11'
print('Novem')
elif a(1)=='12'
print('december')
phatic calories
I aldready made the same man
there are a couple mistakes
a should be named more descriptively
a does not describe the purpose of that variable
I would call it date_input
ohh great... i ran into an issue, but its a natural occuring phenomenon that i cant account for with coding.. gonna be tough to figure out.
where should I add this?
oh great
input is a function
so what about months?
whenever you call a function you need () after the function name
I tought they are correct
If anyone has any time to help give me a crash course in Visual Studio Code I posted some questions in help-pretzel and am in code/help 0
Much appreciation to this amazing community for helping newbs like myself. ๐
print:('Date (DD.MM.YYY)')
date_input(input).split('.')
a=int(a)
if(a1)=='01'
print('Jan')
elif a(1)=='02'
print('Feb')
elif a(1)=='03'
print('March')
elif a(1)=='04'
print('April')
elif a(1)=='05'
print('May')
elif a(1)=='06'
print('Jun')
elif a(1)=='07'
print('July')
elif a(1)=='08'
print('Aug')
elif a(1)=='09'
print('Sep')
elif a(1)=='10'
print('Oct')
elif a(1)=='11'
print('Novem')
elif a(1)=='12'
print('december')
What about this
Well, I'm going step by step
but I fixed half of them by your help I think
before you do this string manipulation
now just months right?
It is very important to first understand the syntax of the language
stream app.codesignal.com https://app.codesignal.com/arcade if you want something like advent of code but not
CodeSignal is the most advanced assessment platform on the market. Simulate a realistic coding environment with features engineers use on the job every day.
YES
although it starts fairly basic so maybe don't
from god import godmode
godmode('iLaptop#1432')
import god
god.bing_bang()
a=int(a)
if(a1)=='01'
What code?
You said you wanted help with C# which is my favorite language
But it was a joke
rrwekjhfwef
Lol sorry
You are making a variable called a and you are setting it to an integer form of a
Which doesn't make a lot of sense
and then you compare a1 to a string which is a variable that doesn't exist
donna reed smashing a record...
https://tenor.com/view/donna-record-breaking-its-a-wonderful-life-gif-14830603
Basically, i suggest going to the first chapter if you are doing w3schools @vivid jay
Don't skip forward
First understand the syntax
It won't be very helpful for me to rewrite this code for you if you don't know python syntax
I have no idea about syntax man
Well, read the chapter (the first one)
oh
yea I know most of them but the problem is pretty mix
This first page teaches you how to use a print statement
If you want straight up, concise summary of python's grammar see the grammar file: https://docs.python.org/3/reference/grammar.html
oh I have man thanks but problem is too diffcult
I meant my problem isnt about ''hello world'', ฤฑts not too easy like this
But you couldn't use a print statement
You're shooting yourself in the foot by skipping to if statements
anyway im out
One of the first steps of learning is learning what you don't know.
What is a beginner meant to understand from that document
oh thanks anyway
If I asked you to tell me, "in what statements is else a legal keyword?" all you have to do is search that file for "else" and you'll be able to answer me.
what if the cell tower has different outputs depending on when it expects high load -- I know nothing about these
If you see a Python expression and can't decide if it's legal Python or not, you can try to understand the syntax and the meaning from the grammar.
It's the best Linux distribution of all time. It's going to be head-to-head (in terms of popularity) against Ubuntu and Red Hat, and when it gets there I believe it will outshine them.
i cant take a variable in my bukle for i in range
I don't follow you - are you asking a question or what?
yes
Anyways, check it out on nixos.org
Maybe later I'll do a demo
Last night I demonstrated adding a lot of Python libraries to my server's operating system.
BEAUTIFUL Soup, so rich and green,
Waiting in a hot tureen!
Who for such dainties would not stoop?
Soup of the evening, beautiful Soup!
Soup of the evening, beautiful Soup!Beau- ootiful Soo-oop!
Beau- ootiful Soo-oop!
Soo- oop of the e- e- evening,
Beautiful, beautiful Soup!Beautiful Soup! Who cares for fish,
Game, or any other dish?
Who would not give all else for two
Pennyworth only of Beautiful Soup?
Pennyworth only of beautiful Soup?Beau- ootiful Soo-oop!
Beau- ootiful Soo-oop!
Soo- oop of the e- e- evening,
Beautiful, beauti- FUL SOUP!Lewis Carroll
thats a beautiful poem
pthread_cancel()is not available in android
Lovely how well Termux goes
hmm
!e
print(__import__("_sre"))
i just found something rabbit would like o- o
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
<module '_sre' (built-in)>
@whole bear :white_check_mark: Your eval job has completed with return code 0.
C
fml taking a break again to try to calm down
gz on the pink @woeful salmon
ty ๐
@woeful salmon
all_props = (lambda o: sorted(object.__dir__(o).union(dir(o))))
and..... shower time .... perfect timing while im still a bit down
no teach me... muhaha
help
this is hurting me
https://cdn.discordapp.com/attachments/834383349527085077/930788876296024104/sushi.mp4
it indeed hurts
@whole bear
@gentle flint i added quack sounds and fixed bugs for linux goose
I'm trying to learn how to organize code if anyone wants to help me out. ๐
I posted my question in help-chili
any help would be much appreciated. ๐ I'm also in the help VC if that's easier for anyone.
(closed) Thank you @gloomy vigil for the clarification! I owe you one
can i ask my linux questions here?
does anyone know why when in linux in discord share my screen it does not stream the sound?
you need to configure it
thanks dude lemme give it a try
Intel i7-4790K
you turned it off or on?
off
@terse needle does your progress counts change inplace print?
The glassโliquid transition, or glass transition, is the gradual and reversible transition in amorphous materials (or in amorphous regions within semicrystalline materials) from a hard and relatively brittle "glassy" state into a viscous or rubbery state as the temperature is increased. An amorphous solid that exhibits a glass transition is call...
https://meta.stackoverflow.com/questions/262545/what-is-the-record-for-the-most-downvoted-post-on-so
I just had a nice shower and feel so fresh and clean. ๐
don't drink and deluge
It is said, don't mix business and pleasure. I recommend not mixing pleasure and pleasure.
nice kitchen
@haughty piergoogle foobar?
One of the methadone programmes of the Amsterdam Municipal Health Service is the 'methadone by bus' project. Two mobile clinics cruise the city, stopping at six different locations daily. The liquid methadone is consumed on the spot and clean needles and condoms are available. This project is based โฆ
Python poverty: a fundamental lack of Python skills
what's indirection?
i am python poor
begging.. picking up change, recyling.. how would i know?
Limit spelunking to one level below.
# Requester.py
def get_thing():
requests.get("https://example.com")
from interface import requester
# main.py
class Indirect:
@property
def web_status()
return requester.get_thing()
^ the kind of indirection I come across in python
(except the imports make no sense)
hmm this does seem wrong. but exactly what's bad about it, and how do you fix it? ๐ค
my problem is that people set up this boilerplate and code infrastructure in a way that doesn't make writing or reading any easier
i see ๐ค
difficult to explain how I'd fix it without me coming up with some actual practical example
roses are red, violets are blue, poetry is nice, but poetry with aaron in python is cool.
super random but Im doing my second year of computer science for university...I thought writing a text adventure game was hard now I just cry haha
Your connection was a bit bad a minute ago @midnight agate
When you were speaking.
@midnight agate aaron is speaking if you can't hear him
brb keep teaching aaron hall
More one msg
Yep jmac, you should meet the criteria now, if you want to try it out.
#community-meta ยฏ_(ใ)_/ยฏ
What is Python poor sorry? I joined mid-way ๐ค
!e print(bytes("hello", encoding='utf-8'))
!eval ```py
print(type(ascii))
@stuck furnace :white_check_mark: Your eval job has completed with return code 0.
<class 'builtin_function_or_method'>
!e print(bytes("world", encoding='ascii'))
@sand ermine :white_check_mark: Your eval job has completed with return code 0.
b'world'
oh no pep8 ;-;
What's means b? ๐
it makes it of type bytes
It make sense. Thanks
i can hear the rain in the foreground lol. because it's raining here
!e print(complex(1))
@quasi condor :white_check_mark: Your eval job has completed with return code 0.
(1+0j)
btw, get_ipython is in builtin_names but it should not be. or maybe it's supposed to be there to be caught in the test ๐ค
!e print(format)
@quasi condor :white_check_mark: Your eval job has completed with return code 0.
<built-in function 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 "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__()` method. A [`TypeError`](https://docs.python.org/3/library/exceptions.html#TypeError "TypeError") exception is raised if the method search reaches [`object`](https://docs.python.org/3/library/functions.html#object "object") and the *format\_spec* is non-empty, or if either the *format\_spec* or the return value are not strings.
I never will forget this: pytython
!docs slice
class slice(stop)``````py
class slice(start, stop[, step])```
Return a [slice](https://docs.python.org/3/glossary.html#term-slice) object representing the set of indices specified by `range(start, stop, step)`. The *start* and *step* arguments default to `None`. Slice objects have read-only data attributes `start`, `stop`, and `step` which merely return the argument values (or their default). They have no other explicit functionality; however, they are used by NumPy and other third-party packages. Slice objects are also generated when extended indexing syntax is used. For example: `a[start:stop:step]` or `a[start:stop, i]`. See [`itertools.islice()`](https://docs.python.org/3/library/itertools.html#itertools.islice "itertools.islice") for an alternate version that returns an iterator.
!e ```py
l = [1,2,3]
print(l is reversed(l))
!e print(type(reversed([1,2,3])))
!e print(type(sorted([1,2,3])))
!e print(reversed([1,2,3]))
!e print(reversed([1,2,3]))
@sand ermine :white_check_mark: Your eval job has completed with return code 0.
<list_reverseiterator object at 0x7fa8b7c211e0>
!e print(next(reversed(range(10))))
@quasi condor :white_check_mark: Your eval job has completed with return code 0.
9
I believe reversed(obj) just calls obj.__reversed__() no?
!e ```py
def it():
for _ in range(10):
yield True
print(next(reversed(it())))```
@quasi condor :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 5, in <module>
003 | TypeError: 'generator' object is not reversible
!e ```py
def it():
for _ in range(10):
yield True
print((reversed(it())))```
@quasi condor :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 5, in <module>
003 | TypeError: 'generator' object is not reversible
oh, reversed(obj) also works if obj provides __len__ and __getitem__ cool
!e ```py
class Reversible:
def init(self, _list):
self._list = _list
def __getitem__(self, i):
return self._list[i]
def __len__(self):
return len(self._list)
obj = Reversible([1, 2, 3])
print(*reversed(obj))
@whole bear :white_check_mark: Your eval job has completed with return code 0.
3 2 1
!e ```py
def it():
for _ in range(10):
yield True
print(type(it()), )
!e ```py
def it():
for _ in range(10):
yield True
print(type(it()))
@whole bear :white_check_mark: Your eval job has completed with return code 0.
<class 'generator'>
@quasi condor :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'copyright' is not defined
!e print(exit)
@quasi condor :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'exit' is not defined
!e print(copyright)
@quasi condor :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'copyright' is not defined
!e copyright
@quasi condor :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'copyright' is not defined
isn't copyright just for interactive sessions?
def copyright(*args, **kwargs): # real signature unknown
"""
interactive prompt objects for printing the license text, a list of
contributors and the copyright notice.
"""
pass
!e ```py
a = {1,2,3}
a -= {1}
a -= {1}
print(a) # {2,3}
Not sure why the bot doesn't like it. This is what I get:
Copyright (c) 2001-2021 Python Software Foundation.
All Rights Reserved.
Copyright (c) 2000 BeOpen.com.
All Rights Reserved.
Copyright (c) 1995-2001 Corporation for National Research Initiatives.
All Rights Reserved.
Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
All Rights Reserved.
@quasi condor :white_check_mark: Your eval job has completed with return code 0.
{2, 3}
!e print(quit)
@quasi condor :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'quit' is not defined
@haughty pier in case you haven't noticed, your stream is a RIP
Speaker: Artem Dinaburg Security Researcher, Raytheon
We are generally accustomed to assuming that computer hardware will work as described, barring deliberate sabotage. This assumption is mistaken. Poor manufacturing, errant radiation, and heat can cause malfunction. Commonly, such malfunction DRAM chips manifest as flipped bits. Security re...
What is Python poverty?
Now I want to move to Berlin... https://www.fastcompany.com/90711961/berlin-is-planning-a-car-free-area-larger-than-manhattan how are the rents does anyone have experience?
How do accessibility logistics work, there?
I wasn't thinking so much in the way of curbs as I was access to travel.
I need help
how do I have 2 expects
for example except FileNotFoundError: , expect FileExistsError:
pass
try:
...
except (FileNotFoundError, FileExistsError):
...```
```py
try:
...
except FileNotFoundError:
...
except FileExistsError:
...```
The first if you want to run the same code for either exception.
The second if you want to run different code depending on which exception was raised first.
Having more than one try stanza may or may not be appropriate, nested or serial. That's up to you.
try:
...
except FileNotFoundError:
...
try:
...
except FileExistsError:
...```
try:
...
except FileExistsError:
try:
...
except FileNotFoundError:
...```
try:
try:
...
except FileNotFoundError:
...
except FileExistsError:
...```
Hi
rents would presumably depend on location
this might interest you though
I seem to recall getting funny (startup!) errors on occasion where it'd say along the lines of
module 'sys' has no attribute 'copyright'
@vivid jay #โ๏ฝhow-to-get-help
lol, so simple math... I have 606 devices in this test run, 167 dont meet the requirements for changes, so on the remaining 439.. I've calculated I have 860 different combinations, and now to write that part ... frowning
I've mastered the ability to make the best poker face ever, that you can't tell whether or not it's a good idea to laugh to my jokes because I'm showing -29 emotions
but it's a paradox
the less emotions i show the harder you laugh which makes you want to laugh even more but less because of my emotions?
what will you do?
btw @cyan stirrup the last time i checked you've been afk for 3 days
is that normal?
I'm looking for and undergrad CS student in India who's good with design, etc
what problem?
just hiring ๐
If only I wasn't muted
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
I know
just don't spam to attempt to reach ^w^
I used the cmd 5 minutes ago
You're doing well by not spamming #NotSarcasm
yeah there is no freedom of speech
my joke just got political
MrHemlock is a dictator
oh well
๐
yeah
Hardly any programming server has VC users
its either there is no VC at all
or nobody joins it
but its just grown men talking
40 year olds
@primal yacht show code
I can try to help
@primal yacht you good bro?
@midnight agate ill do it
im suffering
from typing import Union
class A:
def __init__ (self, value: int = 0) -> None:
self._value = int(value)
def __add__ (self, value: Union[int, 'A'], /) -> 'A':
return A(self._value + int(value))
def __radd__ (self, value: Union[int, 'A'], /) -> 'A':
return A(int(value) + self._value)
def __iadd__ (self, value: Union[int, 'A'], /) -> 'A':
# Implementing an immutable integer
return A(self._value + int(value))
def __int__ (self, /):
return self._value
# Allows use in lists / tuples for indexing
def __index__ (self, /):
return self._value
try:
number = int(something)
except (TypeError, ValueError) as err:
print('Error class: {!r}'.format(err.__class__))
print('Error stringified: {!s}'.format(err))
>>> x = Exception('foo')
>>> x.__class__ is Exception
True
>>> type(x) is Exception
True
>>> x.__class__ is type(x)
True
Thanks guys! Going to head out now.
is that i3wm
Python 2.x:print valuePython 3.x:```
print(value)
BRB
@turbid forge what was the question
pyBed.create_items():
Item.new():
name= "Apple"
Item.new():
name= "Steak"
is_meat= True
{
"format_version": "1.10",
"minecraft:item": {
"description": {
"identifier": "minecraft:apple"
}
}
}
{
"format_version": "1.10",
"minecraft:item": {
"description": {
"identifier": "minecraft:steak"
},
"components": {
"minecraft:food": {
"is_meat": True,
}
}
}
}
pyBed.create_items([Item(name="Apple"), Item(name="Steak", is_meat=True)])
pyBed.create_items(
[
Item(name="Apple"
),
Item(name="Steak",
is_meat=True
)
]
)
There was some question as to where the copywrite builtin name/object comes from and I think I've found it in site.py in the standard lib:
379 โ def setcopyright():
380 โ """Set 'copyright' and 'credits' in builtins"""
381 โ builtins.copyright = _sitebuiltins._Printer("copyright", sys.copyright)
382 โ if sys.platform[:4] == 'java':
383 โ builtins.credits = _sitebuiltins._Printer(
384 โ "credits",
385 โ "Jython is maintained by the Jython developers (www.jython.org).")
386 โ else:
387 โ builtins.credits = _sitebuiltins._Printer("credits", """\
388 โ Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
389 โ for supporting Python development. See www.python.org for more information.""")
390 โ files, dirs = [], []
391 โ # Not all modules are required to have a __file__ attribute. See
392 โ # PEP 420 for more details.
393 โ if hasattr(os, '__file__'):
394 โ here = os.path.dirname(os.__file__)
395 โ files.extend(["LICENSE.txt", "LICENSE"])
396 โ dirs.extend([os.path.join(here, os.pardir), here, os.curdir])
397 โ builtins.license = _sitebuiltins._Printer(
398 โ "license",
399 โ "See https://www.python.org/psf/license/",
400 โ files, dirs)
def __init__(self, name: str, is_meat: bool = None) -> None:
self.name = name
def __init__(self, Arguments) -> None:
self.name = name
!E
from typing import Optional
from dataclasses import dataclass
@dataclass
class Thing:
name: str
other_thing : Optional[str] = None
print(Thing('hi', 'hello'), Thing('no other thing here'))
@quasi condor :white_check_mark: Your eval job has completed with return code 0.
Thing(name='hi', other_thing='hello') Thing(name='no other thing here', other_thing=None)
!E
from typing import Optional
from dataclasses import dataclass, field
@dataclass
class Thing:
name: str
other_thing : Optional[str] = None
post_inited : int = field(init=False)
def __post_init__(self):
self.post_inited = len(self.name) + (len(self.other_thing) if self.other_thing is not None else 0)
print(Thing('hi', 'hello'), Thing('no other thing here'))
@quasi condor :white_check_mark: Your eval job has completed with return code 0.
Thing(name='hi', other_thing='hello', post_inited=7) Thing(name='no other thing here', other_thing=None, post_inited=19)
NVIDIA GeForce RTX 3090 Ti is at least 30% more expensive than 3090 We have been notified about the first listing of the upcoming RTX 3090 Ti pricing.ย The card has already been listed by distributors and some retailers. So far we only have pricing for MSI RTX 3090 Ti cards from two Swiss retailers [โฆ]
LOL
hi can you help me of verify my voice in the room
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@marsh moon read the embed above
but I can tell you now already you won't be able to verify yet
cuz you need to have sent 50 messages and have been in the server 3 days or smth
and if you spam messages by sending
1
2
3
etc to get through then it takes 2 weeks longer so that doesn't work
but a few days should get you in
just ask questions, use the help channels, to be helped and to help, its a community.. get involved and it doesnt take long at all...
it is martin luther king day, so he may not be working
They do MLK day where he is? ๐
God damn it
Popular, I see
๐
what's peeping?
Are @rugged root today?

there
i found what i was looking for
its not brainfuck but that reminded me of this somehow @tawny plume
oh
how long
has @cyan stirrup been in afk?
i've seen him in there for like
4 days
so far
or smth
To each their own
The UK Kitchen Nightmares is like a totally different show.
No sound effects, for a start ๐
Love the highly intellectual discussions we have here ๐ง
Yo Griff ๐
Brb
I quite like Google style.
Back
wait
is advent of code over?
or
is it like an event that occurs throughout the year?
If you complete it before Feb 1 you get the completionist role: #announcements message
The channels are still there, but the category has been moved down the channel list.
oh niceeee
.aoc
oh, well
Have you given it a go?
Oh right. Its pretty fun, but some of the days are challenging!
"""This is the form of a docstring.
It can be spread over several lines.
"""
!pep 257
Ugh, yeah that seems to be the case
I still hate it
It just feels so messy to have something on that first line
like a git commit
!stream @spring zenith
โ @spring zenith can now stream until <t:1642433919:f>.
Bluenix squashes all of my commits
๐ฆ
I only get 1 commit on my activity - That's all that matters
@tawny plume https://learngitbranching.js.org/
Whoops sorry 
@spring zenith 
๐
Nah I'm here.
the GitLabs
I just re-learn it from scratch every time I use it.
How often do you use / not use Git?
Erm, not often enough. That's the problem.
Fair enough
And I have a terrible memory.
Anthonywritescode has some great videos on git: https://www.youtube.com/c/anthonywritescode/search?query=git
Various videos about programming and related topics. Most videos will feature open source software and programming best practices. For now, most videos will deal with python.
All slides and associated code are on github: https://github.com/anthonywritescode
git's an everyday tool for me
even just on my personal projects
uploading to github
branches
you're an everyday tool
I'm kat's goon now
@rugged root ๐
Git's a great friend to have
It's really neat to be able to jump back to six months ago, and be able to see what things used to be
afk
I'm literally git according to this image
Comments are easier then recovering from git
1500 line files where 1000 lines are commented out
stuff that's been commented out and unread for 3 years
written by someone who left the company 2 years ago
And sometimes itโs easier to keep example of failures so people donโt try the same thing.
referencing a database that hasn't existed for 18 months
Best code
๐ฆ๐
Postgres is better
unicorn battle XD

๐ซ ๐ฆ
๐ก๏ธ ๐ฆ
.xkcd 2030
@sweet lodge So are you comfortable with me proposing that we should use Sphinx style?
research the company your applying, the industry of their product.. if you can offer a solution to any noticeable problems.. it probablly wont matter if you use python or c#.. unless its a chopshop for actual programming
Except C# is statically typed classed language that very similar to Java and most companies use either.
Or would you prefer if I simply mention the various doc styles and let them put their input?
Sphinx is good
Where Python is dynamic typed runtime that is interpreted which is slow compared to VM based languages
So why not hire Java/C# programmer instead of Python
Gotcha, makes sense
agreed integration to a companies working system posses complications.. it really comes down to what type of job your applying.. as in, if I were to dump all the data I could analyse for a trucking company and noticed shipping time complaints on the BBB and just general driver complaints on forums about sitting with no loads.. (keep in mind I have unfair knowledge on the subject) .. and I revamped their entire job call system to require drivers to report in, calculate time left for driving etc and distance to the load pickup to select the closest best driver and not simply a next in quene.. Id prolly get (rehired)
So is the setup.py only being wiped out from here on?
Setuptools is deprecating their entire build system in favor of specifying a build system in pyproject.toml
Simon Peyton Jones talking about the future of programming languages
And older versions such as 3.7 would still have to abide by the old version?
Ah, okay
I don't think it's necessarily tied to a specific Python version
More so the versioning of the build tools
plenty of reasons to not be married at 30
As in it should be earlier or later?
algo
build is a simple build system maintained by pypa (same as setuptools) that seems like it's going to be the new standard
https://pypa-build.readthedocs.io/en/latest/
Than what?
Oh sorry, that was to what noob was saying about the marriage thing
๐
just understanding what an algo is, and how to define it to use cases.. break the problem down, steps to solve it, take steps, observe the results, adjust till required outcome..
You should be able to switch to build or PDM without breaking anything.
I already built the package with PDM and I didn't notice any issues
and now for the start on the munday meetings...
.xkcd 1205
Don't forget the time you spend finding the chart to look up what you save. And the time spent reading this reminder about the time spent. And the time trying to figure out if either of those actually make sense. Remember, every second counts toward your life total, including these right now.
.xkcd 1319
brb
moved all that to help honey
which is about as close as I can get to help hemlock.. heh
can someone pls help me out with some python code?
Possibly
What's your issue?
I make an if statement in my code and I plot an empty graph. I am in code/help 0 if you dont mind
helping me out there
It'll be easier to know how to start helping if you paste your code.
ok, the only difference is that I put an if statement in my while loop but the problem is that I get an empty graph
From what I'm seeing it just means that your vars_2a[0] is always less than 0 in those cases
Well so I thought too, but then I tried modifying my code on photo 1 and it worked
So I am perplexed
Are you doing any prints or debugging to see if the values are what you're expecting?
Seeing that i literally do the same think in photo two as in one
:speaker:60% ๐ดfree 261.6 GiB :signal_strength: ( 77% at TMOBILE-D0DD, 780 Mb/s) 192.168.12.172 T: 44 ยฐC 5.4 GiB 2.63 2022-01-17 12:47:08
What would you guess I should print? vars_2a[0]?
Yeah, possibly dt and derivs(vars_2a) on the off chance there's a discrepancy. I'd do the print before and after your vars_new_2a = line
my dt is a global value
Gotcha
Hello again all ๐
Howdy
And vars_2a before and after?
Da fuq?
I mean if you want to make sure you have SOMETHING on the graph, then just move the if to the end of the loop
But yeah, it's always going to break given what you have
hmmm, I am really perplexed. Guess I will have to explain my way out of this then
thanks for trying anyway
Yeah sorry I couldn't be of more help
No, no, no, you were really quite helpful! It is me who has a crappy code haha
Hi gilly
how's it gooooooiiing
grrrrrreat ^^
Oh yeah? Something happen?
yeah, i have today off. lmao
404 for me, weird
works wit h1
@restive geyser So what're your plans for your day off
clean. lol.
Man
Living life on the edge there, gilly
Ticket paid for the whole seat but you only need the edge
one last pic
i basically slept all weekend. just potatoed for the last 3 days. it was great.
Here's your daily dose of Reddit shenanigans:
Headline:
Washington State proposes bill to lower penalties for drive by shootings because it disproportionately targets young black males - https://www.reddit.com/r/ProtectAndServe/comments/rrbt43/washington_state_proposes_bill_to_lower_penalties/
And a funny baby to combat the stupidity: https://www.reddit.com/r/DontPlayWithThat/comments/reuisi/kids_say_the_darndest_things_paulyfam/
lol the baby
Makes it easy to know
I'm extra dandruffy today and I hate it
Keeps getting on my glasses
lmfao
i can't breathe
man, you would not have liked spring awakening
lel
little shop of horrors > rocky horror picture show
memmmmmooooorrryyyy
OG definition
all aloneee in the moooonlight
the only character that matters in Cats is rum tum tugger
lmao
There is not a single appropriate joke I can make about that name
Not a one
kekekekekeke
ain't no reason for you to doubt it
lol
@rugged root
Sup
xdg/i3status/config etc file in my configuration:
fresh new cut?
general {
# output_format = "i3bar"
output_format = "term"
colors = true
color_good = "#${green}"
color_bad = "#${red}"
color_degraded = "#${yellow}"
interval = 1
separator = " "
}
order += "volume master"
volume master {
device = "default"
mixer = "Master"
mixer_idx = 0
format = "๐%volume"
format_muted = "๐"
}
order += "disk /"
disk "/" {
format = "๐ด %free/"
prefix_type = "decimal"
}
order += "wireless wlp3s0"
wireless wlp3s0 {
format_up = "๐ถ %quality %essid %bitrate %ip"
format_down = "๐ถ down"
}
# empty when down? extra space used then?
order += "ethernet enp0s31f6"
ethernet enp0s31f6 {
format_up = "๐ %ip (%speed)"
format_down = ""
}
order += "cpu_temperature 0"
cpu_temperature 0 {
format = "%degrees ยฐC"
path = "/sys/devices/platform/coretemp.0/hwmon/hwmon6/temp1_input"
}
order += "memory"
memory {
format = "%free"
threshold_degraded = "10%"
#prefix_type = "decimal"
format_degraded = "MEMORY: %free"
}
order += "load"
load {
format = "process load (5 min): %5min"
}
#order += "read_file uptime"
#read_file uptime {
# path = "/proc/uptime"
#}
order += "time"
time {
format = "%Y-%m-%d %H:%M:%S"
}```
Hmm? You mean the avatar?
yes
Nah, old image. I couldn't find my original avatar after I changed it for the holidays, so I just went with the 
I'll probably take a new one once I get a haircut and what have you
But for now, this will work
what do you mean
and what have you?
and/or anything else similar.
"What have you" being a turn of phrase or idiom. 
fun fact
Since when does Google care if I'm being formal?
- spend less than you earn. 2. create an emergency fund. 3. invest <.<
Invest in your army of squirrels
knew i should have bought that army of squirrels
Never too late
lol i'm not buying squirrels xD
LOL
Can anyone sub my yt channel
plz don't advertise @dry cave
I hope you're joking because I laughed very hard... but I think you're not...
we need a mod D;
!mute 868509777683177475 You were just told not to advertise your youtube channel and your youtube link was already deleted. Please re-read our #rules before the mute expires
:incoming_envelope: :ok_hand: applied mute to @dry cave until <t:1642451173:f> (59 minutes and 59 seconds).
Give it away give it away give it away now
Hemlock do you got some time to check something for me in #community-meta ?
nice, can you share your config? ๐
I'm not a helper, I'm an aspirational helper. Maybe one day...
cary grant, right?

SystemExit: Fatal error: PyInstaller does not include a pre-compiled bootloader for your
platform. For more details and instructions how to build the bootloader see
https://pyinstaller.readthedocs.io/en/stable/bootloader-building.html
you so beutifull
@haughty pier work on CRC or FCS
30 fps
Cyclic Redundancy Check
Binary encapsulation
its basic
Frame Check Sequence
its basicly destroys eth0 frames and it allows information from the logical bit to be sent over the physical network @haughty pier
@haughty pier we already know that the momentum operator is the wavefunction while the Schodinger equation is relevant to metaphysical optics
GRE
General routing encapsulation
https
hypertext transfer protocol (secure)
@midnight agate what are you good at?
BashMyServer
Hi
oof
I know some of those words
quiz me : )
what does a uuid do?
@midnight agate
Server Logic Be like
what is a cost function?
cost(X)?
what is OSI
not bad ๐
how does regularization apply to hexadecimal numerals
?
allowing one surface of information to be represented within a data set to complete a test
task
I mean
alright what is a GET request
so you used neovim instead of vim?