#voice-chat-text-0
1 messages · Page 1027 of 1
xD
!d heapq
Source code: Lib/heapq.py
This module provides an implementation of the heap queue algorithm, also known as the priority queue algorithm.
Heaps are binary trees for which every parent node has a value less than or equal to any of its children. This implementation uses arrays for which heap[k] <= heap[2*k+1] and heap[k] <= heap[2*k+2] for all k, counting elements from zero. For the sake of comparison, non-existing elements are considered to be infinite. The interesting property of a heap is that its smallest element is always the root, heap[0].
!d queue.PriorityQueue
class queue.PriorityQueue(maxsize=0)```
Constructor for a priority queue. *maxsize* is an integer that sets the upperbound limit on the number of items that can be placed in the queue. Insertion will block once this size has been reached, until queue items are consumed. If *maxsize* is less than or equal to zero, the queue size is infinite.
The lowest valued entries are retrieved first (the lowest valued entry is the one returned by `sorted(list(entries))[0]`). A typical pattern for entries is a tuple in the form: `(priority_number, data)`.
If the *data* elements are not comparable, the data can be wrapped in a class that ignores the data item and only compares the priority number:
tig?
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
mine audio is suppressed
i didn't understood please help
#voice-verification look at this channel
it shows the criteria to get voice verified and you can talk after that
i did but i can't get my head around of 1st instruction
i need to send 50 message at any channel
?
guys please help with this code
https://pythontutor.com/visualize.html#code=import random class RN()%3A def __init__(self,range,randomU)%3A self.rangein%3Drange self.randomin%3DrandomU def randomNumber(self)%3A random_number %3D random.randint(1, self.rangein) while self.randomin!%3Drandom_number%3A random_number %3D random.randint(1, self.rangein) if random_number>self.randomin%3A print("my guessed number is too high") elif random_number<self.randomin%3A print("guessed number is too low") print(f"congrats to myself,I won user's guessed number-> {self.randomin} and mine was matched to {random_number} ") if __name__%3D%3D'__main__'%3A%0A%20%20%20%20range%3Dint%28input%28%22enter%20a%20end%20range%20number%22%29%29%0A%20%20%20%20randomU%3Dint%28input%28%22enter%20a%20random%20number%20below%20range%20number%22%29%29%0A%20%20%20%20a%3DRN%28range,randomU%29%0A&cumulative=false&curInstr=0&heapPrimitives=nevernest&mode=display&origin=opt-frontend.js&py=3&rawInputLstJSON=%5B%5D&textReferences=false
i was actually trying to get the concept
so came here in hope to get explanation
i am trying to understand why init function expect me to return value
guys what am i doing wrong?
in rajasthan it is very hot
@thin finch please help
@thin finch yeah it is giving error
A class' __init__ should always return None. For it to do anything different is a fatal error that Python will tell you off for doing.
ohh ok
got it
If your assessment software is telling you your __init__ is wrong because it's returning None, then the software is wrong.
But it may just be pointing it out as a potential problem.
A method returning None is often appropriate.
Often you will want to return some other object.
!e ```py
class MyClass:
def init(self):
return 7
MyClass()```
@somber heath :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 5, in <module>
003 | TypeError: __init__() should return None, not 'int'
!e
import collections
print(collections.Counter(['a', 'b', 'c', 'a', 'b', 'b']))
@thin finch :white_check_mark: Your eval job has completed with return code 0.
Counter({'b': 3, 'a': 2, 'c': 1})
!e
from collections import Counter
arr = [1, 2, 3, 1, 2, 1, 2, 1, 1, 1, 1]
print(arr.count(1)) # O(n) count of 1 thing
print(Counter(arr)) # O(n) for all counts
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
001 | 7
002 | Counter({1: 7, 2: 3, 3: 1})
!e
print("")
@lunar mulch :warning: Your eval job has completed with return code 0.
[No output]
!e
lst = ['a', 'b', 'c', 'a', 'b', 'b']
def counter(lst):
count = dict()
for i in lst:
try:
count[i] += 1
except:
count[i] = 1
return count
print(counter(lst))
@thin finch :white_check_mark: Your eval job has completed with return code 0.
{'a': 2, 'b': 3, 'c': 1}
!timeit
lst = ['a', 'b', 'c', 'a', 'b', 'b']
def counter(lst):
count = dict()
for i in lst:
try:
count[i] += 1
except KeyError:
count[i] = 1
return count
print(counter(lst))
@thin finch :white_check_mark: Your timeit job has completed with return code 0.
20000000 loops, best of 5: 13.5 nsec per loop
!timeit
import collections
print(collections.Counter(['a', 'b', 'c', 'a', 'b', 'b']))
@thin finch :white_check_mark: Your timeit job has completed with return code 0.
50000 loops, best of 5: 6.06 usec per loop
!timeit ```py
from string import ascii_lowercase as alphabet
from collections import Counter
the_list = list(alphabet * 10000)
for c in alphabet:
the_list.count(c)```
@somber heath :white_check_mark: Your timeit job has completed with return code 0.
2 loops, best of 5: 146 msec per loop
!e
from collections import defaultdict
lst = ['a', 'b', 'c', 'a', 'b', 'b']
def counter(lst):
count = defaultdict(int)
for i in lst:
count[i] += 1
return count
print(counter(lst))
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
defaultdict(<class 'int'>, {'a': 2, 'b': 3, 'c': 1})
!timeit ```py
from string import ascii_lowercase as alphabet
from collections import Counter
the_list = list(alphabet * 10000)
count = Counter(the_list)
for c in alphabet:
count[c]```
@somber heath :white_check_mark: Your timeit job has completed with return code 0.
10 loops, best of 5: 22.2 msec per loop
@somber heath :white_check_mark: Your eval job has completed with return code 0.
abcdefghijklmnopqrstuvwxyz
str
I just wanted to give list.count something to chew on.
str.count is comparatively zoomy.
I was getting a result inverse to what I expected at first, then I realised it was a str not a list.
lol
hi
!e
import unicodedata
for char in "【𝑵𝒐𝒐𝒅𝒍𝒆𝑹𝒆𝒂𝒑𝒆𝒓.】":
print(unicodedata.name(char))
``` @thin finch
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
001 | LEFT BLACK LENTICULAR BRACKET
002 | MATHEMATICAL BOLD ITALIC CAPITAL N
003 | MATHEMATICAL BOLD ITALIC SMALL O
004 | MATHEMATICAL BOLD ITALIC SMALL O
005 | MATHEMATICAL BOLD ITALIC SMALL D
006 | MATHEMATICAL BOLD ITALIC SMALL L
007 | MATHEMATICAL BOLD ITALIC SMALL E
008 | MATHEMATICAL BOLD ITALIC CAPITAL R
009 | MATHEMATICAL BOLD ITALIC SMALL E
010 | MATHEMATICAL BOLD ITALIC SMALL A
011 | MATHEMATICAL BOLD ITALIC SMALL P
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/unibacogoz.txt?noredirect
pycharm for project development not script writing
🗿
shhh that one doesnt exist

