Hi, i’m into programming, sexual transmutation and psychedelics!

  • 18 Posts
  • 30 Comments
Joined 2Y ago
cake
Cake day: Jun 13, 2023

help-circle
rss

Didn’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?


Yes DNS and pihole were never thought as content filtering tools


I 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.


Routing all network requests in proxy? Avoid use of the internet outside of proxy
Hi! I'm trying to achieve this configuration: essentially all the traffic in the network should pass the content filtering in the proxy, assume I have control over the clients. All not proxied traffic should be blocked by default. I know not all network traffic can pass through proxy, but I'm not sure I understand how actually all of this work. My UFW firewall configuration is the following: ``` To Action From -- ------ ---- 3128 ALLOW OUT Anywhere 53 ALLOW OUT Anywhere ``` 53 is for DNS requests (that cannot pass through the proxy), even if I use DOH this port needs to be open for bootstrapping. 3128 is Squid proxy port. I'm assuming the following: client -> dns request (53) / cannot be handled by the proxy -> dns response client -> proxy (all ports that the proxy can handle) -> http/https/ftp response client -> blocked (all other ports) But from UFW logs it looks like the client is trying to make requests (eg. https requests) directly through port 443, instead that passing from 3128.. Maybe I'm getting something wrong here on how Proxies work. Do you have any suggestion?
fedilink

Yes 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.


We need better moderation tools for taking better control on how we use internet
After finding myself another time completely sucked by all the internet bullshit, finding a huge difficulty doing whichever task involves using a computer, I think I am finally sure to address the need of better moderation on the internet. Not for platforms, but for people. So many people have these kind of problem with the internet: there is too much dispersion, it is hard to use it while staying focused on a single task and it's hard not getting hooked by one of the countless activities you can find online. Weren't PC conceived to be "bycicles for the brains"? The internet was supposed to be a place where to share things to each other. It's a tool, but a tool needs to be at the service of who's using it, and so many people nowadays have no fucking idea of what they are doing. And even between tech savvy people (I include myself here too), how many of us do you think could decide to stop using all the bad side (because we know it's bad, I mean we're on Lemmy) of the internet just with will force? People should have the right to use the internet it as they please, but as we have so many tools for finding and consuming mindlessly everything on the web, and as they are pushed towards us so strongly, I think it's right to give more options to "opt out" as well, for one that desires so. I think we lack tools for moderation, for making a clear distinction between "I wanna consume this kind of content" and "I wanna stay the hell away from all this bullshit". It's cool there are alternatives: Lemmy it's really safer as a space compared to the hell that's Reddit now, but I think we should go deeper than that and decide to opt out better from what we don't like as well, and while the focus should still be "build a better internet/software/hardware", I think we need to address the problem of the difficulties on taking distances from certain aspects of the currently unavoidable and somewhat desperate situation of the web. Linux has a clear solution for managing one's activity on a computer: users, groups and ownership. The admin has the complete freedom to shape the environment for the users. And it's very effective, once a directory belongs to another user, you cannot read it without the other user consent (or the admin). There's not so much space for bypassing this, and it's effective. But what do we have for the web? We can use browser extensions, proxies, DNS filtering, VPNs, blacklists etc etc.. But bypass methods for all this kind of filtering is one web search away. At least most of that. I've come to a point that I am thinking only strict whitelisting with only the few sites you want could be good, blocking every other connection. But it still looks incredibly hard with so many sites using CDNs now, and so many new domains registered. We should be able to have something like users on accessing web content too: Jane is allowed to visit streaming sites, Bob wanna focus on studying and can only visit cultural content. But I think categorization and moderation of an ever changing content, which is not as "static" as on an OS, needs ever changing moderating tools as well. I think AI could have an amazing role in this, they can scrape content before we visit it and understand if it is suitable for our purpose. And since content always changes, ai will be always changing as well. I am also thinking that setting something like an "AI in the middle" in between https requests could have it's role, even if privacy concerns would need to be addressed. I like the concept of something like openai's omni-moderation API for example. Projects like TOR focus on breaking censorship and that is amazing, but I don't see why a user shouldn't be able to censor some content reliably by himself if he wants to (on a client level). I don't know, but I feel like a better control on how we use the web would be needed, if someone wanna have a talk/brainstorm I can make a Matrix room.
fedilink

