Having a similar moment right now. I'm trying to figure out how to compute the transformation matrix for reflecting a bitmap of any given dimension across the y axis, but all the tutorials that come up in my search just tell me to import some python library. Its like nobody wants to learn how to do anything anymore.
Programmer Humor
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
Remove seems like a terrible name for that method.
While yes, the true issue here is that, for some reason, the code only imports the remove method from the package, instead of importing the package and doing rembg.remove().
if you only wanted to import remove you could maybe import as rembg_remove
unless there's some weird taboo against doing that I don't know about, I'm an awful programmer tbh
That reminds me back when some time ago, I was tired of dealing with sketchy, and often broken, websites and programs for downloading videos from Youtube. I figured these sorts of programs must be doing something along the lines of downloading the Youtube page, parsing through the massive pile of HTML and Javascript to find the stream, and then saving that to a video file. That seemed like something I could do myself with Python, so I set out to see if I could figure out how to do it.
A few minutes and a couple of web searches later, I discovered that someone else had figured that all out already and I just needed to do "pip install pytube".
Have you ever heard about yt-dl?
I did switch over to yt-dlp some time later as development seems to have slowed on Pytube and yt-dlp seems to be where all the activity is.
yt-dlp
Waiting for the “in one line” tutorial
No work in micropython on uno? pls help. Need thesis in Rust do tomorgh. Removed French bloat rm -fr
catz tut. Why
This is exactly why we love Python (and other languages with rich package ecosystem, even when only on their niche usage cases). You can build upon other people's knowledge and effort to do cool things efficiently and effectively!
Python is an illusion
All the best things in life are intangible.
Hahaha now code-golf it. One line FTW!
remove(Image.open(‘cl.jpeg’)).save(‘output.png’)
Code golf! I just learned something new 😂
You never heard of code Golf before? It's usually programming challenges where the goal is to use the smallest number of source code characters possible.
I haven't either but I like it.
If I find this in production I'm whipping your ballsack till you change it back.
import("rembg").remove(import("PIL").Image.open(‘cl.jpeg’)).save(‘output.png’)
Can i hire you?
So I'm not going to change it
I know this is a joke, but I totally wanna run the code and see what happens or what errors I get just for fun.
According to PyPI, the library is genuine.
There's a python library for everything
Goddamn i love python
*the libraries that are made for python