#voice-chat-text-0
1 messages · Page 685 of 1
float(a) + float(b) + float(c)
kodaik = (6000*float(a))
a = 6000 * int(a)
kodaik = a + b
I'd suggest you do
a = float(input())
a = float(input('How much is Korrelite Per Peice?'))
b = float(input('How much is Reknite Per Peice?'))
c = float(input('How much is Gellium Per Peice?'))
d = float(input('How much is Axnit Per Peice?'))
e = float(input('How much is Narcor Per Peice?'))
f = float(input('How much is Red Narcor Per Peice?'))
kodiak = (6000*a)+(3400*b)+(2050*c)+(800*d)+(300*e)+(100*f)
print(kodiak)
input().split()
wait what is mapping? @tranquil barn
>>>alpha = [1, 2, 3]
>>>alpha[0]
1
>>>alpha[2]
3
👍
!d map
map(function, iterable, ...)```
Return an iterator that applies *function* to every item of *iterable*, yielding the results. If additional *iterable* arguments are passed, *function* must take that many arguments and is applied to the items from all iterables in parallel. With multiple iterables, the iterator stops when the shortest iterable is exhausted. For cases where the function inputs are already arranged into argument tuples, see [`itertools.starmap()`](itertools.html#itertools.starmap "itertools.starmap").
>>>'a p p l e'.split()
['a', 'p', 'p', 'l', 'e']```
>>>a, b, c = [1,2,3]
>>>a
1```
userInput = input("What are the Ore Values Per Peice?")
values = userInput.split(' ')
a = float(values[0])
b = float(values[1])
c = float(values[2])
d = float(values[3])
e = float(values[4])
f = float(values[5])
kodiak = (6000*a)+(3400*b)+(2050*c)+(800*d)+(300*e)+(100*f)
print(kodiak)```
Oh you were talking about the map function lmao. Sorry it's 2:40 AM here lol
userinput = map(float, input().split())
Kodiak = sum(I*j for I,j in zip(userinput, [6000, 3400, 2050, 800, 300, 100]))
print(Kodiak)
input()
#or
print('Ctrl+c to quit')
while True:
pass```
userInput = input("What are the Ore Values Per Peice?")
values = list(map(int, userInput.split(' ')))
a, b, c, d, e, f = values
kodaik = (6000*a)+(3400*b)+(2050*c)+(800*d)+(300*e)+(100*f)
print(kodaik)
this doesn't look clean IMO
a, b, c, d, e, f = values
this line
What if the user adds one extra number
you know
Rocks fall.
ah ok
Everyone dies.
Anybody have tried solving pythonchallenges.com ?
I gave one of my GCSE exams by not sleeping at all
got a freaking B cause I didn't sleep
I was sleep deprived
test
testing a bot?
nah
I would suggest going with pytorch over fast ai. Fast ai is still in development and still has a lot of bugs
Breadth over depth. Always!
Choose your own adventure.
You could be all "Eigernhugenharbenhager!" and I'd be all "Que?"
I did take German at uni, but I didn't really absorb it.
from kivy.app import App
App().run()```
Ta-da!
University is a means to an end
Just to put it on your job app
Ah, yes making connetions
I did a few years at community college, so I didn't get any social aspect
Cities are quite isolating
The city is fun for a little while
@whole bear
"Not to be that person, buuuuuu~uuuuut"
I am trying to write a program, that will write programs to lego robots
So that def maze_runner, is needed to save at other python file
For example i use function maze runer, and insteed of doing code here, i wan't to open new file txt/py whatever and write this code here, after all mathematics used with variables
So it will be easily to just move in with that file to simulator
so you want to open a python file from a python file right?
first step I give some inputs( to global variables like wheeldiamater for example), next steep i chose function ( maze_runner is function for robot that makes for running mazes with sensor's) and I need to after all mathematics, that function make new for example maze_runner.py file in this directory
With all neccesery code to robots, but only that
Information is not enough and unstructured
Hmm, okey I will try other way. I need to write a function, that will open new file, rewrite various line of code from main function, and save that as .py
You can do it probably
with open(_file _) as main:
with open ("another", "w") as file:
file.write(main.read()[x:y])
_
_
_
Thanks
def ship():
s = input("What ship are you looking to buy? (Case Sensitive): ")
k = int(input("Enter the current price of Korrelite: "))
r = int(input("Enter the current price of Reknite: "))
g = int(input("Enter the current price of Gellium: "))
a = int(input("Enter the current price of Axnit: "))
n = int(input("Enter the current price of Narcor (if applicable): "))
rn = int(input("Enter the current price of Red Narcor (if applicable): "))
ship()
if s == "Kodiak":
c=(6000*k)+(3400*r)+(2050*g)+(800*a)+(300*n)+(100*rn)
print("The price of a Kodiak is", c, "credits")
ship()
elif s == "Barracuda":
c=(4800*k)+(2900*r)+(1800*g)+(700*a)+(250*n)+(100*rn)
print("The price of a Barracuda is", c, "credits")
ship()```
I get S not Defined error
4x spacebar before if I think will do
Can you put it in repl or something ?
Where interactive debug is possible
While True:
ship()
If condition met :
break
def ship():
s = input("What ship are you looking to buy? (Case Sensitive): ")
k = int(input("Enter the current price of Korrelite: "))
r = int(input("Enter the current price of Reknite: "))
g = int(input("Enter the current price of Gellium: "))
a = int(input("Enter the current price of Axnit: "))
n = int(input("Enter the current price of Narcor (if applicable): "))
rn = int(input("Enter the current price of Red Narcor (if applicable): "))
ship()
while True:
if s == "Kodiak":
c=(6000*k)+(3400*r)+(2050*g)+(800*a)+(300*n)+(100*rn)
print("The price of a Kodiak is", c, "credits")
ship()
elif s == "Barracuda":
c=(4800*k)+(2900*r)+(1800*g)+(700*a)+(250*n)+(100*rn)
print("The price of a Barracuda is", c, "credits")
ship()
How to put formatted code like that ?
!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.
Thanks
what are we chatting about
ships = {
'Kodiak' : [6000, 3400, 2050, 800, 300, 100],
'Barracuda' : [4800,2900,1800,700,250,100]
}
def ship_service():
s = input("What ship are you looking to buy? (Case Sensitive): ")
k = int(input("Enter the current price of Korrelite: "))
r = int(input("Enter the current price of Reknite: "))
g = int(input("Enter the current price of Gellium: "))
a = int(input("Enter the current price of Axnit: "))
n = int(input("Enter the current price of Narcor (if applicable): "))
rn = int(input("Enter the current price of Red Narcor (if applicable): "))
if s in ships:
return sum(i*j for i, j in zip(ships[s], [k,r,g,a,n,rn] ))
else:
return None
if __name__ == "__main__":
while True:
try:
ship_service()
except:
break
got some trouble with microphone
one sec
ships = {
'Kodiak' : [6000, 3400, 2050, 800, 300, 100],
'Barracuda' : [4800,2900,1800,700,250,100]
}
def ship_service():
print('Enter the followings in order space seperated ')
inputs = ['Ship looking to buy (case sensitive)', 'price of Korrelite', 'price of Reknite',
'price of Gellium', 'price of Axnit', 'price of Narcor', 'price of Narcor' ]
print(*inputs, sep=': \n')
s, k , r, g, a, n, rn = map(int, input().split() )
if s in ships:
return s, sum(i*j for i, j in zip(ships[s], [k,r,g,a,n,rn] ))
else:
return None, None
if __name__ == "__main__":
while True:
try:
ship, price = ship_service()
if ship and price:
print(f"The price of a {ship} is {price} credits")
except:
break
:incoming_envelope: :ok_hand: applied mute to @cerulean spear until 2020-11-30 01:02 (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
lol
nice
!tvban 772572441813057566 2w Spamming to get voice verified will get you nowhere.
:incoming_envelope: :ok_hand: applied voice ban to @cerulean spear until 2020-12-14 00:53 (13 days and 23 hours).
LOL!!!
@scarlet plume forgive me!!!
@whole rover Forgive me, Owner.
I know I was wrong. 😫 😫 😫
Hi, @whole rover @scarlet plume forgive me
Hi, @whole rover @scarlet plume forgive me.
:incoming_envelope: :ok_hand: applied mute to @cerulean spear until 2020-11-30 01:38 (9 minutes and 59 seconds) (reason: mentions rule: sent 6 mentions in 10s).
yeah ok....
nice one
!ban 772572441813057566 Spam pinging staff after voice ban.
:incoming_envelope: :ok_hand: applied ban to @cerulean spear permanently.
Morning
good you?
good what?
Ah okay sorry
hi
hi
hi
@spiral seal what is echoyazilim.com?
Hmmm
i am 16 years old :d
I would like to contribute tbh
hey im 16
how are you@whole bear
have we met before also?
@cloud stratus okey
I dunno if I'm eligible tho
@whole bear nope
my english is not good
i guess @cloud stratus can?
i developing my english
Yo I'm Turkish too @spiral seal
yes
Yup I can
@cloud stratus türk müsün?
But I'm actually in an online class rn
We can, in an hour or smthg
I'm in live class
you guys take it this serious!!!
im indian
and trust me its a joke
i study most on my own and maybe utube
our attendance is digital so u click the join in the app and boom
you are present
!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!*
hlo @pliant atlas ,@somber heath
yes i am new here so i don't have the permission to talk as u said
so from which country u r from?
sorry can u plz repeat ?
ok
ok
network issues
Rightio.
which city in australia
hey
I've a friend who once travelled around the world a bit. Wherever he went in a predominantly non English speaking country, whenever he told people where he was from, not everyone understood "Australia", but everyone recognised the miming of a kangaroo.
@tall latch o/
cus it should measure hour
yeah but in India everyone will get what is Australia
but very few will get what is "THE LAND OF KANGAROO "
@tall latch from where u r?
@tall latch Haven't seen you about of late.
india
ok
yeah i was like gaming for a lot of days
i didn't worked at all
my laptop struggles to handle edge sometimes
its a "baked" potato
are u guys working on a project?
no
ok
exactly
I know a good heater I got a good one. it has a cooling fan, has an Intel i3 7th chip(baked not fried), and heats up very good, and it's made by HP
I'm currently sticking my nose into Perlin.
this is a joke i made on my laptop
Which isn't as interesting as Worley, but we'll see what we can do about that. 😁
@tall latch Ah, so overheating is your issue?
There aren't utilities to talk to the chip governor to cap the frequencies?
Maybe the cpu manufacturer may offer a download.
this thing even got a cooling fan
but i have only seen it go over the normal speed automatically once
@somber heath you're the perfect dont need no filter
Though the cmos may also be your friend
cmos??
What people call the "bios settings".
like who use it nowadays
Why would you say such an awful thing?
Bop bop bop
Original:
https://www.reddit.com/r/MEOW_IRL/comments/j7vs4o/meow_irl/
https://twitter.com/XavierBFB
24/7 Live Stream: https://www.youtube.com/c/10HoursMovies/live
Join us on facebook: https://www.facebook.com/10HoursMovies
Please send your suggestions about 10-hours video to: 10HoursMovies@gmail.com
If you have a good idea, I'll im...
oh and some thing is wrong with the volume now
@somber heath can I call you senpai?
@jagged trail Within the context of this server, I prefer to be referred to as OpalMist. However, Opal and Mist are also acceptable.
@SysKey#8797 While a general principle in Python is backward compatability, not all older modules are compatible.
o/
brb
hello @somber heath @whole bear @whole bear
check this out
alr
@whole bear stop spamming in every channels, you gonna get timeout
you got any experience in hacking do it!!!!!!
hmmm, who r the cameras pointing to ?
the god knows
yess
i mean, the fbi is probably watching us
so these are those webcam pictures
RIP THE BIRTHDAY
Original video :
https://youtu.be/c46_iL2QqOE
rip Microsoft edge
me: gets bad marks
parents:
i'm joking
till date
@clear forum helo
🤣
no
hey
///@whole bear you a hacker or somethin
no
im just making a weird program
your name suggests
oh
is slav that russian thing
in your name
dont mind
just curious
@whole bear
Instagram Pages
Beter Memes : https://www.instagram.com/betermemess/
Beter Gaming : https://www.instagram.com/betergaming/
For contact and business : betergaming0@gmail.com
0:12 - Sneeze meme : https://www.instagram.com/p/B0Xj8TylMSH/
0:51 - Gopnik meme : https://www.instagram.com/p/B0KgYlLlwkb/
1:54 - That's so lame meme : https://www.instagr...
this is hilarious
jesus christ yeah I get it I'm russian
you guys dont abuse me in russia ok
This is a repost
I didn't make this meme
It belongs to FreeMemesKids
Join my Discord server
https://discord.gg/RbZwt7T
this si the best ive seeen about russia
@whole bear i didnt knew what suka blyat was
do u?
shudDUP
** Get rick rolled**
LMAO
hey looks like i am forgetting the basics
help me with this code
return x**x
f(2)```
cant get an output
In [1]: def f(x):
...: return x**x
...:
In [2]: f(2)
Out[2]: 4
what wrong here?
probably you should skip indentation after your def
!e
def f(x):
return x**x
print(f(10000))
!e
import inflection
inflection.underscore('camelCase')
@unkempt berry :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | ModuleNotFoundError: No module named 'inflection'
Your function call is in the same block as the function definition.
def f(x):
return x**x
f(2)```
vs
def f(x):
return x**x
f(2)```
The first one definitely won't call itself recursively, because it returns before it calls itself again.
But if it didn't return, it would.
If anyone says it calls itself recursively, they're a dirty liar and you should ignore them.
so does this eval-bot support importing modules 
To an extent.
!e
import json
print(json.dumps({'testing':'eval'}))
@unkempt berry :white_check_mark: Your eval job has completed with return code 0.
{"testing": "eval"}
It'll have the standard library...I don't think there are any exceptions, there. It'll have some popular third party ones, like numpy, I believe.
w'd be cool if i could install em like in colab
It'll have all that you need, most likely. For anything it doesn't have...if you think it might be something that it should have, you can mention it in #community-meta, I expect.
.
o/
If you want a response, print a response.
but the tutorial guy didint still got a response
Right now, f(2) is being returned as 4. So it's like writing 4 instead of f(2)
print(f(x))
wait, why can't you just use print function?
that would be better
will this do it?
yes
Did the tutorial guy have a lot of >>> on his screen?
the guy you watch probably just run it in python shell so it auto print out the return
he's right
yupp got it
he used idle
ok, guys, can you give me an advice of it
inv = {'gold coin': 40, 'arrow': 12}
dragonloot = {'ruby': 1, 'armor set': 5, 'trophy': 1}
def before():
print('Before: ')
for k, v in inv.items():
print(k + ' - ' + str(v))
def after():
print('After: ')
total = inv.update(dragonloot)
for k, v in inv.items():
print(k + ' - ' + str(v))
before()
after()
not any ide or somethin
it works well, but how can i upgrade it?
looks like
!code @whole bear you can format your code for easier to see
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.
dragonloot = {'ruby': 1, 'armor set': 5, 'trophy': 1}
def before():
print('Before: ')
for k, v in inv.items():
print(k + ' - ' + str(v))
def after():
print('After: ')
total = inv.update(dragonloot)
for k, v in inv.items():
print(k + ' - ' + str(v))
before()
after()```
thx
use f string, it's easier to read than concat string
name = input('What is your name? >')
print(f'Hello, {name}.')```
Jamsyn.
print('Hello, %s' % name)
```try this
from python3.6 f string performance is better to use
😬
!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!*
!e
a = "hi"
print("%s" % a)
Listen to “Therefore I Am”, out now: https://smarturl.it/ThereforeIAm
Directed by Billie Eilish
Follow Billie Eilish:
Facebook: https://www.facebook.com/billieeilish
Instagram: https://www.instagram.com/billieeilish
Twitter: https://twitter.com/billieeilish
YouTube: https://www.youtube.com/BillieEilish
Email: http://smarturl.it/BillieEilishE...
!e
a = "hi"
print("%s" % a)
@sick cloud :white_check_mark: Your eval job has completed with return code 0.
hi
yesss
what is his f used for???
formatted string
It denotes that a string should be interpreted as an f-string.
ok
Translating the variables/expressions/objects in the curly brackets, {} to text.
from python.org
F-strings provide a way to embed expressions inside string literals, using a minimal syntax.
f-strings are luxuries, back in my day we had to trudge uphill in the snow both ways just to use the % operator
So if you have a variable called name with a value of 'James', f'{name}' will be equal to 'James'.
name = 'James'
print(f'Hello, {name}')```
thanx
!e
name = 'James'
print(f'Hello, {name}')
@sick cloud :white_check_mark: Your eval job has completed with return code 0.
Hello, James
@sick cloud :white_check_mark: Your eval job has completed with return code 0.
Hello, James
yesss
It also works with number values. Integers. Floats. You don't have to str them first.
Yes, but better.
!e
a = 9
print(f"hi {a}")
@sick cloud :white_check_mark: Your eval job has completed with return code 0.
hi 9
i prefer C++
I've heard good things about girl c, too.
what is girl c ?
hello @tranquil barn
hes being rheotorica!!!!!!1
@sick cloud Ask @whole bear.
i cant speak
Yahoy.
have u tried for voice verification ?
Ahoy.
ohhh, u need to send over 50 messages,before u could speak...
that too
Depends.
but not days
How old are said 71 messages?
Every channel on VHF radio has a specific purpose. Channel 16 is for hailing and distress messaging only. It is meant to be monitored all the time while underway to assist in emergencies if necessary, to hear Coast Guard alerts for weather and hazards or restrictions to navigation, and to hear another vessel hailing you. This channel should neve...
Ah. If they haven't been on for long, then that still doesn't count.
🙂
now i figure java is too shitty and uselessly difficult like why do u use system.out.println istead of justprintf
unlucky
Hailing may refer to:
Hail, a form of frozen precipitation
Hailing District (海陵区), Taizhou, Jiangsu, China
Hailing, Yangjiang (海陵镇), town in Jiangcheng District, Yangjiang, Guangdong, China
Prince of Hailing (disambiguation), several Chinese princes
Hailing, a municipal part of Leiblfing, Bavaria, Germany
viruses
i need a voice verified
in the channel
not here
I was saying he should go there
I want to S P E A K
I am no troll
I do the code thingy
it doen't work so
read the rules man
I slam my head on my desks JUST LIKE YOU
Apply yourself, and you'll find it's not an insurmountable hurdle. 🙂
you gotta messae atleast 5o in 30 mins span
god dangit
I just need 3 days which is stupid 😠
brb
showoff your russian accent
I wanna talk about the weird shit I've been doing
That loop is too damn short.
Well, go on.
Tell us about the weird shit you've been doing.
Because I'm where I would prefer to not talk, lest I disturb the other members of my household.
здарова


how to view all the builtin functions
The Python documentation from the python.org website would list them.
dir(thing)
hey
There is also help()
Called on its own like that, however, you might need to poke around.
I'm listening.
@sick cloud :white_check_mark: Your eval job has completed with return code 0.
['A', 'ASCII', 'DEBUG', 'DOTALL', 'I', 'IGNORECASE', 'L', 'LOCALE', 'M', 'MULTILINE', 'Match', 'Pattern', 'RegexFlag', 'S', 'Scanner', 'T', 'TEMPLATE', 'U', 'UNICODE', 'VERBOSE', 'X', '_MAXCACHE', '__all__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', '__version__', '_cache', '_compile', '_compile_repl', '_expand', '_locale', '_pickle', '_special_chars_map', '_subx', 'compile', 'copyreg', 'enum', 'error', 'escape', 'findall', 'finditer', 'fullmatch', 'functools', 'match', 'purge', 'search', 'split', 'sre_compile', 'sre_parse', 'sub', 'subn', 'template']
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.
!code
and then write?
!code inv = {'gold coin': 40, 'arrow': 12}
dragonloot = {'ruby': 1, 'armor set': 5, 'trophy': 1}
def before():
print('Before: ')
for k, v in inv.items():
print(f'{k} - {v}')
def after():
print('After: ')
total = inv.update(dragonloot)
for k, v in inv.items():
print(f'{k} - {v}')
before()
after()
inv = {'gold coin': 40, 'arrow': 12}
dragonloot = {'ruby': 1, 'armor set': 5, 'trophy': 1}
def before():
print('Before: ')
for k, v in inv.items():
print(f'{k} - {v}')
def after():
print('After: ')
total = inv.update(dragonloot)
for k, v in inv.items():
print(f'{k} - {v}')
before()
after()
how did u do it/
```py
code
inv = {'gold coin': 40, 'arrow': 12}
dragonloot = {'ruby': 1, 'armor set': 5, 'trophy': 1}
def before():
print('Before: ')
for k, v in inv.items():
print(f'{k} - {v}')
def after():
print('After: ')
total = inv.update(dragonloot)
for k, v in inv.items():
print(f'{k} - {v}')
before()
after()
!e
inv = {'gold coin': 40, 'arrow': 12}
dragonloot = {'ruby': 1, 'armor set': 5, 'trophy': 1}
def before():
print('Before: ')
for k, v in inv.items():
print(f'{k} - {v}')
def after():
print('After: ')
total = inv.update(dragonloot)
for k, v in inv.items():
print(f'{k} - {v}')
before()
after()
@sick cloud :white_check_mark: Your eval job has completed with return code 0.
001 | Before:
002 | gold coin - 40
003 | arrow - 12
004 | After:
005 | gold coin - 40
006 | arrow - 12
007 | ruby - 1
008 | armor set - 5
009 | trophy - 1
np
All that's in the flow of that function gets executed, yes.
fine, how can I do it without x.update() function, cuz it replaces the code that followed before
if statements, for example, may mean that some of the code gets executed while other parts of it don't
Check your methods for a missing self parameter.
that's my code
Hm. Okay. Looking.
and i still get this
try to pass command_prefix instead of prefix
wondering what netflix had used as back end!
yesss, it works now, thx man

Hoy Kim.
Well, you're familiar with my common reason.
Which is the one that applies.
@severe elm helo
i don't drink coffee...
You might be rusty, but you won't have forgotten the kinds of things you know can be done.
and you can look those things up
no gf
@wind cobalt nope
no s*x
@wind cobalt Your own audio does not sound echoey.
@wind cobalt u r not echoing
As to Kimchi's audio, I do not notice any echo from you, @wind cobalt.
Well, I'll keep an ear out if I can remember in the moment.
Yeah. I get it.
I think I have the same issue on the main desktop, here.
Unless I'm using a different mic system using usb.
I think all of the standard audio jacks on this thing are a little fried.
idk why but now desktop sound old to me even if its the latest feels like laptops have taken over
yess, cuz most people use laptop now
if ure not 300 fps rgb gamer, you use laptop yeah
so if youre all have your mics muted what's the point of being in the voice channel 
😄
Listening to other people talk when they do come along.
and talking back to them in here
Note: Talking back, not with.
Because sass is its own reward.
.aoc join
devs need to realise that environment variables are actually a thing and they need to use them
Deleted it
import pynput
from pynput.keyboard import Key, Listener
count = 0
keys = {}
def on_press(key):
global keys,count
keys.append(key)
count += 1
print("{0} pressed".format(key))
if count >= 10 :
count = 0
write_file(keys)
keys = []
def write_file(keys):
with open("log.txt" , "a") as f:
for key in keys :
f.write(key)
def on_release(key):
if key == Key.esc:
return False
with Listener(on_press= on_press, on_release = on_release) as Listener:
Listener.join()
need help
im trying a keyrecording project but im getting errors
Unhandled exception in listener callback
Traceback (most recent call last):
File "C:\python39\lib\site-packages\pynput_util_init_.py", line 211, in inner
return f(self, *args, **kwargs)
File "C:\python39\lib\site-packages\pynput\keyboard_win32.py", line 280, in process
self.on_press(key)
File "C:\python39\lib\site-packages\pynput_util_init.py", line 127, in inner
if f(*args) is False:
File "d:\Users\Marven\Desktop\VS code files\screen\hey.py", line 8, in on_press
keys.append(key)
AttributeError: 'dict' object has no attribute 'append'
Traceback (most recent call last):
File "d:\Users\Marven\Desktop\VS code files\screen\hey.py", line 29, in <module>
Listener.join()
File "C:\python39\lib\site-packages\pynput_util_init_.py", line 259, in join
six.reraise(exc_type, exc_value, exc_traceback)
File "C:\python39\lib\site-packages\six.py", line 702, in reraise
raise value.with_traceback(tb)
File "C:\python39\lib\site-packages\pynput_util_init_.py", line 211, in inner
return f(self, *args, **kwargs)
File "C:\python39\lib\site-packages\pynput\keyboard_win32.py", line 280, in process
self.on_press(key)
File "C:\python39\lib\site-packages\pynput_util_init.py", line 127, in inner
if f(*args) is False:
File "d:\Users\Marven\Desktop\VS code files\screen\hey.py", line 8, in on_press
keys.append(key)
AttributeError: 'dict' object has no attribute 'append'
hello @digital jackal
hey
how r u ?
gd how abt you
i'm gud thx, where u from ?
import pynput
from pynput.keyboard import Key, Listener
count = 0
keys = []
def on_press(key):
global keys,count
keys.append(key)
count += 1
print("{0} pressed".format(key))
if count >= 10 :
count = 0
write_file(keys)
keys = []
def write_file(keys):
with open("log.txt" , "a") as f:
for key in keys :
f.write(key)
def on_release(key):
if key == Key.esc:
return False
with Listener(on_press= on_press, on_release = on_release) as Listener:
Listener.join()
```try this
@digital jackal try this: #voice-chat-text-0 message
i replaces {} with []
import pynput
from pynput.keyboard import Key, Listener
count = 0
keys = []
def on_press(key):
global keys,count
keys.append(key)
count += 1
print("{0} pressed".format(key))
if count >= 10 :
count = 0
write_file(keys)
keys = []
def write_file(keys):
with open("log.txt" , "w") as f:
for key in keys :
f.write(key)
def on_release(key):
if key == Key.esc:
return False
with Listener(on_press= on_press, on_release = on_release) as Listener:
Listener.join()
```try this
changed the mode, from a to w
hmmm, i think
u r not calling the function at the first place
u r not calling it
@ripe torrent he didn't call that function
def write_file(keys):
with open("log.txt" , "a") as f:
for key in keys :
f.write(key)
he did that before
@digital jackal u didn't call it i guess
nope, write_file isn't called
just just call it
alright
change the mode from a to w
lets goooooooo
yes
@digital jackal np, where u from ?
lebanon
@ripe torrent i'll tell u someday else
@chrome osprey Sorry. You're only intermittently intelligible. Could changing your wifi channel to one less populated be of help?
trying
yes it can be but only if you have a lot of wifi in your neighbourhood
is this a house roof or something??
are cement roof uncommon there?
like here all u see are ceement roof
cold?
oh!
Hi @ALL
hello
@near ocean sa
naber
ingilizce yazmalisiniz gencler
Türkler heryerde
ok
What goes on TOR stays on TOR, or so we hope. Dr Mike Pound takes us through how Onion Routing works.
EXTRA BITS: https://youtu.be/6eWkdyRNfqY
End to End Encryption: https://youtu.be/jkV1KEJGKRA
Deep Web / Dark Web: https://youtu.be/joxQ_XbsPVw
http://www.facebook.com/computerphile
https://twitter.com/computer_phile
This video was filmed a...
ok this looks scary
...why are you posting .onion links?
cool
@somber heath whats your appx age if i may ask?
@whole bear Older than you.
yes u are'
no i am
interesting to see win8 user
ye
8.1 to be exact
i prefer win8.1
many tests say that 8 is faster than 7 win
Ahem.
Gentoo Linux
id prefer linux distros but for normal purpose win is best
i have core i7 by the way
@somber heath what hours/day yove devoted appx
Python art https://imgur.com/gallery/OJaqKvR @ripe torrent
@somber heath i bet this might earn you coz this is amazing
sooo beautiful
did u do it yourself?
I wrote the code that did, yes.
hmmm, how many lines did it take u ?
nah, i was just wondering
and u also used multithreading to speed up the code right ?
ummm, then did u try to use async ?
true
no
but more process could occur though ?
Speaker: Chelsea Voss
We'll describe the ideas and implementation behind Oneliner-izer, a ""compiler"" which can convert most Python 2 programs into one line of code. As we discuss how to construct each language feature within this unorthodox constraint, we'll explore the boundaries of what Python permits and encounter some gems of functional p...
@whole bear Here, for clarification
hi
does anybody has code for day3 part1 for AoC 2019 ?
@neon sleet hello
hi
what is AoC 2019 ?
never heard of it
huh?
i dont know how to unsuppessed my self
Check out the #voice-verification channel
does anybody has code for day3 part1 for Advent of Code 2019 ?
i already did verified my self
leave and rejoin
i am sorry but my english is kind a bad
its fine, mine is bad too
haha, mine is bad aswell
ok sir
im probably younger u
ok
it is probably allowed here
ok thanks
can i send you friend request if its allowed here
it is probably allowed here
what could go wrong ?
his home i guess
i have to w8 for 3 days and also i have to complete 50 massages
no wait
w8 == wait
long->wait short->w8
w8 == Wubernetes
.uwu Kubernetes
Kubewnetes
Hemlock wut
do you guys teach white hat hacking
Nope
We do not, no
...
what about the not so white-hat kind? /s
hemlock i payed 58,000 and rest is monthly
actully i wanna make ma cereer in it
Someone should stream today, more ppl would join the chat
I could try to, but you're gonna watch my Emacs chug for 3 minutes
sure i will, do it @swift valley
that's why you use VS Code with >9000 addons
Just 3 minutes
if you're going to suffer, do so in style
k
Hacking really isn't one of the topics we cover. Since we can't verify the intent, and even if the person had good intentions someone else might swipe it. #cybersecurity can discuss overall concepts but no code can or will be shared or helped with.
TypeError: 'module' object is not callable
@willow light My Emacs is stylish enough thank you very much
how? it's emacs
switch to windows
unless you're using spacemacs, which i can forgive since you can use real editor keybindings on that one
:q
@tranquil barn u got background noises, could u mute its annoying
oh, wait I fixed it
@wise glade
import random
random()```
This is what you shouldn't be doing.
i created script name and a function inside that script the same name, and didn't imported correctly 😝
rip and tear the bugs?
Dark+
name though
Sure
@swift valley u aint gonna stream? 😞
Which OS and i3wm ?
Give me a few
Manjaro+AwesomeWM
1 entity later:
Ahhh..
Will switch to i3-gaps once I find the time
Were you using vim or Emacs before ?
meanwhile I'm over here experimenting with kde plasma for the first time on my "screw around with linux features i haven't used before" laptop.
Neovim, until I got tired of it
what does kde mean ?
Rather, until it wasn't enough for me
KDE is a community and a desktop environment
it's a software foundation
thx u and u @ripe torrent
And KDE apps ofcourse
although I use the deepin terminal emulator because it looks nice
16/25
It's my LISP interpreter
@ripe torrent Yea its any alloy
im thinking of getting spectrum wifi should i?
I can turn it down from 720 to 480 lol
@rugged root u gonna be doing AoC right?
its all good
its her LISP interpreter
his* (i think)
look at ~~his~~her pfp
Yes
terminal god
sad
we had 20 ppl cause of that
got pulled into a support call and you guys aren't privy to that
19 left
how do I exit my always running programs? I put my scritps in a while loop, in a multiprocessing pool, now I don't know how to stop it without closing the terminal
ctrl C?
Clarinerd cool story
I’ll file it in my shredder
I'm not used to your profile picture being HD @amber raptor
This is voice fault
@amber raptor didn't ask you lol
In fairness none of us asked
how do your exit python programs? exit()?
quit() and exit() work
sys.exit is recommended for stopping Python applications
quit and exit is for the REPL
Few people ask me for my wisdom but I give it to all
ctrl c if it's in a loop
while it's running
oh
THE RABBIT HAS SPOKEN
Also @hollow haven the terminal is running on Emacs
all I can do in tkinter is this thing ```py
import tkinter
from tkinter import messagebox
def popUp(title="Some Title", message="Some Message"):
'''Creates a pop up box, with args title and message, goes away when pressed OK button'''
root = tkinter.Tk()
root.withdraw()
messagebox.showinfo(title, message)
anyone knows `tkinter`, can you create a simple code please with a `X` button, which when clicked just calls `exit()` on the entire program 🙏
Wassup
Language design is really hard
@tranquil barn i did make one with sly
@swift valley are u using a parser for your LISP interpreter?
Who can help me with ImGui for C++?
but it sounds impressive
i bet Bill Gates would make one of those by himself
Most interpreters/compilers utilize a parser
Cython
"Hi, I'm Ty Pinting. You may remember me from such languages as..."
what's CICD
Continuous Integration and Continuous Delivery/Deployment
You have millions of servers and never ending merges to code base you can leverage CICD to do your thing
If you know what I mean
Assuming it is properly implemented.
Hope you like YAML. If not, then I hope you like Groovy since then you're using Jenkins.
i prefer JSON over yaml
wsup guys
GNU's Not Unix
try:
rmtree(filepath)
except FileNotFoundError, FileExistsError: # is this line correct syntax?
Path.mkdir(filepath)
I would put the exceptions separately
also I'm not sure why my mic sounds bad on my laptop, it's fine on my phone lol
@Events Lead have access to admin channels?
try:
pass
except KeyError:
pass
except IndexError:
pass```
!server
Server information
Created: 3 years, 10 months and 22 days ago
Voice region: europe
Features: WELCOME_SCREEN_ENABLED, DISCOVERABLE, COMMUNITY, VANITY_URL, PARTNERED, VIP_REGIONS, NEWS, RELAY_ENABLED, ANIMATED_ICON, PREVIEW_ENABLED, BANNER, MEMBER_VERIFICATION_GATE_ENABLED, INVITE_SPLASH
Channel counts
Category channels: 33
News channels: 8
Text channels: 185
Voice channels: 12
Staff channels: 73
Member counts
Members: 113,911
Staff members: 88
Roles: 76
Member statuses
35,007
78,904
hi
.wa tides Boston, MA
hey...
We're probably going to hit 200k in a few months/years ™
@wise glade Did you spot my demonstration above?
hey guys do u think jumping fron direct beginner to learning py along with data structure would help????
Maybe
depends
if you know the basics of python then sure go ahead with learning data structures
consider a guy this mad that hes not gonna sleep tonight
python == english
how can i join vc
C++ == better
@whole bear Provided you're not overwhelming your brainbox, anything you can learn to do in a proper fashion is worth learning.
And by basics I mean the general syntax and what not
click on the vc name
.wa cross((x,y,z),(u-z,v-y,w-x))
@stoic nymph Check the voice verification channel for instructions.
stuck
def MonitorComponentsChanges():
'''Continuously Monitor `components.txt` file for changes and take appropriate actions'''
global filepath
# Getting default user help message size
file_size = content_length(filepath
with pool(max_workers=1) as p:
while True:
changed = p.submit(detect_change(filepath))
if changed:
# Get changes length
new_length = content_length(filepath)
if file_size < new_length: # Gates info added
print('`components.txt` modified, parsing components')
parseComponents()
elif file_size == new_length: # No changes in the file contents
continue
else:
# Creates file again, if new_length < original file_size
print('`components.txt` contents found wrong. Creating the file again.')
popUp("`Components.txt` Created Again", "`Components.txt` file contents were found wrong. File created again.")
fileMaker()
will this code ever switch back to main script? or do i need to put a time.sleep() or something in the while loop?
me tooo
icpc??
wtf is this ? just had a mini heart attack
mini nice
To get a taste of the challenges: https://adventofcode.com/2019/day/1
@swift valley that sounded like a wolf howling behind you, 👀
Yeah no that's a chicken
Midnight is noisy here
lol
could be worse lol
Back in a moment
this one #voice-chat-text-0 message
anyone?
.wa cross((u,v,w),(d/dx,d/dy,d/dz))
if __name__ == '__main__':
createComponents_txt()
MonitorComponentsChanges()
parse_all_nets()
there we go
a moment of silence
poggers
what does it mean ?
poggers is poggers
wdym
what's up? what are you guys up to?
@wise glade You might want to place this outside of MonitorComponentsChanges
with pool(max_workers=1) as p:
ok, let me give it a shot
What's basically happening here is that MonitorComponentsChanges is blocking regardless whether you're using concurrency for it or not
You'd probably want to do something like
with ProcessPoolExecutor(max_workers=2) as p:
p.submit(background_task)
p.sumbit(do_something_else)
so I have to put it where MonitorComponentsChanges function gets called?
You'd want to make the context manager to be in the top level of your script
LET IT OUTTTT
woohoo, so many guys in voice
yeah
function name argument and paramter
what is it ?
snippets?
Gonna get coffee, be back in a bit
def changes():
MonitorComponentsChanges()
if __name__ == '__main__':
createComponents_txt()
with pool_m(max_workers=1) as p:
p.submit(changes)
parse_all_nets()
this worked
@amber raptor swift made by apple
can only be used in apple device
like visual basic -> made by microsoft
"Well I have experience making games on my calculator, does that count?" /sarcasm
Flutter is Google’s UI toolkit for building beautiful, natively compiled applications for mobile, web, and desktop from a single codebase.
Is this true? Just one code, and works everywhere
for the past 4 years its been 4 million devices or something
I knew I was missing another one
And yeah, Flutter is another great one
That's right, Evo
Just cracks me up
At least McDonalds went with "Over a billion sold" or something
hello testing tableflip (╯°□°)╯︵ ┻━┻
Accelerator, I mean we were just talking about Google and it’s love for abandoning things
Almost true
with pool(max_workers = 2) as p:
if __name__ == '__main__':
p.submit(main1())
p.submit(main2())
Should I do this? Is it okay to do this stuff?
this makes it so that you code wont' be run on other files iirc
Outside of the with.
so I cant put this if __name__ == '__main__': section inside a multiprocessin pool?
If name equals main, run the main organising code. The code that won't be run when you start up the child processes.
you know, I thought if main1() & main2() runs infinite while loops, they both will still run, since they are multiprocessed?
Anything that's when the module is being run when it's a child process, name will not equal main.
ok, so this section need to exits independent for everything to run
is MacOs & linux two different things? or does MacOs falls under a linux category?
MacOS falls under *nix
MacOs falls under unix
MacOS & Linux both descend from Unix
its a distro of linux
ubuntu is a linux distro
oh, so with added functionalities
it's an interesting phylogeny tbh
Yeah they offer their own unique flavour to it
I wouldn't say functionalities per say
A distribution, which is typically defined by the different software packages bundled together
For example, Ubuntu comes with a desktop environment and its package manager, as well as the base utilities that you'd expect from a GNU system
@amber raptor your arm okay now?
Are carpeted bathrooms a mistake?
The biggest mistake
who has carpet there?
cause you check if there is a serial killer behind curtains?
Carpeted bathrooms are disgusting
A very **awkward **topic.
I really don't understand the use of toilet paper; probably a culture thing
