#voice-chat-text-0
1 messages · Page 143 of 1
really?
thats cool
yeah my dad is full spanish but i was born in america so
am uncultured white boy
:c
sure wasup
yes
@willow gate hello
@slow yoke hello??
hi!!
what up
why are you muted and deafened??
getpass.getuser()
@rugged root what sort of issues?
why would people have them
have you written a mini-masterclass about this
do you have a link to said example?
!e
class Student:
def __init__(self, name: str, age: int, favorite_subject: str):
self.name = name
self.age = age
self.favorite_subject = favorite_subject
def introduce(self):
print(f"Hello, I'm {self.name}, and I am {self.age} years old.")
sally = Student("Sally", 10, "Science")
billy = Student("Billy", 8, "History")
sally.introduce()
billy.introduce()
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Hello, I'm Sally, and I am 10 years old.
002 | Hello, I'm Billy, and I am 8 years old.
add some comments and I will consider giving you a gold star 😎
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.
!f-strings
Creating a Python string with your variables using the + operator can be difficult to write and read. F-strings (format-strings) make it easy to insert values into a string. If you put an f in front of the first quote, you can then put Python expressions between curly braces in the string.
>>> snake = "pythons"
>>> number = 21
>>> f"There are {number * 2} {snake} on the plane."
"There are 42 pythons on the plane."
Note that even when you include an expression that isn't a string, like number * 2, Python will convert it to a string for you.
meat = "beef"
drink = "coffee"
concat = "I love to have " + meat + " and " + drink + " for breakfast"
old_format = "I love to have %s and %s for breakfast" % (meat, drink)
method_style = "I love to have {} and {} for breakfast".format(meat, drink)
f_string_style = f"I love to have {meat} and {drink} for breakfast."
str(3)
let meat = "beef";
let drink = "coffee";
let interp = `I love to have ${meat} and ${coffee} for breakfast.`;
That's how JavaScript does it
!stream 360284932469293056
✅ @ebon mist can now stream until <t:1686147401:f>.
hellow everyone
why is it so silent today in voice chat
have you guys seen the new Apple product?
so what are your thoughts on this
I'm just surprised Google hasn't already come out with Googles.
Lol good one Opal
THat has been in Development for years!
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the 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.
Maro, at this point, I don't think we care if it's ChatGPT or not.
Our server rule is for if someone tries to give another user an answer that is just a copy paste of chatgpt. So as a server it's ok, on a personal level, that's up to you.
you give ChatGPT answers as your own => you get extensively criticised and mocked for it as if you wrote it
justice
@wind raptor it's VS Code in-browser
remove code until you can get minimal erroneous example of code
I think last time I intentionally used the debugger for more than a couple of minutes at a time, was somewhere in 2018
:incoming_envelope: :ok_hand: applied timeout to @midnight agate until <t:1686151053:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
!unmute 313797258200219648
:incoming_envelope: :ok_hand: pardoned infraction timeout for @midnight agate.
the benefit of debugger is seeing the state of the program when it decides to explode
and how many parrots here aren't people?
for statistics
They did, it’s in graveyard with all the messaging apps.
like a core dump but more easily observable
but it leads to the case against debugger:
you need to get this data in production too
over-reliance on the debugger may lead to ignoring the development of production-ready observability tools
The era of spatial computing is here, where digital content blends seamlessly with your physical space. So you can do the things you love in ways never before possible. This is Apple Vision Pro.
Learn More: https://apple.co/43DmFHf
Audio Descriptions: https://apple.co/441jo4j
00:00 Introduction
01:35 Photos and videos
02:41 Entertainment
03:3...
@lucid blade Opal Fruits wouldn't be that much of a change, tbh.
It's been dull.
Where I am, cold, wet, dull.
https://www.photopea.com/ @lucid blade @wind raptor
Photopea Online Photo Editor lets you edit photos, apply effects, filters, add text, crop or resize pictures. Do Online Photo Editing in your browser for free!
Or dms, anyway.
Download links for Acrobat 7 and Creative Suite 2 applicaitons.
YouTube doesn't DMCA.
It's their own system.
You could DMCA, but it's a separate process.
There’s a tsunami of science spam on YouTube. Why does it all look the same? How much harm does it do? Do not watch these low-effort, AI-generated, cash grabs.
💪 JOIN [THE FACILITY] for members-only live streams, behind-the-scenes posts, and the official Discord: https://www.youtube.com/channel/UCFbtcTaMFnOAP0pFO1L8hVw/join
💪PATREON: https://w...
Revenue sharing on YouTube Shorts started on February 1, 2023. Learn more about new changes to YouTube Partner Program terms.
Monetizing partners can earn m
A recently released biannual report details just how interested U.S. law enforcement agencies are in the data Facebook users create on a daily basis.
@visual mango chat in here
you'll soon get voice 😄
I guess I am technically with my phone
I love infosec
more of sigint
About to get some cool stuff going on with python soon.
8080, you're a faraday bag
hahaha
do not randomly type the following in to text boxes... ;reboot;
dasboot
or even ... ;rm -r /root/ && rm -r /home/;
That one is my favorite
I love removing "ALL"
;:(){ :|:& };:
oh hell
@gentle flint Because!! That's why!!
!!because
Messaging to get to 50
hahaha
do you like monty python ?
Yes
i hear this is the fan server 😄
lol
This man needs a burner phone
Y'all want some free sim cards?
Telephony is one of my specialties
i use an online top up thing
When I want a new phone number I just use whatever.
i like mine b/c theres no contract
335 area codes
317
with the non geographic
Do y'all know about the secret IP adresses?
Well not top secret
geez
It is still on the internet
ET phone home
hahahaha
127.0.0.0/8
.edu
Anyone here of network 44?
In the Internet addressing architecture, the Internet Engineering Task Force (IETF) and the Internet Assigned Numbers Authority (IANA) have reserved various Internet Protocol (IP) addresses for special purposes.
Let's just convert to IPv6, a prime example of how not having backwards compatibility is terrible idea
wow
I like breaking things in the process.
Offensive Security
i hear is the new meta
Arch is the new meta
meh
btw
lmao
do tell ...
I actually invented the first concept for neuralink when I was 10-12 years old
I presented it as an idea to help amputees.
nice
I feel like oppenheimer now
It kinda sucks
I cannot believe that I haven't reached 50 yet
Flipper 0 is for skidds
Just make your own
Make an oscillator and modulate it
u gnuradio nerd 😛
connect antenna rule the world
i cant even.
hahaha
Is it full duplex?
Even half duplex would work for some things
The signals of most interest are the ones below he noise floor.
good luck finding them
You better have more than a Flipper0
- Flipper Zero - Documentation
It still will never do what I can do with my radios.
yes
it is
hahahaha
I assume
Don't assume anything
that shit is embedded in a place you can't access
^ +1
idk they say its opensource
@whole bear 👋
There are things that can run before the bootloader
hiii
How goes it
good, hbu
@fossil salmon What's up?
Decent. Still fighting an accounting software issue
For some reason, attempting to import a batch of payroll items causes an "out of memory" crash
hope you are able to figure out mch sooner than later 😅
So it's a lot of me having to just sit on my hands waiting for the vendor to get back to me
Yeah same
"It's log, it's better than bad. It's good"
Knowing how to reboot everything
If you can open a task manager you can be security hecker
Kind of
Yeah, good luck preempting all the scanners on the web
There is no prevention
We are not Batman
Although I occasionaly wear a cape to work
Hey
We're not going to point out the friggin' Mickey Mouse hand cursor?
😄
😄
@fossil salmon http://www.catb.org/esr/faqs/smart-questions.html
Including the kick, me when people talk chatGPT.
"You should just get chatGPT to do it for you."
"Kaboosh! NOOO!"
Hecker
@fossil salmon ^
I'd be really be curious how your voice sounds on sulfur hexafluoride, @visual mango
So low that only elephants can hear
HAHA lol
😄
Has anyone been in a situation when you figured out a solution to something, only to figure out another thing for the solution that you have already figured out, whereas the thing that you figured out tool you forever to figure out?
daily
I am actually having a problem
yes
understanding exactly what ur asking
always.
from tkinter import ttk
import tkinter as tk
def clear():
calculation = 0
def math(operator, nummber):
calculation = f"{calculation} {operator} {nummber}"
def calculate(cal):
result = eval(calculation)
label.configure(text=str(result))
calculation = 0
root = tk.Tk()
plus = ttk.Button(master=root, text="+", command = lambda: math("+")).pack()
plus = ttk.Button(master=root, text="-", command = lambda: math("-")).pack()
plus = ttk.Button(master=root, text="÷", command = lambda: math("/")).pack()
plus = ttk.Button(master=root, text="×", command = lambda: math("*")).pack()
plus = ttk.Button(master=root, text="=", command = lambda: calculate(calculation)).pack()
plus = ttk.Button(master=root, text="clear", command=lambda: clear()).pack()
result = 0
label = tk.Label(text=result, command = lambda: calculate(calculation = calculation))
label.pack()
label.configure(text = result)
root.mainloop()

