dontblink

joined 2 years ago
[–] dontblink@feddit.it 1 points 4 days ago

I couldn't make it work whatever I did, whichever instance I used it seemed to get rate limited after a while or showing weird results..

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

I guess getting a flip phone and stick to an eBook reader would be a good solution

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

The AI thing is very cool, I think something like that exists, agentic browsers.

But I am scared this would be just the next abstraction, of this chains of abstractions.. Corporations are already using AI to profile you even further, the internet will definitely adapt under this pressure, and I believe that in a few years agentic browsers will just become the new norm.

Search engine at first were more objective, now people have learnt to play the game of SEO to attract views, search engines have started to show targeted results, and stuff like Searx came out, or Yaci, claiming to get back a more objective web. There always have been ways to filter out or to try being more objective, but I think the evidence have shown that as a social momentum, this stuff doesn't work.

Yeah Yaci (self hosted crawler) is a great project, but it's stagnant, and the prevalence is still a shitty google or bing searche engine, and this is true for other aspects of the web.

Social media? There were more independent social medias while centralized stuff was rampant, now there's the fediverse and decentralization. Which is super super beautiful, but most people are just unaware. The social momentum is not saying that we are going towards a world where every little server will be connected to other little servers and decide in which parts integrate one another, that would be great, and I'd love to see that, but it's simply not where we are currently going as a society.

Now it's the turn of AI, it can be a helpful tool for a while to avoid it all, stuff like agentic browsers can give us some freedom for a while when they will be actually usable and reliable, but in that time the web will have evolved again and pheraps we'll need to take into account new ways to defend ourselves or to look through the bushes.

It's a never ending hide and seek unless something really big changes. Linux, free software, open source is all great, but we are continuously pushed towarbalance mainstream in some way or another. And most people live the mainstream, not in the alternative, despite the alternative being objectively better. It is just unsupported by our culture.

It's an abstraction built on another abstraction built on another abstraction.. And the web is just the most clear example of that, I mean the very languages in which the web is built are an example itself: JS (which already is high level)>React>Next. You see? Abstraction on abstraction.

But when will we stop to play games and just stay in the present? Focusing on the core of things?

Do we strive to get to a sort of technological ecstatic point in which all will actually be clear? A sort of technological philosopher stone? And the way to do that is through collection of loads and loads of human data?

My perspective on this is quite pessimistic, because it's a form of cruel optimism to say that one can solve this problem individually. To change this would require a coordination of consumers, programmers and people revolving around all things of the internet to fix it, unless we assume that AI is somehow sentient and can be better at solving our problems than we do, which I do not exclude: faster and better at looking and processing novelty than we are.

But that will mean that us, as humans, will just be obsolete.

I always come to the conclusion that the web maybe it's not worth getting used as it is right now, and maybe to feel good we should stop trying to relate to machines and instead just living our own biological needs.. Focusing on beings which we can understand better.. Living in the present.. And stop running, whether it means running away, or towards. Rejecting culture and just staying in our own spaces, cultivating simplicity and balance.

Sorry for the philosophycal rant lmao, I guess this was just more than a technical problem for me lmao, but thanks for your answer!

 

The shitty/distracting web run on ads, so why not making a search engine which index based on that? You would have an experience similar to what was the internet originally: no corporate shit, no infinite scroll, just independent websites made to share real informations and real knowledge, and would still leave space for subscriptions or donations! And you could still use JS and avoid just using a text browser, making the occasional order from a website or navigating the fediverse!

Not an ADblock, the issue isn't ads, the issue is how the web is TAILORED towards ads, and how that makes shitty web.

Is there any tool which does that? The goal would be blocking/avoid indexing all websites connected somehow to ads, is this even something possible? I know it would block 90% of the web, but if that 10% is freedom, I want that freedom!

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

Mh I get this, yes you pay more on outsourcing but usually you also get a service and an easier time, I would like to understand how much does it actually change..

Surely I'd have to understand how much it's economically worth it. On super basic plans I remember even seeing something like "40€ for 1 year website CMS hosting" (on the cheaper side). Which is the cost of a basic VPS on which you can probably run 100 sites on low traffic... And charge each client 80€ for hosting + maintainance, it's an easy great gain you're getting per site. And maybe add something if they want also email. Great passive income in this case.

But on bigger plans tailored to devs more than to direct clients does it keep being worth it? How much would I spend to host 100 WordPress websites + email on something like Hostinger VS self hosting them all on my VPS?

I guess it also depends on your experience with self hosting, at first I was messing up when doing it, now I understood that most apps really just need mostly the same stuff, and it's mostly all easy set and go. Unless I get hacked or get above some of my VPS limits I don't see big issues coming if I'm hosting 4/5 services for my clients.

I already self host some stuff on my own and rarely have to touch it unless I wanna add features or something like that. I guess with more clients you'll have to factor in scalability and/or managing multiple servers: all great stuff to learn but also yeah def more complex than doing a login and have a nice dashboard with all the services there ready for you..

 

If you plan to offer a service tied to a website you make for your client, what are the advantages of self hosting compared to relying on third party services?

Static sites, CMS, newsletter, emails, form handling and more..

An easy example is forms: you can either use formspree or install one of the countless foss form handlers you can find online..

In my mind it's definitely cooler to offer all the services your client needs + you can also charge for them without having to pay for 5 different plans on other platforms, just your VPS or dedicated machine, more income and less expenses. But I see it can be hard to manage outages sometimes or issues that can come with self hosting.

It's offering a service vs being just a reseller.

