Click here to Skip to main content
15,883,954 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: You expect me to use this with what, now? Pin
Kenneth Haugland19-Jun-21 8:18
mvaKenneth Haugland19-Jun-21 8:18 
GeneralRe: You expect me to use this with what, now? Pin
markrlondon19-Jun-21 11:44
markrlondon19-Jun-21 11:44 
GeneralRe: You expect me to use this with what, now? Pin
honey the codewitch19-Jun-21 11:57
mvahoney the codewitch19-Jun-21 11:57 
GeneralRe: You expect me to use this with what, now? Pin
jschell7-Jul-21 8:06
jschell7-Jul-21 8:06 
GeneralRe: You expect me to use this with what, now? Pin
enhzflep15-Jul-21 23:11
enhzflep15-Jul-21 23:11 
GeneralRe: You expect me to use this with what, now? Pin
honey the codewitch16-Jul-21 4:03
mvahoney the codewitch16-Jul-21 4:03 
GeneralRe: You expect me to use this with what, now? Pin
enhzflep16-Jul-21 6:06
enhzflep16-Jul-21 6:06 
GeneralRe: You expect me to use this with what, now? Pin
honey the codewitch16-Jul-21 6:25
mvahoney the codewitch16-Jul-21 6:25 
For $10 I'll just get an ESP32 WROOM devkit. You can get the chip itself for like $2 but that's without all the supporting hardware to make it go + program it. They're dual core 240MhZ with like 300kB of RAM available and 4MB of flash. WROVERs with the extra PSRAM aren't that much more, but are a little bit harder to come by reliably.

The problem with a raspberry pi is they are power hungry as heck. It's a bit hamfisted for an e-reader. You may as well just run some EPUB reader software on a linux desktop over HDMI with it. The power saving from e-ink won't matter. I mean, if you really want to save on eye-strain get a nook because doing this with a raspberry pi is like going fishing with a battleship.

And thank you! I appreciate it when people let me know they enjoy my work. I'm getting an E-PUB reader working on a WROOM. Right now I'm neck deep in making a zip library that allows you to stream the contents directly out of the zip file without loading them into RAM or storing them in flash uncompressed (but you can if you want/need to). EPUBs are just zips renamed, so I'm treating the entire zip archive as its own little read-only filesystem with all the EPUB html and image content. Smile | :) No RAM use - except for a small amount of temporary block buffer for the decompressing stream. My end goal is to get it running on a WROOM, and running quickly on a WROVER.
Real programmers use butterflies

GeneralRe: You expect me to use this with what, now? Pin
enhzflep16-Jul-21 13:56
enhzflep16-Jul-21 13:56 
GeneralRe: You expect me to use this with what, now? Pin
englebart1-Sep-22 16:48
professionalenglebart1-Sep-22 16:48 
GeneralRe: You expect me to use this with what, now? Pin
honey the codewitch1-Sep-22 17:08
mvahoney the codewitch1-Sep-22 17:08 
GeneralThis is a joke, but still... Pin
Brisingr Aerowing19-Jun-21 4:44
professionalBrisingr Aerowing19-Jun-21 4:44 
GeneralRe: This is a joke, but still... Pin
PIEBALDconsult19-Jun-21 4:46
mvePIEBALDconsult19-Jun-21 4:46 
GeneralRe: This is a joke, but still... Pin
Brisingr Aerowing19-Jun-21 7:42
professionalBrisingr Aerowing19-Jun-21 7:42 
GeneralRe: This is a joke, but still... Pin
Marc Clifton20-Jun-21 3:02
mvaMarc Clifton20-Jun-21 3:02 
GeneralRe: This is a joke, but still... Pin
Bohdan Stupak30-Jul-21 4:37
professionalBohdan Stupak30-Jul-21 4:37 
GeneralA really fascinating breakdown of dithering in graphics rendering Pin
honey the codewitch16-Jun-21 3:40
mvahoney the codewitch16-Jun-21 3:40 
GeneralRe: A really fascinating breakdown of dithering in graphics rendering Pin
RedDk16-Jun-21 7:10
RedDk16-Jun-21 7:10 
GeneralRe: A really fascinating breakdown of dithering in graphics rendering Pin
honey the codewitch16-Jun-21 7:11
mvahoney the codewitch16-Jun-21 7:11 
GeneralRe: A really fascinating breakdown of dithering in graphics rendering Pin
RedDk16-Jun-21 7:26
RedDk16-Jun-21 7:26 
GeneralRe: A really fascinating breakdown of dithering in graphics rendering Pin
Daniel Pfeffer20-Jun-21 3:24
professionalDaniel Pfeffer20-Jun-21 3:24 
GeneralRe: A really fascinating breakdown of dithering in graphics rendering Pin
honey the codewitch20-Jun-21 3:26
mvahoney the codewitch20-Jun-21 3:26 
GeneralThis is a really neat website for converting file formats Pin
honey the codewitch5-Jun-21 18:24
mvahoney the codewitch5-Jun-21 18:24 
GeneralRe: This is a really neat website for converting file formats Pin
OriginalGriff5-Jun-21 19:22
mveOriginalGriff5-Jun-21 19:22 
GeneralRe: This is a really neat website for converting file formats Pin
honey the codewitch6-Jun-21 4:39
mvahoney the codewitch6-Jun-21 4:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.