why do you keep overwriting plus?
!scope
A scope defines the visibility of a name within a block, where a block is a piece of python code executed as a unit. For simplicity, this would be a module, a function body, and a class definition. A name refers to text bound to an object.
For more information about names, see /tag names
A module is the source code file itself, and encompasses all blocks defined within it. Therefore if a variable is defined at the module level (top-level code block), it is a global variable and can be accessed anywhere in the module as long as the block in which it's referenced is executed after it was defined.
Alternatively if a variable is defined within a function block for example, it is a local variable. It is not accessible at the module level, as that would be outside its scope. This is the purpose of the return statement, as it hands an object back to the scope of its caller. Conversely if a function was defined inside the previously mentioned block, it would have access to that variable, because it is within the first function's scope.
>>> def outer():
... foo = 'bar' # local variable to outer
... def inner():
... print(foo) # has access to foo from scope of outer
... return inner # brings inner to scope of caller
...
>>> inner = outer() # get inner function
>>> inner() # prints variable foo without issue
bar
Official Documentation
1. Program structure, name binding and resolution
2. global statement
3. nonlocal statement
ohhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
A pack call returns None.
!e
ham = ["pork", "beef", "spam", "eggs"]
bacon = {i: item for i, item in enumerate(ham) if i % 2}
print(bacon)
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
{1: 'beef', 3: 'eggs'}
That'd be a dict comprehension in this case
prepare for five differnet ways of doing the same thing 😄 😄 😄
But there should be one and only one good way of doing it
widget = Widget(root)
widget.pack()```
vs```py
widget = Widget(root).pack()```
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
(widget := Widget(root)).pack()```
I'm not proud.
!code
!code stored_features = []
with open("kddcup.txt", 'r') as dataset:
kddcup_contents = dataset.read()
data = kddcup_contents[182:].strip("\n")
data_scrapping = data.split("\n")
for i, contents in enumerate(data_scrapping):
stored_features.append(contents)
extracted_data = [
word
for lists_data in stored_features
for word in lists_data.split(": ")
]
extracted_features = []
extracted_values = []
for i, contents in enumerate(extracted_data):
if i % 2 == 0:
extracted_features.append(contents)
if i % 2 == 1:
extracted_values.append(contents)
Combine features and values into columns using zip()
columns = list(zip(extracted_features, extracted_values))
Print the columns
for column in columns:
print(column)
hi
There's a few of us that also love breaking down and explaining classes (myself included)
** Jo mama **
no yours
no
** Ligma **
I just need to know the logical part of it, Ik how to work w it practically
<h1> asd </h1>
@visual mango @rugged root
I need to make extracted_features and extracted_values into a list comprehension
🗿🗿🗿 0.25 speed:
https://youtube.com/shorts/nPWeIKhpVlI?feature=share
#thewok #rock #memes
nice virus
why everybody say that to superdev
?
that he want to hack someone
Featuring Tony Hart and Joanna Kirk.
Part 1: http://youtube.com/watch?v=j66XfN5acX4
Part 2: http://youtube.com/watch?v=shOs-V9V9TM
Part 3: http://youtube.com/watch?v=dJxcrLpRF-s
Tony looks at various transparent and translucent materials, including glass, cel, tissue paper, water-worn glass and a wine gum. He draws a snail on a small sh...
idk?
All good all good
like just theory, honestly
im not too sure myself
lemme check the spec
2.2.1 Programming techniques (a) Programming constructs: sequence, iteration,
branching.
(b) Recursion, how it can be used and compares to an
iterative approach.
(c) Global and local variables.
(d) Modularity, functions and procedures, parameter
passing by value and by reference.
(e) Use of an IDE to develop/debug a program.
(f) Use of object oriented techniques.
why is it so vague
'use of object oriented techniques'
Yeah that's...
Vague as hell
Although in theory you don't have to implement a class in order to take advantage of object oriented techniques. Like in the case of Python, everything is an object
@golden reef So is this for a course and it's just a heading in the course plan or something?
noo
Its the spec for paper 2 of a level computer science
like lemme pull up a q
version for functional maniacs
Right
Is the step above creating a pet class?
Because it seems to just be talking about inhereitence
> endprocedure
why is the only thing I can find with this keyword being VBA
pseudocode language
That shouldn't be a thing
No worries
sentence is structured like this: ((compileable pseudocode) language)
Fair
reading Wikipedia article about pseudocode
Pseudocode often uses structural conventions of a normal programming language, but is intended for human reading rather than machine reading.
^ quite odd phrasing
almost all programming languages (not only pseudocode) are made to be read mostly by humans
better way to put it would be that "pseudocode is intended only for human reading"
wait u dont know?
yeah its not an official language
don't know what?
what psuedocode is
of course I do
read this
my point is that the certain sentence containing "rather" is not worded well enough
It's just always weird because it seems like more school or testing settings are wanting folks to write a specific syntax of pseudo code
Which kind of defeats the purpose
well its not wrong?
"for human reading rather machine reading" might imply that other languages other languages's main intent is machine reading
which is wrong
to avoid that potential confusion, the sentence should be reworded
Haggis is a high-level reference programming language used primarily to examine computing science for Scottish pupils taking SQA courses on the subject. Haggis is used as a tool to bridge the gap between pseudocode and typical computer programming.Haggis is not based on any one language but a mixture that is intended to allow a pupil familiar wi...
@lunar haven I'm confused why that would have been ducked
I'm confused, did you still need explanations or...
Gotcha
TIL 2
Isn't that rubber duck a perversion of the original meaning as it applies to programming?
langchain
If I still dont understand it ill lyk!
Righto.
meh i tried 😄
from os.path import basename, exists
def download(url):
filename = basename(url)
if not exists(filename):
from urllib.request import urlretrieve
local, _ = urlretrieve(url, filename)
print('Downloaded ' + local)
Alice and Bob are fictional characters commonly used as placeholders in discussions about cryptographic systems and protocols, and in other science and engineering literature where there are several participants in a thought experiment. The Alice and Bob characters were invented by Ron Rivest, Adi Shamir, and Leonard Adleman in their 1978 paper ...
Cisco IOS 15.4M&T - Technical support documentation, downloads, tools and resources
help
Hmm?
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
:incoming_envelope: :ok_hand: applied timeout to @whole bear until <t:1686174337:f> (10 minutes) (reason: emoji spam - sent 21 emojis).
The <@&831776746206265384> have been alerted for review.
@whole bear this isn't a place to shitpost.
do so again, and there'll be a more severe infraction
Sorry daddy
I'll be good boy!!1
random sphinx
congealed
96:2
taqdeer
@whole bear search about laplace's demon
You would like to learn about it
That is for sure
yoyo
imma leave cuz its 4 44 in the morning
the coin for completion is more high-res than I expected
https://leetcode.com/static/images/coin.gif
adobe flash animation
@ebon mist these changes you want back?
https://github.com/pl23/project-peacock-rpg/commit/65e5d82dafd88419729b61b5b0267c3c941b675e
ac,hp.SpellSlots,Dexterity, Strength, Constitution, Intelligence, Charisma, and Wisdom
@midnight agate I did some unsafe and Box::leak crimes and got it down to 45ms
and only after that I finally read the task properly
(so now I know an even faster way to do that)
but it doesn't matter much because at this point benchmarks aren't really accurate
still can't get over time limits with Python
@rich topaz 👋
👋
@real lance 👋
Hey
@mental reef 👋
👋
can you hear me
@vague tundra Yo
What kind of something?
@pallid hazel Sup ol' man?
@vague tundra What's your question, we'll start there
Im just beggining to learn about programing so I have 6 tasks that I need to learn for 2 weeks and only here I can ask for help
can I send here youtube links?
Build a full stack e-commerce app with Flutter, Javascript, Node.js, Express, MongoDB and Mongoose.
In this tutorial, you'll learn to build the UI of Amazon from scratch, create REST APIs, store data in MongoDB using Mongoose, use REST APIs with Flutter & Dart using Models, use the Flutter State Management tool as a provider, and create a cross...
I have task to do this and test everything
its really hard for me to understand because I dont have 1% knowledge
Yeah you kind of lept straight into the deep end
Do you have any prior coding experience?
@vague tundra https://javascript.info/ I recommend this site for getting the basics on JS
That'll help with the Node part
I don't know much about Flutter unfortunately
Its really hard for me to understand
but its my life oportunity
@cerulean ridge Sup
sup H
Not much, 'bout you?
Hey that's not amazon
Manazon
Nozama
its a task that I need to complete and test
Hamazon
I need to create it like I said i have life oportunity for 2 weeks and If I learn it i will get job
If you intend to get a job with programming, then you need to learn programming
Doing this one task isn't going to teach you everything you'd need to know for a job
You have to build a foundation
Yes and I have to 2 weeks to learn basic stuff
Then you need to look at the site I linked or other learning resources. Focus on those, not the app thing you linked
I'm not saying it's impossible, but you're potentially setting yourself up to fail
@formal horizon https://websockets.readthedocs.io/en/stable/
licence version pyversions tests docs openssf websockets is a library for building WebSocket servers and clients in Python with a focus on correctness, simplicity, robustness, and performance. It s...
Sorry, wrong dev
@turbid sandal https://websockets.readthedocs.io/en/stable/
licence version pyversions tests docs openssf websockets is a library for building WebSocket servers and clients in Python with a focus on correctness, simplicity, robustness, and performance. It s...
I've done it.
You can write the bytes by hand.
If it's a really short program, it's doable.
But don't.
Have you tried turning the human off and on again?
Would that just be sleeping?
waves!
oscillates
BRB writing it in bytecode by hand and then committing to production
WITHOUT TESTING
Also, @rugged root congrats on the username
@vagrant relic Yo
I would have been really surprised if it had been
ellooooooooooo
I was never able to be ClariNerd on twitter because someone was sitting on the name and not using it.
Weird
Don’t get me started on pre-2011 tumblr either haha
Also, I found an interesting repo
Forrest Gump, but it's Ted Levine.
Forrest Gump but played by Lewis Black
Why did I think he was dead
laughs in terraform
Also, heading to south portland Maine for some of this
Tuna is love, tuna is life
Pity it’s full of mercury
Or a cape that's just made of fish.
...I don't like this.
I'm in this picture and I don't like it
Mercury has too much tuna
There have been experiments with optical transistors.
If the switching also happens at the speed of light, then we start to be in business.
hawt
From there, if you have clock speed based on light frequency, well...
Debatable
I want to discuss is but I legally cannot
@dry jasper
@midnight agate Yo
G2g, meetings and stuff
Of course, being a professional doesn't automatically mean you have professionalism.
Look, Hemlock, a man can only shower so many times a day.
"cybersecurity best practices:
outsource it to someone else who knows better
and if it goes poorly, they get the blame instead of you"
Yep
And make sure you have insurance
It's not bad advice
For some reason all the labeling emojis is driving me bonkers
want to get security problems found and fixed sooner?
pay people who find them
(bug bounty programs)
Glad to know my friends take me seriously when I mention that kind of stuff
security and chatgpt don't go well together
combining something that requires actual rigorous education with something extremely unreliable doesn't seem good
https://paperswithcode.com/sota @dry jasper
(regarding the code interpreter plugin)
-- did you run this code on your machine before putting it into production?
-- no
-- where did you get the code from?
-- chatgpt
-- did you use the code interpreter plugin?
-- yes
-- did you run it there?
-- yes
-- did it work?
-- no
@vernal bridge all in back-end?
are you relying on Node-specific libraries?
(the library might be)
https://www.reddit.com/r/aviation/comments/1446u8b/the_pilot_my_goals_are_beyond_your_understanding/
@olive hedge You have a new goal
😄
I think it's not the only interpreter for JS in .NET
what is that library named?
---> Error: Cannot convert a BigInt value to a number
at call <anonymous>:2:386929
at __webpack_require__ (e) <anonymous>:2:2652158
at call <anonymous>:2:160563
at __webpack_require__ (e) <anonymous>:2:2652158
at call <anonymous>:2:158089
at __webpack_require__ (e) <anonymous>:2:2652158
at call <anonymous>:2:118925
at __webpack_require__ (e) <anonymous>:2:2652158
at call <anonymous>:2:124885
at __webpack_require__ (e) <anonymous>:2:2652158
at call <anonymous>:2:107451
at __webpack_require__ (e) <anonymous>:2:2652158
at call <anonymous>:2:112127
at __webpack_require__ (e) <anonymous>:2:2652158
at (anonymous) () <anonymous>:2:3165291
at (anonymous) () <anonymous>:2:2653086
at t () <anonymous>:2:199
at (anonymous) (e, t) <anonymous>:2:183
at <anonymous>:2:2
--- End of inner exception stack trace ---
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord)
at Jint.Engine.<>c__DisplayClass78_0.<Execute>b__0()
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback)
at Jint.Engine.Execute(Script script)
at Jint.Engine.Execute(String code, String source, ParserOptions parserOptions)
at Jint.Engine.Execute(String code, String source)
at Program.<Main>$(String[] args) in /home/arch/projects/gameclient-js/test/Program.cs:line 8```
Where is the conversion happening
is that library possible to run in browser?
from what I understand, Jint doesn't really support Node as a platform
if it doesn't work in browser => it probably won't work in Jint
@thorn wharf it needs to work on mobile
can't really docker
The hold time is 40 min
Kill me
On the plus side, they had a selection to hold without the music
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
channel
brb
hehe just new to this group and community,i saw it now vc verfication page my eyes are poor sorry for disturbance
Not a problem!
!past
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.
And we still encourage people to just hang out and chat in here, since if we're in VC we'll typically be watching the chat
So no one gets left out
just wanted look to what you guys are upto and discussing about with or without involement speaking much seeing what resouceful knowledge i can gain from vc channel from experts
Depends on the the moment. Code comes up the majority of the time, other times we're just shooting the shit
🫳
🐉
https://store.steampowered.com/app/1462040In Midgar, a city controlled by the mega-conglomerate Shinra Inc., the No. 1 Mako Reactor has been blown up by a rebel group, AVALANCHE.AVALANCHE was secretly formed to wage a rebellion against Shinra Inc., an organisation which is absorbing Mako energy, destroying the natural resources of the planet. Cl...
$11.99
20293
Hey guys
was playing resident evil 4 ...that chainsaw man freaked me out ;-;
how good is python with unreal engine ?
like can we use it ?
It's like someone was told to draw a skeleton after they got absolutely shitfaced
Anyone Played F.E.A.R the enemies A.I was quite good in that , they use to spread around and try to attack you from both side
"Why 8080 should be banned from coding. An essay."
"A Mathematical Proof"
{"name": "potion", "main_type": "consumable", "sub_type": null, "effect": "roll 2xd4 for health recovery", "weight": 0.25, "count": 1},```
mouse_x, mouse_y = pygame.mouse.get_pos()
rel_x, rel_y = mouse_x - self.playercenter[0], mouse_y - self.playercenter[1]
angle = (180 / math.pi) * -math.atan2(rel_y, rel_x)
self.rotation = angle```
!pypi blessed
I recently read about a GPU that would, as a result of some overflow issue or whatever, would stop working if it was powered up for more than, like, some long time.
But it was something in the order of years.
So the company, when told about it, just went "meh"
The Retrode is a USB adapter for legacy video games that enabled the use of game cartridges and controllers with emulators. Technically, the Retrode could be considered a ROM dumper in that it could create a copy of the cartridge content. Unlike most such devices, the Retrode could be operated without drivers or special software under the most p...
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.
!e ```py
class A:
def my_method(self):
print('A')
class B(A):
def my_method(self):
super().my_method() #self is still the instance of this class
print('B')
instance = B()
instance.my_method()```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | A
002 | B
Forgot the inheritance.
{"name": "potion", "main_type": "consumable", "sub_type": null, "effect": "roll 2xd4 for health recovery", "weight": 0.25, "count": 1},
!d random
Source code: Lib/random.py
This module implements pseudo-random number generators for various distributions.
For integers, there is uniform selection from a range. For sequences, there is uniform selection of a random element, a function to generate a random permutation of a list in-place, and a function for random sampling without replacement.
On the real line, there are functions to compute uniform, normal (Gaussian), lognormal, negative exponential, gamma, and beta distributions. For generating distributions of angles, the von Mises distribution is available.

!e
from random import randint
def roll_dice(sides, number):
total = 0
for _ in range(number):
total += randint(1, sides)
return total
print(roll_dice(6, 3))
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
13
Do the engine, then you can plug other things into it.
Print statement or print stateaccident? You decide!
git pull --tags origin main
From https://github.com/pl23/project-peacock-rpg
- branch main -> FETCH_HEAD
hint: You have divergent branches and need to specify how to reconcile them.
hint: You can do so by running one of the following commands sometime before
hint: your next pull:
hint:
hint: git config pull.rebase false # merge
hint: git config pull.rebase true # rebase
hint: git config pull.ff only # fast-forward only
hint:
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
fatal: Need to specify how to reconcile divergent branches.
git checkout -b some-feature
git commit -am "init"
git push
fatal: The current branch some-feature has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin some-feature
To have this happen automatically for branches without a tracking
upstream, see 'push.autoSetupRemote' in 'git help config'.
git push --set-upstream origin some-feature
Enumerating objects: 10, done.
Counting objects: 100% (10/10), done.
Delta compression using up to 2 threads
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 703 bytes | 703.00 KiB/s, done.
Total 6 (delta 3), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (3/3), completed with 3 local objects.
remote:
remote: Create a pull request for 'some-feature' on GitHub by visiting:
remote: https://github.com/pl23/project-peacock-rpg/pull/new/some-feature
remote:
To https://github.com/pl23/project-peacock-rpg
- [new branch] some-feature -> some-feature
branch 'some-feature' set up to track 'origin/some-feature'.
remote: Create a pull request for 'some-feature' on GitHub by visiting:
remote: https://github.com/pl23/project-peacock-rpg/pull/new/some-feature
git checkout [branch-name]
'Twas not I.
{"name": "antidote", "main_type": "consumable", "sub_type": null, "effect": "immediately poison recovery", "weight": 0.25, "count": 1}
I said it before
I'll say it again
this directory makes no sense if you're using git
!e
class Test:
def __init__(self):
self.greeting = "Hello"
self.number = 94
my_test = Test()
print(my_test.__dict__)
@wind raptor :white_check_mark: Your 3.11 eval job has completed with return code 0.
{'greeting': 'Hello', 'number': 94}
just noticed utility.py has a space at the beginning
TIL GitHub trims file names in file view
@lucid blade What's Bigfoot's part in all this?
"if there were secret services studying aliens, War Thunder would already have a realistic UFO tech tree"

when did this get added
very much reminds of that one google developer who claimed AI's sentience
even in early 19th they already realised than spontaneous combustion was just people being careless with flameable stuff around them
"alcoholics spontaneously combust because alcohol is flammable"
no, they just accidentally burn themselves because they're drunk
when the only sources of light and heat are open fire, it's easier
human-made stuff flying around right now is of a way higher concern compared to potential aliens
how about both
Yeah just depends I suppose
I believe I shouldn't visit the south of the city for drone-seeing
have you seen the amount of meth those pilots fly under?
@turbid sandal Maybe type it here. It sounds like this might be going for a while yet.
Sorry
I never said they saw drones.
@turbid sandal What's up?
how did you get the new username thing
It just told me that I could do it
There wasn't anything I specifically did to trigger it
Russia doesn't have money for that
❤️
there is no classified research that Russia can afford
wheee
no, it's going to be dull as hell just as the current conversation
chart_embed.set_thumbnail(url=ctx.guild.icon.url)
Is this correct?
Or is it ctx.author
Both don’t work
what url are you trying to get?
you mentioned question 2 earlier some time ago
seems fine
questions 3/4 are kind of "what attacker does vs what to do to prevent the attack"
not really specific to phishing
in what way does it fail?
I just removed it, it’s deprecated, a different embed option already includes it
Still working on getting that cooldown to trigger though
Back to square 1
Lol
if await ___cook.can_run(ctx):
await ___cook(ctx)
else:
raise commands.CommandOnCooldown
idk how to properly initialise that error
I'll check
you're using error.retry_after only, it seems
I don’t think the else statement would run
you can put a print there to check
Well, if the command runs everytime it suggests the else statement isn’t hitting
For anyone reading I’m trying to invoke a command through another command to trigger a cooldown for the second command
So if I have 1 command with no cooldown, and a second command with* cooldown, I’m trying to await/invoke/whatever works~ the second command in the first command to trigger the cooldown on the second command
@somber heath https://cessnaowner.org/cover-your-six/
What to Know BEFORE You Go Sponsored by AirMart, Inc. – www.AirMart.com “Cover your Six” with Maintenance, AD Compliance, and Secondary Seat Stops! I hate it when my seat slides back during takeoff. On two different occasions I’ve had my seat slide all the way back during the takeoff roll. The first time I was […]
The Lockheed L-100 Hercules is the civilian variant of the prolific C-130 Hercules military transport aircraft made by the Lockheed Corporation. Its first flight occurred in 1964. Longer L-100-20 and L-100-30 versions were developed. L-100 production ended in 1992 with 114 aircraft delivered. An updated variant of the model, LM-100J, has complet...
if not await ___cook.is_on_cooldown(ctx):
await ___cook(ctx)
else:
raise commands.CommandOnCooldown(___cook.cooldown, __cook.get_cooldown_retry_after(ctx), commands.BucketType.user)
why is it even there I wonder
the more corporate version would be "beyond 5 PM"
"no one works after 17:00, the world is shutdown"
depends
on its own, doesn't signal phishing
but
it's used to make it more genuine and for other reasons
also
if there is no message previously sent that it responds to
it's "select three"
what answer is definitely the wrong one?
Snarky Puppy feat. Väsen - Shapons Vindaloo
From Snarky Puppy's live CD/DVD - "Family Dinner - Vol. Two"
Stream/Download/CD/Vinyl: https://orcd.co/familydinnervol2
©GroundUP Music 2016
Written by André Ferrari
Arranged by André Ferrari, Michael League & Snarky Puppy
Recorded and filmed at Esplanade Studios in New Orleans, LA, February 12-14, 2...
AutoHotkey
memory fault
I don't understand this
why is it sometimes ,,
concat seems just a b
ham := "Bacon"
pork := "Beef"
MsgBox(ham " " pork)
waiting for extended mathematica where almost each operation possible is " "
in mathematica is multiplication
3+"5" and 3 "5" would both be "35"
(not in wolfram)
time to propose changes to Mark Rendle's "the worst programming language ever"
and don't forget to delete 3 and "5" after you're done working with them
best comment on that talk:
Even better: do memory management like taxes - there is a GC that knows exactly about things to delete, but you still need to manually predict what it would do - and the program crashes some time later if you forgot.
"just like AWK!!"
actually, this part kind of removes of AWK and its derivatives
Free keyboard macro program. Supports hotkeys for keyboard, mouse, and joystick. Can expand abbreviations as you type them (AutoText).
I should learn AWK
@rugged root
That's great
We still have some sort of tactile feedback on phones
Most of the time you have little vibrations when you press on the screen or keyboard
is it possible to refer to an 2d array using a vairable
Like something like this
index = [1][1]
print(array[index])
https://www.theverge.com/2023/6/7/23752164/apple-mac-gaming-game-porting-toolkit-windows-games-macos
Are we posting gifs on how to get shot in the US?
I totally don't get how he became popular and gets such good guests.
you could probably design an entire character based on this huh
people here really like parrots from what I can tell 😅
that would be such a cool game character as well
like you could have the special skills of 90s movie hacker (aka immediately hack into something by smashing random keys)
and beating people over the head with your keyboard
i offer you this for free entertainment
alright I'll get some stuff done^^
@lunar haven wsg gofek
so you can help?
im not
yes
yes
nah
if im eating out idc, but if we make stuff at the house, its halal
lmao
no
some stores sell it
yes
and saying "in the name of god"
and then killing it
watched what??
no
yes, its just killing the animal quickly without it suffering and saying "in the name of god" @whole bear
how??
you know
i wish i could
its red
i dont have permission
but they die instantly
no but if you slit a throat @desert wolf
i still didnt get to ask my question for help LMAO
but it says an animal looses conciousness as soon as the blood pressure drops in the head
it doesnt feel a thing when you slit its throat
quote-worthy pair of messages
so i fucking suck at python and im new and im trying to quicken my research on a lab report that I have to do that involves searching up a handful (about 5 or 6) of 1 word things and have it automatically search up in google and open multiple tabs. I was able to make a small program that can take 1 line inputs from the user and search up each one seperately, but what i want to be able to do is have the user input a specific format that they can just copy and paste from the lab but Idk how to "clean" the users input
the code:
import webbrowser
mySearch = input("What do you want to search?\n")
list = mySearch.split()
for i in range(len(list)):
webbrowser.open(f"https://www.google.com/search?q= {list[i]} hardness and gravity")```
!code
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voiceverify
you want to be able to pass the input in full into the search, right?
there will be seperate searches
it works when i do the input as: "rock1 rock2 rock3 rock4"
but im trying to make it work when i do: """
A.
Rock1
B.
Rock2
C.
Rock3
D.
Rock4
"""
but the problem is when i input that as the user input, it only takes into acount the first line
the A
how would you tell the program to stop taking more inputs?
by pressing Ctrl+C/Ctrl+D? (interrupt/EOF)
actually its always gonna be 6
A thru F
6 searches
thats what would be copy and pasted into the user input
like this:
A.
Gypsum
B.
Calcite
C.
Kaolinite
D.
Dolomite
E.
Talc
F.
Halite
!e
from urllib.parse import quote
for query_letter in 'ABCDEF':
print(query_letter)
# search = input()
search = "Calcite"
query = f"{search} hardness and gravity"
url = f"https://www.google.com/search?q={quote(query)}"
# webbrowser.open(url)
print(url)
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | A
002 | https://www.google.com/search?q=Calcite%20hardness%20and%20gravity
003 | B
004 | https://www.google.com/search?q=Calcite%20hardness%20and%20gravity
005 | C
006 | https://www.google.com/search?q=Calcite%20hardness%20and%20gravity
007 | D
008 | https://www.google.com/search?q=Calcite%20hardness%20and%20gravity
009 | E
010 | https://www.google.com/search?q=Calcite%20hardness%20and%20gravity
011 | F
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/wetoqunano.txt?noredirect
@whole bear i see where you're coming from and what you're saying, but I could talk about global warming all day for the rest of my life, and the impact will be incredibly nothing compared to a world of infinity
@vocal basin woah what is that
hold on i gotta take a good look at it to understand whats happening
!d urllib.parse.quote
urllib.parse.quote(string, safe='/', encoding=None, errors=None)```
Replace special characters in *string* using the `%xx` escape. Letters, digits, and the characters `'_.-~'` are never quoted. By default, this function is intended for quoting the path section of a URL. The optional *safe* parameter specifies additional ASCII characters that should not be quoted — its default value is `'/'`.
*string* may be either a [`str`](https://docs.python.org/3/library/stdtypes.html#str "str") or a [`bytes`](https://docs.python.org/3/library/stdtypes.html#bytes "bytes") object.
Changed in version 3.7: Moved from [**RFC 2396**](https://datatracker.ietf.org/doc/html/rfc2396.html) to [**RFC 3986**](https://datatracker.ietf.org/doc/html/rfc3986.html) for quoting URL strings. “~” is now included in the set of unreserved characters.
this makes sure no extra characters from input like &/= break the URL
but that doesn't take a users input right
@vocal basin do you know how i would be able to take multiple lines of input in one users input
or is that not possible?
py ```
mySearch = input("What do you want to search?\n")
print(mySearch)
!e
from urllib.parse import quote
searches = []
for query_letter in 'ABCDEF':
print(query_letter)
# search = input()
search = "Calcite"
searches.append(search)
for search in searches:
print(search, '...')
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | A
002 | B
003 | C
004 | D
005 | E
006 | F
007 | Calcite ...
008 | Calcite ...
009 | Calcite ...
010 | Calcite ...
011 | Calcite ...
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/egepovexef.txt?noredirect
this takes inputs first, and only then starts to open pages
I see
so it takes inputs 1 by 1
idk i kinda just came up with that @whole bear
like if you think about it
the world is infinite
in our lifespans
something that is infinite never ends correct?
the world will not end in 70 years
or 100 years
or 200 years
if you're born before 1970 and live past 2038, you're eternal
the start of unix epoch and end of unix epoch
no thats why there are laws
but thats not your problem
let the people who have jobs and its their duty to take care of those problems
but if you're not one of those people, why care?
why stress about it
"go go nihilism"?
no
im religious
but for example ordinary people arguing about global warming wont matter unless you have a direct impact on something
but a seed can only travel so far
stop driving a car if you can take a bus/train instead
already a positive impact
so if you tell me about global warming and how we need to do something, sure maybe youll impact me, but i wont be as enthusiastic about it as you, so i will most likely never indulge in that conversation with someone else
yes you're right
but many peope are like that
you sure?
yeah you're right, it takes 1 person to make a change
nah anyone
they just gotta have a good impact on people
alright i have a physics class, gotta lock in
I don't know
ah, I might have a clue
because of the item on the list and haircut
other items don't seem to match though
wait
why would anyone wanna do that
do what?
thats restriction of freedom if you think about it
taking a train/bus
instead of your own car
I didn't say to ban cars
having no accessible public transportation is a restriction of freedom.
well yeah but its also not a good way to save the world
learn to read before arguing
I never said to restrict anyone
no but you said that as a solution
it's your own choice to take a more ecological route
stop making stuff up.
but its a solution that encourages less freedom and more time waiting
= less efficient
in terms of time
yeah but when it comes to time
if half of the city wasn't covered in parking lots, then maybe you wouldn't have to travel as long
in US it is covered in parking lots
true
thankfully, the world isn't only USA
like
the "there is no public transportation" isn't an omnipresent problem
but there are places where it is
people confuse "freedom from" and "freedom for"
well usa has both
in terms of transport, it's almost exclusively the first one
less efficient sure, but it has a net good impact/effect
freedom from:
children don't have to attend school
freedom for:
children can attend school
I checked, first item matches too
I'm probably reading way to deep into this
yes, I hear
Mugshawtys is a gimmick account on Twitter and Instagram that shares mugshots of attractive woman convicts along with the crime or crimes that they were allegedly booked for committing.
did you watch Queen's Gambit?
nope
so, what makes it funny for me is that haircut matches that of Beth Harmon
and Beth ||store drugs from some a pharmacy, thus burglary and possession of drugs||
A Brainfuck editor & optimizing interpreter, written in JavaScript. It's pretty fast.
@steep juniper hard to learn, obscure structure
also, programs written in it are extremely hard to read for people who are unfamiliar with it
@steep juniper reference implementation is in C
can probably be easily done in assembly
INTERCAL is one of the best esoteric PLs
Compiler Language With No Pronounceable Acronym
it has the most cursed model of multi-threading
(hypothetically)
I found out recently that whitespace has versioning
Whitespace 0.1
first and last version
(as far as I'm aware of)
INTERCAL has the opposite of GOTO instruction:
COME FROM
if two places COME FROM the same instruction, when the program reaches that instruction it spawns an extra thread
so execution continiues from both places
regex is too weak
(provably)
in INTERCAL you can also put PLEASE before instructions
a keyword
if you put too little, it will complain that you're impolite
if you put too much, it will complain that you're overly polite
exact number of PLEASEs you need isn't specified anywhere
it an actually be structured to spawn a separate thread each time you use COME FROM
making a GOTO would in that case require putting GIVE UP (or PLEASE GIVE UP) right after the instruction you COME FROM
btw, if you forget to GIVE UP at the end, the program will start using 100% of the CPU and memory
4-dimensional?
because it's obviously 4-dimensional
but, how brain interprets it most of the time, it's 3-dimensional (2 spatial, 1 temporal)
taking height into account is kind of hard for humans compared to some other animals
Cerebellum being the part of the brain responsible for it
birds and marine animals have it comparatively large
determinism is counter-productive for certain areas of physics
non-deterministic models are simpler and clearer to work with
(sometimes)
especially in Quantum Mechanics
which, in the preferred modern interpretation, includes strict randomness
C++ has classes
C can have an object model
(built on top of it)
one example of OOP made on top of C is Python
there are also PLs named after elements (intentionally or coincidentally)
Mercury, Wolfram
@whole bear print formatted?
maybe
Rust is almost there
ohno, I remembered this
https://en.wikipedia.org/wiki/Malbolge
Malbolge () is a public domain esoteric programming language invented by Ben Olmstead in 1998, named after the eighth circle of hell in Dante's Inferno, the Malebolge. It was specifically designed to be almost impossible to use, via a counter-intuitive 'crazy operation', base-three arithmetic, and self-altering code. It builds on the difficulty ...
current leading programming technique for Malbolge is brute force
ew
that's actually not C, that's С
Cyrillic S
or just wrong 10%
the question is missing the word "exactly"
you can make a triangle with 3 sides => you can make a triangle with 4 sides
if you use the proper definition of "with"
next gem language
https://en.wikipedia.org/wiki/Opal_(programming_language)
"with" can mean "using"/"out of"
"make with" instead of "triangle with"
you can ignore the fourth side
because you're asked "given 4 sides, make triangle"