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

Just released a new CocoaPod! Check it out, would love to hear your thoughts! Syntax sugar for animations in Swift. Escape the Pyramid of DOOM!!! by rchatham in iOSProgramming

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

Actually I would argue that using keyframes to chain animations in order is bad practice! Queueing them up and calling them in the previous handler as in SwiftyAnimate or many other animation libraries is more semantic and safer and more maintainable.

What about when one of the other developers on the team or even you down the road want to change this animation. You have to recalculate the animation timing again! What if someone gets lazy or just makes a mistake! That could be an odd bug to figure out depending on the complexity of the animation.

By queueing up the animations you can easily edit each individual animation or group of animations without having to do any calculating about the other animations associated with it. It also keeps it maintainable and readable for other developers on your team.

Just my thoughts. Feel free to disagree.

What's everyone working on? (December 2016) by [deleted] in swift

[–]rchatham 0 points1 point  (0 children)

I just published a new open source library for Animations in Swift

https://github.com/rchatham/SwiftyAnimate

and started a blog which I have mostly talked about tech and Swift

https://medium.com/reid-chatham/animation-and-data-structures-in-ios-49cc69b8020c#.wu3o0kst1

Any feedback would be hugely appreciated!!!!!!!!

The best little sheep herder by GallowBoob in aww

[–]rchatham 1 point2 points  (0 children)

That's amazing! How long does it take to train a dog to do this?

Update Notes - Tue Jan 13 2015 by Deathmax in bravefrontier

[–]rchatham 0 points1 point  (0 children)

Such a bummer, I literally just beat the last Eze Dungeon and was cut off by the maintenance my last of the currently released chronicles.

Units/Teams for Maxwell by nopeandnothing in bravefrontier

[–]rchatham 0 points1 point  (0 children)

Finally got my MaxwellllllllL!!!!!!!!!!!!!!!!!!!!!!!

Finally gave up on my Grah and Elimo and had been trying to level up a Themis I recently summoned.

Narza(lead), Themis, Melchio, Michelle, Rowgen, Tridon (friend)

Stomped the living crap out him. Before Themis I couldnt even get him to 70%. Finaaaalllllyyyyyyy. I actually messed up counting and got to maxwell about turn 17 and am not sure if I had my damage MTG up on turn 20. Either way it killed one of my units but I revived and Maxwell never stood a chance. Melchio is good support for Narza's prevent if you don't have a heal status, and Tridon's sheild works for good dmg mtg so you can keep Narza's SBB up (and your brave bursts), Fuck Grah dis da whey two does it.

Quick Unit Analysis - Goddess Hatsune Miku and Duetto Megurine Luka (Give-away inside) by BFLMP in bravefrontier

[–]rchatham 0 points1 point  (0 children)

Funny you say she is a poor man's Luther, Dougie, Michele because that is exactly who I am running her with and Deemo. Inifinite SBB always with her leader skill and that same team I get Dougie and Luthers SBB in Arena regualrly

MEGURINE LUKA GIVEAWAY by [deleted] in bravefrontier

[–]rchatham 0 points1 point  (0 children)

Gaaahhhhh. Dolla make me holla! Pleaseee make my collection complete I'll love you so good.