Toots for chakie@toot.community account

Written by Jan Ekholm on 2025-01-05 at 10:07

Rust’s Tokio library/crate seems pretty powerful. Followed a tutorial to create a basic chat server with it and it was quite easy in the end. Couldn’t have done it without a tutorial, of course, but the amount of code is minimal. Now trying to modify it a bit and introduce a binary packet format instead of a text line based one. Slow work, have to google everything.

http://developerlife.com/2024/01/13/write-simple-chat-server-in-rust/

[#]rust #tokio #absolute #noob

=> More informations about this toot | View the thread

Written by Jan Ekholm on 2024-12-21 at 12:50

I am quite happy about these numbers for my crappy little app. I was fearful that all users would abandon it when I enabled mandatory subscriptions in August. Been performing better than expected. Will probably not last though.

My subscription price is really low at 6€ for a year. Basically a tenth of what an average user would spend in a day on the hobby this app caters to.

[#]indiedev #ios #RevenueCat

=> View attached media

=> More informations about this toot | View the thread

Written by Jan Ekholm on 2024-12-19 at 12:25

The web version of Mastodon is really awfully slow. Right now typing this it takes a second or two before the characters are shown in the textbox. Clicking the Notifications or Home link freezes everything for 5-10 seconds before things slowly load. I guess this is Javascript's fault too. We should never have allowed our tools to become web based. But few tools are as laggy as Mastodon though.

[#]mastodon #glacial #laggy

=> More informations about this toot | View the thread

Written by Jan Ekholm on 2024-11-19 at 15:46

Been fighting with Apple over the new EU regulations where you have to be a trader or whatever. It's an absolute nightmare of a process. Bad documentation from Apple's side, cryptic UI and weird requirements. It seems to end up with me having to go get paper copies of registry entries and have a court certify them. Total shit fest. I don't blame the EU at all here, this crap is all Apple's doing.

[#]apple #trader #eu

=> More informations about this toot | View the thread

Written by Jan Ekholm on 2024-11-11 at 19:02

Is there some canonical library for doing a simple REST server in C++? This is just to make a service controllable from other apps and for making some kind of dumb UI, so scalability doesn’t matter and performance can be rubbish. Most importantly it should be code a normally dumb developer like me can grok. Boost has “beast”, but it’s typically overly complicated like most Boost stuff tends to be.

[#]cpp #rest #library

=> More informations about this toot | View the thread

Written by Jan Ekholm on 2024-11-05 at 15:37

That said, the way automations are configured in Home Assistant must be one of the worst ways to configure things I've seen. YAML is definitely not suitable for this. It's especially true when you edit in an environment that has no context sensitive help.

=> More informations about this toot | View the thread

Written by Jan Ekholm on 2024-11-05 at 15:35

God damn I hate YAML. It's an abysmal format for anything more than one line. Trying to grok some Home Assistant automations and tracing the indentations and weird - and * grouping is horrible. In Python indenting with whitespace is fine as you rarely have more than a few levels of indentation, but YAML config files can be really deep.

I guess this is a Microsoft format?

[#]yaml #garbage #homeassistant

=> More informations about this toot | View the thread

Written by Jan Ekholm on 2024-11-03 at 21:09

I wonder how feasible it really is to do a small app backend with something a tiny bit more efficient than REST. It’s weird that the most inefficient form of transmitting data on the Internet became the most common way to do it. But at least earlier the generated Protobuf code was absolutely hideous and inefficient outside the raw wire protocol with classes that were total ass to use. But it seems to be the best we have so far?

https://imgflip.com/i/98ug9t

[#]protobuf

=> View attached media

=> More informations about this toot | View the thread

Written by Jan Ekholm on 2024-10-28 at 14:37

The problem here is the blue part, it's the background for the top Form. There's absolutely no reason for SwiftUI to give is that much space, it doesn't request it nor need it. I guess I need to rewrite (again) and provide a way to do this without a Form.

I guess the root is that there's a UITableView underneath everything and it just does not work well.

Could report a bug, but at this point it would just be ignored. Sigh... :(

=> View attached media

=> More informations about this toot | View the thread

Written by Jan Ekholm on 2024-10-28 at 14:24

Any sane UI framework would not insert a 200 pixels of empty just for the fun of it. At most there could be a default padding, about as much as there's on the left/right sides.

=> More informations about this toot | View the thread

Written by Jan Ekholm on 2024-10-28 at 14:22

It would be nice if using lists in SwiftUI wasn't so god damn hard to make look right. In this case there's a Form with some metadata and then a List with the content. There's no spacers or similar between the two. Still bugs in SwiftUI inserts a massive empty vertical space between the two and it can apparently not be removed. The only way is to recreate the components from scratch correctly.

[#]swiftui #bugs #layout #fuckingbuttugly

=> View attached media

=> More informations about this toot | View the thread

Written by Jan Ekholm on 2024-10-25 at 19:08

I find it so damn weird that the US is most likely electing Trump for a second term. What is wrong with that country? How can close to half of those voting be that dumb? Also, what is wrong with that fucking system where the one who gets the most votes likely loses? Their democracy is a bad joke. Scary times, as Trump will wreak havoc on the house of cards that is the entire world this time.

[#]USelections2024

=> More informations about this toot | View the thread

Written by Jan Ekholm on 2024-10-23 at 08:10

Not to sound ungrateful, but these trading updates are pretty useless. I guess they are the delivery industry way of doing a non determinate progress bar just to show that the delivery is still alive and hasn't frozen.

[#]dpd #justkeepdelivering

=> View attached media

=> More informations about this toot | View the thread

Written by Jan Ekholm on 2024-10-18 at 08:20

TIL that std::shared_ptr has a custom "deleter" function you can set for actually deleting the memory. Seems to make for a pretty nice way to create a memory buffer manager. I need to shuffle a lot of smallish buffers and allocating/freeing memory all the time is not particularly efficient, especially not when time is essential. I guess this is nothing new to the veterans out there, but it'll make my life easier.

[#]cpp #std #shared_ptr

=> More informations about this toot | View the thread

Written by Jan Ekholm on 2024-10-14 at 13:38

Crashes are uncommon though, but they happen. I tend to restart at least daily when it gets evident that CLIon has become messed up internally. Not a big deal as it's pretty quick to start. It's not a Javascript app after all!

=> View attached media

=> More informations about this toot | View the thread

Written by Jan Ekholm on 2024-10-14 at 13:34

Still the best C++ IDE, but it needs some bug fixing love in order to not be annoying.

Oh, and when I refactor something in my code, there's absolutely no reason to expand the refactoring operation into code I just happen to use, like Boost. It makes refactoring operations usually fail because they end up being "too complex" for CLIon to handle, even in cases where I'm just dragging a file to a new subfolder.

3/3

[#]clion #jetbrains #bugs #galore #but #still #good

=> More informations about this toot | View the thread

Written by Jan Ekholm on 2024-10-14 at 13:31

The errors show up as an error icon that can be clicked to expand to the error report shown in the screenshot, so they are not intrusive. Still, they cause these hiccups and temporary losses of functionality while CLion tries to get back on track.

This is an "early access" version and issues are to be expected, but the issues could get fixed a bit more rapidly. One would assume that the internals of Jetbrain's products should be really mature by now and not break this easily.

2/3

=> More informations about this toot | View the thread

Written by Jan Ekholm on 2024-10-14 at 13:27

I like CLion for C++ code, it's the best C++ IDE that I've seen so far. it at least tries to understand the code and provides pretty good auto completions.

But it has so many bugs and so much random slowdowns. There's absolutely no reason for an IDE today to have even a slight hiccup when doing something, let alone 5-10 seconds of pauses. I get these errors every minute or so while doing normal editing.

1/2

=> View attached media

=> More informations about this toot | View the thread

Written by Jan Ekholm on 2024-10-07 at 07:54

Interesting. Something in this Linux C++ application causes it to ignore SIGINT (ctrl-c). I have not installed any signal handlers and I would not ignore that signal as it makes testing much more annoying. So something has installed one. Could be ASIO or PortAudio or some other Boost component. Having to suspend and "kill -KILL %1" is a bit more tedious than just a simple ctrl-c.

[#]linux #signal #pleasedienicely #cpp

=> More informations about this toot | View the thread

Written by Jan Ekholm on 2024-10-02 at 08:11

I'm somewhat confused as to how Home Assistant's mobile notifications are supposed to work. Looking at the link below it seems to be a huge amount of tricky stuff to set up. Notifications work fine when my phone are on the same network, and they seem to work fine too when I turn off wifi on my phone. The latter case should really not work by default? I haven't tested yet while I'm physically away from home.

https://community.home-assistant.io/t/ios-external-notifications-not-working/585269

[#]homeassistant #mobile #notifications

=> More informations about this toot | View the thread

=> This profile with reblog | Go to chakie@toot.community account

Proxy Information
Original URL
gemini://mastogem.picasoft.net/profile/109364853316420670
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
358.445392 milliseconds
Gemini-to-HTML Time
10.585331 milliseconds

This content has been proxied by September (ba2dc).