#voice-chat-text-0
1 messages ยท Page 667 of 1
zip, enumerate, subscription/indicies, dict.
**it has to be a negative number
your going to have to import math
import math
math.sqrt(-16)
idk what a complex number is
9th
algebra 1
this is for cs
yea
so how would i do
complex
where u have to enter a number and it goes "Enter a number: -16"
and then u get 4.0
in your code put this at the top
import math as math
import complex as complex
that will import the 2 classes for u
it says that this line is wrong
math.sqrt(-16)import math as math
then to do any function u could do
complex.XXX = ************
math.XXX = ***************
import complex as complex
complex.sqrt(-16)
or something like that
i just need to find the square root of -16
or have a way to type in a number
and get the square root
yea it would help
yea i can do normal square roots
but i cant do it in code
ok so whats the difference again about complex math and math
...it's definitely more complex.
then do
import complex as complex
cmplx_num = input("what number would you like to find the sqrt of")
print(complex.sqrt(cmplx_num))
is write the code to input a number of my choice
then use the absolute value function to make sure that if i use a negative number it doesnt crash
ok so how would i use absolute value in a negative number
and then get the square root
hi
hi
why can't we talk?
youre new to this channel
you need to have 50 msg n be memmber for 3 days
sure what do u need
because I took up coding again and I'm following this tutorial about while loops
and idk what did I do wrong
maybe im wont be the best help and opal might be better but ill do my best
ok can u share ur code
!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.
while True:
mission = input("-").lower()
if mission == "shoot" :
print("Nice shot! You saved the president")
elif mission == "leave":
print("Wise choice!")
elif mission == "quit":
break
else:
print("GG")
it's not printing anything
it just asks for another input
let me see I'll close VSC and try again
it's a really straight-forward exercise
idk why it wasn't working
it was working now
it is**
I guess it was an editor's problem
thanks
hope I get verified soon haha
alright
thanks
sup people
sup
@fiery hearth thank you!
Hey wssup @somber heath
o/
name = "roxy"
height = "50cm"
color = "Grey"
race = "german shepherd"
def dog_info(self):
return f"this dogs name is {name} his race is {race} he is a {color} dog's height is{race}"
pass
dog1 = Animal
print(dog1.name)
print(dog1.height)
print(dog1.color)
print(dog1.race)
print(dog1.dog_info)
it gives an error of <function Animal.dog_info at 0x0000028B3A3C9D30>
its a mistake i wanted it to look like python lol
You want to call the method. You're missing parentheses.
im pretty new
Right now, you're only printing references to the methods
print(dog1.dog_info)
#vs
print(dog1.dog_info())```
pass is not needed there, either.
because if you have an __init__ method then it won't get executed if you don't have parenthesis on the class, right @somber heath ?
Parentheses on class declarations are only needed if you're inheriting from another class.
No I meant if he's creating an object
wait it still doesn't work
obj = someclass()
When you're instantiating a class, then yes, parentheses are required.
class MyList(list): #<-- This is inheritance.
pass
my_list = MyList()
my_list.append('Hello')
class MyBlank:
pass
my_blank = MyBlank()```
it says im missing self
return f"this dogs name is {name} his race is {race} he is a {color} dog's height is{race}" add self with the variables
You only need the paretheses for the dog_info call.
You've defined the other things as strings, not methods to be called
here
return f"this dogs name is {self.name} his race is {self.race} he is a {self.color} dog's height is{self.race}"
i did that look
THANKS IT WORKS
man I'm still not used to VSCode
i am man and its great
Now, if you wanted, you could put @property above your dog_info def. That way you could drop the parentheses in the print.
Not print's.
!e
def __init__(self):
self._value = 'Hello, world.'
@property
def value(self):
return self._value
my_class = MyClass()
print(my_class.value)```
what's intit_ do
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Hello, world.
what's intit_ do
@pale dew it's a constructor
It runs when you instantiate a class.
Basically when you instantiate a class, the __init__ executes immediately
setting up obj variables and stuff
that you pass in
or not
Basically anything that you do in the __init__ get's executed as soon as the class is instantiated
you could call in methods here, set variables, etc
Methods, functions within a class, which have double underscores in that fashion are called "magic methods", or "dunder methods". Double underscore methods.
But the __init__ dunder/magic method is, as mentioned, refered to as the constructor of a class.
@pale dew ^
Understanding magic methods is a large part of understanding what goes on behind the scenes in Python syntax.
A lot of what you do is actually, sneakily, calling these methods without telling you.
>>>num = 1
>>>num + 1
2
>>>num.__add__(1)
2```
>>>num = 1
>>>num + 1
2
>>>num.__add__(1)
2```
@somber heath everything is primarily an object in python so lol
class Animal():
name = "roxy"
height = "50cm"
color = "Grey"
race = "german shepherd"
dog_bark = "Burk"
def dog_info(self):
return f"this dogs name is {self.name} his race is {self.race} he is a {self.color} dog, his height is{self.race}"
def voice(self):
return f"this dogs bark sounds like this {self.dog_bark} So cute "
"""This class has data of name,height,color,dog_bark,race of a dog
it contains a function that returns all information about the dog
and a function that lets the user hear the dogs bark """
dog1 = Animal()
dog2 = Animal()
print(dog1.dog_info())
print(dog1.voice())
dog2.name = "var"
dog2.height="25"
dog2.color = "white"
dog2.race = "Bichon"
dog2.dog_bark = "BARK"
print(dog2.dog_info())
print(dog2.voice())```
Create a class "animal".
Fill it with data and methods of your choice.
Write docking strings with method description in class methods
This was my task do you think its okay
class MyInt(int):
def __add__(self, v):
return self * v
num = MyInt(5)
num == 5
(num + 1) == 5
(num + 2) == 10```
This was my task do you think its okay
@pale dew wait, were you asking help on your homework? lol
dude
but i mostly did it by myself
wait for real?
If it's an assignment, we can only guide you in the right direction
but not do the actual coding part lol
General assistance is acceptable. Doing the work for you is not. We can teach you the python you need to be able to apply concepts to your work.
General assistance is acceptable. Doing the work for you is not. We can teach you the python you need to be able to them apply concepts to your work.
@somber heath yeah
well you only told me about ()
hahahahahah yeah it's fine
well is it good?
yeah rate my home task
Create a class "animal".
Fill it with data and methods of your choice.
Write docking strings with method description in class methods
the docstring should be on the upper end of the method
def voice(self): """This class has data of name,height,color,dog_bark,race of a dog it contains a function that returns all information about the dog and a function that lets the user hear the dogs bark """ return f"this dogs bark sounds like this {self.dog_bark} So cute "
hi pythons
actually sorry
Pythonistas.
career criteria
if you're describing what your class does then it should be below class Animal:
return to monke
Pythonistas.
@vestal halo
ok bro understood
like this @scarlet drift
like this @scarlet drift
@pale dew yes
is it good?
And when referring to class functions, use the word methods instead
the docstring that describes the method should be below def function_name()
docstrings should be in the scope of things that you defining
def dog_info(self):
"""Your doc string"""
<your code here>
yes
and try to have gaps lol
like
def dog_info(self):
"""Your doc string"""
<your code here>
that's how I like it anyways
it looks clean and doesn't get mixed up with your code
@pale dew
i didn't put a gap right after
so that the text would look a bit smaller
and shorter
okay im handing it in
Yeah this looks fine too
okay thanks for help
okay thanks for help
@pale dew anytime man
@hallow warren not fulfilled the criteria to talk on voice channel
thats why mic server muted
By the way, for future references, if you click on the user, in the roles section, you can see who is voice verified
@hallow warren
@vestal halo what must I do to obtain permission to speak?
@hallow warren The criteria for voice verification is to have sent 50 messages without deletion and be in the channel for at least 3 days
@vestal halo what must I do to obtain permission to speak?
@hallow warren check #voice-verification and fulfill the requirements
for event in pygame.event.get():
pygame.error: video system not initialized
Anyone familiar with this error?
@foggy sluice Check the pygame channel
or open up a help channel
Someone with pygame expertise will help you there
sorry my bad there is no pygame channel, but there is a game-dev channel @foggy sluice
I will check that one out
for event in pygame.event.get():
pygame.error: video system not initialized
@foggy sluice did yu dopygame.init()
and did you make a display
I have got it work now!
argh, discord died
ye
bruh how are your messages sending?
only every so often
Test test?
The answer is, most of them weren't ๐
is it now?
not a chance Rabbit
Evening
gevening
also in many channels messages won't load
Wow it took a long time to send that reply
discord broken
hey is discord glitching for anyone? Message failed to load Try Again?
yep
have to retry like 5 times to send a msg xD
Want some help with that PR Hem?
nope it's not
yes it is lol
Discord is on the struggle bus this morning
Hmm, not to sure about what to work on next on my project
@swift valley u finshed the module?
Fair enough, just making myself drowsy really
Even clicking on the message box takes forever
I'm too lazy to program today, I guess I will spend time watching youtube tonight
watch anime
I spent too much time already programming today, lol
I spend half my morning watching streams lol
game streams?
bot cmds not working?
Seems like it's getting better? Not too sure though
hello?
haha
@pure path it is for all lol
ik
@lusty marsh The Kivy maintainers have a project related to compiling Python to Android
Something something buildozer
ohh images do load
that's good
??
!ping
it's cause most of the messages in advanced discussions were like
"See #โ๏ฝhow-to-get-help "
"NOt the channel see #โ๏ฝhow-to-get-help "
Erm, is it just me, or has the "available help channels" category disappeared?
It has, bot is hiccuping
yea it is not there
๐
I'm facepalming to eternity
Silly yellow bananas from Nuts.com are the perfect treat for banana lovers, and just like Runts. Available in bulk.
Oh, I remember having those on vacation in America
ohh I want to eat those
haha, very true!
this is so USA
https://en.wikipedia.org/wiki/White_Settlement,_Texas
look at #help-pear
๐
@rugged root why would u need to store the message id?
why not store the message object instead?
oh, idk whatever redis
is
@rugged root May I ask why do u guys use redis and what is redis?
ohh
Hey guys, just a general question, how can I clone my laptop hard disk into a usb and then put the disk image into a new ssd ?
I purchased 265Gb usb
~ this?
I think it flips the bits of an integer?
But it's essentially equivalent to -x - 1?
!e
print(~1)
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
-2
!e
print(~2)
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
-3
!e
print(~0)
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
-1
You have to imagine an infinite sequence of 0s extending leftwards from a positive integer.
And 1s for a negative integer.
!e
print(bin(2))
print(bin(~2))```
@slender bison :white_check_mark: Your eval job has completed with return code 0.
001 | 0b10
002 | -0b11
Hello @stuck furnace @rugged root
I hope y'all are sound?
More or less. 'bout yourself?
Hey ๐
!e
print(bin(21))
print(bin(~21))```
@slender bison :white_check_mark: Your eval job has completed with return code 0.
001 | 0b10101
002 | -0b10110
what is this error?
!e
print(~bin(8))
@lusty marsh :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | TypeError: bad operand type for unary ~: 'str'
Why this person has no name?
hmm?
!e
print(bin(~8))
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
-0b1001
Oh, I think someone needs help in the code/help channel.
trying to pop smth not in the list @pure path
Yep, it's 2s complement.
ohh
Username: Krish#4140 btw if you wondering
!e
print(1-5)
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
-4
So 3 is ...00000011 and -4 is ...111111100
!e
mylist = ["h", "i", "j"]
mylist.pop(1)
print(mylist)
mylist.pop(8)
@gentle flint :x: Your eval job has completed with return code 1.
001 | ['h', 'j']
002 | Traceback (most recent call last):
003 | File "<string>", line 4, in <module>
004 | IndexError: pop index out of range
I've never used ~ except for code golf ๐
But it might be useful for overloading.
!A
cin
Nice to hear from you guys @rugged root @stuck furnace
I am in class now, learning bits and parts of AI... mainly to do with Data Science.
Oh nice
!rule 5
5. Do not provide or request help on projects that may break laws, breach terms of services, be considered malicious or inappropriate. Do not help with ongoing exams. Do not provide or request solutions for graded assignments, although general guidance is okay.
.uwu 775387274414129172
5. Do not pwovide ow wequest hewp on pwojects dat may bweak waws, bweach tewms of sewvices, be considewed mawicious ow inappwopwiate. Do not hewp wid ongoing exams. Do not pwovide ow wequest sowutions fow gwaded assignments, awfough genewaw guidance is okay.
oof
.uwu hello world
hewwo wowwd
.uwu uwu
uwu
.uwu We the People of the United States, in Order to form a more perfect Union, establish Justice, insure domestic Tranquility, provide for the common defense, promote the general Welfare, and secure the Blessings of Liberty to ourselves and our Posterity, do ordain and establish this Constitution for the United States of America.
We de Peopwe of de United States, in Owdew to fowm a mowe pewfect Union, estabwish Justice, insuwe domestic Twanquiwity, pwovide fow de common defense, pwomote de genewaw Wewfawe, and secuwe de Bwessings of Wibewty to ouwsewves and ouw Postewity, do owdain and estabwish dis Constitution fow de United States of Amewica.
.uwu ```py
if offset >= 10 and ndot or isfirst:
globs = np.append(globs, (x, y))
else:
pass
if offset >= 10 and ndot ow isfwiwst:
gwobs = np.append(gwobs, (x, y))
ewse:
pass
yikes
Don't make me uwu GNU/Linux
It works with eveything
.uwu ```py
import pail.cv as cv
import PIL.Image
globbed = cv.ObjectDetection("pail\test.jpg", showmatches=True, globlike=True).run()
globbed = cv.groupings(globbed[0], globbed[1])
PIL.Image.fromarray(globbed).save("edit.png")
impowt paiw.cv as cv
impowt PIW.Image
gwobbed = cv.ObjectDetection("paiw\test.jpg", showmatches=Twue, gwobwike=Twue).wun()
gwobbed = cv.gwoupings(gwobbed[0], gwobbed[1])
PIW.Image.fwomawway(gwobbed).save("edit.png")
.uwu IndexError: invalid index to scalar variable.
IndexEwwow: invawid index to scawaw vawiabwe.
hey can u guys help me
sure
about what?
ok so i need to fix some code
i made this
if ( word == not "Ada Lovelace"):
print("Not Correct")
if word != "Ada Lovelace"
==
!=
it says its wrong
=[
no its wrong on that line
=3c <-- still my fave smug smiley face
!e
print(True is True)
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
True
so i put !e before if word != "Ada Lovelace"
Ligatures are nice
wait so i would put !e before all of my code?
!e
word = "spam"
if word != "Ada Lovelace":
print("Not correct")
@rugged root :white_check_mark: Your eval job has completed with return code 0.
Not correct
if message_id := await self.redis_cache.get(ctx.author.id, NO_MSG):
log.trace(f"Removing voice gate reminder message for user: {ctx.author.id}")
with suppress(discord.NotFound):
await self.bot.http.delete_message(Channels.voice_gate, message_id)
await self.redis_cache.set(ctx.author.id, NO_MSG)
assert is under-appreciated ๐
Oh, another useful application of :=
if m := re.match(...):
...
ohhh ok so the first line would have worked
but the colen wasnt there
alr thanks guys
I feel like assert is not a fun way of validating types for functions
!e
assert False
@lusty marsh :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | AssertionError
I'd personally go for
@typed(int, int)
def add(x, y):
return x + y
!e
lambda dominance: "what ever"
assert dominance()
@lusty marsh :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | NameError: name 'dominance' is not defined
Over-reliance on autocomplete samimies ๐
!e
dominance = lambda: "what ever"
assert dominance()
@lusty marsh :warning: Your eval job has completed with return code 0.
[No output]
@rugged root hey may I see the current thing that u have for voice verifcation thingy?
thx
@lusty marsh The Haskell standard library just reads like math
Look at the last comment in that channel ๐
Be warned, you cannot un-see what you have seen in #esoteric-python
Look at the last comment in that channel ๐
@stuck furnace #bot-commands message
hmm tha'ts not even doing anything
!e
from builtins import print; _ = lambda : [x for x in range(98, 100)]; __ = lambda ___: print("".join([x for x in ___])); __(_())
@lusty marsh :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | File "<string>", line 1, in <lambda>
004 | TypeError: sequence item 0: expected str instance, int found
and i cant speak now me angry ๐
!e
_ = lambda: [x for x in range(98, 100)]; __ = lambda ___: __builtins__.print("".join([__builtins__.chr(x) for x in ___])); __(_())
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
bc
@rugged root Haskell has a type for unbound integers, but they're super slow
Most of the time you'll get away with 64-bit integers though
!e
_ = lambda: [x for x in range(97, 97+26)]; __ = lambda ___: __builtins__.print("".join([__builtins__.chr(x) for x in ___])); __(_())
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
abcdefghijklmnopqrstuvwxyz
Yeah, been meaning to revisit chemistry at some point to understand this stuff ๐
Oh god
I'm deleting that comment so it's not read out-of-context...
@ hi Alll
Keep the out of context =P
I think we got a memer Cl603 look different topical chats xD
!e
c = lambda: [x for x in range(48, 58)]+[x for x in range(97, 97+26)]; o = lambda ___: __builtins__.print("".join([__builtins__.chr(x) for x in ___])); o([c()[17], c()[14], c()[21], c()[21], c()[24]])
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
hello
@gentle flint try this
discord.gg/pcmr
maybe this server will help
brb
I like using the terminal for vsc
@boreal dock What do you need help with?
Yes, I have a problem but not on the python language but on c ++ can you help me? I am a student
I'm from italy
@rugged root
#include <iostream>
using namespace std;
const int DIM = 9;
void Stampa(char a[])
{
cout<<endl;
cout<<" "<<a[0]<<" "<<a[1]<<" "<<a[2]<<endl;
cout<<" "<<a[3]<<" "<<a[4]<<" "<<a[5]<<endl;
cout<<" "<<a[6]<<" "<<a[7]<<" "<<a[8]<<endl;
cout<<endl;
}
void Init(char a[])
{
for(int i =0; i<DIM; i++)
{
a[i] = 48+i;
}
}
bool Mossa(char giocatore, char a[])
{
int m;
do
{
cout<<"giocatore -"<<giocatore<<"- mossa: ";
cin>> m;
}while( m<0 || m>8 || a[m]=='X' || a[m]!='O' );
a[m]=giocatore;
if(a[0]==giocatore && a[0]==a[1] && a[1]==a[2]) return true;
return false;
}
int main()
{
char v[DIM];
int numMosse;
char giocatore;
bool ris;
numMosse=0;
giocatore='X';
Init(v);
Stampa(v);
do
{
cout<<" muove giocatore "<< giocatore;
ris=Mossa(giocatore, v);
if(giocatore=='X') giocatore='O';
else giocatore='X';
numMosse++;
}while(ris==0);
return 0;
}
This
Where is the problem?
hey you could do ```c++ code here ```
Scuffed code is scuffed, but it """works"""
@swift valley that theme looks like butter
I'm saving that work for tomorrow, at least I know what I can work on without being stuck in analysis
Set operations are really fast
Saved a few minutes on a program I wrote before that did use lists
!e
s = {"hello", "world"}
print(s)
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
{'hello', 'world'}
!e
s = {"hello", "world"}
print(s[0])
@lusty marsh :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | TypeError: 'set' object is not subscriptable
!e
import time
mon = time.time()
members = {"1", "2", "1", "2", "1", "2", "1", "2", "1", "2", "1", "2", "1", "2", "1", "2"}
for i in members: pass
print(f"fi {time.time()-mon}(s)")
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
fi 4.5299530029296875e-06(s)
!e
import time
mon = time.time()
members = {"1", "2", "1", "2", "1", "2", "1", "2", "1", "2", "1", "2", "1", "2", "1", "2"}
print(f"fi {time.time()-mon}(s)")
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
fi 2.384185791015625e-06(s)
!e
import time
mon = time.time()
members = {x for x in range(9000)}
print(f"fi {time.time()-mon}(s)")
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
fi 0.0009889602661132812(s)
Erm, they shouldn't be.
But determining whether a key is in a dictionary is asymptotically faster than checking membership in a list.
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
{0: 0, 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0, 7: 0}
Both testing the worst case at 10,000 iterations
I don't have the old list-based code but it's faster than 11 seconds when checking the set difference
py -m timeit -s 'import random; test = set(range(1000)); check = random.randrange(1000)' 'check in t
est'
@whole bear Take a look at the #voice-verification channel. That should tell you what you need to know
See ya
Gotta hop off for the night, see ya folks
!e
i = 0
ram = {x: x-x for x in range(60000)}
while ram[i] >= 0:
ram[i] += 1
i += 1
ram[i] += 1
print(ram[i])
@lusty marsh :x: Your eval job has completed with return code 1.
001 | 1
002 | 1
003 | 1
004 | 1
005 | 1
006 | 1
007 | 1
008 | 1
009 | 1
010 | 1
011 | 1
... (truncated - too many lines)
Full output: too long to upload
opengl makes my ass hurt
i had to fix it for half an hour just for a white triangle to render
@tiny seal oh yas sexy shit
aLRIGHT GUYS
hEMLOCK SAID THIS SERVER IS NOT OFFICIAL
hEhE
Restart the speech
its kinda cool
Mr. HeMlOcK
@elder sable you should create a python helpline
@candid venture if you create a yt channel, don't just type code, explain it diagrammatically
Download Visual Studio here: https://www.visualstudio.com/downloads/
This is the first in my series of C# tutorials. We go over setting up Visual Studio 2017, and some basic programming concepts.
I hope everyone enjoys it. I would appreciate any feedback you have, I'm always...
i am using edge
@whole bear please read the rules
asking for doing homeowrk for you in this chat is not allowed
fixed *
@whole bear It's not official only because we aren't run by the PSF (Python Software Foundation).
which text-editor or IDE do you guys use ?
@whole bear
VSCODEandNano
Rider ?
yeaa thats rider from jetbrains for c#
which text-editor or IDE do you guys use ?
@whole bear VSCODE
cool
@odd lynx Check out the #voice-verification channel. That should tell you what you need to know
Thanks @rugged root Didn;t see that channel
No worries!
ig we need to be active for half an hour to be eligible for voice verification
thats the min number of days for which we need to be a member
it's making a helluva noise
how did lemonsaurus make that face change thingy on his website? that's cooool
click on his face
do you guys know
?
not me
Not me also but i do wanna learn it
ig i should start with 
i just got strong with the basics
Welcome to Discord's home for real-time and historical data on system performance.
reading through the docs or from youtube?
docs and intellisense
uyeah i was also thinking for the docs
ohh
which editor do u use??
VSC
yeah that's the best for python ig
rather than pycharm
if i get voice verified, would i be able to stream in general ? Mr. Hemlock.
No, that's reserved for staff and contributors
Okay
The only time I allow streaming/give someone streaming permissions is if they need help or they're doing something to benefit the server like coding or reviews or what have you
And on the latter, I tend to only do it when I know the person well
Okay, I understand. Thank You ๐
just use descturctive pyautogui code in a while loop and make it an exe and change the logo ||i am jk okay, don't ban me||
Goodbyee Guys, stay safe and Rick roll ya friends
see yaa
vc popping off today lol
can someone explain is there any diff between all those help channels or they all are same?
@rugged root why can't i speak in voice channels >:( server bad admins aboos
@honest pier Restart your client?
@whole bear see #โ๏ฝhow-to-get-help , the channels are all the same, as long as they're available
ye @rugged root have class though lol ;-;
@honest pier ohkkk
2. RESTRICTIONS
You may not lease, rent, sublicense, publish, modify, patch, adapt or translate System Software. You may not reverse engineer, decompile or disassemble System Software, create System Software derivative works, or attempt to create System Software source code from its object code. You may not (i) use any unauthorized, illegal, counterfeit or modified hardware or software with System Software; (ii) use tools to bypass, disable or circumvent any PS4 system encryption, security or authentication mechanism; (iii) reinstall earlier versions of the System Software ("downgrading"); (iv) violate any laws, regulations or statutes or rights of SIE Inc or third parties in connection with your access to or use of System Software; (v) use any hardware or software to cause System Software to accept or use unauthorized, illegal or pirated software or hardware; (vi) obtain System Software in any manner other than through SIE Inc's authorized distribution methods; or (vii) exploit System Software in any manner other than to use it with your PS4 system according to the accompanying documentation and with authorized software or hardware, including use of System Software to design, develop, update or distribute unauthorized software or hardware for use in connection with your PS4 system.
These restrictions will be construed to apply to the greatest extent permitted by the law in your jurisdiction.
you can hack into a jeep cherokee
@hollow haven Kaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaat
I need motivation
True
hello there how ya doin
I was around before the VC verification stuff was a thing ๐ฆ
For whaaaat?
I'm just trying to finish the code review guide I've been putting off figuring out what to say
Write your stream of consciousness. It'll stuck. That's fine. Go for a quick walk/stretch, then come back and edit
Just had one of my audio interfaces crap out and need to figure out if my janky stuff is working
Besides, imagine the great code reviews coming in from our helpers and community members once there's a great guide to follow!
Yeah I know. Just bleh
Wanna talk through it?
Gotta use this with my 8i6 with my default output as the SPDIF signal
My job is pushing remote work
I work at one of the major computer manufactures
@hollow haven Yeah, I think I'll need to once I finish this scanning for work
I have an irrational hatred for JS
My day job is Python
and SQL
Damn I wish I could be in VC right now.
@rugged root Can you look at modmail?
F
I'm a data intelligence engineer for one of the major tech companies.
I'm actually all self taught. I dropped out of college after one semester
A neurodiversity hiring program
I'm actually all self taught. I dropped out of college after one semester
@ashen oar same man, didn't go to college
I used to mess around with Pythonista on iOS during high school
Recently I've actually implemented kerberos SSO with requests and requests_gssapi
SAML authentication
@thorny pulsar Check out the #voice-verification channel
That'll tell you what you need to know
Is that even still alive?
I thought Obj C pretty much died with the advent of Switft
Swift is a front end for Objective C
At least in iOS
In most cases from what I've seen
Ah, gotcha
@rugged root
its not me, as far as it sounds like me, its not me
That's... ominous
Had to update SDL for it to work properly on iOS devices with no home button.
Made this back in high school https://github.com/scj643/objc_tools
My most popular repo too
Also made a python library for generating iOS configuration profiles but that was really badly https://github.com/scj643/apple-profile-lib
Most of my job involves Apache Airflow and Elasticsearch (not mutually related to each other)
I'll have to look over these. That's really cool
https://github.com/scj643/plugin.video.vrv/tree/matrix is what I've started and someone picked up on it and it allows me to watch anime from VRV using kodi.
The Anaconda changes in it's licensing has actually made it so I can't use it at work now.
Matrix is for the new version of Kodi
I tend to use GitLab for internal stuff which works really well
F
F
!source bot
Also F to my 2i2 audio interface. The USB C port yeeted itself.
@wraith ledge
Also F to my 2i2 audio interface. The USB C port yeeted itself.
@ashen oar oh man. BIG F
I have to use my 8i6 in a janky way
I need an audio interface for my guitar these days
Focusrite Scarlet works pretty well
yeah I'm thinking of buying that
It plugs in via USB C to USB A and is USB 2.0
I'll have to learn Logic X too
Interface is weird
Congrats you got voice verified @ashen oar
Yeah I know that feeling
@hollow haven I think I'm going to scoot down to the Staff voice so I can think.
@hollow haven I think I'm going to scoot down to the Staff voice so I can think.
@rugged root you're saying we're brain dead?
lol jk
I'm the brain dead one right now
hahahahaha it's aight my g
@candid venture Is that Tk?
https://nightride.fm/ @amber raptor
@storm shuttle If you're wondering why you can't talk, check out the #voice-verification. That'll tell you what you need to know
@candid venture ?
nvm
@ashen oar
is playing Voodoo by Godsmack from Godsmack
why dont i have permission to speak in vc???
how do i get voice verified
@whole bear
@whole bear
search up my name, i have 582 messages
ok
@rapid crown
test
:incoming_envelope: :ok_hand: applied mute to @whole bear until 2020-11-09 22:02 (9 minutes and 58 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
@west knot after the 21st of August you have just over 30 messages
the date starts counting from then
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
hello
:incoming_envelope: :ok_hand: applied mute to @lusty marsh until 2020-11-10 00:56 (9 minutes and 59 seconds) (reason: newlines rule: sent 103 newlines in 10s).
!unmute 257846560468107264
:incoming_envelope: :ok_hand: pardoned infraction mute for @lusty marsh.
ุงุณูุงู ุนูููู
@teal phoenix YouTubers Corey Schafer and sentdex for tutorials.
Thank you.
hey can anyone help with a simple problem im having?
im making a menu styled program for a class and if the selection is 4 it's supposed to end the program, but if it is anything besides 4 it should run the menu again
sooo
i made it work when you enter 4 and it ends BUT the reruns it does when the selection isnt 4 go on indefinetely
ill send the code hold on
just a minute
ohh nice
btw u dont't have any break statement in the loop so that the program would stop
yea i just realized i didnt fix it lmao
yea i changed it back to that now
but its still not working right
and when i use breaks it says the break is outside of the loop
can u copy and paste the code in here
def main():
#Define the beginning variables
menuSelection = 0
area = 0
#call the displayMenu Function to recieve input on menuSelections
displayMenu(menuSelection)
#Decision structure to call each area solution (or restart the program)
if menuSelection == 1:
calcCircle(area)
showArea(area)
elif menuSelection == 2:
calcRectangle(area)
showArea(area)
elif menuSelection == 3:
calcTriangle(area)
showArea(area)
else:
if menuSelection == 4:
print("")
else:
displayMenu(menuSelection)
break
def displayMenu(menuSelection):
print(" Geometry Calculator ")
print("1. Calculate the Area of a Circle ")
print("2. Calculate the Area of a Rectangle ")
print("3. Calculate the Area of a Triangle ")
print("4. Quit ")
menuSelection = int(input())
main()
def main():
#Define the beginning variables
area = 0
#print the options
print(" Geometry Calculator ")
print("1. Calculate the Area of a Circle ")
print("2. Calculate the Area of a Rectangle ")
print("3. Calculate the Area of a Triangle ")
print("4. Quit ")
menuSelection = int(input())
#Decision structure to call each area solution (or restart the program)
if menuSelection == 1:
calcCircle(area)
showArea(area)
elif menuSelection == 2:
calcRectangle(area)
showArea(area)
elif menuSelection == 3:
calcTriangle(area)
showArea(area)
elif menuSelection == 4:
return None
else:
main()
main()
here is a better implementation of that
we can only use break in for or while loops
so just return none when the option is 4
and i guess there is no need for that other function
ohh ok
well im working off of a flowchart she wants me to use
ill send that hold on a sec
im just confused because ive never seen a flowchart where there are 3 options leading to one thing and another option deciding whether to rerun or end the program
even i am confused with the flowchart cuz its first showing to take menuSelection as a parameter to the displayMenu() function and just before that it is saying to define menuSelection
heyy
And the RGB
mine is 144hz
Okay
random background noises @heavy nacelle
๐
i am bad at singing
really bad
you will get nightmares
@whole bear you got voice verified!!!๐ฏ
@heavy nacelle sorry for the location thing, i was just having fun, i am from India ๐ฎ๐ณ
Hope you don't take it hard
Okay, ๐ i come to the US often
Hello
I want print second index in List
myList_1 = [1, 2, 3, 2, 4, 5, 456, 6, 456, 7, 8, 9, 10]
x = 0
for i in myList_1:
if i == 456 and x == 1:
print(myList_1.index(i))
break
elif i == 456:
x += 1
hi
I want print second index in List
@jaunty thicket ```py
myList_1 = [1, 2, 3, 2, 4, 5, 456, 6, 456, 7, 8, 9, 10]
first_index = myList_1.index(456)
new_list = myList_1[first_index+1:]
new_index = new_list.index(456)
print(first_index + new_index + 1)
@glacial haven hi try: mylist_1[2]
arrays start from cough cough
oh man @wraith ledge not you too lmao
@wraith ledge are you in that nullposting group on facebook too? LOL
naah I rarely facebook
@glacial haven hi try: mylist_1[2]
@minor drum For a number repeated in a list the index of the 2 nd number I have written code for the sake of understanding, we can try to access though by list[index]
def Duplicates(x):
Size = len(x)
duplicate_list = []
for i in range(Size):
k = i + 1
for j in range(k, Size):
if x[i] == x[j] and x[i] not in duplicate_list:
duplicate_list.append(x[i])
return duplicate_list
print(Duplicates(myList_1))
@glacial haven
myList_1 = [1, 2, 3, 2, 4, 5, 456, 6, 456, 7, 8, 9, 10]
def Duplicates(x):
Size = len(x) # get me the size of the list
duplicate_list = [] # creating a new list to store the duplicates
for i in range(Size): # making a for loop to loop thru the first list
k = i + 1 #incrementing everthing in the list
for j in range(k, Size): # making a second loop to add to the list
if x[i] == x[j] and x[i] not in duplicate_list: # if this statement is true (Giving it a condition to check)
duplicate_list.append(x[i]) # add to the duplicate list
return duplicate_list # cus it is a function i need to return a value
print(Duplicates(myList_1)) # print ur result :)
full code with description
@minor drum ```py
l = list(map(int,input().split()))
fil_list = []
dup_list = []
for x in l:
if x not in fil_list:
fil_list.append(x)
else:
dup_list.append(x)
print(dup_list)
Optimal solution is this I think
Yes
yes that
but better is to this
@minor drum ```py
l = list(map(int,input().split()))
fil_list = []
l = list(l)
dup_list = []
for x in l:
if x not in fil_list:
fil_list.append(x)
else:
dup_list.append(x)
print(dup_list)Optimal solution is this I think
@glacial haven
python will make list then for u
so u dont have to append it everytime
Using list-comprehensions? are yous saying in this code @minor drum
@glacial haven yes that means u dont have to append it every time to the list
@candid venture I have a small problem
my main Linux drive just died
it boots initially, but then breaks at the filesystem checks with unrecoverable I/O errors
any tips on how I might still be able to copy the contents of the drive onto smth else?
reformat?
Yeah, but I'd like to recover the stuff on it if at all possible
OOF
quite
dual boot?
dual boot usb
o I c
and then what do I do with the disk from that USB?
like, ddrescue?
Do I mount it?
Do I start it unmounted?
boot thru bios
what do I do with the disk from the liveusb once the liveusb is started
you know what
I'll be in vc in 5 mins
that will be easier
o you left
nvm then
rip
bruh I can't talk
you need to voice verify, it's channel above this one
@wispy pelican #voice-verification will tell you what you need to know
I'll be on in a bit, Rab
Still settling in at work
3 days on the server and 50 message over three 10 minute blocks
It's not as rough as it seems
yeah but I have nothing to talk about unless I need help
Trying to convince my dad to buy me a keyboard.
Ello
Anne Pro 2
Apparently we're going to study about relativity for our next semester's Physics class
hah
Intuition will come over time
Hopefully
@novel pagoda If you're wondering why you can't talk, check out the #voice-verification channel. That should tell you what you need to know.
@brittle crest If you're wondering why you can't talk, check out the #voice-verification channel. That should tell you what you need to know.
ok it was my shitty net
Well, Kotlin
does legend() has default loc set to 0?
Let's dance.
VIDEO:
Written & Directed by James Manzello
Created by James Manzello & Matt Pavich
Camera & Color by Zak Ray
Edited by Matt VanDaniker
Produced by The Donns
Gaffer - Katy Cecchetti
First AC - Ryan Albahary
Hair & Make-Up - Lauren Gordon
Production Assistants - P...
@whole bear @random kraken @south jungle @solid escarp @glacial haven If you're wondering why you can't talk in voice chat, check out the #voice-verification channel. That'll tell you what you need to know
The plugin I'm using for my Neovim rich presence doesn't seem to like Linux very much
PR time it is
:incoming_envelope: :ok_hand: applied mute to @whole bear until 2020-11-10 14:59 (9 minutes and 59 seconds) (reason: mentions rule: sent 6 mentions in 10s).
lol
!unmute @whole bear
:incoming_envelope: :ok_hand: pardoned infraction mute for @whole bear.
he tried to quote u
lol <----- Someone raising their hands xD
I'm starting to get used to Discord dark mode again, yikes
thats good
thank you but i not speak english and... i not understand a lot python :''3
BLOOD FOR THE BLOOD GOD
this is cursed
!resources @whole bear We've got tons of great beginner resources linked on our site. Typically we suggest Automate the Boring Stuff and A Byte of Python
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 hemlock โค๏ธ
this is cursed
I can't unsee what I have seen
the silence...
mr hemlock your voice is handsome!
your welcome nwn
my vocabulary in english is very small
sorry u.u
There's no reason to be sorry about
To me, the fact that you know more than one language is amazing
oh... thank you but my english is horrible but thank you โค๏ธ
What's your native language?
Spanish :'3
Very cool
uwu
it's cool we all speak python here ๐
haha, i not speak python u.u
You'll get there
yee study it, it's worth it
And if you ever need help, we're always happy to answer questions
thank you hemlock and thank you jeremy, i need to arrive in python! is amazing
well, i have homework, good bye guys โค๏ธ
See you later!
study hard!
Patma 
@slender bison
# sadness
range(len(n))
# happiness
(range @ len)(n)
I'd rather have the Scala-style lambdas that https://github.com/kachayev/fn.py/ has
or more likely eval(range @ len, n)
from fn import _
from fn.op import zipwith
from itertools import repeat
assert list(map(_ * 2, range(5))) == [0,2,4,6,8]
assert list(filter(_ < 10, [9,10,11])) == [9]
assert list(zipwith(_ + _)([0,1,2], repeat(10))) == [10,11,12]
Lambdas in Scala use that type of lambda definition
!ban hemlock nswf pics
@command(name='echo', aliases=('print',))
@has_any_role(*MODERATION_ROLES)
async def echo_command(self, ctx: Context, channel: Optional[TextChannel], *, text: str) -> None:
"""Repeat the given message in either a specified channel or the current channel."""
if channel is None:
await ctx.send(text)
else:
await channel.send(text)
~~I totally did not copy that ~~
People think the bot is actually sentient
I had a conversation with the bot before
Yup
u guys work with linux?
frommage vs fauxmage
@rugged root
@manic ravine I've only been using it for a few months but I can answer a few inquiries
I was just wondering if fail2ban is a good option for request limitations per ip
@somber heath look up Casu Marzu
sorry for my english though, not a native :/
It's a type of cheese