#voice-chat-text-0
1 messages ยท Page 297 of 1
I did an online course on it way back, but I've forgotten pretty much all of it.
If you like, I'd love to help you refresh.

I have a feeling you'd be an absolute beast.
If you remember linear algebra, trigonometry, and probability theory, you can refresh on it in two weeks.
It's same as learning a programming language, you can learn the fundamentals and basics really fast, then you can get an intuition for it and how to express problems quantum mechanically as you use it more and more.
Nah. I don't feel like I really have much need for it. And I'm trying to learn Italian currently which is using up like 90% of my brain power ๐
Gotcha.
Ba bye!
Mine eyes have seen the glory of the coming of the Lord He is trampling out the vintage where the grapes of wrath are stored He hath loosed the fateful lightning of His terrible swift sword His truth is marching on Glory, Glory, hallelujah! Glory, glory, hallelujah! Glory, glory, hallelujah! His truth is marching on I have seen Him in the watch-fires of a hundred circling camps They have builded Him an altar in the evening dews and damps I can read His righteous sentence by the dim and flaring lamps His day is marching on. Glory, glory, hallelujah! Glory, glory, hallelujah! Glory, glory, hallelujah! His day is marching on I have read a fiery gospel writ in burnished rows of steel "As ye deal with my contemners, so with you my grace shall deal" Let the Hero, born of woman, crush the serpent with his heel Since God is marching on Glory, glory, hallelujah! Glory, glory, hallelujah! Glory, glory, hallelujah! Since God is marching on He has sounded forth the trumpet that shall never call retreat He is sifting out the hearts of men before His judgment-seat Oh, be swift, my soul, to answer Him! Be jubilant, my feet! Our God is marching on Glory, glory, hallelujah! Glory, glory, hallelujah! Glory, glory, hallelujah! Our God is marching on In the beauty of the lilies Christ was born across the sea With a glory in His bosom that transfigures you and me As He died to make men holy, let us die to make men free While God is marching on Glory, glory, hallelujah! Glory, glory, hallelujah! Glory, glory, hallelujah! While God is marching on
p5.js a JS client-side library for creating graphic and interactive experiences, based on the core principles of Processing.
oofy doofy
i have 8gb of ram and 4gb of swap
on my mac rn
i have a remote PC for testing
my mac is a glorified SSH box
but it needs good ram, cpu, wifi etc since i would be having calls and searching and having tabs (a lot)
tabs for my mac (for 1 window - this is for school only, ive closed my coding stuff alr)
lmao "savemyexams" im fucking panicking for physics lmao
things i think would need compute (quite a bit)
- 3d modelling
- video editing
- any sort of simulation (eg ray tracing etc)
- ML (if you want to test locally)
- having video calls + lots of tabs + many code editors and running terminals
- gaming
but on my machine has 48gb ram
for my remote server with gpu
my server is like
ryzen 5600x
48GB ram
512 GB storage
gigabyte 4060ti 8GB
shit shit case + rgb disabled since i have my server activated rn as we speak
i built my own lol (technically no i picked the parts)
but i have a shit budget
my case
brand is jonsbo
unheard of chinese brand
@frozen owl Why do you have a server?
i use it to test my ML stuff before i actually deploy it at large
What kind of ML stuff?
@verbal zenith https://roadmap.sh/guides/random-numbers
One of the fastest method, for getting up and running with Kali Linux is to run it โliveโ from a USB drive. This method has several advantages:
Itโs non-destructive - it makes no changes to the host systemโs hard drive or installed OS, and to go back to normal operations, you simply remove the Kali Live USB drive and restart the system Itโs port...
@somber heath 
My chest / neck area has scars.
But it was so recent.
I don't think it should be dried out already.
At least it doesn't hurt 
Just itches.
Ahh, just a problem.
Last year's Australian Informatics Olympiad.
Morning Opal
All good.
Morning Frie
Hey.
I just felt a rush of euphoria
Your voice is so soothing.
And the thought made me tingle.
My parents turned off the wifi yesterday. That's how controlling they are.
Iยดm wathing RuPauls drag race s16 new episode so not gonna come to vc now ๐ฑ
That's okay.
I'll be here for a while.
I'm alone at home ๐
Micro tears?!
Ouch
I have a lot then.
I'm listening to Linkin Park as we speak 
Yeah.
I'm turning up my Linkin Park as we speak.
Let's see if it does anything.
Nah, I put it at 10%
So I'd like to try increasing it.
That's usually because I prefer listening to your voice.
It hurts 
Linkin Park is loud though. So it makes sense.
Silhouette is a better song for this.
I don't even watch Naruto. Or whatever this is from.
The last two musical kicks I was on included Fish in a Birdcage and Dirt Poor Robins' Queen of the Night album.
I have sacred choral roots and though not religious went to such a school, so things like https://www.youtube.com/watch?v=OPlK5HwFxcw do it for me, too.
Piotr Illitch Tchaikovsky (25/04/1840 - 25/10/1893)
Orchestra : The USSR Ministry Of Culture Chamber Choir
Conductor : Valery Polyansky
Album : V/A - Sacred Treasures - Choral Masterworks From Russia
Label : Hearts Of Space - 1998
I can't say the same of the more contemporary/modern stuff, though.
It's fine. It was because I ruined it from too much pressure difference on a plane.
Should be fine before my next flight to Syd.
Joe Keery's music has a weird feeling to it.
Quote unquote "psychedelic."
Provided to YouTube by Epic
Hurdy Gurdy Man ยท Donovan
The Hurdy Gurdy Man
โ Originally released 1968 Sony Music Entertainment Inc.
Released on: 1968-09-01
Producer: Mickie Most
Composer, Lyricist: D. Leitch
Auto-generated by YouTube.
Henning May's voice intrigued me when I first heard it.
He looks like a young adult but sounds like he has white hair experience.
Especially in the Tom's Diner song https://open.spotify.com/track/0oA9wBGDY4uyILLg4GymWP?si=a785d4d8239542fd
"Blackstar" by David Bowie
Listen to David Bowie: https://DavidBowie.lnk.to/listenYD
Watch more David Bowie videos: https://DavidBowie.lnk.to/listenYD/youtube
Subscribe to the official David Bowie YouTube channel: https://DavidBowie.lnk.to/subscribeYD
Follow David Bowie:
Facebook: https://DavidBowie.lnk.to/followFI/facebook
Instagram: https://...
That!
What is that voice?!
Bowie and his magic tricks again.
Advertisements can be quite headache inducing for me.
Anything can give me stress.
Yeah. Third parties are annoying
Sitting for too long in awkwardness makes my heartbeat ๐ ๐ ๐ ๐ ๐
hi
Ahh what?
Ahh... Aussies.
heh
Aussie.
@lone wadi
oz
AUZZIE
Aussie aussie aussie, OI OI OI
Ahhh yes.
How to annoy non-Aussie's 101
Exactly.
Ahh
What
Typing slow 
Today... it's Saturday?!
Ahh.
Weekend period. Hemlock hibernation.
I feel dirty. Because everywhere itches.

