#voice-chat-text-0
1 messages · Page 147 of 1
@agile pollen 👋
oooh wow
hello
Alisa is it worth buying?
wait let me get my headphones
well i have a question can you help to debugg it
parabola
im stuck in a code
why is it silent here?
😭
I couldn't get past first level
What's up?
How is life in Austrailia these days
yea its getting chotic more somewhere whereas somewhere its beautiful
mixed bag as you normally say
@pallid verge 👋
hi
hey
all good ...how about you ?
ahh same .. at the workplace rn
> softwareEE
software: enterprise edition™️
@still lava 👋
whas up
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
i havent been in the server for more than 3 days😐
i just need some python help tho
@somber heath could you help me?
its basic
its pygame
import pygame
run = True
pygame.init()
ScreenWidth = 800
ScreenHeight = 600
screen = pygame.display.set_mode((ScreenWidth, ScreenHeight))
while run:
for event in pygame.event.get():
if event.type == pygame.QUIT:
run = False
do you know why it crashes
or stops running
yes
!code
import pygame
run = True
pygame.init()
ScreenWidth = 800
ScreenHeight = 600
screen = pygame.display.set_mode((ScreenWidth, ScreenHeight))
while run:
for event in pygame.event.get():
if event.type == pygame.QUIT:
run = False
!pep8 Name conventions
PEP 8 is the official style guide for Python. It includes comprehensive guidelines for code formatting, variable naming, and making your code easy to read. Professional Python developers are usually required to follow the guidelines, and will often use code-linters like flake8 to verify that the code they're writing complies with the style guide.
More information:
• PEP 8 document
• Our PEP 8 song! :notes:
whats the output of pygame.event.get()
paste the error
C:/Users/Dontlookatmyname/AppData/Local/Microsoft/WindowsApps/python3.11.exe c:/Users/lando/OneDrive/Desktop/Game.py
File "<stdin>", line 1
& C:/Users/lando/AppData/Local/Microsoft/WindowsApps/python3.11.exe c:/Users/lando/OneDrive/Desktop/Game.py
^
SyntaxError: invalid syntax
dont know what it means🤨
it's supposed to be ran inside the shell, not the interpreter
?
this is not python code:
& C:/Users/lando/AppData/Local/Microsoft/WindowsApps/python3.11.exe c:/Users/lando/OneDrive/Desktop/Game.py
🤨
thats from the terminal bruh
are you using something like VS Code?
yep
python Game.py
did you write/paste it yourself or did the IDE do it for you?
do this after you cd into the program location
or just use this but in the right place
i tried to render a square earlier
ctrl+` opens the terminal
(in VS Code)
how can you render things ?
seems like holding down the "New Terminal" shortcut does work
@long osprey 👋
i have a question
more of a
you know a project related stuff
i need to predict the ethnicity of a specific city using a sample data set and some background feature sampling data
i know that we can use exploratiry data analysis
but im still confused how do i carry it out
oh im really sorry to interrupt
oh hmmmm
ML engineer
that is completely fine
Hey?
Hi hi. What's up?
@vocal basin hey af i can't understand something
so while using pandas when im putting in the path for a file, it's giving me an error
it goes away when i put in "r" before the path
or i put double backslash instead of a single one
but my doubt is that this error isn't consistent
why sometimes it just works without the "r" or double backslash and sometimes it gives me an error
!e
print("\/")
print(r"\/")
print("\\/")
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | \/
002 | \/
003 | \/
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 |
002 |
003 | \n
004 | \n
depends on what symbol is after \
im getting an error when it's "a"
i haven't checked all possibilities but other times it doesn't
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 |
002 | \a
003 | \a
okay wait
yeah a similar question mark thingy is printing
like you said it's a bell maybe
what is unicode and what is it's purpose?
in some contexts/terminals/etc. it should play a sound
ah, i get it
thanks af i get what is causing the errors
i must do this research on my own
you're a G
(this generally helps to debug what's happening)
yes i just realised that
duly noted!!
Stephen Merchant
In a dystopian world a new form of A.I. weaponry has been created. All these drone bots need is a profile: age, sex, fitness, uniform, and ethnicity. Nuclear is obsolete. Take out your entire enemy virtually risk free. Just characterize him, release the swarm, and rest easy.
“Slaugherbots” by Stewart Sugg
Subscribe to ALTER on YouTube: https:/...
[[[226 255 255]
[224 255 253]
[221 254 250]
for picture in pic:
for pixel in picture:
print(pixel)
for i in range(10)
num[i] = []
!e py import numpy as np arr = np.arange(27).reshape(3, 3, 3) print(arr) a = np.product(arr.shape[:-1]) b = arr.shape[-1] c = arr.reshape(a, b) np.random.shuffle(c) print() print(arr)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | [[[ 0 1 2]
002 | [ 3 4 5]
003 | [ 6 7 8]]
004 |
005 | [[ 9 10 11]
006 | [12 13 14]
007 | [15 16 17]]
008 |
009 | [[18 19 20]
010 | [21 22 23]
011 | [24 25 26]]]
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/ihosinecan.txt?noredirect
@limber copper
# Iterate over the files in the input folder
for filename in os.listdir(input_folder):
# Check if the file is an image
if filename.endswith((".jpg", ".jpeg", ".png", ".gif")):
# Open the image
image_path = os.path.join(input_folder, filename)
image = Image.open(image_path)
image = np.array(image)
X.append(image)
# Assuming your array is called "image"
image_shape = image.shape # (355, 474, 3)
reshaped_image = image.reshape(-1, image_shape[-1]) # Reshape to 2D array with shape (355 * 474, 3)
# Shuffle the rows of the reshaped array
np.random.shuffle(reshaped_image)
# Reshape the shuffled array back to the original shape
shuffled_image = reshaped_image.reshape(image_shape)
y.append(shuffled_image)
scary!!!
Mm.
@dense ether 👋
@lapis osprey 👋
Cool.
Cool.
@turbid sandal I'm here. What's not making sense?
You were saying my name.
You didn't seem to be watching. So yes, I pinged.
Except the gif is wrong. It's ping, not bing.
!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.
sorry my mic's suppressed but i have a question
i am incharge of a project specifically an ml project
i need to predict the ethnicity of a city using a sample data set and some feature sampling
!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.
yea
im trying to get this to analyse live sound from an output device and compare it to a .wav audio file and if it matches press e
keep getting an error
it starts it as it gets to Audio waveform shape: (28672,)
Sampling rate: 48000
Listening for audio cue...
and then
Exception ignored from cffi callback <function _StreamBase.init.<locals>.callback_ptr at 0x0000021A3E3CBB00>:
Traceback (most recent call last):
File "C:\Users\ryan\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\sounddevice.py", line 846, in callback_ptr
return _wrap_callback(callback, data, frames, time, status)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ryan\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\sounddevice.py", line 2687, in wrap_callback
callback(*args)
File "C:\Users\ryan\Videos\fish\again.py", line 32, in audio_callback
similarity = librosa.feature.cosine_similarity([reference_audio, live_audio])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ryan\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\lazy_loader_init.py", line 88, in getattr
raise AttributeError(f"No {package_name} attribute {name}")
AttributeError: No librosa.feature attribute cosine_similarity
as the error
soveld a lil bit i think but still stuck
Puppy Linux can be installed on Chromebooks, but it may not work on ARM architecture processor-based Chromebooks.0 To remove Chrome OS and only use Puppy, one can delete ChromeOS from the internal drive and replace with a Puppy version.1 Puppy Linux requires 128MB of RAM and 333Mhz of CPU, although 256MB of RAM is recommended. Chromium OS is designed for use in computers with little local storage and fast boot-up times.2 It is possible to install Google Chrome or Chromium on most PuppyLinux distributions, but the exact version and process for installing depend on which one is running.
sorry my mic's suppressed but i have a question
i am incharge of a project specifically an ml project
i need to predict the ethnicity of a city using a sample data set and some feature sampling
i know that i can use exploratory data analysis
but uhh i cant really compile what to do exactly
Here are a few calls to some home owners who I tried to help out by reorganizing their trash, but they all just act bewildered and pissed off at me. Sorry for trying to help out, jerks.
Support PLA's noble efforts at http://www.patreon.com/phonelosers
CONNECT WITH PLA:
Website: http://www.phonelosers.org
Facebook: http://www.facebook.com/phon...
What was the community's consensus on a Linux distro for Chromebook???
For what you have, you could rock the current ubuntu lts.
But shop around
k
Distro hopping is half the fun.
!stream 360284932469293056
✅ @ebon mist can now stream until <t:1686837730:f>.
Bootlooping server?
"Uh, yeah, there's like, a ton of tentacles and stuff in there, and a bunch of ethereal chanting..."
!code
!d finally
8.4.4. finally clause
If finally is present, it specifies a ‘cleanup’ handler. The try clause is executed, including any except and else clauses. If an exception occurs in any of the clauses and is not handled, the exception is temporarily saved. The finally clause is executed. If there is a saved exception it is re-raised at the end of the finally clause. If the finally clause raises another exception, the saved exception is set as the context of the new exception. If the finally clause executes a return, break or continue statement, the saved exception is discarded...
!e
if 1 == 1:
print("if")
else:
print("else")
finally:
print("finally")
@turbid sandal :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 5
002 | finally:
003 | ^^^^^^^
004 | SyntaxError: invalid syntax
if thing:
print("first condition")
else:
print("second condition")
print("will do this either way")
!e ```py
def func():
try:
return 'Hello, world.'
except Exception: #Be specific!
pass
finally:
print('Finally')
print('You won't see me.')
result = func()
print(result)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Finally
002 | Hello, world.
@ # = | \ " , .
@echo garden You are really a great story teller!
the constant e is the cut the aliens take
@zenith radish welcome, please BYO tin foil hat
this is a very old email address that i wish, i could get back into. but currently headed for a life in prison for the valuble infomation ive accumulated over the years. im not a liar, the truth is easier to remember. i explain to the best of my most logical knowledge of my personal experiences that took years for me to come to the conconclusions ive come too. but i came here, because i wanted to code something for an organization that needs it, but im happy to explain myself as long im allowed to finish.
lol
@midnight agate are you working on an AI model?
yeah but your responses can answer questions from an AI lol im not making fun i just found it funny
you know of the infiniate conversation ?
infinite
What’s this?
its a AI to AI conversation with models based off of indidivuals
hold
Ok i see
its an interesting concept but you have to wonder the probability of them having the same conversation in a given time.
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
This is to start a new voice? ( sorry i still don’t understand this app)
I've played it before, and now their frequency may be reduced a lot?
well you need to complete requirements
one of which is how much you text on this server.
this conversation for instance is helpful
Yes,50 messages
yeah and I am not certain what it considers inputed text but you well on your way i assure you.
but this isn't the only channel on this server.
I know… just… i don’t know how to join the discussion
ok discord should be pretty much the same on your end in the application such as mine but im using a laptop
Because there is a power outage now, I turned off my laptop.
@zenith radish the image quality is insane
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
thank u one sec let me read the instructions
okay i see
its okay take ur time my friend
i was just looking for some people to chill with
while i study for thei pl/sql exam
ngl my hatred for sql is rising everyday
yeah my teachers love calling it that
thank u
you know its the first time i get the full name that shows how much i hate it
yeah when u are talking to someone who knows
its usually easier
I can't think about anything else in this context other than "times ten memory overhead"
can i get some context im a newbie
just like any other technology, it wasn't actually developed by Oracle
even Oracle recommends avoiding Oracle
We have oracl to thank for java
Oracle didn't develop Java
are they not the ones theat destroyed it
it was Sun Microsystems who developed Java
yeah i know i meant it as a joke
it was better under microsystems even tho i did not try it back then as i just heard and most people tell me it was wayyyy better
@grave sun 👋
@somber heath if u can help me what does the portion under AS do ?.
thanks anyways
3 rd line from the top
looks like aliases
oh so just to make it easier ?
probably
I'd guess this is just substitution
INTO L_Nationalite_Joueur
INTO Joyeur.Nationalite%TYPE
I don't know what %TYPE is
believe me same here
those two might actually be unrelated
i think im just gonna fail this exam
so basically its just a substitution with each line subing a single colum from the tabels ?.
so, this is two separate things
EXACTLY
AS refers to the whole function body
part of which is local declarations/definitions
which maybe work like aliases
this is not SQL itself
it's PL/SQL extensions
SQL on its own is kind of okay
there are better dialects, like postgresql
something's definitely wrong with how this URL is structured
https://docs.oracle.com/cd/B13789_01/server.101/b10759/functions208.htm#i1012049
"IS" and "AS" seem to be syntactically equivalent
I don't know where the documentation is
and no information on what "appropriate" means in this context
the documentation is very hard to read even for someone who knows the language
there is no link for any simple explanation of what pl/sql_function_body or call_spec looks like
instead, it links to, basically, a book on how to write PL/SQL
and doesn't mention any specific chapter
ChatGPT tries to mimic the existing code
and same for explanations
if existing public explanations are unclear, same will be true for what ChatGPT produces
does %TYPE come from existing code or from ChatGPT?
I found what that means
(probably)
table_name.column_name%TYPE means "type of table_name.column_name"
so, L_Nationalite_Joueur is not alias/substitution, it's rather just a local variable with the same type as Joyeur.Nationalite
(coloured the thing so easier to follow where things are)
it takes Nationalite from Joueur and puts it into L_Nationalite_Joueur
(therefore the types should match)
@vocal basin U ARE BETTER THEN MY TEACHER THANK U IT FINALLY CLICKED
I still don't understand how PL/SQL treats variables
it's either one value of the specified type, or a temporary table
again thank u so much ❤️
which language ? giving me feeling of python. ruby?
Aecor
never heard is this new lang?
I found something evil
maybe sometimes excusable for C; totally not a good thing when someone tries to extrapolate it on other languages
why are there so many meme-worthy comments in rc.rs
what is rc rs?
Source of the Rust file library/alloc/src/rc.rs.
oh, thanks.
what does .ae file extension stand for?
Aecor
👍
@sage forge @finite coral 👋
@finite coral 👋
I doubt copilot can write any of it except for obvious boilerplate
Welcome to Windows Copilot - the first PC platform to provide centralized AI assistance and designed to help people easily take action and get things done.
- Read the blog: https://blogs.windows.com/windowsdeveloper/?p=56688
- Sign up to receive updates: https://aka.ms/PluginsForWindows
#MSBuild
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
how to open the voice

hii no leetcode today?
I sent the today's daily earlier ( #off-topic-lounge-text message )
but right now I'm doing actual work instead of leetcode
I don't think the problem is as hard as the marker suggests
it's mostly just about not over-engineering the solution
lol it seems hard!
I'll try and optimise my solution now
because top 5% speed is not good enough
!kindling
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
for some reason i stil cant talk in vc i know i have setn more than 50 messages
the rest i have already done
!e py user_input = '10d4' #user_input = input('>') ab = user_input.split('d') a, b = user_input.split('d') print(ab) print(a) print(b)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | ['10', '4']
002 | 10
003 | 4
!e py print('M*A*S*H'.split('*'))
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
['M', 'A', 'S', 'H']
lol I actually did it
!e py yes = 'yes'.casefold() print(yes) user_input = 'YES'.casefold() print(user_input) print(yes == user_input)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | yes
002 | yes
003 | True
!d str.casefold
str.casefold()```
Return a casefolded copy of the string. Casefolded strings may be used for caseless matching.
Casefolding is similar to lowercasing but more aggressive because it is intended to remove all case distinctions in a string. For example, the German lowercase letter `'ß'` is equivalent to `"ss"`. Since it is already lowercase, [`lower()`](https://docs.python.org/3/library/stdtypes.html#str.lower "str.lower") would do nothing to `'ß'`; [`casefold()`](https://docs.python.org/3/library/stdtypes.html#str.casefold "str.casefold") converts it to `"ss"`.
The casefolding algorithm is described in section 3.13 of the Unicode Standard.
New in version 3.3.
!d str
class str(object='')``````py
class str(object=b'', encoding='utf-8', errors='strict')```
Return a [string](https://docs.python.org/3/library/stdtypes.html#textseq) version of *object*. If *object* is not provided, returns the empty string. Otherwise, the behavior of `str()` depends on whether *encoding* or *errors* is given, as follows.
If neither *encoding* nor *errors* is given, `str(object)` returns [`type(object).__str__(object)`](https://docs.python.org/3/reference/datamodel.html#object.__str__ "object.__str__"), which is the “informal” or nicely printable string representation of *object*. For string objects, this is the string itself. If *object* does not have a [`__str__()`](https://docs.python.org/3/reference/datamodel.html#object.__str__ "object.__str__") method, then [`str()`](https://docs.python.org/3/library/stdtypes.html#str "str") falls back to returning [`repr(object)`](https://docs.python.org/3/library/functions.html#repr "repr").
and a little further
ok hello
hi
given your error "row is not defined", it's not related to tkinter
function scope issue rather
or just a typo
it is related to treeview and displaying the stuff from the csv file
@dusty jewel 👋
File "C:\Users\timxw\OneDrive\Documents# School Work\Year 9\Dig Tech\Term 2\Tim Walter Dig Tech Final\Code\GUI.py", line 26, in perform_search
pet_id = row['pet_id']
^^^
NameError: name 'row' is not defined
where do you define row?
!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.
did you write the code yourself?
yes
without using tools like ChatGPT, right?
!e ```py
class MyClass:
def greet(self):
print(f'Hello, I'm {self}')
a = MyClass()
b = MyClass()
print(a)
a.greet()
print(b)
b.greet()```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | <__main__.MyClass object at 0x7fc5e0568550>
002 | Hello, I'm <__main__.MyClass object at 0x7fc5e0568550>
003 | <__main__.MyClass object at 0x7fc5e0568590>
004 | Hello, I'm <__main__.MyClass object at 0x7fc5e0568590>
where is row supposed to come from?
the csv file
that i have in the same file
this csv file has gfo information that i want to search in the tree view
you have this
reader = csv.DictReader(file)
print("name:", row['name'])
it should be this
reader = csv.DictReader(file)
for row in reader:
print("name:", row['name'])
whereas this part after the loop quite likely is incorrect at all
(it is definitely incorrect is there are no rows)
ok
CSV indexing itself should work fine
if you have columns properly defined inside of it
ok
!e ```py
class MyClass:
def init(self):
print('Hello, world.')
MyClass() # a = MyClass()```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello, world.
missing enough spaces around #
#, iirc, is pep8's suggestion
An inline comment is a comment on the same line as a statement. Inline comments should be separated by at least two spaces from the statement. They should start with a # and a single space.
this is what happens to someone after PyCharms screams at them for five years
!e ```py
class MyClass:
def init(self, value):
print(value)
a = MyClass('apple')```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
apple
!e ```py
class MyClass:
def init(self, arg):
self.value = arg
def recall(self):
print(self.value)
a = MyClass('apple')
b = MyClass('banana')
a.recall()
print(a.value)
b.recall()
print(b.value)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | apple
002 | apple
003 | banana
004 | banana
!e py a = [] b = [] c = a print(a == b) # True. The object that a refers to and the object that b refers to are both empty lists. print(a is b) # False. The object that a refers to is not the same object that b refers to. print(a is c) # True. The object that a refers to is the same object that c refers to.== vs is
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | True
002 | False
003 | True
@vocal basin how do u approach for today leetcode problem!
reviewing style for one of my projects...
I found the only two comments I have in 1000 lines of code
which is just a list of idea previously thrown out
what are common patterns for solving tree-trelated problems?
dfs or bfs?
more generally
?
but not "graphs are generalisations of trees" type of generally
!e ```py
class MyClass:
def is_self(self, obj):
print(self is obj)
a = MyClass()
b = MyClass()
a.is_self(a) # a in () goes to arg
a.is_self(b) # b in () goes to arg```The meaning of self.
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | True
002 | False
what is a naïve/simple way to implement DFS for trees?
stacK?
no, stack is the more clever way
?
what would be the way to do that without introducing any extra data structures?
recurrsion? Now my brain is not able to process
one base condition?
i.e. what is that about the problem which allows to use recursion?
it root == None:
that's half of it
backtracking?
base condition and recurrsion
- there are base cases for which the answer is known
- what another condition?
we need to call recurssion in second condition
another condition is that the problem can be expressed as the same problem but for different (usually, smaller) input
example for sum:
def sum_of_values(tree: TreeNode | None) -> int:
if tree is None:
return 0
return tree.val + sum_of_values(tree.left) + sum_of_values(tree.right)
how can the same "breaking down into smaller problems" applied to the original task?
How can i change the nodes in that problem?
!e
import keyword
print(keyword.kwlist)
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
['False', 'None', 'True', 'and', 'as', 'assert', 'async', 'await', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']
!e
import keyword
print(keyword.softkwlist)
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
['_', 'case', 'match']
used to have async/await in softkwlist
in 3.12 it'll have type there also
!e
while True:
break
else:
print(...)
@vocal basin :warning: Your 3.11 eval job has completed with return code 0.
[No output]
!e
while False:
break
else:
print(...)
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
Ellipsis
Well Byy I will try later!
~~"unless pattern"
while condition:
break
else:
code()
```~~
||(joke)||
do code blocks allow ~~
they do
!d random
Source code: Lib/random.py
This module implements pseudo-random number generators for various distributions.
For integers, there is uniform selection from a range. For sequences, there is uniform selection of a random element, a function to generate a random permutation of a list in-place, and a function for random sampling without replacement.
On the real line, there are functions to compute uniform, normal (Gaussian), lognormal, negative exponential, gamma, and beta distributions. For generating distributions of angles, the von Mises distribution is available.
!stream 603996647118340134
✅ @onyx trout can now stream until <t:1686918402:f>.
!e py import random print(dir(random))
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
['BPF', 'LOG4', 'NV_MAGICCONST', 'RECIP_BPF', 'Random', 'SG_MAGICCONST', 'SystemRandom', 'TWOPI', '_ONE', '_Sequence', '_Set', '__all__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', '_accumulate', '_acos', '_bisect', '_ceil', '_cos', '_e', '_exp', '_floor', '_index', '_inst', '_isfinite', '_log', '_os', '_pi', '_random', '_repeat', '_sha512', '_sin', '_sqrt', '_test', '_test_generator', '_urandom', '_warn', 'betavariate', 'choice', 'choices', 'expovariate', 'gammavariate', 'gauss', 'getrandbits', 'getstate', 'lognormvariate', 'normalvariate', 'paretovariate', 'randbytes', 'randint', 'random', 'randrange', 'sample', 'seed', 'setstate', 'shuffle', 'triangular', 'uniform', 'vonmisesvariate', 'weibullvariate']
message passing
!if-name-main
This is a statement that is only true if the module (your source code) it appears in is being run directly, as opposed to being imported into another module. When you run your module, the __name__ special variable is automatically set to the string '__main__'. Conversely, when you import that same module into a different one, and run that, __name__ is instead set to the filename of your module minus the .py extension.
Example
# foo.py
print('spam')
if __name__ == '__main__':
print('eggs')
If you run the above module foo.py directly, both 'spam'and 'eggs' will be printed. Now consider this next example:
# bar.py
import foo
If you run this module named bar.py, it will execute the code in foo.py. First it will print 'spam', and then the if statement will fail, because __name__ will now be the string 'foo'.
Why would I do this?
• Your module is a library, but also has a special case where it can be run directly
• Your module is a library and you want to safeguard it against people running it directly (like what pip does)
• Your module is the main program, but has unit tests and the testing framework works by importing your module, and you want to avoid having your main code run during the test
!d random.randint
random.randint(a, b)```
Return a random integer *N* such that `a <= N <= b`. Alias for `randrange(a, b+1)`.
!e py import random print(type(random.randint))
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
<class 'method'>
as far as I've seen from sources, they construct a global instance and then expose its methods as functions
!d random.Random
class random.Random([seed])```
Class that implements the default pseudo-random number generator used by the [`random`](https://docs.python.org/3/library/random.html#module-random "random: Generate pseudo-random numbers with various common distributions.") module.
Deprecated since version 3.9: In the future, the *seed* must be one of the following types: `NoneType`, [`int`](https://docs.python.org/3/library/functions.html#int "int"), [`float`](https://docs.python.org/3/library/functions.html#float "float"), [`str`](https://docs.python.org/3/library/stdtypes.html#str "str"), [`bytes`](https://docs.python.org/3/library/stdtypes.html#bytes "bytes"), or [`bytearray`](https://docs.python.org/3/library/stdtypes.html#bytearray "bytearray").
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
['VERSION', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__setstate__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_randbelow', '_randbelow_with_getrandbits', '_randbelow_without_getrandbits', 'betavariate', 'choice', 'choices', 'expovariate', 'gammavariate', 'gauss', 'gauss_next', 'getrandbits', 'getstate', 'lognormvariate', 'normalvariate', 'paretovariate', 'randbytes', 'randint', 'random', 'randrange', 'sample', 'seed', 'setstate', 'shuffle', 'triangular', 'uniform', 'vonmisesvariate', 'weibullvariate']
!d math.ceil
math.ceil(x)```
Return the ceiling of *x*, the smallest integer greater than or equal to *x*. If *x* is not a float, delegates to [`x.__ceil__`](https://docs.python.org/3/reference/datamodel.html#object.__ceil__ "object.__ceil__"), which should return an [`Integral`](https://docs.python.org/3/library/numbers.html#numbers.Integral "numbers.Integral") value.
!d round
round(number, ndigits=None)```
Return *number* rounded to *ndigits* precision after the decimal point. If *ndigits* is omitted or is `None`, it returns the nearest integer to its input.
For the built-in types supporting [`round()`](https://docs.python.org/3/library/functions.html#round "round"), values are rounded to the closest multiple of 10 to the power minus *ndigits*; if two multiples are equally close, rounding is done toward the even choice (so, for example, both `round(0.5)` and `round(-0.5)` are `0`, and `round(1.5)` is `2`). Any integer value is valid for *ndigits* (positive, zero, or negative). The return value is an integer if *ndigits* is omitted or `None`. Otherwise, the return value has the same type as *number*.
For a general Python object `number`, `round` delegates to `number.__round__`.
!d int
class int(x=0)``````py
class int(x, base=10)```
Return an integer object constructed from a number or string *x*, or return `0` if no arguments are given. If *x* defines `__int__()`, `int(x)` returns `x.__int__()`. If *x* defines `__index__()`, it returns `x.__index__()`. If *x* defines `__trunc__()`, it returns `x.__trunc__()`. For floating point numbers, this truncates towards zero.
If *x* is not a number or if *base* is given, then *x* must be a string, [`bytes`](https://docs.python.org/3/library/stdtypes.html#bytes "bytes"), or [`bytearray`](https://docs.python.org/3/library/stdtypes.html#bytearray "bytearray") instance representing an integer in radix *base*. Optionally, the string can be preceded by `+` or `-` (with no space in between), have leading zeros, be surrounded by whitespace, and have single underscores interspersed between digits.
!e
from math import pi
print(round(pi, 3))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
3.142
!e
from math import pi, e
print(round(pi), round(e))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
3 3
!d round
round(number, ndigits=None)```
Return *number* rounded to *ndigits* precision after the decimal point. If *ndigits* is omitted or is `None`, it returns the nearest integer to its input.
For the built-in types supporting [`round()`](https://docs.python.org/3/library/functions.html#round "round"), values are rounded to the closest multiple of 10 to the power minus *ndigits*; if two multiples are equally close, rounding is done toward the even choice (so, for example, both `round(0.5)` and `round(-0.5)` are `0`, and `round(1.5)` is `2`). Any integer value is valid for *ndigits* (positive, zero, or negative). The return value is an integer if *ndigits* is omitted or `None`. Otherwise, the return value has the same type as *number*.
For a general Python object `number`, `round` delegates to `number.__round__`.
Our Pi Playlist (more videos): http://bit.ly/PiPlaylist
The State of Indiana nearly passed a law which would have made Pi equal 3.2 - strange but true.
More links & stuff in full description below ↓↓↓
This video features Dr James Grime - https://twitter.com/jamesgrime
The video about squaring circles: https://www.youtube.com/watch?v=CMP9a2J4B...
.xkcd 2205
!e py a = print('Hello!') print(a)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Hello!
002 | None
I tried making code be clever and it turned out ugly
(parent_height(hl, hr)? == hp)
.then_some(())
.ok_or(BalancingError::HeightMismatch {
children: (hl, hr),
parent: hp,
})
I guess I'll go with the dumb version
if parent_height(hl, hr)? == hp {
Ok(())
} else {
Err(BalancingError::HeightMismatch {
children: (hl, hr),
parent: hp,
})
}
(AVL trees)
the shape of the first one looks too much like Lisp
!pypi fuzzywuzzy
!e py text = ' abc def ghi jkl ' print(repr(text)) text = text.strip() print(repr(text))
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | ' abc def ghi jkl '
002 | 'abc def ghi jkl'
👋
anyone in here who could look at my code for a second? im getting circular import errors and its a bit too complicated to ask for help in the help-forum. im currently in the code/help voice channel
do you have type hints?
if yes, make sure you have from __future__ import annotations
type hints as in :str and such?
yes
there are some circular dependencies realised during the importing
do you run any code in modules that's not function/class definition?
not really sure what you mean by this, dont have all the terminology down yet
do you have any code at all in modules that's outside import, def and class statements/blocks?
ahh no i dont really
do you use from <module> import <member> syntax?
replace with import <module>
why?
this adds a level of indirection
which allows delayed dependency
another thing you can (but shouldn't) do is to use local imports
the "real" solution is actually to get rid of cyclic dependencies themselves
(in one way or another)
ill adjust my import statements and see if it improves anything
Cows have four legs. You have two. How confident do you feel?
Pandas beat themselves up.
Temporarily inconvenienced millionaire.
...jfc
it worked!
"ho many legs does this Cow have"
https://doc.rust-lang.org/std/borrow/enum.Cow.html
A clone-on-write smart pointer.
hey there
@dense ibex Are you sure it's a full boot and not just a fastboot?
Well no wonder it's faster.
It's essentially resuming.
What they get shitty with is installing macos in non mac.
I expect they'd not be pleased with non macos on mac, but I don't think they're as aggressive about that. I could be wrong.
time to check how many commits today I have so far
seems to be peak overall, as far as the history shows
code slowly approaching 7K lines
but I'll be removing quite a big portion of it soon
Sure, but at the cost of compromising the long-term viability of the ecosystem.
Increasing the need for human management of it.
genetically modified products is the least questionable practice by Monsanto
For the most part, probably.
like
the thing they do to avoid regulation is way worse
There is always the danger of unforseen consequences.
well, GM products in majority of cases are safer than non-GM products
including for reasons of regulation
I was thinking more in the realm of pesticides.
But yeah, the pesticides for sure
so slow...
Dragonfruit is pretty, but it tastes disappointing.
Same
God the chicken fight bullshit...
The panda, kinda.
Minutes wasted
the code, that I'm working on, still has this as the only comment
Every time I look in the mirror at my code
I have a 72818-line ANSI file
I'm trying to find a way to view it adequately
idk what this means
✅ VS Code and ANSI extension trying to explode the CPU
Or it's a percentage
src
├───core
│ └───utils
└───routers
└───api
└───v1
├───healthcheck
└───users
@dense ibex You had me at confused.
Your code is about 0.147% bugs
I'm always at the ready to be confused.
metaprogramming
If a cyborg centipede trips, is it a segmentation fault?
HieraRchical
Yeah that'll work
...yeech?
no cognition
No
No
no no no
No
Wait hold on, let me th-NO
Okay so
No
But like
No tho
IT WAS AMAZING!
More like crappy hour
anyone from india?
bugs at almost 3
idk what "bugs" means in this context
bug sounds like 3 would be too much
I am not from India. Not sure if we have anyone in VC currently that is
just to share a funny interview meme i asked
lol
@rugged root I used to listen to that song all the time.
Superflat is a postmodern art movement, founded by the artist Takashi Murakami, which is influenced by manga and anime. However, superflat does not have an explicit definition because Takashi Murakami does not want to limit the movement, but rather leave room for it to grow and evolve over time.Superflat is also the name of a 2000 art exhibition...
The Toyota Alphard (Japanese: トヨタ・アルファード, Hepburn: Toyota Arufādo) is a minivan produced by the Japanese automaker Toyota since 2002. It is available as a seven or eight-seater with petrol and hybrid engine options. Hybrid variants have been available since 2003, which incorporates Toyota's Hybrid Synergy Drive technology. It is Toyota's flagshi...
Also, if super means above, would that be above flat, therefore maybe bumpy?
The Nissan Elgrand (Japanese: 日産・エルグランド, Hepburn: Nissan Erugurando) is a minivan manufactured by Nissan Shatai for Nissan since 1997, available in three generations, with model codes E50 (1997–2002), E51 (2002–2010), and E52 (2010–present). The E50 Elgrand was also configured and produced as a light commercial vehicle from 1998 to 2017.
The Elg...
"What happens if you have to drive away from an erupting volcano?"
https://youtu.be/4XVd0de9t-0
cant resist my urge anymore LMFAOOOOOOOOOOOOOOOOO, im dying , imagine sitting for an SQL/PLSQL interview and the only real experience u have with SQL is w3Schools online SQL simulator
TCS Interview Process, TCS interview experience ,TCS interview questions , TCS interview questions for freshers 2022 , TCS interview process for experienced ,
TCS SQL/ PLSQL Real Interview BY TCS Team ! TCS Interview Recording Simulation ! TCS Ninja Hiring
TCS Interview Process, TCS interview experience ,TCS interview questions , TCS interview ...
old men cars like these? https://en.wikipedia.org/wiki/Presidential_state_car_(United_States)
The United States presidential state car (nicknamed "the Beast", "Cadillac One", "First Car"; code named "Stagecoach") is the official state car of the president of the United States.
United States presidents embraced automotive technology in the early 20th-century with President William Howard Taft's purchase of four cars and the conversion of ...
Convoy!
no one knows PL/SQL anyway
it's not supposed to be used
I'm so mad
Like
I could accept it being inspired by
In fairness, I don't think they name him as such
"like, it's a pretend game all the way
Oracle pretends to be a software company
people writing PL/SQL pretend to be programmers"
Hello
Do you know how to access sms in mobile with kivy ?
I think you need to hook into pyjnius.
Kivy still around?
which uses pyjnius/pyobjus inside
Plyer, okay.
Utopia Series
Season 01
Trailer.
Created & Written by
Dennis Kelly
Produced by
Rebekah Wray-Rogers
Directed by
Marc Munden
2013
seems like
I want to receive sms
I haven't heard of it before joining pydis
(me being noob)
An armored partition wall, I expect.
what
The Smarter Every Day video with the opposing bullets. How you would reduce risk loading one gun while in the line of fire of the opposing, loaded gun.
Task objectives:
Design and implement a simplified single-user SQL engine called MiniSQL. It should allow users to input SQL statements through a character interface to perform basic CRUD (Create, Retrieve, Update, Delete) operations and optimize performance using indexes.
By designing and implementing MiniSQL, students will improve their system programming skills and deepen their understanding of the underlying design of database management systems.
System requirements:
Data types: Support three basic data types: integer, char(n), float.
Table definition: A table can have up to 32 attributes, each of which can be specified as unique. It should support defining a single attribute as the primary key.
Index definition: Automatically build a B+ tree index for the primary attribute of a table, and also create a B+ tree index for attributes declared as unique.
Data operations: Support queries with multiple conditions connected by "and" or "or". It should support both equality and range queries. It should also support inserting one record at a time and deleting one or multiple records at a time.
For the implementation, use a source code management tool (such as Git) for code management. The code submission history and the information of each submission should be clear and explicit. Additionally, the written code should adhere to coding standards and have a good code style.
@somber heath they used a partition
Ding ding.
Yikes.
dig yourself in even deeper: the definitive guide
In this video, I show you how to install and use GPT Engineer, which is a new project on the top of the GitHub trending repos that allows you to enter a prompt and build an entire codebase project easily. It's very impressive and already better than Smol Developer.
Enjoy :)
Become a Patron 🔥 - https://patreon.com/MatthewBerman
Join the Disco...
with that you could do all of that but is the easy way
I'm experiencing again how VS Code just works
yeah it have a plugin for a autonous agent
and with that agent you could do that
i don't remember the name of the agent
I started a CLI tool inside a docker container
docker container is running on a remote server
VS Code automatically forwards the port all the way through
so I can access it though 127.0.0.1:8080 on my local machine
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.
just, like, the ability to have this with 0 effort
well, eh, I wouldn't expect it to fail on data structures specifically
speaking of B-trees
I'd gone through a phase when it was easier for me to use B-trees compared to AVL trees
AVL trees feel fragile
but, now that I've implemented them in different situations for >20 times, it's easier
@amber raptor Regarding Kivy, the last release was last month. So it's still on trucking
there is a number of separate tasks,
at least, the following:
- parse SQL
- implement B+ tree
those two don't intersect; that will help guide the development process
Now available digitally worldwide!!(全世界配信中!)
http://avex.jp/pikotaro/discography/
Here come brand new single for 2017!!
Just singing about what I like... that's it :)
If you get what you like, you'll get happy
and you'd start dancing... right?!
After all, that's what dance music is all about ;)
I looooooove OJ♥
2017年1発目のド新曲!
ただ、好きなものを好きと言う!それが...
someone know about UI? i have some code for a chatbot but i don't know how to add the ui and also deploy it into something like google cloud, i'm just asking about some way to do it bc idk, not to do all the work.
if you're deploying it on the cloud, are you making a web UI?
yeah
!rule 9 even hypothetically
i have the backend for a chatbot, i already have the code
do you have a working API already?
like the functions working?
if is that yes
HTTP API
nop
rip
@midnight agate That
things I'd suggest (in order)
https://fastapi.tiangolo.com/
https://www.djangoproject.com/
https://docs.aiohttp.org/en/stable/web_quickstart.html
okay
good luck
Is there such a thing as unstable diffusion?
Slightly unhinged diffusion?
Completely divorced from reality?
Pure potassium thrown in water
langchain + aliens
The Erehwon of API pricing.
Wii Sports has officially been chosen as one of the next games for the World Video Game Hall of Fame. At The Strong Museum in New York, this category is designed for video games that have had a heavy cultural impact on society, making people's lives better. What did Wii Sports do that deserves this spot?
FULL WII SPORTS GAMEPLAY FOOTAGE: https:...
@violet cosmos Your audio is bleeding.
wym
my headphones where prob load
loud
Torchwood, episode one, scene one.
"Estrogen. Definitely estrogen."
From Torchwood S01E01 - Everything Changes
Panko?
"why visit Earth out of all places"
there was a very bad Russian movie where aliens treated Earth as a high level quarantine zone because of hostility
Battle Royale Official Blu-Ray Trailer - Cult Classic Movie (2000)
Subscribe to TRAILERS: http://bit.ly/sxaw6h
FIRST TIME IN REGION 1! March 20, 2012.
In the future, the Japanese government captures a class of ninth-grade students and forces them to kill each other under the revolutionary "Battle Royale" act.
Hello everyone how's your day
Decent, you?
on the other side of the ground is good enough for me.
hey guys
_ is common to mark something you don't bind to
basically "ignore" soft keyword
can't spell
there is no else in match, "match anything and ignore" is the idiomatic equivalent
isn't _ should be like "_"
Rust and C# do the same
depends on what you're trying to do
case _: is "default"
ohhhhhh
but C# has default in its keyword form
that's something new i learn
it's not a special case
this binds anything to name
case name:
...
when name is _, it doesn't actually bind anything
gtg brk
!e
match 1:
case _:
print(_)
@vocal basin :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 3, in <module>
003 | print(_)
004 | ^
005 | NameError: name '_' is not defined
@rugged root "but what about inhaling soda?"
Dr. Pepper is okay for that. I mean hell, it's got Dr. in the name!
there's also ethanol inhalation (in its less worse form -- as a collateral effect during certain medications)
does it read :eyes as it should
British imperialism joke count so far: somewhere around 10
!code
@echo garden first, because can't determine the language
second, intent over guess every single time
The worst kind of VR.
!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.
Changeling.
Spintronics (a portmanteau meaning spin transport electronics), also known as spin electronics, is the study of the intrinsic spin of the electron and its associated magnetic moment, in addition to its fundamental electronic charge, in solid-state devices. The field of spintronics concerns spin-charge coupling in metallic systems; the analogous ...
Pizza on pizza violence?
One topping? Probably something garlic.
So, basically garlic bread.
I don't mind cottage cheese.
Composite video.
Compact mode.
@lunar haven what you using to make gui ?
you can try kivy
@lunar haven
@lunar haven I observe you like ducks
dunno ..but it's cool
i love ducks and parrots ...aliens are scary
@languid hedge Check out the #voice-verification channel. That'll tell you what you need to know about the voice gate
ohh
import of the random module and use of random.randint.
Does it have web based?
They went with random floats rounded to 2 decimal points, I think.
in that you can do something like
if platform == "Window" :
import this
elif platform == "IOS" :
import that
cause many python library are not cross compatible , something you will have to use 2 different library for 1 function
i tried fortnight .... if you shoot once , magically many tall building emerges
i use to play VCop2
Hello @rugged root
VCop?
You
Me?
Sorry, I meant yo
virtua cop i guess
How's it going?
Good
i really like the song of that movie
Provided to YouTube by Parlophone UK
Holding Out For A Hero (Russian) · Polina
Tetris
℗ 2023 Marv Music Recording Limited and Parlophone Records Limited
Masterer: Barry Grint
Engineer: Mark Taylor
Programmer: Mark Taylor
Producer: Mark Taylor (Metrophonic)
Vocals: Polina
Composer: Dean Pitchford
Composer: Jim Steinman
Auto-generated by YouT...
bbl
Not all seasons of Supernatural are equal.
I use to play apex legend a lot ... stop playing during the placement period .. now my skills are gone
I was literally nauseous for the whole leviathan arc.
Mark Sheppard.
The grey burger goo.
Also I was on evil meds.
The goo was just this plasticy looking stuff.
They did the end of Supernatural right in the middle of covid, so that altered things.
They tied it off, but I felt like it could have been better.
Which one is that?
ironic
Tenna (Téna in local dialect) is a comune (municipality) in Trentino in the northern Italian region Trentino–Alto Adige/Südtirol, located about 13 kilometres (8 mi) southeast of Trento.
@boreal shale Well done
The command you are trying to time doesn't exist. Use .help for a list of commands.
.resident evil
Tenor tanner.
what does it do ?
Tanner may be a surname of either English, German or Finnish origin.
Tanner
Look up tanner or Tanner in Wiktionary, the free dictionary. Tanner may refer to: Tanner (occupation), the tanning of leather and hides Tanner (given name)
Tanner on Tanner
Tanner on Tanner is a 2004 4-part comedy miniseries. It is the sequel to the 1988 Robert Altman-directed and Garry Trudeau-written miniseries about a failed
The canvas awaits its final brushstrokes. The stage calls for its lead actor. The novel needs its final chapter. It’s time to face your fears. One. Last. Time.The series, which has left a mark on narrative-driven first-person psychological horror games, returns to tell its final spine-chilling story in Layers of Fear.. The series’ crowning work ...
$25.49
119
!e
def hello(func):
def wrapper():
print("hello")
func()
print("goodbye")
return wrapper
@hello
def ham():
print("Love me some ham")
ham()
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | hello
002 | Love me some ham
003 | goodbye
!e
def decor1(func):
def wrap():
print("************")
func()
print("************")
return wrap
def decor2(func):
def wrap():
print("@@@@@@@@@@@@")
func()
print("@@@@@@@@@@@@")
return wrap
@decor1
@decor2
def sayhellogfg():
print("Hello")
def saygfg():
print("GeekforGeeks")
sayhellogfg()
saygfg()
@thorn wharf :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | ************
002 | @@@@@@@@@@@@
003 | Hello
004 | @@@@@@@@@@@@
005 | ************
006 | GeekforGeeks
@turbid sandal
@cinder dawn Your mic is stuck open, can you mute and fix it?
fixed, sorry
i appreciate that a lot
what mouse is it ?
(Logitech G903)
winston ass mf
Logitech's wireless connection quality is garbage
double click issues i am done with logitech
the smell must be catastrophic
on every single device, even headset
it seems to be buffering events incorrectly
The mouse I use
the worst part is, the sauce and peanut butter has been sitting infront of a window
in reality it doesn't properly double-click
it ignores click events and handles them later
it's an error
and it's probably more often happening to wireless ones
I've tried everything, still no module named pip, gelp me please..
I'd expect it to be iin firmware
run the installer again
select Modify (if it appears)
make sure you have pip enabled during installation
I have it on, do you have anydesk can you help me please important
or try running this:
py -m ensurepip
it says that the operation was not successful because the software has a virus
@vocal basin
thats the one thing about python that bugs me a little, this process to aquire all things python..
what AV software do you use?
well, if AVG prevents you from using pip, disable it
@vocal basin
what's the error now?
after disabling the antivirus
@turbid sandal with great power comes great responsibility 😜
@lunar haven im nooby asf but can u not put a input statement to get the users "yes" or "no" to continue
😦
Okay 😂
bro is cyber bullying
He is using Tkinter and building a UI where he can interact with clicking and not by passing inputs in terminal
yee i guessed that after i got the answer
.
@midnight agate files in a repository evolving over time, with two different metrics
someones getting coal for christmas
santa isn't real
bros getting attacked by the tickle monster
@waxen barn doesnt that mean u have to reemrge slowly
Yep exactly
@waxen barn have u ever felt the pain in any way, even if it was slight
@echo garden Your mic was open, so I scooted you to afk
We were hearing your background noise
!stream 1087096079645954259
✅ @proven raft can now stream until <t:1686948115:f>.
@trail badge Sup
press Fn on ur keyoard first
Python tutorial for beginners full course
#python #tutorial #beginners
⭐️Time Stamps⭐️
#1 (00:00:00) Python tutorial for beginners 🐍
#2 (00:05:57) variables ✘
#3 (00;17;38) multiple assignment 🔠
#4 (00:20:27) string methods 〰️
#5 (00:25:13) type cast 💱
#6 (00:30:14) user input ⌨️
#7 (00:36:50) math functions 🧮
#8 (00:40:58...
clear && python script.py
I generally don't use VS Code itself for running code
I run the code from terminal
what's going on here
wait did it work
- I don't use the debugger
like, at all
another reason:
Docker
most of python code I run is either in build step, or running as a service
wrong operating system terminal
are you sure you're in powershell?
but yes
it doesn't support
there is ;
but that's ||
py asdhbkjashsdjikhas ; echo 6
professional examples
"presentation": {
"clear": true
}
hypothetically
also this
does either of those two work? no idea
alongside name, type, console, etc.
I think VS Code's thing is only worth it for debugging
like, for me it feels inconvenient, even compared to terminal
terminal allows, for example, to just add > output.txt to the command
whereas, in reality, the only command you ever need is this:
docker compose up -d --build
no, i always use the terminal
debugging isn't limited to using the debugger
logging, tracing (the other tracing), etc. are useful too
who types it in? I press up and enter
to run previous command
my shell also completes previous commands I have typed
has anyone else heard using the debugger being referred to as "tracing"?
gdb before the command
maybe I'm just reading a very poorly translated/written Wikipedia article
only sometimes, mostly from 1st year students tbh
like
it feels like someone did as much as possible to merge two processes together to confuse everyone
I use that sometimes at work, but I dont set up run-configs because the build system and all is too complex
so I just connect with process ID
or more often than not just use breakpoint() since terminal debugger is good enough for basic issues
very rigid translation just to point out specific parts
Tracing [is a] process of step-by-step execution of a program. In tracing mode, the programmer sees the sequence of execution of commands and values of variables at each step of the execution of the program, which makes it easier to detect errors. Tracing can be started and stopped at any location inside the program, execution can be interrupted at each command or at breakpoints, tracing can be performed with stepping into procedures and without, and also can be done in reverse (step back).
(this is the whole article)
just use Tor, get throttled all the time
@rugged root network issues?
something goes terribly wrong
ugghh
got terrified for a second because looked at a wrong number and thought tests took 0.41s to run instead of expected 0.00s
Erm, just left
looks like Rust is quite good at figuring out what to inline
I explicitly told it what to do and gained 0% performance
(two metrics merged)