News for hackers. Stuff that matters.
Re:My productivity app for the past 12 years has been a sing... by ramraj07 on Saturday February 08, 2020 @01:56PM (#22277598)
That sounds quite elegant, but seems this is only possible if you work out of a single machine almost always. Perhaps it could be made into a service? As long as explicit effort is taken that there's absolute minimum extra effort as possible!
Re:My productivity app for the past 12 years has been a sing... by Stevie300 on Saturday February 08, 2020 @02:10PM (#22277695)
I handle this by aliasing `todo` to `vim scp://[my website]/~/todo.txt`.
Re:My productivity app for the past 12 years has been a sing... by dotancohen on Sunday February 09, 2020 @11:56AM (#22283002)
I've found that VIM 8's SCP does not support absolute or realpaths like SCP generally does. Thus to access the remote file at foo:/home/dotan/todo.txt or foo:~/todo.txt I would have to use `vim scp://dotan@foo/todo.txt`. Just a heads-up for anybody who wishes to try this.
Re:My productivity app for the past 12 years has been a sing... by aidos on Saturday February 08, 2020 @05:09PM (#22278794)
Wait, you can use scp as a protocol?!
Re:My productivity app for the past 12 years has been a sing... by d0mine on Saturday February 08, 2020 @11:00PM (#22280321)
Emacs' Tramp supports multiple protocols https://www.gnu.org/software/emacs/manual/html_node/tramp/Qu...

For example, to run a remote command using an inline org-mode source block:

    src_sh[:dir /ssh:host:]{some command}
Or to run code using a remote Jupyter kernel within Org-mode in Emacs:

  #+BEGIN_SRC jupyter-julia :session /ssh:ec2:/run/user/1000/jupyter/kernel-julia-0.6.json
  ...
  #+END_SRC
https://github.com/dzop/emacs-jupyter/blob/master/README.org...
Re:My productivity app for the past 12 years has been a sing... by TeMPOraL on Sunday February 09, 2020 @01:56AM (#22280805)
Oh, that remote execution is a neat trick. Thanks!

To cover the more trivial point for the non-Emacs readers: Tramp in Emacs makes it so that there's almost no difference between opening a file (C-x C-f) like this:

  /home/user/some-file.txt
and like this:

  /ssh:some-machine:/home/user/some-file.txt
and like this, if you need superuser rights:

  /ssh:some-machine|sudo:some-machine:/etc/someconfig
The subsystem in Emacs called Tramp makes this almost transparent; you edit your remote files as if they were local. There are occasional kinks with path translation in corner-case situations, like local Emacs editing remote source files and trying to load them into remote REPL, but those are rare and can be configured away. Dired (directory manager in Emacs) also works transparently over Tramp, so this essentially replaces SCP and graphical SFTP tools for me. You can even run GDB remotely over Tramp, which is a nice trick.
Re:My productivity app for the past 12 years has been a sing... by Izkata on Saturday February 08, 2020 @05:19PM (#22278886)
Re:My productivity app for the past 12 years has been a sing... by fzil on Saturday February 08, 2020 @05:47PM (#22279123)
wow, that's incredible. learn something new everyday.
Re:My productivity app for the past 12 years has been a sing... by war1025 on Saturday February 08, 2020 @04:11PM (#22278380)
I just keep a private git repo that I push the updates to after entering them.

I've gotten to the point that anything important enough to keep around I basically just put in a git repo somewhere.

Re:My productivity app for the past 12 years has been a sing... by duykhoa12t on Monday February 10, 2020 @10:25AM (#22289867)
Same to me. I store the note folder to a private gitlab repo, and write a bashscript function to commit and push the note.
Re:My productivity app for the past 12 years has been a sing... by yoz-y on Saturday February 08, 2020 @02:02PM (#22277630)
Two options would be: 1. put that file on dropbox or another syncing service. 2. have it on a remote server and ssh there first
Re:My productivity app for the past 12 years has been a sing... by freetanga on Saturday February 08, 2020 @02:10PM (#22277692)
I do this, with the machine being a VPS on Linode, plus an IPad 4G connectivity with Blink app to connect via MOSH almost anywhere on earth.

Logitech folio keyboard and Apple Pencil. Drawings also pushed to cloud.

Local backup to my own NAS and a S3 storage.

Works as a charm

Re:My productivity app for the past 12 years has been a sing... by irongeek on Saturday February 08, 2020 @02:19PM (#22277744)
I use text files and have for years. I use Syncthing to keep the text file available on all my machines.
Re:My productivity app for the past 12 years has been a sing... by kajmagnusmobile on Sunday February 09, 2020 @06:23PM (#22285041)
Also on mobile? Which editor do you use on mobile? I like syncthing
Re:My productivity app for the past 12 years has been a sing... by yjftsjthsd-h on Saturday February 08, 2020 @02:52PM (#22277938)
I just put my text files in version control. Push/pull, occasionally merge when I forget.
Re:My productivity app for the past 12 years has been a sing... by treebornfrog on Saturday February 08, 2020 @07:45PM (#22279670)
I save these text files to my desktop, call me old school.
Re:My productivity app for the past 12 years has been a sing... by yjftsjthsd-h on Saturday February 08, 2020 @10:49PM (#22280284)
But then you've only got it locally. The advantage to VCS is that you can trivially have it on multiple machines (desktop, laptop, android with termux). You can even do it between your own machines via ssh if you don't like "cloud" stuff.
Re:My productivity app for the past 12 years has been a sing... by kungtotte on Sunday February 09, 2020 @07:13AM (#22281735)
Using syncthing you can trivially have it everywhere as well, with only a one-time setup and no continuous need to manually commit changes and manually sync them (unless you're using hooks for your VCS to automate that I guess).
Re:My productivity app for the past 12 years has been a sing... by yjftsjthsd-h on Sunday February 09, 2020 @11:46AM (#22282939)
I use syncthing for non-text files, but I keep getting conflict copies. I could probably fix that by having one node always online, but text+VCS means that conflict resolution is built in.
Re:My productivity app for the past 12 years has been a sing... by smcnally on Saturday February 08, 2020 @11:08PM (#22280350)
A repo on github handles TODO.txt files from multiple machines fine, and better than gDrive or Dropbox. VSCode is now my main editor which makes git integration simple. I can also edit the file directly on github, though never do.