#voice-chat-text-0
1 messages ยท Page 846 of 1
@hushed dragon plt.plot(varr, N(varr, *fit[0]), label=''.join([f"${n} = {v:.4f} \pm {e:.0E}$,{' ' if i % 3 != 2 else endl}" for (i, n, v, e) in zip(range(5), ("A", "\\mu", "\\sigma", "B", "\\epsilon"), fit[0], np.diag(fit[1])**.5)]))
def __init__():
# Code```
yay
!e
class Helplock:
def __init__(self):
self.name = "Hemlock"
self.help_tier = 10
def help_me(self):
print(f"You recieved tier {self.help_tier} help from {self.name}")
helper = Helplock()
helper.help_me()
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
You recieved tier 10 help from Hemlock
@rugged root were is the bot actually run?
How can you guarantee that the code on GitHub is the actual code being executed?
@hushed dragon the init is creating the instance variables for the object
@rugged root how about me
455
@uncut meteor
class User:
username: str
nickname: str
user_id: int
etc. etc.
[InternetShortcut]
URL=LINK
any reference material on how to use selenium for autofill procedures ?
!server
:/
That wasn't in reference to you, reese
Sorry
And I don't know of any off the top of my head
!src
hi lx
Hello
halflife LX
Good reason ๐
Night Griff ๐
I decided on having a policy of using punctuation everywhere, so that I don't have to um and er over whether to use it.
Which, tbh, is the kind of decision that I would spent far too much time on. ๐
!eval print(''.join(chr(int(x, 16)) for x in "53 6b 79 6c 65 72".split()))
@stuck furnace :white_check_mark: Your eval job has completed with return code 0.
Skyler
He posted it all throughout the server btw @stuck furnace
Erm, I don't think the voice-verification applies to us.
Could be wrong. ยฏ_(ใ)_/ยฏ
can someone help me?
Anyone know how to make wrappers for external exes on Windows with python
oh okay
@frigid panther can i get screenshare perms? ๐
!voice @heavy crag
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
what do you plan on streaming
python content ๐
Hi Rectilinear Unit

