Hacker Newsnew | past | comments | ask | show | jobs | submit | hurflmurfl's commentslogin

I'm using the nextcloud app on my android, and for my Linux systems I mount WebDAV using rclone, with VFS cache mode set to FULL. This way I can: 1. Have the file structure etc synced to local without downloading the files 2. Have it fetch files automatically when I try to read them. Also supports range requests, so if I want to play a video, it sort of streams it, no need to wait for download. 3. If a file has been accessed locally, it's going to be cached for a while, so even if I'm offline, I can still access the cached version without having to verify that it's the latest. If I'm online, then it will verify if it's the latest version.

Overall, this has worked great for me, but it did take me a while before I set it up correctly. Now I have a cache of files I use, and the rest of the stuff that I just keep there for backup or hogging purposes doesn't take disk space and stays in the cloud until I sync it.


Sine you are mounting and not syncing the files, what happens when you edit a file offline? And what if on another offline device the file is also edited?


Fair question. Conflicts happen, which I'm fine with.

Realistically speaking, most files I have in my cloud are read-only. The most common file that I read-write on multiple devices is my keepass file, which supports conflict resolution (by merging changes) in clients.

Also used to happen when I tried editing some markdown notes using obsidian on PC, and then using text editor (or maybe obsidian again?) on android, but I eventually sort of gave up on that use-case. Editing my notes from my phone is sort of inconvenient anyway, so I mostly just create new short notes that I can later edit into some larger note, but honestly can't remember the last time this happened.

But yes, if not careful, you could run into your laptop overwriting the file when it comes online. In my case, it doesn't really happen, and when it does, Nextcloud will have the "overwritten version" saved, so I can always check what was overwritten and manually merge the changes.

P.S. If anyone wants to set this up, here's my nixos config for the service, feel free to comment on it:

  # don't forget to run `rclone config` beforehand
  # to create the "nextcloud:" remote
  # some day I may do this declaratively, but not today
  systemd.services.rclone-nextcloud-mount = {
    # Ensure the service starts after the network is up
    wantedBy = [ "multi-user.target" ];
    after = [ "network-online.target" ];
    requires = [ "network-online.target" ];

    # Service configuration
    serviceConfig = let
      ncDir = "/home/username/nextcloud";
      mountOptions = "--vfs-cache-mode full --dir-cache-time 1w --vfs-cache-max-age 1w";
    in {
      Type = "simple";
      ExecStartPre = "/run/current-system/sw/bin/mkdir -p ${ncDir}"; # Creates folder if didn't exist
      ExecStart = "${pkgs.rclone}/bin/rclone mount ${mountOptions} nextcloud: ${ncDir}"; # Mounts
      ExecStop = "/run/current-system/sw/bin/fusermount -u ${ncDir}"; # Dismounts
      Restart = "on-failure";
      RestartSec = "10s";
      User = "username";
      Group = "users";
      Environment = [ "PATH=/run/wrappers/bin/:$PATH" ];
    };
  };


Right, but then you need to learn the right motions well, motions that will make sense at the final speed. I suppose it's one of those things that are made easier by having a teacher.


For me, searching for "whistle" on play store, I get the app as the third result (ignoring sponsored crap). Searching for "blazingbanana" gets me the app as the first result".

App info shows 218MB size, which I suppose is about what I'd expect for a model+app code :shrug:


Good to know, it's hard to know what real users would see in the play store and not Google just showing you what you want. Thank you for checking it out


This is actually the first plugin I install on every new installation of a Jetbrains IDE... Used to include it in my "mentoring about advantages of IDEs" rants, just before configuring debugger.


So after building my latest rig and crazily getting a lot of driver issues related to network I've finally ditched Windows for Linux. While trying to figure out how to keep track of all the system changes I make in case I change my distro and need to set up my system yet again, I came across Nixos, which has been working out pretty well for me.

The issue I'm currently battling with is how do I connect my cloud drive (self hosted nextcloud) to the system in a way that it worked on Windows, and so far no luck. Once I figure it out (if at all), it's going to be perfect.

