Click here to Skip to main content
15,868,141 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: Possibly the hottest mess I've seen in some time Pin
Mike Hankey11-Apr-23 12:35
mveMike Hankey11-Apr-23 12:35 
GeneralRe: Possibly the hottest mess I've seen in some time Pin
DrWalter PE26-Apr-23 12:46
professionalDrWalter PE26-Apr-23 12:46 
GeneralRe: Possibly the hottest mess I've seen in some time Pin
Mike Hankey26-Apr-23 12:57
mveMike Hankey26-Apr-23 12:57 
GeneralI question Microsoft's documentation Pin
PIEBALDconsult31-Mar-23 5:13
mvePIEBALDconsult31-Mar-23 5:13 
GeneralRe: I question Microsoft's documentation Pin
RainHat3-Apr-23 4:06
RainHat3-Apr-23 4:06 
GeneralRe: I question Microsoft's documentation Pin
PIEBALDconsult3-Apr-23 4:42
mvePIEBALDconsult3-Apr-23 4:42 
GeneralRe: I question Microsoft's documentation Pin
Gary R. Wheeler28-Apr-23 11:45
Gary R. Wheeler28-Apr-23 11:45 
GeneralGDMA on the ESP32S3 Pin
honey the codewitch18-Mar-23 8:29
mvahoney the codewitch18-Mar-23 8:29 
I'd just like to point out a gem I found underneath a semi-private portion of the ESP-IDF development framework.

The headers for it reside under a folder called "esp_private"

The magic sauce here is access to a very cool coprocessor of sorts. What it does is take a series of pins, which it then treats as bits - High = 1, Low = 0, like that.

Then you give it a clock frequency and a memory buffer, and that little coprocessor will traverse that memory buffer in the background flipping those pins off and on based on the data in the buffer you gave it. It all happens as rapidly as you need it to, and in the background.

You can use it to power things like RGB interfaced LCD controllers, Hub75 LED matrices, or anything else where you need a battery of digital signaling you can control with a byte buffer.

Very cool. Very undocumented. I'm busy hacking my way through it because while Espressif exposed a higher level RGB LCD panel interface that uses it under the covers, that doesn't work in my environment as the tech is very new. The older tech is incomplete and not functional in that capacity, but it's what I'm stuck with so I'm going to the metal myself. But that's not important.

The takeaway here is the amazing technology, and the fact that they're in no hurry to expose it to downstream consumers of the platform.
To err is human. Fortune favors the monsters.

GeneralRe: GDMA on the ESP32S3 Pin
raddevus18-Mar-23 12:45
mvaraddevus18-Mar-23 12:45 
GeneralRe: GDMA on the ESP32S3 Pin
honey the codewitch18-Mar-23 12:52
mvahoney the codewitch18-Mar-23 12:52 
GeneralRe: GDMA on the ESP32S3 Pin
raddevus18-Mar-23 12:59
mvaraddevus18-Mar-23 12:59 
GeneralRe: GDMA on the ESP32S3 Pin
honey the codewitch18-Mar-23 13:31
mvahoney the codewitch18-Mar-23 13:31 
GeneralI must be doing something wrong... Pin
PIEBALDconsult17-Mar-23 13:47
mvePIEBALDconsult17-Mar-23 13:47 
GeneralRe: I must be doing something wrong... Pin
0x01AA17-Mar-23 14:31
mve0x01AA17-Mar-23 14:31 
GeneralRe: I must be doing something wrong... Pin
trønderen17-Mar-23 14:57
trønderen17-Mar-23 14:57 
GeneralRe: I must be doing something wrong... Pin
PIEBALDconsult17-Mar-23 16:05
mvePIEBALDconsult17-Mar-23 16:05 
GeneralRe: I must be doing something wrong... Pin
trønderen17-Mar-23 17:17
trønderen17-Mar-23 17:17 
GeneralRe: I must be doing something wrong... Pin
PIEBALDconsult18-Mar-23 6:15
mvePIEBALDconsult18-Mar-23 6:15 
GeneralRe: I must be doing something wrong... Pin
GuyThiebaut19-Mar-23 22:02
professionalGuyThiebaut19-Mar-23 22:02 
GeneralRe: I must be doing something wrong... Pin
Daniel Pfeffer19-Mar-23 23:07
professionalDaniel Pfeffer19-Mar-23 23:07 
GeneralRe: I must be doing something wrong... Pin
PIEBALDconsult20-Mar-23 2:50
mvePIEBALDconsult20-Mar-23 2:50 
GeneralRe: I must be doing something wrong... Pin
Daniel Pfeffer20-Mar-23 4:26
professionalDaniel Pfeffer20-Mar-23 4:26 
GeneralRe: I must be doing something wrong... Pin
Bohdan Stupak19-Apr-23 4:31
professionalBohdan Stupak19-Apr-23 4:31 
GeneralChatGPT "solves" a riddle for me. Pin
GKP199212-Mar-23 22:15
professionalGKP199212-Mar-23 22:15 
GeneralRe: ChatGPT "solves" a riddle for me. Pin
Jörgen Andersson13-Mar-23 0:13
professionalJörgen Andersson13-Mar-23 0:13 

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.