this is the hemlock vision
The Ford Transit, also known as the Ford T-Series in some markets, is a range of light commercial vehicles produced by Ford since 1965. Sold primarily as a cargo van, the Transit is also built as a passenger van (marketed as the Ford Tourneo since 1995), minibus, cutaway van chassis, and as a pickup truck. Over 8,000,000 Transit vans have been s...
e
@fiery badge You still wanting to stream Python stoof?
Torsus
because yes
party shuttle
This is a discussion forum powered by vBulletin. To find out about vBulletin, go to https://www.vbulletin.com/ .
#.......
with open("config.json", "r") as f:
data=json.load(f)
pref=data["settings"]["prefix"]["prefix"]
client=commands.Bot(
command_prefix=pref,
this is my attempt at making the prefix changeable
and it no worcc
{
"settings": {
"prefix": {
"prefix": "!"
}
}
}
@zealous wave
# prefix change command
@client.command()
@has_permissions(administrator=True)
async def prefix(ctx, e):
with open("config.json", "r") as f:
brej=json.load(f)
brej["settings"]["prefix"]["prefix"]=e
with open("config.json", "w") as f:
json.dump(brej, f)
await ctx.send(f"Prefix has been changed to {e}")
bot.command_prefix = '!'
# json
with open("config.json", "r") as f:
data=json.load(f)
pref=data["settings"]["prefix"]
# this took 3 hours to do
client=commands.Bot(
command_prefix=pref,
intents=bruh,
help_command=None
)
after the code above
# prefix change command
@client.command()
@has_permissions(administrator=True)
async def prefix(ctx, e):
client.command_prefix=e
with open("config.json", "r") as f:
brej=json.load(f)
brej["settings"]["prefix"]["prefix"]=e
with open("config.json", "w") as f:
json.dump(brej, f)
await ctx.send(f"Prefix has been changed to {e}")
@bot.command()
async def prefix_change(ctx, new_prefix=None):
"""
Allows administrators to change the prefix used by the bot to help prevent conflicts with other bots
:param ctx: The context of the command call. Used internally by the bot to route messages to the correct place
:param new_prefix: The desired new prefix to use for bot commands. Can only be a single character
:return: None
"""
if ctx.author.guild_permissions.administrator:
if new_prefix is None:
await ctx.send("Hey, looks like you forgot to add the prefix you wanted to change to.")
return
elif len(new_prefix) > 1:
await ctx.send("Your new prefix can only be a single character. Please try again.")
return
else:
bot.command_prefix = when_mentioned_or(new_prefix)
await status_update()
await ctx.send(f"Your new prefix has been set to ``{new_prefix}``")
return
else:
await ctx.send(f"{ctx.author.mention} Sorry, you don't have the proper permissions to do that.")
return
client=commands.Bot(
command_prefix=pref,
intents=bruh,
help_command=None
)
bot = Bot(
command_prefix='$',
case_insensitive=True
)
class Knowledge(Bot):
def __init__(self, *args, **kwargs):
# Creates event loop
self.loop = asyncio.get_event_loop()
# Creates database connection
self.database = Database(self.loop)
self.pool = self.database.pool
# Sets up PostgreSQL tables
self.init_sql()
# Creates graphite connection
self.graphite = statsd.StatsClient('graphite', 8125)
# Creates session for http requests
self.http_session = aiohttp.ClientSession(loop=self.loop)
super().__init__(*args, **kwargs, command_prefix=self.get_prefix, loop=self.loop)
# prefix change command
@client.command()
@has_permissions(administrator=True)
async def prefix(ctx, e):
client.command_prefix=e
with open("config.json", "r") as f:
brej=json.load(f)
brej["settings"]["prefix"]["prefix"]=e
with open("config.json", "w") as f:
json.dump(brej, f)
await ctx.send(f"Prefix has been changed to {e}")
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pydis.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
@rugged root I have a list of 1000 elements.
i want to make 250 lists from it with each list having 4 adjacent elements
So the first list has first 4 elements, the 2nd has next 4 and so on....
how do i do that?
?
@rugged root um?
ok
do tell
grouped_list = []
for i in range(0, len(my_list), 4):
grouped_list.append([*my_list[i:i+4]])
Or use more-itertools.grouper()
no wait um what is grouped_list?
no wait like my main list is 1,2,3,.....,1000
and i want sub_lists [1,2,3,4], [5,6,7,8], .......
oh
Grouper does same iirc
Probably, I'd have to look at it again
This is me just thinking about it off the top of my head
Much work, such email

what does the * do tho?
Does snekbox have it?
!e
Import more-itertools
Jason, can you write out a quick explanation for unpacking for me?
Also capital I
You fool
I could try, on phone, give me a second
Stupid autocorrect
!e
my_list = [1, 2, 3, 4, 5]
sliced = my_list[1:3]
print(sliced)
print(*sliced)
@rugged root :white_check_mark: Your eval job has completed with return code 0.
001 | [2, 3]
002 | 2 3
dammn, hemlock it worked
https://towardsdatascience.com/unpacking-operators-in-python-306ae44cd480 this a nice link, the first search I found on google
grouped_list = []
for i in range(0, len(my_list), 4):
grouped_list.append(my_list[i:i+4])
Remove that embed pls hemlock
That should work just as well
Grouper should be part of the itertools lib, dunno why it is in more, it is really useful
Same, it would be nice
Although this isn't that terrible to implement
The other itertools stuff is a bit more tedious
or in a list comprehension
grouped_list = [my_list[i:i+4] for i in range(0, len(my_list), 4)]
Yeah
Yeah, that's the better solution
i think grouper is part of the documentation but uses izip_something
oh shoot i just realized that the next should start from 2
as in,
list1 = [1,2,3,4]
list2 = [2,3,4,5]
......
@rugged root
Then just remove the step
ahha yea
Although..
more_itertools/recipes.py lines 291 to 297
if isinstance(iterable, int):
warnings.warn(
"grouper expects iterable as first parameter", DeprecationWarning
)
n, iterable = iterable, n
args = [iter(iterable)] * n
return zip_longest(fillvalue=fillvalue, *args)```
How do u remove embeds om mobile
....
spread operator, I guess
Scheduler and Cortana can schedule your meetings for you. Just add Cortana to an email conversation, and let Cortana do all the work.
whats the best way to handle a 20x20 grid with numbers?
lol my volume slider for accelerator does nothing
That was my answer about it
@plush willow
So if we take a list, we're unpacking each individual element from the list
So you're getting each separate number in this case
From the slice we did
ah
https://en-de.sennheiser.com/vocal-microphone-dynamic-cardioid-e-935 (i got it for way cheaper than this)
e 935 - Vocal Dynamic Microphone - Fully professional cardioid vocal microphone - Sennheiser Discover True Sound - Top-quality products and tailor made solutions - sennheiser.com
rebase intensifies
that's a rather vague statement
what do you mean by that?
I've always wondered why this sound echoes
13 of the most iconic seconds in cinema history.
HTML Marquee Tag - Marquee is one of the important tag introduced in HTML to support such scrollable texts and images within a web page. In this tutorial, you will be learning about the Marquee tag and its different attributes for developing a well-groomed static website.
<marquee>better visualized in firefox 800x600</marquee>
that picture is of a PC screen
D ok
seems like the 18th problem too
if you run it and its wrong, would you have to do all the 17 again? ๐
is that Turkish?
is this an exam?
!rule 8
8. Do not help with ongoing exams. When helping with homework, help people learn how to do the assignment without doing it for them.
:/
sorry ยฏ_(ใ)_/ยฏ
๐ญ
I'm not verified
how
why doesn't it verify if i leave the server for just a day cuz i was in 100 of them ffs
staph
remeet the requirements
weaow
i've been for 3 years and still had to go through the gating pretty recently
damn! :(
hmm, that seems faulty
i don't remember having the 3 days gate tho... it was more activity wise
yeah
from past 15-16 minutes ๐ฅฒ
It's not something with which I'm particularly familiar. For what purpose do you need it?
how do you type this? I tried to cp it, didn't work ๐ค
yuh got it
sorry, don't know much bout web scraping
What?
@whole bear I'm kindly asking you to not be rude to our users.
That's not how sarcasm works
I asked earlier what you wanted to use web scraping for. ๐
So typically, web scraping is about pulling information from a site, typically the HTML from a page, and parsing out information you want
Hello
Yo
How are you??
"But her chicken!"
@amber raptor OH, okay, so I wonder if you're experienced this. Whenever I get an email in Outlook, the notification sound comes through my speakers and my headset. And I have no idea why
@whole bear What site are you trying to scrape? There might be an easier way
"News just in: Hillary Clinton buys the farm."
"She's dead?"
"No. She literally bought a farm."
Here is Indian butter chicken...
It uses Windows 10 notifications settings so look around there.
Roger
Mind that duckling! Motorists in Minnesota break and swerve to avoid family of ducks crossing busy interstate highway
Deliberately running over an animal may go against most drivers' instincts but that is exactly what Minnesota's highway patrol is advising motorists to do after a family of ducklings almost caused a pile-up on one of the state'...
this video stressed me so much
honestly still amazed all the ducks survived
@whole bear So there doesn't seem to be an easy to way to access the information via web scraping due to how it gathers and loads the information
:guitar: Python API which scrapes ultimate-guitar.com for guitar chords - joncardasis/ultimate-api
@frail aurora
true
tf
Since you mentioned it's like mostly JS, you might be best served by using a browser automation tool like Selenium
scottish word for good is braw
If you need it to be quick, you can watch the network and/or reverse-engineer the JS and figure out how it pulls the information from the server end.
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Grey Merch: https://cgpgrey.com/merch
Grey on Twitter: https://twitter.com/cgpgrey
Thank you to my patrons:
Oliver Kosut, Richard Sheridan, Carrick Williams, Mike Peacock, Ashley Carmichael, Ire Aderinokun, Evan Teng, Jamie Frost, Josh Greenberg, Ryan Brown, John Kelly, Jim Reardon, Matt Simmons, Kristen Kiomall, Jan-Frederik Schulte, Matthe...
@flat sentinel you're getting the server spirit
cgp gery
here you are @frail aurora
Scraping video would require basically implementing a video streaming client that understands the codec used and understanding how the video requested from the server.
YouTube-dl does this with ffmpeg: https://github.com/ytdl-org/youtube-dl
Command-line program to download videos from YouTube.com and other video sites - ytdl-org/youtube-dl
E
he shouldn't be
!ytdl
Per Python Discord's Rule 5, we are unable to assist with questions related to youtube-dl, pytube, or other YouTube video downloaders as their usage violates YouTube's Terms of Service.
For reference, this usage is covered by the following clauses in YouTube's TOS, as of 2021-03-17:
The following restrictions apply to your use of the Service. You are not allowed to:
1. access, reproduce, download, distribute, transmit, broadcast, display, sell, license, alter, modify or otherwise use any part of the Service or any Content except: (a) as specifically permitted by the Service; (b) with prior written permission from YouTube and, if applicable, the respective rights holders; or (c) as permitted by applicable law;
3. access the Service using any automated means (such as robots, botnets or scrapers) except: (a) in the case of public search engines, in accordance with YouTubeโs robots.txt file; (b) with YouTubeโs prior written permission; or (c) as permitted by applicable law;
9. use the Service to view or listen to Content other than for personal, non-commercial use (for example, you may not publicly screen videos or stream music from the Service)
when the Hemlock is sus
ridin' in his van
can you speak EnGliSh
I prefer to speak Malbolge
woops ยฏ_(ใ)_/ยฏ
did you actually read what eivl posted about ytdl
You need to understand how to ask the server for what you want ๐
@vestal saddle same for you
the thing mentions accessing youtube in general via automated means
accessing youtube in general
Generally speaking, of webscraping, not ytdl or youtube
I think fam just used it as an example of a complex dynamic content
Understandable
You can almost always walk through how your browser works in order to accomplish a particular task. Your browser is just a kind of web client; you can make Python code do more or less the same thing... it just may not be easy ๐
OTOH, that's why tools like selenium are so useful because it lets you control a browser that does the heavy-lifting of js execution
thanks
LOVE that site
yeah, its something ๐
if you're visiting it for the very first time
@rugged root sup hemlock
Hey how's it going
@rugged root all good
Oooooooooo
Okay, so coffee and Dr. Pepper go really well together
Like
Really really well
I think Dr. Pepper is prune based mostly
look at this
mhm
lmao
HUH
A limited amount of users has it so far
ik
Like my friend has it, while I don't
he prob has canary
No, it's not about that
@rugged root who is this person with cute voice
I use canary and he doesn't
That's.... kind of creepy
wtf
It'll be available for everyone when it gets fully released
@rugged root nope
You could look at the 'whats new' page for 3.10 https://docs.python.org/3.10/whatsnew/3.10.html
@viral aspen what buddy
That is kinda weird but I can't blame you lol
@fiery juniper wow
Lol๐ ๐

Programming book reviews, programming tutorials,programming news, C#, Ruby, Python,C, C++, PHP, Visual Basic, Computer book reviews, computer history, programming history, joomla, theory, spreadsheets and more.
anybody uses pycharm?
Ye, I like PyCharm
what to do when pycharm is being stupid when guessing the type
Add typehints
a:torch.Tensor = torch.rand_like(x) < 0.2 ```
I put hints like that, and then complaint that it is getting boolean instead of tensor
I'm not super familiar with torch, but I would expect torch.rand_like(x) < 0.2 to result in a boolean 
it is a tensor of boolean
Like a = 0 < 1 results in a bool
An open-air mine under sea level, flooded by the breach, erosion, and collapse of the barrier separating the mine from the ocean. It happened in the Pantai Remis mine, Malaysia, in 1993.
!e
import numpy as np
print(np.random.rand(2,3))
@cerulean ridge :warning: Your eval job has completed with return code 0.
[No output]
If torch doesn't provide typehints correctly, you could provide your own type stub for torch.rand_like and torch.Tensor (specifially the __lt__ method)
But usually if you type hint something, pycharm will roll with it
wait... why there are no outputs?
!e
import dis
def foo():
for i in range(10):
...
return
dis.dis(foo)
@vestal saddle :white_check_mark: Your eval job has completed with return code 0.
001 | 3 0 LOAD_GLOBAL 0 (range)
002 | 2 LOAD_CONST 1 (10)
003 | 4 CALL_FUNCTION 1
004 | 6 GET_ITER
005 | >> 8 FOR_ITER 4 (to 14)
006 | 10 STORE_FAST 0 (i)
007 |
008 | 4 12 JUMP_ABSOLUTE 8
009 |
010 | 5 >> 14 LOAD_CONST 0 (None)
011 | 16 RETURN_VALUE
That's instructions for the Python virtual machine
!e
import numpy as np
print(np.random.rand(2,3))
@wind cobalt :white_check_mark: Your eval job has completed with return code 0.
001 | [[0.29213687 0.0322305 0.68525256]
002 | [0.06291018 0.61076019 0.1386 ]]
!e
import numpy as np
print(np.random.rand(2,3))
@cerulean ridge :white_check_mark: Your eval job has completed with return code 0.
001 | [[0.54934526 0.1635938 0.92242707]
002 | [0.97457205 0.20562106 0.53435332]]
!e
import numpy as np
print(np.random.rand(2,3) > .5 )
@cerulean ridge :white_check_mark: Your eval job has completed with return code 0.
001 | [[False True True]
002 | [False True False]]
!source
so the expected output is an array of boolean, not boolean
it is doing it for each element of the array
yes, my question was
pycharm made a bad guess on the type, and is screaming about it, type hinting didn't work, precisely because it is expecting boolean instead of an array
You can try the numpy typing plugin: https://numpy.org/doc/stable/reference/typing.html
The domain name jobs is a sponsored top-level domain (sTLD) in the Domain Name System of the Internet. As indicated by its name, the domain is restricted to employment-related sites.
The domain was approved by ICANN on April 8, 2005 as part of the second group of new TLD applications submitted in 2004. It was installed in the DNS root in Septemb...
thanks!
I'll find the equivalent ones for torch
!thanks
later guys ๐
brb
so hearing most everything is written with a confusing, company specific wrapper
!voice @stray harness If you're wondering why you can't talk, this should tell you what you need to know
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
oof my wifi
o/
\o
o7
/o
Beautiful Soup is not s-crapy
what is
to take or not to take
that is the question
how do you get the voice features????
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
but the criteria???
did you read the tag?
i am unable to pass that
"psyanky eggs"
ya 3days 50 messages
check out #voice-verification
Welcome to the Zen Community of OregonJune Sesshin:Loving-kindness, Compassion, and Zenwith Zen Teachers Laura Jomon Martin and Patrick Bansho GreenJune 14 โ 20, 2021More InformationSummer Residency Program 2021Spend the summer at Great Vow!July 8 โ August 22, 2021More Information Previous Next UPDATE: We are excited to begin offering in-person ...
Also related to the warrior monk conversation
I do not own the rights to this and should it be asked to be removed, I will do so.
Last two tracks on the Boot To The Head album from 1987. The Dr. Demento 20th Anniversary CD had these two tracks as one and that was the source. As far as I can tell, it has one edit in it and that is when Ed Gruberman says "All this fag talk is starting to pi...
seems like indian dish
wow
how to start learning Arduino do i need to learn c++ for that as i'm learning python
Thank you!!
The International Four Day Marches Nijmegen (Dutch: Internationale Vierdaagse Afstandsmarsen Nijmegen) is the largest multiple day marching event in the world. It is organised every year in Nijmegen, Netherlands in mid-July as a means of promoting sport and exercise. Participants walk 30, 40 or 50 kilometres daily depending on their age and gend...
it's highly spiced sauce for with the couscous
lots of sambal
woo spicyyy๐ฅ
mhm
bedsheet and utensil do look like indian
so what were the after effects after eating hehe
fire burst forth from my mouth
you mean tablecloth
hahaha
yepp
๐ฅ๐ฅ๐ฅ
ahhh rip
oh well
you can get my email address just by like looking at my links anyway
k fair enough
Hey, how's everyone doing?
hello
good
what about u?
oh RIP i cant vc
i havent unlocked yet
I'm good I'm good
feeling slightly sleepy
but my eyes are still stretching enough
lol
Tom Lehrer on public domain (2020):
https://www.amazon.com/Tom-Lehrer-Collection/dp/B0039TD73G
Use the above link and get the uninterrupted Lehrer TV-performance and The Tom Lehrer Collection from Amazon.com.
Want to hear Lehrer's INTRO? A HQ version was posted on the 40th anniversary of Apollo 11. Click th...
The Windscale fire of 10 October 1957 was the worst nuclear accident in the United Kingdom's history, and one of the worst in the world, ranked in severity at level 5 out of a possible 7 on the International Nuclear Event Scale. The fire took place in Unit 1 of the two-pile Windscale facility on the northwest coast of England in Cumberland (now ...
sus
Thomas Andrew Lehrer (; born April 9, 1928) is a retired American musician, singer-songwriter, satirist, and mathematician, having lectured on mathematics and musical theater. He is best known for the pithy and humorous songs that he recorded in the 1950s and 1960s. His songs often parodied popular musical forms, though he usually created origin...
The tz database is a collaborative compilation of information about the world's time zones, primarily intended for use with computer programs and operating systems. Paul Eggert is its current editor and maintainer, with the organizational backing of ICANN. The tz database is also known as tzdata, the zoneinfo database or IANA time zone database,...
i need help
@torn heartwhats ur issue
question
I'm on Voice Chat 0 for a question in #help-cake btw, in case i need to mention it...
Please tell your issue
gone
thanks ๐ user id:747266751829639189
anyone in #751591688538947646 know how to make a wrapper for an external exe in python?
already noted, thanks ๐
ok
OK so apparently I have to send 50 messages before I can use voice chat lol
What's up guys? How's everyone doing? ๐
I'm doing fine. I've just installed Ubuntu on my PC.
Nice, nice
I can finally do some real serious s||hit|| with Python.
Almost a year
Finally, Mr. Grimlock and his boys have lifted my 1-week ban.
I got banned last Thursday because I "accidently" annoyed them.
Yeah I know. But I cannot get mad at Mr. Grimlock for that.
Well as long as you're back now lol
Mr. Grimlock (@rugged root) is a cool guy. If only he had a chance to read this message of mine.
lol
Yeah I'm sure being an admin of this community can get crazy
There are like 30K+ people online
Biggest discord I've been a part of
I've seen bigger communities.
Games
anyone know a free website hosting service? i need to make a website
there is heroku, I use it for https://griff-site.herokuapp.com/
Source code: https://github.com/GDWR/GriffSite
Quick and easy
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@shell yarrow @broken aspen
hi 
when filip independently enters python vc
ah yes
then i put it in the discord bot
and then i can cheat on tests for school
lmao
and i use Json as a storage device lol
In this series, I will be making an emulated CPU in Python.
This CPU will be a 32-bit x86 like system.
Chapters:
0:00 Intro and Setup
0:39 Virtual Memory
1:25 CPU Init
6:44 Flags Register
11:25 LoadMemory Method
13:30 Execute Method
16:08 NOP and HLT Instructions
16:37 Testing
17:56 Closing Comments
intresting
ah yes
i dont understand anything what he is saying
Hello, Mr. Grimlock
So, I have this program:
https://paste.pythondiscord.com/jibeqewayi.rb
This is my virtual screen library. It does not depend on libraries like curses, so most of the screen routines is achieved through ANSI colour codes and printing tricks.
Currently, the rectangle drawing function (drawRect(self,pixel:dict,**coor)) has a problem:
The
drawRect()function draws a rectangle on the virtual screen.
But before it can do that, it needs to check the coordinates. Like this:Normal condition:
1"""""| x1 < x2 ; y1 < y2 | | -> OK to draw! |_____2Special condition
|"""""2 x1 < x2 ; y1 > y2 | | -> y1 and y2 are inverted 1_____| Solution: swap y1 and y2However...
2"""""| x1 > x2 ; y1 > y2 | | -> Both coordinates are inverted |_____1 (!!) The function does not draw this one, yet the interpreter does not rage quit and raise any error O_O
The code:
def drawRect(self,pixel:dict,**coor): ... elif coor["x1"]>coor["x2"] and coor["y1"]>coor["y2"]: for y in range(coor["y1"]-coor["y2"]+1): self.drawLine("h",coor["x1"]-coor["x2"]+1,char=pixel["char"],color=pixel["color"],attrflag=pixel["attrflag"],coor=(coor["x2"],coor["y2"]+y)) ...from line 89 to 101
Can anybody help me with this?
What's your question
There are available help channels.
https://paste.pythondiscord.com/iyarikegam.py - server.py
https://paste.pythondiscord.com/aqekuwitot.rb - client.py
Hi, does anybody know how can I make an ADMIN to the server that can disconnect clients by typing /kick name and that there will be only one admin with an specific name and IP (his messages won't be shown in the chat.)
Does anybody know how can I do that?
Adding the code here (server and client). (:
nobody answers me there
so, can somebody help me?
Mr. Grimlock Hemlock, I have this program:
https://paste.pythondiscord.com/jibeqewayi.rb
This is my virtual screen library. It does not depend on libraries like curses, so most of the screen routines is achieved through ANSI colour codes and printing tricks.
Currently, the rectangle drawing function (drawRect(self,pixel:dict,**coor)) has a problem:
The
drawRect()function draws a rectangle on the virtual screen.
But before it can do that, it needs to check the coordinates. Like this:Normal condition:
1"""""| x1 < x2 ; y1 < y2 | | -> OK to draw! |_____2Special condition
|"""""2 x1 < x2 ; y1 > y2 | | -> y1 and y2 are inverted 1_____| Solution: swap y1 and y2However...
2"""""| x1 > x2 ; y1 > y2 | | -> Both coordinates are inverted |_____1 (!!) The function does not draw this one, yet the interpreter does not rage quit and raise any error O_O
https://paste.pythondiscord.com/iyarikegam.py - server.py
https://paste.pythondiscord.com/aqekuwitot.rb - client.py
Hi, does anybody know how can I make an ADMIN to the server that can disconnect clients by typing /kick name and that there will be only one admin with an specific name and IP (his messages won't be shown in the chat.)
Does anybody know how can I do that?
Adding the code here (server and client). (:
It'll honestly be a lot easier if you guys use the help system. See #โ๏ฝhow-to-get-help for more details
I've just done that on #help-lollipop. Guess what? The channel closes before somebody can answer.
happens to me too all the time
Anyway...
The code:
def drawRect(self,pixel:dict,**coor): ... elif coor["x1"]>coor["x2"] and coor["y1"]>coor["y2"]: for y in range(coor["y1"]-coor["y2"]+1): self.drawLine("h",coor["x1"]-coor["x2"]+1,char=pixel["char"],color=pixel["color"],attrflag=pixel["attrflag"],coor=(coor["x2"],coor["y2"]+y)) ...from line 89 to 101
Can anybody help me with this?
Hello
Sometimes that just happens. I don't think I'll have time to offer much help, as I'm still working on getting this mail thing going smoothly
https://paste.pythondiscord.com/iyarikegam.py - server.py
https://paste.pythondiscord.com/aqekuwitot.rb - client.py
Hi, does anybody know how can I make an ADMIN to the server that can disconnect clients by typing /kick name and that there will be only one admin with an specific name and IP (his messages won't be shown in the chat.)
Does anybody know how can I do that?
Adding the code here (server and client). (:
plssss help meeee
I am trying for 2 weeks!
yeah but do you know how can I do that?
Listen, I am trying to make an admin to the server that he could write "/kick name" and the person the name is his will be kicked out and his chat will be closed
def HandleClient(client):
while True:
try:
message = client.recv(1024)
name, msg = (message.decode(FORMAT)).split(":", 1)
if msg.startswith(" /admin"):
prefix, password = msg.split("n", 1)
password = password.strip()
if password == "5270":
admin = name
pass
else:
print(f"[Someone in the chat used the admin command, but entered the wrong password. he entered {password}]")
pass
elif msg.startswith(" /kick") and admin == (nicknames[clients.index(client)]):
command, target = msg.split("ck", 1)
target = target.strip()
place = nicknames.index(target)
nicknames.remove(target)
temp = clients[place]
clients.remove(clients[place])
temp.close()
broadcast(f'{target} has been kicked by the admin {admin}.\n'.encode(FORMAT))
print(f"{target} has been kicked by {admin}.")
pass
else:
broadcast(message)
except:
index = clients.index(client)
nickname = nicknames[index]
clients.remove(client)
nicknames.remove(nickname)
client.close()
break
Its not working ):
hows everyone doing
Amazing!! wbu??
Please help meeeee
but nobody answers me
but aren't you like the master of python?

@wooden moon when you started learning ML?? you asked ques right!?
How are you liking it?
It's good.
Better than Windows.
With Ubuntu, I can finally create this to you guys.
nice i also installed ubuntu it was better than windows but i lost all my files images forgot to backup them
hehe
1 year ago
I have started to learn the Algorithms
But now I had a mini project
Regarding linear regression.
I had few doubts regarding that
Bye for now, folks. I'm claiming a help channel.
@wooden moon I was wrong, Brython is a lot cleaner than I remember
Ok no problem
Mr. Grimlock Hemlock, I think nobody has answered me on #help-orange.
The help channel is supposed to work.
I don't know what to tell you
wdym by it's supposed to work?
Other help channels have answers instantly.
Maybe nobody wants to help me.
Make sure you ask a good question with detail.
Not after the Thursday incident I caused on last Thursday.
You people must have thought I'm a black sheep of Python community or something.
No?
Well... I did.
Take a look.
You guys do not need to worry. After all, if nobody helps me, I will not blame you. Might as well... fix the code myself.
@rugged root I understand.
Hello everyone
Not at home rn
So canโt talk
But I will listen
Thanks ๐
Sorry got a call
@whole bear Danmark is a halvรถ
WHATTRR
WHAT IS THIS
holi festival
@whole bear I am dumb but this is on another level
@dense ibex What type of birds are they? Jake: Birds
^^
It's the python itself
That I've made on my own? Because the biggest project I've worked on and done quite a bit for are the repos here. Like for @wise cargo
Nope, never been my strong suit
For the record I have never kicked a Goose lol
Yeah ik itโs a part of the joke
Iโm going to go
See you guys
A short clip to show the "mosquito sound" which only youths can hear!
Please note, I made this video when I was around 10 years old and therefore I would like to apologise for any mistakes in my spelling and grammar.
He is an admin yes
tons
No they don't get paid
!vban 152323919074951168 Playing inappropriate sounds through your mic is unacceptable. You will not receive this privileges back.
:incoming_envelope: :ok_hand: applied voice ban to @whole bear permanently.
what lol
@whole bear I'm Administrative Support for an accounting firm
I think they meant for the server lol
@verbal hemlock https://www.youtube.com/channel/UCVYamHliCI9rw1tHR1xbkfw
australian, he is the official voice of this server ๐
I am.
yet
the first time I heard him
I was confused btw aus and british too ๐
its because he speaks very properly
australian is like a very specific british accent
They are both perfectly fine
You can install bash on Windows
look for WSL
I think saying windows sucks is a bit to far though
It's not a work around. It's additional functionality and resources (WSL I mean)
you said it sucks though?
@hasty fulcrum Worth it in what way?
like in real world use
is it useable?
or workable?
I mean... it really depends on what you're doing. Anything in theory could be worth it. But I would say yeah, Kivy is one of the better Python GUI frameworks
and also what should i do that can get me work
?
#career-advice would be a better place to ask about that.
is there any limitations to running linux on mac?
https://paste.pythondiscord.com/iyarikegam.py - server.py
https://paste.pythondiscord.com/aqekuwitot.rb - client.py
I created a chat of an unlimited number of people using threads and sockets.
In server.py I created 2 lists the first one contains the names the customers chose for themselves and the second one contains the customer details like port and the rest.
Later, I created several functions, the first of which is called broadcast receives a message and sends it in a chat with the name of the person who sent it.
The second one named CaesarEncrypt encrypts the message (it is unrelated).
The third named HandleClient requests a message from the client and sends it to broadcast, if the message is not received it deletes the client's details from the 2 lists and closes the client.
The fourth named recive receives the client for the first time and adds its details to the lists and of course prints a message that a new client has connected to the server.
In client.py I did all the construction of the chat using Tkinter and it works fine as usual.
Now what I want to do is create a chat manager that will work like everyone else on the server but when he enters the command /admin 5270 for example then it will buy him manager capabilities and he will be able to take people out when he writes /kick and the client name next and it will close that chat And will be registered in the chat "The client (name) has been removed from the server".
hey @faint ermine do you remember me haha
ay
was i leaking sound
yes
forgot to mute sorry
lol you're fine
Does anyone know why pyautogui locate on screen doesnt work on vps?
it misses the icon by 2cm diagonally
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pydis.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
'ello
from PIL import Image
import pyautogui
time.sleep(3)
img = Image.open('test.png')
open = pyautogui.locateOnScreen(img, grayscale = True,confidence=0.8)
print('ss')
open = pyautogui.center(open)
pyautogui.click(open)```
@wary meadow
2 votes and 4 comments so far on Reddit
@weary zephyr yo ๐
hello there
lol
just don't ๐ ๐ช , C#'s server is the 2nd best server
beautiful
Consumer Anti-Rust laws
Carlllllllllll
rust suc**, also java
!stream 807003116012699711
@opaque iron
โ @opaque iron can now stream.
u don't even know enough java to love it ๐
never before have i been so offended by a statement I 100% agree with
direct X Diagnoses
where have you guys learn to programm i learned from codecadmey how about you guys
it displays internal hardware info
can I speak?
not yet
when?
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
no you go check-out #voice-verification channel
for more info
i see you can resize the pyauto gui . with
pyautogui.size(1920,1080)
๐ later guys
https://paste.pythondiscord.com/iyarikegam.py - server.py
https://paste.pythondiscord.com/aqekuwitot.rb - client.py
I created a chat of an unlimited number of people using threads and sockets.
In server.py I created 2 lists the first one contains the names the customers chose for themselves and the second one contains the customer details like port and the rest.
Later, I created several functions, the first of which is called broadcast receives a message and sends it in a chat with the name of the person who sent it.
The second one named CaesarEncrypt encrypts the message (it is unrelated).
The third named HandleClient requests a message from the client and sends it to broadcast, if the message is not received it deletes the client's details from the 2 lists and closes the client.
The fourth named recive receives the client for the first time and adds its details to the lists and of course prints a message that a new client has connected to the server.
In client.py I did all the construction of the chat using Tkinter and it works fine as usual.
Now what I want to do is create a chat manager that will work like everyone else on the server but when he enters the command /admin 5270 for example then it will buy him manager capabilities and he will be able to take people out when he writes /kick and the client name next and it will close that chat And will be registered in the chat "The client (name) has been removed from the server".
!stream 593928742477234185
@wary meadow
โ @wary meadow can now stream.
@amber raptor
https://paste.pythondiscord.com/elodurohup.pl
1111 1111 . 1100 0000 . 1000 0000 . 0000 0000
was included, verify that the path is correct and try again.
At line:1 char:1```
guys can u please me out, why weird error ?
i have python in my pc
but
py -m pip install
thank u so much โค๏ธ
Hey would u guys recomm courses on django?
i have only done the basics rn
yep
the polls one
oh
vpn may work
๐
something protect ur pc
from virus
it is like a wall to ur pc
protecting from harmful stuff in network
it only allows which is safe and verified
in coding we don't use that much but like when we run some unknown apps it will ask for permissions
apps runs on ports
example when u have a server locally
u need to set a port
port helps the apps in one pc to interact with other pc which is on different network
if u want to understand it in depth start with OSI MODEL
!voice @crude stirrup
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
if don't need any port until if u want to make ur pc as server for ur web app
by default apps on ur pc is set by operating system
u don't need to do anything
go and study
haha
which topic
do u have
^
easy
(-b + or - sqrt b^2 -4ac)/2a
lol
it is formula
Hi
hai
!voice @heady pebble
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@cyan quartz if i'm following correctly the first part of your problem was you need to get a C++ into Python right?
typedef struct {
uint32_t depth;
uint32_t width;
int64_t elements_added;
double confidence;
double error_rate;
int32_t num_hash_functions;
int32_t* hash_seeds;
int32_t* hash_table;
} CountMinSketch, count_min_sketch;```
!stream 689087720018280478
@glad sandal
โ @glad sandal can now stream.
can someone help with this broken code
class Die():
def __init__(self, sides=6):
self.sides = sides
def roll_die(self):
return randint(1, self.sides)
Die6 = Die()
results = []
for roll_num in range(10):
result = Die.roll_die()
results.append(result)
print('results for 6 sides die')
print(results)
Die10 = Die(sides=10)
results = []
for roll_num in range(10):
result = Die10.roll_die()
results.append(result)
print('\nresults for 10 sides die')
print(results)
Die20 = Die(sides=20)
results = []
for roll_num in range(10):
result = Die20.roll_die()
results.append(result)
print('\nresults for 20 sides die')
print(results)```
What's going wrong with it?
result = Die.roll_die()
TypeError: roll_die() missing 1 required positional argument: 'self'
that's what it keeps telling me
The Python Discord FAQ.
change:
Die6 = Die()
results = []
for roll_num in range(10):
result = Die.roll_die()
results.append(result)
print('results for 6 sides die')```
to
die6 = Die()
results = []
for roll_num in range(10):
result = die6.roll_die()
results.append(result)
print('results for 6 sides die')```
@amber raptor
class Die():
def __init__(self):
@staticmethod
def roll_die(self, sides=6):
return randint(1, sides)
print(Die.roll_die(6))```
def roll_die(sides=6):
return randint(1, sides)```
@vivid palm o/
import sys
import time
text = "uh hi meow i love cats heuehehehehehehehdhfhdhfgdfjhdfjdfjdfjdfhdfjidjffj meow i love chemestry and math hehehehheheeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
#Animation part
for char in text:
sys.stdout.write(char) #Writes every char(charter), write text
sys.stdout.flush() #flushes memory
time.sleep(0.1) #Animation Delay
bot#1629
@tiny socket We need some Node knowledge here
@tiny socket Node is a language duh
Do you wanna explain Node to @glad sandal
No||de|| he does||n't||
hullo~
javascript is my favourite runtime
hullo
whaaaaaaat
@rugged root whaaaaaaaaaaaaaaat
helpdesk?
OH GOD
THE FUCKING
GOD DAMN
45 MINUTES JUST TO GET HUNG UP ON
AND THEN ANOTHER 90 MINUTES JUST TO LOG INTO A COMPUTER
at least it didn't upset you
^
the dream
I COULDN'T ACCESS ANY COMPUTER!!!!
that is a legit photo of @hollow haven
I was just ... sitting. With my phone that would get intermittent connection.
we love the coding language node
actual picture of me
i knew it
Based on that comment I can only assume you're male
๐งน @rugged root
I am living a cursed half existance:
- I am connected to the world's shittiest wifi (3 hours for 2 GB)
- It's a machine that has 4 1080s
Screenshot (Jun 10, 2021 14:51:48)
from random import Random, randrange
class BetterList:
def __init__(*args, **kwargs) -> None:
super().__init__(*args, **kwargs)
self.seed = randrange(0,999999)
self.random = Random(seed=self.seed)
def __getitem__(self, val_or_slice):
if isinstance(val_or_slice, int):
return super().__getitem__(val_or_slice + self.random.randrange(0,len(self)))
return super().__getitem__(val_or_slice)
@rugged root here's some beautiful code for you :P
machine learning stuff
oh then that makes sense
it's the only reason I'm even on station today
@rugged root sim-pee for sympy
scip-pee for scipy
@rugged root hem! hem! hem! do you want to be a host for a thing?
@uncut meteor @dense ibex can you tell hemlock to look here?
fuck you both
June 18th, see pins in #admins
should've been more specific ๐
okie doke~ no worries then!
Hmmmm could you be co-host? So if you need to step away I/someone else can take over?
lmaooooooooooooo
lol
labor
l||ights||aber
colour
color
@tiny socket we have like a regular teapot/kettle, but not an electric one
cause who the fuck needs an entire appliance to only boil water?
"We have an entire appliance. It does one thing: heat water"
kettle
"We have an entire appliance. It does one thing: heat water"
teapot
At least you can toast different things!!!!
just use ur kitchen bruh
What else are you going to heat in a kettle besides water?
Like who the fuck is going to heat up soda
nothing because it will leave residue and then be shit
Do you have a toaster
It heats more than a specific type of white bread!
DOWN WITH UNITASKERS
a toaster provides even air heating which is different than a frying pan
a pot of boiling water is the same as the kettle
I have a gas stove!!
"oh no this will take 7 minutes instead of 90 seconds"
"Oh no, my toast won't be evenly toasted!"
It's a fundamentally different type of heating in a toaster vs on a frying pan
I honestly thought kutiekatj was female
fml
kettle vs crok pot
wot
@dense ibex you might want to wait until you actually have a son before you make statements to that respect
excuse me?
ohh oh oh
everyone
bahahaha, I change random words so even if you think a page is good ... >:3c it's not
blasphemy

FUCK OFF HEMLOCK
!warn @hollow haven Get outta here with that sacrilege, I woulda muted you if it wasn't for you being in vc
35780
174621