Surprisingly, even gaming works just fine via steam. I've been able to play whatever I have in my library by "forcing compatibility tool" ( which is proton). Colour me impressed.

Now I just need to confirm that I can run my country's official program for tax-related stuff via wine and I'll have no regrets.


A bit funny, but I personally found "please learn to never..." to be MUCH more off-putting and patronizing than the "why not just...".

Maybe just something about the latter being interpreted as a question, and the former being interpreted as an order.


The link to the "competitor" is front and center on the site, so I imagine what you're really trying to say is that this is NOT a competitor for the following reasons: <missing>.

Otherwise this seems like a bait question:)


Andras (who created both Serverless Horrors and Coolify, which I imagine you're describing as the competitor here) is a pretty solid guy from everything I've seen and I've never seen him ask bait questions or engage in bad faith in discussions here or on other platforms.

Although he calls Coolify a Netlify 'alternative', it's 100% 'bring-your-own-server', and is not at all serverless. Coolify is basically a (very nice and featureful) fancy frontend to Docker with integration with Git.

Coolify is free if you want to install it yourself and don't mind the (minimal) tinkering needed to get it set up and keep it up-to-date, although you can pay a monthly fee to have your own servers managed for you, the main benefits are either to support continued development, or to access priority support. You still need to bring your own server, even if you're paying the management fee.

It's not a competitor to Netlify, it's an alternative.


Just to clarify, I didn't think that Coolify is a competitor.

What I was getting at is that we now have a thread with 4 replies: (1) you pitch competing product (2) what product? (3) Coolify (4) it's not competitor because ...

I just wanted to point out that comment #2 only seems to prompt question #3, whereas the helpful reply #4 created by yourself obviates the need for #2 and #3.


The reason it won't really work for gamedev or complex software is that the risk of the business isn't really in the product-market fit, but rather in stellar execution.

If your business idea is dependent on being able to do a complicated thing, then a POC or a demo might make more sense for testing the waters and seeing if there's any technical impediment to the idea


Not sure if you're just trying to troll, but you don't get elected into any Duma if you're from the opposition.

In fact I don't remember there being any real (elected) opposition in Russia, the "multiple parties" have always just been a theater. Like maybe some of the smaller parties would sometimes manage to push some insignificant agenda, but the important issues would always be controlled by the actual leadership in power.


No it was a genuine question. Did his party win any seats at any election at all?

Call me old school, i am a bit skeptical of single perspective foreign country coverage after the Iraq war lies and NYT’s fawning coverage of Stalin’s Russia.


Russia is not a democracy. I doesn't matter if he won any elections.


Why do you say so? They seem to have regular elections and voter turnout seems decent (per wikipedia).


Elections where candidates are murdered or barred from participating? Those aren’t elections.


I was not aware of these. Were they barred through court process (like we are trying to bar Trump through judicial process) or was it extra-judicial, arbitrary? Don’t they have the equivalent of the election commission.


Yep. They have election commission, appointed by 1/3 putin, 1/3 by duma (with putin's party dominating it), 1/3 by "soviet of federation" which is comprised of governor representativs of governors appointed by putin (in Russia you can not vote for your governor). So, completely independent institutuion, I suppose...


What good are elections if you jail or straight up murder the dissents/opposition? It’s a complete joke. Navalny was also poisoned in 2020 he almost died on a commercial flight that had to be diverted.

Look up also the amount of journalists murdered there, that isn’t a democracy.


I feel like this only makes sense in the US. As a non-US person, I still find it weird when people show up on video calls wearing hats (e.g. caps) at home.


What about an "On Air" light instead of the hat?


I'm now retired but headphones were my invibility hat. I was easy for the kids, headphones means daddy is not home, it was harder for my wife.


"honey, just write me on Slack if I'm wearing headphones." - not even sure if I'm being satirical or not.


this is 100% real life 0% satire, and doesn't work in a not-funny-at-all way if your partner is not a remote office worker. source: a friend


This is what I've wanted to have outside my office for a very long time.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: