Hi, i’m into programming, sexual transmutation and psychedelics!
- 30 Posts
- 52 Comments
dontblink@feddit.itOPto Programming@programming.dev•How do I keep all the data I need in one single place for my website?English1·2 months agoI think essentially I would like to achieve something like this
dontblink@feddit.itOPto Programming@programming.dev•How do I keep all the data I need in one single place for my website?English3·2 months agoThank 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 think I’m probably slowly transitioning to “the ghost” but more as a matter of digital minimalism than for privacy lmao
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.
dontblink@feddit.itto Free and Open Source Software@beehaw.org•We need a Music Playlist Synchronization platformEnglish2·4 months agoHaving a federated music platform would be great both for people and for artists!
dontblink@feddit.itto Selfhosted@lemmy.world•Anyone run a matrix server in the cloud? How much does it cost you?English1·5 months agoHow is the user experience compared to matrix? Is it easy to gateway towards matrix or other services? Can I easily join matrix or other communities servers?
I see a lot of people are now using matrix but not so many xmpp, but yeah it hoggs resources on my server too. Also I feel like it’s still pretty buggy…
dontblink@feddit.itOPto Privacy@lemmy.ml•How can I discourage my dad to install Telegram?English2·5 months agoYes, sorry, not a native English speaker
dontblink@feddit.itOPto Programming@beehaw.org•Routing all network requests in proxy? Avoid use of the internet outside of proxyEnglish1·6 months agoDidn’t think about the 2 machines thing. But yeah it looks definitely easier than setting a transparent proxy… But I guess all of this has to be on the same network, I cannot use an external server to which I connect to via wan because at that point the connections would be already need to be unproxied going out right?
But can’t your setup be done on the same machine with a firewall?
dontblink@feddit.itOPto Programming@beehaw.org•Routing all network requests in proxy? Avoid use of the internet outside of proxyEnglish1·6 months agoYes DNS and pihole were never thought as content filtering tools
dontblink@feddit.itOPto Programming@beehaw.org•Routing all network requests in proxy? Avoid use of the internet outside of proxyEnglish1·6 months agoI need to block IPs and unauthorized connections that are not http/https as well, I know about DNS filtering but it’s not what I am trying to achieve.
dontblink@feddit.itOPto Programming@programming.dev•Implementing a form of websites white listing today, is it actually possible?English1·6 months agoDo you think a Proxy would be better in this regard compared to a firewall? I was trying to watch the logs of ufw today and see if I could do something there but the incoming and outgoing connections are A LOT, and I would essentially like to whitelist both per domain and per IP.
How much maintainance would this require? I wonder how often IPs change today, but with all the NAT, dynamic DNS and CDNs there around maintaining a whitelist only with IP addresses looks like a nightmare…
Squid proxy with squidguard could be a better option than trying to work with a forewall maybe?
dontblink@feddit.itOPto Programming@programming.dev•Implementing a form of websites white listing today, is it actually possible?English1·6 months agoAny suggestions on the how?
dontblink@feddit.itOPto Programming@programming.dev•How does Android partition works?English1·6 months agoIt looks really complicated, very different from Linux! I cannot understand properly all the sandboxing thing… But I guess it’s years of development and policies enforcement… Now I can see why Android it’s much more closed compared to a normal Linux distro, I guess this provides a lot of security but less customization. I also have to understand the role of the device manager in all of this. Is there any Linux distro that behaves similarly?
Why so much effort into securing it? Isn’t the Linux behaviour with users etc enough?
dontblink@feddit.itOPto Programming@programming.dev•Implementing a form of websites white listing today, is it actually possible?English1·6 months agoNo it’s more a user management thing, I would need users to access a certain list of whitelisted websites only…
Maybe proxy or dns? I’ve been looking in squid proxy but it looks fairly complicated, especially if I wanna be able to access it from wan… But Idk if with DNS I could block ips as well. Setting up an hosts file seems like a lot of continuous work since I would have to specify entries for each ip address associated with domain… Maybe firewall?
dontblink@feddit.itOPto Programming@beehaw.org•We need better moderation tools for taking better control on how we use internetEnglish1·6 months agoYes it’s more something like that, making certain type of content a lot less accessible.
I think it’s all a problem of time: if we have more time to carefully think about what we are doing on our devices, we usually make better choices.
We need better tools to give us more time to actually evaluate and decide.
I’ll make an example: I installed an android device manager which let me set a block timer for each new installed app, that means that whenever I install something new I will have some time to reflect on whether I actually need that new app or not, and most often than not, the answer is no.
dontblink@feddit.itto Selfhosted@lemmy.world•What skills are needed to self host without too many headaches?English5·6 months agoEnough focus to read documentation.
That’s really it. If your purpose is just self hosting learning bash could also be helpful. And yeah Linux would be a great choice.
But mostly, if you want to self host an instance of Nextcloud correctly and without having to deal with too many unexpected things, you have to read the documentation and do not rush. Most self hosted stuff isn’t “install and use”, because you’ll be your own server manager, and everything requires attention to be managed.
Docker or not docker you will have to deal with configuration, settings, requirements and updates.
So understanding how to read the docs/search and open github issues and taking time to read everything would be the most important skill for me.
Also writing down what you are doing would indeed be helpful too, in order not to lose track of what you’re doing on your server. (Check out Ansible).
Most apps out there simply need you to know about permissions, systemctl services and package managers.
Try to always find a specific package for your distro for everything you install (eg. .deb for Debian), and have strategies when this is not possible (aka using a Python venv when installing python programs).
Thank you so much for taking the time to answer!
I’m not sure how to get the
N
from session history, nor how to check my session history…but this might be some relevant output I’ve found with
journalctl -k -b
Nov 21 16:08:18 rpi kernel: usb 2-2.1-port2: cannot reset (err = -110) Nov 21 16:08:19 rpi kernel: usb 2-2.1-port2: cannot reset (err = -110) Nov 21 16:08:19 rpi kernel: usb 2-2.1-port2: Cannot enable. Maybe the USB cable is bad? Nov 21 16:41:57 rpi kernel: I/O error, dev sdb, sector 2466347032 op 0x0:(READ) flags 0x3000 phys_seg 1 prio class 2 Nov 21 16:41:57 rpi kernel: EXT4-fs warning (device sdb1): ext4_dx_find_entry:1796: inode #75497968: lblock 42: comm apache2: error -5 reading directory block Nov 21 16:41:57 rpi kernel: EXT4-fs error (device sdb1): ext4_journal_check_start:83: comm apache2: Detected aborted journal Nov 21 16:41:57 rpi kernel: Buffer I/O error on dev sdb1, logical block 0, lost sync page write Nov 21 16:41:57 rpi kernel: EXT4-fs (sdb1): I/O error while writing superblock Nov 21 16:41:57 rpi kernel: EXT4-fs (sdb1): Remounting filesystem read-only
The output is from yesterday, when the device stopped working correctly.
I’m not familiar with linux kernel, but I can see there is definitely something wrong…
The HDD (old) is attached to a USB hub (new), I tried switching port of the hub but the same issue happened again, if I try to mount it with
sudo mount /mnt/2tb
, it says it is already mounted:mount: /mnt/2tb: /dev/sdb1 already mounted on /mnt/2tb. dmesg(1) may have more information after failed mount system call.
sudo dmesg | grep sdb
gives back:[147776.801028] I/O error, dev sdb, sector 77904 op 0x0:(READ) flags 0x3000 phys_seg 1 prio class 2 [147776.815452] EXT4-fs warning (device sdb1): htree_dirblock_to_tree:1083: inode #2: lblock 0: comm ls: error -5 reading directory block [147796.731734] sdb1: Can't mount, would change RO state
dontblink@feddit.itto Selfhosted@lemmy.world•Pi-Hole or something else for network ad blocking?English1·2 years agoI wonder why we don’t have AI browser extensions that can recognise and obscure possible ads / unwanted content yet
dontblink@feddit.itto Privacy@lemmy.ml•Pornhub pulls out of Montana, NC as age-verification battle rages on28·2 years agoWhat about sexual and emotional education in schools?
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…