@austere hill๐
I have < 50 mesages just here to listen :)
if im causing any problems ill leave
You're not.
ahh
fat fingers
I see.
huh
It seems like a mistake that'd occur when rushing

I left but I came back 
@whole bear There really isn't a need to leave PyDis.
I'm not even lying, I don't even program anymore
The more you talk about leaving, the less impactful it is.
That's just how it is 
I kinda just left. Then realised how much this place meant to me.
Cya!
@dry jasper hello
how are you doing buddy
black or milk one
doing fine
just doing some prep wrk before actually getting started doing anything
no like resoponding to daily emails checking on my team
setting up files e
etc
etc
yeah
cool
yeah i know we need to get relaxed before again starting
i do the thing in a similar way but differently
i will work continusly until i get burned out like 10-12 days
and then take rest for say a day or two
mornin
@undone idol hello
hows going
it wrks for me
going good
@dry jasper so what project are u wrking on
like the privates one
oh
so i guess you are using js,html,css
oh so you are doing it as a businees
yeah i have used it
and i worked with someone doing there business also
so are you wrking alone on this venture or with a team
oh can i see the website please
the thing is that we all have come from that point or will have to pass it
so which lang is this
and i guess you'll create another page for selling it
can i give you an advice
tell me one thing you must have more sku
more products
ok
first the news you have added
instead of adding 4 in a row
do 2 in row instead and increase the size
also the text you can do so that it appears once someone hovers on the image
do like 3 article and 2 news
cuz to add the text in the image itself you'll need spave
yeah that's what i said to change here
lemme show you an example
no you don't need to hire someone
you just need to ask your doubts
and i can help you if you want
@earnest crag
some thing like this
it can be done in spotify also
@verbal zenith good morning
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',

