#voice-chat-text-0
1 messages · Page 109 of 1
nice but i recommend like reading english more
bc your english is actually way better than most people here
so this can improve it aswell
I'm reading some stuff on gui at the moment
But if you know a good book that would be helpful
what language?
hello
i had a actually very nice C# teacher our school had for summer school
English or farsi
I can do both
Hello
whats going on today ?
c# looks like a nice language
I might take a look at it in near future
even have persian if you scroll a bit further down
still recommend english
Yeah it's a good repo
Have had it for some time
Just too lazy to search through it 
Renamed the iVars and removed the common prefix.
vs
Rename the iVars to remove the common prefix.
I'll ask that question via text.
I wrote a discord.py code (see here:https://paste.pythondiscord.com/aninahoveq)
I would like, to run this script, through the bot multiple times.
Can someone help me doing that?
Yes
The system is called category roles
If a user has a specific role, bot automaticly gives the user ROLE A
You have these roles:
twitch mod, discord mod
You want to put these roles together in the role Team-Members
You can use the command /change_team_role @team-members to add the role team-members
You use the command /add_role @twitch mod
and use the command /add_role @discord mod
Now, when you assign the role twitch mod to a user, the bot automaticly assigns the role team-members
are you talking to me?^^
#discord-bots will be more useful than I can be
It's been too long since I've really messed with Discord bots
alright, thanks man 
@rugged root you could rename your program to Oriichi
like a combination of Orochi (the legendary Japanese serpent) and riichi
Ooooo I like that
cool stuff i guess
c i talk ?
If you're wondering why you can't talk, check out the #voice-verification channel
That'll tell you what you need to know about the voice gate
hi please check ankurgajurel/nepse-cli
no thx
💀
Hi
🙂
Does anyone of you know discord.py?
The guys in #discord-bots were not very helpful
did someone say my name i was afk
school stuff
@midnight agate No "games" end with a I think.
I.e. none of the sublists are ["a"].
Yeah the wording of the explanation isn't terribly clear.
Although it's a bit awkward that they store these counts in the keys rather than the values.
Exercise in learning how to deal with unclear specifications ¯_(ツ)_/¯
🇬🇧
!voicemute @onyx glen Playing loud music through microphone. Please fix if this wasn't intentional.
:incoming_envelope: :ok_hand: applied voice mute to @onyx glen permanently.
please do not block me on voice i was listening to bk's advertisment(the best vid ever) and i should have muted
!unvoicemute 960614095923597353
:incoming_envelope: :ok_hand: pardoned infraction voice mute for @onyx glen.
Don't let it happen again, or it will be a permanent irrevocable voice mute.
if __name__ == " __main__":
!voiceverify
!voiceverify
hello guys
Yo
I can text in here, yeah
Hanging out. Pulling thoughts out of places.
nice
i have a thought that has been bothering me for a while. if tomato is a fruit, isn't ketchup a smoothie?
nice, cupcake
@lofty girder @north rock @wintry mulch If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know about the voice gate. If you've heard this before or were already aware, sorry
Force of habit to mention it to folks who don't have the role
it also has Rust bindings
import polars as pl
q = (
pl.scan_csv("iris.csv")
.filter(pl.col("sepal_length") > 5)
.groupby("species")
.agg(pl.all().sum())
)
df = q.collect()
general rule with this class of libraries:
if you're looping over data, you're doing it wrong
sounds like a very unconventional approach to chess engines
even ML-based models use tree search
so, like
implement a simple evaluation first
(evaluation of the position you stop searching on)
and then add ML-based adjustments
(to evaluation and to ordering)
to a certain depth (around 30) + capture chain
... capture chain being usually up to around 10 moves
@dense oak 👋
hi
How's it going
nm, am a beginner to python
to learn in the matter of "player made this move and won => this was a good move" you probably need to only include high-level slow games
what ppl at engine programming recommended me:
"
First Network
- Generate 500,000 random games
- Take 20 positions from those games, and save them, alongside the final W/D/L result
- Train a regression network to give us the chance of winning
Other Networks
- Generate 500,000 games with AB search, with the previous network as the evaluation function
- Take 20 positions from those games, and save them, alongside the final W/D/L result
- Train a regression network to give us the chance of winning"
AB search
do you have it already implemented?
yes
Nice! Having fun with it thus far?
yes, i find it much easier than java
Highschool, college...
Hello everyone
Yo
highschool
How are ya?
Not bad, you?
Well, my first time that I talked a lot here
It's wild to me. The closest thing we had to that in highschool was just basic computer courses.
Well we're glad to have you
its different here ;-;
Man, I didn't even have a single computer class at my highschool
we are forced to learn all the subjects
i graduated in 21
nice
model 1 code
https://pastebin.com/ZiZHDYZY
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.
Nope, my school was a tiny one
So I'm a beginner at python, and I find it fun, but it's kicking my tail, my college class is just tossing a bunch of things at my face without explaining much
which course
I'm more than happy to help explain stuff
The college class I'm in is intro to scripting
oh ic
That would be very helpful
It also does not help that the class is an online one and assignments are due each week
"Welcome to Python 101. Chapter 1: Why camelCase is what you should use in all languages regardless of pre-established convention." (It's not.)
if i have to get into a top college which offers a computer course, i have to come within the 100th rank in an entrance exam which is known as the world's hardest exam
Just recently it had introduced loops, like the for loop and while loop, and it's just kinda hard to wrap my head around it at times
and thats ridiculous especially when i have to self study -_-
If that's what you're going for, I wish you luck
Have you covered assignment?
=
Elaborate?
!e py a = "Hello, world." print(a)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello, world.
Where a becomes a signpost to an object in memory.
if i get into that college [IIT] or [NIT] i will be the first preference of every company
Ohh, do you mean like a variable?
That object in memory here being the string, "Hello, world."
they offer 100% placement which means every student gets a job
Yes. A variable is that signpost.
Okay
So
This is what a for loop is
on repeat
It's taking an object that is iterable, as in it can be plugged into a for loop
and pulls out each object reference in it and assigns a variable to that object
!e py for letter in 'abc': print(letter)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | a
002 | b
003 | c
!e py letter = 'a' print(letter) letter = 'b' print(letter) letter = 'c' print(letter)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | a
002 | b
003 | c
What's inside the indentation is what gets run over and over
Once for each thing in 'abc'
The first time through the loop, letter = 'a'
The second time through the loop, letter = 'b'
etc
Assignment on repeat
On weekdays daytime US is the busiest, usually.
@frozen owl https://sqlitebrowser.org/
Gotcha
Other busy sessions do sometimes happen outside these times.
For loops are also good at doing a thing n times.
!e py for _ in range(3): print('Hello, world.')
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Hello, world.
002 | Hello, world.
003 | Hello, world.
So, we can ask questions about code on here without having to do it through the help chat?
!e py for i in range(3): print(i)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
@signal lynxHave you covered if?
!e ```py
if 1 + 1 == 2:
print('A')
if 5 + 5 == 20:
print('B')```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
A
We have, I think I understand that much more than while and for
Ok, gotcha
So, I had a lab that counted input length without counting spaces, commas, or periods
Followed by three more labs, can I ask about them in turn, I have working solutions for the first two, but haven't gotten to the other two
I want to know if what I used was good solutions
!code
!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.
The first if they fit. The second if they do not.
so what does the py mean at the start of the first one, is that language type?
For python?
user_text = input()
not_allowed = 0
for char in user_text:
initial_len = len(user_text)
if char == ' ':
not_allowed += 1
elif char == '.':
not_allowed += 1
elif char == ',':
not_allowed += 1
length = initial_len - not_allowed
print(str(length))
So that is for the input length
Is there anyway to make that look better? or any new functions that I don't know that could make it look better?
Yes, that's a Discord formatting thing.
It's nothing to do with the Python language, itself.
from _ap_mods import QOS_SM_General_config as SM_config
from _ap_mods import QOS_AP_General_config as AP_config
SM_config.qos_general_config
AP_config.qos_general_config
Ok, so you would use that for any language huh?
Discord covered several languages. You'd need to look up the Markdown specification on the site.
I've got ideas. I'm just thinking.
Gotcha
It's a little difficult for me to think while I'm distracted, which I am.
initial_len = len(user_text) This is in your loop.
Does the length of user_text change?
No, it does not, so I can move that out ye
!e py print('a' in 'abc') print('b' in 'abc') print('c' in 'abc') print('d' in 'abc') print('e' in 'abc') print('f' in 'abc')
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | True
002 | True
003 | True
004 | False
005 | False
006 | False
You can check if thing a is within thing b in this way.
Ok, so how would I incorporate that, maybe an if statement??
You could.
So like
if ' ' in user_text:
But that just sounds tough to use for this specific thing? No?
Keep thinking about it.
Try coming at it from different angles.
!e py print(not True) print(not False)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | False
002 | True
not inverts True and False.
Yea, not gives the opposite
!e py print('a' not in 'def')
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
True
@rugged tundra https://www.neighborhoodscout.com/mo/springfield/crime
Most accurate 2021 crime rates for Springfield, MO. Your chance of being a victim of violent crime in Springfield is 1 in 64 and property crime is 1 in 16. Compare Springfield crime data to other cities, states, and neighborhoods in the U.S. on NeighborhoodScout.
Though this is how you'd use it for membership testing
vs
print(not 'a' in 'def')```
Which you shouldn't do.
I think I'm struggling with not knowing what functions go together mostly
Yeah, don't worry about it too much. You'll get more familiar with things as you go along.
Small steps.
Just working on the coding mindset
I like to say you build it bit by bit like a lego castle
You've learned that for loops are like assignment on repeat and you've learned that while is like if on repeat. That's enough to learn for one day.
I often use the Lego comparison.
It's a good comparison
I'm gonna take a break for a while, thank you all for the warm welcome, I'll be back
See you all
CRUD
ok thanks
create read update delete
... iirc
Hemy, i think although it would save me time todo that.. functionally tho, i think it would be a bad practice i suppose since the files/functions are just in name a catagoery that is the same and relies on different prohramming under the hood.. so I might aswell raname all the files, functions, and variables just to be sure I dont make any conflict somewhere.
Oh, doctor. I heard docker.
Like a dock worker.
You were talking about helping people and I was confused.
my internet is fucked 🙂
I was about to preach emacs lisp to all of you so maybe you were saved in a way
Your internet was like "Nope, have to stop him."
my internet can't have me speaking the truth
Hello!!
How goes it
@somber heath remember me?
After a limited fashion.
came back to this server after 3 months
hellos sir hemlock
What was the other account? This one wouldn't have been old enough to have been here 3 months ago
Yeahh, this is my alt...
how are yall doin?
It's the same username...but it's been deleted now...
Why the new one?
The other account had been falsely reported as underage when I am not...
this was me
Gotcha gotcha
hi
Did you change your username? I saw your messages too with my old messages, but I don't remember seeing your name back then...
ohh is it?
hello!!
shoulda CHANGE it to SIR hemlock
Niiiiiice. Bigger, better refresh rate, etc?
My first, actually
alr, i'll be back, cya
👋
2560x1440, 27"
Can i play with it🥺
It's this one in particular https://us.msi.com/Business-Productivity-Monitor/PRO-MP273QP
PRO MP273QP is the best business monitor for productivity and efficiency. Its eye-care, ergonomic adjustable stand and exclusive software help connect you to the world and brings the best video quality from home or office.
I kinda just needed the option to rotate it vertically lol
for coding?
and for certain games
Is it just me or y'all are coming in a bit quiet
ic ic
Yeah the speakers are kinda just... there
Speaking of small, I use a mini pc 😄
I have a laptop wired to a monitor
fancy keyboard
I gotta swap out the keycaps haha
I have spare ones from an old keyboard that broke
I do enjoy my mouse though
Very silent
Horizontal scroll, yep
This is the artist of my wallpaper https://www.deviantart.com/arsenixc
There's navigation buttons in there as well
oil could be diet - but oily skin means you will age well also
On the thumb rest, there's also a shortcut for gestures
Logitech software is... meh
This mouse in particular doesn't work as well on MacOS
does your thumb get fatigues , crampy ?
Smooth scrolling is just borked haha
I have three pieces of logitech hardware I use daily, all malfunctioning
g903, g613, g935
(mouse is the least problematic of them)
Oh, I forgot about the receiver that came with this
!pypi crappy
i just use a $10 Logitech keyboard , mouse set -
I'm waiting for a charitable person to give me hardware
well it does happen - i get stuff all the time
can get some stuff if your willing to do bit of repair
My mouse only ever lasts a month
or maybe because I'm using it over bluetooth and I don't really charge it to full
i dont like wireless mice anymore the latency while typing is - infuriating
well its usually a mic / keyboard set - i should say
i can type fast when accelerated by caffiene - you know the drill
what about wireless charger tech ...
wired stuff for now is ok
i have a drawing tablet somewhere - the pen is lost , the mouse has no batteries
Yup
I do not get wireless headphones
wow - ALWAYS...
Karens don't like cleaning i guess
reminds me of Dave Chappele skit , at copy shop , using paint brush and chocolate sauce in the toilet
well HDMI cables have a zillion versions , why not USB
imagining a USB diagnostic software
👋
Apparently I can trigger my mouse's scroll mechanism just by tilting it
Granted, it uses magnets
USB speeds - there should be a diagnostic somewhere - if you can also have a device , datastick , MP3 player , .. capable of receiving
wireshark ? can it do it , measure ?
Oh huh
wassup chris, hem, opal, prop, pu re, af
USB 3 use 9 pins?
Yup
adventures in usb 3
doesnt 3.1 have 24 pins?
no idea , someone has a box of usb cables and wants to ID their quality
Magnetic chargers are where it's at.
i saw this magnetic charger on a keyboard it was very cool, unlike mac for example, it was a round shaped charger no clue how it worked though
also did data transafer
Yeah, my old mac had one and it was so convenient.
!stream 396514766547582986
✅ @frosty garnet can now stream until <t:1680627100:f>.
Did they change Starlite's name?
Was there a like copyright thing?
Or trademark I guess
usb3 datasticks still painfully slow
how about this ....
mass produced in china - no color coding rules apply
Here is our comprehensive breakdown of the symbols and logos commonly found on USB-compatible laptops and devices like connection ports, storage drives, charging cables, and more. Our hope is that knowledge of these icons can help you make an informed decision on which device connection type is right for your system, and what the symbols really ...
laughs in comcast
cya @rugged root i might be back
Have a good one
WoW Legit 👍
How to start a fire with a usb and a charger 💯
!voiceverify
name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
# I was getting errors when I used a CAPSLOCK tag, so I went with lowercase instead.
run: docker build . --file Dockerfile-wrf_wps --tag wrf_wps:$(date +%s)
so far so good I guess
and the dockerfile was
# syntax=docker/dockerfile:1.4.2
FROM ghcr.io/uomresearchit/wrf-libraries as wrf_wps_build
###############################################################################
## Install WRF v4.3.3
WORKDIR $WRF_SOURCES
ARG TARGET_URL=https://github.com/wrf-model/WRF/archive/v4.3.3.tar.gz
ARG TARGET=WRF
ARG EXTRA_FLAGS=
RUN <<EOF_WRF
mkdir $TARGET
cd $TARGET
wget -c $TARGET_URL -O $TARGET.tar.gz
mkdir $TARGET-src
tar -xf $TARGET.tar.gz -C $TARGET-src --strip-components=1
rm $TARGET.tar.gz
cd $TARGET-src
printf '34\n1\n' | ./configure $EXTRA_FLAGS
./compile em_real
rm run/*exe
EOF_WRF
ARG WRF_DIR=$WRF_SOURCES/$TARGET/$TARGET-src
###############################################################################
## Install WPS
WORKDIR $WRF_SOURCES
ARG TARGET_URL=https://github.com/wrf-model/WPS/archive/refs/tags/v4.3.1.tar.gz
ARG TARGET=WPS
ARG EXTRA_FLAGS=
RUN <<EOF_WPS
mkdir $TARGET
cd $TARGET
wget -c $TARGET_URL -O $TARGET.tar.gz
mkdir $TARGET-src
tar -xf $TARGET.tar.gz -C $TARGET-src --strip-components=1
rm $TARGET.tar.gz
cd $TARGET-src
printf '3\n' | ./configure $EXTRA_FLAGS
./compile $EXTRA_FLAGS
EOF_WPS
################################################################################
FROM ghcr.io/uomresearchit/wrf-libraries as wrf_final
COPY --from=wrf_wps_build /WRF-SOURCES/WPS/WPS-src/ /WPS-run
COPY --from=wrf_wps_build /WRF-SOURCES/WPS/WPS-src/*exe /usr/local/bin/
COPY --from=wrf_wps_build /WRF-SOURCES/WRF/WRF-src/main/*exe /usr/local/bin/
COPY --from=wrf_wps_build /WRF-SOURCES/WRF/WRF-src/run /WRF-run
LABEL version.wrf=4.3.3
LABEL org.opencontainers.image.description="WRF and WPS executables and run directories"
LABEL org.opencontainers.image.source="https://github.com/UoMResearchIT/wrf-docker"
WORKDIR /
hgood@HENRY MINGW64 ~/wrf-docker (ClariNerd617-patch-1)
$ docker build Dockerfile-wrf_wps
[+] Building 0.0s (1/2)
=> ERROR [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 71B 0.0s
------
> [internal] load build definition from Dockerfile:
------
failed to solve with frontend dockerfile.v0: failed to read dockerfile: error from sender: walk Dockerfile-wrf_wps: The system cannot find the path specified.
@willow light so first time your friend goes in
then you go in and tell the price
ez
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
man you talk ex actly like tristan tate and also sound like him.... lol
Who?
is that a good thing?
Or rather which of us
clari
no, just like saying you talk like him
So many virgins taken down in one fell swoop
bruh
im going to head out guys, enjoy your day/night!
Just notch the missile
made this while bored at 2AM, no idea why it blew up as much as it did but I'm thankful for it
most american stuff ive ever seen
@whole bear use fastapi
@amber raptor there's django rest framework
@graceful grail it's fast. like rabbit said, it uses pydantic to verify form data and stuff based on typehints
🐇
!pypi pydantic
and flask is sync, fastapi and django are async
welllllll, no one is really doing that much web dev in python @whole bear
send link
it's down ;-;
You can but why would you? Is how I would describe web backend in rust.
Everyone be nice please 
@whole bear watcha talking about?
im happy pog
@quasi condor whatcha talking about?
At its core, Javascript is actually quite a nice language.
you can compare different types with ==
the problem with js is not the syntax, or anything about the language itself, really
!e
print(2=="2")
@quasi condor :white_check_mark: Your 3.11 eval job has completed with return code 0.
False
!e python print(2=='2')
Automatic Semicolon Insertion (ASI)
In languages of the C-family, the semicolon denotes the end of a statement. Unlike other C-like languages, JavaScript doesn't enforce that. Instead, the semicolon is optional, and the interpreter adds missing semicolons - mostly at the end of a line - to terminate statements. Doing so, he takes complex rules i...
what are you guys talking about?
var x = 9;
if (x === 9){
alert(x)
console.log("Hello World")
alert(x+10)
}```
lol
in python, semicolons are never required
var x = 9
if (x === 9) {
alert(x); console.log("Hello World")
alert(x+10)
}```
The relevant gotchasa are starting a line with a ( or [
var a
a
=
3
console.log(a)```
@whole bear yes, smaller code means less latency when you send it to users
!e ```python
a
3
print(a)```
@amber raptor :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 2
002 | =
003 | ^
004 | SyntaxError: invalid syntax
\n
\b is backspace
(define
a
3)
(writeln
a)
.xkcd 297
@whole bear "if we changed the language entirely, it would be like lisp"
Pretty much
no it does not
Let's make everyone (), that is easily to read........
just learn haskell or something
or rust
@whole bear so what "lisp" features are in python?
python is not
lisp doesn't even have objects like python 🤔
what do you mean it doesn't have objects? you can do oop in lisp.
@amber raptor alright. i'm expecting 2 responses about internships this week
Awesome, hopefully you will get one despite economy going to shit
(defclass vehicle ()
((speed :accessor vehicle-speed
:initarg :speed
:type real
:documentation "The vehicle's current speed."))
(:documentation "The base class of vehicles."))
that looks like an object to me
mind you I don't like the look of lisp so I'm not likely to ever use it...
right, but these are more like named tuples iirc. the way functions are dispatched is different in lisp compared to python
named tuples are objects tho
sure
in fact before I learned about dataclasses, named tuples were my go-to for converting json data into an object
my point was that you don't associate any behavior with a named tuple, with methods
scheme doesn't have objects, but it does have closures and association lists.
you say that like it's a bad thing
sure, but you end up doing sorta the same thing by writing free functions that take it as a parameter
yeah
@dense pike I could always just stream this lol
"I refuse to answer this question on grounds that I do not know."
@whole bear it's so that no one can just straight up ask you "did you do the crime"
@amber raptor my poorly made pivot table
subpoenaed
@rugged root don't you have direct deposit?
It's for clients
ah
One of our clients still get paper checks and paystubs
don't they have direct deposit 😔
Most do
it's 2023 bruh
@dense pike they have a high heat capacity, so when you put stuff in it, it cooks the food instead of cooling down the pan that much
!pep 582
print('Hello')
name = input("What is your name?")
print("Hello \n" + name + " That so much for coming in today. \n\n\n")
menu = "Black coffe, Espresso, Latte, Cappucino"
print(name + ", What would you like from our menu today? Here is what we are serving. \n" + menu)
order = input() ```
!e
print('Hello')
name = input("What is your name?")
print("Hello \n" + name + " That so much for coming in today. \n\n\n")
menu = "Black coffe, Espresso, Latte, Cappucino"
print(name + ", What would you like from our menu today? Here is what we are serving. \n" + menu)
order = input()
@willow light :x: Your 3.11 eval job has completed with return code 1.
:warning: Note: input is not supported by the bot :warning:
001 | Hello
002 | What is your name?Traceback (most recent call last):
003 | File "/home/main.py", line 3, in <module>
004 | name = input("What is your name?")
005 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
006 | EOFError: EOF when reading a line
yeah i got
👋
Line # Mem usage Increment Occurrences Line Contents
=============================================================
18 839.9 MiB 839.9 MiB 1 @profile
19 def board_data(board):
20 839.9 MiB 0.0 MiB 1 board_array = np.zeros((8, 8, 13), dtype=np.int8)
21 839.9 MiB 0.0 MiB 65 for i in range(64):
22 839.9 MiB 0.0 MiB 64 piece = board.piece_at(i)
23 839.9 MiB 0.0 MiB 64 if piece is not None:
24 839.9 MiB 0.0 MiB 32 color = int(piece.color)
25 839.9 MiB 0.0 MiB 32 piece_type = piece.piece_type - 1
26 839.9 MiB 0.0 MiB 32 board_array[i // 8][i % 8][piece_type + 6 * color] = 1
27 else:
28 839.9 MiB 0.0 MiB 32 board_array[i // 8][i % 8][-1] = 1
29 839.9 MiB 0.0 MiB 1 board_array = board_array.flatten()
30 # board_array.shape = 832 (1D)
31 839.9 MiB 0.0 MiB 1 return board_array
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.
Ok reopening the dockerfile in WSL gives me errors that did not occur when I opened it in regular windows....for some reason
Cadbury themed
Alright, thanks for the info.
@willow light have you used a towel
I'm trying to figure out whether it is a better idea to dockerize the WRF, or convert it to work with numpy.f2py for a more modern experience...
the wrf is several GB of text files of Fortran 77 code.
New mission: figure out CI/CD for a weather model
Access to fetch at 'http://127.0.0.1:5000/generate_question' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
pretty buses
slowly leveling up my other languages lol
@whole bear turn your dms on
@lament hedge👋
matplotlib had a recent massive PR iirc
each type stub is like 2 lines
Dude your mic, though
@wind raptor after a long time you are back on the vc
welcome back
it might be you were here all the time
i have seen you today
after so long
so hello
Thanks! I'm hoping to be more active again in this server
caveets
I don't think I ever really got what pyi files were
usually coops pay you though ?
I love our office manager
best of luck
@whole bear👋
Sup 👋
@uncut meteor Suuuuuuuuup
hello
hello :D
i have implemented SQL reading and writing
instead of pgn and txt
success!
Military Assault Command Operations (commonly abbreviated as "MACO", pronounced "MAY-ko") was a United Earth organization that existed as a part of the United Earth Military during the 2150s, prior to the founding of the Federation. The MACOs were not associated with Starfleet. As of 2153, MACO tactics and technology were two to three years more...
is this like SCP or smth
Often pluralised as MACOs.
Star Trek.
i need a little help with python. Is there anyone that could please help me?
oh
Depends on what you're having problems with. Probably. What's up?
@heady tapir If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know about the voice gate
nah dw im testing out stuff
i think making the python discord bot do smth like this would be good
like auto identify non-verified in VC
What a self bot?
and send msg
!help
sharing screen...
Ah okay
what the heck...
Force of habit to check
The way you were hopping between channels, like the intervals, felt really regular
−273.15 °C
Hey, Im playing around with python and trying to create the deal no deal game show. The program is running but there is an issue with the output
!code Let's have a look.
!paste if it's too big
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.
What's it doing that it shouldn't be doing or what isn't it doing that it should
Its blank occasionally and not blocking the background once it has cleared the screen
Can you toss the code into here? If it's large you'll probably want to use our h- and I just realized Opal already posted the paste bin link
Jenga as memory storage.
NaNites.
Because they run on Java.
Or whatever languages write NaNs like that.,
👋
How's it going @stuck furnace?
Jimmy is a male given name of Hebrew origin. It is a diminutive form of the given name James, along with its short form, Jim. Both can also be used as the adaptation into English of the popular modern Greek name Dimitris (Δημήτρης) or the older Dimitrios (Demetrius), especially amongst Greek immigrants in English-speaking countries, due the simi...
"Jimmy is a male given name of Hebrew origin. It is a diminutive form of the given name James, along with its short form, Jim. Both can also be used as the adaptation into English of the popular modern Greek name Dimitris (Δημήτρης) or the older Dimitrios (Demetrius), especially amongst Greek immigrants in English-speaking countries, due the similarity in the sound of the nickname Ντίμης/Dimi and Jimmy."
Not bad 😄 Yourself?
Good here! Just waiting for my discrete math class to start in 40 minutes.
👀
i've a shakespeare class in an hour
Wait
That sounds fun! I have an English class but it's all just essay writing and analysis. Not as fun as Shakespeare.
FIRST MURDERER
What, you egg!
Yeah I'm definitely not a languages/humanities person 😄
😔
That moment you, in bare feet, encounter a scorpion.

Wait did that just happen?
It was just a small one.
Meh.
These ones would hurt and you might feel a bit ill, but it's not going to kill you.
I'd be more likely to squish it by accident than it sting me by accident.
now im thinking about the 1st boss from ff7
Jar, paper, outside. No worries.
lol
I've done a little bit with Kivy, but I wouldn't call myself an expert.
@whole bear It doesn't look like a fatal thing, in any event.
[DEBUG]: In file included from <built-in>:382:
[DEBUG]: <command line>:6:9: warning: 'ANDROID_API' macro redefined [-Wmacro-redefined]
[DEBUG]: #define ANDROID_API 21
[DEBUG]: ^
[DEBUG]: <built-in>:375:9: note: previous definition is here
[DEBUG]: #define ANDROID_API ANDROID_MIN_SDK_VERSION
[DEBUG]: ^
[DEBUG]: 1 warning generated.
hemy.. i havent refactored the master set of QOS params yet, but doing the slave as I go.. choices are presented..
should I remap all the master from a base name.. or..
just include master and slave in each main qos file and just call the respective functions..
it just makes those files larger then pop in and fix or update something without seeing eachother..
which would be a better design pattern?
My guess is that it's whinging about the android API it's targeting.
Trying to visualize the choices, bear with me
Suggestion 1: Visit the Kivy Discord and ask there.
Suggestion 2: Ask in the #user-interfaces channel.
My thinking: It's not a fatal error and so can be ignored, but you probably shouldn't.
@vocal basin are you here
TRAVEL
______
CCCCCC
Nomads would have to have very good control over their emotions.
Overseas travel.
It's not a coincidence.
I was responding to you.
nomads - food commercials
Oh, because math.
🎩 🌊

Sounds.... fun?
Those are not the kind of truth tables I was thinking of
They are, you probably just don't know the symbols.
You are not allowed to use that command.
^ and
v or
-> then
~ inverse
11111
-----
TIME
MIND
-------
MATTER
```
🎅 🗣️
Okay, maybe not a Rhebus, but I don't care.
hello
Rebar monkey.
Economnomnomy.
Also the practice of giving people short names.
Eco-nomy.
Incontinental ballistic missile.
O_ER_T_O_
Try out my quantum mechanics course (and many others on math and science) on Brilliant using the link https://brilliant.org/sabine. You can get started for free, and the first 200 will get 20% off the annual premium subscription.
Today we talk about water on the moon, space skin, quantum light, how crystals grow, mind-controlled robots, blood a...
(👔 🧎♂️ 🎸 )🐜 🛑 🎵
There exists a repo where we have this code running in production with the name validation.py:
assert(1==1)
that's the entire file.
Gotta validate that no comsic rays flipped any bits
This fuels an appetite for destruction.
bitsquats
Also, why not just assert(True)?
Were people able to differentiate between requests as a result of bit flipping and requests generated from crawling the DNS server?
you're not listening!!
Can't just throw a "True" out in the open!!
Is it a 𓁦 True or a 𓁣 True??
HOW DO I KNOW IF IT'S REAL IF I DON'T COMPARE IT!?!??!
WHERE 1=1
!e print(1=1)
@sweet lodge :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 1
002 | print(1=1)
003 | ^^
004 | SyntaxError: expression cannot contain assignment, perhaps you meant "=="?

assert 1==1 if 1 != 1
LOL
1 == "1" && 1 === 1 && 1 !== "1"
@wind raptor could you help me with python please
epic javascripting
im trying to run a command for my discord bot, im putting the right inputs in but when i try to run the command it says error with one of my lines
what's the error?
what's the traceback?
sorry im new to this whats a traceback
!e
1+
@vocal basin :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 1
002 | 1+
003 | ^
004 | SyntaxError: invalid syntax
!e py 1+
@somber heath :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 1
002 | 1+
003 | ^
004 | SyntaxError: invalid syntax
(error message in something like this form)
Traceback (most recent call last):
File "/Users/glory/Desktop/discord bot py/main.py", line 1, in <module>
import bot
File "/Users/glory/Desktop/discord bot py/bot.py", line 15
client = discord.Client()
^^^^^^
SyntaxError: invalid syntax
Process finished with exit code 1
line 14 is my token for the bot i made
140 characters? Oh no. How burdensome.
just send the line and get a new token before you send it
aii
can replace the token with nothingness and send the line?
actually nvm the bot will delete your message
Still not a good idea to leave it in.
If the Python bot can snipe it, other bots can, too.
def run_discord_bot():
TOKEN = ''
client = discord.Client()
@client_event
async def on_ready():
print(f'{client.user} is now running!')
client.run(TOKEN)
COOL, forgot to submit my personal property stuff for 2022
I hate my adhd
"You're not my ADHD, you can't tell me what to do!"
!e
def run_discord_bot():
TOKEN = ''
client = discord.Client()
@client_event
async def on_ready():
print(f'{client.user} is now running!')
client.run(TOKEN)
@vocal basin :warning: Your 3.11 eval job has completed with return code 0.
[No output]
well if you have created another token it shouldn't matter
Even if it did I'd forget what it said
well this part doesn't have syntax issues seems like
What's above this section of code?
... unless there are some characters that got removed when pasting into discord
import discord
import responses
async def send_message(message, user_message, is_private):
try:
response = responses.handle_response(user_message)
await message.author.send(response) if is_private else await message.channel.send(response)
except Exception as e:
print(e)
def run_discord_bot():
TOKEN = ''
client = discord.Client()
@client_event
async def on_ready():
print(f'{client.user} is now running!')
client.run(TOKEN)
this is the whole thing but w/o the token
seems like no syntax error there
ima try and make a lil changes then run command
maybe copy code from the message, paste it into the file, and save
(if there are things that got reduced when pasting here)
TypeError: Client.init() missing 1 required keyword-only argument: 'intents'
i also got this error
step 1: don't use old tutorials
!intents
Intents are a feature of Discord that tells the gateway exactly which events to send your bot. Various features of discord.py rely on having particular intents enabled, further detailed in its documentation. Since discord.py v2.0.0, it has become mandatory for developers to explicitly define the values of these intents in their code.
There are standard and privileged intents. To use privileged intents like Presences, Server Members, and Message Content, you have to first enable them in the Discord Developer Portal. In there, go to the Bot page of your application, scroll down to the Privileged Gateway Intents section, and enable the privileged intents that you need. Standard intents can be used without any changes in the developer portal.
Afterwards in your code, you need to set the intents you want to connect with in the bot's constructor using the intents keyword argument, like this:
from discord import Intents
from discord.ext import commands
# Enable all standard intents and message content
# (prefix commands generally require message content)
intents = Intents.default()
intents.message_content = True
bot = commands.Bot(command_prefix="!", intents=intents)
For more info about using intents, see discord.py's related guide, and for general information about them, see the Discord developer documentation on intents.
step 2:
except Exception as e:
print(e)
it should probably be
except Exception:
traceback.print_exc()
for more complex event handling and bots specifically:
https://discordpy.readthedocs.io/en/stable/ext/commands/index.html
!d traceback.print_exc
traceback.print_exc(limit=None, file=None, chain=True)```
This is a shorthand for `print_exception(sys.exception(), limit, file, chain)`.
!e
try:
raise RuntimeError()
except Exception as e:
print(e)
@vocal basin :warning: Your 3.11 eval job has completed with return code 0.
[No output]
this being the reason
print(exception) prints arguments of the exception not the "exception itself"
alright thanks
!rule 5 there are reasons why this check exists
5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.
it probably works in tz-agnostic unix epoch time terms anyways
!e
import time
print(time.time())
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
1680709752.5155373
!e
print(1680709752.5155373-1680709734.830636)
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
17.684901237487793
yes, it doesn't depend on tz
The Association for Computing Machinery (ACM) is a US-based international learned society for computing. It was founded in 1947 and is the world's largest scientific and educational computing society. The ACM is a non-profit professional membership group, claiming nearly 110,000 student and professional members as of 2022. Its headquarters are i...
!server
!server
oh i can do it too
notice the member count change
Up to the use of external libraries, maybe.
So you're fluent enough in the basic syntax and other builtin stuff.
But then frameworks? Pff.
Who needs them?
You can pick those up as needed if you do.
give me voice
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
thanks
G2G learn about Samba on Linux. Cheers!
does anybody know about this
python and jyputer stuff
hi buddy
what are you up too
I was sleeping during the day so I am completing some work
this one
no I work as a dev
😵💫
I do not teach, simply work as a dev
oh
nice must be stresful working in cloud
since you can burn a lot of money if you mess up
well there is dev -> qa -> production so not much we can mess up
amateurs, we go alpha -> beta -> dev -> test -> perf -> qa -> stage -> preprod -> prod -> ext-prod
eh, most companies have bots running that prevent that kind of error
ok
hello
yes
oh
i didnt realize
you can hear
it
im sorry
so what are you up to
no i hav them they broke
and now i have shit ones that
have the same input and output it seams
no just the souwtering broke
i had an even worse set
before
but now im getting accual headphones
from hyperx
wanna see what i made
I made a keystroke plugin for my gui framework
The entire framework is written in c and uses directx
all plugins share the same window
no c++
sorry
typo
its on my github if you want to check it out
yes
but its nice to have
Here
I focused on the dev experiance
so you make dll projects
and you can draw text or rectangles
no its a framework for widgets
but yes what i showed you was the plugin
on my github
for my framework
i think is cool
the first app im proud off
yeah
but you can just change it
in the code is so simple
if you look at it
its like 10 lines
to change it
Hey @somber smelt!
It looks like you tried to attach file type(s) that we do not allow (.cpp). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a, .csv, .json.
Feel free to ask in #community-meta if you think this is a mistake.
#include "plugin.h"
int width, height;
const char* Plugin::getName() {
return "Keystrokes";
}
void Plugin::onLoad(int param_width, int param_height) {
width = param_width;
height = param_height;
}
void Plugin::onUpdate() {
// A
addText(1, (char*)"A", 27, 45, 0, 0, 0, 255);
if (GetAsyncKeyState(0x41)) {
addRect(1, 20, 40, 20, 20, 77, 93, 172, 255);
removeRect(0);
}
else {
addRect(0, 20, 40, 20, 20, 255, 255, 255, 255);
removeRect(1);
}
// S
addText(2, (char*)"S", 47, 45, 0, 0, 0, 255);
if (GetAsyncKeyState(0x53)) {
addRect(2, 40, 40, 20, 20, 77, 93, 172, 255);
removeRect(3);
}
else {
addRect(3, 40, 40, 20, 20, 255, 255, 255, 255);
removeRect(2);
}
// D
addText(3, (char*)"D", 67, 45, 0, 0, 0, 255);
if (GetAsyncKeyState(0x44)) {
addRect(4, 60, 40, 20, 20, 77, 93, 172, 255); // Highlighted triangle
removeRect(5);
}
else {
addRect(5, 60, 40, 20, 20, 255, 255, 255, 255); // White triangle
removeRect(4);
}
// W
addText(4, (char*)"W", 45, 24, 0, 0, 0, 255);
if (GetAsyncKeyState(0x57)) {
addRect(6, 40, 20, 20, 20, 77, 93, 172, 255); // Highlighted triangle
removeRect(7);
}
else {
addRect(7, 40, 20, 20, 20, 255, 255, 255, 255); // White triangle
removeRect(6);
}
// Space
addText(5, (char*)"Space", 35, 64, 0, 0, 0, 255);
if (GetAsyncKeyState(VK_SPACE)) {
addRect(8, 20, 61, 60, 20, 77, 93, 172, 255); // Highlighted triangle
removeRect(9);
}
else {
addRect(9, 20, 61, 60, 20, 255, 255, 255, 255); // White triangle
removeRect(8);
}
}
Here this is the code
for the keystrokes
Also i know i have to change the text function to take const chars
to prevent errors
no
ohh
you can do try catch like in python
and it will give you a description
hello
great
can you show a screenshot
py noob
also i dont care how you pronounce my name
banned from where
at least someone does
are you making this joke because of the "tiktok ban"
they are trying to do
did you see the document
yes
they dont want to ban ticktok they want to control what you can use and what not but litreliy using a vpn is legal to acess the same banned content according to the paper
anyways i want to add images to my gui framework
no in the paper it says that the local goverment of the request can determan what is banned and what is not
\yeah that is what i meant
if the vpn is in germany they decide what is banned content says in the paper
i swear everytime this voice call turns into a political discusion
copilot is more for object oriented stuff
i heard its bad at functional programming
i have to go
bye guys
hello
im back
yes
i am
just took a break
anything new
or like i missed
meanwhile i was gone
oh also what do you think abou discord adding native themes
hello
hello
@faint charm 👋
try using one of those color palette websites
I don't have permission to talk
there are requirements
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

57,426
317,667