netvor

joined 1 year ago
[–] netvor@lemmy.world 2 points 2 weeks ago

No, but you could achieve similar effect by giving me a few billion $.

[–] netvor@lemmy.world 2 points 2 weeks ago (2 children)

Even more accurately: society is benefited by constantly exploring (and exercising) multiple different survival strategies (capitalism, collectivism, religion....) at the same time. These various strategies are inevitably in tension, producing tons of overall unhappiness.

Like an octopus spreading its tentacles, trying to explore every crevice of its environment, but sometimes accidentally bumping two or more tentacles together. Sure, the tentacles won't destroy each other but that's not the point: In this metaphor, we are merely the cells on the surface. Our suffering is just part of the whole organism trying to balance exploration with self-preservation.

[–] netvor@lemmy.world 2 points 2 weeks ago (1 children)

or a trainplane

[–] netvor@lemmy.world 4 points 2 months ago

Along with other things said here, people tend to "forget" that there's a real person on the other end.

I vaguely recall Nicholas Christakis talking about a study they made, where they created a bot which would simply remind people of the fact that there's a real person on the other end, and they found that it would help. (That study was done in some university platform and is centuries old in internet time, though. I think he spoke about it about 6 years ago on podcast with Sam Harris.)

[–] netvor@lemmy.world 5 points 2 months ago

/s means sarcasm.

(I myself don't find this one funny though...)

[–] netvor@lemmy.world 7 points 2 months ago

I don't have experience with Twitter or Mastodon but it reminds me of time when I quit drinking.

When I quit drinking and tried to stay around people I used to drink with, I realized really fast how pointless this "engagement" (really just two people speaking past each other, and feeling like they have deep conversation) is. It's almost insulting what a waste of effort such an "engagement" can be.

[–] netvor@lemmy.world 2 points 2 months ago* (last edited 2 months ago)

my go_to NamingCovention: ANYTHING but camel-case 🤮

[–] netvor@lemmy.world 3 points 2 months ago* (last edited 2 months ago)

When it comes to identifying the server, hostname the first thing that counts. lemmy.world or mastodon.social or google.com are three different hostnames. At this point you can basically treat the period as no special character, it's just part of the funny world. This basically answers your question: those are two different domains, ie. for all purposes, different instances.

However, your computer does not really connect to hostname but to IP address, so the next important thing is to translate the hostname to an IP address.

Aside: a valid hostname does not even have to have period in it. For example, localhost is a valid hostname! But generally hostnames without periods don't get translated to any useful IP addresses. localhost is probably the only one widely used hostname but your OS will translate it to a special IP address which marks your own device.)

So to translate the hostname to IP address is done using so-called DNS. So before you can connect, your computer already knows an IP address of a DNS server, and asks it to translate the hostname to IP address. Technically, this is still not where the period is strictly important.

Where the period does start to be meaningful is when you think about: so we have billions of IP addresses, billions of hostnames, how do we organize it all? Who is going to maintain the huge massive list?

So it works like this: There are dozens of organizations, each of which is assigned one or more "top level domains" (TLD). Then they are responsible for maintaining lists of all hostnames ending with those domains. Many of these organizations are local to certain states. For example, in Czech Republic, where I live, we have organization called CZ.NIC which maintains all domains ending with .cz. So it's up to CZ.NIC how it manages permissions and gives out the domains. In this case, basically anyone can register any free domain ending with .cz, and what this registration means is that now they can get a server with an IP address, run whatever they want and have the registered domain name point to that IP address.

Note that other organizations may decide to add additional rules. For example .uk domains are managed with extra rules, where non-government (commercial) entities are normally allowed to register only .co.uk and other .uk names are not handed out easily. I don't actually know the details about .uk but my point is that if you are going to think about a hostname and how to begin to understand who owns it, first thing that matters is the TLD, and from that point the rules might be slightly different. To be fair, I haven't seen much variance between this; almost all public TLD's I've seen were either "simple", meaning myname.tld or this thing that UK does (also New Zealand, from the top of my head).

One almost universal rule is, though, that if I, say, register seznam.cz with CZ.NIC, then I automatically get not only seznam.cz but also any address I can possibly come up which ends with .seznam.cz. foo.seznam.cz, bar.seznam.cz, www.seznam.cz, I can now start organizing my servers using this whole infinite space, with any number of extra periods. I could totally start a business and start promoting my server foo.bar.baz.whatever.cz on billboards, as long as CZ.NIC grants me whatever.cz.

So back to your question: mastodon.social and piefed.social are two completely different domains. All we know that they have in common is that whoever registered them, had to deal with the same organization; that is whoever maintains .social.

So TL;DR: there's really nothing that suggests that they would be the same instance.

[–] netvor@lemmy.world 1 points 2 months ago

Also in my experience LLM can often propose solutions which are working but way too complex.

Story time: just yesterday, in VueJS I was trying to iterate over a list of items and render .text of reach item as HTML, but I needed to process it first. Note that in VueJS this is done by adding eg. <span v-html="item.text"></span> where content of the attribute is the JavaScript expression needed to get the text.

First I asked ChatGPT to write the function for processing the text. That worked pretty well and even used part of the JavaScript API which I was not aware about.

Next, I had a "dumb moment" when I did not realize that as I'm iterating through items I can just say <span v-html="processHtml(item.text)"></span>, that's all I really needed. Somehow I thought (or should I say, "hallucinated", ba dum tsss) for a moment that v-html is special or something (it is used differently than the most abundant type of syntax). So I went ahead and asked ChatGPT how to render processed texts while iterating.

It came with a rather contrived solution which involved creating another computed property containing a list of processed texts. I started to integrate it into the existing loop: I would have to add index and use that index to pull the code from the computed property, which already felt a little bit weird.

That's when it struck me: no, no, no, I can just f*ing use the function.

TL; DR: The point is, while ChatGPT was helpful I still needed to babysit it. And if I didn't snap from my lazy moment, or if I simply didn't know better, I would end up with code which is more complex, more surprising, which means harder to reason about for both humans and LLM's. (For humans because now it forces you to speculate about coder's intent, and for LLM's because it's less likely to be reminiscent of surrounding code in its learning data.)

