#voice-chat-text-0
1 messages ยท Page 239 of 1
nope
just friends
normal
what's ur guys favorite
airline
here in india Air India is just trash
i'll go with Indigo
domestically
Spirit
no
bruh
Delta is good
I have flown with United, Delta, and Southwest
they're pretty good
ngl
i just don't know but United has the best catering
i use to live in the U.S
earlier
Seattle area
who's flown with Virgin Atlantic
do u guys use any Cloud IDE
if yes please do reccomend me one
bro Delhi metro connects the airport
like most terminals
bro has a reason......
which laptop u guys use?
ye
๐
i remember i had a few friends earlier in this server
i just lost em lmao
which Cloud IDE do u guys recommend
It's bout time for me to go. I may be back another time because I've got plenty of Python questions.
it's to early for this.
@steel torrent are you afk
wath is afk
away from keyboard
no
nice i love JS
i def want to get into Typescript and Go after learning more of python syntax
what text editor do you use
Good luck broo
Where are you from
oh cool
Have you heard of it before?
yeah i remember Cypher from valorant is from Morocco
I do not know him
Valorant is a really popular video game
look it up, you will see what I am talking about
Do you own GitHub?
yes
yes but its not public atm
nice same
What is your level in python
it's a snake, maybe
i just started recently in Python so a begginer @steel torrent
also me, going to try counterfiet sd v3
goood luck broo
yeah im loving it reading alot of the documentation
wow goood
hi osyra how are you??
what??????
@olive hedge Can I talk to you?
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@winged talon
this one
I see, now working on 50 messages
Do not spam
I'm not going to)
evening
learning java
not as bad as everyone says
but still a pain
i kind of like verbose weirdly
thanks for the heads up. not excited haha
i feel like all databases in any language is messed up and screwed
java is hard like a little bit
I can't get this voice chat rule. I have to send 50 messages on the server?
yeah
How do you know what you want to do with python? If you begin learning it and go to the end of the course what will change?
Oh nice!! How did you like it?
Here is "hello world" in the language Piet: https://en.wikipedia.org/wiki/Esoteric_programming_language#Piet
An esoteric programming language (sometimes shortened to esolang) is a programming language designed to test the boundaries of computer programming language design, as a proof of concept, as software art, as a hacking interface to another language (particularly functional programming or procedural programming languages), or as a joke. The use of...
~
@wind raptor this is a good one too saw a streamer playing it
https://store.steampowered.com/app/605230/Grey_Hack/
Grey Hack is a massively multiplayer hacking simulator game.You're a hacker with full freedom to act as you wish on a vast network of procedurally generated computers.File Explorer, Terminal and Text Editor are some of the programs that will be available from the start of the game. As you improve your skills you will find new utilities that you ...
$19.99
1183
That looks cool
Hey mindful
A quantum computer in the next decade could crack the encryption our society relies on using Shor's Algorithm. Head to https://brilliant.org/veritasium to start your free 30-day trial, and the first 200 people get 20% off an annual premium subscription.
โโโ
A huge thank you to those who helped us understand this complex field and ensure we told...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Basically I need the GUI to be implemented into script 1, It takes user input for a code of which I have generated for them.
I'm not sure what I can do with main as script 1 executes main as I imported all of the main functions from it.
@hazy depot
I need all of which to compile together also, I'm sorry for the spam. I'm a noob lol.
I believe you would be able to end the code after validation then start the GUI am i wrong?
The entry box is supposed to be for the code, once the code is validated the script runs
I have tested it all out on the scripts themselves although I have not implemented the GUI
It's not possible?
its NOT
Is this code for cheating in a game?
I have a group of friends who think that It's going to stop recoil for them but all it does is fuck with their mouse.
I'm trying to troll my discord.
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
I had read that rule and didn't think that it fell underneath it, sorry lol.
No worries.
Are you guys going to say something?
@crystal hemlock please do not use soundboards on the server. We have ours disabled for a reason.
@wind raptor 
Thanks ๐
how to study cybersecurity and what is this
Gotta head out. Have a good one all ๐
have a nice time man !
@left leaf what. go has GC
take care.
Hello
push ups every hour
health issue
do you guys spend week ends programming?
yes
fulltime
push ups and no screen in week ends can be healthy for programmer
@eager thorn mouse workin now >?
of course ๐
good shit
can any one reffer me a good libp2p resource or blog or pdf?
.
I don't know how to start with peer 2 peer
bye
cya dude
anytime man have a nice time
voice varification is done yet
check out #voice-verification
and click the button there
Yes I did. Thank you
hello from othe other side
@devout tapir ๐
mines
!e
print(.21 ** 8)
@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.
3.782285936099999e-06
that roughly being the probability of 8
on a single cell, not the entire field
Hello!
Are you free by any chance to divert your attention from what you're doing to help me with something?
Okay thank you!
help with what?
what do you know/are allowed to use when making the program?
Source code: Lib/heapq.py
This module provides an implementation of the heap queue algorithm, also known as the priority queue algorithm.
Heaps are binary trees for which every parent node has a value less than or equal to any of its children. This implementation uses arrays for which heap[k] <= heap[2*k+1] and heap[k] <= heap[2*k+2] for all k, counting elements from zero. For the sake of comparison, non-existing elements are considered to be infinite. The interesting property of a heap is that its smallest element is always the root, heap[0].
yeah, the program should probably be without something that advanced if you don't know it yet
So what should I do if I may inquire?
this more or less describes the procedure
you have no more than 10 entries sorted by score
you insert one in while maintaining the ordering
and delete 11th entry if it exists
Yeah, I know that but I'm still stuck on how to write it.
do you know how to open a file in python?
f = open("demofile.txt", "r")
print(f.read())
(I assume it's needed because highscores.txt seems like a file that the program will interact with)
Yeah.
with is preferred because it auto-closes the file
with open("demofile.txt", "r") as f:
print(f.read())
Okay.
and closing the file would be necessary, since later on in the program you'd open the same file but in write mode
with = open("demofile.txt", "r")
print(f.read())
f.close()
does the original file have names and scores alternating? (two lines per entry)
No.
how does the user input look like?
1)
<name> <score>
<name> <score>
<name> <score>
<name>
<score>
<name>
<score>
<name>
<score>
(first is how the output looks like)
so the general layout of the program would look something like this:
with open("highscores.txt", "r") as file:
...
while (name := input()):
score = int(input())
...
with open("highscores.txt", "w") as file:
...
do you know what := does?
For assignment?
it's similar to = but can be used inside of an expression
!e
if (x := False):
print(x)
if (y := True):
print(y)
@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.
True
without :=, there are some alternative patterns you can use for "read a line into name until it's empty"
name = input()
while name:
...
name = input()
while True:
name = input()
if not name:
break
...
... there would be where you fill out the list logic
What does it mean ":=" please
:= is a walrus operator
it assigns a value to a variable, then evalues to that new value
!e
print(x := 15)
print(x)
@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 15
002 | 15
from what the text says I think you're expected to store it like this:
scores = [
["ABC", 9877],
["BCD", 9765],
...
]
are spaces in names allowed?
We're supposed to do this.
I think.
so here are three separate things you need to do with a list:
read it from a file
add a new entry to it (using name and score)
write it to a file
and printing it also, I guess
but that can be done while writing to a file, since it's basically the same thing
does the file exist when the program is started for the first time?
(if no, you would need to check it or catch an error when the first open fails)
for reading a file line-by-line Python provides a simple way which is to just iterate over that file:
for line in file:
...
!e
with open(__file__) as file:
for line in file:
print(f"{line = }")
@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | line = 'with open(__file__) as file:\n'
002 | line = ' for line in file:\n'
003 | line = ' print(f"{line = }")'
if the highscores are stored the same way they're printed (space-separated), then str.split would be used to extract the name and score parts
!e
lines = [
"ABC 9877",
"BCD 9765",
]
for line in lines:
name, score_text = line.rsplit(maxsplit=1)
print(f'{name = } ; {score_text = }')
@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | name = 'ABC' ; score_text = '9877'
002 | name = 'BCD' ; score_text = '9765'
so, as first step, try combining with open, for line in file and line.rsplit to get the file parsing working
I have to go, but here's a list of things you should look into for implementing the rest of the program:
.insert and .sort methods on lists (and bisect/heapq modules if you're allowed to use them);
key argument to those methods (so that you sort by score not by name)
.write and .writelines methods on a file
Alright.
@somber heath hey
You can't hear me
I'm not wearing a headphone , and there will be noice
i see you here everytime , are you part of server maintaner?
And did you get the role? @Advent of Code Completionist
@somber heath
hi
@whole oar ๐
HI
hi
btw is it possible to get docs information from .inv files?
i was trying make a cleaner docs than that tf sphinx
sphinx docs are way too hard to read
hello
hi
may i ask whats wrong with this code why i dont get any value on my tia portal ?
code?
import cv2
import mediapipe as mp
import numpy as np
import snap7
import struct
import threading
Initialize MediaPipe Hand model
mp_hands = mp.solutions.hands
hands = mp_hands.Hands(max_num_hands=1, min_detection_confidence=0.7)
mp_drawing = mp.solutions.drawing_utils
Initialize PLC connection
plc = snap7.client.Client()
plc.connect('172.20.20.30', 0, 1) # Replace with your PLC's IP address, rack, and slot
db_number = 2
bit_offset = 1
value = 1 # 1 = true | 0 = false
Function to update the global finger count and display the video feed
def update_finger_count():
global latest_finger_count
cap = cv2.VideoCapture(0)
while True:
ret, frame = cap.read()
if not ret:
break
frame = cv2.flip(frame, 1)
rgb_frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
result = hands.process(rgb_frame)
if result.multi_hand_landmarks:
for hand_landmarks in result.multi_hand_landmarks:
# Your existing landmarks and finger counting logic goes here
latest_finger_count = finger_status.count(1)
# Draw the hand annotations on the image
mp_drawing.draw_landmarks(frame, hand_landmarks, mp_hands.HAND_CONNECTIONS)
# Display the frame
cv2.imshow('Finger Count', frame)
# Break the loop when 'q' is pressed
if cv2.waitKey(1) & 0xFF == ord('q'):
break
cap.release()
cv2.destroyAllWindows()
PLC Communication Functions
def writeBool(db_number, start_offset, bit_offset, value):
reading = plc.db_read(db_number, start_offset, 1)
snap7.util.set_bool(reading, 0, bit_offset, value)
plc.db_write(db_number, start_offset, reading)
def get_finger_count():
global latest_finger_count
return latest_finger_count
Main Logic
if name == "main":
# Start the camera script in a separate thread
cam_thread = threading.Thread(target=update_finger_count)
cam_thread.start()
try:
while True:
# Get the latest finger count
finger_count = get_finger_count()
# Write finger count to the PLC
writeBool(db_number, finger_count, bit_offset, value)
# Add a delay if necessary, e.g., time.sleep(1)
except KeyboardInterrupt:
print("Stopping script")
# Cleanup
plc.disconnect()
not all but i get help from chatgpt
must with comments becuse it has to be with comments
OKAY
!code
kk, nvm my message
!code import cv2
import mediapipe as mp
import numpy as np
import snap7
import struct
import threading
Initialize MediaPipe Hand model
mp_hands = mp.solutions.hands
hands = mp_hands.Hands(max_num_hands=1, min_detection_confidence=0.7)
mp_drawing = mp.solutions.drawing_utils
Initialize PLC connection
plc = snap7.client.Client()
plc.connect('172.20.20.30', 0, 1) # Replace with your PLC's IP address, rack, and slot
db_number = 2
bit_offset = 1
value = 1 # 1 = true | 0 = false
Function to update the global finger count and display the video feed
def update_finger_count():
global latest_finger_count
cap = cv2.VideoCapture(0)
while True:
ret, frame = cap.read()
if not ret:
break
i try it
@queen crypt ๐
๐ญ
i had roles before on this acc
left on accidents
are u guys winning?
yes
winning in what u wanna win in
indeed
๐ญ
hmm
@iron aspen ๐
@cedar glacier ๐
btw i think podman is faster than docker and good for potato pcs
btw how can we get stream perms?
can i get talk perms?
btw do you have debian os?
oh k me bad at linux commands
i am just used to alpine os cause its small and good for my potato pc
@mystic lily ๐๐ฝ
use nvchad in neovim for basic setup? with auto complete
@somber heath still cant verify
@silver shoal ๐
you can get auto completion in nvim @ebon mist
git clone https://github.com/NvChad/NvChad ~/.config/nvim --depth 1 && nvim
^
press esc
and type :q
or :wq
hmm
why it not works for you?
try :wq
hmm
weird
try reinstalling nvchad
make new file with touch
touch <file>
nano/cat
@peak nacelle
try nvim <file>
Brb
congrats
pip install numpy
arr = np.array([1, 2, 3, 4, 5])
print(arr)
print(type(arr))```
arr = [1, 2, 3, 4, 5]
@eager thorn :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | [5 7 9]
002 | [ 4 10 18]
code
What are you guys talking about? I heard my name ๐
code
lol
!ti
import numpy as np
arr = np.array([1, 2, 3, 4, 5])
print(arr)
@mystic lily :white_check_mark: Your 3.12 timeit job has completed with return code 0.
1 loop, best of 5: 95.7 usec per loop
!ti
arr = [1, 2, 3, 4, 5]
print(arr)```
@mystic lily :white_check_mark: Your 3.12 timeit job has completed with return code 0.
200000 loops, best of 5: 1.69 usec per loop
!timeit [python_version] [setup_code] <code, ...>
Can also use: ti
Profile Python Code to find execution time.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
If multiple formatted codeblocks are provided, the first one will be the setup code, which will not be timed. The remaining codeblocks will be joined together and timed.
Currently only 3.12 version is supported.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
I don't think you can. I think it just loops as many times as it needs to get the error down low enough.
Or maybe it's based on total run time.
Fyi, you need to close the bracket
๐
Can you mute please @whole bear
Concatenation?
Oh
!e
import numpy as np
a = np.array([1, 2, 3])
b = np.array([4, 5, 6])
print(a + b)
print(a * b)
@eager thorn :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | [5 7 9]
002 | [ 4 10 18]
Oh that's just how numpy arrays get printed.
Errrm, maybe to make them all two characters wide?
So they line up if you print out a 2d array.
!e ```py
import numpy as np
a = np.array([[9, 10, 11], [12, 13, 14]])
print(a)
@stuck furnace :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | [[ 9 10 11]
002 | [12 13 14]]
It's right-justifying the numbers.
Like str.rjust
It's just an aesthetic thing yeah
!e ```py
import numpy as np
print(np.random.randint(0, 10000, (6, 6)))
@stuck furnace :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | [[1537 1997 8228 6092 2649 2945]
002 | [1440 8330 2434 1087 5920 1143]
003 | [8256 7633 26 6392 8418 8163]
004 | [1357 3365 5568 312 2931 2000]
005 | [3673 9439 1597 1216 8396 2437]
006 | [3767 8123 2212 9328 2797 2409]]
What's everyone up to?
waiting to be able to talk
It was alright ๐
it has been 3 days
Nah I don't really do new year's resolutions
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
I feel like if you want to make a change, you should just do it, not wait for a new year to do it ๐
you should be able to verify now.
!voice
Errr, just checking
You joined <t:1704504892:R>
At 1704504892 unix time ๐
So you will be able to verify <t:1704764092:R>, if I've got my maths right.
!py
from datetime import datetime
ts = int('1704504892')
print(datetime.utcfromtimestamp(ts).strftime('%Y-%m-%d %H:%M:%S'))
Alright, see you then
code
!eval?
Erm, it gets sent to a server, evaluated in a sandbox, then the output gets sent back.
!source eval
Run Python code and get the results.
This is the sandbox: https://github.com/python-discord/snekbox
I guess if you wanted to demonstrate a difference between versions? ๐คทโโ๏ธ
I haven't used that much myself.
Yeah it's very handy ๐
I think network access etc. are locked down.
So there's not much you could do.
You could use it to send rude words in the server ๐
That's about it.
I don't understand sorry
Errr, I don't know actually
You can save temporary files, and if they're images, the bot will show them, which could be potentially sketchy
But you'd have to generate it purely with code.
Yeah, there have been things on Discord like video files that crash clients and stuff.
Oh, err, the mods would just get pinged.
Hopefully
We have tonnes of filters and alerts
does anyone use python version managers? thinking of using one
my system python v is 3.11
i could install 3.12 but i'm thinking of using a version manager like pyenv.. if it is still used
I tend to just use pip and venv.
yeah pyenv is the most common, but i normally just use what alex said.
I find other tools a bit overwhelming tbh ๐
currently i use conda but installing virtualenv inside conda feels a bit weird.. like installing a virtual env inside a virtual env
i use conda for data analysis and ml stuff but i want to start using virtualenv for web dev
I think way back it was much simpler to install libraries like numpy using conda.
That sounds like one of the scenarios where web scraping might be ok/allowed
i'm used to creating envs using conda.. but the conda freeze is a tiny bit different than pip freeze.. just enough to cause annoying problems
so i'll be using the same tools that other web devs use: pip + virtualenv
i don't want to use python from ubuntu repos because they rip out pip..
so i have to compile from source
i may need a version manager for python like i have one for nodejs
Yeah
@stark river in venv you can specify what python version it should use
Well actually, you use the python version you want as the base interpreter to create the environment.
So like, on Windows, you might do: ```
py -3.10 -m venv .venv
If you have virtualenv installed, which is like the more fully-featured equivalent of venv, you can select a python version like: ```
virtualenv --python 3.10 .venv
When you create a venv, I think you'll be able to use pip in the venv?
i believe virtualenv uses the python version available on the system.. i.e. you can't install a new version of python
They just use their own packaging system for installing global packages.
Oh yeah. I think you can use pyenv to get different versions of python. I haven't used it in a while though.
It compiles them from source, I believe.
Hey @lyric moss so what was the information you needed to find? ๐
Also, do you know about the deadsnakes PPA for older/newer versions of python? https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa
This PPA contains more recent Python versions packaged for Ubuntu.
Disclaimer: there's no guarantee of timely updates in case of security problems or other issues. If you want to use them in a security-or-otherwise-critical environment (say, on a production server), you do so at your own risk.
Update Note
Please use this repository...
This makes sense
whwat's up.
You can see the example above
This is usually the time Hemlock joins if he's around ๐
might be working idk.
what personal data are they asking for?
Stabuwu diffuwusion.
@eager thorn mouse workin
@eager thorn it's a based question gonna ask it everyday mby
XD
yo @rugged root
Hi guys!!
Yes he is Drunk LOL
This is not my film, I didn't film this.
This was send to me 5 years ago, this is so funny that I put it on YouTube so that everybody could laugh over this.
What are your thoughts about Modular Mojo?
superset of python right '/
it's really efficient for ML stuff
if you're really interested you can learn it via documentation it's really similar to python
this is still pretty crazy to me tho
Thank you
Concurrent?
yeah it's working now, hard reset it.
sorry had to run to the gas station.
no worries man
๐ถ One of these things is not like the other ๐ถ
agree
hopefully not a wall.
Calculator:
https://www.youtube.com/watch?v=6vDAN3mnGig
So I saw this video and I was like this is awesome. So i decided to reupload this. Also be sure to Subscribe to his channel.
The one who posted it:
Youtube Channel "TrailerGo"
Link: https://www.youtube.com/channel/UCpeuSDP8JIwpH736PhVU5bg
(Edit: Video got deleted for some reason finding alternatives)
Thank you for watching โค...
@rugged root
Please comment which language it is!
@gilded rivet stahp
!source
A Cuckoo Clock written in python. Contribute to noudald/cuckoo-clock development by creating an account on GitHub.
is this a dumb use of recursion? Was going to use a for loop, then I'm like, hey recursion can do this (it's a morse code encoder/decoder function) ```py
def convert(code, mode):
global MORSE_CODE_DICT
## decides whether to encode or decode
if mode == 'E':
if len(code) == 1:
return f"{MORSE_CODE_DICT[code[0].upper()]}"
else:
return f"{MORSE_CODE_DICT[code[0].upper()]} {convert(code[1:], mode)}"
elif mode == 'D':
if type(code) == str:
code = code.split(' ')
if len(code) == 1:
return f"{PLAIN_TEXT_DICT[code[0].upper()]}"
else:
return f"{PLAIN_TEXT_DICT[code[0]]}{convert(code[1:], mode)}"
else:
return f"Error: incorrect value for mode. Use either E for encode or D for decode."```
One sec
Is there anyone here not working in tech yet?
Man thatโs awesome that you were able to grow into that
Its so difficult getting experience atp
lmao
just asking
like that
i think this is too
Never heard of that one, neat
I just made a YouTube video about coding am I allowed to post the a YouTube link here?
<@&831776746206265384>
I mean... if it comes up organically in the conversation
We don't really have a place for self-promotion
Programming tips in 2024?
Managing environments Poetry makes project environment isolation one of its core features.
What this means is that it will always work isolated from your global Python installation. To achieve this, it will first check if itโs currently running inside a virtual environment. If it is, it will use it directly without creating a new one. But if itโ...
not dumb, just inefficient
when docker fails you eh Hemlock?
It's helpful for local project management stuff
hello mens
make it more plural .. mens truation
it has to be
So many IDEs open 
nerdge
throws an error
anyway i compiled 3.12 and got most of what i need
had to install libopenssl for pip to work.. that was weird
:-v
once you jetbrain you never go back
I also enjoy working in vim
๐ซถ
With the EoL of Python 2 being in line with development of Python 3.9 there were changes made to Python 3.9 that broke a lot of packages since many deprecati...
Mmmm.... robocopy
the dd of powershell
Doesn't allow for doing it on threads right?
@stuck furnace , it's sort of a branding thing... in Gitlab, they are called Merge Requests... In Github, I suspect they are called Pull requsests because they are often coming from personal repos... IDK,
IMHO, I agree with you 100%
Oh wow... what a blast from the past.
OK, that makes a lot of sense.
Hey @vocal basin , can you recommend a python project that builds or tests for multiple versions of Python on multiple architectures?
I want to use this dagger.io trick:
https://docs.dagger.io/cookbook/#perform-matrix-build
to see what happens
I so far haven't had a use case for multi-version Python builds (have never maintained a public enough library/package/etc.)
- I don't have that much resources to run it neither locally nor in-cloud
the only tool, that I've used and which provides "matrix build" functionality, was GitHub Actions and its derivatives (I mostly use Gitea Actions which is built on top of nektos/act -- a tool that allows running GitHub actions self-hostedly)
I guess buildbot supports it too with some extra setup
I've only used buildbot for Rust and only with two versions at a time (1.65 for MSRV and latest)
Hey guys! can someone help me with something? it's about tkinter package.
Well.. So I want to create a transparent and topmost window, and click throw a specific Frame that is visible to the window under it, how do I do that?
I have this code
import tkinter as tk
import win32gui
import win32con
def click_through(hwnd):
try:
styles = win32con.WS_EX_LAYERED | win32con.WS_EX_TRANSPARENT
win32gui.SetWindowLong(hwnd, win32con.GWL_EXSTYLE, styles)
win32gui.SetLayeredWindowAttributes(hwnd, 0, 255, win32con.LWA_ALPHA)
except Exception as e:
print(e)
if __name__ == '__main__':
root_x, root_y = 200, 50
root = tk.Tk()
root.config(bg='#001122')
root.attributes('-transparentcolor', '#001122', '-topmost', 1)
root.geometry(f"{root_x}x{root_y}")
test_frame = tk.Frame(root, width=50, height=30, background="#ff0000")
test_frame.place(x=10, y=10)
click_through(test_frame.winfo_id())
root.mainloop()
I successfully clicked throw it, but my question is, can I do that without using win32gui and win32con?
Thank you for your help! I appreciate it.
It looks like this, I want to click throw the red frame.
import tkinter as tk
import win32gui
import win32con
def click_through(hwnd):
try:
styles = win32con.WS_EX_LAYERED | win32con.WS_EX_TRANSPARENT
win32gui.SetWindowLong(hwnd, win32con.GWL_EXSTYLE, styles)
win32gui.SetLayeredWindowAttributes(hwnd, 0, 255, win32con.LWA_ALPHA)
except Exception as e:
print(e)
if __name__ == '__main__':
root_x, root_y = 200, 50
root = tk.Tk()
root.config(bg='#001122')
root.attributes('-transparentcolor', '#001122', '-topmost', 1)
root.geometry(f"{root_x}x{root_y}")
test_frame = tk.Frame(root, width=50, height=30, background="#ff0000")
test_frame.place(x=10, y=10)
click_through(test_frame.winfo_id())```
lua
Helloguys, is anyone here from Canada?
dll injection???
@whole bear discord uses dll injections to show users in a voice chat in games
dll injections are not easy task
yep
@whole bear https://www.youtube.com/watch?v=4WY-yovfGQU
Discord was so kind to provide easy-to-use functions in their Electron/Node module, allowing you to send framebuffer (raw image bytes + size) into any process with the Discord overlay loaded. My Twitter post about it: https://twitter.com/ootiosum/status/1680910365620682754
In the past people abused Discord overlay by either hijacking the Direct...
this is interesting
yep exactly
A process can host a TLS callback, and then it will receive notifications of thread creation. That can intercept thread creation such as what is produced by CreateRemoteThread. If the thread start address is LoadLibrary(), then you have a good indication that someone is about to force-load a DLL.
5 years ago
its a good sample good. but i would rather write my own dll injector
this is uses cpp for dll injection
look it source code ://
i think its injects into vulkan stuff. so like any programs that renders its graphics using vulkan can be used
yep.
๐
i found this from 2001
Over the next 14 months Google will begin blocking third-party software from injecting code in Chrome. They plan on doing this in three phases with the final phase to take effect in January of 2019. The only vendors that will be allowed to do so after that time are Mircosoft, accessibility...
๐
oh its actuly from 2017
yep. but its process base. so you cant really do one thing for all apps
then list your apps.
and check how to inject into each one.
then you are good to go
hijack the discord dll injector.
test your idea
if its works and its good
then write your own dll injector
this one
its works with rust and valo
sorry
cpp is a shity language.
but its not that hard to read
at work we just call them CRs - as in Code Reviews lol
@whole bear hey
Hi i need help with this code i am stuck here and dont know what to do i need someone to help me out if you can :
text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
encrypted_text = ''
print(char == "")
for char in text.lower():
index = alphabet.find(char)
new_index = index + shift
encrypted_text += alphabet[new_index]
print('char:', char, 'encrypted text:', encrypted_text)
print(char == "")
At the top of your loop, print the result of comparing char with an empty space. Use the equality operator == for that < ===== no clue of the question in exercise .
maybe they meant " " instead of ""?
(and "and the top" would anyway mean first line inside not line just above, I'd expect)
Alisa can you give me the code resolved
if you dont mind ?
me puedes dar el code resuelto ?
!e
text = "Hello World"
...
for char in text.lower():
print(char == " ")
...
@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | False
002 | False
003 | False
004 | False
005 | False
006 | True
007 | False
008 | False
009 | False
010 | False
011 | False
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/JBWPJYAL3ZX47MABCADTL7EMV4
Yo
Hi opal
can actually someone
give me my code but fixed pls
Hi i need help with this code i am stuck here and dont know what to do i need someone to help me out if you can :
text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
encrypted_text = ''
print(char == "")
for char in text.lower():
index = alphabet.find(char)
new_index = index + shift
encrypted_text += alphabet[new_index]
print('char:', char, 'encrypted text:', encrypted_text)
print(char == "")
At the top of your loop, print the result of comparing char with an empty space. Use the equality operator == for that < ===== no clue of the question in exercise .
@vast garnet ๐
@final laurel ๐
hello
!e py []()
@somber heath :x: Your 3.12 eval job has completed with return code 1.
001 | /home/main.py:1: SyntaxWarning: 'list' object is not callable; perhaps you missed a comma?
002 | []()
003 | Traceback (most recent call last):
004 | File "/home/main.py", line 1, in <module>
005 | []()
006 | TypeError: 'list' object is not callable
!e ```py
def func():
print('abc')
print(123)
func()
func()```
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | abc
002 | 123
003 | abc
004 | 123
!e py my_list = list() # my_list = [] print(my_list) my_list()
@somber heath :x: Your 3.12 eval job has completed with return code 1.
001 | []
002 | Traceback (most recent call last):
003 | File "/home/main.py", line 3, in <module>
004 | my_list()
005 | TypeError: 'list' object is not callable
!code
!e py drinks = ['coke', 'sprite'] for drink in drinks: print(drink)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | coke
002 | sprite
!e py drinks = ('coke', 'sprite') for drink in drinks: print(drink)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | coke
002 | sprite
!e py drinks = 'coke', 'sprite' for drink in drinks: print(drink)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | coke
002 | sprite
!e py drinks = {'coke', 'sprite'} for drink in drinks: print(drink)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | sprite
002 | coke
(..., ..., ...) # tuple, but beware of other uses of ()
[..., ..., ...] # list, but beware of other uses of []
{..., ..., ...} # set
{k0: v0, k1: v1, k2: v2} # dict```
!e py things = print, [], range, 123, 'abc', min, max for thing in things: print(f'Is {thing} callable? {callable(thing)}')
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | Is <built-in function print> callable? True
002 | Is [] callable? False
003 | Is <class 'range'> callable? True
004 | Is 123 callable? False
005 | Is abc callable? False
006 | Is <built-in function min> callable? True
007 | Is <built-in function max> callable? True
import time
def wait_time():
for count in range(5,0,-1):
print(count)
time.sleep(1)
print('waiting for you', 'i will be right back! ')
print()
wait_time()
!e ```py
import time
def wait_time():
for count in range(5,0,-1):
print(count)
time.sleep(.5)
print('waiting for you', 'i will be right back! ')
print()
wait_time()
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 |
002 | 5
003 | waiting for you i will be right back!
004 | 4
005 | waiting for you i will be right back!
006 | 3
007 | waiting for you i will be right back!
008 | 2
009 | waiting for you i will be right back!
010 | 1
011 | waiting for you i will be right back!
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/JMG6HT47PJ2ERL2B5RGCZHHNHA
๐
!e py things = print, [], range, 123, 'abc', min, max for thing in things: print(f'Is {thing} callable? {callable(thing)}')
@echo hull :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | Is <built-in function print> callable? True
002 | Is [] callable? False
003 | Is <class 'range'> callable? True
004 | Is 123 callable? False
005 | Is abc callable? False
006 | Is <built-in function min> callable? True
007 | Is <built-in function max> callable? True
!e
for Object in Object :
print(f'is {object} callable?
{Callable(object)}')```
@echo hull :x: Your 3.12 eval job has completed with return code 1.
001 | File "/home/main.py", line 3
002 | print(f'is {object} callable?
003 | ^
004 | SyntaxError: unterminated f-string literal (detected at line 3)
hey ,
I am having trouble setting up react in vscode can somebody assist
@viral oak hello
hi
how are you doing
yup
i hear you loud and clear
i want to setup react
np
how are you doing today
i am aslo fin
yeah but i sitting in quite a silent room and i don't wanna disturb it
javascript
along with basic html and css
@somber heath hello
how are you doing
JetBrains
@carmine spruce ๐
๐
@whole bear ๐
What're you up to?
@somber heathi can't speak I don't have permission
Probably.
I cant talk
I think I finally "got" probability on my third exposure
Bayes nets? ๐
@peak depot chill bruh
@whole bear which linux dist should be best in case of having features and customization ?
channel name?
@peak depot where did that guy go lol?
"modful dev"
Recorded live on twitch, GET IN
https://twitch.tv/ThePrimeagen
Original: https://www.youtube.com/watch?v=mSUNnCwj1WY
Author: https://www.youtube.com/@else1f
MY MAIN YT CHANNEL: Has well edited engineering videos
https://youtube.com/ThePrimeagen
Discord
https://discord.gg/ThePrimeagen
is anyone stopping me from naming my future child to "x86 assembly"
LETS GOOOO
well
what if i want to
"minecraft java edition"
"gcc compiler error"
would be very interesting on a resume.
yeah
i love tokyonight color schemes
wha
i didnt hear sorry
partylite
yeah fair
personally i dont really like gruvbox
nvim
but i really like vscode
yeah
i wonder when noodle (my ball python) is gonna shed
what font do you guys use?
i use jetbrains mono
(with nerd font btw)
i just tried out leetcode and man its like a whole new world
do you guys have any tips on how i can tackle this because i wanna get better but i dont know how to tbh
give up (jk just keep going and use your brain)
You are not my fav swede
nuh uh i am
Think again
Good morning
!stream 710856373675491381
โ @scarlet halo can now stream until <t:1704811807:f>.
You've got white hair?
!stream 528333061964824576
โ @surreal grove can now stream until <t:1704812197:f>.
blonde/white
ok so i was cooking and tried to my brain
but vsc is saying that "self"is not defined:
nums = [3,4,2,1]
val = [2]
self = removeElement(nums, val)
self.count = nums,val.index
return self
print(self)
@scarlet halo try ctrl u in normal mode
!stream 702070661623054336
โ @viral oak can now stream until <t:1704814737:f>.
!stream 710856373675491381
โ @scarlet halo can now stream until <t:1704815170:f>.
Welcome to my Channel. This channel is focused on creating tutorials and walkthroughs for software developers, programmers, and engineers. We cover topics for all different skill levels, so whether you are a beginner or have many years of experience, this channel will have something for you.
We've already released a wide variety of videos on to...
what does starring a repo mean? what does it signify?
Erm, just a way of saying you like the repo.
!stream 717749310518722691
โ @whole bear can now stream until <t:1704816181:f>.
hi
!stream 710856373675491381 1h
โ @scarlet halo can now stream until <t:1704819547:f>.
can anyone here help me find a computer intership program
im located in massachusetts
You can have multiple windows in the browser ยฏ_(ใ)_/ยฏ
Erm, I was reading, but now I'm playing a game
The Witness
It's like a puzzle game
Yeah it's pretty good, but playing for more than like 20 minutes gives me a headache unfortunately :(
๐
Nah it's because it's a first-person game
Idk why, but I can't play those for very long
Something to do with field of views probably
What're you up to Rabbit?
I've put it up to max
That seems to help a bit.
Hey
it's not the oop that's annoying .. it's the design patterns
Err, 120
!stream 789885479226179594
โ @torpid bolt can now stream until <t:1704819852:f>.
@torpid bolt You've got a typo in your __init__.
self.name = name
self.year = name
Milien
if u wanna learn python I recommend this: https://programming-24.mooc.fi/
Learn the basics of programming with the Python programming language. The focus of the course is on programming, and you will learn how to write programs and understand how they work. For example, the basics of algorithms, control structures, subprograms, object-oriented programming are covered. The course is suitable to anyone who wants to lear...
@eager thorn While loops again
break
DSA?
dsa?
Data Structures and Algorithms
bubble sort
the link is for basics of python
i have several books on those
sec
ebooks?
yes
I donยดt know if the have that pesific but here are all the courses: https://www.mooc.fi/en/courses/
.topic
Suggest more topics here!
Change topics please
can't seem to dl books off ipfs
Yep ๐
nope, talking to a client.
based
jetbrains taking too long to approve my alma mater
i took a licence
via Document
just the id from the uni and some info about me also the uni email
i thought about switching from VSCode to Jetbrains products but haven't looked into it much, don't know what I'm missing out on. or the difference, or how different linting is setup. cause VScode was pretty self-explainatory.
thats it i got 4 years renewal licence
i need help downloading pythorch, this would take like 3 minutes but i cant speak in vc ;/
what do you mostly do
Python kick lately. used to do front end web dev but haven't messed with it in so long.
anyone down to lend a hand?
Python was my first language 7 years ago so, it's been home to me.
just paying for it would be the issue currently.
its FREE
clion is probably the only one i will ever use
get good at coding, crack the software, code on the software
@wise loom here we go again
but idk what a command is
skill issue
can we reffer a commad as statement?
community eddition is forever as I know
w/e satisfy you
@left leaf what i was trying to ask was, from vscode i've used pylance and ruff for stuff like linting and etc.
brb pc restart.
vimwiki
!e
class Student:
def __init__(self, name: str, age: int, favorite_subject: str):
self.name = name
self.age = age
self.favorite_subject = favorite_subject
def __str__(self):
return f"Hi, my name is {self.name} and I am {self.age} years old!"
sally = Student("Sally", 7, "Math")
print(sally)
@rugged root :white_check_mark: Your 3.12 eval job has completed with return code 0.
Hi, my name is Sally and I am 7 years old!
!e
class Student:
def __init__(self, name: str, age: int, favorite_subject: str):
self.name = name
self.age = age
self.favorite_subject = favorite_subject
sally = Student("Sally", 7, "Math")
print(sally)
@rugged root :white_check_mark: Your 3.12 eval job has completed with return code 0.
<__main__.Student object at 0x7fad42be3a40>
!e
class Student:
def __init__(self, name: str, age: int, favorite_subject: str):
self.name = name
self.age = age
self.favorite_subject = favorite_subject
def __str__(self):
return f"Hi, my name is {self.name} and I am {self.age} years old!"
sally = Student("Sally", 7, "Math")
print(sally)
print(repr(sally))
@rugged root :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | Hi, my name is Sally and I am 7 years old!
002 | <__main__.Student object at 0x7ff5743cfdd0>
!paste
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 Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
import tkinter as tk
app = tk.Tk()
app.title("Simple Gui")
label = tk.Label(app, text = "....")
label.pack()
app. mainloop()
class Car:
def __init__(self, name, year):
self.name = name
self.year = year
cars = Car("LEXUS",1989)
cars2 = Car("HONDA",1970)
print(cars.name)
print(cars.year)
print(cars2.name)
print(cars2.year)
In Modular mojo, is python variable still iterpreted or Dinamically loaded or is compiled first?
!pypi pytest-mock
Ruairi Mcsorley, a young Irish lad was interviewed
during a typical news broadcast about the weather conditions in his town in Ireland. What he said next is brilliant, and made him the โFrostbit boyโ.
Original Video: https://www.youtube.com/watch?v=n2gZ32TAgtc
Want more accents?
Does This Cat Have a Northern Irish Accent? https://youtu.be/tL...
I am solo survival camping in Alaska with no tent so I am building a survival shelter and a bushcraft cot to sleep on. So I am going to be testing whether I can heat my cot with hot rocks. I am also going to be doing some campfire cooking while I am at it.
Check out our camping video playlist
https://youtube.com/playlist?list=PL5EGD6MqjI6IASMa...
FINNISH HIM
Extreme Winter Camping at (-60F/-51C) alone with my 4 year old son in our hot tent. The extreme cold tests all of our gear and makes everything difficult. But we had a great time and made some amazing food.
Check out our camping and adventure playlist
https://youtube.com/playlist?list=PL5EGD6MqjI6IASMaBDLcSgJbjtn8XEwkE
Out tent is the Arctic ...
what are we talking about ๐
i truly apolgize if ya'll heard any of that @rugged root truly.
All good
is JAVA still BIG and BLOATY
AI takes 30 seconds to learn your voice pattern ... and sounds better
nice
Good for it

Hemlock bot spawned all over - mm you get paid royalties

coffee_jitter mmmm good coffee ....
good soup
siamese cats dont meow proper .... need a rebate
Mine? ๐
yeah
Thanks!
np
anyone use GPT to write some test code in.... python OR other
@stuck furnace how long have you been coding for
I've toyed with it a bit
Seemed fine
ya i have to set up some test bits in python , SPIN , 32 bit asm , ...... bla bla
i wazz told by a JAVA programmer not to bother with GPT since , JAVA writes itself .......... ba dum boom
what do you want to do when you want to grow up @raw carbon
why not make RC planes its boyish , yet people spends $$$$$$$$$$$$$$$$$$ on it
they cant control themselves
mmmmm can blast off rock in back yard
if on a farm?
first coffee ---- im tryin
Erm, since about 2012 I think.
@idle vector when you keep saying "bro's" it reminds me of this
https://youtube.com/watch?v=GYyLU7_E9QE
Tiktok commenters are the life force of future civilization.
NEW SHIRTS:
https://www.leaderincorporated.com/
ONLY AVAILABLE FOR THE NEXT WEEK!
Roomates:
@BlakeRosier
@cerspence
filmed be: https://www.instagram.com/jake.d.jackson/
JOIN THE PATREON FOR EXTRA CONTENT:
https://www.patreon.com/ryantheleader
SOCIALS:
Instagram: https://www.ins...
mmm engineer can develop new RC tech , side huzzle
@stuck furnace nice
did you see those new GIANT RC planes made of aerogel ?
youre a giant rc plane made of aerogel ๐
sony discman has a buffer to prevent skips - kinda cool
@rugged root kotlin ? what prompted this .... hidden advaned features ??
Wait, MADE of aerogel?
ya .... SUPER LIGHT , yet strong , they fly it indoors
what is outside ?
creator of Napster "outside is overated" , actually said it
!stream 702070661623054336
โ @viral oak can now stream until <t:1704830989:f>.
tiny script on vid ... too much work to solve
๐ Sherlock Holmes New Stories read by Benedict FULL Audio Cumberbatch FULL Detective Audiobook1
๐ SUPPORT THE CHANNEL ๐
https://www.patreon.com/BooksToRead
benedict cumberbatch sleep story
benedict cumberbatch reading poetry
sherlock holmes audiobook 1
sherlock holmes audiobook hindi
sherlock holmes audio drama
sherlock holmes audiobook bangla
b...
may not be him
yes AI is actually that good .....
stephen hawking ( i'll be back )
wtf ๐