1
1

Hi, I need to read handwriting off scanned documents and then file them digitally. What's the best way to approach this? I've done some searching myself but I'm curious what you nerds think. Ty.

2
1
submitted 1 month ago by git@hexbear.net to c/programming@hexbear.net
3
1
submitted 2 months ago by git@hexbear.net to c/programming@hexbear.net
4
1
5
1
submitted 3 months ago by kota@hexbear.net to c/programming@hexbear.net

Pretty much what is says in the title. Redis had been using the BSD-3 license for years to encourage developers to write code for them for free and now they've gone and switched to some custom proprietary license in order to secure their theft of the labor of everyone who has contributed to the project over the years. It's the same age old story.

A harsh, but important reminder to never write code for projects with these weak open source licenses. These licenses ONLY exist so that your labor can be stolen, either by them re-licensing at some point in the future or other companies taking it right now. That's the only reason they use BSD/MIT-style licenses.

As an aside it's a shame we're stuck with the GPL given the person who wrote it.

6
1
submitted 3 months ago by git@hexbear.net to c/programming@hexbear.net
7
1
submitted 3 months ago by git@hexbear.net to c/programming@hexbear.net
8
1

I'm building a system where I'll have some embedded devices sending audio data to my server via HTTP, along with a small amount of numerical data. It's important that before these are sent to the database, they're bundled together. Another point, the client needs to authenticate to upload data.

The naive solution would be to send everything together as a JSON object and just base 64 encode the audio, with a single backend endpoint for receiving both the audio and the other data. My concern is, base64 adds a pretty significant amount of overhead (4 bytes of base64 for every 3 bytes of audio) and that is a problem for me, it's more power usage and it's a medium amount of data, a 33% tax is non-trivial. Network encoding might reduce that problem, but I can't be entirely sure until I test.

The other solution would be setting up a different endpoint for audio that can receive the binary data directly, maybe through a stream. This probably is the most efficient way to go about it, but it introduces some complexity as to how I'm supposed to match up the audio with the other data. I'm not very familiar with backend engineering so I'm not sure if there's a straightforward solution that is just an unknown unknown for me.

Maybe I can hash the audio data in the client, include it in the header for both requests, then keep a record of incoming requests along with their hashes in a dictionary in the server (push them as they're received) so they can efficiently be matched up with each other? three-heads-thinking Feels like a cool solution, but IDK, thoughts? Should I just eat the 33% overhead from the simple solution and accept that premature optimization is the root of all evil?

9
1
submitted 4 months ago by git@hexbear.net to c/programming@hexbear.net
10
1
So you think you know C? (wordsandbuttons.online)
submitted 5 months ago by git@hexbear.net to c/programming@hexbear.net
11
1
submitted 5 months ago by git@hexbear.net to c/programming@hexbear.net
12
1
submitted 5 months ago by git@hexbear.net to c/programming@hexbear.net
13
1
submitted 5 months ago by git@hexbear.net to c/programming@hexbear.net
14
1
Go: What We Got Right, What We Got Wrong (commandcenter.blogspot.com)
submitted 5 months ago by git@hexbear.net to c/programming@hexbear.net
15
1
submitted 6 months ago by git@hexbear.net to c/programming@hexbear.net
16
1
submitted 6 months ago by git@hexbear.net to c/programming@hexbear.net
17
1
The Worst API Ever Made (caseymuratori.com)
submitted 6 months ago by kleeon@hexbear.net to c/programming@hexbear.net
18
1
4 billion if statements (andreasjhkarlsson.github.io)
submitted 6 months ago by git@hexbear.net to c/programming@hexbear.net
19
1
submitted 6 months ago by zongor@hexbear.net to c/programming@hexbear.net

Playing around with plan9’s webfs, have a prototype for reading/writing to the lemmy api as if it were a series of files.

The program creates the files dynamically and it can then be mounted to wherever, in the case of the example here I just mounted it to the /n directory.

Currently I only have one api endpoint but this is good enough for a proof of concept.

20
1

I have being wanting to experiment to recreate the game battleship as a website, I have already made some proyects with JSPs (Jakarta).

At first i thought of using htmx and go because i like the idea of building the interface in the backend, the thing is i'm a little stuck is server-client comunication, for example when the server notifies the client that it is their turn. I saw the concepts of server side events and i don't know if there is another way that i haven't thought.

Thank you for reading this

21
1

Hello! I want to write Kotlin for something to keep my brain busy during my spare time. I am aware of IntelliJ, but I would like to avoid it due to telemetry and a general distrust of JetBrains (I downloaded IntelliJ back when I had windows and after i deleted it i found a "JetBrains" or "IntelliJ" folder in a new spot in my computer once a week). IntelliJ community is open source, so is there any telemetry-free forks a la LibreWolf? If not, what do you reccomend for writing Kotlin code? Thank you comrades!

22
1
submitted 6 months ago by git@hexbear.net to c/programming@hexbear.net
23
1
submitted 6 months ago by git@hexbear.net to c/programming@hexbear.net
24
1
submitted 6 months ago by davel@hexbear.net to c/programming@hexbear.net

A refutation of Cantor’s idealist diagonal argument using Turing’s materialist theory of computation.

25
1

And how would you describe your political tendencies? I have a theory that more MLs are gonna be into static typing and more anarchists are gonna be into dynamic typing.

view more: next ›

programming

114 readers
12 users here now

  1. Post about programming, interesting repos, learning to program, etc. Let's try to keep free software posts in the c/libre comm unless the post is about the programming/is to the repo.

  2. Do not doxx yourself by posting a repo that is yours and in any way leads to your personally identifying information. Use reports if necessary to alert mods to a potential doxxing.

  3. Be kind, keep struggle sessions focused on the topic of programming.

founded 6 months ago
MODERATORS