[–] netvor@lemmy.world 4 points 2 months ago

Well, I was thinking of a quote that was much more similar to what I wrote (and it's not in the video you linked).

I had such a trouble finding it that I'm starting to feel like it might be one of those "quotes" where the credited author never really said that, but I haven't completely given up :D

Here's one closer to what I paraphrased (but not quite it)--quoting an article from cio.com

While Linux pretty much dominates almost every walk of our lives, even on the consumer devices like smartphones and smart TVs, it has not had the same success on the desktop. What does Torvalds think about it? Is Linux a failure on the desktop? Not really. “The desktop hasn’t really taken over the world like Linux has in many other areas, but just looking at my own use, my desktop looks so much better than I ever could have imagined. Despite the fact that I’m known for sometimes not being very polite to some of the desktop UI people, because I want to get my work done. Pretty is not my primary thing. I actually am very happy with the Linux desktop, and I started the project for my own needs, and my needs are very much fulfilled. That’s why, to me, it’s not a failure. I would obviously love for Linux to take over that world too, but it turns out it’s a really hard area to enter. I’m still working on it. It’s been 25 years. I can do this for another 25. I’ll wear them down.”

78
submitted 3 months ago* (last edited 3 months ago) by netvor@lemmy.world to c/nostupidquestions@lemmy.world
 

I mean, everyone knows that in January it's hot in Australia, and in July it's cold there.

But do Australians call it "winter" in January and "summer" in July? Or does just "winter" imply hot weather and beaches, and "summer" implies ~~winter,~~ eh, i mean, snow sports and wool socks.

And given that, most of the population lives in northern hemisphere, is there a body of dad jokes and culture tropes related to the fact that "we're different", or is it just too cringe and boring. (I realize both could be true on this one.)

 

Every time I try to understand how forces which hold atoms and molecules together work, I find myself wanting to ask this question: why not the other way around? Could there be an atom which has electrons and neutrons inside, and protons outside?

It feels like a silly question, but is there something we know about the universe we live in that implies that this is not possible?

 

This is not strictly self-hosted but another approach I which is similar in philosophy, and which I actually prefer in many cases: hosted services.

--

So about 5 years ago I got fed up with having to update nextcould (or was it owncloud? I don't recall) so I was looking for a hosting service.

Initially I expected this to be a bit of a burden on my budget (especially if one scales with users), but to my surprise, I found OwnCube (owncube.de), where the price was about EUR 18 per year. Great deal. So I went ahead, set it up, tested for a while and eventually ended up configuring my parents' phones to use it for storing contacts & photos instead of Google.

To be clear, I did not use nextcloud myself directly. I had been already paying for fastmail, and it's perfect, except it's single-user, so for myself I kept using fastmail, just synchronizing fastmail (using vdirsyncer) and owncube nextcloud just to have a backup and also alternate interface.

This was working perfectly, until one day, it broke. It just stopped working (throwing some errors on sync). When I opened my web interface there was just this message, saying the nextcloud intrerface is not compatible with PHP 8.0+.

Seemed understandable: they updated the underlying server to PHP 8.0 but not the Nextcloud instance. Not superb, but fine, I'll just open a support ticket.

However, the ticket went nowhere. The support engineer kept repeating something that amounted to,

  • they needed to update PHP for security reasons,
  • the plan I subscribed to does not "come with auto-updates",
  • so

I am responsible for updating the Nextclould instance, not them.

That does not make sense. I don't have access neither to the instance nor to the updater. All I can do now is stare at the message. Their admin UI did not provide anything, either (some "magic" button, URL or SSH access).

I pointed it out but they kept repeating themselves and eventually explained that I can either cancel the service and start it again (pay again!) -- which will give me updated NC but my data will be erased, or I can "book auto-updater" which meant I should pay one time fee about 70 EUR (more than double my yearly plan).

That does not make sense. I understand that I chose the basic mini plan, I can't expect anyone to jump over hoops. I also perfectly understand that any software can break because of version mismatch (after all, I'm a software engineer myself). But nobody knows how many times per year that can happen, so if I have to pay extra every time then my plan is unpredictable.

Sadly the ticket went nowhere, the support sounded like a broken record, with "pay X amount of EUR here" link. Seems like a definition of holding my data hostage.

Eventually I decided to cancel the service.

--

So the morale, I guess..?

  • Be careful to whom you entrust your data

  • Don't get too tempted with great prices. Make sure you understand what is (NOT) included.

  • DO keep your backups.

    • For me, vdirsyncer worked great; it is a bit pain to configure and troubleshoot but the architecture is great and it gives you opportunity to sync between independent accounts and even plain text files, which can be a life-saver. (Even sync with google worked.)
  • Consider having more instances.

    • Eg. you could pay one and self-host one, use the paid one as a primary access point (public internet, usually much easier), and the self-hosted one as a backup.
    • Alternatively, one could even share a pool of instances with friends, split the bill and sync both ways.
    • (You will still need an almost-always-running cronjob somewhere to sync the data, if you're going with vdirsyncer approach.)
 

Is there some mature and usable application or tool that would enable tracking desktop activities to aid in time tracking?

Over 10 years (back when I used Windows at work), I recall I was using an app on Windows -- I forgot what it was, definitely closed source, although very well made -- that would sit somewhere in the tray and just track my activities (mostly just active window title and app), and later it would enable me to look back at the data, analyze it and categorize the time.

I recall that for my rather ADD-ish brain, this was a life-saver.

I don't recall name of the app, but it looked kinda similar like timeBro (judging just from brief look at their web page and their demo)

I haven't seen anything like that for Linux -- I admit I haven't really tried to search very hard. Given the vast diversity of desktops (from GNOME to KDE to i3), technologies (Xorg to Wayland...) and work environments (native apps, web browsers, flatpaks, command lines, IDE's, Vim's, even SSH servers) I wonder if it would even be feasible to have something like this that would work reliably everywhere-ish and provide really useful data.

 

This might be just EU thing, but is there an effective way to deal with endless "accept/reject cookies" dialogues?

Regardless of the politics behind, I think we can all agree that current state of practice around these dialogues is ...just awful.

Basically every site seems to use some sort of common middleware to create the actual dialogue and it's rare case when they are actually useful and user friendly


or at least not trying to "get you". At least for me, this leads to being more likely to look for "reject all" or even leave, even if my actual general preference is not that. I've just seen too many of them where clicking anything but "accept all" will lead to some sort of visual punishment.

Moreover, the fact that the dialogues are often once per domain, and by definition per-device and per-browser, they are just .. darn ... everywhere, all the frickin' time.

Question: What strategy have you developed over time to deal with these annoying flies? Just "accept all" muscle memory? Plugins? Using just one site (lemmy.world, obviously) and nothing else? Something better?

Bonus, question (technical take): is there a perspective that this could be dealt on browser technical level? To me it smells like the kind of problem that could be solved in a similar way like language -- ie. via HTTP headers that come from browser preferences.

view more: next ›