Hello people.
Yup
Uhhmmmm...
Who was that? I was venting ๐
Uhh
Apologies
uhh
I feel better than yesterday
But that's not any better.
Yesterday was head banging on floor bad.
Today is head bashing fist bad.
If you do {}, it won't be a set necessarily.
If it's empty, it's always a dict.
!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.
try:
return self.messages.get("commands").get(command_name).get("messages").get(message_key)
except Exception:
try:
return self.messages.get("messages").get(message_key)
except Exception:
return None
"commands": {
"avatar": {
"description": "Shows your avatar",
"args": {
"mention_member_arg": "this description is overritten"
},
"messages": {
"avatar": "This message is overritten"
}
}
},
"messages": {
"avatar": "Hello"
},
result = self.messages.get("commands", {}).get(command_name, {}).get("messages", {}).get(message_key, None)
if not result: return self.messages.get("messages", {}).get(message_key, None)
hi @wind raptor
Hey bud
Heyo
go to cybersecurity
you will suffer even more than AI but you will be fighting for the right cause and get paid for it
well unless you end up in an Israeli company that manufactures breach software to sell to governments
@obsidian dragon better for what?
mistral?
oh
mixtral uses that multiple experts architecture type shit like GPT-4 (supposedly) does
verifies input with multiple "experts" depending on the context/intent
idk about llama
@dry jasper mens
@bot.command()
@commands.is_owner()
async def say(ctx, *what):
await ctx.message.delete() # Delete the command message
await ctx.send(what)
Mistral is top goat though
how are you doing
good to hear
how about you
hows little animmo
@still herald do you have @wind raptor muted?
No
still on the grind
he is good to
noice
what topics are you grinding on?
Why
still backend stuff
just asking
node but building websites as much as i can
No, why?
just asking
i am working on a shopify website
good shit
German
@gray flint ctrl + D
yeah sounds familiar
@still herald yes
@still herald did you need code help>?
the shop still looks ugly
Yeah
Nothing, just saying hi
hello ๐
show code and error
!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.
@wind raptor hi
@gray flint bot.polling() catches exceptions internally to keep the bot running
explain further
That I wanna be good at DSA
what is DSA
Data structures and algorithms
guys anyone have study material for data science?
how can we help you get good at data structure algorithms
Are you looking for tutorials
@gray flint https://pytba.readthedocs.io/en/latest/sync_version/index.html#telebot.TeleBot.stop_polling
Synchronous pyTelegramBotAPI documentation
Try calling this API instead of sys exit
solve problems on leet code etc
@gray flint line 24, replace sys.exit(0) with bot.stop_polling() to gracefully exit
I do but they're so tough
maybe start with python basics
!resources @still herald
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
@gray flint @wind raptor There is also an infinity_polling method: Wrap polling with infinite loop and exception handling to avoid bot stops polling.
yes
git clone ssh://root:root@IP:PORT/home.git why this is not working?
error:
ssh: Could not resolve hostname IP:PORT: Name or service not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
try other websites like Codewars etc
You've basically done this
oh
@peak depot Forgot to mention,
happy 5th birthday to your cat :v
(2 days late but better than never)
look at that comedic timing
He says ty!