Ok...
I didn’t know it was GA. I was beta tester on it. Like copilot, found it not very useful for me.
@lunar mulch
?
But I generally know what I’m looking for
how do i get this
🤷♂️ i don't use azure but the general prediction from history is helpful for me usually but just wanted to mention it because it looked useful
why ping? what?
you asked how to use base64 images with tkinter.
It’s fine. I’m unusual Powershell user. I write stuff constantly. Like at work I generally keep 5 terminal tabs open because a tab or two is busy.
So AI trying to help gets in the way more often then not.
I like the fatycaty thing
but it's not as good if you dont change your actual username
@lunar mulch fake fatycaty
Anyone theer?
o/
🙂
Emoji
I dont now happens on cellphone
Sorry
Wrong chat
Mine no
Its from reddit
how do I terminate a thread?
.join
won't work when you have input() actively listening on that thread
help anyone ? 🙂
haven't been in this discord too long so not worth of voice
worthy*
Hey Is what's happening You guys know if python pygame is a good library to use for graphics and it if it has potential for integration into artificial intelligence
Big no to both questions. Little yes to both questions.
I've been trying a couple of different libraries Like kivy Which did not work for some reason And the program is not well documented with good examples Then I tried tkinter and I did not like the architecture that they use
Ok so what would you think would be good Library for hellping Understand Python Because when I learn other languages are used a graphics library To help Me understand and see the concepts when I first started
The turtle module is fun to play around with. I wouldn't say any one module would be especially helpful above others in terms of learning about Python.
ok I looked at it briefly and I must have made some misconceptions about out it is there any way you can help me clear that up
Elaborate?
First I didn't like the fact that I had a arrow thank you where you are I just preference maybe And I thought of it as It had to draw Every shape each time with the arow wizing around
Is there anyway that you can turn that off And can you work with just coordinates
turtle.goto
Is there any way to iterate without using the functions given like y += 1
ok ill have a closer look
You could write a class to handle that cleanly. Yes, but the way you'd write it to do the thing itself would be a touch awkward.
This is what I'm talking about I'm not trying to make constructors To handle the shapes myself and even if I made those constructors How would I then move that shape Across the Canvas as a whole Peace
There is no problem with making constructors for it by the way
But I find out vectors would be better to work with
While that is possible, turtle isn't really built around doing that sort of thing. It's more tkinter's and more pygame's than either.
Kivy is good.
Nicer than all of them.
Though it can use some reskinning.
So can tkinter.
Ok I look a little bit more into pygame with kivy you have to make two files and You have to declare everything you make in a separate file as well as referring back to it like css because the currently I'm learning Python is already very awkward It's so new and so weird how Python does things It's like you always wanted them that way but you been forced to do it a different way It's intuitive By the way thank you so much for hellping me With my decision
thank you
You don't have to make two files in Kivy.
You don't have to touch kvlang if you don't want to.
Though the way kvlang works is one of Kivy's strengths as a gui framework.
For some apparent reason I am doing a course right And they are using kivy Language to learn using both files and it Already very confusing To understand how they are referring to Everything using the kivy file
I understand the concept of AI but I just feel like it's really cranky On how they are using the graphics library Any limits your creativity Especially as a beginner in Python
A.I. is not a beginner concept.
Yeah already have two languages under my belt
But I'm going to be doing tensorflow next year in my University
But you shouldn't be learning anything like that until you have the underlaying language under your belt.
If you're new to Python, it should all be about learning the language.
Not branching off into other modules.
To a point.
There is a point where you want to while learning.
But there's a lot of cover before imports.
I think you're very right that's why I'm trying to learn the graphics library I am studying with friends all summer And they're doing these courses but i Understand the concepts I know how to implement them in other languages but i need Library so I can use to save me time I'm and get me comfortable with the Language For when I'm doing these sessions with them
I know it's a lot of pressure
Libraries aren't going to especially help you.
ok so what will
Using the language will.
I think I understand I'm just going to have to learn that language
Corey Schafer has a number of excellent videos on YouTube that cover a lot of ground
Also
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Thank you so much or looking to those resources
looking the videos right now
ok ill check that out
i am doing some planing Based on these Videos..... doing it right now and implemmenting it in to my Schedule thank you so much For your help OpalMist
Mm.
How I learn to understand the basic stuff to programming
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
im muted
!voice
Lmao
I deff need more chat messages
I have not made that cut
like 2 years
Plan on building a Linux Laptop from a chromebook soon
Yeah, saving up now think it would be a fun project
Can you unmute me
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
😔
I just started python
Been 5days
I love it
Yes i started 5 days ago
And been in the server for about 4days
I sent a few
How
It doesn't it just says its less than 50
Yeah
Youtube
Bro Code
The 12hr one
I think im at object oriented programming
Yeah
Will youtube be enough to learn
Yes i have been
Yes
do you know sql?
Yeah me too idk why are they relevant
or object relational diagerams
yeah
Just started
First week
Yeah its something
Yeah, cant wait to dive deeper
g
hello everyone
@lavish rover :white_check_mark: Your eval job has completed with return code 0.
s='s={};print(s.format(repr(s)))';print(s.format(repr(s)))
https://mustafaquraish.github.io/marker-web/#/. Contribute to mustafaquraish/marker-web development by creating an account on GitHub.
Can probably just use something like this for react too
@neat acorn You audio sounds like your amplitude is clipping.
Thanks. I'll try this
It'd also be good if you turned on push to talk.
Your mic is always on, otherwise.
Thanks. 😄
Tech-sus
this better?
yey
i mainly work in 4 bc of paper 2D
this is actually my 1st time on discord and i have a server for testing bots
.
tbh i work with like the bare minimum when in comes to python
sometimes it takes asking my question and answering it in mustafas turkish accent in my head
🙂
he's explained so much simple shit to me that now i have a mustafa in my brain
sometimes i have a split personality disorder
other times i think its my autism
messing with me
srry if it sounds wierd
i made a text base assistant that does certain things if you enter a command that is in a list of commands stored in certain variables
alright you're toxic
i did it tho
I cannot talk
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
?
delete your message
oof how do i do that?
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
Guys why i cannot open my mic
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
omg
```py
code
```
not single quotes
Pls use a smaller code block to not spam the channel
we already se the variables bro, why are you sending it lol
var_1 = ["hello", "hi"]
var_2 = ["how are you?", "what's up?", "how's it going?", "how are you doing?"]
var_3 = ["give me an inspirational quote", "give me something inspirational", "quote", "quote, please"]
var_app_runner = ["open my app runner", "open app runner"]
var_cmd = ["open cmd", "open my command prompt"]
var_bye = ['goodbye jarvis', 'see you later, jarvis', 'bye jarvis', 'bye', 'cya', 'goodbye', 'cya later', 'cya later jarvis', 'cya jarvis']
var_commands = ["these cmds", "this cmd", "commands", "cmd"]
var_youtube = ["open youtube", "open youtube, please", "youtube", "please open youtube"]
var_spotify = ["open my spotify", "spotify, please", "please open my spotify", "spotify", "music", "open my music player", "music, please", "open spotify"]
var_google = ["open google", "google", "open google please"]
var_outlook = ["open my outlook", "open my email", "open my account", "open email", "email", "outlook", "email, please", "outlook, please"]
var_notepad = ["open notepad", "open my notepad", "notepad", "notepad, please"]
var_pong = ["pong, please", "pong", "open pong", "open my pong program"]
var_tts = ["text to speech", "tts", "tts, please"]
var_steam = ["steam", "steam, please", "open steam", "please open steam"]
var_unreal = ["unreal engine", "unreal", "unreal please", "unreal engine please", "open unreal", "open unreal engine please", "open unreal please", "please open unreal", "please open unreal engine", "open unreal engine"]
var_mc = ["open minecraft", "minecraft", "minecraft please", "please open minecraft"]
var_IDLE = ["open my python ide", "open my python editor", "open idle"]
there
thx
delete your other two
Thanks guys, gtg
i just changed my icon :>
sure
!d slice
class slice(stop)``````py
class slice(start, stop[, step])```
Return a [slice](https://docs.python.org/3/glossary.html#term-slice) object representing the set of indices specified by `range(start, stop, step)`. The *start* and *step* arguments default to `None`. Slice objects have read-only data attributes `start`, `stop`, and `step` which merely return the argument values (or their default). They have no other explicit functionality; however, they are used by NumPy and other third-party packages. Slice objects are also generated when extended indexing syntax is used. For example: `a[start:stop:step]` or `a[start:stop, i]`. See [`itertools.islice()`](https://docs.python.org/3/library/itertools.html#itertools.islice "itertools.islice") for an alternate version that returns an iterator.
!e py text = "applecakes" result = text[1:] print(result)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
pplecakes
what does !e mean?
!eval
code
!eval <code>
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!*
thx opal
what?
i think lots of poele know about it
oh
0_0
cool
massager?
why do you ask
🤔
messager*
I tryna make bot, i wanna add a buttons
ye
fair enough
Yea. SoRy FoR mY BaD EnGlaD
huh?
its ok
😄
it was understandable
so i wrote this code
@bot.message_handler(commands=['start'])
def start(message):
markup = types.ReplyKeyboardMarkup(resize_keyboard=True, row_width=1)
btn1 = types.KeyboardButton(text="Button")
markup.add(btn1)
bot.send_message(message.chat.id, config.start)
Corey Schafer, Youtuber.
But it doesn't working
ok
question, what exactly are u dealing wiht here
god is good, god is great
I tryna add a buttons
I am horrified
software?
ask god to fix your bugs in the code xD
its another way to say that I don't know how to proceed
like
im nearly done with my project
just gotta find out how to delete string
im like hella new to python
but its good
imma fight for it
so like this
slice("string")
?
yeah show examples plz
@ebon sandal
hi
u look soooo cute, pssss pssss pssss
!e py text = "abcdefg" print(text[0]) print(text[1]) print(text[-1]) print(text[-2])
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | a
002 | b
003 | g
004 | f
😳
😊
ok ok
!e py text = "abcdefghijklmnop" result = text[5:8] print(result)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
fgh
just do s[:-1]
wrong red
thank u tho
I figured it out
@somber heath dude I swear to god you're like the biggest chad in the world
thank u so much
@quaint oyster thank u too
😶
is that an insult?
thats the biggest compliment a man can receive
start is before stop
then its by how many u wanna iterate
i think
!e py text = "abcdefg" a = text[3:] b = text[:-3] print(a) print(b)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | defg
002 | abcd
step is how many your want to skip
👍
!e py text = "abcdefghijklmnop" result = text[::2] print(result)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
acegikmo
I like numbers better lol
alright
!e py text = "abcdefg" result = text[::-1] #One to remember print(result)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
gfedcba
reverses the string
i wish that text[::2] existed in c# 😦
!e py text = "abcdefg" a = text[5:2] b = text[5:2:-1] print(a) print(b)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 |
002 | fed
If your start is higher than your stop, you need a negative step to get anything other than a blank string.
hi
@nocturne ridge Are you able to hear us? 🙂
yes but i am not verified to talk in chat yet
my sound problem was because of echo cancellation
@whole bear type here, not dm
Base 2
@cunning monolithhttps://www.udacity.com/course/data-structures-and-algorithms-in-python--ud513
@cunning monolith https://www.youtube.com/watch?v=a_7Z7C_JCyo&t=42s
The Art of Computer Programming (TAOCP) is a comprehensive monograph written by the computer scientist Donald Knuth presenting programming algorithms and their analysis.
Knuth began the project, originally conceived as a single book with twelve chapters, in 1962. The first three volumes of what was then expected to be a seven-volume set were pub...
Thanks
Any of you familiar with CLI development??
python3-venv
python3-virtualenv
virtualenv
this is one helluva huge commit
https://github.com/DavinderJolly/RayTracerJulia/commit/e677bf293b81aabed301eb05376d4e9a67f16920
Co-authored-by: Mustafa Quraish 9910883+mustafaquraish@users.noreply.github.com
so is this
https://github.com/DavinderJolly/RayTracerJulia/commit/e677bf293b81aabed301eb05376d4e9a67f16920
Co-authored-by: Mustafa Quraish 9910883+mustafaquraish@users.noreply.github.com
Why was almost all of your project written in two commits?
@woeful salmon e x p l a i n
What are those
output of RayTracerJulia code
I think imma give this a go
@frosty star Good luck, its a good book.
Codejam. Where you take your code and JAM it down your computer's throat.
xD
The person who came up with this must be really smart
ye is :/
btw look at dms
I've seen... significantly bigger commits
That was just yesterday
wait what 😱 553 that is a damn large commit
did you commit node_modules/ or something?
what was it?
Somebody rewrote the test framework and all the tests
oh god
Discover Site Reliability Engineering, learn about building and maintaining reliable engineering systems, and find resources to learn more about SRE and other reliable engineering organizations
SRE is what you get when you treat operations as if it’s a software problem.
@thin finch Thanks for the book that will my next reading
FROM python:3.8.6-buster

@amber raptor it helps with easy setup too
Sure, go for it.
@hollow vigil There are 4 volumes published and 4 more planned.
@bronze charm if you're trying to spam to reach the 50 message limit, please don't
@amber raptor rabbit your voice is a bit robotic
not to me
it isn't?
it isn't
weird
@woeful salmon refreshing discord might help
still only rabbit robotic for me
ig my isp got offended by rabbit insulting the vim culture
jk
Lol
@mint canyon self host? 
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
😃 Good Morning
@mild quartz @amber raptor shall we talk about facebook again?
they had a long discussion lol
compared to say microsoft or apple, facebook is pretty bad...
yeah, agreed
I'm choosing to use some of their products, compared to their alternatives
But they're probably about average when you're comparing to S&P 500 companies for example
thats above my pay grade
hey
i have a problem
Le volume dans le lecteur C s'appelle Acer
Le num‚ro de s‚rie du volume est 6C94-E706
R‚pertoire de C:\Users\ \PycharmProjects\necron
30/05/2022 18:27 <DIR> .
30/05/2022 18:27 <DIR> ..
30/05/2022 18:07 <DIR> .idea
30/05/2022 18:14 1ÿ088 funcs.py
30/05/2022 18:27 1ÿ057 main.py
30/05/2022 18:14 <DIR> pycache
2 fichier(s) 2ÿ145 octets
4 R‚p(s) 107ÿ620ÿ126ÿ720 octets libres
i'm getting the output of dir command
and there is weird characters..
can you help me ?
please use the help channels
done it
well, I'd suggest making another post there when you can and waiting. It's not nice to hijack an ongoing conversation to ask for help
a list of people who will be disarmed/targeted by gun control:
- yo Black ass
- my Black ass
- poor people
- revolutionaries
- Black & Brown folks
- anti-imperialists
22471
3766
a list of people who will not be disarmed/targeted by gun control:
- white militias
- neo nazis
- white people who own gun shops
- pigs
- military
- retired military playing cop
- children of all the above
5223
1076
Checks on history that has already occurred won't change much, because there may be mentally unstable individuals without a record, they require intensive psychological screening to determine that without a record.
Which states have psychological screening and evaluation?
I’m just here for something funny to listen too while I code
whatcha makin'
there are about 120 guns for every 100 people in America
Okay I do wanna say something our country’s umm like people we have in office even republicans and democrats cuz I’m in the middle but there all fucking crazy
Like can we talk abt gas prices
I can’t afford to go get a Pepsi 😦
@quasi condor https://twitter.com/dcexaminer/status/1529938825077833742?s=20&t=3FjLGXne2NHiIM0B5e9EvQ
The White House refused to call for an investigation into the police response to the school shooting in Uvalde, Texas, saying President @JoeBiden "has the utmost respect for the men and women of law enforcement."
5946
2216
couldn't you just do ```py
from transformers import pipeline, Conversation
import torch
conversational_pipeline = pipeline("conversational", model='microsoft/DialoGPT-large')
while True:
conv1_start = input("You: ")
conv1 = Conversation(conv1_start)
conversational_pipeline([conv1], pad_token_id=50256)
print(conv1)
conv1.add_user_input(input("You: "))
conversational_pipeline([conv1], pad_token_id=50256)
print(conv1)``` just do this
What’s it do
a chat bot
nope, it's already a pretrained model
Oh I have 76 lines
nice, what are they?
They suck cuz I’m still building it lol
How do I get in on this convo
AK47 the best ever
@quasi condor you are too used to somewhat functional government though Boris Johnson is working to fuck it up
hahaha
I used to bike to see friends
and at 14, you can arm them to protect themselves at school Fury
21
whenever you can no longer be claimed as dependent on someone taxes
rubbish metric
Indeed it has been said that democracy is the worst form of Government except for all those other forms that have been tried from time to time.…
@amber raptor had to go at short notice. I heard most of what you said though. My last thing is that the only thing you change by regulating them like publishers is raise the floor of the content they promote. Instead of being overtly racist dailystormer posts, it will be covertly racist nypost posts
which is an improvement
but the extent to which it is an improvement is very limited
Hello Phatic expressions 👋
phatic expressions
Yo
What's up?
What're you studying? 😄
Oh yeah
Oh
Do you know about the KA course?
Ah right. See the top pin in #databases if you need learning resources.
GTG see y'all later
Imagine 😄
Dude, two words, Khan Academy
Maybe I am slightly obsessed 😄
Sal Khan 😍
What, he's great 😄
Pretty much taught me calculus.
@broken harbor My school is inflensed by the baccalauréat in terms of the subjects I take
Yikes
Erm, what have you covered so far?
Oh right. Have you learned about the theory of relational databases?
SQL is a language for relational databases.
Erm, there are these nice SQL short courses on edx, by Stanford.
This course is one of five self-paced courses on the topic of Databases, originating as one of Stanford's three inaugural massive open online courses released in the fall of 2011. The original "Databases" courses are now all available on edx.org.
This course provides an introduction to relational databases and comprehensive coverage of SQL, the ...
Avoiding work 😄
Erm, not really, it's a university course I'm taking.
Nah, your English sounds fine!
;-;
Yep, I'm completing a degree I started but didn't finish.
¯_(ツ)_/¯
Have you tried learning the phonetic alphabet?
Mhm, yeah the mapping from spelling to pronunciation in English is totally inconsistent.
gtg 👋
bye
Orang-outan
@gentle flint Back von zee tote hahahahah
That word triggers me, are you in IB?
lol
very formal!
I am doing some coding problems
I am doing a pseudo code project ^^
yup ^^
I agree. sometimes my actual code is hard to pesudo
This is my first course! we are required to take scripting for ALL STEM majors
I am an enviro sci
NO I wanna slide into ecology! 🙂
Use my enviro degree to slide into ecology
I am muted until..... I talk a bit :<
I kinda joined since I am in a class and like python BUTTTTT apparently security!
Are you a mod?
^^
You sound formal!
I CAN SEE WHY'
Are you professor?
top hat and white long mustache?
You sound like you own a mansion
And ride a very formal pony cart 😛
Dont forget the monocle
Over one eye 😛
I think that guy is on the can of peas....... 😉
SERIOUSLY? I love canned peas
I guess I am too fancy for my own good
I wish I wasnt muted I could talk code with yall
doing while loops and some pseudo some if else statements etc
no patience?
why?
Why is no one else in here ._.
hmmm... a lotta stuff...
Locked?
I'm suppressed ... Didn't know about this
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
I typed in a message into chat. The nature of the message was such that it triggered the server's bot to post that message in reponse.
so that was a message deleter
you text for 30 minutes lol
just talkntalkntalk
yeppity yep! for a few days
moostafa
lol, nice
mstfqrsh
AWS!
whos she?
no idea, googled "amazon badge"
compiler development
lol!
@lavish rover like recursive descent parsers and what not? Assembly cross compilers?
did you have that class in university?
machine learning compilers for custom accelerators
woah, gnarly
i only know what half of those words mean, it's going to be fun
sounds like a great position you got
haha, yeah, you've got room to grow
the hope is I don't get kicked out before that LOL
I'm trying to get an android program to compile... still setting up android studio.
heh, why would they do that?
you going to be a blue badger?
I have no idea what the blue actually means
Employee
Generally tech companies badge employees differently depending. Yellow is Contractor at most places
i see, yeah I'm going to be an employee
Possibly dark green.
that's Star Trek color pattern
anyone here good with android?
psh... you guys are funny 🙂
java!
whats your android issue?
I want to build this: https://github.com/darshan-/Noteworthy-Tuner/blob/master/src/com/darshancomputing/tuner/PitchDetector.java
-_-
I want to modify it
then build it
?
you guys are crazy
lol
random inside a pitch thing
that's cray cray
found the parent library
yeah, but it won't build 😛
doesn't say
a mystery!
no readme
is it Status code 666?
for user is stupid?
Enjoy the antics of rescued southern sea otters as they romp, tumble and wrestle live from the Monterey Bay Aquarium's Sea Otter Exhibit. Watch them participate in fun enrichment activities with artificial kelp, ice and other toys—it all helps keep them healthy and stimulated!
Feedings: 10:30AM, 1:30PM and 3:30PM PT
These female sea otters are...
sadly im python not java
otters ?
is his name AL?
Jerry codes
See Jerry get an interview
See Jerry get a job
See Jerry perform
Jerry is happy freeloading off me, and that's ok too
how much is jerrys rent?
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
1 cuddle a day
he doesn't take up much space so it's less than the market average
whats trash bot?
trash bot?
the person who that message is for can react to that to delete it
don't ruin my jokes with sensible points 😦
@frosty shellpetersen has an android tuner app... oh, you made it 🙂
@mental rock I haven't made anything yet
but you got voice verified
that was quick...
yep 🙂
!d difflib
Source code: Lib/difflib.py
This module provides classes and functions for comparing sequences. It can be used for example, for comparing files, and can produce information about file differences in various formats, including HTML and context and unified diffs. For comparing directories and files, see also, the filecmp module.
❤️ Check out Lambda here and sign up for their GPU Cloud: https://lambdalabs.com/papers
📝 The paper "Hierarchical Text-Conditional Image Generation with CLIP Latents" is available here:
https://openai.com/dall-e-2/
https://www.instagram.com/openaidalle/
❤️ Watch these videos in early access on our Patreon page or join us here on YouTube:
- ht...
sooo cool open ai
IB?
The Transmission Control Protocol (TCP) is one of the main protocols of the Internet protocol suite. It originated in the initial network implementation in which it complemented the Internet Protocol (IP). Therefore, the entire suite is commonly referred to as TCP/IP. TCP provides reliable, ordered, and error-checked delivery of a stream of octe...
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Haaaaaay
jaaaa
How do you pronounce this? is it like Yaaaaaa?
It’s actually more like じゃー
But this works too
@peak copper please help
import random
import string
from words import words
def get_valid_word(words):
v_word=random.choice(words)
while '_' in v_word or ' ' in v_word:
word=random.choice(words)
return v_word.upper()
def hangman():
l = 7
word=get_valid_word(words)
word_letters=set(word)
alphabets = sorted(set(string.ascii_uppercase))
used_latters=set()
while l>0 and len(word_letters)>0:
print("your used letters are",' '.join(used_latters))
user_input = (input("enter a single letter")).upper() # this line
if user_input in alphabets - used_latters:
used_latters.add(user_input)
if user_input in word_letters:
word_letters.remove(user_input)
else:
l=l-1
print(f"sorry wrong answer now you have {l} chances")
elif user_input in used_latters:
print("you entered an used letter please try again")
print(used_latters)
else:
print("you entered an invalid character")
if l==0:
print(' you lost because you used all tha chances')
elif word_letters==0:
print("you won because you guessed all letters in ",word)
if __name__=='__main__':
user_input=(input("enter a single letter")).upper()
sorted() will always return a list
!e py v = {1, 2, 2, 3, 3, 3} print(v)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
{1, 2, 3}
!e
l = [1,2,3,1,1,2]
print(set(l))
@thin finch :white_check_mark: Your eval job has completed with return code 0.
{1, 2, 3}
Oh its kinda like harvest moon
!e py v = [1, 2, 3] result = set(v) print(result)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
{1, 2, 3}
@rugged root what about this code ```py
import random
from words import words
import string
def get_valid_word(words):
word = random.choice(words) # randomly chooses something from the list
while '-' in word or ' ' in word:
word = random.choice(words)
return word.upper()
def hangman():
word = get_valid_word(words)
word_letters = set(word) # letters in the word
alphabet = set(string.ascii_uppercase)
used_letters = set() # what the user has guessed
lives = 7
# getting user input
while len(word_letters) > 0 and lives > 0:
# letters used
# ' '.join(['a', 'b', 'cd']) --> 'a b cd'
print('You have', lives, 'lives left and you have used these letters: ', ' '.join(used_letters))
# what current word is (ie W - R D)
word_list = [letter if letter in used_letters else '-' for letter in word]
print('remaining lives',lives)
print('Current word: ', ' '.join(word_list))
user_letter = input('Guess a letter: ').upper()
if user_letter in alphabet - used_letters:
used_letters.add(user_letter)
if user_letter in word_letters:
word_letters.remove(user_letter)
print('')
else:
lives = lives - 1 # takes away a life if wrong
print('\nYour letter,', user_letter, 'is not in the word.')
elif user_letter in used_letters:
print('\nYou have already used that letter. Guess another letter.')
else:
print('\nThat is not a valid letter.')
# gets here when len(word_letters) == 0 OR when lives == 0
if lives == 0:
print('remaing lives',lives)
print('You died, sorry. The word was', word)
else:
print('YAY! You guessed the word', word, '!!')
if name == 'main':
hangman()
Cool
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
Bedtime asmr.
@rugged root look it this codes py if user_letter in alphabet - used_letters:
please no
if user_letter in set(alphabet) - used_letters:
try this @peak ice
.
Great!
Oh rune factory is actually a spin off of harvest moon (as I read here on wikipedia)
“Harvest moon where you wield a sword”
Sometimes I tune into VC0 before bed because I feel like it can make the monsters go away
👀 true they're probably scared
VCO?
haha
@rugged tundra @woeful salmon 40C with light drizzle every now and then.
winter down to 5-8 C and summer upto 40-45 C
15C is the temperature I like. The Fall season is that temperature here.
for me what's where i stop being able to go out of blanket for anything but work
22-25 feels the most normal to me :x
not too hot not too cold
Woah what is that
Matt r u like underwater
No silly i mean the sound 😆
Hmm, what could be so scary enough to scare monsters away? I wonder...
Yeah, during December-January I work under a blanket -2C average
I havent been running for a looong time
And i’ve been sitting cross legged for long hours so now my knees are fked
The migraines
Right above the eyeball
Yeah
Would put me out for days
Just had that over the weekends
The eyeglass shop tried to sell me “digital lenses” last time
I didnt get it
But apprently it has good reviews
😮
Actually arent migraines one of those things that are not quite well understood
Like a medical mystery
Sort of thing
@frosty star its a fact that we now more about the moon than we know about our brain.
Natures way of saying "Fuck this person in particular."
🤔
Does any one know how many chemicals our brain produce?
I heard real analysis is pretty hard
Im trying to cook more often so I’ll probably make some dumplings in the weekend
Yeah they make it look so easy :0
There’s some kind of algorithmic shit going on with the folding
Are samosas dumpling
I would consider it a dumpling
Pffftt
Close enough. But the filling could be anything. And the wrapper are not always pasta
The wrap is mostly wheat.
Mimosa - Drink
Samosa - Fried dumpling
@mighty pollen Per Rule 6, your invite link has been removed. If you believe this was a mistake, please let staff know!
Our server rules can be found here: https://pythondiscord.com/pages/rules
I thought mimosa was a plant
When I was joining the voice channel (my first time lol), I was thinking like that: wow that's a python voice channel, there should be a huge discussion and there is even a stream, gud, but no thoughts of this silence
ok probably like that
That, too.
I just got to climb on a roof and attempt to save a bird
Got into the roof at the office. You could hear it from the inside just freaking the fuck out
You should add "Saviour of birds" to your About Me
Maybe. Don't know if I actually saved it
Get a free Audio Book trial at http://www.audible.com/smarter
Prince Rupert's Drop T-Shirts: http://bit.ly/PRD_Shirts
Original video here: https://youtu.be/k5MORochIDw
⇊ Click below for more links! ⇊
To see all my Prince Rupert's Drop Videos go to
http://www.princerupertsdrop.com
I shot a .223 7.62x39mml bullet at the Prince Rupert's Drops...
then perhaps it's premature
Ended up putting peanut butter crackers crumbled up to try and coax it out
It's not screeching anymore, so I think it caught the smell and will try to get to it.
Hopefully that's enough
filmed from march 2020-may 2021. edited from april 2022-may 2022.
album coming soon: https://boburnham.lnk.to/INSIDEdeluxe
Bye
Adafruit Industries, Unique & fun DIY electronics and kits : - Tools Gift Certificates Arduino Cables Sensors LEDs Books Breakout Boards Power EL Wire/Tape/Panel Components & Parts LCDs & Displays Wearables Prototyping Raspberry Pi Wireless Young Engineers 3D printing NeoPixels Kits & Projects Robotics & CNC Accessories Cosplay/Costuming Hallow...
https://www.adafruit.com/category/63 Their displays
Folks love our wide selection of RGB matrices and accessories, for making custom colorful LED displays... and our RGB Matrix Shields and FeatherWings can be quickly soldered together to make ...
@peak copper https://circuitdigest.com/electronics-projects
Thanks
We all have many different chargers lying around the house. Often, we forget which charger was compatible with which device. Recently, USB-C chargers are becoming increasingly widespread across multiple devices, both smartphones and laptops. Thus, most people are starting to wonder the following: is it actually safe to use a (USB-C) laptop charg...
You need one for electrical power
Watt is a unit for energy, electrical energy, kinetic energy, mechanical energy, so on...
Electrical power = I^2 * R = I*V = V^2/R
Hello
@rugged tundra just make an account on https://www.buymeacoffee.com/?source=fba1&utm_source=FriendlyGAd&utm_medium=BmcAdSearch&utm_campaign=April2020
and link it in your profile
who is the other person talking?
The Thinker (French: Le Penseur) is a bronze sculpture by Auguste Rodin, usually placed on a stone pedestal. The work depicts a nude male figure of heroic size sitting on a rock. He is seen leaning over, his right elbow placed on his left thigh, holding the weight of his chin on the back of his right hand. The pose is one of deep thought and con...
https://www.youtube.com/watch?v=jBzwzrDvZ18 @chilly copper
This video is a full backend web development course with python. In the course, you will learn everything you need to know to start your web development journey with Python and Django.
✏️ Course developed by CodeWithTomi. Check out his channel: https://www.youtube.com/c/CodeWithTomi
🔗 Join CodeWithTomi's Discord Server: https://discord.gg/cjqNB...
I wonder how most 10x developers actually manage to commit at least 5 times a week on Github while still working for a company?
Which serverside web framework is the best? To find out, I built the same app 10 times with 10 different programming languages.. Learn the fundamentals of fullstack web development by comparing MVC frameworks.
#webdev #programming #top10
🔗 Resources
Ruby on Rails https://rubyonrails.org/
Python Django https://djangoproject.com
PHP Laravel h...
@fickle parcel https://www.youtube.com/watch?v=Z1Yd7upQsXY&list=PLBZBJbE_rGRWeh5mIBhD-hhDwSEDxogDg I would suggest this playlist, to begin
Learn Python programming with this Python tutorial for beginners!
Tips:
- Here is the playlist of this series: https://goo.gl/eVauVX
- If you want to learn faster than I talk, I’d recommend 1.25x or 1.5x speed :)
- Check the outline in the comment section below if you want to skip around.
- Download the sample files here to follow along (th...
hxh is back baby
lmao all the best
thx
iamma try and explore pygame
and make some easy af game
something like bursting bubbles etc
I got my voice perms! Wanna do a voice callo? ^_^
I'm in voice chat when I'm in voice chat. 🙂
looks like there's no one in the actual voice channels right now
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
certainly not yet
hehe if only i wanted to talk often necessary (just need help on x11 python stuff at #user-interfaces )
but for now, it's good
oh
SELECT * FROM Apartments WHERE price > (SELECT AVG(price) FROM Apartments ) ORDER BY price ASC;
@uncut salmon https://docs.sqlalchemy.org/en/14/orm/quickstart.html
Hey
Ain't voice verified yet so can't talk
All good
Just busting my head over this thing I'm trying to do
Well, I am trying to create a Virtual Hard Drive (VHD) which is easy, yes.
Editing it, and basically making it work like a normal hard drive and being able to read, write, append, etc... to it, in theory is possible
that's the issue
in theory 🥲
And like... All I find is virtually nothing
Yeah, doing it in python
I would do it in C++ but I despise C++
even tho I know it
Well its not necessarily interact with it like a hard drive, like mount it. But I wonder if somehow, there is a way to virtualize a file system on it
Normally I'd do it in Assembly and just use some magic to run it in cython.
A file system is responsible for organising and providing an abstraction over the storage devices where the data is physically stored. In this post, we will learn more about the concepts used by file systems, and how they fit together when writing your own.
Call me Alex, It'll be easier
Possibly, I'll give it a look
No mounting 🙂 , just virtualizing it
I can somewhat understand Rust
I never learned it
I used to do C++, but moved to Java, and Python mainly.
I also used to do Assembly
and personally Assembly is cool, but I despise it with every fiber in my being
If you are writing an application of any size, it will most likely require a number of files to run files which could be stored in a variety of possible locations. Furthermore, you will probably want to be able to change the location of those files when debugging and testing. You may even want to […]
Looking at it rn
I read about PyFilesystem
Question is, Is it possible to like hook PyFilesystem to use a .vhd or a .img file
That's not a project its more or less a script.
I once spent 52 hours, on energy drinks, having to debug 77,582 lines of code in Java, 2,443 lines in Python and 558 in Assembly
I wanted to quit at that moment
When it came back well
with minor warnings and bugs
I fell asleep in my chair
and slept for a full day
Well, I have to go to work.
I'll read up on it when I come back
If y'all be here, I'll hop again
Cyaaaa
!e
password = "hello"
password += "1"
print(password)
@wind raptor :white_check_mark: Your eval job has completed with return code 0.
hello1





