News for hackers. Stuff that matters.
Re:This Page is Designed to Last by shasheene on Thursday December 19, 2019 @06:34PM (#21840389)
There's no reason why a web browser bookmark action doesn't automatically create a WARC (web archive) format.

Heck, with the cost of storage so low, recording every webpage you ever visit in searchable format is also very realistic. Imagine having the last 30 years of web browsing history saved on your local machine. This would especially be useful when in research mode and deep diving a topic.

[1] https://github.com/machawk1/warcreate

[2] https://github.com/machawk1/wail

[3] https://github.com/internetarchive/warcprox

EDIT: I forgot to mention https://github.com/webrecorder/webrecorder (the best general purpose web recorder application I have used during my previous research into archiving personal web usage)

Re:This Page is Designed to Last by tempestn on Thursday December 19, 2019 @07:51PM (#21840847)
This was what made me convert from bookmarking to clipping pages into Evernote around 6-7 years ago. I realized I had this huge archive of reference bookmarks that were almost useless because 1) I could rarely find what I was looking for, if I even remembered I'd bookmarked something in the first place, and 2) if I did, it was likely gone anyway. With Evernote I can full text search anything I've clipped in the past (and also add additional notes or keywords to ease in finding or add reference info).

Since starting with replacing bookmarks, I've moved other forms of reference info in there, and now have a whole GTD setup there as well, which is extremely handy since I can search in one place for reference info and personal tasks (past and future). Only downside is I'm dependent on Evernote, but hopefully it manages to stick around in some form for a good while, and if it ever doesn't, I expect I'll be able to migrate to something similar.

Re:This Page is Designed to Last by charlesdaniels on Thursday December 19, 2019 @08:23PM (#21841006)
Shout out to https://joplinapp.org/

I was an Evernote user when I was on macOS. When I switched to Linux, a proper web clipper was something I really missed. I'm now on Joplin and it does everything I used to use Evernote for and then some.

It even has vim bindings now!

As far as longevity goes, I think they got their archive / backup format right - it's just a tarball with markdown in it.

Re:This Page is Designed to Last by dragonsh on Thursday December 19, 2019 @09:22PM (#21841263)
No need of proprietary code and apps why not build it into browsers. I have seen Firefox and Chrome can download web pages. So it will be nicer if they can download the bookmarked pages and store in a local html, css, image folder. I think it's pretty easy to achieve.

Also people need to move away from those esoteric reactjs, angular, vuejs and plethora of CMS as API or static site generators relying on some js framework which won't last even 2-3 years. Use a static site generator which can generate a plain html, like static site generators built on pandoc, python docutils or similar.

Personally I like restructuredText as the preferred format for content as its a complete specification and plain text. So the only thing in this article I will change is that content can also be in rst format and then generate html from it. Markdown is not a specification as each site implements their own markdown directives unlike restructuredtext specification and most of the parsers and tooling are little different from each other.

Re:This Page is Designed to Last by anyzen on Friday December 20, 2019 @04:47AM (#21842852)
> Personally I like restructuredText as the preferred format for content as its a complete specification and plain text.

I have used rst intensively on a project. A few years later, I would be hard pressed to write anything in ti and would need to start with a Quick Start tutorial. With all its faults, Markdown is simple enough that it can be (and is) used anywhere, so there is no danger of me forgetting its syntax (even if it wasn't much simpler to star with).

So personally I would prefer md over rst anytime.

Re:This Page is Designed to Last by dbtx on Friday December 20, 2019 @01:39AM (#21842135)
> Markdown is not a specification

Not by that name... https://commonmark.org/

Re:This Page is Designed to Last by dragonsh on Friday December 20, 2019 @12:26PM (#21845758)
It is stil not a specification like restructuredText[1]. Also wikiMarkup (which really started this markdown) is different from GitHub markdown, which is different from other markdown editors. Also many sites use their own markdown versions.

If you are in restructuredText world there is one specification and all implementation adhere to it, be it pandoc, sphinx, pelican, nikola. The beauty of it is that it has extension mechanisms which provides enough room for each tool to develop it. But markup can be parsed by any tool.

[1] https://docutils.sourceforge.io/docs/ref/rst/restructuredtex...

Re:This Page is Designed to Last by m463 on Friday December 20, 2019 @08:43PM (#21849010)
I don't know why markdown is so popular other than maybe "it was easy to get running" or "works for me".

It's better than "designed by a committee" standards, but it lacks elegance or maybe craftsmanship.

Re:This Page is Designed to Last by setr on Saturday December 21, 2019 @05:13AM (#21850618)
Because its inherently appealing, close to what you wanted intuitively, and if you're only dealing with a single implementation of it, works fairly well.

You don't really get bit by its lack of a standard and extensibility until after you've bought in.

It's essentially designed by the opposite of a committee -- rather than including everything but the kitchen-sink, it contains support for almost no usecases except the one. Which is very appealing, when you only have the one usecase.

Re:This Page is Designed to Last by dragonsh on Saturday December 21, 2019 @06:24AM (#21850796)
Well rst is better than markdown from day one. The only reason it became famous is thanks to wikimarkup.

So markdown needs to thank the popularity of Wikipedia for its success, as rst did not have any application like Wikipedia. But still rst is used widely enough with its killer Sphinx, readthedocs and now its kind of de-facto documentation writing markup in Python and many open source software world.

Re:This Page is Designed to Last by petepete on Saturday December 21, 2019 @07:27AM (#21850942)
Because you can teach someone markdown in five minutes. And even if they don't know all the ins and outs, the basics are pretty foolproof (paragraphs, headings, bold and italic).
Re:This Page is Designed to Last by eitland on Friday December 20, 2019 @02:21AM (#21842267)
> No need of proprietary code and apps

Joplin is free and open source.

Re:This Page is Designed to Last by pinehqcom on Friday December 20, 2019 @07:56AM (#21843797)
This... I just found a plugin for the static site generator Pelican that is 7 years old that still works. After running Pelican you get plain HTML that can be hosted anywhere. I like Netlify, but other options like GitHub pages are also great. The author recommends not putting on GitHub Pages because they haven't found a working business model and might not be here in the future. But... GitHub has been taken over by Microsoft which is most likely not going bankrupt soon and Microsoft loves their backward compatibility so I am confident they won't screw GitHub up too much.
Re:This Page is Designed to Last by dragonsh on Friday December 20, 2019 @12:16PM (#21845686)
You can say the same about geocities when it was acquired by yahoo. But it didn't last and then now it's happening with yahoo-groups. So I am not hopeful if GitHub becomes a liability microsoft will keep it.
Re:This Page is Designed to Last by freetonik on Sunday December 22, 2019 @02:34AM (#21855804)
Yahoo! And Microsoft have very different business models. One is intently more sustainable (selling software and services).
Re:This Page is Designed to Last by charlesdaniels on Friday December 20, 2019 @12:04PM (#21845579)
> No need of proprietary code and apps

Joplin is open source, which is a big part of the sell to me. It definitely isn't the best of all possible note taking systems that could ever exist, but it's the best open source one I've found so far, and I don't have time to write a better one at the moment.

> why not build it into browsers. I have seen Firefox and Chrome can download web pages. So it will be nicer if they can download the bookmarked pages and store in a local html, css, image folder. I think it's pretty easy to achieve

This is solving a different problem though. WARC/MHT and other solutions can do this. Joplin is more of a note taking system that allows ingesting content from the web into one's own local notebook, which is relevant to what the GP post was talking about - Evernote.

However, it would seem that "the modern web" is the now popular standard. 10 years ago it might have been Flash or Java web applets or whatever. Now it's JS. I'm not convinced that JS is any better than what it has replaced. However, people keep paying developers to write them, so presumably someone likes them.

> Also people need to move away from those esoteric reactjs, angular, vuejs and plethora of CMS as API or static site generators relying on some js framework which won't last even 2-3 years. Use a static site generator which can generate a plain html, like static site generators built on pandoc, python docutils or similar.

Agreed, but that's also not a problem that Joplin, Evernote, or any other such tool is going to be able to solve. Unless you are complaining that Joplin is an Electron app? That's my biggest issue with it personally. It runs well enough, but is definitely the heaviest application I use regularly, which is a little sad for a note taking program. On the other hand, I haven't found a better open source replacement for _Evernote_. There are lots of other open source note-taking programs though.

> Personally I like restructuredText as the preferred format for content as its a complete specification and plain text. So the only thing in this article I will change is that content can also be in rst format and then generate html from it. Markdown is not a specification as each site implements their own markdown directives unlike restructuredtext specification and most of the parsers and tooling are little different from each other.

reST is indeed very nice. At one point, I kept my personal notes as a Sphinx wiki with everything stored in reST. I found this to be less ergonomic than Evernote/Joplin, although in principle it could do all the same things that Joplin can do, and then some.

Re:This Page is Designed to Last by techslave on Saturday December 21, 2019 @01:08PM (#21852480)
> No need of proprietary code and apps why not build it into browsers.

Safari does this. pages added to the reading list archive the content for offline reading.

Re:This Page is Designed to Last by celeritascelery on Friday December 20, 2019 @12:20AM (#21841884)
Joplin is open source.
Re:This Page is Designed to Last by q-base on Friday December 20, 2019 @02:48AM (#21842370)
Thanks a lot for the recommendation! I have been a little annoyed with Evernote not having an app for Ubuntu, which I recently started using quite heavily. So this looks very interesting!
Re:This Page is Designed to Last by m-p-3 on Thursday December 19, 2019 @10:29PM (#21841514)
The developer behind it is doing some awesome stuff so I decided to sponsor him on GitHub.
Re:This Page is Designed to Last by erikbye on Friday December 20, 2019 @06:42AM (#21843379)
> Only downside is I'm dependent on Evernote, but hopefully it manages to stick around in some form for a good while, and if it ever doesn't, I expect I'll be able to migrate to something similar.

I have used Evernote and OneNote, but have finally, after a long interim period, resorted to using only markdown.

I have a "Notes" root folder and organize section groups and sections in subfolders. VSCode (or Emacs), with some tweaks, shortcuts, and extensions, provides a good-enough markdown editing experience. Like an extension that allows you to paste in images, storing it in a resources folder in the note's current location (yes, I see small problems with this down the road when re-organizing, but nothing that can't be handled).

For Firefox, I use the markdown-clipper extension the few times I would like to copy a whole article, it works well enough. Or I copy/paste what I need; mostly, I take my own summarized notes.

For syncing, I use Nextcloud, which also makes the notes available both for reading and editing on Android and iOS (I use both).

Up until very recently, I used Joplin, which also uses markdown, but there were two things I could not live with: it does not store the markdown files with a readable filename, e.g., its title, and being tied to a specific editor.

If you are mostly clipping and not writing your own notes, I can imagine my setup won't work well, or be very efficient.

I want to use a format that has longevity, and storing in a format that I cannot grep is out of the question.

Re:This Page is Designed to Last by sharps1 on Friday December 20, 2019 @08:54AM (#21844095)
Re:This Page is Designed to Last by unicornporn on Friday December 20, 2019 @04:53AM (#21842874)
https://archivebox.io/

You bookmark in Pinboard or Delicious and ArchiveBox saves the page. Handy.

Re:This Page is Designed to Last by Abishek_Muthian on Friday December 20, 2019 @01:38AM (#21842131)
>if I even remembered I'd bookmarked something in the first place

I had recently participated in a discussion on the problem of forgetting bookmarks[1].

Copying my workflow from there,

1. If the entire content should be easily viewed, then store via pocket extension.

2. If a partial content should be easily viewed i.e. some snippet with link to entire source, then store in notes (Apple).

3. If the content seem useful in the future, but it is okay to forget it; then I store it in the browser bookmarks.

But, my workflow doesn't address the problem raised by Mr. Jeff Huang; if Pocket app or notes disappear so goes my archives. I think self hosted archive as mentioned by the parent is the way to go, but I don't think it's a seamless solution to a common web browser user.

[1]https://needgap.com/problems/57-i-forget-my-web-bookmarks-qu...

Re:This Page is Designed to Last by iudqnolq on Friday December 20, 2019 @02:38AM (#21842322)
My solution for a small subset of the forgetting problem:

I frequently see something and want to try it out the next time I want to do something else. So I emulate User Agent strings and append lots of "like [common thing I search for a lot]" to the bookmark. When I start typing into the search bar for those other things I'll be reminded of the bookmark.

For example, since file.io is semi-deprecated I decided to try out 0x0.st . But I kept forgetting when I actually needed to transfer a file, so I made a bookmark titled "0x0.st Like file io".

As a side note, I have a similar bash function called mean2use that I use to define aliases that wrap a command and ask me if I'd like to do it another way instead or if I'm sure I want to use the command. I've found this is a nice way to retrain my habits.

Re:This Page is Designed to Last by Abishek_Muthian on Saturday December 21, 2019 @12:54AM (#21849871)
That was useful, can you add this to the original needgap thread I linked?

Disclaimer: needgap is a problem validation platform I built.

Re:This Page is Designed to Last by pqs on Friday December 20, 2019 @03:47AM (#21842588)
I'm glad you mention Evernote. I also use it for this, and also for many other purposes.

It is true that it is propietary software but it is worth mentioning that all the content can be exported as an .enex file, which is xml.

So, the data can be easily exported.

Re:This Page is Designed to Last by jmiserez on Friday December 20, 2019 @04:26AM (#21842767)
>easily exported

Have you actually looked at such an xml: https://gist.github.com/evernotegists/6116886

Exported sure, it's all there. But importing that into your new favorite notes application is not going to be trivial, especially not for regular users.

That's why I've decided to stick mostly to regular files in a filesystem.

Re:This Page is Designed to Last by WaltPurvis on Friday December 20, 2019 @10:07AM (#21844666)
Presumably "regular users" will not be individually writing XML parsing code to convert the notes. The developers of their "new favorite notes application" will do it (and if they can't be bothered, maybe it shouldn't be your "new favorite notes application").

Joplin, for example, can import notes exported from Evernote. It's just a menu option that even regular users should have no trouble employing.

Re:This Page is Designed to Last by WalterBright on Friday December 20, 2019 @01:06AM (#21842022)
I store bookmarks (i.e. URLs) in a simple .txt file. My text editor lets me click on them to bring them up in a browser.

> Only downside is I'm dependent on Evernote

No special software nor database required.

Re:This Page is Designed to Last by tempestn on Friday December 20, 2019 @02:40AM (#21842330)
What benefit does that provide compared to regular browser bookmarks? It doesn't seem to address either of the issues I mentioned.
Re:This Page is Designed to Last by WalterBright on Friday December 20, 2019 @03:39AM (#21842558)
1. it's independent of the browser

2. it works with any browser

3. I can move it to any machine and use it

4. It is not transmitted to the browser vendor

5. Being a text file, it is under my control

6. I can back it up

7. I don't need some database manager to access it

8. I can add notes and anything else to the file

9. It's stupid simple

Re:This Page is Designed to Last by duckmysick on Friday December 20, 2019 @04:00AM (#21842635)
What happens when the website itself becomes unavailable?
Re:This Page is Designed to Last by larrywright on Friday December 20, 2019 @08:07AM (#21843850)
For me, this is the problem that Evernote solves - it saves the entire content of the page, images, text, and clickable links.
Re:This Page is Designed to Last by WalterBright on Friday December 20, 2019 @03:46PM (#21847254)
The link stops working.
Re:This Page is Designed to Last by petra on Friday December 20, 2019 @07:56AM (#21843796)
I find Evernote's search isn't that good, at least in the free version. Often trying to remember keywords and using Google is faster.

I know about DevonThink, i read good recommendations. But it's IOS/Mac only.

Any Evernote alternative for Win/Android with great search ?

Re:This Page is Designed to Last by strig on Friday December 20, 2019 @10:24AM (#21844790)
Another commenter suggested https://joplinapp.org/, it has a nice search feature and has apps for most platforms.
Re:This Page is Designed to Last by mcnichol on Friday December 20, 2019 @01:45PM (#21846449)
You just opened up a world for me I hadn't thought about!

So simple! Thank you!

Re:This Page is Designed to Last by tempestn on Friday December 20, 2019 @02:06PM (#21846594)
You're welcome! If you're interested in getting into GTD in Evernote (which I highly recommend), I wrote a blog post a while back about my setup: https://www.tempestblog.com/2017/08/16/how-i-stay-organized-...
Re:This Page is Designed to Last by BlackEspresso on Saturday December 21, 2019 @02:25AM (#21850144)
Nice article but http://www.thesecretweapon.org/ isnt reachable anymore. The Page didnt Last...
Re:This Page is Designed to Last by tempestn on Saturday December 21, 2019 @03:05PM (#21853079)
Oh the irony. I'll update my link to an archive post or reproduce the important parts. Thanks for pointing that out!

Edit: doesn't appear to be down, they're just using a self-signed cert.

Re:This Page is Designed to Last by BlackEspresso on Monday December 23, 2019 @06:03AM (#21862875)
hmm, your right. i tried "continue with insecure certificate" yesterday but maxbe i was to impatient
Re:This Page is Designed to Last by tuxracer on Friday December 20, 2019 @07:36AM (#21843677)
Is there a good end-to-end encrypted alternative to Evernote?
Re:This Page is Designed to Last by fnord77 on Friday December 20, 2019 @08:01PM (#21848818)
first I heard of web clipping. Looks like OneNote has web-clipper extensions, too. This is so great.
Re:This Page is Designed to Last by romwell on Thursday December 19, 2019 @06:44PM (#21840454)
>There's no reason why a web browser bookmark action doesn't automatically create a WARC (web archive) format.

Indeed.

And I still remember the modem days where I would download entire websites because the ISP charged by the hour, and I'd read them offline to save money.

Re:This Page is Designed to Last by JoeSmithson on Thursday December 19, 2019 @07:44PM (#21840806)
I can't put my finger on it but this has a sort of Dickensian quality to me.

I think this says something kind of profound about information and capitalism and whatnot.

Re:This Page is Designed to Last by thomasz on Friday December 20, 2019 @06:14AM (#21843264)
No, it hasn't. Technology just wasn't there back then which caused significant cost per time unit, which makes it only fair to charge per time unit.
Re:This Page is Designed to Last by majewsky on Friday December 20, 2019 @09:33AM (#21844389)
Yeah. In the dialup days, layer 1 and 2 of a home internet connection was a long-running phone call between your own modem and a modem of an ISP. You payed via your phone bill, for the duration of the call.
Re:This Page is Designed to Last by alentist on Friday December 20, 2019 @12:05PM (#21845592)
It says scarce resources are pricier. Welcome to the real world!
Re:This Page is Designed to Last by jakeogh on Friday December 20, 2019 @03:20AM (#21842470)
Personal wayback machins should be standard computing kit. I have had one since around 2013. Very bare bones demo: https://bpaste.net/show/3FBH6 it does much more than that. file:// is supported for example, so you can recursively import a folder tree, and re-export it later if you wanted to.

Or in some random script: "from iridb import iri_index" "data = iri_index.get('https://some/url')" I'm skipping lots, you can ref by hash, url, url+timestamp. It hands back a fh, you dont know if the data you are reffing even fits in memory. Extensive caching, all the iri/url quirks, punycode, PSL etc.

Some random pdf in ~/Downloads, "import doc.pdf" and dmenu pops up, you type a tag, hit enter and the pdf disappears into the hash tree, tagged, and you never need to remember where you put it. Later on you only need to remember part of the tag, and a tag is just a sequence of unicode words.

Chunks are on my github (jakeogh/uhashfs, it's heka-outdated dont use it yet), I'll be posting the full thing sometime soonish.

Re:This Page is Designed to Last by bloopernova on Thursday December 19, 2019 @07:42PM (#21840792)
I actually this week asked the author of SingleFile if he could implement a save-on-bookmark feature for SingleFile, and he was amenable:

https://github.com/gildas-lormeau/SingleFile

https://github.com/gildas-lormeau/SingleFile/issues/320

Re:This Page is Designed to Last by j88439h84 on Thursday December 19, 2019 @08:07PM (#21840933)
Nice. FYI there's also SingleFileZ

> SingleFileZ is a fork of SingleFile that allows you to save a webpage as a self-extracting HTML file. This HTML file is also a valid ZIP file which contains the resources (images, fonts, stylesheets and frames) of the saved page.

https://github.com/gildas-lormeau/SingleFileZ

Re:This Page is Designed to Last by gildas on Thursday December 19, 2019 @08:09PM (#21840946)
I'll implement the "save bookmark page" feature in both extensions :)
Re:This Page is Designed to Last by johnpowell on Thursday December 19, 2019 @09:27PM (#21841285)
Whoa. I just installed SingleFileZ for FF and it is working great. Before I was using wget and that was clunky. This is working great since I can just toss a single file up on my server and we are good to go. Thanks for this!
Re:This Page is Designed to Last by bloopernova on Thursday December 19, 2019 @08:15PM (#21840970)
oh, hello! It's funny how this subject has popped up again.
Re:This Page is Designed to Last by gildas on Thursday December 19, 2019 @08:19PM (#21840991)
Hi! I think it confirms that there's a real interest in this feature.
Re:This Page is Designed to Last by SirYandi on Saturday December 21, 2019 @01:06PM (#21852476)
Off topic, but could I ask how you knew your software was being talked about? Did you just happen by or have you some monitoring agent looking for mentions? Just curious
Re:This Page is Designed to Last by gildas on Monday December 30, 2019 @11:46AM (#21914625)
Sorry, I didn't see your question. I check the posts on HN very regularly. The title of the post made me think that people might have been talking about SingleFile. Sometimes, friends of mine tell me someone on the Internets is talking about SingleFile :). I also sometimes use the integrated search engine.
Re:This Page is Designed to Last by jimbo1qaz on Thursday December 19, 2019 @09:02PM (#21841167)
WorldBrain's Memex (https://addons.mozilla.org/en-US/firefox/addon/worldbrain/) has an option to perform a full-text index (not archive) of bookmarks, or pages you visited for 5 seconds (default) down to 1 second (no option to index all pages). It stores this stuff into a giant Local Storage (etc) database, which Firefox implements as a sqlite file.
Re:This Page is Designed to Last by steveklabnik on Thursday December 19, 2019 @07:14PM (#21840632)
https://www.gwern.net/Archiving-URLs describes extracting brower history to create an archive via a batch job.
Re:This Page is Designed to Last by cosarara on Thursday December 19, 2019 @07:47PM (#21840828)
Firefox actually purges history automatically. For instance, the oldest history I have on this browser right now is from January 2018. I found about this the hard way.
Re:This Page is Designed to Last by nayuki on Thursday December 19, 2019 @08:37PM (#21841060)
I noticed this behavior in Firefox too. So I started writing personal Python scripts to scrape FF's SQLite database where it stores all the browsing history information.
Re:This Page is Designed to Last by kccqzy on Thursday December 19, 2019 @07:48PM (#21840834)
Safari does the same, even though I tell it to never clear browsing history.
Re:This Page is Designed to Last by Avamander on Thursday December 19, 2019 @08:38PM (#21841067)
I think Chrome(ium) does as well. Very annoying tbh.
Re:This Page is Designed to Last by heavyset_go on Thursday December 19, 2019 @09:57PM (#21841398)
Chrome was the first browser I encountered that deletes history without being instructed to.
Re:This Page is Designed to Last by Thorrez on Thursday December 19, 2019 @11:01PM (#21841618)
It looks like Firefox has been doing it since 2010[1]. I wonder how long Chrome has been doing it, since launch, 2008? Here's a Chrome bug discussing it[2].

[1] https://web.archive.org/web/20151229082536/http://blog.bonar...

[2] https://bugs.chromium.org/p/chromium/issues/detail?id=500239

Re:This Page is Designed to Last by 6510 on Thursday December 19, 2019 @08:00PM (#21840894)
Mosaic had full text history search.
Re:This Page is Designed to Last by pabs3 on Friday December 20, 2019 @09:18PM (#21849160)
You can increase the retention period to centuries via about:config.
Re:This Page is Designed to Last by dbtx on Thursday December 19, 2019 @09:16PM (#21841232)
I have this problem. Some bits of history are gone except from old backups of profile directories and profiles where I've already set places.history.expiration.max_pages to some absurdly high number.

I need to do a handful of experiments to see exactly how this interacts with Sync, even though I've (foolishly) already synced the important profiles. I'd hope that the cloud copies of the places database just keeps growing, but in any case, I'd rather combine them all offline anyway.

Re:This Page is Designed to Last by gwern on Thursday December 19, 2019 @09:35PM (#21841313)
Even if you set the setting, how can you be sure that it won't be reset on an upgrade or that you'll remember to set it if you need a new profile (perhaps your old one becomes buggy, crufty, corrupt, or all three)? I thought I had all my history retained until one day I couldn't find a website I knew I had visited years ago, and took a closer look at my history and was very unpleasantly surprised... What happened? I'll never know, but my suspicion is that Firefox reset the history retention setting at some point along the way. If you do any web dev, you know Firefox occasionally backstabs you and changes on updates. The only way to be sure over a decade-plus is to regularly export to a safe text file where the Mozilla devs can't mess with it. I can't undo my history loss, but I do know I have lost little history since.
Re:This Page is Designed to Last by dbtx on Thursday December 19, 2019 @10:55PM (#21841604)
I can't be sure. When I say 'combine them all offline', I mean using something like [1] which refuses to do anything for me because the Waterfox database version is a rather old Firefox version, and that seems to expect all the db's versions to be up-to-date and equal, which seems pointless. #include <sqlite3.h> was my next step-- only I don't walk very well, so that didn't happen "yet". Or I'm lazy, or distracted, or depressed, or something. When I recently got tired of realizing a thing was on the other machine, I bit the bullet and synced them, if only to see how well that worked.

Anyway, thanks for the guide.

[1] https://github.com/crazy-max/firefox-history-merger

Re:This Page is Designed to Last by BiteCode_dev on Friday December 20, 2019 @07:17AM (#21843563)
I like the idea, but wanted to know how realistic it would be so I made a quick and dirty Python script to download all my bookmarks. If you want to make the same experiment, you can get it from here: https://gist.github.com/ksamuel/fb3af1345626cb66c474f38d8f03...

It requires Python 3.8 (just the stdlib) and wget.

I have 3633 bookmarks, for a total of 1.5 Go unziped, 1.0 Go zipped (and we know we can get more from better algo and using links to files with the same checksum like for JS and css deps).

This seems acceptable IMO, espacially since I used to consider myself a heavy bookmarker and I was stunned by how few I actually had and how little disk they occupied. Here are the types of the files:

   31396 text/plain
   3034 application/octet-stream
   1316 text/x-c++
   1123 text/x-po
    865 text/x-python
    384 text/html
    227 application/gzip
    218 inode/x-empty
    178 text/x-pascal
    113 image/png
     44 application/zlib
     29 text/x-c
     28 text/x-shellscript
     14 application/xml
     13 application/x-dosexec
     12 text/troff
      5 text/x-makefile
      4 text/x-asm
      3 application/zip
      2 image/jpeg
      2 image/gif
      2 application/x-elc
      1 text/x-ruby
      1 text/x-diff
      1 text/rtf
      1 image/x-xcf
      1 image/x-icon
      1 image/svg+xml
      1 application/x-shockwave-flash
      1 application/x-mach-binary
      1 application/x-executable
      1 application/x-dbf
      1 application/pdf
It should probably be opt-in though, like a double click on the "save as bookmark icon" to download the entire file, and the star becomes a different color. Mobile phones, chrome books and raspy may not want to use the spaces, not to mention there are some bookmark content that you don't want your OS to index, and show you preview of in every search.

But it would be fantastic: by doing this experiment I noticed that many bookmarks were 404 now, and I will never get their content back. Beside, searching bookmark, and referencing them is a huge pain.

So definitely something I wish mozilla would consider.

Re:This Page is Designed to Last by asdasdasdasdwd on Friday December 20, 2019 @10:40AM (#21844928)
> definitely something I wish mozilla would consider

There used to be this neat little extension called Read It Later that let you do just that. Bookmark and save it so you could read it when you were offline or the page disappeared. Later they changed their name and much later Mozilla bought it and added it to Firefox without a way to opt out. It was renamed to Pocket.

Re:This Page is Designed to Last by BiteCode_dev on Friday December 20, 2019 @10:51AM (#21845000)
Pocket is not integrated with your bookmarks. For offline consultation, you need a separate app. Of course this app is not available on Linux, where you have to get some community provided tools.

Bookmark integration would mean one software, with the same UI, on every platform, and only one listing for your whole archive system.

Re:This Page is Designed to Last by ryanfox on Thursday December 19, 2019 @09:27PM (#21841282)
I’ve been building an application to do this, except for everything on your computer! It’s called APSE[0], short for A Personal Search Engine.

[0] https://apse.io

Re:This Page is Designed to Last by hk__2 on Thursday December 19, 2019 @11:11PM (#21841662)
Having to pay $15/month ($180/yr!) to be able to search stuff on my own computer for years seems awfully expensive. I'd rather depend on some simple open-source piece of software that I can understand and maintain if necessary.
Re:This Page is Designed to Last by tasogare on Friday December 20, 2019 @12:55AM (#21841994)
Yeah, the sheer idea of paying a subscription for software that is running on my computer to index local resources is crazy. This kind of software should be should sold as one-time buy license.
Re:This Page is Designed to Last by abraae on Friday December 20, 2019 @12:23AM (#21841900)
Decades ago there was an amazing piece of software from lotus when I worked there called magellan. I remember the first time I saw someone search, and find results in text documents, spreadsheets and many other of the common formats of the day.

That was in 1989 and today I mostly search my computer using find and grep commands, since that's what just keeps working.

Re:This Page is Designed to Last by nukst on Friday December 20, 2019 @10:17AM (#21844744)
I should try adopting find and grep, but on Windows I'm currently using this and I'm very happy with it: https://www.voidtools.com/downloads/
Re:This Page is Designed to Last by Multicomp on Friday December 20, 2019 @07:07PM (#21848532)
I use Void Tools Everything to find files by name, and AstroGrep for finding information in them.
Re:This Page is Designed to Last by vxNsr on Friday December 20, 2019 @01:42PM (#21846427)
Yup, I could see paying $180 one time for something like this. but at $180 a year for a self hosted product... that's just very steep.
Re:This Page is Designed to Last by crucialfelix on Friday December 20, 2019 @02:18AM (#21842256)
Google used to have a native Mac extension like a launch bar. Command space ... Enter search all local files. It was really fast
Re:This Page is Designed to Last by lloydde on Friday December 20, 2019 @03:54AM (#21842616)
Re:This Page is Designed to Last by crucialfelix on Friday December 20, 2019 @05:53AM (#21843176)
Well I used LaunchBar and then Quicksilver for many years. Spotlight has never been as nice and hackable as those.
Re:This Page is Designed to Last by pvg on Thursday December 19, 2019 @07:05PM (#21840576)
You can ask Safari to do that by enabling 'Reading List: Save articles for offline reading automatically'. It's not WARC but it is an offline archive. The shortcut is cmd-shift-D which is almost the same as the bookmark one. It's also the only way I know of to get Safari to show you bookmarks in reverse chronological order. And it syncs to iOS devices.

This could be done in better and more specialized ways, one problem is browser extension APIs don't provide very good access to the browser's webpage-saving features.

Re:This Page is Designed to Last by chaostheory on Friday December 20, 2019 @12:28AM (#21841918)
This problem has been solved a long time ago if you use Pinboard.

https://pinboard.in/

Just pay the yearly subscription so pinboard can cache your bookmarks.

Re:This Page is Designed to Last by akho on Friday December 20, 2019 @01:27AM (#21842094)
I do not see how using a web thing is a solution to web things going away.
Re:This Page is Designed to Last by L_Rahman on Friday December 20, 2019 @03:34AM (#21842545)
Pinboard happens to be a web service run along the same principles as the article we're discussing.

The bus factor is high, but I suspect that Maciej has a plan that'll let us download our archive even if he does get grabbed by the mainland Chinese government let alone a forecasted going out of business action.

Re:This Page is Designed to Last by chaostheory on Friday December 20, 2019 @02:01PM (#21846558)
Then what do you propose the answer is? The blog post just proposes using “web things” differently
Re:This Page is Designed to Last by akho on Wednesday December 25, 2019 @12:40AM (#21877042)
For archiving web pages? ArchiveBox is ok.
Re:This Page is Designed to Last by fphilipe on Friday December 20, 2019 @03:14AM (#21842443)
I've contemplated upgrading my Pinboard account many times. Finally bit the bullet.
Re:This Page is Designed to Last by cambalache on Friday December 20, 2019 @02:10AM (#21842233)
Until pinboard goes OOB
Re:This Page is Designed to Last by chaostheory on Friday December 20, 2019 @10:32PM (#21849412)
Pinboard is a profitable online equivalent to a mom and pop shop. It’s sustainable and its founder isn’t chasing growth at all costs. It also has a cult following, so OOB is highly unlikely.
Re:This Page is Designed to Last by simongr3dal on Friday December 20, 2019 @12:45AM (#21841966)
Does pinboard caching work with sites that are behind a login or paywall?
Re:This Page is Designed to Last by L_Rahman on Friday December 20, 2019 @03:31AM (#21842528)
It does not. See FAQ here: https://pinboard.in/upgrade/
Re:This Page is Designed to Last by larrywright on Friday December 20, 2019 @08:10AM (#21843871)
This is the advantage to Evernote. Since it’s a browser extension, it has access to anything you have access to.
Re:This Page is Designed to Last by majewsky on Friday December 20, 2019 @09:36AM (#21844418)
The downside is, since it’s a browser extension, it has access to anything you have access to.
Re:This Page is Designed to Last by larrywright on Friday December 20, 2019 @10:58AM (#21845056)
Agreed that there’s a tradeoff. I don’t think there’s really an alternative solution though.
Re:This Page is Designed to Last by soulofmischief on Friday December 20, 2019 @02:47AM (#21842360)
I use the Zotero extension for this feature.

https://www.zotero.org/

Re:This Page is Designed to Last by eavotan on Friday December 20, 2019 @01:20PM (#21846220)
came here to say this. zotero also saves metadata as an extra. as long as it is used from within a browser.
Re:This Page is Designed to Last by arjie on Thursday December 19, 2019 @06:39PM (#21840421)
In practice how is this different from MHTML? I think most browsers have built-in support for MHTML so it should be possible to build that part easily.
Re:This Page is Designed to Last by Laforet on Thursday December 19, 2019 @07:00PM (#21840545)
The state of mhtml support is fairly pathetic at the moment. Firefox broke mhtml compatibility with the quantum overhaul. Chrome's mht support had been a hit and miss over the years, sometimes removing the GUI option entirely and requiring one to manually launch the browser with a special tag to enable it. The only browser with a history of consistent mhtml support happens to be....Internet Explorer, followed by a bunch of even more obscure vendors that nobody really uses.

I am currently dealing with the problem of parsing large mht files (several megabytes and up). A regular web browser would hang and crash upon opening these files and most ready made tools I could find struggle with the number of embedded images. It's very much a neglected format with very little support in 2019.

Re:This Page is Designed to Last by est31 on Thursday December 19, 2019 @06:56PM (#21840525)
According to the MHTML entry on Wikipedia, Chrome requires an extension, Firefox doesn't support it, and only Internet Explorer supports MHTML.
Re:This Page is Designed to Last by scrollaway on Thursday December 19, 2019 @07:01PM (#21840550)
I mean, it's not any worse than WARC support…
Re:This Page is Designed to Last by est31 on Thursday December 19, 2019 @07:15PM (#21840643)
Maybe MAFF's are best as they use compression instead of base64 encoding: https://en.wikipedia.org/wiki/Mozilla_Archive_Format
Re:This Page is Designed to Last by gildas on Thursday December 19, 2019 @07:20PM (#21840676)
Or SingleFileZ files which can be viewed without installing any extension https://github.com/gildas-lormeau/SingleFileZ.

Edit: it can also auto-save pages, like SingleFile.

Re:This Page is Designed to Last by mrspuratic on Friday December 20, 2019 @06:13AM (#21843257)
I used the excellent unMHT plugin for Firefox, but it got dropped some time ago, failed to meet "enhanced security requirements" :(

I still keep an old ESR with this plugin for archiving, and accessing MHTs.

Re:This Page is Designed to Last by reificator on Thursday December 19, 2019 @08:50PM (#21841120)
This is what started me clipping everything to OneNote instead of bookmarking. Unfortunately, it becomes difficult to maintain, the formatting is off, things subtly break, pages clipped on mobile use different fonts for god knows what reason, some content is discarded silently because the clipper deems it's not part of the main article, I could go on.

It's better than nothing but it's also increasingly frustrating to deal with.

Re:This Page is Designed to Last by franga2000 on Friday December 20, 2019 @07:47AM (#21843746)
I've actually been saving every page I visit for a good two years now and it has barely caused in dent in my NAS storage space. As usual though, I wrote a crappy extension and Python script to do that because I never bothered to look online. Thanks for introducing me to WarcProxy - I'll probably be making the switch very soon.
Re:This Page is Designed to Last by boring_twenties on Thursday December 19, 2019 @09:17PM (#21841235)
That would be even more useful if a search warrant is ever executed on my house.

Not useful to me personally, but useful to someone!

Re:This Page is Designed to Last by pjmlp on Friday December 20, 2019 @03:17AM (#21842455)
I always save pages instead of only bookmarking them.

Most websites I used to visit during demoscene high days, are now gone.

Re:This Page is Designed to Last by btrettel on Thursday December 19, 2019 @10:16PM (#21841473)
Years ago I used the old Firefox addon Shelve to automatically archive the vast majority of web pages I visited.

http://shelve.sourceforge.net/

The main disadvantage was disk space. This is particularly true when some pages are 10 MB or larger. I would periodically prune the archive directory for this reason.

I stopped using Shelve when I started running out of disk space, and now I can't use Shelve because the addon is no longer supported. The author of Shelve has some suggestions for software with similar functionality:

https://groups.google.com/forum/#!topic/shelve-firefox-addon...

Re:This Page is Designed to Last by dbtx on Friday December 20, 2019 @02:23AM (#21842273)
It installs and loads in Waterfox, but of course it still hasn't been touched in 3.5 years.

I used Scrapbook in the past (which also still works) but I usually just save random things in ~/webpages/ since (apparently) 2011. The earliest is a copy of the landing page at bigthink.com. Of course now almost every link is broken, excluding social media buttons, About Us, Contact Us, RSS, Privacy, Terms of Use, Login, and the header logo pointing at the same page.

Re:This Page is Designed to Last by sneak on Thursday December 19, 2019 @08:01PM (#21840900)
It would be nice if we had browsers that were actually user-agents that allow full pluggable customizability for all cookie, header, UI, request, and history behavior. Then, this would just be a plugin that anyone could install.
Re:This Page is Designed to Last by Polylactic_acid on Thursday December 19, 2019 @08:23PM (#21841003)
And then people install garbage extensions that break the browser and people think "Wow, this firefox browser is so buggy and slow" and switch to chrome. And then your extensions break with every single browser update because they are tampering with internal code.

Everyone is free to fork a browser and apply any changes they want. Allowing extensions to change anything at all essentially is the same as forking and merging your changes with upstream every update.

Re:This Page is Designed to Last by sneak on Friday December 20, 2019 @08:29AM (#21843945)
Somehow that doesn’t seem to happen with editors; we have a ton of them and they are very customizable.

I guess “with a reasonably stable hook api” was supposed to be implicit in my statement.

Re:This Page is Designed to Last by fouc on Thursday December 19, 2019 @06:42PM (#21840439)
How is viewing the WARC after? Is it the same quality as archive.is/ or archive.org/ ?
Re:This Page is Designed to Last by cookiecaper on Friday December 20, 2019 @03:32AM (#21842535)
It's a pain, like most of the WARC ecosystem. It's been several months since I dug in, so maybe it's had some spitshine the last little bit, but I usually end up using combinations of wpull, grab-site, and a smattering of other utilities to reliably capture a page/set of pages, and have had to make some quick hacks as well as manually merging in some PRs to get things to work with Python3. Once I have the WARC, I typically end up using warcat to extract the contents into a local directory and explore that way.

WARC as a format seems promising, but at least last I checked, open-source tooling to make it a pleasant and/or transparent experience is not really there, and worse, at least as of several months ago, doesn't really seem actively worked on. Definitely an area you'd expect to be further along.

Re:This Page is Designed to Last by edraferi on Thursday December 19, 2019 @06:50PM (#21840489)
Pretty good, depending on the tooling. I’m having good luck with https://webrecorder.io/ and their related open-source tools.
Re:This Page is Designed to Last by shakna on Thursday December 19, 2019 @09:01PM (#21841165)
archive.org use WARC if I remember correctly, and offer guides on creating and reading the format.
Re:This Page is Designed to Last by kccqzy on Thursday December 19, 2019 @07:47PM (#21840826)
Safari used to (and still) do this automatically but in a limited way. In the browsing history view (Command Y), you can search visited pages by its content, and this is extremely useful. But there's no way(†) to tell Safari to display that saved content. If you revisit a URL in the history, Safari fetches it again, losing the original saved content.

(†): short of direct plist manipulation

Re:This Page is Designed to Last by saagarjha on Thursday December 19, 2019 @07:53PM (#21840857)
Does it actually? I thought history was stored in a SQLite database and only kept the URL and page title.
Re:This Page is Designed to Last by railmeat on Tuesday December 31, 2019 @05:31AM (#21920099)
This comment misses the point.

The point is to make a webpage that lasts. So people can link to it and get the page. That means making a maintainable webpage and a url that does not change.

It is great that you can archive every page you visit for yourself, but that is not the same as making a lasting web.

Lets make something that others can use too.

Re:This Page is Designed to Last by 3xblah on Friday December 20, 2019 @02:44AM (#21842342)
Better than a bookmark action would be a commandline option, similar to Firefox's -screenshot, which will work without starting X11. Something like -archive:warc
Re:This Page is Designed to Last by tripzilch on Friday December 20, 2019 @09:22AM (#21844289)
Does this also strip the megabytes of superfluous tracking JS? It's probably what'll be the bulk of the size on the modern web, and I don't feel any particular need to store it.

(I believe that for historical purposes, enough complaining about ads and tracking will survive that future historians can easily deduce the existence of this practice)

Re:This Page is Designed to Last by crazypython on Friday December 20, 2019 @07:48AM (#21843752)
I use DEVONThink on my mac, which has web archiving, full-text search, and auto-categorization.
Re:This Page is Designed to Last by 3xblah on Thursday December 19, 2019 @10:09PM (#21841446)
"Imagine having the last 30 years of web browsing history saved on your local machine."

I believe the name for that experience was/is "Microsoft Windows".

Re:This Page is Designed to Last by temporaryvector on Friday December 20, 2019 @04:21AM (#21842746)
>Heck, with the cost of storage so low, recording every webpage you ever visit in searchable format is also very realistic.

I tend to do that, I also save a lot of scientific papers, ebooks and personal notes. I've found that doing so does not help me at all. The main problem I have is that when I need to look something up (an article, a book, a bit of info) I reach for google first, usually end up finding the answer and go to save it, only to find that I had already found the answer beforehand (and perhaps already made clarifying notes to go along with it) and then forgot about it.

This, and not dead links, is the fundamental problem with bookmarks for me. Not only bookmarks, it extends to my physical notes and pretty much everything I do. If I haven't actively worked on something for a couple of months, I forget all about it and when I come back to it I usually have to start from scratch until I (hopefully) refresh my memory. Some of it is also usually outdated information.

I think this is a big, unsolved problem and I'm not even sure how to go about starting to solve it. I can envision some form of AI-powered research assistant, but only in abstract terms. I can't envision how it would actually work to make my life better or easier. It would need to be something that would help blur the line between things I know and things that are on my computer somehow. If I think of my brain like it has RAM and cache, things I'm working on right now are in the cache and things I've worked on recently or work on a lot are in RAM, but what's for me lacking is a way to easily move knowledge from my brain-RAM to long term storage and then move that knowledge back into working memory faster than I can do so now. I'm not even talking about brain uploading or mind-machine interfaces, but just something that can remind me of things I already know but forgot about faster than I can do so by myself.

I am convinced that figuring out how to do this will lead to the next leap in technological development speed and efficiency. Not quite the singularity that transhumanists like to talk about, but a substantial advancement.

Re:This Page is Designed to Last by hikarudo on Friday December 20, 2019 @07:26AM (#21843617)
I have exactly the same problem.

What I've found is that I need to spend more time deciding what is important, and less time consuming frivolous information. That's hardly a technology problem.

For things I really don't want to forget, I'm using Anki [0], a Spaced Repetition System (SRS). Anki is supremely good at knowing when you're about to forget an item and prompting you to review it.

Spaced practice and retrieval practice, both of which are used in SRS, are two learning techniques for which there is ample evidence that they actually work [1].

You still need to decide what is worth remembering, but that's something technology can't help with, I think.

[0] https://apps.ankiweb.net/

[1] https://www.learningscientists.org/

Re:This Page is Designed to Last by dredmorbius on Friday December 20, 2019 @08:54AM (#21844093)
Yes so much this.

There are a few issues to consider:

- Any comprehensive archive of your activity is itself going to be a tremendously "interesting" resource for others -- advertisers, law enforcement, business adversaries, and the like. Baking in strong crypto and privacy protections from the start would be exceedingly strongly advised.

- That's also an excellent reason to have this outside the browser, by default, or otherwise sandboxed.

- Back when I was foolish enough to think that making suggestions to Browser Monopoly #1 was remotely useful, I pointed out that the ability to search within the set of pages I currently have open or have visited would be immensely useful. It's (generally) a smaller set than the entire Web, and comprises a set of at least putatively known, familiar, and/or vetted references. I may as well have been writing in Linear A.

- Context of references matters a lot to me. A reason I have a huge number of tabs open, in Firefox, using Tree-Style Tabs, is that the arrangement and relationships between tabs (and windows) is itself significant information. This is of course entirely lost in traditional bookmarks.

- A classification language for categorising documents would be useful. I've been looking at various of these, including the Library of Congress Subject Headings. A way of automatically mapping 1-6 high-probability subjects to a given reference would be good, as well as, of course, tools for mapping between these.

- I've an increasing difference of opinion with the Internet Archive over both the utility and ultimately advisability of saving Web content in precisely the format originally published. Often this is fragile and idiosyncratic. Upconverting to a standardised representation -- say, a strictly semantic, minimal-complexity HTML5, Markdown, or LaTeX, is often superior. Both have their place.

On that last, I've been continuing to play with the suggestion a few days ago for a simplified Washington Post article scrubber, and now have a suite of simple scripts which read both WashPo articles and the homepage, fetching links from the homepage for local viewing. These tend to reduce the total page size to about 3-5% of the original, are easier to read than the source, and are much more robust.

I'm reading HN at the moment from w3m (which means I've got vim as my comment editor, yay!), and have found that passing the source to pandoc and regenerating HTML from that (scrubbing some elements) is actually much preferable, for the homepage. Discussion pages are ... more difficult to process, and the default view in w3m is unpleasant, though vaguely usable.

Upshot: saving a WARC strictly for archival purposes is probably useful, but generating useful formats as noted above would be generally preferable in addition.

With the increasing untenability of mainstream Web design and practices, a Rococco catastrophe of mainstream browsers, the emergence of lightweight and alternative browsers and user-agents (though many based on mainstream rendering engines), the tyranny of the minimum viable user attacking any level of online informational access beyond simple push-stream based consumption, and more, it seems that at the very least there's a strongly favourable environment to rethinking what the Web is and what access methods it should support. Peaks in technological complexity tend to lead to a recapitulation phase in which former, simpler, ideas are resurrected, returned to, and become the basis of further development.