News for hackers. Stuff that matters.

dannyaziz97

Show HN: Anatomy of AI Prompt Viral Image Generator – One Shotted with Cursor

https://promptanatomy.com/

I saw that the image of "An anatomy of an o1 prompt" that was originally created by Ben Hylak (https://x.com/benhylak) was going viral around the internet and was being used by others to show off their own promptsI thought it would be cool to try and make this into a tool, give kudos to the original creator Ben and see how easy it would be to do this all with Cursor and the latest Claude model

( Read More... | 1 comment | 5 points | on HN )
I really love my Bose headphones and in the past year I've used them almost exclusively on my Mac.

Started running into problems where because I didn't have visibility on the battery level they would die on me during focused work or meetings

I know there's some way to get the voice assistant to tell me the battery level but that's not as useful as being able to glance in the top-right hand corner and having to move from my keyboard to press some buttons I can't see on my head is a bit silly?

So thanks to this repo (https://github.com/Denton-L/based-connect) and the ability to dump Bluetooth logs from Android to Wireshark I was able to figure out how the official Bose app communicates to the headphones not just to get information but also to send commands such as Connecting/Disconnecting paired devices, changing the noise canceling level and media control

It wasn't all easy, there's not great support for Bluetooth in the JS world and I wanted it to be cross-platform one day so Swift was off the table but it turns out to use the SPP protocol on Macos you have to go through the IOBluetooth APIs - Thanks to Pyobjc I was able to call the native Objective-C api's from Python and thanks to Pybluez I was able to use an interface that was a complete replica of Python's built-in sockets

Would to head some feedback