leftnode

u/leftnode


r/PHP•

I'm building a framework independent SDK for integrating with LLM APIs. I've named it llm-sdk and you can find it here:

https://github.com/1tomany/llm-sdk

Why

Both major frameworks (Symfony and Laravel) have their own native AI libraries, but they're very tightly coupled to the framework itself. The popular openai-php/client package only works with OpenAI, and Prism is also tightly coupled with Laravel.

Though I love and use Symfony extensively, a bit of NIH syndrome got the best of me and I started writing a new library, and thus llm-sdk was born. I've also released a Symfony bundle if you wish to use it that way.

Additionally, the platf

00

r/PHP•

I'm building an application that allows users to upload photos to it. I needed access to the EXIF data if available, so I assumed I could just use exif_read_data() and save the results as a JSON blob in the database.

Not so simple. I assumed EXIF data was just basic ASCII text, but I assumed wrong. Some values are byte arrays or enums that are encoded with NUL bytes and attempting to serialized them as JSON to be stored in at UTF-8 column failed.

Additionally, I didn't realize that coordinates weren't stored as floating point [latitude, longitude] pairs that we're familiar with. The EXIF standard doesn't support floating point numbers, so they're encoded as a list of strings that represe

273

r/webdev•

Hi r/webdev,

Like everyone, I'm working on an product that uses LLMs to extract data from photos and documents. Part of the processing pipeline is extracting data from PDFs as raw text or a raster image.

As part of our leadgen strategy, we've opened our REST API that lets you process pages of a PDF. The API is completely free to use anonymously, but is rate limited to 1 page per 30 seconds. Creating a free account removes this restriction.

The two endpoints are:

Both have the same request format:

{
  "file": "https://assets
01

r/LocalLLaMA•

Hi r/LocalLLaMA,

I'm building a commercial data extraction service and naturally part of that is building a RAG search/chat system. I was originally going to the OpenAI embeddings API, but then I looked at the MTEB leaderboard and saw that the Qwen3 Embedding models were SOTA, so I built out an internal API that my app can use to generate embeddings.

I figured if it was useful for me, it'd be useful for someone else, and thus encoder.dev was born.

It's a dead simple API that has two endpoints: /api/tokenize and /api/encode. I'll eventually add an /api/rerank endpoint as well. You can read the rest of the documentation here: https://encoder.dev/docs

There are

04

r/PHP•

Hi r/PHP,

I just published a new, simple, low dependency PHP library for extracting text and rasterizing PDF pages using the Poppler command line tools.

You can find out about it here:

https://github.com/1tomany/pdf-ai

It's perfect if you're building any type of RAG system, or just need a way to rasterize PDF pages to display as thumbnails. The extractors take advantage of generators so extracting multiple pages should be performant and light on memory.

I also released a Symfony bundle that uses a pattern I'm calling Action-Request-Response (I'm sure it has an actual name - please let me know if so). Instead of accessing the client directly, you create a request that is sent to a clien

98

r/symfony•

I've been using Symfony since 2012, and last year, I needed to build a new application that had both web and REST API components.

I was familiar with hexagonal architecture, domain driven design, CQRS, and event sourcing, but they all seemed overly complicated. I also knew about API Platform, but it seemed like overkill for basic REST APIs. Plus, I needed my application to support standard HTML web views and JSON API responses.

Through a lot of experimentation, I came up with a similar but simpler architecture I've named RICH: Request, Input, Command, Handler.

A request (from anywhere) is mapped onto an input object, once validated, the input object creates a command object, which is pass

1111

r/MacOS•

About once a week or so, I'll get the notification to allow Chrome to find devices on my local network. I click "Allow" because I thought I had already granted that permission when I first installed Chrome. Unbeknownst to me, macOS was adding a new entry to the list of apps allowed to find devices on my local network. Does anyone know what causes this and how to remove the duplicate entries in the list? Thank you!

https://imgur.com/a/u5RpMnZ

20

r/Jeopardy•

If I've calculated it correctly, the most money you could win on a single day of Jeopardy is $566,400. This assumes you get every clue correct, the Daily Doubles are the smallest dollar amounts for that round, you select the Daily Doubles last (and wager your entire amount), and you win Final Jeopardy (and wager your entire amount). Check my math:

