News for hackers. Stuff that matters.
Re:Keeping a plaintext “did” file by Tade0 on Monday July 16, 2018 @07:49AM (#17540513)
I used to keep a so-called shitlist for a long term project I was involved in.

The idea was to document all the worst places in the codebase(150k LOC) that frequently caused weird behaviours.

Each record contained a short description, the reason why this piece is bad, hash of the commit that introduced it and of course the perpetrator.

Of course the main purpose it served was to relieve stress, nevertheless it helped me with my work a few times.

One could ask why didn't I just refactor these pieces right away? Two things often stopped me from doing this: first, some of those lines were over eight years old and a huge part of the system depended on their sometimes buggy behaviour. Second, the company review policy was "stability, stability, stability", so any change beyond the scope of the thing I was working on was automatically rejected.

Re:Keeping a plaintext “did” file by mholmes680 on Monday July 16, 2018 @08:04AM (#17540604)
I've done the same, although, i just put it right in the code:

TODO, REDO, DONE with the corresponding JIRA ticket ID for extended mental notes (Pull Request fits here too). IDEs can grok all that together so you can quantify the bad stuff in the code, which can help management make better decisions.

Re:Keeping a plaintext “did” file by Tade0 on Monday July 16, 2018 @08:17AM (#17540669)
I would do the same if I weren't afraid of coming off as passive-aggressive given that I voiced my opinions in the past but received a reply in the vein of: "We're aware that this old code is really bad, but with our constrained resources we need to prioritize keeping this boat afloat.".
Re:Keeping a plaintext “did” file by noxToken on Monday July 16, 2018 @09:27AM (#17541076)
I keep mine locally. I have the PlainTasks[0] package installed for Sublime Text. It's a plaintext file with a bit of TODO functionality baked in. When I find something, I note the commit, the line (or block), and why I want to fix it. I try to slightly estimate high enough that I could throw some fixes in for the sprint.

[0]: https://github.com/aziz/PlainTasks

Re:Keeping a plaintext “did” file by contravariant on Monday July 16, 2018 @09:49AM (#17541204)
At some point you do need to stop baling water and actually plug the hole though.
Re:Keeping a plaintext “did” file by corey_moncure on Monday July 16, 2018 @11:35AM (#17542106)
Nah. The bridge crew all have executive lifeboats. No biggie if the ship goes down.
Re:Keeping a plaintext “did” file by sillyquiet on Monday July 16, 2018 @02:38PM (#17543779)
To completely and hyperbolically torture this metaphor, as long as you whip the galley slaves to row fast enough so that you can jump to safety on "Short Term Stock Gain" Island, you'll be fine.
Re:Keeping a plaintext “did” file by JustSomeNobody on Monday July 16, 2018 @10:37AM (#17541579)
They should teach this at MBA school. But they don't.
Re:Keeping a plaintext “did” file by Lio on Monday July 16, 2018 @11:10AM (#17541869)
As well as the many IDEs and editors that support these comment tags, Ruby on Rails (and I'm sure other frameworks also) provides direct support for these.

  rails notes
Will return you a little text report that you can use in your CI or anywhere else that groks text.
Re:Keeping a plaintext “did” file by roryisok on Monday July 16, 2018 @08:52AM (#17540886)
I used to do this in visual studio, it had a task list view that would aggregate all the comments that start with 'TODO'. Since I made the move to VSCode I haven't found anything similar.
Re:Keeping a plaintext “did” file by janlaureys on Monday July 16, 2018 @09:11AM (#17540995)
Re:Keeping a plaintext “did” file by roryisok on Monday July 16, 2018 @03:14PM (#17544110)
Thank you!
Re:Keeping a plaintext “did” file by s-shellfish on Monday July 16, 2018 @08:43AM (#17540833)
> Of course the main purpose it served was to relieve stress, nevertheless it helped me with my work a few times.

That seems more preferable to becoming what essentially amounts to becoming a mouth piece for potential areas of preference (error?) in software design.

Re:Keeping a plaintext “did” file by co_dh on Monday July 16, 2018 @08:01AM (#17540583)
I would call it notes.txt to make it more positive. Bad code is everywhere, and don't let them make you sad.
Re:Keeping a plaintext “did” file by Tade0 on Monday July 16, 2018 @08:10AM (#17540637)
Actually the fact that I finally had an outlet for my frustrations was very cathartic. It was a lot like writing sad poetry over lost love.
Re:Keeping a plaintext “did” file by jdironman on Monday July 16, 2018 @08:15AM (#17540652)
Or the epilogue to my life spent indoors fixing bad code.
Re:Keeping a plaintext “did” file by Arubis on Monday July 16, 2018 @12:05PM (#17542374)
That may be the most depressingly truthful description of software development I've ever run across.
Re:Keeping a plaintext “did” file by henrik_w on Monday July 16, 2018 @03:57AM (#17539513)
I keep a bugs.txt text file (complete with alias for opening it), in which I record particularly difficult or tricky bugs. It's a really good way to learn from hard bugs. At the top of the file I have a template that I copy each time I add an entry. It has the following fields:

Date:

Symptom:

Cause:

How found:

Fix:

Fixed in file(s):

Caused by me:

Time taken to resolve bug:

Lessons:

I've used this system for 15 years now (210 entries), and it's been very helpful, especially for lessons learned.

More here: https://henrikwarne.com/2016/04/28/learning-from-your-bugs/

https://henrikwarne.com/2016/06/16/18-lessons-from-13-years-...

Re:Keeping a plaintext “did” file by theptrk on Monday July 16, 2018 @10:32AM (#17541517)
"By writing down an entry in the bugs file for each interesting bug, I find that I learn much more easily. There is something with the act of writing that makes me think more deeply about what happened." - linked post

I like this a lot, I've been using my blog as an extension of my brain and the act of formulating a single post about a text file forced me to clarify my thoughts. Ill try this the next time I find bugs. Also +1 for split keyboards!

Re:Keeping a plaintext “did” file by tempay on Monday July 16, 2018 @07:40AM (#17540467)
From your 18 lessons learned post:

> 6. Changing assumptions

My solution for this is to litter my code with "assert" which acts to both document the assumptions and prevent them sneaking past the point where the assumption was made.

Re:Keeping a plaintext “did” file by tga on Monday July 16, 2018 @08:19AM (#17540682)
Depending on the language, they might not prevent anything because asserts can/will be ignored in production. See for example Java, python -O.
Re:Keeping a plaintext “did” file by dotancohen on Monday July 16, 2018 @08:35AM (#17540784)
That's exactly why assert() is used and not if(). It is meant to be ignored in production in places where one would traditionally do `if (foo) { // This should never happen }`. Production code throws no Exception, in 20 ms the trajectory is recalculated anyway, and everybody is happy. Happens in testing or staging? The exception is logged and fixed.
Re:Keeping a plaintext “did” file by dotancohen on Monday July 16, 2018 @08:38AM (#17540797)
I do something similar, but take note of language-specific features which cause or could prevent the bug. I find lots of the tricky bugs are due to language peculiarities.

Oh, and the file is called entomology.txt because it's more about studying them then logging them.

Re:Keeping a plaintext “did” file by co_dh on Monday July 16, 2018 @08:02AM (#17540590)
You have only 210 bugs in 15 years?
Re:Keeping a plaintext “did” file by henrik_w on Monday July 16, 2018 @08:16AM (#17540664)
"particularly difficult or tricky bugs"
Re:Keeping a plaintext “did” file by ajuc on Monday July 16, 2018 @03:21AM (#17539375)
Similar but not the same: most days day at work I create one or more txt files in notepad (kate to be exact) where I paste every temporary info while I work on some task. Basically everything that doesn't go to git, and you have to keep somewhere while you're working on it:

- nonobvious terminal commands or small scripts I had to write

- fixes for enviromental/configuration problems

- fragments of stacktraces

- fragments of log files

- packages that needed to be installed

- short todo lists I created while doing sth

- links to webpages I found that had a solution to my problem

- profiling results for solutions I compared

- parts of emails I copied to focus on the important fragments with stuff to check/fix

- names of temporary branches created when working on the problem

- xml fragments from some requests I copypasted to kate to prettify it

There's no structure and no plain English descriptions in these files, just bunch of copypasted stuff separated by a few empty lines in a text file.

I have to keep these things somewhere anyway while I work on them, and pasting them in one file that I later save in one directory preserves them for future. I call the file yyyymmdd_some_keywords.txt.

I don't bother to describe the task in plain English, the stuff that's copypasted there is enough for context, I can also check git from same date if something's not clear. The most important thing is - there's no overhead, just open the file when starting a new task, keep it opened while you work on sth and save it when you finish. So I have hundreds of these files after a while, and when I encounter some problem I can quickly grep to check if I seen similar stacktrace before and what it was about.

Before I started doing this I had several instances of déjà vu - I could swear I've seen this problem before but can't remember what it was about and how it was solved.

Re:Keeping a plaintext “did” file by idiomatic1 on Monday July 16, 2018 @05:01AM (#17539754)
Vimwiki diary, `\\w` to go to today's file, and even get syntax highlighting blocks for anything vim knows about.
Re:Keeping a plaintext “did” file by kchr on Monday July 16, 2018 @08:33AM (#17540764)
Vimwiki user but unaware of this feature. TIL!
Re:Keeping a plaintext “did” file by TheSpiceIsLife on Monday July 16, 2018 @04:58AM (#17539742)
If it's appropriate, would it be easier to use a clipboard enhancer that writes everything you copy to a file?

I use ClipX at work (Windows), fairly sure it has a logging feature, and I think it can be told not to record from password fields; and Flycut at home (Mac) but Flycut doesn't seem to have logging.

Re:Keeping a plaintext “did” file by kchr on Monday July 16, 2018 @08:32AM (#17540752)
Hmmm, everything? Unless you write perfectly all the time, that clipboard/file would be full of near-duplicates, corrections, copy/pastes, etc....

It would be a mess for me at least ;-)

Re:Keeping a plaintext “did” file by dserodio on Monday July 16, 2018 @10:52PM (#17546934)
That's a great way to end up with your passwords in a plaintext file
Re:Keeping a plaintext “did” file by jiscariot on Monday July 16, 2018 @01:24PM (#17543043)
This is very similar to what I do as a sys eng. I call them weekly's, store them as [date].txt and use notepad++ to compose. I separate stuff with #########[brief desc/todo] and save the all the random tidbits, logs, dumps, presentation outlines, requests, urls, etc.

I have a script that copies them up to my backup drive and Windows full-text indexing is enabled on the folder, so it is easy to search all the content from the start menu. It helps me because my memory is not the best...your point on the deja vu is right on.

The stuff that ends up being really helpful, such as some long bash command, PS for querying AD, complex DB queries, etc. get promoted to helpful_notes.txt.

Re:Keeping a plaintext “did” file by aiCeivi9 on Monday July 16, 2018 @04:57AM (#17539736)
> Basically everything that doesn't go to git, and you have to keep somewhere while you're working on it

That way I end up with 100+ unnamed files in notepad++. At least it is searchable.

Re:Keeping a plaintext “did” file by thinkingemote on Monday July 16, 2018 @06:06AM (#17540020)
I have used a Google Doc for this, as it has ability to copy in screenshots. However a large project with lots of stuff makes it lag
Re:Keeping a plaintext “did” file by prepend on Monday July 16, 2018 @08:57AM (#17540917)
Same here. But haven’t found an effortless way to append from the shell file like author. As a result, I have more days without entry than days with.

I looked at Google’s scripting and didn’t see an easy way to open and append text like timestamp.

I used something similar and just appended a file in Dropbox, but I have a few locations that don’t allow Dropbox mounted.

Re:Keeping a plaintext “did” file by criddell on Monday July 16, 2018 @08:34AM (#17540778)
That's a better idea than in local text editor if you are working in Windows. My machine has a way of deciding to reboot on precisely those days that walk away with something open that I don't want to lose.
Re:Keeping a plaintext “did” file by kiwicopple on Monday July 16, 2018 @10:22AM (#17541432)
Notepad++ might be your friend in this situation. It auto saves the doc (even if you haven’t ‘saved’ it yourself)
Re:Keeping a plaintext “did” file by dev_north_east on Monday July 16, 2018 @08:44AM (#17540839)
Microsoft OneNote is good for this.
Re:Keeping a plaintext “did” file by trampi on Monday July 16, 2018 @03:53AM (#17539494)
Thank you for sharing. It is simple and efficient. I did something like this on a "per-ticket"-basis but did not really thoughtful use it. I will definitely try this again with more focus on putting all necessary/related information in it - I included only a fraction of the relevant information.
Re:Keeping a plaintext “did” file by jonathanpoulter on Monday July 16, 2018 @06:37AM (#17540174)
I am constantly approached with adhoc requests, often unrelated to the application I work on, probably more of these than actual ticket items.

I've started to number these myself in my own ticket system where I keep scripts, screenshots and logs etc. but I'm using OneNote, because it's so unrestrictive.

Re:Keeping a plaintext “did” file by koliber on Monday July 16, 2018 @04:44AM (#17539690)
I do the same thing, directly in the ticket comments. It turns into a nice journal, interconnected with other issues, and laid our in time.
Re:Keeping a plaintext “did” file by superkuh on Monday July 16, 2018 @10:52AM (#17541716)
Back in the late 1990s and early 2000s I experimented with a number of complex rich text, database, and proprietary formats for my notes files. It was a disaster in terms of long term accessibility. Since ~2004 or so I've used exclusively a single plain text file with embedded filepaths if media references were required.

This has worked far better and now offers a remarkable resource for both nostalgia and getting stuff done. It's huge and search is pretty much the only way through it but I still add every day.

Plain text is best. I feel that even using vim to automate time stamps is too complex. I just write it once by hand. It's easy and literally takes half a second.

Re:Keeping a plaintext “did” file by orev on Monday July 16, 2018 @01:14PM (#17542967)
You might be interested in the vimwiki plugin. The diary feature automatically creates pages per day named with a datestamp. Grep to search.
Re:Keeping a plaintext “did” file by mikestew on Monday July 16, 2018 @01:26PM (#17543054)
+1 for vimwiki; all plain text, with some light organization sprinkled on top. I've gone the OneNote/Evernote/GoodNotes route and keep coming back to vimwiki. If I could find a non-kludgy way to get it on iOS, my grail will have been found.

You don't even need grep, as vimwiki has built-in search:

":VWS /pattern/

    Search for /pattern/ in all files of current wiki.

    To display all matches use |:lopen| command.

    To display next match use |:lnext| command.

    To display previous match use |:lprevious| command."
Re:Keeping a plaintext “did” file by beaugunderson on Monday July 16, 2018 @06:08PM (#17545593)
i have a folder of plain text files that i use as my notes (my understanding is that vimwiki stores them the same way); i store them in a folder in my dropbox and use 1Writer as the iOS interface to them; it works very well!
Re:Keeping a plaintext “did” file by camnora on Monday July 16, 2018 @03:55PM (#17544536)
I'm also searching for a good solution on iOS.

My current kludgy method is to upload the files to S3 and hit my tiny flask server via WorkflowApp to read the contents. It's not great, but achieves what I need it to do.

Re:Keeping a plaintext “did” file by chucksmash on Monday July 16, 2018 @03:29AM (#17539403)
I've settled on a couple of helper functions in bash to accomplish a similar thing (daily journaling):

  #######################################
  # Normalizes date arguments            
  # Globals:                             
  #   None                               
  # Arguments:                           
  #   date (defaults to today)           
  # Returns:                             
  #   string of format 'YYYY-MM-DD'      
  #######################################
  function getDate {
      local DATE=${1:-$(date -I)};
      if [[ "${DATE}" =~ [+]+ ]]; then
          DATE=$(date -I -d" ${DATE} days");
      elif [[ "${DATE}" =~ ^- ]]; then
          DATE=$(date -I -d" ${DATE} days");
      elif [[ "${DATE}" == "tomorrow" ]]; then
          DATE=$(date -I -d" +1 days");
      elif [[ "${DATE}" == "yesterday" ]]; then
          DATE=$(date -I -d" -1 days");
      fi
      echo "${DATE}";
  }
  
  #######################################
  # Load a journal file                  
  # Globals:                             
  #   None                               
  # Arguments:                           
  #   date (defaults to today)           
  # Returns:                             
  #   None                               
  #######################################
  function journal {
      local DATE=$(getDate "$1");
      emacs ~/notes/journal/${DATE}.md;
  }
Re:Keeping a plaintext “did” file by hk__2 on Monday July 16, 2018 @05:41AM (#17539912)
Nitpick: here you can use a `case` instead of `if [[ ... ]] elif [[ ... ]] elif ...`:

    case "$DATE" in
      +*|-*)
        DATE=$(date -I -d" $DATE days") ;;
      tomorrow)
        DATE=$(date -I -d" +1 days") ;;
      yesterday)
        DATE=$(date -I -d" -1 days") ;;
    esac
Re:Keeping a plaintext “did” file by geraldbauer on Monday July 16, 2018 @03:01AM (#17539302)
Great idea. Welcome to the .txt family. A while ago I published Journal.TXT - a single-text file format for journals and the human multi-document format for writers. See https://journaltxt.github.io

PS: I also started Awesome .TXT - A collection of awesome .TXT tools, formats, services, tips & tricks and more. See https://github.com/officetxt/awesome-txt

Re:Keeping a plaintext “did” file by vram22 on Monday July 16, 2018 @02:44PM (#17543830)
Just checked it out a bit today. Looks like a lot of good stuff there. Thanks for sharing.
Re:Keeping a plaintext “did” file by sciurus on Monday July 16, 2018 @01:13PM (#17542961)
For a decade or so, I've been using `vim -o ~/{todo,progress,done}`

That gives me vim with three splits. Every day I add a new heading with the current date in the bottom split, then in the top one I list the things I plan to do that day. As new urgent work comes in throughout the day, I add it to the top split too. When I start working on something, I move it to the middle split. If I have to shift between tasks, I'll keep their entries in the middle split up to data with what i've done, next steps, etc. When I finish something, I move it from the middle split to the bottom split.

You can see a sample at https://imgur.com/a/jNa5Qp3

This helps me

* plan how much I can accomplish in a day

* limit the number of things I'm doing at once

* remember context when i do have to multitask

* explain to others (e.g. my manager) what i've been working on

Re:Keeping a plaintext “did” file by ecto on Monday July 16, 2018 @03:04PM (#17544006)
This is great! I might end up doing something like `alias todo=vim -o ~/{todo,progress,done}`

edit: I was curious so pulled up the man page: changing -o to -O opens the windows horizontally stacked.

Re:Keeping a plaintext “did” file by sciurus on Monday July 16, 2018 @06:06PM (#17545581)
Yep, -o will have your work flow top to bottom, -O will have it flow left to right. I prefer the former because it gives me more horizontal space on each line.
Re:Keeping a plaintext “did” file by theptrk on Tuesday July 17, 2018 @12:18AM (#17547278)
This is so funny. It’s almost like a kanban board in vim. What’s your strategy for saving the files?
Re:Keeping a plaintext “did” file by sciurus on Tuesday July 17, 2018 @12:14PM (#17550739)
Nothing fancy. I keep this vim window permanently open at a fixed position. Roughly once a day I remember to save them. I archive the files and start fresh every time I switch jobs.
Re:Keeping a plaintext “did” file by ocharles on Monday July 16, 2018 @03:23AM (#17539381)
For those who use Emacs, org-capture is probably the way to go: https://orgmode.org/manual/Capture.html#Capture
Re:Keeping a plaintext “did” file by robertkrahn01 on Monday July 16, 2018 @04:30AM (#17539631)
Plus org-clocking, easy time keeping and also offers easy aggregation for reviews. It is really interesting to see after a while how much time was spend at various activities...

https://orgmode.org/manual/Clocking-commands.html

Re:Keeping a plaintext “did” file by philsnow on Monday July 16, 2018 @02:19PM (#17543605)
here's an example of the kind of summary information you can generate over time:

https://snap.philsnow.io/2018-07-16T11-15-11.9p5nrv1j2ohavi6...

I once was really good about keeping notes like this, but I stopped when I couldn't integrate it very well with the flavor-of-the-day bug tracker my team used.

Re:Keeping a plaintext “did” file by dmortin on Monday July 16, 2018 @04:30AM (#17539628)
Org caputre is great. Also, helm-org-rifle is an excellent way to quickly find something in your notes:

https://github.com/alphapapa/helm-org-rifle

You can give mulitple search terms to search for them in any order with instant results when typing.

Re:Keeping a plaintext “did” file by na85 on Monday July 16, 2018 @08:39AM (#17540802)
Honestly even without using org-capture, org mode is perfect for a "did.org" file.
Re:Keeping a plaintext “did” file by posixplz on Monday July 16, 2018 @10:50AM (#17541704)
Yep. I'm amazed by how many different hacks, tools, and one-offs get proposed in threads like this when an amazing plain-text note/organization/GTD/life management ecosystem already exists and is supported by endless configurability. Of course, we're talking about org-mode.

(Religious org-mode user for approximately four years.)

Re:Keeping a plaintext “did” file by na85 on Monday July 16, 2018 @11:08AM (#17541859)
I'm perpetually saddened because I work in aerospace where the IT policies are quite restrictive due to security clearances and whatnot, so I'm stuck on windows and can't install emacs :(

Every few months I toy with the idea of implementing a poor man's org-mode in VBA.

Re:Keeping a plaintext “did” file by gmfawcett on Monday July 16, 2018 @12:58PM (#17542822)
Emacs doesn't have to be installed on Windows, strictly speaking... you can run it out of a subdirectory without using an installer. IIRC the Windows installer just sets up some registry keys that make life a bit more convenient, but they aren't blockers to actually running the application.
Re:Keeping a plaintext “did” file by posixplz on Monday July 16, 2018 @12:56PM (#17542807)
That's tough, especially because emacs + org-mode is most usable when combined with a few melpa packages. Even if you could get emacs installed, you'd (probably) want melpa packages to make it more usable.
Re:Keeping a plaintext “did” file by theptrk on Tuesday July 17, 2018 @12:22AM (#17547291)
Is there a great intro to org mode that isn’t the docs? (Never used emacs but tempted because all I’ve heard of org mode)
Re:Keeping a plaintext “did” file by zeveb on Monday July 16, 2018 @03:41PM (#17544385)
And for those who don't use emacs, starting to use emacs & then adopting org-capture is probably the best way to go!

I mean, you can tortuously gin up some plaintext format by hand, or you can use Org mode; you can tortuously gin up a skin over git by hand, or you can use Magit; you can tortuously gin up a skin over wget/curl by hand, or you can just use eww.

Re:Keeping a plaintext “did” file by theptrk on Tuesday July 17, 2018 @12:26AM (#17547310)
hadn’t heard of these emacs addons. Commenting to save this.
Re:Keeping a plaintext “did” file by alexeiz on Tuesday July 17, 2018 @01:26PM (#17551396)
You can combine org-mode with deft for quick note organization and lookup. https://jblevins.org/projects/deft/
Re:Keeping a plaintext “did” file by sorbits on Monday July 16, 2018 @02:06AM (#17539089)
I use the following to maintain a journal: http://jrnl.sh/
Re:Keeping a plaintext “did” file by shawn on Monday July 16, 2018 @03:02AM (#17539305)
Thanks! This looks great.
Re:Keeping a plaintext “did” file by keyle on Monday July 16, 2018 @02:05AM (#17539084)
This reminds me of the `plan` files used by John Carmack and and ID software. It's a good way to look back at things and remember how far you've gone and give some perspective on how some big problems at the time were not so big today...
Re:Keeping a plaintext “did” file by Tharkun on Monday July 16, 2018 @03:11AM (#17539343)
The history of the .plan file goes back to way before ID or Carmack. It's been part of unix for a long time. Back when things were simpler, you could finger a user and read their .plan to see what they were up to.
Re:Keeping a plaintext “did” file by pantulis on Monday July 16, 2018 @05:05AM (#17539769)
... and other useful info such as office location, phone number, etc. Those were the days before corporate directories.
Re:Keeping a plaintext “did” file by WorldMaker on Monday July 16, 2018 @01:28PM (#17543072)
For a brief bit I had a simple python script dump tweets into a .plan file mostly just to amuse myself by connecting new social media to old.

Hmm, I wonder if I ask my Mastodon host nicely if they'd open up finger protocol support, lol. (ETA: Reminds one of the old adage about blind men touching the elephant.)

Re:Keeping a plaintext “did” file by Tharkun on Tuesday July 17, 2018 @03:00AM (#17547853)
I was shocked to discover that finger is no longer installed by default on most linux distros.
Re:Keeping a plaintext “did” file by commandlinefan on Monday July 16, 2018 @09:32AM (#17541110)
I've gotten into the habit of defensively tracking every interruption - if somebody stops by my desk or slacks me or asks me to come by and look at something, I keep a text file of exactly when and how long. Then, if anybody ever asks why such-and-such is taking so long, I have a detailed record of _exactly_ why.
Re:Keeping a plaintext “did” file by tomjen3 on Monday July 16, 2018 @10:48AM (#17541684)
What do you do when somebody interupts you on the way back from your interruption? Do you just log it as "interruption"?
Re:Keeping a plaintext “did” file by commandlinefan on Monday July 16, 2018 @11:58AM (#17542318)
I'm non-reentrant. In that case, I kernel panic.
Re:Keeping a plaintext “did” file by csmattryder on Monday July 16, 2018 @04:42AM (#17539677)
I've got a small A6 notebook for this, computers are great, but there's still work to be done in translating the abstract diagram/flowchart/sketch amalgamation that's in my brain to a digital representation.

A picture tells a a thousand words, there's pages where I tried redesigning a scene graph implementation, it'd take hours to transcribe the knowledge that I gleaned from those (roughly drawn) images into words.

Re:Keeping a plaintext “did” file by tripzilch on Monday July 16, 2018 @07:41AM (#17540472)
Paper rocks. I really like its battery life, negligible boot-up time, customisability, interoperability and extensive unicode support.
Re:Keeping a plaintext “did” file by jtbayly on Monday July 16, 2018 @10:02AM (#17541287)
The main downsides are poor search, scriptability/automation, and backup support.
Re:Keeping a plaintext “did” file by tomjen3 on Monday July 16, 2018 @10:47AM (#17541674)
The number of hours I have spent trying to find an alternative note taking system to paper is rather more than I like. Unfortunately search sucks, they tend to get lost and I have horrible handwriting.
Re:Keeping a plaintext “did” file by Scarblac on Monday July 16, 2018 @04:50AM (#17539714)
Paper beats silicon.

The computer is a gateway to a billion distractions, my most productive days are the ones where I manage to write down the most on paper. The physical act of writing helps memory, and it works everywhere.

Physically checking checkboxes is also fun, as is crossing out plans that become irrelevant during the day.

Re:Keeping a plaintext “did” file by divan on Monday July 16, 2018 @05:53AM (#17539948)
> Its super important to take a second every once in a while to simple write down what you did during the past mental sprint. Writing down what you learned solidifies the knowledge.

Sorry, I didn't get why it's super important. Isn't it a context switch? How does it really help to solidify the knowledge? How often do you review those did files? How exactly reviewing what you did helps? (I'm thinking of myself reading some "did" from the past and fail to see any benefit). How this solution is better than using Notes or Google Keep or whatever online tool? How to manage it across multiple machines and backup it?

If the goal is to solidify knowledge, I can't help but suggest using Anki: there was an article about in HN not so long ago: http://augmentingcognition.com/ltm.html

Re:Keeping a plaintext “did” file by navane on Monday July 16, 2018 @02:34AM (#17539197)
I have a windows notepad file for the same reason. F5 prints the date/time stamp.
Re:Keeping a plaintext “did” file by iveqy on Monday July 16, 2018 @02:40AM (#17539225)
or you can just start the file with: .LOG one of the few extra features notepad have =)
Re:Keeping a plaintext “did” file by tjoff on Monday July 16, 2018 @04:30AM (#17539626)
Just to clarify because I had to google to have any clue what writing .LOG at the top was supposed to do.

It will create a time-stamp (similar to F5) each time you open the document.

So nothing for us that never closes applications ;)

Re:Keeping a plaintext “did” file by skrebbel on Monday July 16, 2018 @02:55AM (#17539284)
Wow! I truly wonder whether that's in there to scratch one Windows engineer's personal itch some day back in 1998 or something ;-)
Re:Keeping a plaintext “did” file by nurettin on Monday July 16, 2018 @02:53AM (#17539275)
Didn't know this! I'd upvote if I could.
Re:Keeping a plaintext “did” file by NamTaf on Monday July 16, 2018 @02:35AM (#17539201)
Thank you for this shortcut!
Re:Keeping a plaintext “did” file by marcuskaz on Monday July 16, 2018 @09:57AM (#17541260)
Sharing my utility Jot: https://github.com/mkaz/jot

Jot stores notes in text files organized by date, includes simple searching, templates, and a few other niceties; plus you can add notes via command-line, pipe, or open in your EDITOR (vim)

Re:Keeping a plaintext “did” file by theptrk on Monday July 16, 2018 @10:13AM (#17541359)
Whoa never heard of Syncthing (open source syncing to replace dropbox). What led you to choose that?
Re:Keeping a plaintext “did” file by marcuskaz on Monday July 16, 2018 @10:29AM (#17541490)
I was using Bittorrent Sync for awhile but the product got buggy, renamed, and seems like going through weird times. So looked for an open source alternative and found Syncthing. It works well to keep files in sync between laptop and desktop, its all local - but you give up any cloud storage if all your computers go fubar.
Re:Keeping a plaintext “did” file by anderspitman on Monday July 16, 2018 @03:23PM (#17544201)
It definitely takes extra work to protect yourseld against data loss using syncthing over something like Dropbox. I have a mirrored ZFS (FreeNAS vm) which I back up to a usb HD and Backblaze (600GB is running me about 3USD/month)
Re:Keeping a plaintext “did” file by theptrk on Tuesday July 17, 2018 @12:29AM (#17547327)
How do you set up the mirrored ZFS? Is this running some type of job that runs something like rsync on a schedule?
Re:Keeping a plaintext “did” file by anderspitman on Tuesday July 17, 2018 @03:26AM (#17547953)
In my case it all depends on having the FreeNAS up and running. Once that's working, it's pretty easy to configure it with a couple drives to have them mirror each other. I'm actually running FreeNAS in a VM, but I'm passing through the PCIE SATA controller so FreeNAS has complete control over the hardware, which is important for ZFS. My machine also has ECC memory, which the FreeNAS folks claim is pretty much a must. Hard to determine how true that is. I've seen some conflicting opinions.
Re:Keeping a plaintext “did” file by anderspitman on Monday July 16, 2018 @03:20PM (#17544165)
It always brings me sincere joy to see another person discover syncthing. One of my all-time favorite pieces of software.
Re:Keeping a plaintext “did” file by peterwwillis on Monday July 16, 2018 @03:28AM (#17539401)
I like it. Of course I created my own note/task-taking app years ago, which I can't even find anymore. It was in Perl. The purpose was to have a user-friendly command-line interface. If I was going to grep for something, I wanted to display the results in a nice way. To list notes or tasks done, priorities, etc I wanted to sort and display in a nice way. And eventually I added a merge function if I forgot I had more than one editor open at a time. I think I abandoned it for the same reason I abandon every note-taking app I try: it's just not easy enough to use everywhere.

The note-taking app I use most often now is e-mail drafts. I write an e-mail to no one and save it as a draft. It's synced everywhere, sorted by date, has a subject (which can be edited to include tags such as "(!) ", "(plan)", "(done)"), can contain any text format (even attachments), and it works on every e-mail client and server. Maybe I should write an interface to it...

Re:Keeping a plaintext “did” file by dmortin on Monday July 16, 2018 @04:37AM (#17539656)
For quick notes the most important for me is as little friction as possible.

Having to switch to a terminal and using an alias is too much friction.

So I have a global hotkey which I can press anywhere on my desktop, regardless of the current application and if I press it it opens an editor window with the current timestamp already added, so all I have to do is type and press a key to finish the entry.

This way I don't have to switch apps to make a note, I stay in the current context and it's so quick and convenient to make notes that I don't even have to think about doing it.

Re:Keeping a plaintext “did” file by pwg on Monday July 16, 2018 @06:29AM (#17540141)
> Having to switch to a terminal and using an alias is too much friction.

Given that the examples are all for 'vim', this appears to have been written from the viewpoint that one is already in a terminal, so there is no switching friction when one's focus is a terminal at the start.

Re:Keeping a plaintext “did” file by dmortin on Monday July 16, 2018 @07:21AM (#17540378)
The implementation in the article is less important than the concept of making notes as people in the comments here mentioned Emacs, Google Docs and other tools as well.

Also, you can have ideas or want to make notes when reading a PDF or browsing some documentation, so your editor or terminal are not the only apps from where you want to initiate creating a new note.

Re:Keeping a plaintext “did” file by theptrk on Tuesday July 17, 2018 @12:38AM (#17547371)
Hm, that’s cool. Is your note taking an app part of the menu bar (if you’re using Mac) If so which is it?

Agreed on the global hot key. I use iTerm and it has a global hot key so you can bring it up with a shortcut and then hide it with the same shortcut.

Re:Keeping a plaintext “did” file by dmortin on Tuesday July 17, 2018 @10:01AM (#17549773)
I don't use Mac, but the actual note taking app is not important. The important thing is the global hotkey, so you can make a new note trivially when this global hotkey activates your favorite note taking app.

My hotkey software can also send keypresses to running apps, so beside bringing the note app to the foreground it also starts creating a new note automatically.

Re:Keeping a plaintext “did” file by manifestsilence on Monday July 16, 2018 @11:19AM (#17541962)
In case it's useful to anyone (or they want to pick at my code), here's a quick and dirty python thing I use to automate timestamps on journal entries. It just accepts strings of text and saves them in a file named with today's date and a time above each entry.

  import time

  user_input = ""
  date_string = '-'.join([str(n).zfill(2) for n in time.localtime(time.time())[0:3]])
  while user_input != "q":
   user_input = raw_input("Log entry (q to quit): ")
   with open("time_log_"+date_string+".txt","a") as timelog:
    #timelog.write(time.asctime(time.localtime(time.time()))+'\n')
    timelog.write(
    '-'.join([str(n).zfill(2) for n in time.localtime(time.time())[0:3]])
    + ' '
    + ':'.join([str(n).zfill(2) for n in time.localtime(time.time())[3:5]])
    + ' | '
    + user_input
    + '\n')
Re:Keeping a plaintext “did” file by corny on Monday July 16, 2018 @03:43PM (#17544398)
Thanks - this is cleaner than what I was using for something similar. Here's my version:

  import datetime
  user_input = raw_input("Log entry: ")
  with open("did.log", "a") as timelog:
      timelog.write('\n')
      timelog.write(datetime.datetime.now().strftime("%Y-%m-%d %H:%M (%a)"))
      timelog.write(': ')
      timelog.write(user_input)
Re:Keeping a plaintext “did” file by DanielleMolloy on Monday July 16, 2018 @05:56AM (#17539963)
http://todotxt.org has a format for a done.txt list, too. Useful before project meetings to get an overview over what you did in the last days.

TodoTxtMac creates this for me: https://mjdescy.github.io/TodoTxtMac/

I've been using it together with Dropbox (for access from my phone) for 3 years now.

Re:Keeping a plaintext “did” file by theptrk on Monday July 16, 2018 @10:00AM (#17541279)
Interesting, I've been seeing a lot of interest in syncing the file and this seems like a good next project. I never thought to use dropbox to sync, I wonder what the dropbox api does with merge conflicts
Re:Keeping a plaintext “did” file by DanielleMolloy on Tuesday July 17, 2018 @04:10AM (#17548117)
It will create a second file in the directory, renamed with information where it comes from. No problems here as it is merely a text file.

There used to be an Android app for todotxt, but it does not seem to exist / work anymore after the Dropbox API changed.

Re:Keeping a plaintext “did” file by JdeBP on Monday July 16, 2018 @03:30AM (#17539406)
No need for "normal Go". ex commands like r take addresses.

    vim +'$r!date' did.txt
Re:Keeping a plaintext “did” file by Lio on Monday July 16, 2018 @10:57AM (#17541758)
At first when I read this I thought why not use Vimwiki or org-mode or taskwarrior, etc... but actually I really like these simple aliases.

I use the same approach for a super simple "pomodoro" timer:

  alias pomo='echo "Starting timer for 25 minutes"; sleep 1500 && zenity --info --text "Pomodoro break; 5 minutes"; sleep 300 && zenity --info --text "Pomodoro: back to work"'
Re:Keeping a plaintext “did” file by inanutshellus on Wednesday July 18, 2018 @03:06PM (#17561192)
Notably, this doesn't add the date at a reliable place in the file. Instead, it adds the date at the last place your cursor was when you had the file open last.
Re:Keeping a plaintext “did” file by theptrk on Wednesday July 18, 2018 @10:55PM (#17563648)
I think adding a command to go to the next line would be the sweet spot
Re:Keeping a plaintext “did” file by theptrk on Tuesday July 17, 2018 @01:33PM (#17551456)
this doesnt seem to work in the same way for me, it doesnt print a timestamp to the file
Re:Keeping a plaintext “did” file by theptrk on Monday July 16, 2018 @10:16AM (#17541388)
oh thats smooth
Re:Keeping a plaintext “did” file by stared on Monday July 16, 2018 @06:48AM (#17540217)
Tool as a tool (I work daily with a "nth-priority-ideas.md", and appreciate that plaintext files clutter-free, portable, customizable, etc).

But what I found inspiring is to maintain a list of accomplished tasks, not only a daunting one of todos. My PhD co-advisor run one, maybe I should have copied this approach.

Re:Keeping a plaintext “did” file by letientai299 on Monday July 16, 2018 @03:02AM (#17539303)
For the same reason, I use vimwiki[0] with its diary features, which is much better regards syntax highlighting linking.

[0] https://github.com/vimwiki/vimwiki [1] https://github.com/vimwiki/vimwiki/blob/master/doc/vimwiki.t...

Re:Keeping a plaintext “did” file by stevenschmatz on Monday July 16, 2018 @11:26AM (#17542028)
EDIT: I made a [Github project](https://github.com/stevenschmatz/did) which adds a few niceties to this blog post, like better dates, no date duplication, and syntax highlighting in Markdown.

---

If you want syntax highlighting and better dates, you can use a Markdown file with the following command:

``` vim +'normal Go' +'r!date +"\# \%B \%d, \%Y (\%A)"' ~/did.md ```

Make sure to turn `syntax: on` in your `.vimrc`.

Re:Keeping a plaintext “did” file by allenu on Monday July 16, 2018 @01:39PM (#17543188)
What I do for all of my side projects now is keep a TODOs.md file in the project root. I no longer keep track of to-dos for programming projects external to the project. I find it makes it much easier to pick up a project I've left for a while.

What I do is every time I think of a new work item or discover a bug, I add an item to the list. Once I finish an item, I check it off. Since it's checked in with everything else, it's a good history of what work was "discovered" along the way and what work has been done.

For the last few years, I've worked on a bunch of little side projects projects here and there and this system has kept me sane.

For an example, see https://raw.githubusercontent.com/allenu/YokosukaJS/master/T...

Re:Keeping a plaintext “did” file by dajohnson89 on Monday July 16, 2018 @11:36AM (#17542109)
Keeping a "did" file is also immensely valuable to demonstrating your performance and achievements to your employer. Think about all the positive things you've done for work over the past year. It's hard to account for them all mentally, and even harder for your boss to remember.
Re:Keeping a plaintext “did” file by symmitchry on Monday July 16, 2018 @12:15PM (#17542462)
I think this is important. One of the most career oriented people I know, call him a mentor of mine, kept entire binders full of everything he did. Every accomplishment. He prepared for performance reviews like he was going to war.

As a manager I suggested to my reports that this in addition to proving your work, it also helps as a way to understand whether you are stagnating at work, or continuing to learn and evolve.

Re:Keeping a plaintext “did” file by theptrk on Tuesday July 17, 2018 @09:43AM (#17549654)
Dang. I love this. I only remember preparing this intensely for grad school apppications but come to think of it the stakes are just as high if not higher at work + life.
Re:Keeping a plaintext “did” file by tmaly on Monday July 16, 2018 @08:22AM (#17540699)
I keep an info.txt file about useful commands and information. Years ago I remember an HN comment on someone that stored everything as Prolog facts that could be consulted.

I still like paper and can remember this post on this slick way to index a paper based notepad. I will have to dig it up.

Re:Keeping a plaintext “did” file by mitul_45 on Monday July 16, 2018 @05:57AM (#17539970)
I was using Vimwiki for this stuff for long, but this idea seems promising for a daily journal.

I mostly divide my tasks by day so I don't want timestamp to be added everytime I add an entry. Here's my aliases if it helps:

  alias ndid="nvim +'normal Go' +'r!date' +'normal o' +':exe \"normal i=============================\<Esc>\"' ~/Dropbox/did.txt"
  alias did="nvim +'normal G' +startinsert ~/Dropbox/did.txt"

So use `n(ew)did` at the start of the day and for every subsequent entries, use `did`. Also using Dropbox as storage for portability.
Re:Keeping a plaintext “did” file by idiomatic1 on Monday July 16, 2018 @07:56AM (#17540555)
Did you use vimwiki's diary functionality? `\w\w` to go to today's page.
Re:Keeping a plaintext “did” file by theptrk on Wednesday July 18, 2018 @10:56PM (#17563654)
You have a better memory than me. I would instantly forget whether or not I’ve added an entry for the day
Re:Keeping a plaintext “did” file by bakul on Monday July 16, 2018 @11:26AM (#17542021)
In my .zshrc I have

  todo() {vi '+$' ~/todo/$(date +Y/%m)}
  +() {echo + $* >> ~/todo/$(date +Y/%m)}
  -() {echo - - $* >> ~/todo/$(date +Y/%m)}
Each month's entries are in a separate ~/todo/YYYY/MM file. The + command is to record something done. The - command is to enter a new task. The todo command is for editing this month's file -- add month-days, update entries, cleanup etc.

Separately I have current and last 2 month files open in the leftmost column of acme (about half as wide as other columns). This is for moving entries between months etc. I have to remember to do a Get before editing and Put when done editing to sync with any updates done from command line.

In the same column I have a per year "projects" file (multiple indented lines per project) and a per year "future" file (things I may want to do someday).

This is far from perfect but has endured. A simple grep can tell me what was done or what needs to be done in a given month or year.

For taking notes in a meeting I have now switched over to using an ipad + apple pencil as I can scribble notes, draw pictures, doodle etc. without having a laptop screen between me and others or clicking keys annoying people.

Re:Keeping a plaintext “did” file by theptrk on Wednesday July 18, 2018 @11:00PM (#17563667)
I have a thing for “want to do someday” called Asana but it’s never ending. My killer feature for a todo list would be either Auto Delete or auto “tell me a reason why I shouldn’t delete this”
Re:Keeping a plaintext “did” file by bakul on Thursday July 19, 2018 @01:37AM (#17564131)
In a way the whole point of making todo lists is mindfulness -- to pay attention to a task when needed. The point of automation is exactly opposite -- you don't want to pay attention to something!

A todo list is more effective if you do regular reviews (daily/weekly/month/yearly). Similarly mindfulness at the time of deleting a someday task may provide useful feedback.

Re:Keeping a plaintext “did” file by pspeter3 on Wednesday July 18, 2018 @11:33PM (#17563774)
I wonder if you could script that with the API? Post a comment after a certain period of time and if you do not interact with it, delete the task.
Re:Keeping a plaintext “did” file by darekkay on Monday July 16, 2018 @05:42AM (#17539915)
For Notepad++, I'm using a custom "TODO" syntax highlighting [0]. I like this for "temporary" TODOs (mostly work-related stuff to be done today) and as an overview for my scrum dailies.

[0] https://github.com/darekkay/config-files/tree/master/notepad...

Re:Keeping a plaintext “did” file by justjash on Monday July 16, 2018 @10:37AM (#17541576)
Not sure I understand the reason for needing to keep track of things like the examples shown...

On the other hand, if I am in the middle of some large changes I will make notes at the end of the day before I leave the office. I usually write down what I accomplished and what remains to be done as well as anything I need to come back to. I don't get too fancy with it, usually just use Sticky Notes on my Windows PC at work.

Re:Keeping a plaintext “did” file by TheCapn on Monday July 16, 2018 @11:27AM (#17542034)
I'm much like you. I used text files and utilities, developing some of my own, but in the end I've fallen back to a simple pen & paper technique.

1) I find it easier to browse written pages. It also seems to tweak some sort of memorization when I need to recall things from long long ago. I doodle a lot, especially during meetings so I can recall when I needed to remember a note that it was written somewhere around the page with a dinosaur wearing a baseball cap in the margin

2) Taking my eyes away from the screen to jot my tasks, is almost like a mental reset. It causes me to slow down and think more about what I've done or will be doing tomorrow

3) It almost becomes an "additional monitor" to have up. No tabbing to a file, no spacing things on desktops to keep the work list above other forms; its just there, off to my left to view.

4) (EDIT) Can't believe I almost forgot what I consider the strongest point... is connecting thoughts. Trying to draw a line between comments I made earlier and something I've done just now is nearly impossible to do cleanly in text IMO. Notes like "See July 4th, 10:35PM" is worthless and requires a new level of focus that a squiggly arrow just accomplishes so much easier. Colouring in a black box above an important note I want to immediately catch my attention when i'm flipping backwards is so much more important to me than any text file organization.

Re:Keeping a plaintext “did” file by alexthehurst on Monday July 16, 2018 @03:08AM (#17539332)
Here's what I use for this same purpose: my fork of someone else's old and unmaintained pet project. I think it's pretty good. It creates a new entry each day, or appends to this day's diary entry.

It has a few subcommands, which are date-aware.

https://github.com/alexthehurst/Diary.py

Re:Keeping a plaintext “did” file by caio1982 on Monday July 16, 2018 @10:27AM (#17541474)
I sort of had a did.txt for 3 years, updated quite often during my working hours (at least once a day, if I were super busy, to dump all my daily activities and notes). It was quite useful for standup meetings and such. It is a pretty gigantic did.txt now, and in 3 years can you guess how many times I needed the info sitting there? Zero... go figure :-(
Re:Keeping a plaintext “did” file by theptrk on Monday July 16, 2018 @10:34AM (#17541546)
Totally, i've never actually fully read my did file (just started), but I find the act of writing a concise summary of what I've done to be the major benefit.
Re:Keeping a plaintext “did” file by gemma on Monday July 16, 2018 @08:45AM (#17540842)
I love how many ways there are to do this. My version uses empty Git commits: https://github.com/ellotheth/dotfiles/blob/master/bash_funcs...
Re:Keeping a plaintext “did” file by theptrk on Tuesday July 17, 2018 @01:34PM (#17551470)
projects/done is a directory?
Re:Keeping a plaintext “did” file by satran on Monday July 16, 2018 @03:13PM (#17544088)
I log everything worth remembering and some. Whether it is something I did, a link I want to read, or something I bought. I use a file called log.txt. It is synced across all my devices. I have a very minimal format that goes like this:

    # 16/07/2018
    - read about did.txt on HN
    - [ ] write about log.txt on HN
    - cost: 2.9€ coffee at 93
I grep for - [ ] to see my incomplete tasks, and add an x like - [x] when the task is complete. When the file grows large I move months to separate files.

I tried Evernote, onenote, physical notebooks and a hundred other tools. This is one that I settled on. All I need is a text editor on any platform.

Back to the log, there are several times I have visited it to find out what happened during the day. I use it at times as a review of how well the week went and what I could improve on.

Re:Keeping a plaintext “did” file by pasbesoin on Monday July 16, 2018 @02:16PM (#17543585)
Back (some time ago) when work, etc., had me spending a lot of time on Windows, I found and used this generous free and open-source project.

https://www.codeproject.com/articles/5371/todolist

Looking now at the revision history, it looks as if something may have happened to Dan after last summer.

It wasn't plaintext, but it and its format are open. And I found it a pretty good combination of features in a compact presentation.

There've been a couple of recent "to do" threads, that made me think of this. This thread finally got me to look it up.

I never tried this:

http://abstractspoon.com/wiki/doku.php?id=linux

Re:Keeping a plaintext “did” file by dbalan on Monday July 16, 2018 @08:53AM (#17540891)
Self plug: I wrote https://github.com/dbalan/idid to do more or less the same thing when my did file needed a bit more structure (also an excuse to write some haskell).
Re:Keeping a plaintext “did” file by cjhanks on Monday July 16, 2018 @01:47AM (#17539031)
Yeah, it's easy to forget. CHANGELOG is the historical equivalent, but that seems to be dead.
Re:Keeping a plaintext “did” file by chadlavi on Monday July 16, 2018 @01:51PM (#17543330)
Re:Keeping a plaintext “did” file by hboon on Monday July 16, 2018 @05:44AM (#17539921)
I wrote about something similar in a comment https://news.ycombinator.com/item?id=16322942

It's served me well. I have records from as far back as 2009.

Re:Keeping a plaintext “did” file by fimdomeio on Monday July 16, 2018 @06:26AM (#17540126)
I have done something similar some years ago. Reminds me it's probably time to update. https://fimdomeio.com/thingsIhaveDone.txt
Re:Keeping a plaintext “did” file by t3h2mas on Monday July 16, 2018 @01:59PM (#17543421)
I like the idea of publishing interesting text files like this automatically to a personal site.
Re:Keeping a plaintext “did” file by supremeApy on Monday July 16, 2018 @10:30AM (#17541502)
I would recommend, http://jrnl.sh it's made for the purpose described but in a much better and simpler way (also allows tagging and searching in a simple way).
Re:Keeping a plaintext “did” file by CiPHPerCoder on Monday July 16, 2018 @10:34AM (#17541541)
It's interesting that they boast "256-bit AES" on the Github README, but when I look at the source code, they're not doing authenticated encryption:

https://github.com/maebert/jrnl/issues/549

Re:Keeping a plaintext “did” file by theptrk on Tuesday July 17, 2018 @04:53PM (#17553268)
Which part is the offender?
Re:Keeping a plaintext “did” file by bayindirh on Monday July 16, 2018 @03:56AM (#17539503)
These small log files really help to keep things in perspective. However for longer plans I use Trello. It works as an issue tracker / planner for me so I can put the bits I find on the issue to the cards, or to my dropbox and link them.

When I finish a task, I put all relevant information to a folder in my "Old documents" folder, and put the card to the "Done" column. If the task is a project, everything is already become documented and archived on git at the end.

Re:Keeping a plaintext “did” file by anderspitman on Monday July 16, 2018 @03:30PM (#17544262)
Does anyone know of a good open source text-based journaling system that lets you easily inline images/audio/video/etc, with render-to-html functionality? My goal is to document what's going on in my life, and that's not really possible with only text. This is where Evernote really shines in my opinion. I've been missing that functionality ever since I got off Evernote. Been wanting to create a basic system for myself for a while now.
Re:Keeping a plaintext “did” file by kaushalmodi on Monday July 16, 2018 @07:27PM (#17546057)
Emacs Org mode fits that requirement nicely.

Org mode (a plain text format ljke Markdown, but much more than that) files export easily to Markdown, HTML, tex/PDF, and multitude of other formats using Emacs itself or even Pandoc.

My site (in my HN profile), for example contains text, images, etc. The content source is in Org mode.

Re:Keeping a plaintext “did” file by corny on Monday July 16, 2018 @02:41PM (#17543803)
Since the start of this year I've been keeping a similar journal. Instead of opening an editor to write a single line to a text file, I just print the arguments of a command to the end of a file and prefixed with a timestamp. Since there's no need to review or save the file, there's no interruption in what I'm doing. Logging things to the file feels like shooting things into the ether and I end up doing it constantly throughout the day.
Re:Keeping a plaintext “did” file by ninjakeyboard on Monday July 16, 2018 @09:13AM (#17541001)
I use gtd with org mode and I can move my finished tasks to a done file when they're complete (if I care to.) Helps with standup etc.
Re:Keeping a plaintext “did” file by theptrk on Monday July 16, 2018 @09:54AM (#17541238)
the moving from a todo file to done file is something i still havent figured out in plaintext
Re:Keeping a plaintext “did” file by ninjakeyboard on Monday July 23, 2018 @05:15PM (#17596082)
You can move between headings and files with a few keystrokes in emacs/org-mode. This doc shows a fairly advanced way of doing gtd w/ org-mode. I use a stripped down workflow based on this. https://emacs.cafe/emacs/orgmode/gtd/2017/06/30/orgmode-gtd....
Re:Keeping a plaintext “did” file by sharkjacobs on Monday July 16, 2018 @03:34AM (#17539423)
This is the one that I use

> doing is a basic CLI for adding and listing “what was I doing” reminders in a TaskPaper-formatted text file. It allows for multiple sections/categories and flexible output formatting.

http://brettterpstra.com/projects/doing/

Re:Keeping a plaintext “did” file by amelius on Monday July 16, 2018 @01:45PM (#17543267)
I just store all of my shell command-lines in a big file, including the date and current working directory. That way, I can always grep and see what I did. For stuff that doesn't happen on the commandline, I just type "echo" followed by a description of what I did, and it ends up in the history file just the same.
Re:Keeping a plaintext “did” file by theptrk on Wednesday July 18, 2018 @11:06PM (#17563689)
Lol at secret uses of echo. How are you logging your command line entries?
Re:Keeping a plaintext “did” file by jmcphers on Monday July 16, 2018 @03:05AM (#17539317)
If you're using vim already for journaling, you should try Vimwiki. Out of the box, it has a diary, and typing Leader-W-Leader-W opens a buffer with today's diary file, ready to record things you've done or serve as a scratchpad for the day that you can search and refer to later.
Re:Keeping a plaintext “did” file by foobarchu on Tuesday July 17, 2018 @01:49PM (#17551595)
I found that using this snippet leaves the cursor at the start of the date string, so I have to shift+A then enter to get to the next line to start typing. Adding +'put _' to the command inserts a newline so that you can immediately switch to insert mode and start typing.
Re:Keeping a plaintext “did” file by theptrk on Tuesday July 17, 2018 @02:27PM (#17551890)
ooh i get it, `alias did="vim +'normal Go' +'r!date' +'put _' ~/did.txt"` and this starts in insert mode. I like this. I think ill change mine to this.
Re:Keeping a plaintext “did” file by theptrk on Tuesday July 17, 2018 @02:24PM (#17551865)
I type "o" (lowercase o) to start the cursor on the next line.
Re:Keeping a plaintext “did” file by maxtaco on Monday July 16, 2018 @08:55AM (#17540906)
Cool! I would store this file on keybase’s KBFS so it’s available on all of your machines.
Re:Keeping a plaintext “did” file by thenobsta on Monday July 16, 2018 @11:53AM (#17542275)
I do that with my org files. It's great. Keybase is great.
Re:Keeping a plaintext “did” file by explainplease on Tuesday July 17, 2018 @04:55PM (#17553295)
IIUC, Keybase does not cache files locally (in contrast to Dropbox), so doesn't that mean that you can't access your Org files offline? Also, how does it handle latency, broken connections, etc? If the Keybase fs returns from a write call, is the file actually saved to anything? What if I save a 5 MB file over a slow connection--does e.g. Emacs block waiting for fsync?

The apparent lack of info about this (short of reading the source myself), and it still being in "beta" makes me very reluctant to trust it with my important data.

Re:Keeping a plaintext “did” file by maxtaco on Monday July 16, 2018 @02:18PM (#17543603)
Thanks!
Re:Keeping a plaintext “did” file by pippy on Monday July 16, 2018 @11:54PM (#17547178)
I wish all linux servers had something like this, out of the box, for all users.

the first thing I do after sshing into a box is spend an hour trying to figure out the basics. Where are the web folders? what daemons is running? what hacks does have in place?

Re:Keeping a plaintext “did” file by theptrk on Tuesday July 17, 2018 @12:20AM (#17547285)
Do you mean a did file for yourself or a collective file for the machine?
Re:Keeping a plaintext “did” file by chrisallenlane on Monday July 16, 2018 @08:15PM (#17546278)
I'll throw mine into the pile of other solutions posted here. I hope someone finds it useful:

https://github.com/chrisallenlane/node-did

Re:Keeping a plaintext “did” file by theptrk on Wednesday July 18, 2018 @11:09PM (#17563693)
So do you have to keep this server running or do you have a separate nodemon script that auto starts on start up?
Re:Keeping a plaintext “did” file by chrisallenlane on Thursday July 19, 2018 @05:40PM (#17570546)
There's no server here. This is just an executable written in node, which writes to a SQLite3 (flat-file) database.
Re:Keeping a plaintext “did” file by TekMol on Monday July 16, 2018 @04:46AM (#17539695)
I hope one day I can run linux on my phone so that I can use these tools everywhere.
Re:Keeping a plaintext “did” file by sgtcodfish on Monday July 16, 2018 @05:36AM (#17539883)
If you're on Android, you can do this today with Termux. I believe you can also set up shortcuts (so you could have a home screen widget to open your TXT file).
Re:Keeping a plaintext “did” file by TekMol on Monday July 16, 2018 @06:16AM (#17540075)
That would hand over full control to the author of Termux. According to the play store it is a guy called Fredrik Fornwall. I never heard of him. So I would not trust him with my digital life.
Re:Keeping a plaintext “did” file by thenobsta on Monday July 16, 2018 @11:57AM (#17542307)
Seems to be open source -- https://github.com/termux/termux-app.
Re:Keeping a plaintext “did” file by TekMol on Tuesday July 17, 2018 @05:15AM (#17548371)
That does not help much. What am I supposed to do? Do my own security review of it and compile from source?
Re:Keeping a plaintext “did” file by geberl on Saturday July 21, 2018 @03:41AM (#17581113)
I put the author's terminal command into an Alfred Workflow: https://github.com/geberl/alfred-did-txt
Re:Keeping a plaintext “did” file by craftyguy on Monday July 16, 2018 @02:34AM (#17539196)
join the (very recent) crowd: https://news.ycombinator.com/item?id=17532094
Re:Keeping a plaintext “did” file by theptrk on Monday July 16, 2018 @02:39AM (#17539220)
Hm. Dynalist seems promising. WorkFlowy has been incredible for a certain type of brainstorming but there seems to be tons of room for new features.
Re:Keeping a plaintext “did” file by theptrk on Sunday July 22, 2018 @10:31AM (#17586939)
Dynalist is missing a key feature from workflowy which is the keyboard shortcut to jump from bookmark to bookmark
Re:Keeping a plaintext “did” file by xurukefi on Monday July 16, 2018 @01:58AM (#17539064)
If the file does not exist, then

    vim +'normal Go' +'r!date' ~/did.txt
creates a file with the first two lines being blank.
Re:Keeping a plaintext “did” file by theptrk on Monday July 16, 2018 @02:04AM (#17539082)
hm, good thinking, I guess I should run `touch` to create the empty file first.
Re:Keeping a plaintext “did” file by JadeNB on Monday July 16, 2018 @02:54AM (#17539280)
> hm, good thinking, I guess I should run `touch` to create the empty file first.

vim is perfectly fine if you invoke it with the name of a non-existent file; it will just create it.

Re:Keeping a plaintext “did” file by johnramsden on Monday July 16, 2018 @02:12AM (#17539117)
Isn't this effectively what code commits are for? If you've done something worth noting, it should probably be in a commit anyway.
Re:Keeping a plaintext “did” file by makapuf on Monday July 16, 2018 @02:17AM (#17539152)
Do you mean that all is worth is code ? I code as a living but wouldn't say that all I do is coding or in a text file. By example talking with X is worth noting or setting up a complex embedded device with all its tooling is definitely worth noting.
Re:Keeping a plaintext “did” file by cyberferret on Monday July 16, 2018 @04:44AM (#17539688)
Well, most version control systems can be used outside of coding too. I know a few authors who use Git to track and handle multiple revisions of their technical or fiction book writing.

No reason you couldn't have a text file with setup notes on a system and have commit any updates so you have a trackable log.

Re:Keeping a plaintext “did” file by mr_toad on Monday July 16, 2018 @08:52AM (#17540888)
As a contractor it’s useful record things like attending meetings, presentations, research etc that aren’t code.

In fact for any employee it’s useful to keep track of stuff like this, come PR time.

Re:Keeping a plaintext “did” file by theptrk on Monday July 16, 2018 @02:44AM (#17539235)
Yeah commits are great for logging code changes.

I started using the did file while learning a new language, don’t remember which. I’d have 15 tabs open with different docs and tutorials but very very little actual code written or way to mark where I was. I settled on a single text file and It was super helpful to just look back a week and notice there was some measurable progress.

Re:Keeping a plaintext “did” file by extralego on Monday July 16, 2018 @02:29PM (#17543696)
I have done this since I began learning but I make a folder for every new topic so it’s easy to go back and do a refresher.
Re:Keeping a plaintext “did” file by rvanlaar on Monday July 16, 2018 @03:36AM (#17539437)
What benefit are you getting out of journaling?
Re:Keeping a plaintext “did” file by plg on Monday July 16, 2018 @09:56AM (#17541250)
isn't this a classic use-case for emacs org-mode?

having said that I do appreciate that plaintext is lower friction/inertia for sure

Re:Keeping a plaintext “did” file by amelius on Monday July 16, 2018 @04:50AM (#17539712)
Title should contain "with Vim".
Re:Keeping a plaintext “did” file by keithpeter on Monday July 16, 2018 @05:34AM (#17539868)
I was confident that people would post other solutions here.

I'm thinking of a bash script that takes a title starts a text file in the folder ~/.plan with filename generated from the title but prepended by date in yyddmmhhmm format. Might get me recording more things.

Like others, I use paper for the doodles and diagrams.

Re:Keeping a plaintext “did” file by shanavasm on Monday July 16, 2018 @02:39AM (#17539221)
Emacs provides calendar and diary out of box M-x calendar then `i d` to create entry for selected date
Re:Keeping a plaintext “did” file by RickJWagner on Monday July 16, 2018 @07:52AM (#17540526)
Hacker News paydirt!

Short and sweet. Nice.