#voice-chat-text-0
1 messages ยท Page 33 of 1
basically building dependencies first
yea fair nuff
i mean, you do have a docker build cache right?
heh
i mean, only for big imports
yea
so after the initial cargo build you'd probably have been fine
i thought you actually meant dependency build, which is why i sent my hacky way to build dependencies first
time python3 -c "import aiohttp" on my server
real 0m0.202s
user 0m0.154s
sys 0m0.036s
wait were you starting a new interpreter each time?
theres a reason you dont do that
python webservers can be decently fast but not that way lol
interestingly, on my windows machine, its slower
PS C:\Users\laundmo> Measure-Command { python -c "import aiohttp" }
Milliseconds : 340
which is a far more powerful machine
oof
yea def want a compiled lang then
lol
why
what were you rendering
lol
!e py for letter in "abc": print(letter)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | a
002 | b
003 | c
!e py letter = "a" print(letter) letter = "b" print(letter) letter = "c" print(letter)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | a
002 | b
003 | c
!e py for i in range(5): print(i)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
!e print(*range(10))
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
0 1 2 3 4 5 6 7 8 9
!e py for _ in range(10): print("Hello, world.")
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Hello, world.
002 | Hello, world.
003 | Hello, world.
004 | Hello, world.
005 | Hello, world.
006 | Hello, world.
007 | Hello, world.
008 | Hello, world.
009 | Hello, world.
010 | Hello, world.
!e py things = ["Apple", "Orange", "Pear"] for thing in things: print(thing)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Apple
002 | Orange
003 | Pear
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
!e```py
print('Hello world!')
@mortal sundial :white_check_mark: Your 3.10 eval job has completed with return code 0.
Hello world!
!e
playing = input("do you want to play? ")
if playing != "yes":
@mortal sundial :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 2
002 | if playing != "yes":
003 | ^
004 | IndentationError: expected an indented block after 'if' statement on line 2
!e py name = "Peter" #name = input("What is your name? ") print(f"Hello, {name}.")
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello, Peter.
!e```py
first_name = "Ian"
print(first_name)
@mortal sundial :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 2
002 | print(first_name)
003 | IndentationError: unexpected indent
!e py a = 5 b = 3 print(f"{a} plus {b} is {a + b}.") print("{a} plus {b} is {a + b}.")
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 5 plus 3 is 8.
002 | {a} plus {b} is {a + b}.
!indent
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
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!e ```py
def hello(): #function definition
print("Hello, world.")
hello() #function call
hello()
hello()```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Hello, world.
002 | Hello, world.
003 | Hello, world.
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Hello
I was wondering if you know how to compile a python game to mac os?
Yes
neither am I lol
Ok thanks I will, I have to go to bed now sense I am a teenager ty
Enjoy your night and or day ๐
๐
@blissful vine ๐
My Pc got a virus beacuse of me
And some govt. Files that are much much imp.
Are converted into ZATP files
zatp?
Extension of files converted into .ZATP
Which means a locked file
Aha. Ransomware?
So you work for a government, and you have these files on your computer...?
that are government property?
My father's works for
He wants to pay fees to some government employees but suddenly their files in pen drive converted into .ZATP files as well all files are converting
Oh dear.
It was a bill paying files which helps to give salary to employess
What I do now ๐
I don't want to remove virus
I just want to recover those files
Only
If this conversion is in process, power off the computer immediately until you can maybe rescue some files through use of a liveboot cd or similar.
I have been 2 weeks
My files are gone they are not imp. But in pen drive
These files are imp.
Do you know how to recover or decrypt .ZATP files?
@somber heath okh how can I contact cyber security office??
No i fixed mp3 files but other files are not going to be fixed
You've fucked up. The only thing you can do now is swallow your losses and prevent further damage.
I just want to contact cyber security for what to do now
Can you help?? Me to contact
This sounds like something your father should be involved with.
Because my father have a government job and now because of me
His job is on risk
If it were me, I'd completely wipe all data on all affected disks.
No disk
Drives.
Only pen drive data need to be recovered
It may not be the only copy of the data.
It's only 1
Another copy will take too much to make
Like we need to go to
I'm not in a position to help you.
Government offices
Talk to your father.
Ok
Done already
You might get super super lucky and can pull off some file data if you use a deleted file recovery program.
But I think it's not up to you to try.
The best thing you can probably do is stay out of it.
Some fault exists with whoever decided that a single copy of critical data was sufficient.
For exactly this kind of reason.
Shit happens. If you don't account for that, you get what you get.
It's ultimately whoever's data it is to decide what to do.
I would counsel them to archive the infected devices in secure fashion and lock them away.
Appropriately warning labelled.
Police may wish to inspect them.
Paying ransoms holds no guarantee of unencryption and it also contributes to the material enrichment of the criminal extortion industry.
Wait let me read
Ohh tahnks
You are right
We will go to office
And going to make new data
To proceed transaction of salary
hello! getting ready for advent of code!
If it were my own personal files and drives, I would go "Haha, fuck you, no.", and dban everything.
hellooo
hiii
soo anyone know the depts of openCV
I had a question @somber heath. People say Linux is safer as most of the viruses are made for windows. But most of the cloud stuff has linux right. What exactly makes linux soo much safer?
due to it being open source?
yess! that makes sense!
yes!
So the code is exposed but as it is exposed it makes it more solid and hard to penetrate in as vulnerability gets fixed by the community!
what linux distro you use?
Thats sad
I have heard about google bounty thing
XD we should exploit then haha
windows too much history being an a**** H***
Thanks for everything!!! Glad to get to chat with you!
I wish I had perms to vc
I have less then 50 messages
:C
hello
I wanted to talk more but its hard typing haha
XD
I will try again maybe verifying
I was curious about what kind of things you do in your job
ohh okey sorry
nicee!
I'm in my 4th year of cs engineering. I like this field but competition makes it soo hard and tough to do what you like!
yes!
!e py things = [("a", 1), ("b", 2), ("c", 3)] result = [a for a, _ in things] print(result)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
['a', 'b', 'c']
yup python is amazing!!
XD
can you explain this tho. I dont get it fully
a for a
Hello
!e py result = [] for letter in "abc": result.append(letter) print(result)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
['a', 'b', 'c']
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
yes I understand this the one you wrote above
yes _ and stuff
I have used list comprehension in very small things like [x:x in something] like that
are you a comp sci major @somber heath
!e py result = [letter for letter in "abc"] print(result)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
['a', 'b', 'c']
yes
!e py result = [] for letter in "abc": for number in "123": result.append(letter + number) print(result)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
['a1', 'a2', 'a3', 'b1', 'b2', 'b3', 'c1', 'c2', 'c3']
!e py result = [letter + number for letter in "abc" for number in "123"] print(result)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
['a1', 'a2', 'a3', 'b1', 'b2', 'b3', 'c1', 'c2', 'c3']
anything written in the left most part is append operation?
yes makes sense! write the code left to right
sorry right to left
yea
!e py a, b, c = [1, 2, 3] print(a) print(b) print(c)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
!e py things = [("a", 1), ("b", 2), ("c", 3)] for a, b in things: print(f"{a}{b}")
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | a1
002 | b2
003 | c3
!e
things = [("a", 1), ("b", 2), ("c", 3)]
for a in things:
print(f"{a}")
@feral aurora :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | ('a', 1)
002 | ('b', 2)
003 | ('c', 3)
Can I ask for help with my problem after you guys are finished? matplotbib plots
!e py a, b, *c = "abcdefg" print(a) print(b) print(c)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | a
002 | b
003 | ['c', 'd', 'e', 'f', 'g']
I just have data that I want to plot
okay - I will have a look at it - no worries, thank you though
!e ```py
def func(a, b, *c):
print(a)
print(b)
print(c)
func(1, 2, 3, 4, 5, 6, 7, 8, 9, 0)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1
002 | 2
003 | (3, 4, 5, 6, 7, 8, 9, 0)
!e ```py
def func(**kwargs):
print(kwargs)
func(apple = 5, pear = 6)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
{'apple': 5, 'pear': 6}
!e ```py
def func(a, b):
print(a)
print(b)
func(b = 2, a = 1)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1
002 | 2
!e
def func(*args):
print(args)
func(5, 6)
@feral aurora :white_check_mark: Your 3.11 eval job has completed with return code 0.
(5, 6)
!e ```py
def func(a, b, c, *args, **kwargs):
print(a)
print(b)
print(c)
print(args)
print(kwargs)
func(1, 2, 3, 4, 5, 6, key = 7, door = 8, floor = 9)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
004 | (4, 5, 6)
005 | {'key': 7, 'door': 8, 'floor': 9}
!e
def func(a, b, c, *args, **kwargs):
print(a)
print(b)
print(c)
print(args)
print(kwargs)
func(1, 2, 3, door = 8, 4, 5, 6, key = 7, floor = 9)
@feral aurora :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 8
002 | func(1, 2, 3, door = 8, 4, 5, 6, key = 7, floor = 9)
003 | ^
004 | SyntaxError: positional argument follows keyword argument
def func(a, b, c, /, key):
...```
!e ```py
def func(a, b, c):
print(a)
print(b)
print(c)
d = {"a": 1, "b": 2, "c": 3}
func(**d)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
func(a = 1, b = 2, c = 3)```
!e ```py
def func(a, b, c):
print(a, b, c)
func(*"abc")```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
a b c
func("a", "b", "c")```
things = [("a", 1), ("b", 2), ("c", 3)]
result = [a for a, _ in things]
print(result)
a[0]
result = [thing[0] for thing in things]```
!e
things = [("a", 1,3), ("b", 2,4), ("c", 3,5)]
result = [a for a, _ ,c in things]
print(result)
@feral aurora :white_check_mark: Your 3.11 eval job has completed with return code 0.
['a', 'b', 'c']
!e ```py
class MyClass:
def add(self, _):
return "Hello, world."
instance = MyClass()
result = instance + 9001
print(result)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello, world.
!e ```py
def func(a):
pass
func(1, 2)```
@somber heath :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 4, in <module>
003 | TypeError: func() takes 1 positional argument but 2 were given
!e ```py
class MyClass:
def add(self, v):
return f"{self = }, {v = }"
instance = MyClass()
result = instance + 9001
print(result)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
self = <__main__.MyClass object at 0x7f4288dd7890>, v = 9001
!e ```py
class MyClass:
def setitem(self, key, value):
print(f"setitem, {key = }, {value = }")
def __getitem__(self, key):
print(f"__getitem__, {key = }")
return "Hello, world."
instance = MyClass()
instance["A"] = "B"
result = instance["C"]
print(result)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | __setitem__, key = 'A', value = 'B'
002 | __getitem__, key = 'C'
003 | Hello, world.
instance.__setitem__("A", "B")
result = instance.__getitem__("C")```
Thanks again for everything @somber heath!
@whole bear
oh
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@whole bear ๐
oh damn
uhhhhhhhhhhhhhhhh
do any one know what uhhhh
pyee.asyncio
is
me neither lol
Hi
yooooooo
๐
i think i have to show you my error
Sorry I can't vc verify I don't have 50 messages yet
ye
o
wait can you type that down
i didnt catch it
o
witch code lol
oh
lol im dumb
a
oh no
Christmas the best
bru santa gonna give me coal
Santa better make meh better at python
Lol
damn i got lost
Cool
Ye
wait i use visual studio instead of cmd prmt
Indeed
I wouldn't use the cmd bc vscode is better for writing code on all levels
lol this one isnt my code
oh
oh no
i have done that for 6 months
Ye he's right don't do that
brub i feel like a dumb
aaaa
i dunno usally used it cuz the youtube guys did it
ye
gotcha
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
thanks
ok this is the room i was looking for
I was just trying to communicate with you @somber heath
we don't know each other, just looking for help and understanding on some things with python
:incoming_envelope: :ok_hand: applied mute to @thin plover until <t:1669884055:f> (10 minutes) (reason: burst rule: sent 8 messages in 10s).
The <@&831776746206265384> have been alerted for review.
What's up?
trying to get some help with some projects on python
I can hear you both btw
I have 2
one is trying to make this cube play video
#2 is installing micropython on an ESP32-WROOM and flash this software. still have troubles with it
can you guys help me understand this instructions? https://github.com/Lamprichauns/lamp-os
maybe I can share my screen
couldn't hear that last part
@robust lichen talk here for text.
@somber heath ok, i've done that.
guess ill wait
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
i barely have 13 messages
i have to send 50
sadly
does this count?
to my voice verification
would yall mind if i spam a little?
i want to speak
to get voice verified?
if you send more than10 messages in 8 seconds you will get banne
M]
BOT
Python: ๐จ ๐ applied mute to @thin plover until December 1, 2022 12:40 AM (10 minutes) (reason: burst rule: sent 8 messages in 10s).
The <@&831776746206265384> have been alerted for review.
It was a part of the older version of the help system.
We had a rotation of channels 1 person could claim at a time to get help.
Now that forums exist, the system was scrapped and replaced
!unmute 577980542348296205
:x: There's no active mute infraction for user @thin plover.
he copy pasted
huh, must've gotten yoinked earlier
got it workign i think
Oh. You're right.
@thin plover Careful with your copy pastes, you pinged the entire moderation team.
Oh god
Lemon moment!
He's gonna pissed off staff moment -_-
I'm glad it isn't a real lemon moment.
was just showing @robust lichen what happens if you text too much. yes I got yoinked
I know, my point is
that you unintentionally pinged the team
when nothing was going on in here
until you realize do not disturb exists lol
i would not use discord
if they didn't have it
im trying to get this array to print how i want it
but its being weird
yes
#ot1-perplexing-regexing message The Lemon moment video.
ive only been doing it for 8 months
lol
import requests
import bs4
import fuzzywuzzy as fw
web_url = "https://subscene.com"
headers = {
'User-Agent': "Mozilla/5.0 (X11; Linux x86_64; rv:103.0) Gecko/20100101 Firefox/103.0"}
def search_subtitles(name):
url = f"{web_url}/subtitles/searchbytitle"
r = requests.post(url, headers=headers, params={'query': name})
if r.status_code == 200:
return r.content
def parse_html(content):
soup = bs4.BeautifulSoup(content, 'lxml')
return soup
def extract_links(soup):
subtitle_links = []
for i in soup.findAll('a'):
subtitle_links.append(i.get('href'))
return subtitle_links
def fuzzy_match(search_string, subs_list):
# import fuzzywuzzy
fw.fuzz.ratio(search_string, subs_list)
# return the closest match
return fw.process.extractOne(search_string, subs_list)
search_string = input("Search Subtitles: ")
content = search_subtitles(search_string)
soup = parse_html(content)
subs = extract_links(soup)
subs = list(set([i for i in subs if i.startswith('/subtitles')]))
#subs = fuzzy_match(search_string, subs)
print("\n", subs)
the fuzzymatch isn't the problem
its for when i do it later
what i want
let me show you
['/subtitles/cline-dion-ashes-from-the-deadpool-2-motion-picture-soundtrack-2018', '/subtitles/deadpool', '/subtitles/deadpool-2', '/subtitles/ashes-from-the-deadpool-2-motion-pictures-soundtrack']
this is what i get when i type deadpool
in the input
how could i format the array
to look like this?
/subtitles/cline-dion-ashes-from-the-deadpool-2
/subtitles/deadpool
i just want to reformat
!e py things = ["abc", "def", "ghi"] print(*things, sep = "\n")
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | abc
002 | def
003 | ghi
!e py things = ["abc", "def", "ghi"] result = "\n".join(things) print(result)Another approach.
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | abc
002 | def
003 | ghi
!e py things = ["abc", "def", "ghi"] for i, thing in enumerate(things): print(i, thing)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0 abc
002 | 1 def
003 | 2 ghi
!e py things = ["abc", "def", "ghi"] result = "\n".join(f"{i}. {thing}" for i, thing in enumerate(things)) print(result)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0. abc
002 | 1. def
003 | 2. ghi
!e py for i, v in enumerate("abc", start = 1): print(i, v)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1 a
002 | 2 b
003 | 3 c
ohh
ok
how can i start and end python script in a python script with subprocess
no
like this: py
from subprocess import call
from config import Zela
intents = discord.Intents.default()
bot = discord.Bot(
intents=intents,
debug_guilds=[947187565537161296]
)
@bot.event
async def on_ready():
print(f'Logged in as: {bot.user.name}')
print(f'ID of {bot.user.name} is: {bot.user.id}')
print('------------------------------------------')
@bot.slash_command(description='Starting Gamma Server')
async def start_gamma(ctx):
await ctx.respond('Gamma is starting...')
call(["python", "Gamma.py"])
@bot.slash_command(description='Starting Epsilon Server')
async def start_epsilon(ctx):
await ctx.respond('Epsilon is starting...')
call(["python", "Epsilon.py"])
bot.run(Zela)
it should start other bots and stop other bot
yes
yes
yes
Yes
Gamma is a discord bot
.kill()
import subprocess
import time
class foo_class(object):
def __init__(self):
pass
def start(self):
self.foo = subprocess.Popen(['a daemon service'])
def stop(self):
self.foo.kill()
self.foo.wait() #don't know if this is necessary?
def restart(self):
self.start()
foo = foo_class()
foo.start()
time.sleep(5)
foo.stop()
do a search from: Aquafox450#7387
subtract all your bot commands messages
for the bot, you have 25 messages
@viral oak
:))
Hi vc0
hi
how you doing buddy?
what was your first programming language?
๐
what is typeScript ???
The guy below will tell you!
typescript is a superset of javascript
so just javascript with type checking as an additional compilation step
ye
ok thanks
hello ๐
and yeah
it was easier than last year's day 1 xD
It feels good getting it right on the first try
ye
Hi Vincent!
Hey guys!
Hey Guys
i wish i had time to make projects too rn ๐ฆ i have like 4 functions followed by a cousin's marrige lined up in next 5 days
:v
man I have a ton of work as well, I can't move forward with my projects
and here I am procrastinating
bahahahaha
What projects are you guys working on?
well i asked my boss for a leave and he said yes right away
i'm self employed ๐
you're absolutely right
:))
no paid leave tho unfortunately
Just testing out a trading bot on a crypto exchange that I hope I can learn from to try trading forex and commodities
where can i see how many messages i sent?
give your employee a nice bonus so he can enjoy his holidays
I don't expect to make money off of it, just would be nice to practice coding and learn stuff like that since I sorta work in the financial industry
just search your name on the right side
Are you trying for voice verification?
yes
i did recently finish some big projects so that's not a problem xD
its just i don't like crowds and next 5 days i won't be with any lesser than 60 people at any point in time
The fact that I don't understand this has me interested
But starting is the hardest part sometimes right
basically trade crypto/forex/commodities like oil, metals, etc. using a script
well its work
i won't get paid if i don't finish it so i have to
personal projects i have about 200-300 unfinished ones ๐
one of my personal projects is messing around with my Arch install which I haven't touched in weeks LOL
if its just the installation you can now use the script they provide
https://wiki.archlinux.org/title/archinstall
https://github.com/archlinux/archinstall
I see
no I have it installed already (did it without the script)
I kinda wanna rice it
oh nice ๐ฎ
My noobie project is just making a database that calculates my daily payใ
๐ค
๐คฃ
wait i got this glitch for the first time that people have been telling me for years lmao
duke stopped talking and i could still hear his static
without his ring going green*
bro you entered the audio back rooms
Btw, how does one get permission to screen shareใ
hi @velvet urchin
you ask a mod / admin who is already in vc to give you perms
I see. Ty for your responseใ
@velvet urchin
print(tf.config.list_physical_devices('GPU'))
1 hour of panjabi mc - mundian to bach ke
For all Enquires please email - 1hourclips.enquries@gmail.com
I do not own this clip. All rights goes to panjabi mc - mundian to bach ke
Mr. Krabs: Money Money Money (10 Hours)
i can hear 3 different "money"
no he says "Money, money, money"
i cant hear commas
Brb
Hi coffee โ๏ธ
guys how do i enable my mic
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
Back
retail or detail
can anyone help me find it
retail
and what do you mean with "you need a code describing"
programs don't describe things
they do things
tutorial and articles describe and explain things
i know that i meant like i need a program which will scan qr code and various operations will be done
like billing,checking availability of stock
!pypi pyzbar
pyzbar can read decode qr codes after pillow reads them
as for the other operations, those are separate questions
could you help me
an abundance of noodles in this vc
so the thing i dont know python
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
there's some free ones on the resources page
is it for school
What operating system?
its in my cs eng college
is the hackathon mandatory?
python/c++/java
There's a 4 hour python tutorial that teaches you the core basics of python. You can start coding as soon as you finish watching it ^^
those are languages, not an operating system
yesss
windows or fedora
so let me get this straight
you're following a course at college, but you haven't put in enough effort to actually learn the bare basics of what you're supposed to know
so you come here and ask us to help you cheat?
"my brain shit"
guys im still in 2nd year of engineering and they still havent thought any language full fledge
so but i wanna learn and experience
If you can write a program which accepts stdin stream data and run commands accordingly, you can pipe the stdout of zbarcam or similar into it.
Go follow a python course, get as far as you can
us helping you cheat is not going to get you any further
also it would violate rule 8
5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.
can u give some ressources ?
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
!rule 8
8. Do not help with ongoing exams. When helping with homework, help people learn how to do the assignment without doing it for them.
Anyone experienced with phpmyadmin on here?
Been wondering if i could use python to create stats for an rpg game
What you say about my mama?
Shes a beautiful woman, a fine lady
but shes confusing the heck outta me
๐คฃ
Collaborate?
@azure rivet Willing to help me navigate through it?
I have no idea what phpmyadmin is but I'm open to learningใ
Math.sin(i/(l/10))
hahaha you and me both buddy
I see that you like stuff
I do indeed
Same
Math.sin(i/(l/10))+r
What do you need pypmyadmin for anyways
wordpress
What's wordpress ๏ผ๏ผ
helps make websites...or so im told
I need to make an ecatalogue basically
hai noodle
Both noodles
Wait
All three noodles
Are you guys multiplying or something?
Its a revolution
Is it for work/school?
Nope, my uncle's bakery
Oh
So did you volunteer to help or did your uncle hear that you were a programmer? :'v
Im not even a programmer :/ I took up basic python a year ago....he calls me and goes "need you to make an ecatalogue for me...good luck!"
Figures
Have you ever built a website before tho?
never ๐ฅฒ
im youtubing my way through it
Fun
Im dying
Send the videos
like a dm or on here?
Anywhere is fine
oki
Easier & updated video of installing WP: https://www.youtube.com/watch?v=FVqzKAUsM68
My new advanced WordPress course: https://www.udemy.com/become-a-wordpress-developer-php-javascript/?couponCode=YOUTUBEDEAL
My new beginner WordPress course: https://www.udemy.com/wordpress-for-beginners-create-a-website-blog-step-by-step/?couponCode=YOUTUBEDEA...
The best way to make a website in the entire world!
Have fun creating your own website in under 2 hours using WordPress, the most popular way in the world.
The 3 step process is optimized for speed and success:
- Setup, 2. Options, 3. Design.
We will be working with the Astra theme (5 star ratings with 4,841 reviews ) and Elementor ...
In this video I am going to show How to install Wamp Server on Windows 11 or Windows 10. WAMP is a Windows OS based program that installs and configures Apache web server, MySQL database server, PHP scripting language, phpMyAdmin (to manage MySQL databaseโs). WAMP stands for Windows, Apache, MySQL, PHP. wampserver installer can be easily downlo...
Thats all of them...for now
I thought of using django
but someone said to use wordpress
idk im a biology major
halp!
help with what?
@rugged root ...i broke
I tried wix...it costs money to integrate the domain I bought
if you are making a static site just use github pages and basic css,html
and then someone suggested wordpress
its literally just a website that has pictures on it...thats all i need to make...but I have no clue how to approach it lol
hey ^^ sorry i missed you
All good
You been well?
well its cousin's marrige in 2 days before that we have a bunch of other stuff too so just relatives won't leave me alone rn
Depends on the purpose, AF
except or that i'm gr8
Ah yeah, gotta love dealing with family. Good to see them at least? I'm assuming you don't get to see a lot of them that often
I see. Thx
good to see them yeah but at the same time i'm not a huge fan of being in crowds and if you've seen an indian wedding you'd see there's alot of crowd
i need to go now, it was fun hanging out out here after a while cya guys in 2-3 days ๐
class asyncio.Semaphore(value=1)```
A Semaphore object. Not thread-safe.
A semaphore manages an internal counter which is decremented by each [`acquire()`](https://docs.python.org/3/library/asyncio-sync.html#asyncio.Semaphore.acquire "asyncio.Semaphore.acquire") call and incremented by each [`release()`](https://docs.python.org/3/library/asyncio-sync.html#asyncio.Semaphore.release "asyncio.Semaphore.release") call. The counter can never go below zero; when [`acquire()`](https://docs.python.org/3/library/asyncio-sync.html#asyncio.Semaphore.acquire "asyncio.Semaphore.acquire") finds that it is zero, it blocks, waiting until some task calls [`release()`](https://docs.python.org/3/library/asyncio-sync.html#asyncio.Semaphore.release "asyncio.Semaphore.release").
The optional *value* argument gives the initial value for the internal counter (`1` by default). If the given value is less than `0` a [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError "ValueError") is raised.
Changed in version 3.10: Removed the *loop* parameter.
The preferred way to use a Semaphore is an [`async with`](https://docs.python.org/3/reference/compound_stmts.html#async-with) statement...
Didn't know about that
coroutine asyncio.sleep(delay, result=None)```
Block for *delay* seconds.
If *result* is provided, it is returned to the caller when the coroutine completes.
`sleep()` always suspends the current task, allowing other tasks to run.
Setting the delay to 0 provides an optimized path to allow other tasks to run. This can be used by long-running functions to avoid blocking the event loop for the full duration of the function call.
Example of coroutine displaying the current date every second for 5 seconds:
@lethal thunder Seriously, whenever you're going to talk to your family, BEFORE you start talking to them, mute
!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.
Da de di do du.
im blue
1 hour of panjabi mc - mundian to bach ke
For all Enquires please email - 1hourclips.enquries@gmail.com
I do not own this clip. All rights goes to panjabi mc - mundian to bach ke
Also forgot that was a thing
__pickle__```
pickle rick
Warning
The pickle module is not secure.
Only unpickle data you trust.
Mr Hemlock did you finish last years advent?
Warning (from warnings module):
File "C:\Users\Main\AppData\Local\Programs\Python\Python310\lib\site-packages\telegram\ext\dispatcher.py", line 557
handler.handle_update(update, self, check, context)
RuntimeWarning: coroutine 'activateCommand' was never awaited
await asyncio.sleep(10)
@icy axle If you were a magician, this is what you would HAVE to call your show
you from london init @whole bear
Can you do py -m pip list real quick?
Traceback (most recent call last):
File "C:\Users\Main\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1009, in _bootstrap_inner
self.run()
File "C:\Users\Main\AppData\Local\Programs\Python\Python310\lib\threading.py", line 946, in run
self._target(*self._args, **self._kwargs)
TypeError: status_invoice_tcn() takes 1 positional argument but 6 were given
Thread-1 (status_invoice_tcn)
:
Traceback (most recent call last):
File "C:\Users\Main\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1009, in _bootstrap_inner
self.run()
File "C:\Users\Main\AppData\Local\Programs\Python\Python310\lib\threading.py", line 946, in run
self._target(*self._args, **self._kwargs)
TypeError: status_invoice_tcn() takes 1 positional argument but 6 were given
threading.Thread(target=status_invoice_tcn, args=invoice_id_tcn,).start()
Oh dude
I've always said this about Python, if you're trying to do something, odds are good someone has already made it and done it better. (not knocking any of you, more just admiring the Python ecosystem)
Ah, apologies. I thought I remember him saying it was originally just about dealing with the rate limiting
I gotcha now
Exception in thread Thread-1 (status_invoice_tcn):
Traceback (most recent call last):
File "C:\Users\Main\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1009, in _bootstrap_inner
self.run()
File "C:\Users\Main\AppData\Local\Programs\Python\Python310\lib\threading.py", line 946, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\Main\Desktop\Mafiafullz - Copy\main (4).py", line 158, in status_invoice_tcn
response_status = status_invoice_tcn(invoice_id_tcn)
TypeError: status_invoice_tcn() missing 3 required positional arguments: 'update', 'amount_tcn', and 'address_tcn'
Send some of that my way
Back in a moment, someone's rig at work isn't working. Also that might be why I like Windows; because I do IT work
It's what the majority of people have so I'm very used to its ins and outs
https://archive.org/details/softwarelibrary_palm @lavish rover
all the premade food at google hq in London is pretty much just vegetarian/vegan
Kind of neat, though
surprisingly they are not bad
So long as they get enough protein and nutrients, it's a healthier option
got tons of drinks
Wait do you work at Google?
At msft estonia we have vegan options for everything but there's also meat/dairy options
Oh neat
for non work related stuff
His head is a bell curve graph
Wait it what
Like
To assist in making game setups in it?
Kinky
I was wrong, it was the Windows Calculator that was open-sourced https://github.com/microsoft/calculator
Thought it was notepad
Calculator was the first
I thought notepad was too
Oh, no, sorry, it was just moved out of the "in-box" category (pre-installed apps) and to the Windows Store
So it can now be uninstalled and updated without Windows update
Reddit laughed at Microsoft for announcing a "huge shift towards open source", and then opening up.... the calculator
nop - Do nothing.
I don't need a command to do that thank you
pass
Baby steps
What was the suspicion?
It can yeah
But that was a relatively recent addition
Neither one started with that support or even really planned on adding it
Ah that's right
Yep yep
Yep, companion any time I could
Typically I was in melee range and would pick a ranged or support person as my second
It's really really helpful with bosses
Any kind of added support makes it more pleasant
Fair
shubham.sachdeva
Jun 29 '19
three years later
@zenith radish you necro
LOL I had to go find my DMs to find LP's ID bec....
Oh shit that's you
I am trying to integrate the Nvidia Encoder SDK with the Nvidia FBC SDK. I am using cuda devices as my input buffers. For some reasons I am getting a weird output, that is, my encoded video is just a green screen screen. Any help regarding this would be appreciated, thank you Note- I am doing to by integrating the encoder SDK in the Cuda Async...
imo, it's always a better investment to learn skills closer to core CS things
but it helps to learn new skills easier
like let's say you learned about design patterns something like that, now that you have that skill you see, how people are designing library, and quickly now how to use them
Yeah I suppose
Unless you have bills to pay
And want stability
then stay on that 9-5
Yarp
come up with something cool, so that a big tech company can copy it in an afternoon!
LMAO
the good outcome is buy the company
yeah some static as well
@waxen barn pls fix your mic
ban him hemlock
@waxen barn Moved you to AFK, can you check your mic settings, turn on Krisp or echo cancellation?
Oh it's fine now
When?
it's quite rare big tech buys companies for tech. they often buy for costumers and brand something like that.
like elon bought twitter because twitter as tech is not that valuable, but twitter network effect is hard to replicate
I know on some folks it used to make them sound tinny, but they've more or less cleared that up
Fair
he needs the influence to pump doge coin
its bollocks
or become "un-cancellable"
He craves attention
eh why not
mans rich
if i was as rich as him some countries would collapse for fun
@foggy stirrup Use this chat instead
I disabled the built in text channel because it's less pleasant for writing code blocks and for folks on mobile
i think, he was not like this before like maybe 8,9 years ago, now all i see is a manchild
hi, thanks
You can do that?
The controls for the built-in channels are actually really crap
There isn't a way to just straight up turn it off
Huh. But connect is still there then?
Yep
Interesting
I didn't think that'd work
"view message history"
Best I can do is disable the "Send Message" permission for the internal channels
hemlock give me helper pls
Not how that works
I'm learing to code since 2 years but I don't see any advance on it, I get stuck with every problem, how much do you think I should practise to code better in JS?
how does it work
like this
So there's a bit of a difference between doing code challenges like this and doing programming (at least in my eyes)
and it's worse because I'm not a native English speaker
same man
Crap, I'll be right back
just do regular projects
I'll talk about it more when I get back
ok
k hemlock
anyways @foggy stirrup do some projects
this wont make you better at coding
real world problems will
the problem is when you try to get a job hahaha
they send you those problem from hackerank
dont gotta worry about that
what is that
glasses?
no
@zenith radish bro your graphics card is proprietary
your cpu as well
how are you gonna eat tho
mac is better for graphic design
if everything is open source then whats the point of being a SOE
๐
oh yeah
let me print money from the sky
do i look like the federal reserve
yeah but if its open source im not paying anything
and sure as shit nobody is paying
I think neither is true, we want big companies investing on developing cool tech and most big investments only worth it if it's closed...
but now that something super hard to do is already exists, it's easy for open source community to replicate it... it goes in cycles...
you are the product!
xD
god i love torrents
is openssl like letsencrypt?
oh alright
whats the point of ssl anyways
I'm going to have lunch cya later
like if i dont have ssl on my site my packets are transmitted in clear text?
but if money is not something that you value that much, then university is worth it to learn things (assuming no-one is forcing you to learn, and you want to DO IT)
@terse needle
so anyone can just scan the whole internet and see what sites dont use ssl and steal credit card info from it?
thats crazy
I don't need university to learn
why isnt ssl enforced completely then
it's not university itself that's worth... Once you get into a job, you can't learn whatever the fuck you want! but at university you have all the time you want!
that's true I also miss out on the collage life
whats the easiest way possible to get a ssl certificated setup for me automatically
alright new biz idea
im gonna rent a vps and scan the whole internet for data
and sell the data
it's an echo chamber, they think their work is more valuable than others!
@zenith radish but they pay good no?
whats the pay looking like?
MBA
ugh jobs are depressing
Back when I get in the van, delivery run time
emacs vs neovim
Code or proper?
who
AF
what
Was assuming he meant Visual Studio
naw
OH yeah
does anyone know how i can push to github and get my code deployed to my server?
like make and build a docker image and deploy a docker container every time i commit
like heroku or github pages
no
@rugged root
i dont feel like someone gunna see my messages
uh? is this a guy who can give me the permission?
hes the guy who sells admin perms for 1k usd
im not tryna go into FBI building why getting acces is so hard?
fjkdfjkds i dont even have 1 cent
People abuse it. So we're careful about giving access.
Yes, and it's mod or admin that has to grant the permission
understandbl but it sounds like people can create a virus with using python? they just need to destroy Python from public...?
I have no idea what you're on about.
People have abused streaming permissions by streaming porn and other inappropriate content.
ah yes rules but it also make useless this server, just a user advice..
So it requires a mod or higher to be in chat while someone streams
then how should i ask someone about my fails while i was codding
So few people use voice, let alone stream. It hardly makes the server useless. Don't be so dramatic.
there is like 12 here
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.
i wanna work together
and yesterday
but it is dramatic who put this rules
People can't be trusted
its really not that deep man
You are not sounds like a discord admin.. You sounds like you have dissapointed relationships in your paste
im sorry
Lashing out at me is a sure fire way to never get stream perms
but i really need to screen share in this server
ask hemlock
im not tryna be rude
who is he
@rugged root
i can use this apps if i have someone to code together
i can find people here to code together
meh it sounds like im wasting my breath
ye i can help
@vocal basin you from france
jemappel
where you from?
im not racist dont worry
RUSSSIA
i love russia so much man
@midnight agate me
yes
yes
lets do it
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.
import discord
from subprocess import call
from config import Zela
intents = discord.Intents.default()
bot = discord.Bot(
intents=intents,
debug_guilds=[947187565537161296]
)
@bot.event
async def on_ready():
print(f'Logged in as: {bot.user.name}')
print(f'ID of {bot.user.name} is: {bot.user.id}')
print('------------------------------------------')
@bot.slash_command(description='Starting Gamma Server')
async def start_gamma(ctx):
await ctx.respond('Gamma is starting...')
call(["python", "Gamma.py"])
@bot.slash_command(description='Starting Epsilon Server')
async def start_epsilon(ctx):
await ctx.respond('Epsilon is starting...')
call(["python", "Epsilon.py"])
bot.run(Zela)
Popen.send_signal(signal)```
Sends the signal *signal* to the child.
Do nothing if the process completed.
Note
On Windows, SIGTERM is an alias for [`terminate()`](https://docs.python.org/3/library/subprocess.html#subprocess.Popen.terminate "subprocess.Popen.terminate"). CTRL\_C\_EVENT and CTRL\_BREAK\_EVENT can be sent to processes started with a *creationflags* parameter which includes `CREATE_NEW_PROCESS_GROUP`.
i think so
when you input wrong hours
like
6:20
its suposed to print like its not time to eat
yea i just forget the 2nd paragraph cause i cant understand what they want
~so i just try to make it work anyway
yea but i think its not worth it
i just realised that im dumb
how i can say that if 7<h<8
if h is a int
not a float
Gamma = await asyncio.create_subprocess_shell(["python", "Gamma.py"])
SyntaxError: name 'Gamma' is used prior to global declaration
s
Hahaha definitely
@runic plank use this text channel to talk
okk
๐
I'm not allowed to use my mic in the voice chat 0
okk thx
I'm going to watch an anime, good night
bye good night
@robust lichen
def collatz(number):
while number > 1:
if number % 2 == 0:
return number // 2
elif number % 2 != 0:
return 3 * number + 1
else:
print("input a number" )
x = int(input('Enter a number: '))
collatz(x)
print(x)
Enter number:
3
10
5
16
8
4
2
1
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![]
(+[![]]+[+(+!+[]+(!+[]+[])[!+[]+!+[]+!+[]]+(+!+[])+(+[])+(+[])+(+[]))])[+!+[]+[+[]]]
alias m="python manage.py"
@robust lichen
supdate = sudo update
alias supdate="sudo update"
@tulip plover
Collatz Sequence
def collatz(number):
while number<1:
if number % 2 == 0:
return number // 2
else:
return 3 * number + 1
num = int(input('Enter number:' ))
print(collatz(num))
yes i know
what up?
you know python good??
good
i want t learn some library in python you have any advice what?
i want to learn machine learning
you can write the name here?
thk
what you do in python?
this is pretty cool
what is your level in python?
?
are you here?