this is better than the original one
https://open.spotify.com/track/5YNf9s8WE3iF33YaFNrgpa?si=10c43b33ea744bfe
#voice-chat-text-0
1 messages · Page 774 of 1
finally finished my bubble sort visualiser in cpp
might install obs an try and record it working
Nice!
ffmpeg in general has huge amounts of deps iirc
Yeah, kind of scary when you enter a command and it starts installing like 100 dependencies 😅
the debian repo has a very minimally compiled ffmpeg so it only needs 14 dependencies
@rugged root Barn Swallower.
but that usually means you install the other dependencies later on by hand when you need them after all
take a look at the optional vs required deps in
https://github.com/homebrew-ffmpeg/homebrew-ffmpeg/blob/master/Formula/ffmpeg.rb
pretty promising server and pretty safe for sure
All I wanted to do was make a gif ;-;
...wow
😔 9999h is not a valid datetime 😔
!e python import datetime, time a = datetime.datetime.now() time.sleep(1) b = datetime.datetime.now() print(b-a)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
0:00:01.005458
here is my bubble sort visualiser working https://www.youtube.com/watch?v=kva3qmS08Y8
!e ```py
import datetime, time
a = datetime.datetime.now()
time.sleep(1)
b = datetime.datetime.now()
print(b-a)
@runic forum :white_check_mark: Your eval job has completed with return code 0.
0:00:01.003996

I think many of those are listed as "recipes" at the bottom of the itertools documentation.
def diference_in_time(first_time: datetime.datetime, seond_time: datetime.datetime):
difference = second_time - first_time
seconds_in_day = 24 * 60 * 60
# difference in minute, second tuple
# return divmod(difference.days * seconds_in_day + difference.seconds, 60))
# difference in seconds
return difference.days * seconds_in_day + difference.seconds
whats this?
yep
!e ```py
def diference_in_time(first_time: datetime.datetime, seond_time: datetime.datetime):
difference = second_time - first_time
seconds_in_day = 24 * 60 * 60
# difference in minute, second tuple
# return divmod(difference.days * seconds_in_day + difference.seconds, 60))
# difference in seconds
return difference.days * seconds_in_day + difference.seconds
oh wait...
!e ```py
import datetime
def diference_in_time(first_time: datetime.datetime, seond_time: datetime.datetime):
difference = second_time - first_time
seconds_in_day = 24 * 60 * 60
# difference in minute, second tuple
# return divmod(difference.days * seconds_in_day + difference.seconds, 60))
# difference in seconds
return difference.days * seconds_in_day + difference.seconds
none
import datetime is missing. This is a nice way how I get difference of datetime in a project
Yes, None. The function hasn't been called yet.
i dont know python
Well then you're in the right place!
I think programming in Python can actually be cognitively hard. Something to do with having to keep more information in your working memory while you mentally simulate the execution of the program.
Because you can have things like lists that mix types.
it's hard to knockoff the habit of declearing type before the variable
Ambrosia.
brb
is it like electron?
gtg for a bit 👋
you actually put the html file as a string inside the python code XDDDD
Yeah this is wild
It's directly using Chrome rather than Electron
That's really interesting
EEL does too (i think)
oh i see
Hmmm.....
Something like this is what i need
<Greenlet at 0x4691a50: run_lambda> failed with OSError
Thanks for tat hahahah
Evenin'
hello
Yeee
😔
lane detection is very basic now
you can use Intel's OpenVINO to do this
lane Detection
natural language is not precise
so what would a "beautiful girl" return
In case I missed saying hello to anyone, hello!
halo
More than you could possibly conceptualize
can someone hop in voice chat with me
Do you need help with something?
@whole bear yes
!mutable-default
Mutable Default Arguments
Default arguments in python are evaluated once when the function is
defined, not each time the function is called. This means that if
you have a mutable default argument and mutate it, you will have
mutated that object for all future calls to the function as well.
For example, the following append_one function appends 1 to a list
and returns it. foo is set to an empty list by default.
>>> def append_one(foo=[]):
... foo.append(1)
... return foo
...
See what happens when we call it a few times:
>>> append_one()
[1]
>>> append_one()
[1, 1]
>>> append_one()
[1, 1, 1]
Each call appends an additional 1 to our list foo. It does not
receive a new empty list on each call, it is the same list everytime.
To avoid this problem, you have to create a new object every time the
function is called:
>>> def append_one(foo=None):
... if foo is None:
... foo = []
... foo.append(1)
... return foo
...
>>> append_one()
[1]
>>> append_one()
[1]
Note:
• This behavior can be used intentionally to maintain state between
calls of a function (eg. when writing a caching function).
• This behavior is not unique to mutable objects, all default
arguments are evaulated only once when the function is defined.
@whole bear im new to coding so i dont think i could explain through typing so voice chat would be better for me
Okay, maybe I can help
def func(a = print('Hello, world.')):
pass```
func f(i: Int, L: [Int] = [Int]()) {
var L = L
L.append(i)
print(L)
}
f(i: 3)
f(i: 6)
out:
[3]
[6]
what language
swift
ok
func f(a: Int, b: Int) {
print(a)
print(b)
}
f(b: 5, a: 3)
``` won't compile
func f(random_name a: Int) {
print(a)
}
f(random_name: 10)
So can you do f(random_name: 10) as well as f(a: 10)? Or does specifying make it so that you can only use the random_name
you can only do random_name when you call the function
in the function signature, the one before the space is the exposed name, the one after is the name inside the function
yes
it makes sense, kinda, but like
¯_(ツ)_/¯
you can be descriptive to users of your API, and convenient to your programmers
!mute 775376034634661898 Investigating
:ok_hand: applied mute to @whole bear until 2021-03-05 17:12 (59 minutes and 59 seconds).
company's making me take basic Udemy courses 😭 , they suck
jokes on you i use vim
back to shi** udemy video for now
for what ?
yeah, its basic, I might not know some of it
but I already know most of it
and it won't let me skip vidoes
I have to watch em
just I'm watching em on 2x speed
@rugged root That font makes me think of "Live Laugh Love" for some reason
It really really does
I'm good with any font that makes __ into _ _ (separation visible)
@cursive minnow You having connection issues?
font suggestions, I don't like the jetbrains default fonts
I'm using Input Mono Regular
also Hack in a diff editor
yes
Also I really should automate deployments
Ah okay
any good, what are the requirements ?
!ping
You are not allowed to use that command here. Please use the #bot-commands channel instead.
!ping
Pong!
Command processing time
72.955 ms
Python Discord website latency
1.265 ms
Discord API latency
137.701 ms
this course? no its a waste of time
no need to do it, if you don't have to @hoary inlet
okay so scrum is ?
and what do you suggest then?
I've never done any Udemy course ever before this
idk
I didn't pay for this, its free for me
Scrum is section 10, I'm on section 5
@rugged root who was it
lol

Victor Mono is a free programming font with semi-connected cursive italics and symbol ligatures.
Or last DM control I would want is servers could set an option where people would get notified about shared server setting
How do you mean, Rab?
So they could be like “Hey, we are large public open server with very little vetting. We would recommend turn off allow DM from members if you have concerns”
can i throw it out of a skyscraper
Like number of people on discord I’ve had to point to that option is too damn high
Huh, this one actually seems quite pleasant. https://en.wikipedia.org/wiki/Everson_Mono
datetime.fromtimestamp(1172969203.1)
datetime.datetime(2007, 3, 4, 0, 46, 43, 100000)
ok, so on downloading a font, you get a list of bold/italics etc, how do you apply all of them so they work together
like this
ok
de-compile this ```py
_____ = True
def ___():
______ = False
if _ in {2,3}:
return _____
elif _ < 2 or _ % 2 == 0 or _ % 3 == 0:
return ______
___ = 5; __=2
while ___**2 <= _:
if _ % ___ == 0:
return ______
___ += ; = 6 - __
return _____
🤔 it's not compiled 🤔
I love the use of _ in python
simple primality test, i think
!e ```py
s = """
_____ = True
def ___():
______ = False
if _ in {2,3}:
return _____
elif _ < 2 or _ % 2 == 0 or _ % 3 == 0:
return ______
___ = 5; __=2
while ___**2 <= _:
if _ % ___ == 0:
return ______
___ += ; = 6 - __
return _____
"""
import ast
import dis
print(ast.parse(s))
print(dis.dis(s))
😔
@faint ermine :white_check_mark: Your eval job has completed with return code 0.
001 | <ast.Module object at 0x7fd5453bcfd0>
002 | 2 0 LOAD_CONST 0 (True)
003 | 2 STORE_NAME 0 (_____)
004 |
005 | 3 4 LOAD_CONST 1 (<code object ____ at 0x7fd5453b1190, file "<dis>", line 3>)
006 | 6 LOAD_CONST 2 ('____')
007 | 8 MAKE_FUNCTION 0
008 | 10 STORE_NAME 1 (____)
009 | 12 LOAD_CONST 3 (None)
010 | 14 RETURN_VALUE
011 |
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/unuzeciyeg.txt
so what does it do laundmo?
the code
('____')
Fix is a madman
He has a dominion over #esoteric-python
Also, quite a lot of people today
Hello folks
〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️
when you guys work on personal projects,
do you go for "test driven development",
or no tests at all?
Hemlock, come to India, we have ancient healing magic here
just like Doctor Strange
I added tests retroactively for my site
look at the time I'm supposed to spend on these sections
😂 I'm going over them like 5-7 min each
what's scrum
I'm on section 9 right now
that's what I said
!src
nice one
dude you made your font worse
ikr lmao
is there any way to loop through something and it changes variable name ?
You really really really don't want or need to do that
Variables are specifically for the coder, not the end user
If you need something with a similar name, better to put them in a list
what if the end user is the coder 😔
no, like I want the function to generate a new variable with a new name for each loop
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
yikes
use a list
start_07 = datetime.date(2007,1,1)
end_07 = datetime.date(2007,12,31)
start_08 = datetime.date(2008,1,1)
end_08 = datetime.date(2008,12,31)
start_09 = datetime.date(2009,1,1)
end_09 = datetime.date(2009,12,31)
start_10 = datetime.date(2010,1,1)
end_10 = datetime.date(2010,12,31)
start_11 = datetime.date(2011,1,1)
end_11 = datetime.date(2011,12,31)
start_12 = datetime.date(2012,1,1)
end_12 = datetime.date(2012,12,31)
start_13 = datetime.date(2013,1,1)
end_13 = datetime.date(2013,12,31)
start_14 = datetime.date(2014,1,1)
end_14 = datetime.date(2014,12,31)
start_15 = datetime.date(2015,1,1)
end_15 = datetime.date(2015,12,31)
start_16 = datetime.date(2016,1,1)
end_16 = datetime.date(2016,12,31)
start_17 = datetime.date(2017,1,1)
end_17 = datetime.date(2017,12,31)
start_18 = datetime.date(2018,1,1)
end_18 = datetime.date(2018,12,31)
start_19 = datetime.date(2019,1,1)
end_19 = datetime.date(2019,12,31)
start_20 = datetime.date(2020,1,1)
end_20 = datetime.date(2020,12,31)
cmon bruh
!e
for x in range(7, 21):
print(2000+x)
@honest pier :white_check_mark: Your eval job has completed with return code 0.
001 | 2007
002 | 2008
003 | 2009
004 | 2010
005 | 2011
006 | 2012
007 | 2013
008 | 2014
009 | 2015
010 | 2016
011 | 2017
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/udoliqizoc.txt
but I have to give the date in the date format
nah was just for fun
That's about as fun as #esoteric-python
!e
for x in range(7, 21):
print(2000+x, 1, 1)
@honest pier :white_check_mark: Your eval job has completed with return code 0.
001 | 2007 1 1
002 | 2008 1 1
003 | 2009 1 1
004 | 2010 1 1
005 | 2011 1 1
006 | 2012 1 1
007 | 2013 1 1
008 | 2014 1 1
009 | 2015 1 1
010 | 2016 1 1
011 | 2017 1 1
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/havosiqebe.txt
can you see how this is useful for what you're doing?
yeah, I got that but that's why I was looking to change the variable name as well
why
to give the start and end time for the data
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
!e
datetimes = []
for x in range(7, 21):
datetimes.append((2000+x, 1, 1))
datetimes.append((2000+x, 12, 31))
print(datetimes)
@honest pier :white_check_mark: Your eval job has completed with return code 0.
[(2007, 1, 1), (2007, 12, 31), (2008, 1, 1), (2008, 12, 31), (2009, 1, 1), (2009, 12, 31), (2010, 1, 1), (2010, 12, 31), (2011, 1, 1), (2011, 12, 31), (2012, 1, 1), (2012, 12, 31), (2013, 1, 1), (2013, 12, 31), (2014, 1, 1), (2014, 12, 31), (2015, 1, 1), (2015, 12, 31), (2016, 1, 1), (2016, 12, 31), (2017, 1, 1), (2017, 12, 31), (2018, 1, 1), (2018, 12, 31), (2019, 1, 1), (2019, 12, 31), (2020, 1, 1), (2020, 12, 31)]
okay, I got it, so to generate the list and then give it in the pandas_dataframe by index
!e
Test = input('This is a test to see if we can do inputs here:')
@boreal spear :x: Your eval job has completed with return code 1.
001 | This is a test to see if we can do inputs here:Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
What do you need help with?
@crude pewter what you trying to do?
Im trying to derive a polynomial
!e
import sys
from io import StringIO
sys.stdin = StringIO("hooray!")
print(input())
@honest pier :white_check_mark: Your eval job has completed with return code 0.
hooray!
itll be easier if i could share my screen
derive?
what are you tyring to do with a ploynomial @crude pewter ?
A sound-powered telephone is a communication device that allows users to talk to each other with the use of a handset, similar to a conventional telephone, but without the use of external power. This technology has been used since at least 1944 for both routine and emergency communication on ships to allow communication between key locations on...
Oh my god lawando
what ?
Lol ... We just call laundmo that out of love
!voice @frank delta This should tell you what you need to know. Sorry for only just now responding!
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
thanks
This can disrupt cell phone market ... Would go for 6 months in one charge
not really
well, its still really low powered
@hoary inlet so Scrum its a product development framework that companies adopt to make products for their clients
quite popular with tech companies
3 Roles in Scrum Model
- Product Owner (who hired your tech company to make something)
- Scrum Master ( probably tech lead)
- Development Team ( slaves writing code )
5 Scrum Events
- Sprint Planning ( setting small goal to accomplish in certain amount of time like 15 days or so)
- Daily Standup ( A meeting held everyday for like 20 min where everybody explains what they did recently and what they'll be doing today)
- The Sprint ( coding )- Sprint Review ( after 15 days asking clients reviews on the product, so if we made something diff from what
client wanted, its just 15 days or less wasted and we can make necc. changes) - Sprint Retrospective ( after getting yelled by client, back to whiteboard to prepare for next sprint )
- Sprint Review ( after 15 days asking clients reviews on the product, so if we made something diff from what
** Probably should've just dm you all this **
** btw I'm Still not finished with this **
it's the reason why wireless charging is ineffective past half a meter or so
hi i made some progress in my code
Depends on what frequency you use
no, it doesn't matter
but i have the problem with function break and return
U need different dangerous frequency for longer distance
Someone is ready for megacorp
Scrum is trying to combine Agile development with employing office drones
yeah, didn't get what you mean by this?
also you're not in the chat
just realized that
now this is really well done, but it seems more in the area of management no, like it's kind of a roadmap on how to execute a task in teams
well, yeah, I don't have to be concerned with this stuff for now
I'm just a newbie
back to videos, I really want to finish this before bed
My complaints about corporations adding paperwork to processes
it said 8 hrs total, I argued max 2
you will, considering you are going through them at 2x
I like the way big companies steal each other's employees and then copy their products
what do you mean by that?
Like apple recently hired a lot of Tesla employees
Because it wants to enter the car market
oohh... right...
what really I thought those were just rumors
at this point every is getting into cars
Naah it's tru ... Even the senior brass
you can charge it at apple electric stations only
It seems this craze is going to blowup on a couple of people
looks like a mouse
how bout this one?
now this, I like
i agree
Apple car would have wireless tyres
looks like a BTEC Tesla
Tyres would run separately from car
wireless battery
apple cars comes without Tyre
🎊 🎊 🎊
Nice
🎉
Feel like you learned from it?
it would probably look something like this..
glad to be of help
Can we just have regular, cool-looking smart cars
no

what's the fun in that ?
Reject modernity, embrace tradition, return to monke
go back i want to be monke
harambe
you know if the company's able to track my time I spent on these courses
idk what I am gonna say 😨
can I interest in a horse shaped electric car ?
🦍
No thank you yikes
I can't get the image of out of my head
horse cyborg
can I say something
I hate cars, they get stuck in Indian traffic a lot

just don't get stuck
do apple cars have windows?
g9 guys
gn
j9
night
gud nyt
k9

imagine being named after a glass disk
ok, I'm gonna go sleep
bye, 👋
i-
night
could not be me
javascript
?
couldn't be me ¯_(ツ)_/¯
:/
I don't know about glob
why not load both the files into a dataframe concatinate them and then create a new file
they have any columns in common ?
Hi
hi
mods trying to show off
flexin

Santa Claus (Jason Bateman) receives a series of Christmas letters from an insistent man (Pete Davidson).
Saturday Night Live. Stream now on Peacock: https://bit.ly/3j1IRUk
Subscribe to SNL: https://goo.gl/tUsXwM
Stream Current Full Episodes: http://www.nbc.com/saturday-night-live
WATCH PAST SNL SEASONS
Google Play - http://bit.ly/SNLGoogle...
not available 😫
not if mercedes exists
lol
hello
hello
the presence of scalpers is good for the company, so they won't chase them off
It’s not
Pretty bad will
but the scalpers do ultimately sell it to the end consumers
and it makes the sale faster for the company
I have seen a couple of companies bragging about how fast their inventory cleared out
no there's a misunderstanding you guys are talking about devices which get sold through retailers
I was talking about when the companies ship directly
bestbuy I have no idea
its a shitshop
electronic products ??
Baked Beans
eh
That’s where their money comes from
for retailers I understand, what about manufacturing companies, like sony ?
Sony would be like a platform , which provides a gateway for game development companies ?
So can I not do this?
first_login = datetime.datetime.fromtimestamp(first_login).strftime(%A-%Y-%m-%d %H:%M:%S)
is there an error
Yes
and I am getting highlights underneath
(%A-%Y-%m-%d %H:%M:%S)
this is what the error is
...?
like thats where I am getting the error
ok, but what's the error
File "C:\Users\jakea\Desktop\StatPixel(Stixel)\bot\cogs\overall.py", line 45
first_login = datetime.datetime.fromtimestamp(first_login).strftime(%A-%Y-%m-%d %H:%M:%S)
^
SyntaxError: invalid syntax
check the line before
wdym
or just show more code
ok
async with aiohttp.ClientSession() as session:
async with session.get(
"API TOKEN"
f"{uuid}") as response2:
print('Connected To Player API')
api_info = await response2.json()
name = api_info["player"]["displayname"]
karma = api_info["player"]["karma"]
rank = api_info["player"]["newPackageRank"]
first_login = api_info["player"]["firstLogin"]
karma = ("{:,}".format(karma))
first_login = datetime.datetime.fromtimestamp(first_login).strftime(%Y-%m-%d-%H:%M:%S)
its spaced out weird because I just copied it from the file directly
Just add more RAM™
There was this Japan-only SNES peripheral that connected to a satellite subscription
I think
i have too much ram
why ?
32 gigs?
cus i can
you will be one hella crypto miner
he might be
I am curious on your graphics card
hahahaha
your gonna laugh lmao
you gotta let the man finish the joke
how much ram in total?
32165MiB
which is....?
32165MiB
what is your video ram
I mean, I didn't have cell phone with unlimited calling until college
I think 4GB but ill have to check
lightweights 😛
what was it like before social media?
only 3.28GHz?
madlad
16 cores
Holy Smackrel
it's my home lab serveral
Work SQL server
2TB RAM, nice
The hell is that spike. It is more erect than an erection
Hello, just a quick question.
Can we scan all the devices connected to wifi via ethernet on the same network?
probably me logging in
Why do you have 16 cores my guy?
that's my home lab server
it was old virtualization host my company was getting rid of
I see
it's 5 years old
😔 software engineer salary 😔
second picture is a work server, that's in production
?
??
Why do you need that?
@rugged root me?
that won't tell you if they are wifi clients
windows is shit
Windows will let you ARP scan
Yes
that means it is possible!.....
ik, but its annoying
Sure, Raw Sockets is something few people need
Oh! I just reinstalled linux on my old desktop computer but I don't have wifi on it. So I was wondering if I can do some experiments over wifi while connected via ethernet
I use mine mainly to play games
┌──┌┬─┌─┐┌┬─┌─┐┬
└─┐ │ ├─┤ │ ├─┘│
──┘ ┴ ┴ ┴ ┴ ┴ ┴
🤔
jere
┌──┌┬─┌─┐┌┬─┌─┐┬
└─┐ │ ├─┤ │ ├─┘│
──┘ ┴ ┴ ┴ ┴ ┴ ┴
┌┬┐┌─┐┌┬┐┌┬┐┌─┐┬┬
││││ │ │││││├─┤││
┴ ┴└─┘─┴┘┴ ┴┴ ┴┴┴─┘
\ /
X
/ \
┌──┌┬─┌─┐┌┬─┌─┐┬╲ ╱
└─┐ │ ├─┤ │ ├─┘│ ╳
──┘ ┴ ┴ ┴ ┴ ┴ ┴╱ ╲
\ /
╳
/ \
.status cat 503
ayy
.status cat 404
.[http_status|status|httpstatus]
Group containing dog and cat http status code commands.
Commands:
cat Sends an embed with an image of a cat, portraying the status code.
dog Sends an embed with an image of a dog, portraying the status code.
Type .help command for more info on a command.
You can also type .help category for more info on a category.
.status cat 404
.status cat 403
_ _
( \/ )
) (
(_/\_)
____ _____
`. \ .' /
`. `' .'
'. .'
.' `.
.' .'`. `.
.' / `. `.
'----' '----'
.status cat 420
**Status: 420**
Inputted status code does not exist.
xxxxxxx xxxxxxx
x:::::x x:::::x
x:::::x x:::::x
x:::::xx:::::x
x::::::::::x
x::::::::x
x::::::::x
x::::::::::x
x:::::xx:::::x
x:::::x x:::::x
x:::::x x:::::x
xxxxxxx xxxxxxx
.ms start
@runic forum is playing Minesweeper
Here's their board!
:stop_button: :regional_indicator_a: :regional_indicator_b: :regional_indicator_c: :regional_indicator_d: :regional_indicator_e: :regional_indicator_f: :regional_indicator_g: :regional_indicator_h: :regional_indicator_i: :regional_indicator_j:
:one: :x: :flag_black: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question: :bomb: :grey_question:
:two: :one: :two: :bomb: :grey_question: :bomb: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question:
:three: :stop_button: :one: :grey_question: :grey_question: :grey_question: :grey_question: :bomb: :grey_question: :bomb: :grey_question:
:four: :stop_button: :one: :grey_question: :grey_question: :grey_question: :bomb: :bomb: :bomb: :grey_question: :bomb:
:five: :one: :two: :bomb: :bomb: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question:
:six: :grey_question: :bomb: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question: :bomb: :grey_question:
:seven: :grey_question: :grey_question: :grey_question: :bomb: :grey_question: :grey_question: :grey_question: :grey_question: :bomb: :grey_question:
:eight: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question: :bomb: :grey_question: :grey_question: :grey_question:
:nine: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question:
:keycap_ten: :grey_question: :grey_question: :bomb: :grey_question: :bomb: :grey_question: :bomb: :grey_question: :bomb: :grey_question:
__ __
\ \/ /
> <
/_/\_\
```
#sir-lancebot-playground @runic forum
:fire: @runic forum just lost Minesweeper! :fire:
▄█ ▄▀▀█▄ ▄▀▀▄ █ ▄▀▀█▄▄▄▄
▄▀▀▀█▀ ▐ ▐ ▄▀ ▀▄ █ █ ▄▀ ▐ ▄▀ ▐
█ █ █▄▄▄█ ▐ █▀▄ █▄▄▄▄▄
▐ █ ▄▀ █ █ █ █ ▌
▄ ▀▄ █ ▄▀ ▄▀ █ ▄▀▄▄▄▄
▀▀▀▀ ▐ ▐ █ ▐ █ ▐
▐ ▐
u stink @dense ibex
.ms start
@runic forum is playing Minesweeper
Here's their board!
:stop_button: :regional_indicator_a: :regional_indicator_b: :regional_indicator_c: :regional_indicator_d: :regional_indicator_e: :regional_indicator_f: :regional_indicator_g: :regional_indicator_h: :regional_indicator_i: :regional_indicator_j:
:one: :grey_question: :grey_question: :x: :grey_question: :grey_question: :bomb: :grey_question: :grey_question: :grey_question: :grey_question:
:two: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question: :bomb: :grey_question: :grey_question: :grey_question: :grey_question:
:three: :grey_question: :bomb: :grey_question: :grey_question: :bomb: :grey_question: :bomb: :grey_question: :grey_question: :grey_question:
:four: :grey_question: :grey_question: :grey_question: :grey_question: :bomb: :grey_question: :grey_question: :bomb: :bomb: :grey_question:
:five: :bomb: :grey_question: :bomb: :grey_question: :grey_question: :grey_question: :bomb: :grey_question: :bomb: :grey_question:
:six: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question:
:seven: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question: :bomb: :grey_question:
:eight: :grey_question: :two: :grey_question: :bomb: :bomb: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question:
:nine: :bomb: :grey_question: :bomb: :grey_question: :bomb: :bomb: :grey_question: :grey_question: :grey_question: :grey_question:
:keycap_ten: :grey_question: :grey_question: :bomb: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question: :grey_question: :bomb:
:fire: @runic forum just lost Minesweeper! :fire:
Everyone here
▄▀▀▀█▀ ▐ ▐ ▄▀ ▀▄ █ █ ▄▀ ▐ ▄▀ ▐
█ █ █▄▄▄█ ▐ █▀▄ █▄▄▄▄▄
▐ █ ▄▀ █ █ █ █ ▌
▄ ▀▄ █ ▄▀ ▄▀ █ ▄▀▄▄▄▄
▀▀▀▀ ▐ ▐ █ ▐ █ ▐
▐ ▐
____ ___ ____ ___ ___ _ _ _
[__ | |__| | |__] | \/
___] | | | | | | _/\_
.pyfact
Python Facts
If you type import this in the Python REPL, you'll get a poem about the philosophies about Python. (check it out by doing !zen in #bot-commands)
Suggestions
Suggest more facts here!
!e
a = 1
b = 2
a, b = b, a
print(a, b)
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
2 1
!e import this
@graceful grail :white_check_mark: Your eval job has completed with return code 0.
001 | The Zen of Python, by Tim Peters
002 |
003 | Beautiful is better than ugly.
004 | Explicit is better than implicit.
005 | Simple is better than complex.
006 | Complex is better than complicated.
007 | Flat is better than nested.
008 | Sparse is better than dense.
009 | Readability counts.
010 | Special cases aren't special enough to break the rules.
011 | Although practicality beats purity.
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/dalivofivu.txt
!e
import that
@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 | ModuleNotFoundError: No module named 'that'

!e print('efhiDf'.swapcase())
huh
it's only 19
!e
import sys
from io import StringIO
old = sys.stdout
new = sys.stdout = StringIO()
import this
L = new.getvalue().split("\n")
sys.stdout = old
print(len(L))
print(L)
@honest pier :white_check_mark: Your eval job has completed with return code 0.
001 | 22
002 | ['The Zen of Python, by Tim Peters', '', 'Beautiful is better than ugly.', 'Explicit is better than implicit.', 'Simple is better than complex.', 'Complex is better than complicated.', 'Flat is better than nested.', 'Sparse is better than dense.', 'Readability counts.', "Special cases aren't special enough to break the rules.", 'Although practicality beats purity.', 'Errors should never pass silently.', 'Unless explicitly silenced.', 'In the face of ambiguity, refuse the temptation to guess.', 'There should be one-- and preferably only one --obvious way to do it.', "Although that way may not be obvious at first unless you're Dutch.", 'Now is better than never.', 'Although never is often better than *right* now.', "If the implementation is hard to explain, it's a bad idea.", 'If the implementation is easy to explain, it may be a good idea.', "Namespaces are one honking great idea -- let's do more of those!", '']
just one at the end and one between the title and actual thing
there's a programming app for kids right ?
You didn't know?
Vba
I did once
You can record
It generates
wow
i am female

who's this
!e import this
@plain mica :white_check_mark: Your eval job has completed with return code 0.
001 | The Zen of Python, by Tim Peters
002 |
003 | Beautiful is better than ugly.
004 | Explicit is better than implicit.
005 | Simple is better than complex.
006 | Complex is better than complicated.
007 | Flat is better than nested.
008 | Sparse is better than dense.
009 | Readability counts.
010 | Special cases aren't special enough to break the rules.
011 | Although practicality beats purity.
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/gaqidiyowa.txt
.pyfact
Python Facts
If you type import antigravity in the Python REPL, you'll be directed to an xkcd comic about how easy Python is.
Suggestions
Suggest more facts here!
Yea other language I am not able to swap case
!e ```py
import antigravity
@plain mica :warning: Your eval job has completed with return code 0.
[No output]
Because there is no built-in function
.pyfact
Python Facts
Python was named after Monty Python, a British Comedy Troupe, which Guido van Rossum likes.
Suggestions
Suggest more facts here!
@pine ledge #sir-lancebot-playground
How can i raise exception and responce at the same time
what do you mean by response?
Json response
👽
how do you raise a json response?
I cant use python when it goes to a framework
raise JsonResponse
By returning object
can you show code of what you want
@pine ledge is it what i think it is
What is it that you think
Zuckerberg?
Pardon
Someone is saying they met Mark
I have no clue about what youre talking about
mark the core dev
Of?
@wise cargo
the bot
Which bot
.
ill brb