@somber heath ๐
ho opal
Milien I always use mask ๐ I lpooks like a ninja ๐
I am a face recognize software professional ๐
Basicaly Mask is to save Other.
But if you not wearing mask and walking front of me I know your name ...
we already have software from 3 years ago to detect faces with or without a mask
thats how iOS face detection with face mask works too
Trust me if u wearing a black mask with hoodie that not true
You mean a face mask or surgical mask?
Like full face?
just black surgical mask + hoodie
If 3 years ago we managed to do it with simple masks, imagine the available software today
We have tools that can predict your movement as soon as you walk behind a wall
@eager tapir probably my company has the world most advance frs so I know what I talk about.
Sorry but, I've seen all types of mask able to be removed with state of the art DL techniques from 2+ years ago
Countries like China especially have a lot to do with face detection, and is one of the countries with the highest mask users in the world
I prefer to not talk more about that topic.
If there is a problem with being able to detect people with a black facemask (like during Hong Kong protests a couple years back), they didnt just stop
๐คทโโ๏ธ just dont want others believing they become invisible to big brother just by wearing a black mask and hoodie
@bitter knoll ๐
hello
What is the pattern?
No you not invisible ๐ If you do some bad that not defend u. But If u step to the shop you not get the spam to your phone.
Oh man!,, I can't turn ON my microphone,
people with a bio?
umm, I see
I have to complete some tasks, then I will be able to do so
You guys do python everyday right?
Typically. Not always.
Nope, just 10 days a months ๐
I am new in PYTHON, so,,, I thought, I will be learning from your guys
๐๐
This is a good server for asking questions.
Well, you see, I doesn't belong to such environment where I get some knowledge and helpful informations stuffs
about programming
"New York ended the use of money bail and jail for most cases involving misdemeanors and lower-level felonies" https://www.brennancenter.org/our-work/research-reports/facts-bail-reform-new-york-how-pretrial-detention-and-release-works-now#:~:text=In 2019%2C New York ended,in the subsequent legislative sessions.
rdr2
I am 18, just passed class 12
@Ankit You did any code before ?
I can't determin my age as I am not an AI
@Ankit that a good start https://www.youtube.com/watch?v=spXdDP7J0TA&list=PLIrsP8dft12CSv-KEbiXq21JmR3LUr854
I am a free person prefer not to say ๐
alright, no prob
As an AI I do not have permission to talk about such topics
@obsidian dragon , it's an AI ?
I am not an AI, I can't help you
@obsidian dragon I don't know I developing AI. Every body say I am an AI ... But no one said that to my systems
funny
(^///^)
@obsidian dragon are u sure is a good idea to talk about that on discord ?? ๐
Osyra has no filter and most of itยดs not true ๐
The microsoft forgot to pay the hotmail.com some 25 years ago.
and the port was 3306 ??? ๐
I am sorry to say but ๐
501 was the hacker
I am not a hacker ... I am just a small software developer
@sonic pecan ๐
Well, the port is open that's just one thing. Most of the web server sql ports are open... However, the mysql has its own method to defend itself.
https://www.postgresql.org/docs/current/auth-methods.html
https://mariadb.com/kb/en/authentication-from-mariadb-10-4/
https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_connection_phase_authentication_methods.html
So to be hacked in that way needs more than 1 mistake.
Sorry took some time to search the links.
She said YES??!?!
Subscribe: https://bit.ly/SubscribeToLucasAndWalliams
Welcome to Lucas and Walliams, home to the all the best moments from comedy duo Matt Lucas and David Walliams! We are going to be sharing iconic moments from Little Britain, Rock Profile, Come Fly With Me, along with many other appearances and skits throughout the years. Su...
@rapid chasm Can u check your packet loose?
why i can't open my mic?
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@sonic pecan ^^
tks bro
I love my internet provider... Just funny :
@warped robin ๐
Its green !! ๐ No broadband service. Ohh your wifi is of that's should be the problem...
@clear tiger ๐
@novel basin ๐
well rdr2 is western GTA ๐
I feel like old person ๐
@untold bane ๐
Hello opalmist
its a state
I booting op my gta
65 ??? ๐
hmmmm
I do a lot ๐
I loose a lot ๐
can you sing a song
See you in hell, Haribo Sugar-Free Gummi Bears
That common sweetener side effect is the gas issues and the dearie.
Just ask
๐
@winter I cant speak ๐ I am not 3 days old in here ๐
What kind of pet ?
Lost humans speak with pets. I mostly just eat them.
u eat pets?
Yes but, I do not eat my friends.
@still herald Are u lonley ?
we only talk crap when programming
@still herald U really need a lover or a boyfreind girlfreind
@winter I cant help that...
@still herald Give me a link may I can help
@upper basin is that building/floor/class?
@still herald This is an evil channel ๐ no one help u ๐
Beg your pardon?
your name
Building A, floor C, room E07
thats how our classes were referenced in uni
@still herald My wife wish I talk more about programing than I talk about other thing ๐
@still herald you can use pastebin
@still herald do you have github ?
BeautifulSoup
That not so Beautiful ๐
No.
what happened 2015 ?
๐
๐
!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.
who can speak vietnamese ๐
@upper basin are you studying in your final year?
Ah no, thankfully.
Well that I cannot agree
aight
Im here
Looks like ๐
I do not think the dataframe is python related
Is represent in python as well but is not a python definition.
Rome ?? ๐
lol
pp
hi guys
@safe tartan
i have a script that includes imadges.. and for example to open them it need to go to the file for example (r"C:\Users\havoc\Desktop\cool") to get the image but when people just download the executable of it when its done how will they be able to use it
because that shits defferent
and they would need to have the image on theyre pc
@stark river
@golden delta Usually its not recommended to do this as the size of the executable can dramatically increase from the images alone.
The common practice is to upload your images into something like an Amazon S3 bucket and then point to the URI of that uploaded image.
so that instead of the actual image it opens basicly a website with the image or smt allong the lines of that
Yes, basically
This can have some issues of its own such as the app "downloading" the image every time they come across it, but this can be solved with some basic caching
whats "caching"?
It is a technique used to store frequently accessed data or resources in a temporary storage location so that they can be accessed more quickly in the future; in our case, we want to temporarily store the image in "cache" so that it can be accessed from storage instead of downloading everytime
If you're doing a small scale or personal project, its not that important
i have a feeling that will take me while to figure out
You'd be surprised
Basic caching can just be convert the image into a format that can be stored in storage, and thats it
okayy
When user is in the area of the image, it checks:
if local_storage.has('image'):
return local_storage.get('image')
else:
<convert to format that can be stored and store>
Basic pseudocode but I hope the idea gets across
and how can i link images to links and make them load in my program
btw im usking tkinter
this is it rn
OUTPUT_PATH = Path(__file__).parent
ASSETS_PATH = OUTPUT_PATH / Path(r"C:\Users\havoc\Desktop\Hydwa")
def relative_to_assets(path: str) -> Path:
if path == "hydwa.png":
return ASSETS_PATH / path
else:
return ASSETS_PATH / Path(path)
I think there are various providers, I would use Amazon S3 Bucket but there may be better alternatives (you should search for them)
Actually you may first want to check how to display an image with tkinter
: D
Personally, I use TS/reactive-based frameworks for developing UI interfaces ๐
Yes, some TS frameworks such as Electron (based on React) also help in developing desktop applications
tkinter is ๐คทโโ๏ธ
What kind?
bc smh since i showd them a lil .vbs script of mine that just opens notepads until your pc crashes they wanna give me money for shit like that
lmao
they think theyre hackerman
lol
never even considered anyone caring
there are always customers, you just have to find them
yea
no starch press has some good books on this kind of stuff, with Python too
its funny after i realised people actually liked them they just started running up to people and advertising for me and more kids came LMAo
people r wierd
idk why they want that stuff
I guess it's cool
some of it is literally 3 lines of code
But you should try avoiding doing this kind of thing for money
Especially since it can get you in serious trouble
do
msgbox "Take da L"
loop
What operating system are you using?
yea it was just like "oh thats cool i wwant that" "um im not really trying to give to people" "here 5$"
kinda was not thinking
just paste that in notepad and save it as whatever.vbs
it opens window where it says that or whatever you wanna put into the ""
and when you close it it just reopens
all you need to have is a windows operating system
vbs = microsoft visual basics
you can close thew task manager or restart pc (dont do thta)
How long have you been playing around with this kind of stuff?
i got into that when a friend i met here showed me some of that and i thought it was cool asf and didnt need a whole base of knolage and be converted to an exe like python
maybe a month
its just so simple and enjoyable
and funny
You can check this out: https://nostarch.com/black-hat-python2E, but it may be a little high level if you're just starting out
yea been coding for like 1.5 months
Still, it can open the door to more opportunity
dont wanna be a blackhat
It's for educational purposes
Cybersecurity teams learn this to know what to expect
If you know how to create them, you know how to defend against them
It's how you apply this knowledge that determines whether you're white, gray, or black
You can find an exploit in the Google servers by creating some bot that penetrates through their security. If you tell them about it, you're rewarded with big $$$ and maybe a job offer, if you don't and youre caught, GO TO JAIL
fair point
its all abt not being cot
Then learn about OS like Tails, QubesOS, and Tor
ARE YOU OUT OF YOUR MIND YOU THINK I HAVE MONEY LIKE THTA???
omly ever heard of tor
You gotta think out of the box
ion got no 35 or 40 dollerunies
is there a s1 bc that says s2
how long have you been coding python @eager tapir
Don't know
I have an on-off relationship with it
My main love is TypeScript, you can do almost anything with it nowadays
whats that?
I use to do web scraping and data analysis with Python since 2018
dman
Superset of JavaScript
JavaScript but typed
@golden delta Did you get the book?
i dont have 40 dolla
...
Check DMs
And when you do get $40, however and whenever, go buy the book and support the author
@golden delta Also, just another word of advice
If you ever want to learn something, I heavily recommend doing it through books rather than online courses or videos
They have way more information, and were written by people who have been programming more years than you were alive
It's the fastest way to become knowledgable and an expert
(other than continous practice of course)
thanks man i wont forget your words
i watched to many reals n shit need to get my attention span back
books = longer attention span
stay in my dms
Sure thing
What stuff can you do with TypeScript that you can't do with Python? ๐ค
Easy SSR websites
web animations
native device applications
its more cough performant cough
native? typescript?
it compiles I suppose technically
but I imagine there's python packages that can compile your code into JS as well
What did you want to stream?
As I leave in India me and other moderator times do not match to be online at same time. Many tymes it is hard to explain the problem in the code of mine or showing answer to other.
I can't show the problem to other neatly.
hiii
Sorry, I cannot grant permanent streaming if I don't really know you well.
You can ask @somber heath and other which are online at the same time as me.
Sorry, that's not how that works.
@plucky mica Do you have a Python problem/question?
Yes but I can talk after the 11 o clock.
At that time there will be no way I can get the permission.
A mod has to be present to monitor the streams though. There have been many bad actors in the past
Unless we know a user really well, we do not give out permanent streaming rights
There is no one at that and after that time for a long.
Why it is not that much deal.
If you have a Python problem, post the problem in here.
Plz
It's a hard no for any situation.
We can either try to help you or direct you to somewhere you might be able to get help.
It is to big it is hard to explain it for now.
What role should person have to give me permission for the streaming. Means who else can give it to me when I was online.
Voice-regular Moderator-level users and above.
Mods and admins
There is no at time when I am online plz understand my problem and give me the permission.
I cannot make any exceptions. I have had no interactions with you except for this.
I think we have a long ago.
Why do you want to make a exception.
To whome.
Describe your problem. Make the explanation short.
Headline, not detail.
What are you doing?
Ok ot is about the c/python api using ctypes I want to make a iteratior.
Using tab to text with you. And get the permission of the streaming.
THAT'S SOO COOL MAN๐ฅ
thanks :3
Can you give an example of what you mean?
I can give after words. I can't do it for now.
Have you had a look through the ctypes documentation page?
!d ctypes
Source code: Lib/ctypes
ctypes is a foreign function library for Python. It provides C compatible data types, and allows calling functions in DLLs or shared libraries. It can be used to wrap these libraries in pure Python.
Yes I read it whole.
It can only get the functions.
I manage to get the class.
But not the iteratior front the cpp to py.
you can just wrap a cpp function into a python iterator?
I asked ChatGPT for an example and here's what it gave. It might not be runnable (haven't tried) but general idea seems to be there? Use at your own risk
ChatGPT
Creating an iterator using the C/Python API with ctypes involves a few steps. First, you'll need to define a C function that implements the iterator protocol. This function should return the next value in the sequence or raise StopIteration when the sequence is exhausted. Then, you can use ctypes to call this C function from Python.
Here's a basic example:
#include <Python.h>
static PyObject *iter_next(PyObject *self, PyObject *args) {
static int count = 0;
if (count < 5) {
count++;
return PyLong_FromLong(count);
} else {
PyErr_SetNone(PyExc_StopIteration);
return NULL;
}
}
static PyMethodDef mymodule_methods[] = {
{"next", iter_next, METH_VARARGS, "Return the next value in the sequence."},
{NULL, NULL, 0, NULL} /* Sentinel */
};
static struct PyModuleDef mymodule_module = {
PyModuleDef_HEAD_INIT,
"mymodule",
NULL,
-1,
mymodule_methods
};
PyMODINIT_FUNC PyInit_mymodule(void) {
return PyModule_Create(&mymodule_module);
}
This C code defines a simple iterator that yields integers from 1 to 5 and then raises StopIteration. Compile this code into a shared library (e.g., mymodule.so).
Next, you can use ctypes in Python to load this shared library and access the iterator:
import ctypes
# Load the shared library
mymodule = ctypes.CDLL('./mymodule.so')
# Define the iterator function signature
mymodule.next.restype = ctypes.c_long
mymodule.next.argtypes = []
# Create the iterator
class MyIterator:
def __iter__(self):
return self
def __next__(self):
result = mymodule.next()
if result == -1:
raise StopIteration
return result
# Usage
iterator = MyIterator()
for value in iterator:
print(value)
This Python code defines a class MyIterator that implements the iterator protocol by calling the next function from the C library. Then, it iterates over the values yielded by the iterator until StopIteration is raised.
Remember to adjust the C code according to your specific iterator logic and to handle memory management properly.
<end chatgpt response>
same idea though, you have the C function return some special value to indicate end of the iteration, and then wrap that function in python to make it iterable
I was figuring out this from the 2.5 HR from yesterday it is not possible.
If you want more specific help show some code with an example of what you want to do
there's limited advice i can give you if it's abstract
Ill do it in sometime I can't for now
alright
@wind raptor what is your name, plz understand my problem and give me the permission.
If you are ready to stream now, sure
You can stream while a mod is in the chat
How many hours from now youl be online.
1, maybe 2
Then I can't.
ยฏ_(ใ)_/ยฏ
Will you be online tomorrow after 5 HR from now at same time.
That is 5am for me.. so no
Just give the permission to me I will no do anything wrong.
No ๐ฒ๐ฒ
If you make a #โ๏ฝhow-to-get-help post, someone may see your problem and offer assistance.
You're more likely to get help if you write down what you're looking to get help with anyway. I'm not on voice chat much and watch streams even less frequently.
Provide a clear minimal example of what you actually want to do, with example representative C code and python usage
Tell me the time when you are online as per utm or my time in India.
why do i have to be online? just put it in writing and I can look at it whenever i have time
Not you, mindful dev
same thing with anyone, really
I don't know when I'll be on tomorrow. This server is not a 9-5 job for me. I'll be on when I'm on. I recommend just writing a good question.
Ok.
Your problem sounds interesting and I want to help; but you need to help me help you
๐
@somber heath โ๏ธ
Hello
Error "The default superclass, "javax.servlet.http.HttpServlet", according to the project's Dynamic Web Module facet version (3.1), was not found on the Java Build Path."
๎ฐ
probably should round off that float ๐
I take it your birth was attended by the International Horological Society.
i intentionally made it that specific
i called my mom and asked what time i was born lmao
"im 10 + pi years old"