My experience with self hosting stuff on my own (for my own use) so far has been quite good. I don't use containerization and I carefully config everything needed the first time, then I reverse proxy through cloudflare, after that I rarely have issues and if I have I simply rely on logs.

In my mind it doesn't seem too hard to install a couple of services and make accounts for my clients + fixing something not working every now and then.

My only concern with that is if one day I will want to stop being a developer, how will I handle the quantity of people relying on my server and everything I will hold.

Interested in your thoughts and experience about self hosting vs relying on third parts!

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

That's super cool! Honestly would be really good to find work gear, but also everyday gear, since 99% of pants I wear are cargo pants lmao!

Thanks!

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

That's actually a good tip, the weird thing so far I've noticed are the incredibly low prices, like too low to be true, is this just because this is a type of merch which lots of people don't buy, or because there are lots of fakes?

[–] dontblink@feddit.it 2 points 1 month ago* (last edited 1 month ago)

Use a reverse proxy to proxy everything through https, then you can install how many services you want. Caddy is super simple, you can reverse proxy with just 1 line.

For calendar and contacts (caldav, cardav) Baikal is extremely easy to install and use. And pretty minimal.

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

As far as I knew reverse proxies could only reverse proxy stuff coming in from 443 or 80, I didn't know they could listen other ports as well!

Main reason why I was using a reverse proxy at first is because I had everything behind cloudflare, and cloudflare can only proxy and give you an SSL encryption for stuff that goes through 443, so I could make Caddy listen to 443 and then forward to interested ports.

But this leaves out everything that needs to go in some other places than 443, and requires its own standalone ssl certificate, which is a bit cumbersome. Pheraps these can be proxied with other proxies than cloudflare, hopefully giving SSL to everything..

I'm not sure I understood the upstream ssh thing, what do you actually do?

 

Some services run really good behind a reverse proxy on 443, but some others can really become an hassle.. And sometimes just opening other ports would be easier than to try configuring everything to work through 443.

An example that comes to my mind is SSH, yeah you can use SSLH to forward requests coming from 443 to 22, but it's so much easier to just leave 22 open..

Now, for SSH, if you have certificate authentication or a strong password, I think you can feel quite safe, but what about other random ports? What risks I'm exposing my server to if I open some of them when needed for a service? Is the effort of trying to pass everything through 443/80 worth it?

[–] dontblink@feddit.it 18 points 3 months 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 months 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 3 months 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 5 points 4 months 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 5 months ago* (last edited 5 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.

 

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.

 

Hi, I'm a 26yo male. 2025 probably have been one of the worst year of my life, I broke up with someone I loved a lot (after 6 months of relationship), I left my old therapist because he wasn't helping me anymore to seek help from another one that is just unavailable and dishorganized, I might be losing my job (because of my mental health and instability of myself and the job itself), last week I almost killed myself with xanax, lexotan, ketamine and alcohol. I blacked out 2 days. I'm heavily addicted to porn and couldn't quit after 10 years of attempts.

My therapist told me I might be having PTSD from childhood trauma, my mother was suicidal for a period of time and almost killed me one time by trying to threw me off of a cliff.

I have to take a decision before next week if keeping this job or to leave, which I cannot do for sure because I'm too fucked up and dissociated. In the peaks of my dissociation I struggle talking as well.

My new therapist was unavailable last week when I said I was suicidal, and wasn't available after my attempt, she just asked "how are you now?" From WhatsApp. This was my first attempt and it came after 5 fucking years of therapy and spent on my mental health which at this point I think was useless.

My last breakup lit the fire up, and it slowly and painfully destroyed everything around and inside me, but I'm not even disappointed at the breakup itself, I'm disappointed at the fact that I took it as the end of the world and have to start everything all fucking over again every single time, from the abyss of suicidal depression and addiction. I'm disappointed at myself mostly because I'm the way I am and I cannot bear anything without destroying my life and the life of others.

I feel consumed in the depth of my bones, fragile, needing some real rest from myself and the world.. I think there's a point if bipolar people spend a lot of time in bed, they are exhausted, I know that feeling, it's just their body trying to compensate, a biological response to their tiredness.

My only hope at this point resides into psychedelics because that's the only thing that actually did something for me, and I think I'm planning to take some LSD and face all of this once and for all. I would like to do this with a therapist, but it's hard to find one that does this and even harder after changing 2 of them already. But as I'm scared to do this alone and having a guide would be far more effective, I will try harder.. It's just that this whole situation feels unbearable and I don't really know where I'm going.

Today I also had the desire to take benzos like last week, but I knew it would end up in another SA.

I don't even know what I need.. To get out of the chaos? But chaos feels like home.. I would just want to sleep for 3 weeks..

 

Xanax was something like 2mg, lexotan 2.5 mg i suppose, and a glass of strong wine.. I am feeling really relaxed, like nothing matters and sleepy, but am I really in danger?

It's hard to walk straight and I kinda am forgetting what I am doing along the way.. Yesterday evening I also took another 2mg of xanax and then smoke DMT which did nothing except make me more aware of the mess I was living in.

I don't think I care if I die but I just don't want to suffer

Update 1: added another 15 drops of lexotan, it's kinda getting hard keeping count, it is 2.5mg/ml, how many drops is an ml? Should I really care? How does respiratory arrest feels like? Will I suffer? Or just fall asleep? I suppose benzos will at least ease out the pain.

Update 2: woke up a couple of hors later, taking more lexotan and see if I can lead myself to tomorrow's

 

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.

 

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?

view more: next ›