#voice-chat-text-0
1 messages · Page 823 of 1
XD
i have my personal server, which has just me
Hmmmmmmmmmmmmmmmmmmmmmmmm
never heard of it
so 100 servers achieved >.<
Yuppp
yayy!
\🥳
next project:
Learning How Discord.py works
and maybe make a crappy version of it
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pydis.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
!e
eval('print("hello")')
@sick cloud :white_check_mark: Your eval job has completed with return code 0.
hello
defense
@glad sandal you do !e then your code you don't need eval()
!e
print("hello world")
@dense ibex :white_check_mark: Your eval job has completed with return code 0.
hello world
like this ^^^
Thankls
!help pstream
!permanentstream <member>
Can also use: pstream
Permanently grants the given member the permission to stream.
!pstream @olive hedge
!rstream @olive hedge 
✅ Revoked the permission to stream from @olive hedge.
are you foreal rn chris
I am Chris, not foreal
I got a role for you
!pstream @olive hedge
✅ Permanently granted @olive hedge the permission to stream.
!mute @olive hedge
git rekt

I was so ready to be disconnected
lol yea
hmm
why does that mention joins me in voice-chat D;<
@whole bear anyways, hi
yeh it did for me atleast
lemme try again
it did again
now u try Xd
lol
can someone debug my code:
def IF(expr):
eval("if " + expr + ": True else: False")
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
i did it @gentle flint
well done
check this
but we're trying to implement it from scratch
yea
same
from string import ascii_lowercase
alphabet_index = {letter: index for index,letter in enumerate(ascii_lowercase)}
index_alphabet = {index: letter for index,letter in enumerate(ascii_lowercase)}
message = "ATTACKATDAWN".lower()
key = "LEMONLEMONLE".lower()
def encode(message : str, key: str):
cipherd_text = ""
for index,letter in enumerate(message):
cipherd_text += (index_alphabet[(alphabet_index[letter] + alphabet_index[key[index]]) % 26])
return cipherd_text
def decode(cipherd_text: str, key: str):
message = ""
for index,letter in enumerate(cipherd_text):
message += (index_alphabet[(alphabet_index[letter] - alphabet_index[key[index]]) % 26])
return message
decode(encode(message,key),key).upper()
@midnight agate
I assumed the len(key) == len(message)
!e
from string import ascii_lowercase
alphabet_index = {letter: index for index,letter in enumerate(ascii_lowercase)}
index_alphabet = {index: letter for index,letter in enumerate(ascii_lowercase)}
message = "ATTACKATDAWN".lower()
key = "LEMONLEMONLE".lower()
def encode(message : str, key: str):
cipherd_text = ""
for index,letter in enumerate(message):
cipherd_text += (index_alphabet[(alphabet_index[letter] + alphabet_index[key[index]]) % 26])
return cipherd_text
def decode(cipherd_text: str, key: str):
message = ""
for index,letter in enumerate(cipherd_text):
message += (index_alphabet[(alphabet_index[letter] - alphabet_index[key[index]]) % 26])
return message
decode(encode(message,key),key).upper()
@orchid barn :warning: Your eval job has completed with return code 0.
[No output]
that is epic
#The algorithim assumes that both the message and the key are of the same length.
from string import ascii_lowercase
alphabet_index = {letter: index for index,letter in enumerate(ascii_lowercase)}
index_alphabet = {index: letter for index,letter in enumerate(ascii_lowercase)}
message = "ATTACKATDAWN".lower()
key = "LEMONLEMONLE".lower()
def encode(message : str, key: str):
cipherd_text = ""
for index,letter in enumerate(message):
cipherd_text += index_alphabet[(alphabet_index[letter] \
+ alphabet_index[key[index]]) % 26]
return cipherd_text
def decode(cipherd_text: str, key: str):
message = ""
for index,letter in enumerate(cipherd_text):
message += index_alphabet[(alphabet_index[letter] \
- alphabet_index[key[index]]) % 26]
return message
cipherd_text = encode(message,key)
print(f"Original Message: {message.upper()}")
print(f"Key: {key.upper()}")
print(f"Encoded Message: {cipherd_text.upper()}")
original_message = decode(cipherd_text,key)
print(f"Original Message: {original_message.upper()}")
@midnight agate
Np!
no worries @midnight agate
RIP my ears
@true lichen
@gentle flint
hmmm?
doesnt work
oh nice
currently I test on 3.7-3.9, windows, macos, ubuntu
mhm
cya boys
Oppa!
oppa!
@olive hedge @vivid palm Hello hello. 😏
i ran all off the bee movie in html i have peaked as a programmer
@plush willow A little bit.
Let's see...
datetime.datetime.fromisoformat
So...
dt.fromisoformat
@plush willow Assuming the csv has them in the correct order for that to be appropriate, otherwise you might need to juggle them around.
Days and months are atrocious like that.
Depending on where you are.
You can take the datetime object and use its strftime method
You could also do like py t = dt.fromusoformat('2000-6-7') print(f'Year: {t.year} Month: {t.month}')
@plush willow
A quick reference for Python's strftime formatting directives.
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
like any other file you read and write
split on ","
Or you could use pandas
But actually it is still the same you read a row and you split and get array of row. and then you do with them what you want.
ok what you need be specific
yes
so send what you have done.
key is column based and you would just iterate of keys that are row specific
@paper tendon
for k, v in csv.reader():
print(f"key: {k} - value: {v}")
import csv
# csv is stupid as a format it does not have columns.
stupid_format = csv.reader(open("scratch.txt", "r"))
for i, r in enumerate(stupid_format):
print(f"{i} row: {' '.join(r)}")
print(r)
# panda dataframes do have columns and you can use dictionary operations on them.
import pd
for reading
for writing its similar
you are sending a row to the file to write
read the function description
def writer(fileobj, dialect='excel', *args, **kwargs):
"""
csv_writer = csv.writer(fileobj [, dialect='excel']
[optional keyword args])
for row in sequence:
csv_writer.writerow(row)
[or]
csv_writer = csv.writer(fileobj [, dialect='excel']
[optional keyword args])
csv_writer.writerows(rows)
The "fileobj" argument can be any object that supports the file API.
"""
so that mean
import csv
# csv is stupid as a format it does not have columns.
stupid_format = csv.reader(open("scratch.txt", "r"))
to_file = csv.writer(open("scratch1.txt", "r+"))
for i, r in enumerate(stupid_format):
print(f"{i} row: {' '.join(r)}")
print(r)
to_file.writerow(r) # you pass the whole array as row here
to_file.writerow(r) # this will duplicate rows in other file
# panda dataframes do have columns and you can use dictionary operations on them.
import pd
@plush willow so you are responsible for ordering properly items in the array as the module is not actually a module it just write arrays of values with "," delimiters for the csv file.
from glob import glob
from setuptools import setup
from pybind11.setup_helpers import Pybind11Extension
ext_modules = [
Pybind11Extension(
"PyPlotter",
sorted(glob("*.cpp")),
library_dirs=["/usr/local/lib/", "/usr/lib/"],
libraries=["raylib", "glfw3"],
)
]
setup(ext_modules=ext_modules)
PYBIND11_MODULE(PyPlotter, m){
py::class_<PyPlotter>(m, "PyPlotter")
.def(py::init<const char*, const int, const int>())
.def("keep_window_alive", &PyPlotter::KeepWindowAlive);
py::class_<Graph>(m, "Graph")
.def(py::init<const int, const int, const int, const int>())
.def("draw", &Graph::Draw)
.def("set_origin", &Graph::SetOrigin)
.def("draw_axis", &Graph::DrawAxis)
.def("draw_number", &Graph::DrawNumber)
.def("calculate", &Graph::Calculate)
.def("draw_points", &Graph::DrawPoints);
}
>>> def x():
... global y
... y = 10
...
>>> x()
>>> y
10
never had python and c++ in the same repo
class MainMenu(Menu):
def setupui(self):
FM = FrameBuilder.TypeA(self)
FS = [None] * 3
FS[0] = tk.Label(FM[0], text="Main Menu")
FS[1] = tk.Button(FM[1], text="Difficulty: 1", command=lambda: GamePlay.Kickoff(1))
FS[2] = tk.Button(FM[2], text="Difficulty: 2", command=lambda: GamePlay.Kickoff(2))
for X in range(3):
FS[X].configure()
FS[X].pack()
class GamePlay(Menu):
difficulty = 0
def setupui(self):
FM = FrameBuilder.TypeA(self)
FS = [None] * 3
FS[0] = tk.Label(FM[0], text=TargetWord, )
FS[1] = tk.Button(FM[1], text="Play", command=lambda: GamePlay.ButtonSwitcher(self, FS))
FS[2] = tk.Button(FM[2], text="Main", command=lambda: self.app.MenuSwitcher(0))
for X in range(3):
FS[X].configure()
FS[X].pack()
@classmethod
def Kickoff(cls, x): # takes difficulty given by the mainmenu selection and puts it to the word selection
cls.difficulty = x
class Student:
def __init__(self, name, age):
self.name = name
self.age = age
student1 = Student("Jack", 16)
student2 = Student("Mary", 14)
^^ Example of classes and objects
!e
class Fruit:
def __init__(self, name: str):
self.name = name
def bite():
print(f"You've taken a bite of the {self.name}"
my_fruit = Fruit("Apple")
my_fruit.bite()
my_fruit2 = Fruit("Banana")
my_fruit2.bite()
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | <__main__.Fruit object at 0x7fd2c62d3fd0>
002 | Apple
003 |
004 | <__main__.Fruit object at 0x7fd2c62d3ee0>
005 | Banana
griff coming in clutch
!e
class Fruit:
def __init__(self, name: str):
self.name = name
def bite(self):
print(f"You've taken a bite of the {self.name}")
my_fruit = Fruit("Apple")
my_fruit.bite()
my_fruit2 = Fruit("Banana")
my_fruit2.bite()
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | You've taken a bite of the Apple
002 | You've taken a bite of the Banana
whats being streamed in this vc?
Pycharm code reformat made my amazing oneliner(check out my other gist) into this - no longer a one liner.py
Hello world!
(None, 100, 'math', [95, 95, 105, 109, 112, 111, 114, 116, 95, 95, 40, 34, 95, 95, 104, 101, 108, 108, 111, 95, 95, 34, 41], <module '__hello__' (frozen)>)
>>>
print("Hello World")
@stiff haven #esoteric-python
!e ```py
package='hello';from.import*
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
Hello world!
!e ```py
import hello
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
Hello world!
!e ```py
from future import braces
@zealous wave :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | SyntaxError: not a chance
def MenuSwitcher(self, pos):
self.menus[self.active_menu].grid_forget()
self.menus[pos].grid(sticky="nesw")
self.menus[pos].setupui()
self.active_menu = pos
!e
class MyClass:
@classmethod
def smthin(cls) -> MyClass:
return cls()
print(MyClass.smthin())
@uncut meteor :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | File "<string>", line 3, in MyClass
004 | NameError: name 'MyClass' is not defined
!e
from __future__ import annotations
class MyClass:
@classmethod
def smthin(cls) -> MyClass:
return cls()
print(MyClass.smthin())
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
<__main__.MyClass object at 0x7f43dfa28fa0>
class Foo:
@router.interaction(name="GuessTheNumber", description="See if you can guess the number, Between (1 - 20)")
async def guess_the_number(inter: Interaction, guess: int = Option(desc="Guess the number")):
if 0 >= guess or guess >= 20:
return "> Please make your guess between 1 - 20"
random_num = random.randint(1, 21)
if random_num == guess:
return "> You guessed the number!"
else:
return f"> You didn't guess the number, it was {random_num}"
f u
<3
i will haaaaaave 5 days off at the end of may so there's that
what if you use a straw and blow really hard into it
that's CO2 right
lol
gotta practice
lmao
@rugged root the pressures on to keep the convo going
Usually

what why it looks fly
like
whispy*
wings
of hair
can you burp the alphabet
..............
i can manage 4 hours on my own in 1 stretch
but like, if we drive, it's gonna be 5 of us in a sedan
our biggest car is currently a toyota camry
i being the shortest will probably be sitting in the middle back seat
dnw

having a gut is great
cushioning
for pets and people
dude 10,000 takes effort
that's like pretty much an hour (and a half?) of walking
i did it for 6 months lol
hi pub
hi mina
@dire oriole stop lurking
your playlist is now mine
what rx??
i mean you're probably only taking it temporarily? or no
ok tis fine then
you'll live :D
lol smol
milk steak
:)
😔
probably actually ptsd if it was that bad lol
heatfs at 6.0 
wizzy-wig?
yeah that's how i pronounce it too
That's the only one that makes sense
Write Your Site Inside Wonderful Yellow Gold
DogeLog[0] - the series where I share the business and development process of taking a project I made as a joke into a billionaire dollar unicorn company.
https://dogehouse.tv/
https://github.com/benawad/dogehouse
#benawad #dogehouse
Checkout my side projects:
If you're into cooking: https://www.mysaffronapp.com/
Join the Discord:...
Classy lady...
Yes. Yes I am
not on cue
Gotcha
So it's not a matter of you slowly inflating and then you're going to explode one day
cute

@shut belfry Sorry yeah, you're still really quiet. At 200% I can kind of make out what you're saying, but compared to the other voices it's still pretty quiet
Sorry man, it’s like midnight for me and I’m trying not to be loud
No you're fine
I'm just saying why you're getting kind of steamrolled with regards to the conversation
ooh dogehouse is great
Hey there
Hey Brod, how goes it
Great sound effects 👌
Johnny Bravo
that's the funniest shit i've ever heard
Sorry ?
I mean how are you
I m fine sir
What about you sir
Let’s go, I just passed my final!!
Information you need about Missouri REAL ID
Due to pandemic many big change in my life
might be in everyone life lol
😆
ofc we are stressed
we pass things.
😔
yeh that's me opal
In this I m facing few problems
my paint program in batch
@clear shadow could you tell us what didn't you understand?
Actually I was facing error
who wants to use my paint program in batch
From last Week You are trying to say thing lol
😆
what?

if __name__ == "__main__":
lis = list()
for i in range(int(input())):
n, m, k = list(map(int, input().split()))
if n*m-1 == k:
lis.append("Yes")
else:
lis.append("No")
for i in lis:
print(i)
@somber heath
well opal isn't here
Try again.
@clear shadow Maybe ask someone else. I don't feel in the mood to tackle that.
omg lol
How's you theory of computation class going @stuck furnace
Yeah... I got distracted 😄
Combat Simulator Exercise
-
Has a base class containing attributes that all characters have:
Hit points,name,minimum damageandmaximum damage -
Should also contain certain actions (methods):
attack,defend
--defendshould halve the amount of damage taken on next attack -
2 sub-classes that inherit from the base class:
playerandmonster
-- Player should contain attributes:health_potionsto dictate how many healing potions they have at their disposal
-- Player should also have a unique method:heal. It should heal a certain amount of health and also remove one potion from the inventory
-- Monster should contain attribute: smokebombs
-- Monster should also contain method: use_smokebomb, which prevents damage from the next player attack and also removes one from the inventory
Also, be right back
Sorry, still tweaking it a little bit
But the general idea is still there
This is more a combat sim. Also writing one up for character creation
There's a few motivations to learn a programming language.. sometimes it's in your career path, or if that programming language is popular.. in terms of jobs offered.. Or in other cases you have to learn it because the project in which you are working on is using it ...
My motivation was simply because I really wanted to
It's been a long time goal and love
Sure... if you love what you're doing.. make everything easier..
I have to work in Python.. in i really like it.. and sometimes I have to work with java.. which I really don't like...
There is always Kotlin
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
You must meet all of the following criteria before you can speak in voice channels:
• Have over 50 non-deleted messages in the server
• These messages cannot be in #bot-commands or #sir-lancebot-playground
• Only messages after August 25th 2020 count, this is when we rolled out our new message statistics system.
• Have joined the community over 3 days ago.
• Have been active for over 3 ten-minute blocks. This means you need to have sent your messages over a span of at least 30 minutes.
That's it
Anyone that can code a Zombie game using crypt-o-currency as a currency?
Also, having a bit of a hard time with Git, and co-operating with classmates using a database within the git, anyone that's got experience of that and has a quick fix? Here's the error message:
I think it's when cam is on
Character Creator Exercise
-
Create a base class containing the following attributes:
hit points,name,level,attack_damage -
Should also contain methods:
attack,take_damage -
Create various job classes that inherit from the base class
-- Create a Barbarian class
--- Should contain the following attributes: rages, rage_turns_left
--- Should contain the following methods: rage, which causes the player to deal twice as much damage but also take twice as much damage. take_damage should be over written so that it checks to see if a rage is active. --- After every turn, rage_turns_left should reduce by one unless it's already at 0.
-- Create a Wizard class
--- Should contain the following attributes: mana_points
--- Should contain the following methods: fireball, which deals double damage but costs mana to cast. If there isn't enough mana, the Wizard cannot cast the spell.
There is abc.ABC
You can decorate methods as @abstractmethod
If you try to instantiate a class with abstract methods, you will get an error.
https://www.geeksforgeeks.org/abstract-classes-in-python/ @midnight agate
Bitecoin.
Little example I put together: ```py
from abc import ABC, abstractmethod
class Shape(ABC):
@abstractmethod
def area(self):
pass
class Square(Shape):
def __init__(self, side_len):
self.side_len = side_len
def area(self):
return self.side_len ** 2
s = Shape() # ERROR
s = Square() # OK
!e ```py
from abc import ABC, abstractmethod
class Animal(ABC):
def move(self):
pass
class Human(Animal):
def move(self):
print("I can walk and run")
class Snake(Animal):
def move(self):
print("I can crawl")
class Dog(Animal):
def move(self):
print("I can bark")
class Lion(Animal):
def move(self):
print("I can roar")
Driver code
R = Human()
R.move()
K = Snake()
K.move()
R = Dog()
R.move()
@paper tendon :white_check_mark: Your eval job has completed with return code 0.
001 | I can walk and run
002 | I can crawl
003 | I can bark
You can insantiate Creature because it has no abstractmethods.
!e ```py
from abc import ABC, abstractmethod
class Polygon(ABC):
@abstractmethod
def noofsides(self):
pass
class Triangle(Polygon):
# overriding abstract method
def noofsides(self):
print("I have 3 sides")
class Pentagon(Polygon):
# overriding abstract method
def noofsides(self):
print("I have 5 sides")
class Hexagon(Polygon):
# overriding abstract method
def noofsides(self):
print("I have 6 sides")
class Quadrilateral(Polygon):
# overriding abstract method
def noofsides(self):
print("I have 4 sides")
Driver code
R = Triangle()
R.noofsides()
K = Quadrilateral()
K.noofsides()
R = Pentagon()
R.noofsides()
K = Hexagon()
K.noofsides()
@paper tendon :white_check_mark: Your eval job has completed with return code 0.
001 | I have 3 sides
002 | I have 4 sides
003 | I have 5 sides
004 | I have 6 sides
All ABC really does is prevent the instantiation of classes with abstract methods that haven't been overridden.
But the way to do it is treat the use of ABC as optional, at least to begin with.
Then when the system gets larger or more stable, you might want to add in something like this to lock it down a bit more.
Same idea with type-annotations in python.
An example of what Marko was saying I think.
!e ```py
from abc import ABC, abstractmethod
class Animal(ABC):
@abstractmethod
def move(self):
pass
a = Animal()
TypeError: Can't instantiate abstract class Animal with abstract methods move
class Animal():
@abstractmethod
def move(self):
pass
a = Animal() # No errors
@paper tendon :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 7, in <module>
003 | TypeError: Can't instantiate abstract class Animal with abstract method move
!e ```py
from abc import ABC, abstractmethod
class Animal(ABC):
@abstractmethod
def move(self):
pass
a = Animal()
TypeError: Can't instantiate abstract class Animal with abstract methods move
class Animal():
@abstractmethod
def move(self):
pass
a = Animal() # No errors
@paper tendon :warning: Your eval job has completed with return code 0.
[No output]
I hereby solemnly swear to never misuse any code.
class Base:
def public(self):
print("Public method")
# Declaring private method
def __private(self):
print("Private method")
# Creating a derived class
class Derived(Base):
def __init__(self):
# Calling constructor of
# Base class
Base.__init__(self)
def call_public(self):
# Calling public method of base class
print("\nInside derived class")
self.public()
def call_private(self):
# Calling private method of base class
self.__private()
# Driver code
obj1 = Base()
# Calling public method
obj1.public()
obj2 = Derived()
obj2.call_public()
# this two raise an error.
# obj1.__private()
# obj2.call_private()
!e ```py
class Base:
def public(self):
print("Public method")
# Declaring private method
def __private(self):
print("Private method")
Creating a derived class
class Derived(Base):
def init(self):
# Calling constructor of
# Base class
Base.init(self)
def call_public(self):
# Calling public method of base class
print("\nInside derived class")
self.public()
def call_private(self):
# Calling private method of base class
self.__private()
Driver code
obj1 = Base()
Calling public method
obj1.public()
obj2 = Derived()
obj2.call_public()
obj1.__private()
obj2.call_private()
obj1._Base__private()
obj2._Base__private()
@paper tendon :white_check_mark: Your eval job has completed with return code 0.
001 | Public method
002 |
003 | Inside derived class
004 | Public method
005 | Private method
006 | Private method
You'll be surprised how easy it is to measure current with a scope!
Free Oscilloscope Probing 101 Course ► https://bit.ly/KU_Blog_Probes101 ◄
Click to subscribe: http://bit.ly/Scopes_Sub
Probe Training Kit Download ► http://bit.ly/ProbingPitfalls ◄
Probe Selection Guide ► http://bit.ly/2mtAzeW ◄
How to measure current with an oscilloscope? Yo...
@glad sandal I have 2 pinned
I'll probably start writing out additional ones at some point
oof
commands = os.listdir("./commands")
events = os.listdir("./events")
for filename in commands:
if filename.endswith(".py"):
print(filename)```
bot.load_extension(f"commands.{filename[:-3]}")
3.8
3.8.6
I wonder....
...how
I wonder why
from pathlib import Path
p = Path('.')
print(list(p.glob('./commands'))
Distroless Docker images were pioneered by Google to improve security and container size. —> ⛔
Just no
that’s a valid command here?
[WindowsPath('commands')]
Nope
yeah it is not added here
!wa vorticity
But your driving mods crazy
print(list(p.glob('./commands/*.py'))
i believe "lmgtfy" is a flagged word
The lmgtfy isn't, but the url is
Anyways, I have read your distroless containers article, do not want.
Academic curiosity: what’s the worst aspect of it?
why does russia get a tank with heatfs at 5.3 tho
Other than our shared dislike of Google, I mean
No debugger, no repo access, this is type of stuff google does because their scale problems, for anyone else’s, it’s likely to frustrate them and very little benefit
?
high explosive anti tank fin stabilized
Is this for WoT?
war thunder 🎉
Anytime anything starts with “Some FAANG company does this” you should ask yourself, do we need this and answer should start at no and you should provide overwhelming evidence to make it yes.
“Some FAANG company uses an internet connection”
nah, we don't need that
🤦♂️🤦♂️
I was obviously talking about really high scale practices they do.
Like switch to this compiler because it compiles 20 seconds faster and builds are 3x smaller but won’t give you specific error messages. Few companies need that
I wouldn’t be surprised if my company had a policy that says that that is perfect for us to use based on that alone.
And frustration level will be higher for everyone
I’m increasingly convinced that ⅓ of our tech stack was designed to be frustrating.
what is LMTGY is used for? @willow light
“Let me Google that for you”
for filename in p.glob("./commands/*.py"):
bot.load_extension(f"commands.{filename.stem}")
Just pointing out, so many average people just want to copy FAANG because "FAANG IS AWESOME" Good people should be like "does their methods make sense for what WE do?" and I find the answer more often then not is "Not really"
distroless containers are good example of that
Case in point: the company I’m at is adopting the Spotify model despite the test run failing catastrophically last year.
what's the spotify model?
Removing responsibility for any manager 😛
Agile, but unnecessarily overengineered.
as if agile wasn't already unnecessarily overengineered
There is Tribe/Squad/Chapter/Guilds with various people members of each
I’m in both the Apigee Squad and the SRE Chapter.
Learn about the Spotify model and how it helped Spotify scale agile by emphasizing the importance of culture and network.
My uncle was one of the original authors of Scrum, and he fell off his chair laughing when I told him what we’re doing.
it's one of those "This worked at one company and everyone wants to pretend they are like that company"
Another example of Spotify model
it's one of those "This worked at one company and everyone wants to pretend they are like that company"
and according to this, Spotify dropped it: https://www.agility11.com/blog/2020/6/22/spotify-doesnt-use-the-spotify-model
lul
This is a case of “looking at someone else’s homework sheet for answers”
Each ‘Squad’ (which should have been called a Team) had multiple functional managers, one for each ‘Chapter’, which were just functional areas re-labeled: Testing, back-end, mobile, etc. Any disagreement within the team often had to be resolved between multiple managers, and without consensus, then had to be escalated to the Director of the ‘Tribe’ (Department). This is problem we have
All our QA report to QA Tribe Manager and he has his needs/wants where we have ours
so any fight becomes Manager Battle Royale
import os
import discord
from discord.ext import commands
from pprint import pprint
import os
import json
from pathlib import Path
p = Path('.')
with open("./data/settings.json") as file:
TOKEN = json.load(file)["discord_token"]
bot = commands.Bot(command_prefix="!",intents=discord.Intents.all())
#Commands
commands = p.glob('./commands/*.py')
events = p.glob('./events/*.py')
for filename in commands:
bot.load_extension(f"commands.{filename.stem}")
for filename in events:
bot.load_extension(f"events.{filename.stem}")
bot.run(TOKEN)```
Which is why I’m building a massive MS Teams Do Not Disturb logo out of lego to keep on my desk at all times.
The failings are already bearing rotten fruit. There’s one team for whom we are managing servers on mainframe because they keep pushing back their move to k8s. This is the second year of delays, now. Manager battle royale is a good description.
I can hear the steam coming out of Rabbit’s ears from reading that mess.
!otn a manager-battle-royale
reason I say it's great at Removing Responsibility from Managers is different Chapter Managers will have different goals
I feel like great thing for OTN names would be removing them after use
Anyway, actually going for the walk now, about to lose internet for a short time. Yay Verizon....
I have Verizon too lol I swear I can't even go for a walk and listen to music sometimes.
and I am not in a new development lol
Check this out
🦅 🔫
What is the probability that if we pick two-digit number the difference between the digits is 5?
high
it's actually 0.1
Get extreme speeds for fast transfer, app performance, and 4K UHD.2 Ideal for your Android™ smartphone, action cameras or drones, this high-performance microSD card does 4K UHD video recording, Full HD video, and high-resolution photos. The super-fast SanDisk Extreme® microSDXC™ memory card reads up to 160MB/s9 and writes up to 90MB/s.9 Plus, it...
L = []
for i in range(10,100):
L.append((i//10, i % 10))
freq = 0
for x,y in L:
if abs(x-y) == 5:
freq += 1
print(f"probability that if we pick two-digit number the difference between \
the digits is 5 is {freq/len(L)}")
!e
L = []
for i in range(10,100):
L.append((i//10, i % 10))
freq = 0
for x,y in L:
if abs(x-y) == 5:
freq += 1
print(f"probability that if we pick two-digit number the difference between \
the digits is 5 is {freq/len(L)}")
@orchid barn :white_check_mark: Your eval job has completed with return code 0.
probability that if we pick two-digit number the difference between the digits is 5 is 0.1
L = []
for i in range(10,100):
L.append((i//10, i % 10))
freq = 0
for x,y in L:
if abs(x-y) == 5:
freq += 1
print(f"probability that if we pick two-digit number the difference between the digits is 5 is {freq/len(L)}")
!e
L = []
for i in range(10,100):
L.append((i//10, i % 10))
freq = 0
for x,y in L:
if abs(x-y) == 5:
freq += 1
print(f"probability that if we pick two-digit number the difference between the digits is 5 is {freq/len(L)}")
@orchid barn :white_check_mark: Your eval job has completed with return code 0.
probability that if we pick two-digit number the difference between the digits is 5 is 0.1
@honest pier
mhm
16
27
38
49
50
61
72
83
94
if you think about it it's symmetrical up 2 50
so freq of A - B = 5, is actually 2
except for 50
ah nvm i can't count cause of 05 , 04, 03
it "just works"™️
DevOps is a software engineering culture and practice of putting horrors into containers and then talking about Kubernetes at conferences.
1292
2966
Ubuntu is an open source software operating system that runs from the desktop, to the cloud, to all your internet connected things.
Desktop points to most recent version
Server always point to LTS
Ubuntu 20.10 isn't LTS
20.04 is LTS
@dense ibex this is what you get when you login into Windows Server Core
Oh ok, I thought it was GUI only
Nope
So that makes more sense now
Windows Server can be GUI installed
when you install, you get the option
like I love to make Active Directory Servers Windows Core to keep bads off it
hey guys, when you use .split() can you put the separator an uppercase?
like this: 'camelsHaveThreeHumps' // camels-have-three-humps
Not exactly
There's two issues that you'd run into. First, when you split at something, it removes it. So if you split on the H, you'd be left with ['camels', 'aveThree', 'umps']
Another is that you can't specify multiple things to split on in the method call
@normal belfry Just to make sure you see this
ok, thanks
@honest pier for War Thunder you said the best things to upgrade are Horizontal drive, and parts correct?
and fpe
okie
and then tracks
@honest pier invite me when you are done I finished my game.
How to hell are you in 100 servers
like how do you find a specific server lol
folders
ig... but still
Anyone watched https://www.youtube.com/watch?v=OpLU__bhu2w
@dense ibex join :3
@dense ibex what br are you
1.7
wack
yall playing war thunder, I just uninstalled war thunder yesterday, lol
what nation
I need to hit 250 at any cost!
UK, russia, usa, germany
jake has only played germany
Yeah, and I am pissed.... I just get one shot like what
germany is OP af
yeah
so thats why I play russian
getting one-shot is quite common
get penetrated from the front at like 500 meters
¯_(ツ)_/¯
even at angle you have to point your turret at the guy to kill him
you can pen the turret from the front
I mean...each tank has its weakness
¯_(ツ)_/¯
gaijin is dumb tho
for some reason the tiger is at 5.3 ?
even though you can pen it from the front with the US 76mm, and literally any tank can just yeet the gunner and commander through the cupola
mhm
interesting the embedding fails on the server
I think it works now
https://www.youtube.com/watch?v=R9c-_neaxeU
See more data and check out what we changed on the second day (which caused MENACE to learn a different strategy) in the second video: https://youtu.be/KcmjOtkULi4
Check out Matt Scroggs’s original blog post about MENACE and in the amazing Chalkdust magazine.
http://www.mscroggs.co.uk/blog/19
http://chalkdustmagazine.com/tag/menace/
Play again...
Yeah it goes by quick. Just one good conversation and you should be able to hit it
In JDK 1.8, the bottom layer of HashMap is stored in array Node < K, V > array. Each element in the array is stored in a linked list. When the element exceeds 8, the linked list is converted into a mangrove storage. red-black tree The red-black tree is essentially a balanced search Binary tree,UTF-8...
@faint ermine ^
there were also headlines about microsoft buying discord
not sure who's gonna get to it first
but if it becomes an advertisement hell
i'll seriously consider moving to a different platform
as if sony and microsoft haven't already as standalone companies
And of course, the Discord team would accept any offer to buy out their platform
because MONEY
My guess is neither company would buy discord at their valuation
Btw, you can make the wrapped function look like the original function (same docstring etc.) using @functools.wraps.
ye we went over that before
Ah right
@decor
def f():
pass
is the same as
def f():
pass
f = decor(f)
Try this out 😄 ```py
def foo(self):
print(self)
m = foo.get(42)
print(type(foo), type(m))
m()
👀
So the type of functions has a special __get__ method.
When you access an attribute from a class instance, and it has the __get__ method, that method is called, and the instance is passed in as the argument.
For functions it returns a bound method.
A bound method is essentially a partially-applied function.
!e ```py
def dec(v):
print(type(v))
class A:
@dec
def f():
pass
@dec
def f():
pass
@faint ermine :white_check_mark: Your eval job has completed with return code 0.
001 | <class 'function'>
002 | <class 'function'>
Yep, I don't think there's actually any way to tell them apart 🤔
Until you reach the end of the class, and the meta-class constructor is called, it's just a function.
I suppose you could check if the first argument is called self 😄
(Maybe don't do this...)
Maroloccio, if you want to learn more about the __get__ thing, I'll find some reading...
It's implementing something called the "descriptor protocol"
It took me a few attempts to really understand this 😅
He's probably done a talk on it at some point.
It is a little bit odd...
I mean the sudden decision to change.
But I don't really mind either way.
brb
@robust mesa just talk here
I'm ok
and i got a mic w/ me so i can go on voice
might not sound brilliant but i can be back
ye
hey
what's up?
ok
Hey @somber heath
Yahoy.
@paper tendon can u hear
We’re proud to present the first ever #escapegame for coders and non-coders. 🎲
Coding Escape is a unique game experience that you can play with your family, friends, or colleagues. It's a fun mix of riddles and coding puzzles, in 12+ programming languages.
Simply hunt for clues, solve brainteasers, communicate, code and voilà! 🧩
We’ve created...
from win32com.client.gencache import EnsureDispatch
xlApp = EnsureDispatch("Excel.Application")
AttributeError: module 'win32com.gen_py.00020813-0000-0000-C000-000000000046x0x1x9' has no attribute 'CLSIDToClassMap'
import win32com
print(win32com.__gen_path__)
00020813-0000-0000-C000-000000000046x0x1x9
def PassProtect(Path, Pass):
try:
from win32com.client.gencache import EnsureDispatch
xlApp = EnsureDispatch("Excel.Application")
except:
from sys import modules #This except is an attempt to deal with the system32 problem
from re import match
from shutil import rmtree
from os import environ
from os.path import join
MODULE_LIST = [m.__name__ for m in modules.values()]
for module in MODULE_LIST:
if match(r'win32com\.gen_py\..+', module):
del modules[module]
rmtree(join(environ.get('LOCALAPPDATA'), 'Temp', 'gen_py'))
from win32com.client.gencache import EnsureDispatch
xlApp = EnsureDispatch("Excel.Application")
xlwb = xlApp.Workbooks.Open(Path)
xlApp.DisplayAlerts = False
xlwb.Visible = False
xlwb.SaveAs(Path, Password = Pass)
xlwb.Close()
xlApp.Quit()
import IPython
app = IPython.Application.instance()
app.kernel.do_shutdown(True)
f = open("words.txt", "r")
for i in f.readlines():
list.append(i)
@lethal thunder
import sys, time
f = open((sys.argv[1]), "r", encoding='utf-8')
print(f.read())
time.sleep(100)
!e
import sys, time
f = open((sys.argv[1]), "r", encoding='utf-8')
print(f.read())
time.sleep(100)
@whole bear :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | IndexError: list index out of range
!e
import sys, time
f = open("test.txt", "r", encoding='utf-8')
print(f.read())
time.sleep(100)
@whole bear :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | FileNotFoundError: [Errno 2] No such file or directory: 'test.txt'
!e
import sys, time
f = open((sys.argv[0]), "r", encoding='utf-8')
print(f.read())
time.sleep(100)
@whole bear :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | FileNotFoundError: [Errno 2] No such file or directory: '-c'
!e
import sys, time
f = open((sys.argv[-1]), "r", encoding='utf-8')
print(f.read())
time.sleep(100)
@whole bear :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | FileNotFoundError: [Errno 2] No such file or directory: '-c'
!e
import requests
@whole bear :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | ModuleNotFoundError: No module named 'requests'
!e
import sys, time
f = open((sys.argv[1]), "r", encoding='utf-8')
print(f.read())
time.sleep(100)
@whole bear :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | IndexError: list index out of range
https://github.com/Dragon-Batch/Paint @lethal thunder
@dense ibex Dude you literally disappeared as I hit the button to join
Like
Same moment
how are you doing @frigid panther ?
I'm alright
I guess good, nothing much
how about you
btw
I started a minecraft instagram channel
I'm good, just working on some school work.
wait really lol please send a link
oh, my online classes started last week too
there
time to exercise @dense ibex
I do thought that's the thing. I got for walks at least once every other day and I lift every other day as well.
Wow, I used to do a lot of building as well. But those builds are crazy
ty
wait I'll c
I installed war thunder btw

what is the fastest language?
Oooo we should play today with everyone
hieroglyphics
R3 T20?
👀
its Otomatic
i c i c
isn't it spaa
not sure
yeah
does not look like on tho, lol
GET 3% off GE & Vehicles. ALSO Year of Premium HALF OFF with this link https://goo.gl/4xJbSH o7o7
NEW Merch ONLINE - Champion DROP LINK - https://drop.teespring.com/phlydaily/
BOOM BOOM BOOM BOOM BOOM (War Thunder Otomatic)
LiveSTREAM LINK - https://www.twitch.tv/phlydaily
Connect With me!! In a more sensual way :)
Support la PHLEE - http...
it's an spaa
alright
that's so bad
hi
#bringbackoldspalshscreen
ew
give IGNs
@dense ibex 👀
im logging in
Any particular reason for this?
nope
Then don't
hallo
hi
i am in a meeting and bored
just leave
join every 15 minutes

o/
Yeah, just let me know when you guys wanna play!
Greetings
have nitro classic or full version @dense ibex ?
Browser hopping is fun
henlo @swift valley o/
Trying out ungoogled chromium for a bit
Edge broke so here I am
case is 1.3kg without the switches and keycaps
there is a brass weight and a brass plate, thus the weight
case is alu
my other is POM (plastic), so not metal. but it also does have a brass weight.
https://store.projectkeyboard.com/collections/sirius/products/sirius-2
DISCLAIMER: The POM variant is made out of a raw material, POM (acetal), and sanded down to remove machine marks. We do our best to reduce visible cosmetic blemishes, but minor specks may be visible. Specifications: Top: POM (White) or Polycarbonate (Sandblasted) Bottom: POM (White) or Polycarbonate (Sandblasted) Plate
Wait, do you have the same color way that they show on the website? Or is yours different?
some boards can go upwards of like 6-8 lbs but that's way too much for me
my polaris is rose gold (of course)
ugh
gamer font lmao
I'm like
80% sure that top one is just made of marshmallows
Or some sort of Easter candy
close, jelly lol. the texture of POM for keycaps is wack though they're not my favorite. i have since unbuilt that board entirely
https://esckeyboard.com/collections/pom-jelly-series
hemlock did you ever got your pre-ordered keyboard?
This full kit covers a full size ANSI layout keyboard and will also include a 1.75 right shift for 65% keyboard conversions. This will fit most of the full size and 65% standard layout keyboards on the market. This product is in stock and will be dispatched immediately. More details: Material: POM (Acetal) Profile:
they're also OEM profile and i much prefer cherry profile

.catify
Your catified nickname is: jake | ᓕᘏᗢ
.catify
Your catified nickname is: KJ | ᓚᘏᗢ
.decatify
.catify
Your catified nickname is: Une | ᓕᘏᗢ
.catify #751591688538947646
.catify 267624335836053506
267624335836053506 🐈
.catify @whole bear
🐈 @lusty haven
.catify @ionic sinew
@ionic sinew ᕂᘏᗢ
.catify jake
jake ᓕᘏᗢ
.catify uicheichdrucf
uicheichdrucf ᘡᘏᗢ
see
Provided to YouTube by DistroKid
lllow the sun · the olllam
lllow the sun
℗ the olllam
Released on: 2021-02-19
Auto-generated by YouTube.
@dense ibex
.catify @pure willow
ᓚᘏᗢ @pure willow
ok this dude is not on the server but its on other shared server.
mina undeafened 🧐
it's a miracle
maybe soon we'll even get LX unmuted
An open-source keyboard for serious developers, gamers, and people who care deeply about their craft.
Actually just looking at the
we're on a break
.catify
Your catified nickname is: FatyCaty.py :D | ᕂᘏᗢ
^ are you not in VC?
An open-source keyboard for serious developers, gamers, and people who care deeply about their craft.
Didnt linus make a video on dat
later guys
Linus does for all kinds of them
@rugged root ;) https://github.com/foostan/crkbd
column staggered but half the keys :o)
interesting keyboard
!stream 696634651875213322
@unborn storm
✅ @unborn storm can now stream.
!stream 816074283994054686
@whole bear
✅ @warped turret can now stream.
@hollow haven did you listen to the album 🥺
A bit, plan to listen to more of it later
i have a big problem with my pc...
o
anyone wanna help me?
Hey there!
ill just go to code help
Hello!
is just a yellow lemon tree
What's the issue with it?
Are you an admin or do you have admin permissions?
my tank's engine sounds like a fuckin lawnmower
I am
Im an admin...
shit
sorry
i think
Wow my internet is slow
Lol
I typed those words for like 20 seconds ago
I mean I have had some internet issues
But um
I’m an admin
And I’m worried
Slight mistake in the video, this version is not sung by the Smokey Mountain band, but performed by the San Miguel Master Chorale of 2004. Of course, written non other by the legendary Mr. Ryan Cayabyab!
Enjoy the video and thanks for watching!
Image courtesy of Google search
THE EARWORM MUG!
Get yours here - https://teespring.com/the-earw...
Okay, so, do you have 3rd party anti virus?
explains why these guys look like that
2...
Lmao
Malware bytes and norton
At the same time
It's likely then that those are interfering and blocking you from changing settings. I would disable/uninstall and see if it helps
I would like to just say this
I only use malware bytes for scans
And quit it when I’m done
So Norton could be the issue...
I’m trying to add protective folders
But thank you
Is there any way I can do this without disabling Norton?
Cause Norton has saved my pc
Many times...
It's probably Norton interfering with it, so I would start there. You could start messing with group policies or disables windows defender as a whole
Ok thanks 😊
as much as I find my hyperfocus useful, it's really bad for understanding stuff ex post facto
i basically ported the words function from Haskell into type-level PureScript and I have no idea how it works
@bot.command()
async def staff(ctx, user: discord.Member):
if ctx.author.id in administrators:
role = discord.utils.get(ctx.guild.roles, name="Support")
embed = discord.Embed(title="Accepted as support", description=f"Hello, {user.name}\n You have been accepted as staff for {user.guild.name}.\n Please reply with `yes` if you wanna be staff, If no reply with `no`.")
await user.send(embed=embed)``` so i wanna make it where they reply to the dm with yes or no and it replies back how would I do that?
@hollow haven I just found the issue
The problem is that you have to have windows defenders real time protection to be able to use protected folders
So I think that’s why
"No user is associated with the committer email." on an "unverified" labelled commit is what I've finally gotten after giving github my gpg key, telling git about it, and telling git to sign my commits. I used my github no-reply email as their own tutorial suggested. I feel like an idiot. Any advice?
@whole bear are your commits made under the no-reply email as well?
git log should be able to tell
Wow, I honestly can't believe this. 😆
!server
🎉 congratulations!
@dense ibex congrats!!! now that you're helper can you please help me with my super advanced pandas problem kthx!!!

found another nice single
this is a good music day
https://www.youtube.com/watch?v=-6TS7eiKZO8
A short film visualising the track ‘Flow, In The Year Of Wu Wei’ that was released back in June 2020. About the power of creative spirit that in times of crisis, is forced out of a space of comfort into radical new perspectives and forms of expression to find meaning and make sense of the things we cannot control and cannot really explain.
Sho...
Thank you and yes I will 😆
@dense ibex question for you
I have an exception inside an exceptions.py file, in an exceptions dir (which also contains __init__.py and handler.py, under the main project dir
flightplandb.exceptions.exceptions.NotFoundException
how do I make it namespace as
flightplandb.NotFoundException
and should I even do that
More bluegrass covers: https://open.spotify.com/track/4YFSwAQH0hnhizv570glsn?si=3fadfc888e984b85
!stream 412009418670997536
@terse needle
✅ @terse needle can now stream.
This is a technique from the historical fencing manuals that may seem very odd at first. Many people say "why would you grab a sharp blade with bare hands, you're gonna cut yourself!" But with a firm grip it is indeed possible.
There were good reasons for doing this in medieval / renaissance times of plate armor that was impervious to sword cut...
I have to go have go, have a good one.
My name's Alec Steele and here you'll find near-daily videos documenting the process of building some awesome projects here in the shop. As a blacksmith, most of the projects start as lumps of steel, or stacks of different alloys for making damascus, that I forge out into blades, sculpture, art or tools before taking the project to the machining...
ugly ford
Hey @flat sentinel!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
• If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
• If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
hello guys, can someone help me in sqlalchemy queries pls?
class BaseException(Exception):
__module__ = "Exception"
this is soo cool
!help stream
!stream <member> [duration]
Can also use: streaming
*Temporarily grant streaming permissions to a member for a given duration.
A unit of time should be appended to the duration.
Units (∗case-sensitive):
y - years
m - months∗
w - weeks
d - days
h - hours
M - minutes∗
s - seconds
Alternatively, an ISO 8601 timestamp can be provided for the duration.*
!stream @terse needle 30M
@terse needle
✅ @terse needle can now stream.
from typing import Optional
def func(param: Optional[str] = None):
...
lets go EMOJI COMMITS FOR THE WIN
@ Griff's the kind of developer who enjoys writing tests more than the actual source code 😅
Thank god
Someone has to
🤣
I really need to buckle down and learn it
@uncut meteor
It's been on my short list of things to do
@severe pulsar
@severe pulsar @severe pulsar @severe pulsar
prepare yourself
You're treading a fine line Mina! 😄
😬

!eval
pings = "@severe pulsar"*200
print(pings)```
@frigid panther :white_check_mark: Your eval job has completed with return code 0.
<@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@481064298932731915><@4810642
... (truncated - too long)
Full output: https://paste.pythondiscord.com/yibidiyibo.txt?noredirect
You know what this reminds me of...
👀
what
lmao
i love the passive aggression
until he outright just disagrees
its so non-confrontational until he explicitly says the word "disagree"
Ohh yeah, if you could just sort of not do that, that would be greaat, mmmkay?
o/
@honest pier
nickname is accurate
wow



53561
137487