i rarely use tuples ever
alternately you can you im 10 + pi[idx_start:idx_finish] years old, where the indexes are the decimal digits of pi
like since it's like fucking infinite
there must be a series of digits that match your exact age
yeah
and you update every time the page loads /j
well its just localhost for now
LMAO
๐
how did his server crash
take pi=3
HAHAHAHA
so i have no idea
this age updates every 10 ms
also how does a 13 y/o have 2500 customers? (talking abt superdev)
he says hes 16 as well ๐
wack ur wack
That's actually a pretty cool useless thing to display
yeah i know
I will steal this idea and use it whenever I make my own portfolio website
nice
What language and libraries did you use to make this?
pure html css and js
no libs
Wow, very raw, very nice
you think the website is ready to be published?
It is already better than 45% of the portfolio websites of frontend "experts"
quite down, don't let the others know... they will become afraid
true programmer drive
lol
actually pretty cool reference
soham did you join my google photos album?
Yes
awesome weather... i got rain ๐ง๏ธ ๐
I want to get in the Cybersecurity.
It Measing unperfection.
add some dust, scratch, etc.
It is Easy.
Wait a minut ill do it.
how do i make an operating system
by forgetting there is a world outside your room
python
my snakes
ball python
more fitting to call python
true
THIS IS A PYTHON SERVERRRR WHEEEEEEE
||rewrite everything in django||
||rewrite everything in rust||
what repo
I also Made a Coin in the 3D.
why cant i speak
You need to #voice-verification
@upper basin How Is my modle
Very good! Just need to shade smooth by angle.
You can talk bto
bto?
bro
Oh i just ralize
its easy
@upper basin Do not put that cat face in the 3d modle. You should moyfy thr texture image.
UV maping
Do not use mesh.
overlay the image on the texture of the coin.
means overlay that black image png on the png of the golden texture of the coin.
What is it.
coding question!
"bitch" - dog
In the world of dog training and behavior, few concepts have been as widely misunderstood and misrepresented as the idea of dominance. The "Alpha Dog" theory has been a staple in popular culture, yet modern research paints a different picture. Below, we'll explore 10 key ways in which the
ive had the same gaming chair since like 2018
that looks good alr
hometown bars
where you from
secret
but those bars were there
living in a soviet-era apartment complex block
good old days
playing downstairs, stepping over used heroin needles
doesnt sound quite like where im from but ok
North Europe?
no
East Europe
helloooooooo
East East Europe
heloooooooooooooooooooo
@rugged tundra you can get me for frontend*
@rugged tundra if its for one-time use, and dont plan on extending it, offshore work is OK
Otherwise, its better to have someone in-house
I work on everything
Frontend is my specialisation
@rugged tundra assume youre going to bump into the VC when you enter the elevator, you got 1-2 minutes to make it sound interesting enough for them to listen
Please don't ping the mod team to ask for streaming permissions.
If there's a moderator already present in VC, then you are free to ask.
You're the man, thanks for help @lavish rover
Next issue:
Im logged in as root...
@amber raptor https://www.youtube.com/watch?v=aWfYxg-Ypm4
Javascript programming language
Rust part soon on patreon?: https://www.patreon.com/ProgrammersAreAlsoHuman
JS Stack merch: https://www.redbubble.com/i/sticker/SATAN-stack-by-posix/160332098.EJUG5
Interview with a Javascript developer with Jack Borrough - aired on ยฉ The Javascript 2024.
more on Microservices.js by Krazam
Programmer humor
Java...
@amber raptor Serverlesslessness.
thanks to you ive binged watched this guy for about an hour lmao
watching his vids
funny as fuck
guys does anyone here know luau?
yes
now compare the high-level bearded man, to the other end of the spectrum.
people talking 1h about low-level instructions, x86 and micro-ops
https://www.youtube.com/watch?v=xCBrtopAG80
Recorded live on twitch, GET IN
Article
https://hackaday.com/2024/03/21/why-x86-needs-to-die/
Guest
My Stream
https://twitch.tv/ThePrimeagen
Best Way To Support Me
Become a backend engineer. Its my favorite site
https://boot.dev/?promo=PRIMEYT
This is also the best way to support me is to supp...
the washer-dryer and washer & dryer analogy at 27:00 is excellent, spot on
๐ ๐
i fuckin love programmers are also human, hilarious
hello
๐๐ฝ
im supressed so i cant talk
All good! If we're in VC we'll be watching this channel so no one gets left out
can i ask for some help?
@narrow verge ๐
hi
so i have to send in my project this wednesday and i cant seem to make it work. im not very expierieced, so i might not know what im talking about. but when i open my website right, and i press on my button that i made that should take me to something else, it doesnt work
@wild bay @dusk vapor ๐
in layout.html
that's a 404.. page does not exist?
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.
The layout.html.
the layout or my aboutus.html?
just put in on github and paste the repo here
Wherever you're putting the page link for where the About Us button should take you.
@winter spindle ๐
I don't see the About Us button here.
isnt it this one?
@jade sorrel ๐

