#voice-chat-text-1
1 messages · Page 75 of 1
nonverbal
non cultural bias iq, .com
but could you score higher on a Mensa administered IQ test?
because you might not hit a 1 i 20,000
only within a standard deviation 20 points at most usually
no.because again it's statistics so then you have to reevaluate the test based on people that do train
for one test but not repeated ones
with questions and it's abstracting out things that are the definition of intelligence quotient
yes you can. you're also taking tests that are designed for an average that is 4 people with a much lower IQ than you
taking a specific one for the outliers might score much higher
I'm a cognitive scientist this would be a lot easier to explain if I had boys capability
voice
The Mouse Outfit
@mild flume LOL
I had to find something to ground it

did they got the reference?
I don't think so

Well shit, I straight up said Jayden Smith
The Icon
😢

The test was really easy but it cost money to get my score T_T
Your IQ is 2 minutes and 38 seconds
Body Mass Index
Also it should be noted that a full IQ test can take a good portion of a day
Or maybe that was just the psych eval I had....
eyecube
I'll be back
Gonna go out on a limb and say that's not a full one
tristan afton spittin more fax than an office
bygaga is animator - danish.kabanov@gmail.com
(he also has a youtube he doesnt post on it but if you wanna drop a sub there go ahead)
twitter - https://twitter.com/redhotredd1
discord - https://discord.gg/JyXKhtUWSt
spotify song - https://open.spotify.com/track/7wYHHq7lw1jV3XeWaUFm57?si=vDu75zMzSIu4...
@wise tapir https://hackaday.com/tag/electroencephalogram/
Delivery run, may or may not be back later
hey guys
@elder wraith what interview questions do you ask at your company? Or it is a general talk about previous experience
@elder wraith thanks.. yeah the standard general talk about previous experience
@elder wraith Since you have a lot of more experience in the interview process: do you think a couple interviews could provide you with realistic impression of the candidate? O
See voice verification channel
ok bro
I dont have the 50 messages. Cant join you
@wise tapir matching the requirements between the company and the candidate preferences
@elder wraith
I dont know what is the practice in USA, but in my country we have a grace period (usually) 6 months in which you can leave the company without a notice and you could get fired. My previous manager said: "You cant judge a person on a couple of interview. Just hire them and test them in the field"
Even after the grace period?
Welcome to America
comi europe
Ask in the help channels
ok
gotta go, cya
@wise tapir it a public information. No NDA
dean kamen
@vestal dawn How is it going?
Glad to hear you again.
Good, thanks. Hope you're well too!
is there some alternative to jupyter notebook for writing code related documents
I mean, you could just copy-paste your code with special formatting into a file
they ultimately will be in pdf
yeah but doc files are not ascii ... they are kind of unicode
@heavy orchid Per Rule 6, your invite link has been removed. If you believe this was a mistake, please let staff know!
Our server rules can be found here: https://pythondiscord.com/pages/rules
“Practice makes perfect, but nobody's perfect, so why practice?”
― Kurt Cobain
hi
@stuck bluff Thank you
this is my actual look when i get 99+ bugs after writing a 10 line code
@raven orbit how do i define tim in here:
import turtle
import random
def up():
tim.setheading(90)
tim.forward(100)
def down():
tim.setheading(270)
tim.forward(100)
def left():
tim.set_heading(180)
tim.forward(100)
def right():
tim.setheading(0)
tim.forward(100)
colors = ["red", "blue", "green", "yellow", "black"]
def clickLeft(x, y): # Make sure to have parameters x, y
tim.color(random.choice(colors))
def clickRight(x, y):
tim.stamp()
tim.listen()
turtle.onscreenclick(clickLeft, 1) # 1:Left Mouse Button, 2: Middle Mouse Button
turtle.onscreenclick(clickRight, 3) # 3: Right Mouse Button
tim.onkey(up, "Up") # This will call the up function if the "Left" arrow key is pressed
tim.onkey(down, "Down")
tim.onkey(left, "Left")
tim.onkey(right, "Right")
well, what is tim supposed to be?
a turtle
correct
it's a method of the screen/window
not of a Turtle object
same for onscreenclick btw, where you've implemented it correctly
so how should i correct it?
import turtle
import random
tim = turtle.Turtle()
def up():
tim.setheading(90)
tim.forward(100)
def down():
tim.setheading(270)
tim.forward(100)
def left():
tim.set_heading(180)
tim.forward(100)
def right():
tim.setheading(0)
tim.forward(100)
colors = ["red", "blue", "green", "yellow", "black"]
def clickLeft(x, y): # Make sure to have parameters x, y
tim.color(random.choice(colors))
def clickRight(x, y):
tim.stamp()
Turle.listen()
turtle.onscreenclick(clickLeft, 1) # 1:Left Mouse Button, 2: Middle Mouse Button
turtle.onscreenclick(clickRight, 3) # 3: Right Mouse Button
tim.onkey(up, "Up") # This will call the up function if the "Left" arrow key is pressed
tim.onkey(down, "Down")
tim.onkey(left, "Left")
tim.onkey(right, "Right")
tim.mainloop() # This will make sure the program continues to run
import turtle
import random
tim = turtle.Turtle()
def up():
tim.setheading(90)
tim.forward(100)
def down():
tim.setheading(270)
tim.forward(100)
def left():
tim.set_heading(180)
tim.forward(100)
def right():
tim.setheading(0)
tim.forward(100)
colors = ["red", "blue", "green", "yellow", "black"]
def clickLeft(x, y): # Make sure to have parameters x, y
tim.color(random.choice(colors))
def clickRight(x, y):
tim.stamp()
turtle.listen()
turtle.onscreenclick(clickLeft, 1) # 1:Left Mouse Button, 2: Middle Mouse Button
turtle.onscreenclick(clickRight, 3) # 3: Right Mouse Button
tim.onkey(up, "Up") # This will call the up function if the "Left" arrow key is pressed
tim.onkey(down, "Down")
tim.onkey(left, "Left")
tim.onkey(right, "Right")
tim.mainloop() # This will make sure the program continues to run
Traceback (most recent call last):
File "/Users/hminhas/LearningPython/Project1/V2/practice.py", line 35, in <module>
tim.onkey(up, "Up") # This will call the up function if the "Left" arrow key is pressed
AttributeError: 'Turtle' object has no attribute 'onkey'
Harjots-MacBook-Pro-2:Project1 hminhas$
foo
def bar(x):
print(x)
class MyClass:
def __init__(self, name):
self.name = name
def zan(self):
print(self.name + ' is your name')
import foo
foo.bar('hi')
mor = foo.MyClass('Minhas')
mor.zan()
In this step-by-step tutorial, you'll learn the basics of Python programming with the help of a simple and interactive Python library called turtle. If you're a beginner to Python, then this tutorial will definitely help you on your journey as you take your first steps into the world of programming.
Does that say mask on between bites or not?
g
!voiceverify\
You are not allowed to use that command.
!rank'
Iterating over range(len(...)) is a common approach to accessing each item in an ordered collection.
for i in range(len(my_list)):
do_something(my_list[i])
The pythonic syntax is much simpler, and is guaranteed to produce elements in the same order:
for item in my_list:
do_something(item)
Python has other solutions for cases when the index itself might be needed. To get the element at the same index from two or more lists, use zip. To get both the index and the element at that index, use enumerate.
!rank
Iterating over range(len(...)) is a common approach to accessing each item in an ordered collection.
for i in range(len(my_list)):
do_something(my_list[i])
The pythonic syntax is much simpler, and is guaranteed to produce elements in the same order:
for item in my_list:
do_something(item)
Python has other solutions for cases when the index itself might be needed. To get the element at the same index from two or more lists, use zip. To get both the index and the element at that index, use enumerate.
print("hello world")
good old command
Not really
We all started somewhere
Why be upset at people for wanting to learn and better themselves?
Hello there, I have a quick question, newbie one, I set up VScode and I have this script that tries to import the module netmiko into the python3 program I am writting.
Before creating the venv (virtual environment) I was able to to run the scripts without issues. but now the pylint linter is showing this:
I think this is related to the virtual environment
I know I have netmiko installed correctly in my Linux ubuntu 20.04 system
idk
WHOOPS i didn't notice
@golden marsh :white_check_mark: Your eval job has completed with return code 0.
hello
Loool
Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
Don't be rude @golden marsh
@tribal kernel here
ok
...
u should unmute me
This is why the voice verification thing is here
yeayh
Also your playing fortnite, which explains a lot.
!pban 691803538812043274 no n words or spam here sir
:x: User is already permanently banned (#27223).
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
it must be xith, but he is not even awake /s
!e ```py
class A():
def init(self, a):
self.a = a
class B(A):
def init(self, a):
super().init(a)
self.b = a
i = B(5)
print(i.b)
@golden marsh :white_check_mark: Your eval job has completed with return code 0.
5
hi hemmy
Rather low effort name
I did not get voice access yet
who doesn’t call you hemmy
thx bro
im obama not reg
no prob
@uncut mist Probably easier to ask in here.
i asked for it
okay im sorry
j dm your question to me
what
ok
Yo I'm unable to activate my virtual environment using the fish shell
Getting this error source: Error while reading file 'venv/bin/activate'
source venv/bin/activate
venv/bin/activate (line 49): Unsupported use of '='. In fish, please use 'set VIRTUAL_ENV
./venv/bin/activate
source venv/bin/activate.fish
. venv/bin/activate.fish
Can you show me your code?
Just to confirm, you are adding a bot token in the bot.run() part and have just taken it out for showing your code?
cmd
open cmd?
@misty sinew If you're wondering why you can't talk, check out #voice-verification. That'll tell you what you need to know
@uncut mist Yeah, running the program from an already opened cmd prompt should let us see any error codes it drops
uhh it's still showing the same thing
I can't at the moment, I'm swamped at work
can you help me later please?
It might be better to ask using our help system. See #❓|how-to-get-help for more details on that. I really don't know how long I'm going to be tied up with this
okay thanks for trying to help
Yep! Sorry I couldn't do more
Been.... hectic for the past couple work days
And counting
it's okay
Man my productivity is down the drain because of WFH
I couldn't do most of my stuff from home
I delivery payroll and tax documents, as well as in-house IT
lmao
Hey guys!
hey
hm
hi
hi
anyone know
You'll get there soon enough
how close
Just have patience, don't spam, have conversations with us in call (most of us watch the channel while we're talking), check out the various topical channels, etc.
#voice-verification should let you know what you need to know
hemlock sexy?
Sorry what?
haha just calling you sexy. It's not an anything really i
gg wp
I do not have permission to open a microphone
@blissful laurel yeah whats your microphone held together with?
Normally you can open it with screwdriver if its screws or maybe even a saw or something if its straight plasic
no no, I can't open it because I'm not active enough on the server
@blissful laurel Yes, and the reason for it is in #voice-verification
thx @mild flume
Oh you mean your suppressed. Sorry got confused cause you said your trying to open it 🥴
!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.
@ancient sinew We will not assist with a Final
thanks @supple coral sorry my english is not good enough i am learning new i need to practice
Is there someone who can practice english with me?
gotta try
Can someone help me with my computer science final😭😭😭
how subject
@ancient sinew I've already told you we're not assisting with it. It's a rule on the server
ahh sory @ancient sinew the rules don't allow
welp
im sorry bro
cya nerdling
anyway
im Turkish
tasty
😄 😄
i'm a cyber security expert but i'm having trouble with english, can you help me?
I can try
Problem Description
You have to determine if it is possible to escape from a room. The room is an M-by-N grid with
each position (cell) containing a positive integer. The rows are numbered 1, 2, . . . , M and the
columns are numbered 1, 2, . . . , N. We use (r, c) to refer to the cell in row r and column c.
You start in the top-left corner at (1, 1) and exit from the bottom-right corner at (M, N). If you
are in a cell containing the value x, then you can jump to any cell (a, b) satisfying a × b = x. For
example, if you are in a cell containing a 6, you can jump to cell (2, 3).
Note that from a cell containing a 6, there are up to four cells you can jump to: (2, 3), (3, 2), (1, 6),
or (6, 1). If the room is a 5-by-6 grid, there isn’t a row 6 so only the first three jumps would be
possible.
Input Specification
The first line of the input will be an integer M (1 ≤ M ≤ 1000). The second line of the input will
be an integer N (1 ≤ N ≤ 1000). The remaining input gives the positive integers in the cells of
the room with M rows and N columns. It consists of M lines where each line contains N positive
integers, each less than or equal to 1 000 000, separated by single spaces.
For 1 of the 15 available marks, M = 2 and N = 2.
For an additional 2 of the 15 available marks, M = 1.
For an additional 4 of the 15 available marks, all of the integers in the cells will be unique.
For an additional 4 of the 15 available marks, M ≤ 200 and N ≤ 200.
Output Specification
Output yes if it is possible to escape from the room. Otherwise, output no.
Sample Input
3
4
3 10 8 14
1 11 12 12
6 2 3 9
Output for Sample Input
yes
my code:
from sys import exit, setrecursionlimit
setrecursionlimit(10000)
totY = int(input())
totX = int(input())
def factorPairs(value):
factors = []
for i in range(1, int(value ** 0.5)+1):
if value % i == 0:
ans = (i, value // i)
factors.append(ans)
factors.append(ans[::-1])
return factors
def check(c):
for f in factorPairs(c):
if f[0] == totX and f[1] == totY:
print("yes")
exit(0)
try:
check(grid[f[0]][f[1]])
except:
pass
grid = [[0] * totX]
for i in range(totY):
toAppend = list(map(int, input().split()))
toAppend.insert(0, 0)
grid.append(toAppend)
# (debug print statement)
print(grid)
check(grid[1][1])
print("no")
(something seems to be wrong with it
@kindred rapids can you take a screenshot of the problem on the output
Hey @kindred rapids!
It looks like you tried to attach file type(s) that we do not allow (.pdf). We currently allow the following file types: .3gp, .3g2, .avi, .bmp, .gif, .h264, .jpg, .jpeg, .mkv, .mov, .mp4, .mpeg, .mpg, .png, .tiff, .wmv, .psd, .ai, .aep, .xcf, .mp3, .wav, .ogg, .webm, .webp, .flac, .afdesign, .m4a, .csv.
Feel free to ask in #community-meta if you think this is a mistake.
!e
grid = [[0] * 3]
grid[0] = 2
print(grid)
@warm tendon :white_check_mark: Your eval job has completed with return code 0.
[2]
!e
!eval [code]
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code
block. Code can be re-evaluated by editing the original message within 10 seconds and
clicking the reaction that subsequently appears.
We've done our best to make this sandboxed, but do let us know if you manage to find an
issue with it!*
@kindred rapids error? traceback? or does it just notwork
let me see
it works, but it doesn't print "yes" or "no"
it only printed the debug print that i put in there
seems like it doesn't work then :P
the code looks like it will print either "yes" or "no" 100% of the time
but it doesn't
does it print "no" at the end?
no
what aobut the size of the input
is it possible you're just not waiting long enough?
3
4
3 10 8 14
1 11 12 12
6 2 3 9
[[0, 0, 0, 0], [0, 3, 10, 8, 14], [0, 1, 11, 12, 12], [0, 6, 2, 3, 9]]
PS C:\Users\cutek\Desktop\ccc-2020-practice>
what if you put a print at the start of your check
are you visiting nodes you've visited?
from sys import exit, setrecursionlimit
setrecursionlimit(5000)
totY = int(input())
totX = int(input())
visited = {}
def factorPairs(value):
factors = []
for i in range(1, int(value ** 0.5)+1):
if value % i == 0:
ans = (i, value // i)
factors.append(ans)
factors.append(ans[::-1])
return factors
def check(c):
for f in factorPairs(c):
if not f in visited:
if f[0] == totX and f[1] == totY:
print("yes")
exit(0)
try:
check(grid[f[0]][f[1]])
visited.add(f)
except:
pass
grid = [[0] * totX]
for i in range(totY):
toAppend = list(map(int, input().split()))
toAppend.insert(0, 0)
grid.append(toAppend)
print(grid)
check(grid[1][1])
print("no")
hello
@mild flume hello
Hopping off, heading home to the wife
Blue-J is kind of cool
It had an interactive interpreter for Java before that was officially a thing
Also DrJava
It's like saying "cars are detrimental to leg strength" 😄
What was the problem?
Could you work backwards?
Use Powershell!
Build up a table mapping a value to all the cells containing that value.
def factorPairs(value):
for i in range(1, int(value ** 0.5)+1):
if value % i == 0:
ans = (i, value // i)
yield ans
yield ans[::-1]
from collections import defaultdict
M = int(input())
N = int(input())
grid = [
list(map(int, input().split()))
for _ in range(M)
]
cells = defaultdict(set)
for i, row in enumerate(grid, start=1):
for j, val in enumerate(row, start=1):
cells[val].add((i, j))
...
😔
If you're in cell (i, j), you only could have come from any of the cells in cells[i * j]
good point

The CEMC has become Canada's largest and most recognized outreach organization for promoting and creating activities and materials in mathematics and computer science.
The CEMC has become Canada's largest and most recognized outreach organization for promoting and creating activities and materials in mathematics and computer science.
ahoy
I have a solution that works for the example input, based on the recommendation above. Not sure if it will be fast enough for the true input.
I take it this is just for practice?
import sys
sys.setrecursionlimit(65535)
totY = int(sys.stdin.readline())
totX = int(sys.stdin.readline())
visited = set()
def factorPairs(value):
factors = []
for i in range(1, int(value ** 0.5) + 1):
if value % i == 0:
ans = (i, value // i)
factors.append(ans)
factors.append(ans[::-1])
return factors
def check(c):
for f in factorPairs(c):
if not f in visited:
if f[0] == totX and f[1] == totY:
print("yes")
sys.exit(0)
visited.add(f)
try:
check(grid[f[0]][f[1]])
except IndexError:
pass
grid = [[0] * totX]
for i in range(totY):
toAppend = list(map(int, sys.stdin.readline().split()))
toAppend.insert(0, 0)
grid.append(toAppend)
check(grid[1][1])
print("no")
Sample Input:
3
4
3 10 8 14
1 11 12 12
6 2 3 9
Sample Output:
yes
Little bash testscript: ```bash
printf '%20s %10s %10s\n' file expected actual
time for infile in j5_s2/.in; do
outfile="${infile%.}.out"
result=$(cat $infile | python maze.py)
printf '%20s %10s %10s\n' $infile $(cat $outfile) $result
done
Output when I ran it on my solution: ```text
file expected actual
j5_s2/j5.01.01.in yes yes
j5_s2/j5.01.02.in yes yes
j5_s2/j5.01.03.in yes yes
j5_s2/j5.01.04.in no no
j5_s2/j5.01.05.in no no
j5_s2/j5.01.06.in no no
j5_s2/j5.01.07.in no no
j5_s2/j5.02.01.in yes yes
j5_s2/j5.02.02.in yes yes
j5_s2/j5.02.03.in no no
j5_s2/j5.02.04.in no no
j5_s2/j5.02.05.in no no
j5_s2/j5.02.06.in no no
j5_s2/j5.03.01.in no no
j5_s2/j5.03.02.in no no
j5_s2/j5.03.03.in yes yes
j5_s2/j5.03.04.in yes yes
j5_s2/j5.03.05.in no no
j5_s2/j5.05.01.in no no
j5_s2/j5.05.02.in no no
j5_s2/j5.05.03.in yes yes
j5_s2/j5.05.04.in yes yes
j5_s2/j5.06.01.in no no
j5_s2/j5.06.02.in no no
j5_s2/j5.06.03.in yes yes
j5_s2/j5.06.04.in yes yes
j5_s2/j5.06.05.in yes yes
j5_s2/j5.06.06.in yes yes
j5_s2/j5.07.01.in no no
j5_s2/j5.07.02.in yes yes
j5_s2/j5.07.03.in yes yes
j5_s2/j5.07.04.in yes yes
j5_s2/j5.07.05.in yes yes
j5_s2/j5.07.06.in yes yes
j5_s2/j5.07.07.in yes yes
j5_s2/j5.sample.in yes yes
real 0m25.864s
user 0m20.808s
sys 0m3.325s
I'm guessing 26s isn't fast enough 😄
How you testing your code? @floral current
Running it and crying :P
Nice 😄
Feel free to use the above if you're on Linux/Mac
My solution, if you're interested: ```python
from collections import defaultdict
M = int(input())
N = int(input())
grid = [
list(map(int, input().split()))
for _ in range(M)
]
cells = defaultdict(set)
for i, row in enumerate(grid, start=1):
for j, val in enumerate(row, start=1):
cells[val].add((i, j))
frontier = [(M, N)]
visited = {(M, N)}
while frontier:
r, c = frontier.pop()
if (r, c) == (1, 1):
print('yes')
break
predecessors = cells[r * c] - visited
frontier += predecessors
visited |= predecessors
else:
print('no')
Nice!
Did someone say my name?
@hearty heath
cya @floral current 👋
Lively chat session @golden marsh 😄
I really should speak on mic sometime...
Ah, it's midnight. I should go. See ya 👋
anyone good at discordpy?
#discord-bots is probably the channel you're looking for 🙂
The categorical imperative (German: kategorischer Imperativ) is the central philosophical concept in the deontological moral philosophy of Immanuel Kant. Introduced in Kant's 1785 Groundwork of the Metaphysic of Morals, it may be defined as a way of evaluating motivations for action.
According to Kant, sentient beings occupy a special place in c...
@noble ginkgo it's probot
facts @noble ginkgo
@misty sinew practice ur skills with eulers
i think the best way to solve them is python
hi
def averagePrime(n):
n *= 2
for i in range(n + 1):
j = n - i
if isItPrime(i) and isItPrime(j):
print(i, j)
break
def isItPrime(N): # same as before
for D in range(2, N):
if D * D > N: # first added line
return True
if N % D == 0:
return False
return True
you can reduce isitprime to log n by only comparing division to previous existing primes
using the prime number theorem
In number theory, the prime number theorem (PNT) describes the asymptotic distribution of the prime numbers among the positive integers. It formalizes the intuitive idea that primes become less common as they become larger by precisely quantifying the rate at which this occurs. The theorem was proved independently by Jacques Hadamard and Charle...
in that way isitprime will work you in any case
but if you want to make it O(n)
you should save a variable for i and j and make a distinct logic (one substracting the other adding) to find the prime
that wont be a good maintainable code but at least will be O(n)
hi
Hey i'm a beginner in Python and didn't now what i can code. Has somebody an idea for me?
Converting to "int" failed for parameter "pep_number".
!pep <pep_number>
Can also use: get_pep, p
Fetches information about a PEP and sends it to the channel.
!loop
if someone can hop in code help 1 real quick I have a quick question.
how quick
Hmm like 5-10 minutes at most.
I have an assignment and I just am having issues creating a function. And I have gone back in all my resources but I still can't seem to figure it out.
Here Ill put the paragraph
Create a global variable called myUniqueList. It should be an empty list to start.
Next, create a function that allows you to add things to that list. Anything that's passed to this function should get added to myUniqueList, unless its value already exists in myUniqueList. If the value doesn't exist already, it should be added and the function should return True. If the value does exist, it should not be added, and the function should return False;
so what have you tried
I have tried to create a function obviously ill post it here
myUniqueList = []
def addItem(myUniqueList):
myUniqueList = myUniqueList
I just got stuck and couldnt find anything about it back in the course.
do you know how to check if something is in a list?
@raw wren
No, but I have someone explaining it to me right now.
@raw wren do we have to return the answer for every number which we add or we just have to return the ans and that's it?
Yeah n0x1s joined the vc
ah
myUniqueList = []
def additem(item):
global myUniqueList
if item not in myUniqueList:
myUniqueList.append(item)
return True
return False
additem('jake')
print(myUniqueList)
@true light hey man
@true light and @warm tendon thank you guys for the help!
:3
What's cooking in the general gentlemen!?
@vocal ivy Sorry, my VC is frozen, one sec
in minecraft...
should have been here
i agree
can't talk for now so i have to type
naa
um
not really
exactly
yeah
link the github
can anyone see this
?
i need to get unverified so i can contribute
ah
you were saying something about how people treated you earlier @misty sinew
or did i misunderstand?
i have no clue

i thought i heard something along the lines "when i was here earlier some people"
nope lol
huh
im having democratic politics class
ima just go to the text channels and general
bye
👋
cya
hey you democrate as well? But I dont wanna start a politics war
why man lol
lmao
oops i ment dont i want one
!code
Hey
hi
Hai
Is that a game he made?
No, the game is called Dyson Sphere
@red mortar @gray seal
@red mortar #data-science-and-ml would know waaaaaaaaaaaay more than I would
hi @mild flume
How goes it
yeah good
@mild flume u know about openpyxl ?
i am trying to enter data in python and save it in excel , but when i re run the program my old data gets erased!
i am only able to over write
ok i will send my coding
If we open a file in append mode
and write it in while True
Then
@stuck bluff You might want to restart your phone or something
cool = open("test.txt", "a")
while True:
cool.write("Hey\n")
This code had crash my pc
the file space was 1gb+ in few seconds
@stuck bluff Please stop!
I go to connect and it just says I'm disconnected....
It keeps popping you on and off really quickly
I think you are stuck in some weird state
I didn't know it was sending anything. Sorry.
You're fine, you couldn't help it
import openpyxl as xl
wb=xl.load_workbook("test.xlsx")
sheet = wb["Sheet1"]
roll=sheet.cell(row=1,column=1)
roll.value="Student id"
name=sheet.cell(row=1,column=2)
name.value="Name"
clas=sheet.cell(row=1,column=3)
clas.value="Class"
age=sheet.cell(row=1,column=4)
age.value="Age"
keyval={}
n=int(input("Enter no. of entries :"))
starting_row=int(input("Enter starting row :"))
n-(n-starting_row), n+starting_row
for i in range(n-(n-starting_row),n+starting_row):
cell_0=sheet.cell(row=i,column=1)
cell_0.value=(i-1)*100
cell=sheet.cell(row=i,column=2)
cell.value=input("Enter name 😊
cell_2=sheet.cell(row=i,column=3)
cell_2.value=input("Enter class 😊
cell_3=sheet.cell(row=i,column=4)
cell_3.value=int(input("Enter age :"))
if i==2:
print("--- 1 RECORD ---")
else:
print("---",i-1,"RECORDS ---")
keyval[cell_0]=cell,cell_2,cell_3
wb.save("second.xlsx")
I'd let it chill out for 10 minutes to figure it out
I'll restart my phone.
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pydis.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
How to get current date and time in bash script. How to store formatted date and time in a variable in a shell script. Assign current date in variable
o/
Hey @upbeat onyx!
It looks like you tried to attach file type(s) that we do not allow (.xlsx). We currently allow the following file types: .3gp, .3g2, .avi, .bmp, .gif, .h264, .jpg, .jpeg, .mkv, .mov, .mp4, .mpeg, .mpg, .png, .tiff, .wmv, .psd, .ai, .aep, .xcf, .mp3, .wav, .ogg, .webm, .webp, .flac, .afdesign, .m4a, .csv.
Feel free to ask in #community-meta if you think this is a mistake.
yes it is starting in the row which i input , but the old data gets erased when i run the program again @mild flume
yes
ok
Question or problem about Python programming: I use pandas to write to excel file in the following fashion: import pandas writer = pandas.ExcelWriter('Masterfile.xlsx') data_filtered.to_excel(writer, "Main", cols=['Diff1', 'Diff2']) writer.save() Masterfile.xlsx already consists of number of different tabs. However, it does not yet contain “Main...
i will check into this , TY 👍 😃
G'evening
hlo
Bonne nuit
hlo @unkempt pawn
Hey
Ooo
In case you needed to be singing about Russian Troll Farms for the next week...Jonathan Coulton and Head Gear Animation are back with another Good Fight Short! Air Date: Apr 1, 2019
yup, i agree ! merci beaucoup
I heard that theres a one man opposition in Russia
Navalny
shall i try to overwrite the existing excel file instead of creating a second one , wb.save("test.xlsx") @mild flume
Couldn't hurt
@mild flume OMG it works !!
Niiiiiiiiiiiiiiiiiiiiiiiice
i am actually a kiddo, listening to professors :p just started with programming
I miss writing something in Python lol
Hydraulic press.
wait
brb
oops i did write that command somewhere when i had one git class
@mild flume is it possible to keep the student id as key and other data as values and access the data whenever ?
i can save it in a dictionary
but the problem is when the program ends the data from the dictionary also gets erased each time ! @mild flume
I kept a word doc table of commands and effects when I was learning git
@mild flume u know about tinydb ?
git checkout for merging a branch ?
git checkout is for changing to a branch
but I think u already know that
will the data be saved even after the program ends in tinydb ?
'Am back, had to run a quick errand
what is the best one to learn for db management , p sql , mysql , ...or any other ?
no i am a git tyro :'(
I'm still working on my Haskell site, I'm just writing tests for it
thanks Mr.Hemlock !
but I like postgresql 😅
i am using excel as database , is it good ?
won't access be used for database, from ms-office?
for validation , excel is nothing
I might take a break once I'm done with the tests by poking around Nim and the like
this guy
yup
que es esto?
it uses sql in design view maybe
i read access doesn't support database of more than 1gb
je vais bien, et toi ?
how are you ? i am fine , and you ?
yeah, database file is 1 gb, what Rabbit said
Also I'm kinda sticking with sqlite as my site's database at the moment, it's gonna be a mostly read-only static site anyways. If anything I could easily swap out the dependencies and imports and have it working with postgresql
not to me, they taught MySQL
what's laundmo up to?
I've yet to decide on the hosting service that I'll be using lol
laundmo is a kinda guy everyone likes to be friends with :)
000webhostapp lol
never use that
laundmo was playing a pretty game environment
I'm planning on going with Hostinger or Contabo but that requires me to get a landline phone
I hate my internet service.
today workers laid optical fiber outside my house, said service will be up and running in 10 days or so
really a landline ?
Which is relatively cheap but I probably won't get one until I graduate in 5 months
github offers free hosting ?
Said hosting platforms require a telephone number
My app's full stack
@mild flume does tinydb follow dictionary logic ?
does AWS provide any kinda full stack hosting ?
You can with EC2 instances
yes
they are recommending Heroku for node js applications
😢 rabbit's gone
Bit of a shame, but that's fine
so I pushed my password on my git repo, rabbit said "you could tell github to block that"
anyone knows how?
If I was US-based probably
Unless you give them direct access
what's that? adding them in Manage Acess settings?
again , i am a kiddo so forgive me
Nah it's fine
I've exhausted my resources enough though, I'm settling for a low-cost EC2 instance for now
all well....
is there any kind of off topic chat here ?
Ooo
Awwkayy thanks !
Henlo Opal
True
I remember that one time a year and a half back when a water fountain caused me a sore throat
hey, do you guys use unittest?
It was pressurized a bit too much and cold water shot straight into my throat, which is not good
!codeblock
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.
def request_app(client_number, page_num):
page_num += 1
url_appointments = 'https://api.cliniko.com/v1/patients/' + str(client_number) + '/appointments?' + 'page=' + str(page_num)
try:
res = requests.get(url_appointments, headers={'Authorization': auth_value, 'Accept': 'application/json','User-agent': 'Mozilla/5.0'})
for key, value in res.json().items():
if key == 'appointments':
if value == []:
return res == False
except:
pass
page_num += 1
return res
```py
One sec
what do you think about this?
Would have to see where the call is made, Acc
Not the traceback, the part in the code iteslf
import unittest
from app.models import User
class UserModelTestCase(unittest.TestCase):
def test_password_setter(self):
u = User(password = 'cat')
self.assertTrue(u.password_hash is not None)
def test_no_password_getter(self):
u = User(password='cat')
with self.assertRaises(AttributeError):
u.password
def test_password_verification(self):
u = User(password = 'cat')
self.assertTrue(u.verify_password('cat'))
self.assertFalse(u.verify_password('dog'))
def test_password_salts_are_random(self):
u = User(password = 'cat')
u2 = User(password = 'cat')
self.assertTrue(u.password_hash != u2.password_hash)
super simple 👆
still errors
not a single error pointing to any line of the code
forget it Hemlock, I want to move ahead for now
Most of my stock holding is in SP500 mutual fund
def request_app(client_number, page_num):
page_num += 1
url_appointments = f'https://api.cliniko.com/v1/patients/{client_number}/appointments'
headers = {'Authorization': auth_value, 'Accept': 'application/json','User-agent': 'Mozilla/5.0'}
params = {"page": page_num}
try:
res = requests.get(url_appointments, headers=headers, params=params)
for key, value in res.json().items():
if key == 'appointments':
if value == []:
return res == False
except:
pass
page_num += 1
return res
anyone know sqlite? what will table_name.query.get() do?
If you listen to me for investing advice, you are also crazy, I'm not professional and also, gambling involves loses
there's a generator expression and generator function
!e ```py
def gen():
yield "hello"
yield "world"
for word in gen():
print(word)
@golden marsh :white_check_mark: Your eval job has completed with return code 0.
001 | hello
002 | world
!e ```py
def generate_number():
for i in range(10):
yield i
print(next(generate_number()))
print(next(generate_number()))
print(next(generate_number()))
print(next(generate_number()))
print(next(generate_number()))
@golden marsh :white_check_mark: Your eval job has completed with return code 0.
001 | 0
002 | 0
003 | 0
004 | 0
005 | 0
sooo yah you create a new generator in each line @knotty solar
hmm, good thing about generator functions, they stay forever
generator expression's gone once consumed
😏 I found a difference between them Laundmo 😏 😏 😏
this is just a normal column in the users table right?
does id column have some special meaning in a database table?
pure's gone, he was working on some database thingy 😢
I went to 6 atm's today, all of them out of cash
nicely spent 2 hours
saw some trains, railway station's ATM
it about keeping record of transactions
who's transactions?
this channel isn't meme dump
Hemlock's describing things the movie "The pursuit of Happyness" taught me
it's a classic
oh, please do watch it, and get ready to cry once in a while watching it
@mild flume i used sheet.max_row to automatically detect the last row and enter data after that row
@decorator1
@decorator2
def func():
pass
which decorator does its decoration first?
it goes from top to bottom, or the other way?
bottom up iirc
That sounds right
deja-vu, I've had the same convo with Rabbit before
what
oh yeah
oops
!e
def dec1(func):
print("dec1")
def inner():
pass
return inner
def dec2(func):
print("dec2")
def inner():
pass
return inner
@dec1
@dec2
def my_func():
print("my func")
my_func()
@warm tendon :white_check_mark: Your eval job has completed with return code 0.
001 | dec2
002 | dec1
there
Maybe don't rebase on the master or main
but on topic's, .... useful maybe
so bottom to top, thanks
@coarse hearth
!source
@leaden summit #voice-verification
Moo!
Here's an interesting variant of the minimal esolang called cow!
The awesome COW turing-completeness proof:
https://bigzaphod.github.io/COW/semantics-cow-english.pdf
Link to my fork of the cow compiler:
https://github.com/SinaKhalili/COW
Cowsay in cow:
https://github.com/SinaKhalili/cowsay-but-in-cow
Original cow website:
https://bi...
.love @coarse hearth
Python#4329 ❤ Mr. Hemlock#2740 scored 58%!
Your relationship has a reasonable amount of working out. But do not overestimate yourself there. Your relationship will suffer good and bad times. Make sure to not let the bad times destroy your relationship, so do not hesitate to talk to each other, figure problems out together etc.
can someone try it
.love python
#8311 ❤ ✪ SavagePastaMan#6567 scored 14%!
There might be a chance of this relationship working out somewhat well, but it is not very high. With a lot of time and effort you'll get it to work eventually, however don't count on it. It might fall apart quicker than you'd expect.
I made perfect file copying code
.git folder has only read only rights, so it needed some special attention
import shutil
from git.util import rmtree as remove_git
from os import curdir, rmdir
from pathlib import Path
source = Path.joinpath(Path(__file__).parent.parent, 'flasky_local')
destination = Path.joinpath(Path(__file__).parent, 'flasky')
destination_git = Path(str(destination) + '/.git')
if __name__ == '__main__':
try:
shutil.copytree(source, destination)
except FileExistsError:
remove_git(destination_git)
shutil.rmtree(destination)
shutil.copytree(source,destination)
print("Copying Done")
can you make dynamic variables in python? or any programming language for that matter?
so you'll just add all those variables to the global "object" dict or something
!e
for x in "abcde":
eval(f"{x} = {ord(x)}")
print(locals())
@warm tendon :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | File "<string>", line 1
004 | a = 97
005 | ^
006 | SyntaxError: invalid syntax
oh well
hey what is that object in MyClass(object)?
class MyClass(object):
pass
👆 they say, in old python versions, it was required to do that to make a Class
so class "object", everything in Python inherits from it?
PogO
cool-girl-69, sure why not?
haha lol
well' I've got chilblain on my two hand fingers
so many ppl here
oo
whagoingon
idk
I have a friend about 4.9, we call him "minion"
4.9 is that his height?
yup
is that in meters?
lols
in kms
I think
4.9 kms
I love Cox
I saw a thing about one of two twins having his sibling entered into his phone as "Spare parts".
omagad that's awesome
these .gif''s are big on my screen
probably you've got a small screen
@stuck bluff still learning
I read today, the Phone app, in windows, can now run any app in your phone on your pc
this one
There are development environment emulators and such.
@stuck bluff im learning numpy
@open scarab you're doing django, right?
pithon
def request_app(client_number, page_num):
appointments_list = []
url_appointments = f'https://api.cliniko.com/v1/patients/{client_number}/appointments'
headers = {'Authorization': auth_value, 'Accept': 'application/json', 'User-agent': 'Mozilla/5.0'}
params = {"page": page_num}
try:
res = requests.get(url_appointments, headers=headers, params=params)
for key, value in res.json().items():
if key == 'appointments':
if not value:
return res == False
else:
appointments_list.append(res.json())
except:
pass
page_num += 1
return
```py
import numpy as tf```
monkey s
my eyes are hurting now, I think I should go sleep now
👋 bye bye
what's with all these geefs?
bye tc
beefs
!mute @lusty monolith 1d stop spamming gifs
:incoming_envelope: :ok_hand: applied mute to @lusty monolith until 2021-02-02 17:53 (23 hours and 59 minutes).
!mute @gray marlin 1d don't spam gifs
is there a web scraping chanel here?
:incoming_envelope: :ok_hand: applied mute to @gray marlin until 2021-02-02 17:54 (23 hours and 59 minutes).
@dusk oak Thanks, I really appreciate it. I'm still trying to finish stuff at work, so I really don't have a lot of time
@mild flume im trying to understand how to create a hardware wallets on linux but i cant seem to find or understand how to add the right electrum "phyton package" to the drive. could you by any chance help me understand it?😃
"Answerable to no one, under cover of darkness, he goes from business to business, household to household...and completes their tax forms. He is...
The unaccountable accountant."
@winged pawn #❓|how-to-get-help That should tell you what you need to know in order to use our help system.
Thanks
i hate pink python logo
Why's that?
it looks gay(no offence)
femboy python
sad
i cant remember valentine
Some taken. 😉
i cant remember the dictaion too
didnt know it was to remember us about our singleness
single people
unite
this logo is better for dating app for py coders
@mild flume A flowering weed is sooner noticed.
Do py coders date though?
Troof
I'm married, sooooooo
But do you date?
import datetime```
so, everyone here is trying to date?
Not any more
we could 🥺
honestly we use (no offence ) for offensive sentences
Maybe you weren't py coder enough when you were dating. They oughta be mutually exclusive
after all excuse me
Did we not had fun activities on a date
NO OFFENCE
"All we have is all this time" 🎵
What can be more fun than properly use our legs to support ourselves
Plenty do. You have my sympathies, however.
@wintry sinew is the one i dont get it
Also want snow 
He does speak a bit fast yeah

(:

mina are u form us?
Hey Mush, just noticed you hopped in
In southern cali we had days off due to fire before because occasionally there're wild fires than can potentially spread onto the campus
I don't talk so little presence 
I'm mainly using vc as some kind of white noise that help me concentrate
Or for leisure. Just learning human behavior
Both good options
gtg food, nice talking to you all again
what sort of skills would complement or evolve a database engineering role
@surreal oasis thanks ... 👀 ...
i kinda wanna see a distinction between a database consultant and a backend engineer
yes
I have one and only one room in the house where there is spotty WiFi connection, even if I put the router directly by the door
Hey guys, what's @cunning gate working on?
~~flask ~~ django
Django
Ok, gotcha
Hello guys
Hello!
Pear programming...as opposed to Apple programming.
Ordina
why not
it makes a noise for us each time someone joins or leaves vc
Pepega
python -m pep install 8
pip uninstall pip
python3 -m pip uninstall python3
can someone private call with me to help me with some coding it's simple I'm just fairly new
just post here
i can help you in #751592231726481530
im not voice verified
if you ask staff they might let you have it just for the help session.
or post question here?
if you ask really nice
ok one sec i will ask
mmmmmmm yes vc
mmm yes tastyy @covert brook
yes of course
Hi there, I am Anshul Chauhan. I am interested in software engineering.
Access 49+ membership videos (more added each month) ► http://academyofideas.com/members/
Join via Paypal or Credit Card or Bitcoin
Get the transcript (and a gallery of the art work) ► https://academyofideas.com/2021/01/why-caring-what-others-think-breeds-mental-illness/
The best way to stay in touch and up to date with our content ►...
@warm tendon post pic
hi
what is the black thing on top of the mushroom ?
yes
I see
it looks like liquide
"So, what's your evolutionary advantage?"
"I turn to goo."
"...ah."
.... really pub
if anyone can help me with this code, that would be great
.codeblock
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.
you're missing an : @carmine vale
you're also missing the colons on the end of the conditions
i think this one has ppenis in its name i think
Reminds me of 60s experimental architecture.
right?
interesting
is that in barcelona?
yes
Hey Hemlock.
Hey how goes it
I'm fine, how about you?
I'll pigeonate your mom
not me
Sorry, if it's OK I would like you to @ me for each message me since I don't muted this server.
no, me
@carmine vale you've got the server muted?
Multiple pigeonations may take place if desired.
hmm? @carmine vale
Yeah, so I don't get notifications from the server from each chat.
@carmine vale why?
just answered that
So I don't get notifications from the server from each chat.
Once again, I don't want to be watching a movie and having discord messages from each of my servers and that's why I do that.
@carmine vale why are you doing that to yourself?
no idea what you mean
I just needed to not have discord messages coming in left, right, and center.
yeah i agree
@rose solar Does it come with an sd card?
And since I didn't want to miss a message just now, I asked for people that wanted to talk to me to ping me; I don't have a second monitor to view other apps.
it's an xqd card, the latest model
Or the backpack?
ominous cloud in my village
beaut


🥳




