Download at http://bumptop.com
Check out some of the exciting new multi-touch gestures we are unveiling in BumpTop. We go beyond the typical pan-and-zoom gestures most multi-touch apps use. Check them out in the video!
1 messages ยท Page 944 of 1
Download at http://bumptop.com
Check out some of the exciting new multi-touch gestures we are unveiling in BumpTop. We go beyond the typical pan-and-zoom gestures most multi-touch apps use. Check them out in the video!
!e
print(256)
print(int("100000000", 2))
print(int("100", 16))
@molten pewter
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
001 | 256
002 | 256
003 | 256
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
def __init__(self, name):
self.name = name
self.chicken = method()
'''
constructs a player data object that is saved to player_data.json
:id: user id to request data from osu api
'''
@unique
class ApprovedState(IntEnum):
Quick, step by step tutorial on how to disassemble the Logitech g pro wireless
I live stream on Youtube almost every night starting around 7-8pm Pacific Time
Follow me on Instagram
https://www.instagram.com/snipeyhaha/
Follow me on Twitch:
https://www.twitch.tv/snipeyhaha
Shop Ebay: 1 yr Xbox live under $50!!!
https://ebay.to/2Xh4kki
$6 Games...
!index
Indentation
Indentation is leading whitespace (spaces and tabs) at the beginning of a line of code. In the case of Python, they are used to determine the grouping of statements.
Spaces should be preferred over tabs. To be clear, this is in reference to the character itself, not the keys on a keyboard. Your editor/IDE should be configured to insert spaces when the TAB key is pressed. The amount of spaces should be a multiple of 4, except optionally in the case of continuation lines.
Example
def foo():
bar = 'baz' # indented one level
if bar == 'baz':
print('ham') # indented two levels
return bar # indented one level
The first line is not indented. The next two lines are indented to be inside of the function definition. They will only run when the function is called. The fourth line is indented to be inside the if statement, and will only run if the if statement evaluates to True. The fifth and last line is like the 2nd and 3rd and will always run when the function is called. It effectively closes the if statement above as no more lines can be inside the if statement below that line.
Indentation is used after:
1. Compound statements (eg. if, while, for, try, with, def, class, and their counterparts)
2. Continuation lines
More Info
1. Indentation style guide
2. Tabs or Spaces?
3. Official docs on indentation
annoyance innit
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.
ohh
alright thanks
yes opal mist on his 20's
๐
just another smart man helping people out on the internet
age is of no concern lmao
who cares
help is help, opalmist is cool, that's it
old people
class teams
def method(thing):
#code that returns something using (thing)
def __init__(self, name):
self.name = name
self.attribute = method(thing)
class Person:
def __init__(mysillyobject, name, age):
mysillyobject.name = name
mysillyobject.age = age
def myfunc(abc):
print("Hello my name is " + abc.name)
p1 = Person("John", 36)
p1.myfunc()
!e py a = [] b = [] c = a print(a == b) #They are both empty lists print(a is b) #But they are not the same list print(a is c) #Both a and c point to the same list instance.
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | True
002 | False
003 | True
identity = self
!e py a = [] b = [] c = a print(id(a)) print(id(b)) print(id(c))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | 139827553721920
002 | 139827553847616
003 | 139827553721920
!e
taco = 1
print(id(taco))
@stable axle :white_check_mark: Your eval job has completed with return code 0.
139793617240304
!e py print(1, 2, 3, sep="*")
@somber heath :white_check_mark: Your eval job has completed with return code 0.
1*2*3
!e
print(1, 3, 3947819287489, sep="|")
def myprint(*args, sep=None):
...```
!e
print(1, 3, 3947819287489, sep="|")
@stable axle :white_check_mark: Your eval job has completed with return code 0.
1|3|3947819287489
!e
print(1, 3, 3947819287489, sep="-|-")
@stable axle :white_check_mark: Your eval job has completed with return code 0.
1-|-3-|-3947819287489
!e ```py
class MyClass:
def test(self, v):
print(self is v)
a = MyClass()
a.test(v = a)
b = MyClass()
a.test(b)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | True
002 | False
class Person:
def __init__(mysillyobject, name, age):
mysillyobject.name = name
mysillyobject.age = age
def myfunc(abc):
print("Hello my name is " + abc.name)
p1 = Person("John", 36)
p1.myfunc()
myfunc()
!e py print("text".upper()) print(str.upper("text"))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | TEXT
002 | TEXT
class Class(oieafiojawiodfj):
!e ```py
class A:
name = "A"
def say(self):
print(self.name)
class B(A):
name = "B"
a = A()
a.say()
b = B()
b.say()```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | A
002 | B
class Teams:
'''
constructs a team object to then be used in the website
parameters:
match_name : string
the match name(it needs to target a match)
name : string
the team name
'''
def __init__(self, match_name, name):
with open(f"{match_name}") as f:
match_data = json.load(f)
self.name = name
self.score = team_score(match_name, name)
๐ข i just took the dumbest L of my life @somber heath
???
it is both sad and nice cuz
it was old and breaking down anyway so i wanted new one
but sad cuz i can't talk today
in vc
"team metadata": {}
for team in match_data["team metadata"].keys():
team_data = Teams(team, match_data)
Electrical connection severed?
for team in match_data["team metadata"].keys():
team_data = Teams(team, match_data)
team_users = team_data.users
teams[team] = [team_score(team), team_players(team)]
teams_score_data[team] = team_score(team)
yez the wire is snapped but also the body itself is in multiple peices
I've identified a seed for my next name suggestion idea.
like i could repair it probably but way too much effort for something which is already breaking down
ooooh ๐ฎ
what is it
Seed. Not a fully grown idea.
ah ok
Not yet arrived at.
!e ```py
class MyClass:
def init(self):
print(self)
a = MyClass()
print(a)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | <__main__.MyClass object at 0x7f55b13acf10>
002 | <__main__.MyClass object at 0x7f55b13acf10>
def __init__(self, match_name):
with open(f"{match_name}") as f:
match_data = json.load(f)
self.score = team_score(match_name)
@somber heath idk why i am suppressed( cant speak), but hi, i have just joined this server.
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
class MatchName:
def __init__(self):
return(self)
can i interact with windows registry using python?
!e ```py
class MyClass:
def init(self):
return "Computer says no."
MyClass()```
@somber heath :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 5, in <module>
003 | TypeError: __init__() should return None, not 'str'
class Thing:
pass```
a = Thing()
@dry dawn :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 5, in <module>
003 | TypeError: __init__() should return None, not 'str'
@dry dawn :warning: Your eval job has completed with return code 0.
[No output]
class Teams:
'''
constructs a team object to then be used in the website
parameters:
match_name : string
the match name(it needs to target a match)
name : string
the team name
'''
def __init__(self):
with open(f"{match_name}") as f:
match_data = json.load(f)
self.score = team_score(match_name)
from silicium_web import Text, HTML
html = HTML()
Text(html, text="Hello, Silicium!")
Text(html, text="Silicium is a progressive, infinitely scalable Python web-framework.")
html.run()
Well hello there
wha...
I am so confused
Hi
Whats up
:o
Sounds cool
you are @stable axle right?
My discord is bugging
And I can't see who is talking
xd
sorry man
:0
Yea
Thank you XD
I didn't know bout that
The good old "turning it on and off again"
its a caching thing
it happens more on servers like these
because there is a lot more going on
It seems like it
I was confused when someone joined who was talking
whats your github :)
Am I dub
I can only see your portfolio
ahhh
I think I need to sleep some more xd
But I am there
xd
Sorry
Let me know when you commit your changes
Sounds good,
I won't lie to you
II'm not sure I'll be able to contribute really xd
But I'll watch it,
I know
But I do want something to work on, "to gain experience" if you will
../mydir
It is rather\
You on windows or linux Samimies?
nah, it doesn't really
../../
yea you would use what samimies said
You can use either slash
Yea xd
\\
osu-api--crap\crap
team_crap.py
osu-api--crap\matches
example team match.json
f"../matches/{match_name}"
like
dir_ = os.path.dirname(__file__)
file_dir = os.path.join(dir_, '..', 'path', 'to', 'file')
with open(f"../matches/{match_name}") as f:
match_data = json.load(f)
print(dir_) somewhere just to be sure?
with open(f"\"../matches/{match_name}\"") as fh:
match_data = json.load(fh)
Can I suggest using pathlib?
have you tried this?
The only reason is because then it would be good for linux or windows I think?
file_path = pathlib.Path().parent / "matches" / match_name
print(file_path)
with file_path.open() โas fh:
match_data = json.load(fh)
import pathlib
brb
pathlib.Path() is again the terminal's directory
Oh. Should've been pathlib.Path(__file__) because you wanted script directory.
ye
Ooh, pathlib has globbing too.
If this voice chat is anything to go by, programming = frustration!
voice verfication is not working, can anyone help me?
xxxdddddd
uhhh, #voice-verification
Then check your dm's?
It'll tell you what you are missing
I did, i typed ''!voiceverification'' and it just gives me an empty dm
It's empty
Need to have preview on to see some bot responses.
I did not know this..
"Text and Images" -> "Show website preview ..."
Ohhh
Yeah i see the mistake
I have to write more than 50 messages an the on the server for 3 day
I see nothing with those bot commands.
yeah, you need another 34 messages
also you need to be in the server for 72 hours
interessant
from silicium_web import Text, HTML, DefaultTheme
html = HTML()
DefaultTheme(html)
Text(html, text="Hello, Silicium!")
Text(html, text="Silicium is a progressive, infinitely scalable Python web-framework.")
html.run()
pipip
I use vscode + bash
there comes ssh
for what
why aryan? is that name? where are you from
it sounds like name from my home tribe
India
i see, then it's not my tribe
lol
i can't help with django. maybe you want flask or fastapi?
i just wanted to know
how can i deploy in hostinger
i'll do the django side work
np
something like heroku?
i suppose, you can write tech support then for money
i mean, since you're already payed them
hlo there in vc
:{}
not to teach deployment in django
Django
windows -> its been a long time for me
why you're came back
what
&theme=tokyonight
hi oof
๐
๐ข i fell asleep with my headset and now the wire is snapped + the actual head part is also in multiple parts
also hi everyone ~
idk what i did in sleep but damn is it broken
lol
ordered new one for day after tommorow
๐ฆ
yep
do u have the fast shipping prime subscription also?
i buy cheap stuff anyway tho
i'm a person who loves gaming but haven't baught a new gaming pc even though my gpu is also dying
and i have the money
yes same day delivery was available
if i had prime
totally get that it took me ages to finally get my airpods
i'm just waiting till this laptop literally one day goes black screen and doesn't even boot anymore
then i shall buy new pc
lol
๐ฆ it's not available in my country it really sucks. I really don't get it since it's available in SIngapore. So definitely not a logistics problem.
๐ i wish discord had vim bindings
i keep pressing for example re to replace character under cursor with e to fix my typos
and then i have to fix that as well cuz it isn't a thing here
well wow
๐ i found an electron plugin for vim keybinds so it isn't even hard
i wish discord allowed 3rd party clients
noodles are u in the VC?
nope
oh okay. i tot it was the bug thing
i'm sitting in my balcony
don't want all my neighbors just listening to you guys xD
oh yeah n ur headphones broke too ๐ฆ
so how's learning vim going btw
you got to buffers, tabs, splits and sessions yet?
HaHaaa ok so I went on a vacation
so now I forgot everything
@lusty marsh wchu workin on
its way easier to re-learn something
ooooh cool
from silicium_web import Text, HTML, DefaultTheme
html = HTML()
DefaultTheme(html)
Text(html, text="Hello, Silicium-web!")
Text(html, text="Silicium-web is a progressive, infinitely scalable Python web-framework.")
html.run()
it's a web framework?
class Component(AbstractComponent):
def __init__(self, parent, add: bool = True, **kwargs):
for name, value in kwargs.items():
setattr(self, name, value)
if not add:
return
if isinstance(parent, AbstractComponent):
parent.children.append(self)
else:
parent.builder.add_component(self)
@property
@abstractmethod
def code(self) -> str:
...
from silicium import Component
class Text(Component):
build_target = "html"
text: str
@property
def code(self) -> str:
return f"<p>{self.text}</p>"
well i gtg. good luck on silicium @lusty marsh
@wind plinth you k bro?
andd im back
If you got a reliable friend (or skills yourself) to build a gaming pc that lasts longer than one in stores for less money over its lifetime, by all means you should go for it... if you have the money, that is.
i do have it but as i said i'm avoid spending any money
smart ^w^
to the point my mobile is like 8 years old
everything else i own except for clothes is even older
i stopped watching tv so even sold that
lol
omg Windows... AGAIN??
Like how many times is it not redirecting back to Headphones -.-'
<sarcasm>have fun with old video games that work best on old CRTs</sarcasm>
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
should be 20 or less =(
See the channel, type command in channel, read bot message that it DM'd you with
May be... that Realtek driver overriding Windows defaults.
yeap, thanks
It's actually related to something else ... one sec
bottom two
When using a Steam feature, sometimes it refuses to undo itself
Didn't know Steam adds audio devices.
Ah. I can see how that is necessary for remote play.
@whole bear
use from: Alexsander#1011 in search box!{located @ top_right_corner}
u hv 4
I told them about what to do and used !voice as well
@mild agate
Yep!
good morning
mornin's
headset broke
on 2$ cheap earphones rn o- o had to grab something quick
interesante
at least mute your discord mic then if not going to use
@primal yacht i'm sorry if its too bad but i'm gonna try my laptop mic plz tell me if its too awful
my laptop mic is what im using
from silicium_web import Text, HTML, DefaultTheme
html = HTML()
DefaultTheme(html)
text = Text(html, text="Hello, Silicium-web!")
Text(text, text="Silicium-web is a progressive, infinitely scalable Python web-framework.")
html.run()
what laptop d u use? @woeful salmon
Linux
.
does anyone know good books to learn python?
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
^
thank you very much sir
female pronouns, please ^w^;
u're male ig...
.... gender identity does not match birth gender
๐คฆ
We respect pronouns here. You can leave if you donโt like it ๐
@lusty marsh
hjkl
ez
hmm
๐ you could just say the name
that's what i do to avoid having to think about pronouns cuz i'm lazy
nice
that sounds like finding the height of a binary tree
longest_found_search = []
current_search = [
[component, current_child_index]
# ...
]
def dfs_enumerate(self):
components = self.components
depths = []
path = []
i = 0
for component in components:
print(component.__class__.__name__, component.children)
components = component.children
if len(component.children) != 0:
path.append(i)
else:
depths.append(i)
if len(path) == 0:
continue
i = path[-1]
continue
i += 1
print("DEPTH(s)", depths)
@lusty marsh next() just calls __next__ method of the object you give it
(used for iterators and generators mainly to get the next value in them)
html = HTML()
DefaultTheme(html)
text = Text(html, text="1")
text2 = Text(text, text="s2")
Text(text2, text="s3")
html.run()
!e
foo = ["hello", "world"]
iter_foo = iter(foo)
while True:
try:
print(next(iter_foo))
except StopIteration:
break
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
001 | hello
002 | world
@primal yacht ^ python for loop
The Geek Code, developed in 1993, is a series of letters and symbols used by self-described "geeks" to inform fellow geeks about their personality, appearance, interests, skills, and opinions. The idea is that everything that makes a geek individual can be encoded in a compact format which only other geeks can read. This is deemed to be efficien...
@gentle flint how about vim inside emacs (aka evil mode)
have you tried it? ๐ฎ
its quite nice
The results indicated a strong relationship between apoaequorin and improvements on a quantitative measure of cognitive function, specifically verbal learning. The study found that apoaequorin is a well-tolerated supplement that improved cognitive function in aging adults. The results suggest potent โฆ
yeah but that's why i said emacs as the environment and vim as the editor in it
you get the best of both
you get all the builtin stuff like a tetris and pong game in it
@glass forgeevil mode is basically vim emulation in emacs
But can you use Discord in it?!
only official, unmodified clients on user accounts
not while complying with tos
Yea, sadly.
what.. what is this? 
oh, so you knew already
this study was funded by Prevagen manufacturer Quincy Bioscience
Hoping the resident Vim expert knows a way to do it!
Hi again everyone
Yeaa
My neighbours cat
Opal is that you
I canโt see u in the vc
Oh im on mobile
would you find a cat as cute without its fur?
no
OoooooooOoooOo
Well actually Iโve always wanted one of those naked cats
Spinx
Naked spinx
Idk what its called
"Get the spatula!"
Why spatula? ๐ค
Naked Sphynx. I find them Pretty cute
For when the cat sits down on a smooth surface and gets stuck on it like a suction cup.
i would like a zombie cat which doesn't eat meat
cuz
Oh my goshh ๐๐๐๐๐๐๐๐๐๐๐๐๐ are u speaking from experience?
Would it be funnier if I said yes?
Im ded
Cats are fascinating creatures arent they
nya?
Source (Twitter): https://twitter.com/shiroue_tomari/status/1469609919150444545
Hey u never know if u havent tried
i do
i forget to eat food regularly thus i mostly eat 2 meals a day
lol
hi guys why i can't speak in Voice chat ??
when someone from my family gives up and reminds me
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
She kinda looks like my cat
eep! >\\n\\<
any virtual machine masters here who can help me?
I got a couple questions
Remote login
@primal yacht
what does this mean to you?
Idk maybe? ๐
Ask away
Chotto matte ne
My all time favorite Azunyannn
Yeah
guys what are OS hardening techniques
so what would that involve?
like the techniques?
literally would donate money to get a 2nd season for that even as a cheapass
2 meals a day is not that bad tho. I eat 2 meals a day on average.
can you link it @woeful salmon
#cybersecurity ask here maybe?
I know that katie
you state the obvious
that its an emulator you run on your computer
come on man
yeah but i do forget eating until i either someone reminds me or i'm really hungry
@jovial nexus
i wouldn't remember to feed someone else
if i could i would have already gotten a pet
where do I get help with a code
I often find that obviousness is relative to the observer.
i asked there...now we wait
I have just started learning
obviosity should be a word
Well I guess you have a good point there
did you read #welcome, #rules and #code-of-conduct yet?
^ oops sorry opal. @kindred herald
!resources -- has a lot of stuff (see bot message below)
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Well anyhow I should sleep now. See yaa its been nice
gn
!voice -- @whole bear
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@woeful salmon u once mentioned u wanna open a Yt channel have u made it?
right not there's other things to do
i'm fixing old projects, improving them
aha
then gonna create portfolio
put them in there
apply for job
then
i try youtube
lol
haah
fair enough
Noodle Reaper
@primal yacht Hello
???
Hello
class A:
def __init__(self, value):
self.value = value
d = {}
one = A(1)
d[one] = 1
d[A(1)] = 3
print(d)
@celest junco
https://www.youtube.com/watch?v=SC8O3nMO5T4
by Flavien Raynaud
At: FOSDEM 2017
When writing Python code, you might find yourself using lists and dictionariespretty often. But do you really know how they work? Fortunately, theirimplementation as well as their history are (really) well documented. In thispresentation, we will dive into CPython 3.6 internals, explain how these datastructur...
thnx
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
@celest junco ^
@whole bear Don't spam
If you do spam messages to get voice, you'll be temp-banned or perma-banned from the voice chats and / or the discord
alot of people try to get verified by spamming via typing each word or anything like that
then they get temp banned and take longer to verify
ye
oh lol
The "voice gate" is intentionally there to avoid trolls who were coming in, doing ear rape, and quickly leaving the vc
And the spam - bots I assume)
if voice then that would be self-botting
guys anyone knows how to disable google chrome window auto focus while uploading a file using python,selenium 
->
like you are trying to automate uploading a pic by clicking on the upload button then the file explore pops out and takes all the focus
@cinder herald #โ๏ฝhow-to-get-help please
๐
def addTwoInts(a: int, b: int) -> int:
return a + b
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
@celest junco
@primal yacht
hash(d['foo']) # We take the hash from the object
a = A(1)
d[a] = a
# ...
print( d[A(1)] )
1
a = 1
a += 3
class Foo:
def __hash__(self, /) -> int:
# ...
class Bar:
def __init__(self, /) -> None:
...
Bar()
\
The in operator use the hash?
value in obj
obj.__contains__(value)
not in
class A: pass
# inherits '__hash__' method from 'object'
# which means the hash for `A()` is where it resides in memory
Hash maps in Python:
Best speed: O(1)
Worst speed: O(n)
>>> foo = [1, 2, 4, 5]
>>> print(foo, '::', len(foo))
[1, 2, 4, 5] :: 4
>>> foo[2:2] = [3] # replace from index 2 up-to but not including index 2 (pretty much "insert at")
>>> print(foo, '::', len(foo))
[1, 2, 3, 4, 5] :: 5
sure
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
what doing?
:/
what is this?
i just ask, i am doing game in c#
Ah ... I'm not good at C#
while True: try: number = int(input("Please enter your age as a number: ")) except ValueError: print("Sorry, I didn't understand that.") continue else: break
```py
```
try:
number = int(input("Please enter your age as a number: "))
except ValueError:
print("Sorry, I didn't understand that.")
continue
else:
break
while True:
try:
number = int(input("Please enter your age as a number: "))
except ValueError:
print("Sorry, I didn't understand that.")
continue
else:
break
keyboardinterrup ๐ฆ
how would you write this?
py
I don't want to be stuck in terminal D:
but this is the only method I found :(
base_message = 'Please enter your age as a number: '
extra_message = ''
while True:
# Get the user's input and strip any spaces / etc. around it.
user_input = input(extra_message + base_message).strip()
# If nothing was typed (or it was just whitespace)
if not user_input:
# Clear the extra message if it was set.
extra_message = ''
continue
try:
# Convert it to an integer.
# Default is to use base 10 for a 'str', which is
# an optional "-" at the start, followed by 1 or more
# of the digits "0" through "9" inclusive.
number = int(user_input)
except ValueError:
# Input was not a valid integer.
# "\n" in a string makes a new line.
extra_message = 'Sorry, that is not a number I understand.\n'
continue
if number < 0:
# How can they not be born yet?
# "\n" in a string makes a new line.
extra_message = 'Sorry, I do not think it is possible that you are not born yet.\n'
continue
# Clean up stuff
del user_input, base_message, extra_message
# Stop the loop
break
Sorry, I do not think it is possible that you are not born yet. \XD
thank you
this has given me alot of insight im just reading through
I hadn't used continue yet
is memory important to care for in python
Im listening to the pragmatic programmer atm and it reminds me of that
efficient and practical coding
your phone has 16 gigs ram?
ah
what phone?
when you said terminal i got it
yep
a bit
yes
yep
Im used to stuff like that
Hacker: a computer expert who uses their technical knowledge to achieve a goal or overcome an obstacle, within a computerized system by non-standard means - often referred as "power" or "advanced" users. Hackers are not necessarily persons who uses their skills to breach computer system security.
!voice @whole bear
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
I gtg. hope we "talk" again ๐
Block Elements is a Unicode block containing square block symbols of various fill and shading.
!e ```py
def a(*range_args):
for cp in range(*range_args):
yield chr(cp)
print(''.join(a(0x2581, 0x2588 + 1)))
@primal yacht :white_check_mark: Your eval job has completed with return code 0.
โโโโโ
โโโ
import audioop
import speech_recognition as sr
import webbrowser
import time
from time import ctime
import playsound
import os
import random
from gtts import gTTS
import pywhatkit
import subprocess
import response
randomGoodbyeResponse = response.Goodbyes[random.randint(1, len(response.Goodbyes))]
r = sr.Recognizer()
def record_audio(ask = False) :
with sr.Microphone() as source:
if ask:
onyx_speak(ask)
audio = r.listen(source)
voice_data = ''
try:
voice_data = r.recognize_google(audio)
except sr.UnknownValueError:
print("Sorry .. didnt quite hear that. ")
except sr.RequestError:
onyx_speak("Sorry .. alittle busy on the back end. ")
return voice_data
def onyx_speak(audio_string):
tts = gTTS(text=audio_string, lang='en', )
r = random.randint(1,10000000)
audio_file = f'audio-{str(r)}.mp3'
tts.save(audio_file)
playsound.playsound(audio_file)
print(audio_string)
os.remove(audio_file)
def respond(voice_data):
if 'what is your name' in voice_data:
onyx_speak('My name is ONYX.')
if 'what time is it' in voice_data:
onyx_speak(ctime())
if 'search' in voice_data:
search = record_audio("What do you want to search for ?")
if 'YouTube' in search:
url = 'https://www.youtube.com'
webbrowser.open(url)
else:
url = f'https://google.com/search?q={search}'
webbrowser.get().open(url)
onyx_speak(f'Heres what i found for {search}')
if 'play' in voice_data:
song = voice_data.replace('play', '')
pywhatkit.playonyt(song)
onyx_speak(f'heres what i found for {song}')
if 'Onyx sleep' in voice_data:
onyx_speak(randomGoodbyeResponse)
exit()
time.sleep(1)
print("Listening ... ")
while 1:
voice_data = record_audio()
respond(voice_data)
can anyone help me an error in python pytorch
What is the point of this DRM thing? ๐ค
@whole bear Would you mind using push-to-talk? Your typing is really loud.
osu player
@radiant surge can you hear me?
rip
Yup
My volume was just on 2
I can't talk rn ๐
lol I'm sorry
An essay due tomorrow
Censorship in schools
haha I wish
yeah sometimes my mic is quite far away
@tidal salmon
Part 2 - explainer video is here: https://www.youtube.com/watch?v=TGUteH93xNo
LEDs and solar panels are both made of diodes. A diode is just designed to allow electricity to flow in one direction but because we make them out of semiconductors they can do all these other things.
Video produced in cooperation with Merck (https://www.youtube.com/...
that title is confusing, hence I should watch the vid
oh, I see
your brother is quite invested in his game wow
ngl I was really confused at first when I heard a screaming sound haha
yeah especially when they lose
ohh yea
We do
But it definitely does not get as much of a hype as football (american) and basketball
SyntaxError: unmatched ')'
If you said that to me I'd be gone in a minute
that's brutall
staff meeting?
a staff meeting without fisher ofc /j
My mic test
Fisher's not in here francis
We're talking about admin replacements for you
10 PM is after hours I suppose
you do have a pleasant voice
gonna head out, have a great rest of your day/night everyone!
Imma head out for a couple minutes, but I'll be back in 10-20 minutes if you're still here
โ @whole bear can now stream until <t:1639366448:f>.
The vc end?
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
brb
Watch the official trailer for Spider-Man: Across the Spider-Verse, an animation movie starring Shameik Moore and Hailee Steinfeld. In theaters October 7, 2022.
Miles Morales returns for the next chapter of the Oscarยฎ-winning Spider-Verse saga, an epic adventure that will transport Brooklynโs full-time, friendly neighborhood Spider-Man across t...
@viral heron, Please don't use this guild to advertise external events.
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
lol
Davinder
Mallardramatic.
!e
print("||"+"||||".join("Griff")+"||")
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
||G||||r||||i||||f||||f||
The art is amazing ๐ฅบ
which countru u from
@gentle flint ok :))
thanks!
mmm yes
thanks :))
๐ that's a bad example lol
!voiceverify
you need to run that command in #voice-verification @wide trellis
@old crown If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know

Haaaay
๐จ
I heard you donโt really get covid from food
Noodles dchu get ur new headphones?
ya , no doubt
@rugged root hi
Suuuuuuuuuuuuuuuuuuuuuuuuup
fiiiiiiiiiiiiiine wbu
cause i had covid when i am truely not eating food from outside
I'm alright
sounds good
22 tornados phew ๐ฐ
yes i did
xD
they said will deliver on tuesday gave it to me on monday morning ๐
Nice!
English spelling is just really weird sometimes I wonder how I managed to figure it out
@amber raptor, I took your advice about enabling all the security, regardless of Managment's opinions.
I haven't enforced 2FA yet, so I should still be fired.
But I did disable basic auth, which some people were still using, including the owner and his parents
yeah also i just got a different model at same price and it turned out to have a better mic (also its flexible unlike the older one which is nice)
Does it have cat ears
it's not Fisher's
it doesn't but its blue
and i have blue cat ears (not real) i could probably glue on it
if i want / need at a later point
Why do you have blue cat ears in your disposal ๐ค
well i have a stuffed toy i won at an arcade
and i really don't need it so it could go to a better use
What's so bad about timezeones?
There's only like 50 values to check
Alright, that's about as much indifference as I can fake
I hate timezones
log4j
What could go wrong?
Wait
Shen are you in here and I'm just blind?
I refreshed and everything
@mystic bolt Ask in here
Excuse me, you can tell 1 verboof that I want to talk to him about python and blemde r and that he send me slkictud of a, istad because he says that only he can
slkictud of a, istad
what?
workwork
ooo what kinda work do you do?
Professional llama wrangler
Please send me frined request
were you trying to ask something here?

๐ LX
๐
The other day I saw you using blender and do you know how to use a python addon to import files?
sorry, no clue
The other day I saw you using blender and do you know how to use a python addon to import files?
yes the intigrated wallhacks :.)
sorry, no clue
Hallwacks.
wacky halls
u need to do it fast and master it
Fast'n'master.
no permanent
Well, someone knows how to do a blender script here.?
I can point you to the blender server. They'd be better equipped to help you
Verboof, weren't you doing something in Blender?
I'm modelling a plane for a flight sim
https://github.com/mhxion/awesome-discord-communities/#game-design I think the "OpenVFX: The Blender Hub" might be a better place to ask
since I've never really used blender much before this project it'll probably take 6 months or a year
smth like that, anyway
I already asked but there is a problem is that in blender we only know about blender and here only about pyhon you need both things blender and python understand
this fin sticking up with the bolts took about an hour to get just right
Oh, does Blender use Python for scripts?
well I've never used python for blender
I've understood you can do python scripting in blender
but after 2 weeks of blender I did not yet feel ready for that
also I like that emoji @stuck furnace
my intention was to do the following to make a blender plugin to at least import and if possible export a 3d file of a videogame videogame
what format is the 3d file
It's from VCOs GTA server.

I can also offer you:

Dewit
The format is an .fmlb file, if to make the script it is necessary to know what an fmlb file is like, I know, but I don't know how to make a plugin for blender
And also make a 'dewit' emoji while you're at it if possible.
which game is fmlb for?
Looney Tunes Dash!
that's the game if you want to know to make a plugin that is a fmlb file I'll explain it here
how do you envision that that would look?
We can't/won't assist with extracting assets from games. It is, in most cases, a violation of the end user license agreement as well as the copyright/trademark for the assets
Not sure
Yeah, wouldn't really work 
or ok I thought I knew about so xd because I saw verboof0 using blender and it seems that it was the only python server that used it
of course, you could use this in a different server, though not really here
He was making his own work, not extracting from something else. Either way, he doesn't seem interested in assisting
ok sorry if it bothers you is that they do not stop asking in another discord
well tell them to stop bothering you
Shia Laverboof. @gentle flint
job done
ok I doubt it a lot but I will try in fact calls call all day saying hey hey you could already because I said that maybe they will help me in python server but it was not like that I will tell them
I mean I don't know what to tell you, dude
โSHIA LABEOUFโ is a song by Rob Cantor. It tells the true story of an actual cannibal.
Learn more here: http://www.robcantor.com
Purchase the song on Bandcamp: http://bit.ly/1zjiH5Z
Behind-the-scenes: http://www.facebook.com/robcantormusic
Tweets: http://www.twitter.com/robcantor
FEATURING:
The Gay Menโs Chorus of Los Angeles -- Dr. Joseph N...
ok if at least someone who knows could help me, it would be fine but if they don't want to, it's not necessary
!ot Possibly ask in one of the off-topic channels?
Off-topic channels
There are three off-topic channels:
โข #ot2-never-nesterโs-nightmare
โข #ot1-perplexing-regexing
โข #ot0-psvmโs-eternal-disapproval
Their names change randomly every 24 hours, but you can always find them under the OFF-TOPIC/GENERAL category in the channel list.
Please read our off-topic etiquette before participating in conversations.
i'd watch that
I have a new calling in life
Standard eye tea. Refreshing!
!d os.write
os.write(fd, str)```
Write the bytestring in *str* to file descriptor *fd*.
Return the number of bytes actually written.
Note
This function is intended for low-level I/O and must be applied to a file descriptor as returned by [`os.open()`](https://docs.python.org/3/library/os.html#os.open "os.open") or [`pipe()`](https://docs.python.org/3/library/os.html#os.pipe "os.pipe"). To write a โfile objectโ returned by the built-in function [`open()`](https://docs.python.org/3/library/functions.html#open "open") or by [`popen()`](https://docs.python.org/3/library/os.html#os.popen "os.popen") or [`fdopen()`](https://docs.python.org/3/library/os.html#os.fdopen "os.fdopen"), or [`sys.stdout`](https://docs.python.org/3/library/sys.html#sys.stdout "sys.stdout") or [`sys.stderr`](https://docs.python.org/3/library/sys.html#sys.stderr "sys.stderr"), use its `write()` method.
Changed in version 3.5: If the system call is interrupted and the signal handler does not raise an exception, the function now retries the system call instead of raising an [`InterruptedError`](https://docs.python.org/3/library/exceptions.html#InterruptedError "InterruptedError") exception (see [**PEP 475**](https://www.python.org/dev/peps/pep-0475) for the rationale).
Um - you probably don't need this
with open(text_file_name, "w") as file:
file.write(text_input_here)
what was this about
i'm curious
@rugged root - first - how much do you understand about DNS and SSL?
Heavy water is water but with a heavier isotope of hydrogen.

I also get this lovely warning when I start bpytop too
/bin/bpytop:27: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
from distutils.util import strtobool
@terse needle Try these if you see them: https://cdn.discordapp.com/attachments/860588283495055360/916900653622767646/IMG_0130.jpg
They're like insane.
Bailey's edition.
irish cream
Yep ๐ I assume they contain no actual alcohol?
british people have bad teeth
Does he just listen on x10 speed?
Yes. I like that they don't gloss over things in the Rust docs.
Which happens a lot in other docs, where they just assume that you know something that you obviously wouldn't know if you were reading the documentation ๐
!doc functools.partial
functools.partial(func, /, *args, **keywords)```
Return a new [partial object](https://docs.python.org/3/library/functools.html#partial-objects) which when called will behave like *func* called with the positional arguments *args* and keyword arguments *keywords*. If more arguments are supplied to the call, they are appended to *args*. If additional keyword arguments are supplied, they extend and override *keywords*. Roughly equivalent to:
```py
def partial(func, /, *args, **keywords):
def newfunc(*fargs, **fkeywords):
newkeywords = {**keywords, **fkeywords}
return func(*args, *fargs, **newkeywords)
newfunc.func = func
newfunc.args = args
newfunc.keywords = keywords
return newfunc
def add(x, y):
return x+y
Erm, I started about half way in. But I did do all of them.
yeah just found it
!e
from functools import partial
basetwo = partial(int, base=2)
print(basetwo('10010'))
i like that
@rugged root :white_check_mark: Your eval job has completed with return code 0.
18
Tim Curry, the inventor of haskell
Just pre-fill some of the args basically.
The syntax is the nicest part ๐
There's a fancy word for it...
Erm, I'm trying to think of the term that describes how Lisp's code relates to its data ๐ค
what doin existers and bill payers?
Lisp use of only () drives me crazy
"homoiconic"
So... (sorry for long story)
We're getting caught up with that vendor, so I thought I was going to get to have a relaxing end to the week.
And then....
Wednesday - I got the final reminder that our free (from COVID) Microsoft licenses would be removed Wed 12/15, and to avoid disruptions we need to apply a paid plan to our users before 12/15. I sent it to him again, he still hasn't given me authorization to purchase the licensing.
Thursday - Another vendor mailed us a label printer, and demanded we call their MSP and have them send a tech to install it for us. The MSP called back and said that they purchased the printer, but didn't purchase an installation, so they would have to get billing approval from the vendor. Vendor is calling multiple times a day asking why things aren't ready yet
Friday - My boss opened a ticket stating "The website is showing to have an invalid certificate. This is a new issue and we need to get it resolved".
He won't give me access to the website, which is a Joomla site on HostGator. (picture WordPress on Digital Ocean)
I don't know why he refuses to give me access. He keeps saying he has, and I should be able to "just fix it".
Turns out, HostGator had an error trying to automatically renew the SSL certificate. He called their tech support, and they ended up changing every single record, including our on premise records and our Azure records, to point to HostGator, wiping out our entire production environment on a Friday afternoon.
My boss started fixing the records, and he noticed that the on premise and Azure SSL certificates were valid, but his still weren't. He asked me why, and I explained that the different servers in the different environments would need their own certificates.
He then spent the next couple of hours blaming me for the issues, saying that "I'm sure they moved all the records for your servers because you can't have two certificates for the same thing"
Saturday - I finally got our printers to accept modern auth, so I disabled basic auth to test before Microsoft disables basic auth permanently. I did check the sign-in logs and only four people were still using basic auth (my boss included). And I sent my boss a three paragraph Teams message explaining exactly what I did.
I also went through the copy of the DNS records that he sent me and sent him a list of what I thought things were supposed to be.
Monday - He sends me a Teams message saying - "i have had several people with email problems including me. Do you know what is going on."
I pasted Saturday's message and added a note about my current progress.
I already know from Saturday that only four people are to be affected, and I've already fixed one, so I asked him who these "several people" were. He said "my wife and I are both having issues this morning"
He also has still only fixed like half the DNS records
At what point do I just give up and get a new job?
I really like everyone else here, and I don't want to watch the company have problems because I wasn't here to fix this crap.
But at some point I have to admit to myself that there's not much I can do if management won't let me do my job
Damn that was long
Now I feel bad
I'll get my reading glasses...
๐คฃ
I don't have any but...
why did I read that...
this is lovely syntax
Is that how they make plasma TVs? ๐ค
they don't understand the pain of paying the bills ;-;
Honestly that's not too bad, but yeah
Still..... Not great
What is this?
This was what I was thinking of: https://en.wikipedia.org/wiki/Homoiconicity
In computer programming, homoiconicity (from the Greek words homo- meaning "the same" and icon meaning "representation") is a property of some programming languages. A language is homoiconic if a program written in it can be manipulated as data using the language, and thus the program's internal representation can be inferred just by reading the...
"acquired?"

stonks
btw that's u na @rugged root : https://www.youtube.com/watch?v=BuBWS-Uo1dc
If have any questions, comments, or just want to talk to me, send me an email at browndj3@gmail.com
you miss me ๐ณ
Nope
@rugged root you were a pretty boy
I thought it was because you used to have long hair, and you had your locks in a 'hem' ๐คฃ
I haven't even looked at Advent of Code since Thursday
Too much work crap to keep up with
Makes me sad
Want to be my replacment?
i can't pronounce vulnerability
Who can?
does someone know about brick-force? :D
I started job searching
I'm overqualified for dev jobs paying over double what I make
And those jobs are programming only
I could be being paid double to just develop and not have to deal with all this other crap
Yeah I guess that's a part of imposter syndrome. You don't want to ask anyone, or risk revealing you don't know what you're doing.
It's becoming very tempting
Dude, you've got it.
Then do it
yeah even though as a new guy at the company you are technically the one who's expected to ask for help the most
Donald
Trump
Scrooge McDuck is a cartoon character created in 1947 by Carl Barks for The Walt Disney Company. Appearing in Disney comics, Scrooge is a Scottish-American anthropomorphic Pekin duck. Like his nephew Donald Duck, he has a yellow-orange bill, legs, and feet. - https://en.wikipedia.org/wiki/Scrooge_McDuck
Donald is Scrooge's nephew
Notepad is lighter
I prefer atom's ui to vscode, but vscode just has the community backing it and one of them has to go
also, coffescript... ew get out of 2014
What're we talking about?
Only available in VSC?