the code underneath the raise Exception is unreachable
Ok
remove the .01 %
@api_view(['POST'])
def create_order(request):
data = request.data
if 'pocket_name' not in data:
raise Exception("enter pocket_name")
return JsonResponse({"message": "enter pocket_name"}, status=status.HTTP_400_BAD_REQUEST)
global balance
url = settings.WALLET_URL + "/list/wallet/pocket_name"
res = requests.get(url, params={'pocket_name': request.data.get('pocket_name')})
balance = res.json().get('data').get('object_list').get('1').get('balance')
serializer = OrderSerializer(data=data)
if not serializer.is_valid():
return JsonResponse(serializer.errors, status=400)
serializer.save()
why do you ywant to raise an exception there
my dirty code
to make it more clean
i don't follow
Colon
:
in another requests
you should never really be using global variables
If you remove exception does it work
ye it works correctly but i should code more
actually i want to manage those kind of things out of my views
the best thing to do would just create a class and pass these kinds of variables around with self
is i t practical
ye i think i got something
let me try
@olive sentinel looks like I won't be able to get a word in -- what are you working on?
(I can't listen to that many concurrent voices so I'll have to head back out)
this is my mouse, got it simply for the thumb button layout
might as well get a remote
I chose my mouse by searching "mouse" on Amazon, and clicking the first link 😄
why cant i talk
Hey, see #voice-verification
thanks
like it is detached from the base
too many small thumb buttons: -20 points
you're objectively wrong tho
but why?
are you in voice chat Sebastiaan?
Guys... use vim 😄
can i get voice permissions please?
Hey, have you read what it says in #voice-verification?
I like how we went from mouse to psychology
"• You have been active for fewer than 3 ten-minute blocks."... is that in voice?
No, in general
i was a helper here years ago but been inactive - do I really need to wait for that?
oh in Discord? that's awkward
maybe 1-2 years ago I was super active here
okay, now I get the appeal for the mouse
feature implemented after that? lol
yep
so can I override it?
it only counts starting from aug 25 of last year
maybe, i'm not a mod/admin
i mean no offense, but you have 500 messages is total @fiery badge
so?
i had about 3000 messages when the voice verification was implemented, and i still had to wait.
both are > 50, i don't understand what's the difference 🙂
i guess what im saying is that neither really matter
Yeah, I think the policy currently is not to bypass voice-verification otherwise people would be constantly asking the mods to do this.
well for sure history and context matter more than number of messages, lol
i also asked "ive been active for a while, can i bypass" and the response was. no
It won't take very long to meet the verification requirements 👍
what does "active" mean in those 3 ten-minute blocks?
Posted a message, I think.
texting? reading? having the server tab opened?
Having sent a message yeah
Feel free to join the conversation in #ot0-psvm’s-eternal-disapproval or #python-discussion and you'll get there soon 😄
One of the who and the what now?
one of the folks that were here when I was a helper ~2-3 years ago maybe?
I agree that there's nothing wrong with granting permissions given context. The voice gate isn't a sacred relic, it's just a tool to keep trolls away from the voice chat. But that's to the discretion of admins.
right, I think I used the name Mon tho
Yeah yeah. Glad you're still alive
😂 surviving through covid... but yeah, work has been killing me
I hear you there. It's tax season, so the accounting firm I'm at is a mad house
Lots of short fuses
oh, yep.. but it's one of the few months you guys actually work right? lol jk
If only that were true
I'm just glad I don't have to do accounting
I'm content being our in house IT
oh @olive sentinel i joined to watch your test cases and you left 
yeah I was just kidding
happy for you that you're not part of that bureaucracy hahah
Same. I'm crazy enough as it is
this is in vr ?
What colour-scheme is this?
@rugged root please help me, I have a question about Cows
🐮
It's related to Python
but Cows are involved
sounds cow related
can you please help me ?
you are right. I learned the basics of pytest recently and I enjoy it a lot more than that weird Java port that they shoved into the stdlib.
what are you using other than pytest?
pssst all of them do this
Oracle doesn't do this, MSSQL doesn't do this
PostGres won't do this
empty space will be reused
RIP my interwebs
@whole bear here
@faint ermine Try switching some things over to a different setting I geuss then
Hmmm
Oh well
Itś much better now
Hehhehehehehe
!e ```py
math = import("math")
print(math.sqrt(9))
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
3.0
fuck that normie import shit
!e
math = __import__("math")
sqrt = getattr(math, "sqrt")
print(sqrt(9))
@tiny socket :white_check_mark: Your eval job has completed with return code 0.
3.0
!epy (math := __import__("math")).sqrt(9)
fuck
!epy print((math := __import__("math")).sqrt(9))

!e ```py
(math := import("math")).sqrt(9)
@zealous wave :warning: Your eval job has completed with return code 0.
[No output]
!e
!eval [code]
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code
block. Code can be re-evaluated by editing the original message within 10 seconds and
clicking the reaction that subsequently appears.
We've done our best to make this sandboxed, but do let us know if you manage to find an
issue with it!*
!e py (math := __import__("math")).sqrt(9)
@rocky kiln :warning: Your eval job has completed with return code 0.
[No output]
!e py print((math := __import__("math")).sqrt(9))
@rocky kiln :white_check_mark: Your eval job has completed with return code 0.
3.0
!e py print(("Take an umbrella.", "Have a nice day!")[bool((re := __import__('re')).match(r"^y$", input("Is it raining? "), re.IGNORECASE))])
@rocky kiln :x: Your eval job has completed with return code 1.
001 | Is it raining? Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
!e py print(("Take an umbrella.", "Have a nice day!")[bool((re := __import__('re')).match(r"^y$", input("Is it raining? "), re.IGNORECASE)])
@rocky kiln :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | print(("Take an umbrella.", "Have a nice day!")[bool((re := __import__('re')).match(r"^y$", input("Is it raining? "), re.IGNORECASE)])
003 | ^
004 | SyntaxError: closing parenthesis ']' does not match opening parenthesis '('
fuck
some things that these dumb fucks made and I had to patch: ```py
getattr(getattr(getattr(ctx, 'bot'), 'http'), 'token')
lol
bot.__dict__.get("http").__dict__.get("token")
(╯°□°)╯︵ ┻━┻
joe never heard your voice before. nice to hear it for the first time
Oh my I got the nose thing too
I dont think they put the swab deep into my nose though
we have different ideas of beautiful
did you make all the bots for this server?
i like the pretty colours
btw what does your code do?
how long have u been coding in python
do you ask him or me?
him
that makes sense ))
sounds cool
did you practice competitive programming?
well, good luck with the project
@pastel mesa me
yeah
on chess.com or where?
lmao in my country is 2 am ))
lichess.org
Join the challenge or watch the game here.
who is white ?
laund, quick question. What is the use of an api ?
yeah, but like for end users, like api, would be backend of online apps ?
I am trying to figure out what could be the use of apis for all these financial companies
@pastel mesa i'll take the revenge later
looks so confusing, i like it
no pressure
Safe to say, it will take me some time to wrap my head around it.
night
✌️ ✌️
Most APIs are written because SPAs need something to get data from
at begining did you follow online courses or you did you python in school?
lichess.org
Join the challenge or watch the game here.
.status cat 503
.status cat 404
.status dog 404
AdventOfCode
.adventofcode
All of the Advent of Code commands.
AprilFoolVideos
.fool
Get a random April Fools' video from Youtube.
AvatarEasterifier
.avatareasterify [colours...]
This "Easterifies" the user's avatar.
Battleship
.battleship
Play a game of Battleship with someone else!
BeMyValentine
.bemyvalentine <user> [valentine_type]
Send a valentine to a specified user with the lovefest role.
Page 1 / 13
.status
.[http_status|status|httpstatus]
Group containing dog and cat http status code commands.
Commands:
cat Sends an embed with an image of a cat, portraying the status code.
dog Sends an embed with an image of a dog, portraying the status code.
Type .help command for more info on a command.
You can also type .help category for more info on a category.
.status cat
.[http_status|status|httpstatus]
Group containing dog and cat http status code commands.
Commands:
cat Sends an embed with an image of a cat, portraying the status code.
dog Sends an embed with an image of a dog, portraying the status code.
Type .help command for more info on a command.
You can also type .help category for more info on a category.
.status cat 505
**Status: 505**
Inputted status code is not implemented by http.cat yet.
.status cat 122
**Status: 122**
Inputted status code does not exist.
.status cat 404
Donald Trump says the word China over and over.
Subscribe to HuffPost Movie Mashups: http://goo.gl/8Md2G8
HuffPost Movie Mashups are a collection videos celebrating cinematic tropes and themes, and a part of the larger Huffington Post internet news, blog, and video community.
Get More Huffington Post
Read: http://www.huffingtonpost.com/
Like: ...
@flat sentinel
hey guys how are you doing
@somber heath for some reason i am muted
yeah i know that but i do not have 50 messages lol
oh ok
btw @somber heath can you code in Haskell do you know anything about it
ok tysm
any functional programming language
??
at all
honestly python is the best language ever
like you dont even need other languages do you agree @somber heath
huh?
true that you need lower level languages
sure
are you using unity or unreal??
It looks really cool what packages are you using? @flat sentinel
oh btw do you do any data science stuff
do you know any data science algorithms( like apriori or PCY) ? @somber heath
its a bunch of last names
like the finders of the algorithm
neural network?? do you dabble
k- clustering
Wow maze generations
true its just that the code is weird
it takes a lot
of brain power to understand the code
lol
bruh i took the class twice and was lost both times
is that painting in python!?
damn that is cool like very cool
I don't know if I'd call it painting, but yes.
damn too many for loops and recursion lol
what are the time complexity of your final code
This is a really cool project
i have to give it to you
ok like nlogn
nlogn is not bad at all
It looks beautiful
2050: no more artists just coders on vs code making paintings lol
can we see some of the code?
yes some code please
you should sell them as nft and make sheer bank
not the code but the end products
some of the code, wouldn't spill all the secrets
You're expert coder
Happy to explain the process in broad terms.
you should build a diffuse modifier that blurs the edges so it doesn't look so sharp. It'd have the water affect your after.
not saying i'd know how to do that though, just a suggestion for realism
i just wanna see like a screenshot of a part of his code to kinda see what he has to go through to create such mesmerizing visual effects
i wanna see how many loops it has
exactlyyyyy
throughput
can it fly??
it cant
yes
in bytes
hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
Worley
tell us about you opal, what do you do?
yes
full stack django
nice stuff, ML ?
good old pandas
hi @somber heath
the kind of art that fits wall displays
you'll need to parallel it
i assume you're drawing left to right, up to bottom
ahhh
it will lose current state
yes i understand
train a set above it it would work 😄
you'd need a huge data set first
yes
well that contradicts its purpose, to have a unique appealing
hahaha
itteration in numpy has to be done on the vectorized one, that's the problem
if you convert to python then back to numpy its slower
such as .apply
its beautful which is the purpose
we're getting bored here in Jordan
oh, you're from jordan
yup, you guys?
irish ?
hahahah
yaa
hahah
australia is famous for that
So, according to you what australian are famous for in west?
hello
kangaroos
I think you didn't get the question😅
kangaroos can beat the shit out of you
and hands
And there tail act as third leg
haha
hahah
yeah girls are allowed in australia
here its not allowed to carry loaded gun for police
but all policemen have guns
docker expert here
what are you trying to do? @wise glade
In lockdown in some US state gun are one of the essential item
its just a good way to manage your dependencies ... both in development and production
you can have a Gun factory
in india
you just need to be smart enough
yeah, so I made a flask app, and did the docker thing with it
now what is it that I made? I mean i don't understand what is it actually I have now
still better than usa
docker thing is dockerfile ? or dockercompose ?
I new zealand dildo is the most essential item during lockdown
@wise glade are you able to run that flask app
dockerfile -> docker image
we don't have public shootouts ( is that what's it called )
new zealand
yeah, in localhost:8000
you can run multiple images in docker compose
@somber heath Iam not kidding
so, I have a image file somewhere?
docker image is like a snapshot of OS with all dependancies installed
so you can just try running it on aws i guess or heroku
@wise glade which state are you from in india?
here's what I have when I do docker ps
same but what's wrong with your accent
huh..? bad?
inside container it links to port 8000 and serves it to port 5000
No i mean did you learn that accent
why are you running it on docker ... are you thinking about microservices
I can also fake my accent
no, no, so what would I do with this thing now?
I'm guessing I put my app somewhere like in azure
and then do the same thing (run same commands) in that server?
it makes all envs matching, so you can run it locally,cloud on premise that same, just docker build and it will run the same
this part in my docker file,
would I need to change the EXPOSE 5000 to something else?
in azure
oh, so the same thing just I'll do it on a cloud service
depends, are you serving on ssl? keep it as 5000 and map nginx to it, if you want to serve it on domian directly map it to port 80
@mossy iron In india their is a very famous youtuber and he is from jordan
@wise glade are you making something or you are doing this out of hobby
who ?
I had a lot of conv here
I guess my tongue twisted or something 😂
show me link please I have no idea
hobby
but I did made something
I mean, who want to use a flask app commercially
don't exactly know how to 😂
one of the projects I worked on, had a flask app, and a django app, when the microserver purpose is small Django would be an overkill
one question about kubernetes
so I learned something called docker-compose
is kubernetes used for doing the same thing?
kubernetes iis a bit different
kubernetes i guess is used for handling multiple docker containers
more like docker-compose
also docker-compose, it said in text I read
but it also has more server stuff, like you can collect all cpu ram in one bulk and divide them on services
so if I want to stop these docker images running
should I use commands to stop it
or better just close this?
docker-compose stop, or or stop them one by one, using docker containerID stop
docker-compose down would also delete cached data








