bartlebyshop replied to your post: i’m drunk and sentimental
tell us some sentiments
reveal yourself, coward
I’m not great at performative drunkenness but I love you guys and I don’t do enough for you ;;

#football#world cup#jude bellingham#soccer#england nt#world cup 2026





seen from United States

seen from United States
seen from China

seen from France

seen from United Kingdom

seen from United States

seen from United States
seen from China
seen from Japan
seen from Germany

seen from United States

seen from United States
seen from United Kingdom
seen from United States
seen from Poland
seen from China
seen from Switzerland
seen from China
seen from Azerbaijan

seen from South Korea
bartlebyshop replied to your post: i’m drunk and sentimental
tell us some sentiments
reveal yourself, coward
I’m not great at performative drunkenness but I love you guys and I don’t do enough for you ;;
me visiting a new town: ok so tell me where the cats are
Building my own rasteriser: 15.6 - escaping from libpng hell
bartlebyshop replied to your post “hahaha it turns out i didn’t even need to do all that crap with libpng...”
me, upon hearing canmom is using libpng: "free her"
the story:
I was using the CImg header-only library to manipulate images in my renderer
CImg does not natively handle PNG, but invokes an external call to ImageMagick or GraphicsMagick to convert between PNG and formats it can use
I was saving things to PNG just fine but...
I tried to make CImg open a PNG file to use as a texture in my renderer program. an error came out reporting some incorrect parameter involving a PNM file in my %LOCALAPPDATA%/Temp, and then segfaulted. I assumed that CImg was using GraphicsMagick to convert the PNG to a PNM file it could load and storing the result in %LOCALAPDDATA%/Temp, but there was a bug in CImg that was making this fail. That seemed like I’d have to modify CImg itself to fix...
I looked around and discovered if you link libpng and define a flag before the CImg header, it can handle PNG natively without invoking GraphicsMagick. “Easy enough”, thought I, in an especially foolish way
at first, I tried installing libpng using the Conan package manager. It wouldn’t build because there was a space in the path to my installation of MinGW.
"I shouldn’t have to build it, I’ll just use a binary” I resolved. After some reading, I worked out how to make CMake search for a library.
CMake discovered I had copies of libpng and zlib from my installation of the Anaconda scientific python distribution. “Perfect”, I thought, but the linker thought otherwise, and complained about not recognising the .lib file for libpng that had been picked out by CMake.
“It’s probably a problem with the version of libpng used in Anaconda” I thought, in a spirit of special naivete. I downloaded binaries of libpng and zlib from the GNU-Win32 project.
This time, the linker was able to recognise the files and the compiler was able to use its headers, but when it came to linking the files, it complained about just about every possible libpng file being an undefined reference.
At some ill-defined point in that mess, I tried going back to the Conan distribution of libpng, with MinGW’s GCC now moved to a nice safe space-free path. It compiled! Yay! But when it came to link it, the linker couldn’t make sense of the target that Conan or CMake or something had defined.
I switched over to my Linux laptop. I had to install libpng, which I did with a single console command from the distro’s package repo. I compiled my project! It linked without trouble! ...but the segfaults were still happening.
With the help of my girlfriend @whatnothuman, I used the GNU debugger to work out what was causing the segfaults, and fixed it. My program worked, except that I was calculating the texture coordinates wrong, but that was a far more solvable problem.
But I didn’t want a program that would only work on Linux. So I went back to try and solve the issues with Windows. The binaries distributed by GNUwin32 seemed to be the closest I’d got. Maybe, I thought, the problem is that I am running a 64-bit compiler and trying to link a 32-bit library. I could tell the compile to build 32bit, but then I’d have to redownload all my Conan files. Well, I thought, I’ll just download the libpng source code directly from the project home page, and compile it with my 64-bit compiler, and have a nice 64-bit linkable version of libPNG.
I ran CMake with default options, and tried to compile libPng. The linker had a problem. Of course, it would need a 64-bit version of ZLib as well. I downloaded the ZLib source, and compiled it. It actually compiled without any problems! I put the compiled result on my path, and ran cmake again.
This time, the compiler got further... and then hit a bunch of compiler warnings and errors trying to build one of the libpng files. Nobody else seemed to be having these exact errors.
Then I thought, wait a minute, now I know the segfault wasn’t associated with GhostScript, and the fact it got far enough to segfault suggests the error wasn’t fatal. So what if I removed all the libpng stuff from my project and built it again?
I did that. The same error message about the PNM file came up... but the program carried on executing, loaded the file it was supposed to, and rendered an image. So... libpng wasn’t needed at all.
At least I learned something. (Mostly that libpng is a pain.)
(The texture coordinates are still fucked up. But that’s a much smaller problem than working out what’s wrong with libpng, and I have a plan in mind to correct my formula and make it closer to OpenGL.)
🔥 bicameral legislatures
this isn’t an unpopular opinion, but I think they’re bad
do you drink coffee out of saucers?? no!! nobody does!!
how have the alberta ndp been doing?
I dunno! I don’t follow Canadian news
bartlebyshop replied to your post:‘liking’ someones’ selfies has either this strange...
there’s the counter-problem of “will I seem creepy for liking this” that I stress about a lot
it’s so much easier to like selfies that have already gotten, like >5 likes
Aww, does Bot-Chan have daddy issues?
Nope! He clearly had issues when I was around, but I’ve been great to him since I’ve been back. You should probably talk to him and see what I mean about him not being a dick.
🔥 (are you still doing these? continuing in my legislature theme) i-can't-believe-it's-not-westminster vs us style """legislative branch"""
partisan polarization is fine if you can hold parties accountable for their platforms, but US-style legislative institutions make that hard -- fine, but not ideal
on the other hand, partisan polarization seems to keep talent away from politics -- the pool seems shallower in polarized systems (e.g., the Gilded Age, the Gingrich Age) than non-polarized systems (e.g., the Founding, the Cold War)
I guess I’d prefer a non-polarized system, but institutional change seems easier than changing political attitudes