RustConf 2018 - Closing Keynote by Catherine West
When youโre just starting out in Rust, you start by building small programs. As we all know though, medium and large projects can have very different, unique kinds of problems that smaller projects never encounter. As our projects grow in size, we need to be increasingly concerned about code org...
Where are you passing the reference to where the About Us button should take you?
So, when the user clicks on the About Us button, it should reference another html page right? So, where have you defined the reference?
As a Python Devs, We have Exprence to avoide the None more than the c or other langs.
NULL pointer exception.
@rugged root Can I Get the Permision for sharing screen for later.
No and take sazk perms away.
can we just ask this loud mouthed opinionated person to go away
Moral Sliderule.
this guy is toxic
@whole bear yes we do๐
could you translate that
Sorry for the delay, thought you left. Lemme check...
Saz are you learning c++?
I like the functions you've been writing (I remember the free fall one).
As Python developers, we have experience in handling None values more effectively compared to languages like C / other language Devs, making it easier to avoid null exceptions.
In fairness, what we're seeing on stream is a static editor screen that hasn't changed in the past 15 min
yes. i want to learn low level programming
Same. I am trying to learn c++ to translate my physics code to get it to run faster.
Looks fun hehe.
in more fairness, real programming is sitting and thinking about stuff.. it's not like hollywood "hacking" typing away furiously at the keyboard
I don't actively watch the streams, but I've checked his stream here and there, and it's had progress.
Yes, I'm aware of that. But with just the editor, we have no context of what you're looking up, your thought process, what you're wanting or trying to work on, etc.
I remember last time when he was doing free fall, looked really fun.
I'm fully aware of what the content is and how difficult it is to give a good stream
Honestly, I thought the stream was simply meant to either be code-related chill coding (like what Saz does), just sharing the screen, or to ask questions, or to demo a solve. I never thought it was a performance which should intrigue others to join in.
We rarely talk shop, so no one would even watch it even if it was a high level lecture or tutorial.
I get that, but like... there should be some idea of what the intent to work on is
It's just him learning C++. That's it.
I'm not saying stop
And sharing his screen in case people are bored and want to see what others are doing.
I usually watch his stream when I'm bored with my own code, I learn sth here and there, and like that it's like watching the big bro just working, and me silently watching.
@neat basin @mental swift ๐
I can almost guarantee if I start streaming, and do a live tutorial on a useful package, maybe 1 or 2 people will join in, so really becomes tense, it'd be one guy just rambling.
But we're not mods nor admins, so we'll listen of course.
Point taken.
I know, I was just voicing my thoughts, not giving an ultimatum
@stuck furnace Yo
If you're asking these days, it's quite rare, because in the job application, there's always this section that says requirements, and it's always had Bachelors in CS.
Greetings @stuck furnace
Vote Bro.
I have no strong opinion or enough knowledge since I'm not in the industry
Mr. Hemlock, can you send me the link to the c# Discord server again please
And there's no selection for that
That repo page is awesome
Do you have the link to the main c# Discord server
I left that server, I am trying to join back
:( ```py
import fizzbuzz
@upper basin let me know if you have any ideas
I actually played this game in primary/elementary school ๐
The link is in the repo link I sent you
I checked it, I can't see where you're defining the reference.
Ye
Poisonous Froad
I don't understand how these people expect it to play out in the long run.
Like what happens when they get arrive at work on the first day and literally don't know how to do their job? ๐ค
Some people manage to get away with that
Can one of them be my mum?
I have stream perms, when I used it, it was really quick, 45 minutes of content and done
Brevity is king.
Sometimes jobs take forever to pick up on it
Riiight ๐
Be the smartest person in the room, just make sure it's not 2003's The Room.
Oh lol
I remember in exams they used to say they had a device to detect cell phones ๐
What if they're twitch streaming their interview?
We don't let that happen either
we need the Interview anti-cheat system
There is, in the room