#voice-chat-text-0
1 messages Β· Page 41 of 1
b'abc' needs to stay
I originally read it as "melatonin snuggle"
hehe
I have something for that. CBD and Melatonin infused taffy
@quasi condor Sup
sounds like a calm night
Oooh, they also have gummies these days
Gib pls
I like the taffy version because it very slowly dissolves in your mouth, and it's salt water taffy too!
oooh
googles what taffy looks like
only heard the term, never seen
So I just hold it in my mouth and thus don't feel the urge to eat another one
I restrict to those 3 because I know my source of data
ah nice
love the chaos in this chat
parallel convos
All over the place
like my life
It do be like that
checks bag
oh, it's cbd melatonin and thc. so you will get high if you have enough of it.
you will also pass out and sleep for 18 hours though.
I miss when I was Hemlock for 20 minutes.
ah the great days
GIB. PLS.
You probably enjoyed being me more than me
10/10 would recommend
how far are you from pepperell massachusetts?
I see
Well, I cannot legally send you any, so...
Im checkinggg
7700 miles sir
Many sad
I had a hunch
The Virtual VFA-113 Stingers carry out weekly Aircraft Carrier landings in DCS World.
what moov
Either Zoolander or something indie
Margin Call
ohhh
it's not indie, it's just a movie I plan on rewatching soon
oooo it looks promising! Might give it a go, thanks!
also great work with the reactions sam
I am afraid of sinuses
Im going to watch Amsterdam!
Oooh Christian Bale
Yes sir :D
no not in the ass
Yubico x Keyport - Pivot 2.0 and ParaPull Carry Bundle
!e def func(x):
res = 0
for i in range(x):
res += i
return res
print(func(4))
@stray niche :white_check_mark: Your 3.11 eval job has completed with return code 0.
6
!e def func(x):
res = 0
for i in range(x):
res += i
print (res)
return res
print(func(4))
@stray niche :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0
002 | 1
003 | 3
004 | 6
005 | 6
!e def func(x):
res = 0
for i in range(x):
res += i
print (res)
print (i)
return res
print(func(4))
@stray niche :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0
002 | 0
003 | 1
004 | 1
005 | 3
006 | 2
007 | 6
008 | 3
009 | 6
!e def func(x):
res = 0
for i in range(x):
res += i
print (i)
return res
print(func(4))
@stray niche :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 6
American scientists be like: "If you don't have C = 5(F-32)/9 memorized, so help me god..."
Iβm more partial to these. I have skates that i strap to these boots.
Hello guys
i need to add a json elemnt in json file
this is my json and i need to add something new
hew i can do it
just open the file, convert to a dict, update the dict, and save it to the json
with open("file.json", "rw") as jsonfile:
temps = json.load(jsonfile)
for item in temps:
item.update({"key": "value"})
json.dump(temps, jsonfile)
ohh, thx man
K off to mop the floors. π
bring a bucket and a mop for these wet-a** floors
β @willow light can now stream until <t:1670874325:f>.
honestly i use my bike more than my car now.
which isn't saying much for someone in europe, but is downright impressive in america
I win with the messy desk
You live in more of a metro area though, right?
yes but everything is stroads
so i only use it on rail trails
I can't show mine because of client info being on it
The hard drives are one small section
I can't show mine because one of the items is a sex toy
it's made from food-grade silicone, so I got it as a joke and found it is actually useful for cooking
could be worse though
It'd have to try
gtg
bye
Hello verboof!
What distro you on?
OpenSUSE he says
@silent sequoia How've you been?
If have any questions, comments, or just want to talk to me, send me an email at browndj3@gmail.com
Damn this be doing numbers
See you kids later
I'm weird
Is it lives or lives
Hi weird, weirder here
You didn't strike me as a former SA let's player
Was never a goon, but I watched a lot of that style
like alive live or going live live
Alive
ah
I totally didn't fall asleep to Iron Chitlin's chaotic Grimdark let's play or anything
When did you transform from Lord to Mister
Remember the SA Super Meatboy Races back in 2012?
192.20.210.62/27
@gentle flint one min to go
15 seconds
10
5
3
@willow light :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | ValueError: math domain error
so wait, how do I get it to print the real component of a complex number?
192.20.210.62/27
I have the weird urge to see you get polish on your hand @gentle flint
!e
import math
n = 5 + math.sqrt(-1)
print(n.real, n.imag)
@willow light :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | ValueError: math domain error
why
and nose for some reason
to each their own i guess?
Test
Yes
time to let the polish dry for a bit
manifesting this in the mean time
ok
@warm jackal welcome back
@warm jackal
@stray niche @maroloccio @rugged root
http://www.twitter.com/danooct1
sorry that my shmup skillz are not quite up to par, but I never play
touhou.
I think I left my roast in the crock pot for too long
but it tastes good, especially with a glass of cabernet sauvignon
I hope your keyboard doesnt get to taste it
I feed my keyboard electricity, it's satiated
do any of you know websites where I can get copyright free, free images
damn the potatoes really did a good job absorbing the fats from the meat. Next time more potatoes less onions.
link doesn't work
damm i did not expect to go here but yea
@rugged root https://www.ilovepdf.com
@gentle flint welcome back
yo
@midnight agate
That food looks gooood
Thanks! =D
This is how much I have now, for the next couple of weeks xP
!
he'll freeze it
edit: when you delete the question I answer, and repost it under the answer, life becomes a bit confusing
whoa, it stays good that long?
ahhh
oops. sorry not sorry
for what its worth
the answer was under the repost in mine
pat pat
@stray niche
aww Hi window and a bit of pepsi
Pepsi is sitting on a Pepsi carton!
@gentle flint welcome back
;D
my only powers
Aw =(
Good night, sleep tight, don't let the bed bugs bite!
back at ya. mosquitos*
Or... https://en.m.wikipedia.org/wiki/Bed_bug
Not just mosquitoes! xD
Bed bugs are insects from the genus Cimex that feed on blood, usually at night. Their bites can result in a number of health impacts including skin rashes, psychological effects, and allergic symptoms. Bed bug bites may lead to skin changes ranging from small areas of redness to prominent blisters. Symptoms may take between minutes to days to ap...
I mean, where I am, I am SURE there are no bed bugs here.
but mosquitos
A LOT
"download the LJ Speech dataset, implement a feed forward neural network, train the classifier on the LJ Speech, test the accuracy, use functions instead of code blocks with comments, address any potential concerns"
kheer??
yess
yummmm
from the internet : )
yummm stilll
my code:
import subprocess
import cv2
import numpy as np
import tensorflow as tf
from pathlib import Path
def campfire(input_video, frame):
firevid = cv2.VideoCapture(input_video)
if not firevid.isOpened():
print("integration failed")
x = 0
flames = []
ash = []
while firevid.isOpened():
ret, heat = firevid.read()
heat = np.array(heat).astype(np.float32) / 255
x = x + 1
if x == frame:
fire = heat
ash.append((0, x))
flames.append(heat)
else:
if x < 200: #changes threshold
continue
coal = -abs(heat - fire).sum()
if coal != coal:
break
ash.append((coal, x))
flames.append(heat)
cv2.imwrite(f"first.png", (fire * 400).astype(np.uint8))
for ember in tf.math.top_k([diff for diff, _ in ash], 20).indices: #change this value for amount of pngs
cv2.imwrite(f"framenum{ash[ember][1]}.png", (flames[ember] * 255).astype(np.uint8))
subprocess.call([r"C:\FFMPEG\ffmpeg.exe", "-y", "-hide_banner", "-loglevel", "error", "-i", str(Path(__file__).parent / "bigfire.mp4"), "resized.mkv"])
campfire("resized.mkv", 17) #change this value for the first frame
#, "-vf", "scale=1920:1080"```
ai code:
import cv2
# Read the video file
video = cv2.VideoCapture('video.mp4')
# Get the total number of frames in the video
total_frames = int(video.get(cv2.CAP_PROP_FRAME_COUNT))
# Set the selected frame number
selected_frame = 10
# Initialize the selected frame and the most similar frame
selected_frame_data = None
most_similar_frame_data = None
min_difference = float('inf')
# Loop through all the frames in the video
for i in range(total_frames):
# Read the frame
success, frame = video.read()
# Check if the frame was successfully read
if success:
# If this is the selected frame, store its data
if i == selected_frame:
selected_frame_data = frame
elif selected_frame_data is not None:
# Calculate the difference between the selected frame and the current frame
difference = cv2.absdiff(selected_frame_data, frame).sum()
# If the difference is smaller than the minimum difference, update the most similar frame
if difference < min_difference:
min_difference = difference
most_similar_frame_data = frame
# Show the selected frame and the most similar frame
cv2.imshow('Selected frame', selected_frame_data)
cv2.imshow('Most similar frame', most_similar_frame_data)
cv2.waitKey(0)
cv2.destroyAllWindows()```
!e py import numpy as np arr = np.zeros((5, 5)) print(arr.dtype) print(arr.shape)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | float64
002 | (5, 5)
word1 = set(input("Please enter a word: "))
word2 = set(input("Please enter another word: "))
if word1 == word2 :
print("The words are anagrams!")
else:
print("The words are NOT anagrams!")
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
<class 'dict'>
as
JAJAAJ
help
me
i need help
cant speek
in voice chat 0
i am speak spanish
and
speak english
dict1 = {}
dict2 = {}
word1 = input("Please enter a word: "))
word2 = input("Please enter another word: "))
for char in word1:
if char in dict1:
dict1[char] += 1
else:
dict1[char] = 1
for char in word2:
if char in dict2:
dict2[char] += 1
else:
dict2[char] = 1
if dict1 == dict2 :
print("The words are anagrams!")
else:
print("The words are NOT anagrams!")
hi
i think it's like
date in month
month
and day of week
12, 10, 1 would be Monday October 12 ?
@somber heath
Python Enhancement Proposals (PEPs)
non python stuff
Opal, do you know much about Docker?
Okay, its pretty complicated.
I recently listened to Guido Van Rossum and Lex Fridman's podcast, very informative and interesting
they must be falling out by now Opal. LOL
the weather is acting up your voice
months = {'1':'January', '2': 'February','3':'March', '4': 'April', '5': 'May', '6':'June', '7': 'July', '8': 'August', '9':'September', '10':'October','11':'November', '12': 'December'}
weekdays = {'1':'Sunday','2':'Monday','3':'Tuesday','4':'Wednesday','5':'Friday','6':'Thursday','7':'Saturday'}
weekDay = input("Enter a day (1-7) : ")
theMonth = input("Enter a month (1-12) : ")
dayNum = input("Enter the day of the month (1-31): ")
theYear = input("Enter the year: ")
week_Day = weekdays[weekDay]
givenMonth = months[theMonth]
print(f" The date is {week_Day}, {givenMonth} {dayNum}, {theYear} ")
@wintry socket I'm back and I don't hear you.
Sorry be there in bit
Sulphur-crested cockatoo.
Ahhh. Nice
Male, at a guess.
Females have a red tinge to the darkness in the eyes.
Males' are just black.
I was actually thinking about its gender. Very interesting
@warm jackal
Hey @glad sandal!
You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.
@glad sandal bck
@limpid sparrow What mic do you use? π
It's me!
:D
@sacred egret π
@crimson sinew π
brb
π
hi maro
cp path/to/iso /path/to/device
sync
π
stewart big
tf
do you have a link to this on loop for 24 hours
thank you
I needed this
@inland yacht π
dd: failed to open './media/yusuf/ESD-USB': No such file or directory
https://tenor.com/view/jinx-the-cat-jinx-jinx-cat-cat-computer-gif-25786466
@midnight agate @somber heath @unborn storm
!stream 689087720018280478
β @glad sandal can now stream until <t:1670938847:f>.
where can i learn sql
everything's so pixelly
yep 720p
maybe I got to restart discord
yea man
the streams gone now π¦
my screen does not look lik ethat
faty did u stop streaming?
this is why I was spamming π
ohhhh
ahhahahaha
reminds me of the minecraft clip i recorded before looks like corrupted data
hi starman
I love the floaters
!stream 696634651875213322
β @unborn storm can now stream until <t:1670939649:f>.
a solution that solves the direct issue but has side effects that aren't necessary in order to resolve the issue?
Hey @lavish rover!
A CCA PSA that tells us not everything on TV is real...
My Channel:
http://www.youtube.com/user/apeman888
Check out my new website:
https://www.darkwebstersdictionary.com
The hippos are back to remind us that in today's digital world, critical thinking is more important than ever. Visit www.BreaktheFake.ca for resources to help you learn how to figure out what's real and what's fake in the stories you experience online.
@wind raptor Think I like the old house hippo one more
Holds up better
The new one is very very cg
same. it's more convincing
https://tenor.com/bFacZ.gif @tidal shard
G2G. Cheers all! Be back later.
At work, had to go
!stream 689087720018280478
β @glad sandal can now stream until <t:1670944937:f>.
if (maybe_num) |n| {
try expect(@TypeOf(n) == usize);
try expect(n == 10);
}
const x: u8 = 1;
var y = &x;
y.* += 1;
Thatβs white noise
Heloo! @rugged root
Suuuup
const std = @import("std");
Cyaa
pub fn main() !void {
if (config.vals.production > 50) {
@compileError("only up to 50 supported");
}
std.log.info("up={d}", .{config.uptime});
}
const std = @import("std");
pub fn main() void {
std.debug.print("Hello, {s}!\n", .{"World"});
}
byeeee
How're things in your neck of the woods, Noodle?
Im pretending to be in New York and writing a report for somebody soooo ....confusing??
Wait what?
.status 420
Also, when it comes to weird but effective formatting.... I give you, Elm
-- Show a list of items I need to buy at the grocery store.
--
import Html exposing (..)
main =
div []
[ h1 [] [ text "My Grocery List" ]
, ul []
[ li [] [ text "Black Beans" ]
, li [] [ text "Limes" ]
, li [] [ text "Greek Yogurt" ]
, li [] [ text "Cilantro" ]
, li [] [ text "Honey" ]
, li [] [ text "Sweet Potatoes" ]
, li [] [ text "Cumin" ]
, li [] [ text "Chili Powder" ]
, li [] [ text "Quinoa" ]
]
]
I freelance articles, reports and stuff aaand I have to write an ethnography about African American influence on New York
had to write "dialogue that I heard while roaming the city" and ended up finding New Yorkers on discord
@glad sandal bunnies.io
Ghost writing?
Ohhh
Lol
yussss
Yaaaaaaaas
π»
I think I can classify as an American now. Roamed the city via google street view
Oooh
astronvim >
lunarvim > astrovim
wrong
doom emacs > emacs > lunarvim > astrovim
@tidal shard
I use vim
have not tried out neo vim
!e
code
!eval [python_version] <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.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.
By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
!e 3.11 print("hello")
@rugged root like this one but with a trigger?? π
πͺ
IntelliJ >
no
Helix!
absolutley not
notepad.exe >
Oo, hadn't heard of that one
Yep ok I am blocking you >:( (jk)
Ah another full terminal one
Catch you later
hi beautiful people
Hey guys, how are you?
Good, 'bout yourself?
Cool!
!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.pythondiscord.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.
@south torrent
?

You could definitely do the job! Nice voice work! =D
wow
closer to server
Testing download speed................................................................................
Download: 2015.40 Mbit/s
Testing upload speed......................................................................................................
Upload: 1475.11 Mbit/s
was for duke
like maybe server is in usa and he is in usa
bump
7.5GB/s
download warzone
But the upload speed of the server is limited
does anyone use microsoft powertoys
hi coffee
who is coffee
coffee is gone
Currently doing something for work, but I was working on modifying some configuration stuff for my sublime
Cool
Is sublime open src?
It is not, it's proprietary
tbh emacs with evil mode feels like a super set of nvim
with the bonus of utilities like magit and being able to do anything from emacs if you care about it enough
and elisp > lua
shame elisp doesn't have tail recursion elimination
Vim setup is seconds, startup is instant. If you're using the terminal as the main way of interacting with a PC, this is a real advantage. The two are just different
fair enough I was more considering it as a permanent ide which I think would be the more common use case
Even as a permanent ide, I close and open nvim all the time
you're actually a nitty though for down voting that
Have your ide and editor be the same is good
tbh
What the fuck is a nitty
Zoomer
emacs is an ide
go learn english
Hi guys
this is getting out of hand
mini mod π
hello!
we're friends
Or am I being midlandsd
its a little bit more active there
midlandsed probably
Even worse
apparently it's someone who uses drugs but tbh I used it more as just a bit of an idiot
Hi! Holiday starting tomorrow!
lucky i have exams this week
my discord calls are broken
I have no green circles
earlier it showed two people in call when there were only one
(then I ctrl+r'd)
so, now I see one green circle
they are not updating
time to restart discord fully
Weird
"fixed"

Cherno-Bull
Shreddies advert, knitted by nanas. "Eat Up, We'll Knit More"
@terse needle
math, meth, same thing
@rugged root we have another you here
Close
Cyall
What is the question
just what your prefered if any, python based interactions are in your network.. ie, ansible, genie, etc
discord does not wanna connect me
i can hear yall but i have a ping of 0
oh
i tried
.
i recommend not spamming messages for the voice permissions
sorry
oh sup
found it
i guess i have to wait 3 days
to talk
@somber heath
fair enough
i feel that
you know how to code?
lmao
i need someone to help me with an idea i have
i dont want to type it
ill see you in 3 days when my mic works
cuz its my idea and i ddont want someone to steal it
lol
its my personal project thats pretty weird
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
ty
print("hello world")
yeah. intellectual property type of thing
yeah
lemme copy your hw bro
welp opal, ill talk to you when i can
later
@lavish rover bbl
#LifeGoals https://youtube.com/shorts/tM83qI2HfYM am I right? @rugged root
Sometimes you wake up faster than your recent memories. #wakeup #relatable #relatablememes
This is not the current world record.
@broken peak π
β @glad sandal can now stream until <t:1671027806:f>.
@safe ginkgo π
@lavish rover byeee
@somber heath π
@somber heath Hello
β @stray niche can now stream until <t:1671029197:f>.
you cant use i3 and use your mouse at the same time
i need 50 messages to get voice permissions ?
yes
As well as needing to satisfy other criteria, yes.
ah yes my lord
i need 49 messages to get voice permissions ?
on the contrary, you need 50-22=28
M1RSensei needs 50-6=44
wow
!user
Meet verboof, the subtraction machine.

Created: <t:1445635205:R>
Profile: @uncut meteor
ID: 107226564030156800
Joined: <t:1597082989:R>
Roles: <@&267629731250176001>, <@&831776746206265384>, <@&787816728474288181>, <@&267630620367257601>, <@&764245844798079016>, <@&463658397560995840>, <@&988801794668908655>
Messages: 25,285
Activity blocks: 5,843
Total: 34
Active: 0
You are not allowed to use that command here. Please use the #bot-commands channel instead.
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
gas prices are cheap here tbh
Cyall in some time going to food.
@proper cloak @cunning badger π
well nice hearing your voices imma head out
self.get_model_matrix
cya
@lavish terrace π
Hello man
@trim bough π
later
!stream 680125010588860639
β @stray niche can now stream until <t:1671031377:f>.
@night hollow @buoyant sable π
hi
@digital gorge π
time to farm it
damn, it drops so little haze/loot/gift-xp
I mean, I killed it 6 times total, if I remember correctly
I farmed it for gift xp (to get max proficiency) on slow resistance to fight another boss
!e ```py
def func():
try:
return "abc"
except: #Bare except. Avoid!
pass
finally:
print(123)
print(func())```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 123
002 | abc
.
!e An experiment.```py
def func():
try:
return "try"
except: #Bare except. Avoid.
pass
finally:
return "finally"
print(func())```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
finally
Hm.
@stray niche Look at you goooo
Thank youuu
7
(it's totally not worth it)
I am wondering what will happen if you run a rat trojan on sololearn
The bringing of shame upon your family name, your ancestors and your people.
Not to mention the cow.
Will it get hacked?
Thanks, Mushu
mushu?
Mulan's mushu?
unparalleled wit as always
My brain overflows with useless references
witty* references
Then it's a security vulnerability
Not if someone has done their job properly.
I think it will simply not being executed
and prorably ban you
"Some rando gave us a RAT. Time to ban Opal, again."
does it have to be pythong to have screen scharing permission?
8
this time it was less than 10 hits by it
9
only two hits
@real sedge Down here, btw.
what are the prerequiste or any rules where I need to look on
Just have to ask me. I grant it on a temporary basis. As I get more comfortable with the person, and they've shown to be responsible, I'll put them on a 3 week probationary period. If they prove to be responsible during that period, I'll grant perma
I am just making portfolio website which is not related to python .. but just wanna share stuff what I am doing ..
So is it okay ?
Guys why cant I speak? It says Im under voice suppression something...
!voice
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
Try exiting and reentering voice.
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
I am just making portfolio website which is not related to python .. but just wanna share stuff what I am doing ..
So is it okay or need to have related to python?
Ight its working now thanks dude
!stream 311692810661265408
β @flint lagoon can now stream until <t:1671033460:f>.
Sorry if im disturbing, but I just wanted to know are you guys doing a Py course from the beginning or is this random? Like if I have a question can I ask? Also, whos leading this and to what level are they certified... Thank you for your time!!
rip winstreak
(it suddenly decided to do only troll attacks, aka homing sphere and charging from the distance)
about assert:
it also has second argument that is passed to AssertionError
!e
assert False, "message or value"
@vocal basin :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | AssertionError: message or value
me
Bro aint no way this aint the place come on
Whats the cmd command to install this library?
use with
The resolution π
with auto-closes
This likely refers to tkinter. tkinter is a standard library module, and should usually come with Python by default.
You need only import tkinter. py import tkinter as tk
!with
The with keyword triggers a context manager. Context managers automatically set up and take down data connections, or any other kind of object that implements the magic methods __enter__ and __exit__.
with open("test.txt", "r") as file:
do_things(file)
The above code automatically closes file when the with block exits, so you never have to manually do a file.close(). Most connection types, including file readers and database connections, support this.
For more information, read the official docs, watch Corey Schafer's context manager video, or see PEP 343.
Anyone got experience on GUIs here?
basically,
file = open(...)
try:
...
finally:
file.close()
Uh yea i did it but im still getting this error
Ill try re-opening the file
!e
try: print(1/0)
@stray niche :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | try: print(1/0)
003 | ^
004 | SyntaxError: expected 'except' or 'finally' block
tkinter or wx?
!e
try:
int("your mom")
finally:
print("Huh, weird")
@rugged root :x: Your 3.11 eval job has completed with return code 1.
001 | Huh, weird
002 | Traceback (most recent call last):
003 | File "<string>", line 2, in <module>
004 | ValueError: invalid literal for int() with base 10: 'your mom'
generally there is except and finally for some reasons
specifically, __exit__ can return True to ignore errors
!e
py int("Sus 1242")
@lavish terrace :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | py int("Sus 1242")
003 | ^^^
004 | SyntaxError: invalid syntax
I thought except was the only one which could be used here, what does finally do?
what is an eval job?
the only learning material I've ever taken part in writing says something like "stop doing it, this is terrible and bad"
Same ionoo π
finally runs always
!e
int("sussy baka")```
@lavish terrace :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'py' is not defined
@rugged root halp
oo I see
In the context of the Python bot?
yess
!e int("sus 132")
@lavish terrace :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | ValueError: invalid literal for int() with base 10: 'sus 132'
with EXPR as VAR:
BLOCK
mgr = (EXPR)
exit = type(mgr).__exit__ # Not calling it yet
value = type(mgr).__enter__(mgr)
exc = True
try:
try:
VAR = value # Only if "as VAR" is present
BLOCK
except:
# The exceptional case is handled here
exc = False
if not exit(mgr, *sys.exc_info()):
raise
# The exception is swallowed if exit() returns true
finally:
# The normal and non-local-goto cases are handled here
if exc:
exit(mgr, None, None, None)
Python Enhancement Proposals (PEPs)
type(mgr) bit looks weird
like, it's not how with really works from how I remember
How'd I add a timer in this? Im ready with the timer code too
import time
import datetime
def countdown(h, m, s):
totalSeconds = (h * 3600) + (m * 60) + s
while totalSeconds > 0:
timer = datetime.timedelta(seconds = totalSeconds)
print(timer, end="\r")
time.sleep(1)
totalSeconds = totalSeconds - 1
print("Time Over")
h = int(input("Enter the time in hours: "))
m = int(input("Enter the time in minutes: "))
s = int(input("Enter the time in seconds: "))
countdown(h, m, s)
oh, now I remember, I have nothing to suggest that
I dynamically instrumented enter-exit earlier but it was at the class not at the instance
tumbleweeds rolling by
cricket noises
well, now I will check
ok
that's what you think!
!d code
Source code: Lib/code.py
The code module provides facilities to implement read-eval-print loops in Python. Two classes and convenience functions are included which can be used to build applications which provide an interactive interpreter prompt.
What the cat!?
as in, What the cat is this!?
ahh
Today I learned
WTD
Nah, dogs are for good things
We blame the cats for all the weird things
βββ¦βββ¦ββββ¦ββ¦β¦β¦β¦ββββ smash sub now!
βββ£βββββ£ββ£ββ£ββ£βββ£ββ£
β βββββββ ββββ£βββββββ£
βββ©βββ©ββ©ββ©ββ©βββ©ββ©ββ
i was bored so i maked that video, it took me 10 seconds (10 min with render & upload) so enjoy montage u uwa uwa!
LMAO next meme zone
!e
os.system("dir")```
@lavish terrace :warning: Your 3.11 eval job has completed with return code 0.
[No output]
headache.
WTD
uh can you guys hear me?
@warm jackal
nop
no we cant
Does it work for hours? Coz im developing one for the school exams I got this project from the school principal...
indeed
ok thank you for your time
!eval
from pathlib import Path
items = Path("/").glob("**/*")
for item in items:
print(item)
@sweet lodge :x: Your 3.11 eval job has completed with return code 143 (SIGTERM).
001 | /usr
002 | /snekbox
003 | /lib64
004 | /lib
005 | /etc
006 | /usr/local
007 | /usr/lib
008 | /usr/local/bin
009 | /usr/local/lib
010 | /usr/local/bin/python3.11
011 | /usr/local/bin/python3
... (truncated - too many lines)
Full output: too long to upload
dir is Batch
In PowerShell it's aliased to Get-ChildItem
But the bot runs on Linux, and neither of those exist on Linux
Wym n hows that relevant? ig 3600 in an hour
60601
Bruh can I skip this or will I have to do all of it π§
I know, but if i run dir on Linux, i will get the same output as in ls
!d datetime
Source code: Lib/datetime.py
The datetime module supplies classes for manipulating dates and times.
While date and time arithmetic is supported, the focus of the implementation is on efficient attribute extraction for output formatting and manipulation.
now I can't see the stream
what is this magical anti-cheat
Start small. Take it one small step at a time. Frustration will be your companion. Study, practice, and time in which that can happen.
hey opal
same
yes, that's how it works, I checked
!stream 680125010588860639
β @stray niche can now stream until <t:1671034971:f>.
Lol bro Im done with this im on Python since 2 years i dn need to waste my time doin all that again Lπ
@rugged root how did you ever get this job?
Ayo whaa
yes
Finishing discord mod academy
consider this for consolation
Plot twist: He didnt.
@ Admins are supposed to set the example
dayum
Just walked in and started working
cope
i think he is a volunteer
I spent the last two years learning Python
now I can't get a job so I can spend the next two years learning Java @twin pond
Yup, no questions asked
Im in grade 10 rn.. last year I won 2nd pos at high school, this year I made AI Chess, I hope Ill get first this year easily π
That's what I did
Worked really really well
One day everyone just realized I was here, but they had no idea why, and they just accepted it
Then I became the mascot and everything
"since 2 years old?"
(sorry if sounds offensive)
damn, that beats my record with pascal
I gtg rn I have an exam tomorrow π
takes notes
Lmaoo not when I was 2, i be doin it since 2 years now
@rugged root https://www.youtube.com/watch?v=owEKTfe1Gno
In a
or a
kinda way?
"for 2 years" or "since 2 years ago" then
Absolute gold
a hybrid
go to the python core lesson
"is teaching pascal to a 3-year-old considered child abuse?"
Have you ever seen csgo fragmovies??
At least teach them Rust BTW
I mean, even to 17-year-old, it's probably yes still
WTD
yay
what the Sam doing?
what the dickens!?
Dog
Deuce? Soon? Yee?
I don't really remember, I think I've seen some =)
seems like I have no way to check the first time I joined
its so cringe
#csgo #cs #counterstrike
Hey Everyone! π€
I created this channel for short videos i upload daily about CSGO and other pc games.
So if youβre interested in playing games so this channel is helpful for you.
Please SUBSCRIBE to my channel, Thanks.
My discord server β https://discord.gg/TRCPPG8RW7
Have fun and Enjoy.
discord forensics time
I will find proof
Will you share methodology? =)
there are some events that correlate to me joining/leaving this server
I may need to join discord.py server to check that
I don't want
!stream 680125010588860639 30M
β @stray niche can now stream until <t:1671037565:f>.
there was a point in time when I was in the following servers:
Python
discord.py
C#
D#+
last two are basically anime servers
im gonna head out and work on some protein structutres. Yall have fun!
@stray niche Good luck with code!
D#+ is a discord bindings lib for .NET
Oh fun. Cya
Me too on mac
wsl2
I don't use Mac because I'm a responsible person
Once you are onto macbook there is no going back
WTD
window + wsl2 is the way
macOS is closer to unix than linux is, isn't it?
Learning to read files is boring
like, things of dtrace variety work better somewhat
Why don't you learn something else then?
I need to finish this lesson to move on
pathlib.Path("file.txt").read_text()
PSA: Get a linkedIn
the "right" way to read file in full
What if I already have one?
Do I just delete it now?
Make it recruiter worthy
read: treats
add threats: "recruit me or else"
Makes me thing of aboleth.
emoji forensics
I didn't expect it to be May 2020 or earlier
alr
Woah cool dude
@mild quartz was just talking about you and you appeared
i know
u here i wnna ask u sumn regarding github
If you have a question then ask the question
How do you know π
ur attitude bro
Lel
please
Depends
What're your requirements?
yea, dont ask to ask the question, just ask it and if someone knows theyll answer
Mattland
well its my first time uploadin sumn on github so basically ppl cant change my original project thats all
Bruh "Mattlan" I thought u were trying to say matlab... and turned out "Mattland" damn
@stray niche you are can do ready?
Free is fine for 99% of people
Team if you really need reviews and stuff on private repos
Enterprise is really expensive and you really should only get it if you...
Oh
Open Source licensing
I see. thx
What?
At all?
Pretty much all the generally used licenses allow modification
See https://choosealicense.com/licenses/
You could not put a license at all, but then no one can use it
Non-judgmental guidance on choosing a license for your open source project
@stray niche i see you are live for python π
wise words
Yes
Woof is speaking?
I can hear woof
WTD
whts D in here π
nice good. you are need tutorial ? @stray niche
What the Sam doin?
never saw a d substituted in here π
RIP English
@rugged root
gitautas/emoji-identifiers#5
gitautas/emoji-identifiers#6
@zenith radish review my CI
imo, working with files should be skippable in tutorials
it's not easy and it's not fundamental
WOOF
No I am good, Thank you !