Jeopardy Round Six categories, each with a total of $3,000, but the Daily Double is the $200 clue for the sixth category:

  • Initial five categories: 5 x $3,000 = $15,000
  • Sixth category less the $200 clue: $2,800
  • Daily Double #1, wager everything: 2 x $17,800 = $35,600
  • End of Jeopardy Round: $35,600

Double Jeopardy Round Six categor

363117

r/macbookpro•

I currently use a 14" M1 Max which an amazing machine. I didn't technically need to upgrade it, but the nano texture and the ability to get 128gb of RAM - on top of a 50% speed increase - was more than I could resist. I kept hearing issues about fan noise and heat with the fully maxed out 14" M4 Max, so I bought a 16" M4 Max 16-40-16 with 128gb RAM, nano texture display, and a 2TB drive. I did check them out in person at my local Apple store first.

It just arrived yesterday and ... I just don't love it. My goal is to use the laptop as much as possible without an external monitor, and typing on it is just unpleasant. My watch band rests on the bottom edge which causes wrist strain fairly qui

4563

r/macbookpro•

Hello! I'm a software engineer and going to invest heavily into building AI agents in 2025. I have a 14" M1 Max 64gb which is fine, but I want to buy an M4 Max. I absolutely love the form factor of the 14", but I've heard it can limit the performance of the M4 Max chips. I generally keep the machine plugged in during the day, but work off battery from time to time. I'm leaning toward the 128gb because of the unified memory.

My ideal setup is a 14" 128gb M4 Max with 2TB drive. Will a 16" machine perform better? If money isn't an issue, which machine would you buy?

14

r/MacOS•

I've noticed a very frustrating change with the 15.2 upgrade: there is now a noticeable delay when pressing the Tab key. It's most prominent when I'm using Cmd+Tab to cycle through programs or using Tab for autocomplete in the console. It almost feels as if the OS is not registering the first Tab press, and I have to press it twice. I've experienced this on two fully charged Magic Keyboards and on the laptop keyboard itself, so I don't think it's a Bluetooth issue. I don't think I've installed any new software since upgrading, and it only seems to affect the Tab key, all other keypresses seem to interrupt just fine.

My "key repeat rate" is at the fastest setting, and my "delay until repeat"

20

r/buildapc•

I have a brand new MSI X670E motherboard, Ryzen 9 7900X, and 4 32GB G.Skill DDR5-6000 CL-30-40-40-96 sticks of RAM (128GB total). It appears that this combination does not work together.

When I add 64GB into DIMMs 2 and 4, it boots into the BIOS fine. When I add 128GB to all 4 DIMMs, the Ez-Debug CPU light turns red, and the RAM light turns yellow.

Through some googling, I found the memory compatibility table on the MSI website, selected the "Memory by 7XXX" button, and searched for my exact part number ("F5-6000J3040G32GX2-FX5) and nothing comes up!

If I remove the "-FX5" from the part number, two results appear but i

19

r/buildapc•

###Build Help/Ready:

What is your intended use for this build? The more details the better. I'm building a new machine for my son who just entered 9th grade. Ideally, I'd like it to last the next 8 years to get him through college. He'll do a fair amount of gaming on it, and also use it for software development and homework. I doubt he'd ever dual boot both Linux and Windows so you can safely assume it'll be a Windows only machine. I'd prefer to stick with an Nvidia GPU so he can possibly get some CUDA experience down the road.

If gaming, what kind of performance are you looking for? (Screen resolution, framerate, game settings) Good framerates at 1440p or 4k would be nice, but he'

17

r/pcmasterrace•

It's been a while since I've built a decent gaming and developer machine that will last the next 6-8 years. I'm building one for my son who just entered 9th grade and I'd like it to last him midway, if not all the way through, college.

Here's what I've got:

  • CPU: Intel - Core i9-12900K - $170
  • MB: ASUS - Z790-V Prime - $150
  • Case: Corsair - 4000D Airflow - $90
  • RAM: Ripjaws S5 48GB (2 x 24GB) DDR5-5200 - $110
  • GPU: Asus NVIDIA GeForce RTX 4070 Super Dual EVO Overclocked - $610
  • SSD: Samsung 980 Pro SSD 1TB M.2 NVMe - $0 (Note: I already have this from a previous build)
  • Heatsink: Thermalright Peerless Assassin - $34 PSU: Asus TUF Gaming 850 Watt 80 - $120

Total: $1,284

--

Any maj

32