Enough 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

HDD randomly unmounting
Hi! First of all sorry if this is the wrong place to ask, if it is, please point me to a better suited channel! Anyway I've got this old 2TB HDD attached to a rpi 4b, it worked flawlessly until now, the last few days it started disconnecting randomly.. If i reboot it mounts back again. This is the `df` output: ``` /dev/sdb1 1.8T 535G 1.2T 31% /mnt/2tb ``` And this is `sudo dmesg | grep sdb` (the device is sdb ofc). ``` [ 14.970908] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB) [ 14.978857] sd 1:0:0:0: [sdb] 4096-byte physical blocks [ 14.984484] sd 1:0:0:0: [sdb] Write Protect is off [ 14.989382] sd 1:0:0:0: [sdb] Mode Sense: 43 00 00 00 [ 14.989684] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 15.044802] sd 1:0:0:0: [sdb] Preferred minimum I/O size 4096 bytes [ 15.051196] sd 1:0:0:0: [sdb] Optimal transfer size 33553920 bytes not a multiple of preferred minimum block size (4096 bytes) [ 15.065585] sdb: sdb1 [ 15.068403] sd 1:0:0:0: [sdb] Attached SCSI disk [ 22.631983] EXT4-fs (sdb1): recovery complete [ 22.660922] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Quota mode: none. ``` The device has an external power supply of its own, so it's not a power issue.. This setup worked for a couple of years. I cannot see anything wrong here, pheraps is the HDD which is going bad?
fedilink

I wonder why we don’t have AI browser extensions that can recognise and obscure possible ads / unwanted content yet




If it was less expensive and provided some privacy i would probably happily pay for it.


I’m actually curious on Rust, i don’t like how dispersive can be JavaScript, i prefer to build smaller, maybe uglier things, but that work and are nicely stable, scalable and can be integrated on multiple different platforms. Also i love that almost everything runs on Cargo and i don’t have to choose between 100 things that essentially cover the same target. I also think the Discord idea is quite good, i just want to find someone who is on my same level to grow / build cool things toghether, or small projects on which i can actively partecipate, there’s also an association near me that promotes opensource projects and give free code lessons, i might give it a try as well and see if i meet someone there. I’m gonna give it another try before deciding of giving up, i think it is deserved.


And how you deal with that, how do you choose what to do and what not to do?


Honestly when i first got into coding i liked the fact it could give me jobs i could do from every part of the world, that is still on demand and that gave a certain freedom on how you approach technology and customize it to make it your own, i always liked to tinker around with computer and i even have a small home server i use for several stuff. I loved how useful internet was to find informations otherwise unreachable and share stuff without censorship woth everyone, as i said i love the story of the cypherpunk movement, i see bitcoin as a real solution to our obsolete economy, and i thought i would have liked to have a role into changing this shitty system paradigms, my target was to work with lightining network or similar protocols maybe one day. However i feel like i’m changing lately and i’m lacking human interactions so much, there’s no point in building something toghether if there’s no emotions to share with others before, during and after the process. Maybe it’s just how i’m made, but i cannot stick to it, i just get super depressed and i see no point in doing it. Maybe i’m just lazy i don’t know, but it is like that.

Adding the fact that sometimes i feel like technology controls me, and not the opposite despite all the efforts i make, feels just super wrong and not how i want to live.

I’m studying webdevelopment so i’ve had the opportunity to work only on simple stuff so far, but it already feels super overwhelming, sometimes i get lost just in setting up my coding environment, just to realize it will only be one of many i’ll need to learn how to work with.


