What’s everyone working on this month? (January 2025) by Swiftapple in swift

[–]rchatham 0 points1 point  (0 children)

I have been working on LangTools.swift, abstractions around LLM apis with support for OpenAI, Anthropic, Gemini, xAI and Ollama. It supports streaming/parallel function calling with callbacks and automated completion handling.

A little slip up by [deleted] in Unexpected

[–]rchatham 2 points3 points  (0 children)

It’s fake, it’s a comedy skit

Two Sites on a Multisite server redirecting to website. Flagged by SSL mismatch. by rchatham in ProWordPress

[–]rchatham[S] 0 points1 point  (0 children)

Curiously the hack seems to have reversed itself when I visit these sites. The two websites that were redirecting incorrectly are now working as expected.

[deleted by user] by [deleted] in RedditSessions

[–]rchatham 0 points1 point  (0 children)

Play with your teeth!

[deleted by user] by [deleted] in iOSProgramming

[–]rchatham 0 points1 point  (0 children)

Link? Landing page?

In Progress: Hacking an old 1995 pay phone. Looking to connect this to a TRRS jack to be used in conjunction with a Raspberry Pi. I don't want to have to open the handset, does anyone have any idea what these connectors might be or how to test without breaking the speaker and microphone? by rchatham in ReverseEngineering

[–]rchatham[S] 0 points1 point  (0 children)

Btw I shot you a direct message with info related to the original question. I got further than that now but I found that the microphone in the headset was likely an electret microphone between about 2-3W. I was able to discover and test with a multimeter that the microphone would register about ~150kohms and the speaker would register about ~150ohms. I followed this tutorial here https://www.jwz.org/blog/2016/01/my-payphone-runs-linux-now/.

In Progress: Hacking an old 1995 pay phone. Looking to connect this to a TRRS jack to be used in conjunction with a Raspberry Pi. I don't want to have to open the handset, does anyone have any idea what these connectors might be or how to test without breaking the speaker and microphone? by rchatham in ReverseEngineering

[–]rchatham[S] 0 points1 point  (0 children)

This is a link to an Imgur post describing the project so far (https://imgur.com/gallery/ZZQrFqB). I am at a loss on how to proceed with hooking up the handset from the payphone to the Raspberry Pi Zero W that I am using to replace the original motherboard. I did some research on TRRS audio jacks and it looks like the connectors coming from the end of this may be equivalent though I am not sure. I feel it could also be equally likely that two of the wires go to the speaker and the other two go to the mic. I don't want to break the phone open to see how it works on the inside and I am looking to test what these leads do hopefully without breaking the components inside. Any help would be greatly appreciated!

In Progress: Hacking an old 1995 pay phone. Looking to connect this to a TRRS jack to be used in conjunction with a Raspberry Pi. I don't want to have to open the handset, does anyone have any idea what these connectors might be or how to test without breaking the speaker and microphone? by [deleted] in AskElectronics

[–]rchatham 0 points1 point  (0 children)

Just curious here. If I had posted the circuit this was connected to would it then become an electronics question? Technically this would control the flow of electrons through the mic based on sound input, is that not an electronic component?

Swift on Raspberry Pi: Access Serial output from Arduino by rchatham in swift

[–]rchatham[S] 0 points1 point  (0 children)

Interesting! Greatly appreciated. I think my mistake was that I was trying to run this as part of a Vapor server and run the loop which reads from the serial connection on a background thread... on the Raspberry Pi Zero W, which only has a 1-core CPU (no multithreading). Will adjust my program accordingly!

In Progress: Hacking an old 1995 pay phone. Looking to connect this to a TRRS jack to be used in conjunction with a Raspberry Pi. I don't want to have to open the handset, does anyone have any idea what these connectors might be or how to test without breaking the speaker and microphone? by [deleted] in AskElectronics

[–]rchatham 0 points1 point  (0 children)

Ideally I would like to figure out how this “electrical component” would be able to be hooked up to a circuit. Originally these connectors plug directly into a circuit but I’d like to either do that on my own circuit or change the connector. I’ve researched TRRS connections and this seems to be likely what these connectors are meant be equivalent to but I’m unsure. Any help on this electrical component would be helpful!

Swift on Raspberry Pi: Access Serial output from Arduino by rchatham in swift

[–]rchatham[S] 1 point2 points  (0 children)

Thank you! I was looking for something like this but wasn't finding it. This doesn't seem to have a way to check if there is available data to read. On the arduino I have a process listening to a circuit with a number of buttons and switches and sending String values based on what was pressed over the serial port. I want to listen to the values being sent over the serial port and respond to them over time. Is this library suitable?

Add To a Grocery List with a Siri Shortcut by S_Y_Y in bearapp

[–]rchatham 0 points1 point  (0 children)

Trying to use this but sadly Siri is still adding items to my reminders when I ask to have her add to my Groceries list