dontblink

joined 2 years ago
 

So google now requires Id verification for submitting apps to android, what does it mean for Foss apps, for Foss stores like fdroid and for future development?

[–] dontblink@feddit.it 22 points 1 week ago

Self hosting IS hard, don't beat yourself too much because of it.. After all you're trying to serve services for yourself that are usually served by companies with thousands of employees.

A server requires knowledge, maintainance and time, it's okay to feel frustrated sometimes.

[–] dontblink@feddit.it 2 points 3 weeks ago

Can we still load custom roms? It's been a while since my last install of Lineage OS.

If that's not an option either, well, Linux phones I'm coming!

[–] dontblink@feddit.it 1 points 1 month ago

I don't know if I like what fairphone is doing, is not a lot ago the new fairphone 5 came out.. If they plan to support a phone for 10 years, what's the point in releasing another model...?

[–] dontblink@feddit.it 1 points 1 month ago

GNOME all the way

[–] dontblink@feddit.it 4 points 1 month ago (1 children)

Yes you're probably right, I definitely have bias and the time spent tryna fix the bug influenced this..

Thanks

 

TypeScript does not throw an error at compile time for accessing an out-of-bounds index. Instead, it assumes that the value could be one of the types defined in the array (in this case, 1 or 2) or undefined.

TypeScript automatically infers the type of a value accessed from an array, even if that access is out of bounds. It assumes that the value could be one of the defined types or undefined, which can lead to confusion if you expect stricter enforcement of valid indices.

I just spent the last 2 hours trying to understand why I was getting a valid type from something that shouldn't have been valid.

I think that the hate that JavaScript receives is well deserved, at least coming from Rust this is an absolute nightmare.

10
Why Javascript? (feddit.it)
submitted 2 months ago* (last edited 2 months ago) by dontblink@feddit.it to c/programming@beehaw.org
 

After a while since I left JS, I decided to learn Typescript, React and to give it a go again.. It's all fun, until you have to hunt down bugs..

I'm working with an headless CMS, so you have like 4 layers of stuff: JS, TS, React, CMS.

My opinion is that debugging works for SIMPLE stuff, like if I have a static website generator, debugging and hunting the errors by hand to find what's wrong it's okay. But when you have to do really complex stuff, interact with APIs, working with promises, async requests and all, I do think that hunting bugs like that is the recipe for a disaster.

My project runs into a bug: I get 27 different errors messages from different tools, some of them are easy to misunderstand and not really pointing out the right problem. And I don't want to imagine what's like working with a big fullstack app where you have to manage backend as well, not just its APIs..

Once things starts to get complex the language MUST have a good compiler, MUST have a very good package manager, an included linter which is the SAME one for everyone, and API/libraries documentation tool which looks everywhere the same, and most importantly a carefully crafted error handling system. Once a language is very complex it needs to goes straight to the point and tells you where the issue is, what you are doing wrong, and it's okay to have layers but you cannot use 5 different error detection mechanisms for one project.

[–] dontblink@feddit.it 1 points 3 months ago (4 children)

I know some basic Rust (currently at chapter 9) and a little bit of JavaScript.

I'm trying to work with headless CMSs and that requires some understanding on how APIs work..

Even tho I wouldn't want to stick with JS, I don't really want to dig into frameworks and dependency hells.