Feeling overwhelmed
Honestly all this world looks really overwhelming, there's too much stuff going on: each program uses its own languages, its own compilers, uses different tools, libraries, dependencies, package managers and frameworks. You need specific instructions and documentation to learn new stuff at every single thing you deal with. Whenever i open a project on Github i just feel overwhelmed because there will always be something new and i'm afraid i won't ever get out of that way of operate that "somehow makes things work" and really understand my code and program interactions.. Honestly it's really complicated because you use a program you need and you just see it from the surface, you don't have the time to learn how things work in a slightly more linear way, it would take ages considering the fact you probably need other 10 programs like that. To me it looks just like modern programming is about grabbing different pieces of fragmented knowledge all around web forums, wikis (or chatbots, which for me are just the next way of giving up our ability to learn) and somehow making things work. I just get overwhelmed even when i take a look to a github page sometimes, even the frontpage has so much stuff you won't ever learn. Another thing is the online community is the most sparse thing, far from actual real communities there is, you can work with people who won't ever even talk to, and their contribute can be as sterile as just creating a pull request and then leaving forever. You are mostly on your own striclty speaking of human connections and ability to share ideas and feelings. I'm very fought because i somehow feel like i really love how certain ideals and creativity can be expressed with programming: i love that you can use something practical to solve idealistic, creative and technical problems. I love stuff such as digital etic, cypherpunk movemenet and all the work that opensource devs do to make the industry just a bit better, sometimes even receiving donations for their work, which for me is the highest form of payment, i've never seen someone more happy to pay for something as in the opensource community. But at the same time i'm starting to loathe technology and the internet because, adding on top of everything i said above about the sterility of the community, the difficulty to concentrate on a single thing and the dispersion there can be, i'm also dealing with a 10 years porn addiction since 5 years ago, progresses happens but are really slow and using my computer or phone is a huge trigger even if i'm trying my best to make them as minimal and not addictive as possible. Trust me, in a world designed to get you addicted to your hardware and software, being grown up used to doom scroll every day, it takes a huge amount of time and effort to have your things all sorted up to guarantee yourself a bit more privacy and software that is actually useful and doesn't want to keep you hooked, and at the same time don't be too much of a social outcast. You actually have to re-learn computer, or better saying, to actually learn computer for the first time, because you realize you can't just rely on having everything ready, set up, and just working from scratch without paying in some way, and the price that most big techs set is even higher, and far more subtle than just paying with money. The software industry right now is shit outside of the few developers that are actually building products FOR users, and not for money, and of course that does mean that if i follow my ideals, i won't nearly have these much economical opportunities as every "usual" developer gets. It's a huge headache having to deal with programs even when i do it for myself, i can't even think of doing that for someone else right now (with all the work and continuity that this requires) and i'm thinking if i should really put my efforts somewhere else.
fedilink



Xmanager stopped working - logged out since yesterday, can’t access
Other people are having the same issue, anyone knows if there's any solution out yet or if this is gonna be patched?
fedilink

What are good books about the philosophy of programming?
As a programming student i feel sometimes we go a bit too technical and we lose the philosophy and the main point of what we are doing. What are some great books (classics and none) to read on programming? I'm interested to the topic of programming and computer science in general but especially to the cypherpunk philosophy and to concepts like the story of internet, the philosophy that led to the beginning of it etc..
fedilink

You just need to reboot it manually


