dontblink

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

Any suggestions on the how?

[–] dontblink@feddit.it 1 points 10 months ago* (last edited 10 months ago) (1 children)

It 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.it 1 points 10 months ago* (last edited 10 months ago) (2 children)

No 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.it 1 points 10 months ago

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.

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

I don't fucking care of having an even slimmer addictive machine in my pockets. Give me a phone that weights 400g but that has a fucking replaceable battery (that lasts 2/3 days), a good OS, doesn't track me and I can set up as I want.

[–] dontblink@feddit.it 5 points 11 months ago* (last edited 11 months ago) (1 children)

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

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

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.it 1 points 1 year ago (1 children)

Hi! First of all thank you so much for the detailed explanation!

What I'm trying to do is scraping some content.

Yes I'm trying to return all links (maybe in a vector), I have a list of elements (Select, which actually is scraper::html::Select<'_, '_>) which contain essentially html nodes selections, and I would like to grab each of them, extract the actual link value (&str), convert it into an actual String and push it firstly into a vector containing all the links and then in an istance of a struct which will contain several datas about the scraped page later.

I was trying to use a for loop because that was the first structure that came to my mind, I'm finding it hard to wrap my head around ownership and error handling with rust, using the if let construct can be a good idea, and I didn't consider the use of break!

I also managed to build the "match version" of what I was trying to achieve:

fn get_links(link_nodes: scraper::html::Select<'_, '_>) -> Vec<String> {
        let mut links = vec![];

        for node in link_nodes {
            match node.value().attr("href") {
                Some(link) => {
                    links.push(link.to_string());
                }
                None => (),
            }
        }

        dbg!(&links);
        links
    }

I didn't understand that I had to return the same type for each of the Option match arms, I thought enum variants could have different types, so if the Some match arm returns (), also None has to do the same..

If I try with a simpler example I still cannot understand why I cannot do something like:

enum OperativeSystem {
            Linux,
            Windows,
            Mac,
            Unrecognised,
        }

        let absent_os = OperativeSystem::Unrecognised;
        find_os(absent_os);

        fn find_os(os: OperativeSystem) -> String {
            match os {
                debian => {
                    let answer = "This pc uses Linux";
                    answer.to_string()
                }
                windows10home => {
                    let answer = "This pc uses Windows, unlucky you!";
                    answer.to_string()
                }
                ios15 => {
                    let answer = "This pc uses Mac, I'm really sorry!";
                    answer.to_string()
                }
                _ => {
                    let is_unrecognised = true;
                    is_unrecognised
                }
            }
        }

match is much more intuitive for a beginner, there's a lot of stuff which go under the hood with ?

[–] dontblink@feddit.it 24 points 2 years ago

It's the path of many of us here, now you will hate linux if you come from windows, give it a couple of months and you'll ask yourself how the fuck you could be on windows till now.

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

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

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

I will add another amazing alternative i've found, currently working great: https://www.distractionfreeapps.com/ This was exactly what i was looking for.

 

Other people are having the same issue, anyone knows if there's any solution out yet or if this is gonna be patched?

 

I've been proudly using Lineage OS with microg on my phone for a while now, and while it wasn't ideal, it was good for my daily use.

Now that i'm traveling, however, i really miss some important features, like a properly working geolocation service (i'm using the Mozilla one and it's slow and buggy), and a proper navigator, sad to say that google maps works just too well for certain things like buses or trains.

Magic earth was okay till i moved with car, i could get a position on google maps and then get there with my car and the navigator was working good, however when i need to move by foot or transports is terrible, it takes 10 minutes to find your position approximatively, only working with mobile data, and it doesn't follow you when you move..

So i found myself in some unhappy situations where i would need to rely on someone else's phone to not get lost in a city or to call an uber to my right location. I also got lost when i needed to move only by walking. Of course you can get wherever you want with older methods, like asking to people or signs, but sometimes you just need quick solutions that are reliable.

Is there any real way to use gmaps unonimously except that with the containerized version that graphebe offers?

I do not really want to buy a Pixel and give google more money.

 

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

124
submitted 2 years ago* (last edited 2 years ago) by dontblink@feddit.it to c/foss@beehaw.org
 

Buggy software, not so user friendly, things don't work, new things to learn..

Sometimes you just wanna do a simple thing and you cannot do it and that really undermines your self esteem.

You try to find little working solutions when big techs with armies of engeneers and programmers are working against you.

Aurora store stopping to work, apps getting blocked on lineage os or rooted phones, Reddit cleaning out all those amazing third party apps, Linux that wanna make you destroy your pc at times, Firefox remaining the only real alternative to chromium (only god knows for how long yet), google wanting to DRM everything, ig blocking my account because i was using barinsta (i cannot even delete it), Newpipe getting stuck after 1/4 of the video.

Sometimes you find half of your software stops working and you need to go and understand why, fixing or checking for alternatives..

Is it possible that we have from one side mass tracking and surveilance and from the other a (sometimes understandibly quite not organized) series of freely mainteined software.

Can't we just find a new way of monetize stuff without ads? So that we can build really nicely working software without all the shit that comes from the need of having to track the user? Are there real alternatives? We need to get organized and actually starting to build a better web and software, but i really think an economical incentive is still very much needed for it to be stable and usable by everyone.

Sorry this is more of a rant than a real post, sometimes everything really gets frustrating and you have to deal with much more serious shit in life that doesn't leave time for checking out why your Newpipe, your gps or home server doesn't work..

 

I wanna buy an ebook reader but i don't want any amazon or other companies shit in there, just something i can connect to my pc, pass ebooks in different formats into it and read.

 

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.

 

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

 

I see i can find a foss version on f-droid, and that's something not a lot of social networks can have, i don't really like all the crypto bullshit and ads testing they've been up to lately, but still looks better to me compared to what Reddit have done lately or what other platforms have done in these years..

I don't know about their privacy feature, but i wouldn't trust their chat as for as far as i knew they were not end to end encrypted some time ago (except for secret chats).

Anyway it still looks like one of the at least still decent platforms out there, or am i wrong?

 

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.

 

I've been using linux for some time now, i would still say i'm quite a noob but i've tried different desktop environments, for my experience i found GNOME to always be suited for me, anyway i heard many good opinions on KDE and i would love to try that too, i've tried cinnamon before and couldn't really see myself using it, i've seen Kubuntu and looks quite lovely, what's in your opinion the distro that best implements KDE on Debian or preferably Ubuntu?

 

I reaserached for hours but it looks like since they added typesense the 32-bit armv7 is no longer supporterd with docker.

I have a raspberry pi 4b with Raspbian installed which sadly is 32 bit, even the docked docs say they require a 64 bit, but i heard people usually habe no trouble setting up docker packages in a 32 bit.

Docker is the only way to install Immich right now, i tried to install an older version without typesense but docker can't find the package for those ("unknown") pheraps because it's a pretty old version.

I wonder if someone had the same problem and found a solution outside of that crazy dude in the repo discussion that managed to get it running somehow compiling it on its own.

 

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?

view more: ‹ prev next ›