But I like the concept and I need to build a site that grabs some data from an external api, so a headless cms would be my choice to grab the data and structure them there in order to be rendered later in something like a static site generator (I'm quite good at Hugo). Or will learn some basic React and try to build a template on my own there...

 

Consider I only know apis are structured data that can be called or modified from within a program, and have no real further knowledge in real use cases nor in networking.

Where should I start from? Should I study backend?

I prefer docs rather than videos.

 

Something like Android auto or apple auto but with Linux, does it exist? Or if not what are your homemade solutions?

[–] dontblink@feddit.it 1 points 4 months ago (1 children)

I think essentially I would like to achieve something like this

[–] dontblink@feddit.it 3 points 4 months ago (3 children)

Thank you for your answer!

Yes I've considered using Hugo data sources, but handling all events in one single data file is not really a good way to manage data because Hugo can't programmatically generate content pages from a single data file sadly.. Also again, even if I make a script able to do this, I don't think you can modify content when already created without handling single posts individually.

I could generate a "list of events" but not individual pages from it and not an RSS feed for posts which I would need for newsletters etc..

The thing with CSV is that I kinda lost track of where the actual updated data is, so I'm keeping that updated too, yeah I know I'm a mess.

All the stuff cited is needed for one single job essentially: contacts, newsletter, events.. Which is gathering self published and externally published events and sending them to a list of chosen emails + some integration with social medias.

I'm not a webdev and I thought I could solve this much more easily, but I think doing this correctly would involve using at least an headless CMS + something that is able to grab data from external APIs + some JS framework for building the frontend.

Or relying on a ready full CMS like Ghost or WordPress + theme and hosting on a VPS, which honestly is what I'm leaning towards..

I want to avoid JS if possible as I had terrible coding experiences with it, I know some Rust but webdev in rust is not really a good option from what I've learned.

What do you think?

 

I need to create a website that holds some events data as well as other content, it will also maybe need to grab some data from APIs.

Since I'm skilled with Hugo (static site generator) I thought I could use that but it's turning out it's a total mess actually.

In Hugo I can have contacts (like events organizers) as taxonomy, but that is a different format (yaml) than CSV or vcard, and it's also static, meaning that if I edit a contact it will only change in Hugo. So I found myself having to manage contacts in 4 different places, in 4 different ways: Hugo yaml, Thunderbird, google contacts, CSV (from earlier days)... And I will add mailchimp once I'll also add a newsletter. This ensures my contacts are kinda becoming a mess.

Same goes with events, it's okay if I generate events in Hugo, but if I grab events from APIs and then the API content changes I will have to modify it on Hugo as well.

Everything it's turning out to be a total mess essentially and I think I tried to use something simple to build something quite complex, I realized the complexity later.

Now ideally I would like to be able to have my contacts, my newsletter, my content in one single place ato have everything nicely synced and not having to deal with 30 different lists or formats.

What should I do?

I know about the jamstack and headless CMS like ghosts and I was wondering if they could be a good solution, or if I should opt for a full CMS. Obvious solution would be WordPress but I wouldn't really want to mess with all the plugins.

Also I spent quite a but of time in building my templates for the Hugo website and throwing everything away would feel awful, if there's a way to reuse them (?).

I know some JavaScript basics but I would avoid it if possible.

[–] dontblink@feddit.it 6 points 4 months ago

I think I'm probably slowly transitioning to "the ghost" but more as a matter of digital minimalism than for privacy lmao

[–] dontblink@feddit.it 3 points 4 months ago* (last edited 4 months ago)

I think people should really read books like digital minimalism by cal Newport, stolen focus, surveillance capitalism, your brain on porn ecc to understand how social medias (but the internet in general) IS DESIGNED to be addictive, and what are the addictive traits.

Lemmy is definitely better but still holds some concepts from addictive social medias (not because of developers fault, I think they just tried mimicking popular socials, since these are born as "alternatives"). Infinite scrolling and upvotes are just two examples.

Some frontends do a great job leaving power to the user in that, like eternity, but I think a lot more consciousness should be raised on the topic and, at least in the open source / federated community there should be some guidelines on how to design social medias just as useful tools while minimizing distractions/useless/addictive parts.

It's great to be decentralized, it's great to avoid ads, profilation and targetization, but we can do better in designing really new and useful tools starting from certain principles.

 

Hi! I've been working with Hugo for a while and I also created a free MIT licensed theme with it!. I love the flexibility and the ease of use.

But I'll have to wok on a bit more complicated project than a simple showcase website/blog. The content to be published on it is not a lot, but it would be definitely better if I could:

  • Get/Post some content with API to avoid posting multiple times the same articles on different platforms, getting modifications as well.
  • Send posts digests via email / Download PDF post digests.
  • Post on social medias (?)
  • Parse some content from CSV files / I don't know anything about databases.

Now I know that I can do something like this with a little systemd service I might write on my own and something like Zapier + RSS feed + Mailchimp. Also I could leverage Hugo modules and the .GetRemote / transform.unmarshal command, to get content from remote sources.

Now I'm not really a lot more than an amateur developer, I was thinking a headless CMS could pheraps do this stuff and more in a better way (?). I'm not a webdev and I know only really really basic JavaScript, I can use Bootstrap for frontend confidently and add SCSS to it. I know a bit of Rust too.

Would it be worth to take the time learning how headless CMS's work? I don't really want to go back managing Wordpress plugins, updates ecc.

Do you think I'm going out of a static site generator purpose with this kind of project?

 

I used to use stocard to store the fidelty cards from several shops in one place, but now it's apparently closing and they want me to download another app which has 700 features I don't care about and that wants me to make an account and accept cookies..

Is there any Foss app that does simply this?

[–] dontblink@feddit.it 2 points 6 months ago (1 children)

No I actually prefer GNOME, but have to use KDE because I need specific features (kiosk mode), but yes I feel like Gnome is so much better integrated with its defaults apps!

[–] dontblink@feddit.it 15 points 6 months ago (1 children)

When Linux phones?

(Actually usable ones)

 

I have been using KDE for a while, while I like many features I am looking for suggestions to the default email client:

Kmail - completely unusable for me and the only one which could maybe be integrated with kontacts, it could not receive mails from IMAP or pop or would receive only sometimes

Geary - good but too minimal, I need at least some kind of contact list and mailing lists feature, maybe this integrates with gnome contacts? I couldn't find anything in settings

 

Let's say I want to build a GPS module for my car, which is only a GPS, doesn't hold anything else. Or a recipe tablet for my kitchen which only hold a recipe app.

Is this kind of purposes common? What would be the best way to do this kind of stuff? How do I choose the hardware? How do I "lockdown" certain aspects I don't need about software?

These kind of devices could be convenient because, by only holding what's needed, they would use less resources, they would be completely distraction free and they would be suitable to be used by non tech savy user which would need to use only one or two programs without messing with the system in any way.

I know KDE ha some kind of multi app kiosk settings, GNOME also can achieve something similar tho it's more confusing.. There are some kiosk distros which only give you a browser. But I don't see anything that can be set up, customized, and locked like that.

But would that be the best way of achieving something like that? I mean to use a GPS I don't need a terminal, nor video codecs, nor a browser.. Maybe I can add the possibility to send Osmand google maps links.. Or I can decide to make it hold Spotify too to make it a radio as well.. But a full distro would be wasted!

But how do I prevent every other use except the intended ones? Is there an easy way to achieve a "one purpose device" using Linux? Should I simply use whichever distro I like and uninstall everything which is not needed (I see use case for arch)?

I feel like we have the total freedom of Linux distros on one side, and companies using managed devices on the other by setting complicated policies, but I don't know any options in between!

Maybe the focus here is the desktop environment more than distros! Are there desktop environment purposed to give the user a set of limited apps, or a single app (which isn't only a browser)?

 

Is there a way to require a user to wait a certain time instead of asking for a password every time he wants to execute a command as root or access the root / or another user account?

 

I remember the old great times of barinsta.. Is there any app now? Or at least website.. ...That works decently?

view more: next ›