How to make a personal documentation environment?
Hi! I'm learning code: I've been doing a bit of JavaScript, and now i'm switching to TypeScript before going through frameworks. One thing i'm quite missing is the possibility to have a personal documentation environment: something that let me write documentation on what i'm learning WHILE writing code and following my courses, using something like typedoc or javadoc. I have been using Obsidian, that is good for markdown content, and i can generate docs with typedoc-markdown-plugin that i can then open on obsidian. However i would like to have both my code and my docs all togheter, not for a single project but for all the courses and little projects i'm doing, having it all togheter stored in one place, and possibly being able to share it as a portfolio in the future. I don't specifically need to show the code in this environment, i just need the docs to be visible and to be pointing to the specific sections of the environment holding my code (wich can be github links like the ones that typedoc automatically add). I would like to have one directory for each project containing both my code and my docs. Something like a programming digital garden! But integrated with tools that generate documentation from my code. I've tried the typedoc-hugo-plugin to host a static docs website with Hugo, but it's not quite mantained and came with a lot of bugs, like broken links. I'm trying to use Docusaurus and docusaurus-plugin-typedoc; it looks quite good, however i understood it is designed more to hold documentation for a single big project than for a series of small (learning oriented) projects. You need to configure each extra (more than one) docs folder to get it work properly, which is something i would avoid, if possible. I love all the TSdoc standard thing, but i don't really know how to put everything togheter.
fedilink

Do i really need 100 node modules to only get one to work?
This seem quite counter intuitive and to be bloating the project: i'm trying to install tsdoc linter, but npm adds like other 50 packages alongside with it, is this the expected behaviour? Why is it so? A project that could easily be 5MB ends up being like 60MB
fedilink


Should i learn JavaScript before Typescript?
I'm doing a JavaScript course, i got to know typescript and i definetely see it as a way better alternative and way of writing cleaner code in the usually messed up js. Anyway it's not quite clear to me what i should do now, because i understand javascript to a decent level, but i woul love to use typescript in the future for my projects.. It's knowing javascript in depth better or should i opt into a new course that teaches typescript in depth, if so, do you have any resources (free, paid courses, free docs like MDN or javascript.info) to suggest me? I'm following the "complete javascript course" from jonas schemdtman, that i got suggested from coding communities, on udemy, which is an 80 hours course that looks quite complete to me, it teaches about the js engine, its compilation style and its runtime too, not just the code, is there anything similar? My goal would be opting into typescript and really digging into it, really learning how it works on code level and behind the scenes.
fedilink

Had to deal with that this morning, my god what does git want me to do


Gotta say thar for someone who is currently following a JavaScript course this is pretty descouraging ahaha

I gotta say i also fell in that category of people trying to use JavaScript for stuff that is not exactly JavaScript suited. For example i’m writing a little script that changes markdown links in some files using the fs node, this is probably better suited to do in bash or other languages but the first thought was: i know a bit of JavaScript and that took a lot of time, what would be the point of learning a new syntax with all the stuff i will have to learn only on js!


May i ask why everyone hates JavaScript so much? It’s not ironic it’s a real question, i can’t really get it, is it just because it doesn’t have types? Or there’s more?


That looks way more than a home server, it looks like something i would expect to see for a small business!



I love the fact they included instructions for the average user 😂



Getting fatigued when learning coding
I really love computer science, coding and mostly all the amazing things you can do with this knowledge, i feel i finally landed in my world. I'm doing a Javascript course now and while it is really engaging to learn about how a language like that works and how to build with it, i'm getting quite tired and frustrated.. Now, i'd say i am quite meticulous when studying and i use some studying techniques to really integrate what i'm learning, but that means that 1h or even less lesson can take me all the time i have to study in a day to be understood, noted down and then repeated over the following days.. There are a lot of quite complicated concepts to understand and memorize, and, as i'm also working, sometimes it gets quite tiring. I feel like there's this huge amount of never ending work and concepts before i can actually start do something cool with the knowledge i have, and i really want to start doing something cool. I re-started to study after many years so i'd say it's also because of that if i'm not really used to it and i can't process much informations at the time. How can you get better into gaining knowledge? how can you prevent getting fatigued?
fedilink

This is just so beautiful!
I think maybe 3/4 of you already knew this, but it is just beautiful to see piracy represented in a nice song, still makes me dream of a free web 😢
fedilink

  • Play store blocking aurora store sessions
  • Reddit API changes
  • Youtube tests disabling videos for people who use ad blockers
  • this Twitter thing

Am i forgetting something?


Use deluge scheduler to seed when you’re asleep and you don’t need bandwidth!
Deluge has this nice plugin called scheduler that let's you program at which time the torrents should download/seed, if you have a small homeserver on something such as a raspberry pi you can just schedule deluge to work when you're asleep, this way you can seed/download while not impacting your bandwidth when you need it, very useful to really slow connections (like mine). This way you can keep seeding for months without even noticing!
fedilink



[Request] - A modded spotify that actually works and let you choose songs inside of playlists?
Title, everything i found online or didn't play or had this super annoying thing of having playlists without track chosing available. Spotube just crashes on my phone and it hasn't podcasts, which i need. (mobile spotify android app)
fedilink


In JavaScript, where are primitive types stored actually in the execution context?
The course i'm following says primitive types belong to the execution context in the call stack, but are they part of the context variable environment? I guess variable declarations would surely be part of the variable environment, but what about the other primitive types, like null or undefined? Do they need to be attached to a declaration or are they stored in as well?
fedilink

Isn’t this poetry after all? <3
![](https://feddit.it/pictrs/image/645eb26d-0acf-40fc-882a-61c56b1503ae.webp)
fedilink


What route should i follow if i wanna create a blog that auto-designs social posts and then auto publishes them on socials whenever a new article is added?
I work for an association and every time i get the material for a new blog post i need to format, publish it on the blog and then design different types of post for FB, IG and Telegram with their own formatting. That requires plenty of time and work. Ideally, i would love to create a blog where i can publish items ONE TIME, and then get social designs (with one or two alternative types of designs) and getting the text formatted right to be published. The website is on wordpress right now, but i'm studying webdevelopment and i would really love to remake it in plain code with HTML, CSS and JS / JS frameworks. I'm not seeking to do this on Wordpress, on the opposite i would like to move away from it. I know i would have to work with the APIs of the socials in order to get the content automatically published and with AI to get a quick text formatting: for example cutting some key parts of a text automatically. I have no clue for the design part, right now i'm using Canva but i always do pretty simple designs and all by hand. I know this is probably a pretty ambitious project but it would leave me with A LOT less work once all of this is correctly set up, and replicating this for other blogs would simply be awesome. How much is this makable? Would it require a lot of paid services, are the APIs usually free for such a small use? Where should i start from to learn how implementing the auto design part? Can a Junior webdeveloper do something like this in a reasonable amount of time, or are these pretty advanced skills?
fedilink

It happened to me too, multiple times. I guess we just need to take it slowly, one thing at the time and not forcing ourselves intowantinfg to learn everything


Anybody on the road of learning JavaScript wanting to make a group together?
Hi all! I am learning JavaScript and web development, and while i really like this road, i sometimes feel a bit alone following online courses and i think adding new brains would definetely help us to grow better, would anyone like to join and make a group where we share, learn and grow together? I feel like we need to build a better web after all this Reddit thing, why not start together from the fundamentals? We can do this on Telegram!
fedilink

In JavaScript: is the global object (window in browsers and global in Node) the higher end of the scope chain?
This is quite unclear to me, the definition of global object seem to be "The global object provides variables and functions that are available anywhere". Now this surely means that the global variable environment contains variables available everywhere in the other scopes, but does this also mean that, for example, the `window` object is at the higher end of the scope chain? As in JS everything is an object, is this true for the prototype chain too? Because from my notes `Object.prototype` looks to be at the top of the prototype chain. In fact if i do: ```Object.getPrototypeOf(window)``` i get `WindowPrototype { … }` but if i do: `Object.getPrototypeOf(Object.prototype)` i get `null` Another thing unclear to me is what is the difference between window (lowercase) and Window (uppercase).. I know that uppercases are usually used for constructors, is this the case too? Is Window a constructor and window an object? If so, what's the purpuose of the Window constructor?
fedilink