News for hackers. Stuff that matters.
Re:Show HN: Bear – Minimal blogging platform by lazyjones on Tuesday May 26, 2020 @12:53PM (#23313460)
I'm surprised nobody has attempted to put the content in the URL yet (to display on a static page with styling using JS [needs a tag filter...] to insert an URL parameter into some node). It would accommodate at least 2KB of text, local caching and fast hosting all in one.
Re:Show HN: Bear – Minimal blogging platform by pmachinery on Tuesday May 26, 2020 @01:06PM (#23313622)
Re:Show HN: Bear – Minimal blogging platform by lazyjones on Tuesday May 26, 2020 @01:46PM (#23314179)
Yes, that's what I mean. But only Hashify still exists apparently...
Re:Show HN: Bear – Minimal blogging platform by pmachinery on Tuesday May 26, 2020 @01:51PM (#23314251)
Yeah, the pages linked from those HN links don't seem to exist, but you can still download it:

https://github.com/lucaspiller/shortly

I was always quite fascinated by the concept, but I suspect liability and lack of control over the content is a fatal issue and why nothing much seemed to come from it.

If someone makes a 'bad' page, which is inevitable, the domain with the hashify/shortly code would be held responsible and the only way the site owner could 'remove' the content would be to stop the service.

Re:Show HN: Bear – Minimal blogging platform by thinkloop on Tuesday May 26, 2020 @02:41PM (#23314873)
> Storing a document in a URL is nifty, but not terribly practical. Hashify uses the [bit.ly API][4] to shorten URLs from as many as 30,000 characters to just 20 or so. In essence, bit.ly acts as a document store! [1]

bit.ly et al. seem to be able to get away with being agnostic processors. I'm surprised there haven't been more stories about their services being abused.

[1] https://hashify.me/IyBIYXNoaWZ5CgpIYXNoaWZ5IGRvZXMgbm90IHNvb...

Re:Show HN: Bear – Minimal blogging platform by forbiddenvoid on Tuesday May 26, 2020 @01:10PM (#23313681)
This reminds me a lot of the old Geico "wehadababyitsaboy" commercial:

https://youtu.be/9JxhTnWrKYs

Re:Show HN: Bear – Minimal blogging platform by mercacona on Tuesday May 26, 2020 @01:04PM (#23313604)
Not a blog, but:

https://itty.bitty.site/edit

You can get a QR with your text too :-)

Re:Show HN: Bear – Minimal blogging platform by divbzero on Tuesday May 26, 2020 @03:56PM (#23315723)
Thinking through this, it seems like content-in-URL would work for a website with a single page or a small number of pages, but would limited by the fact that links from one content-in-URL page to another content-in-URL page require content from both pages to be encoded in the first page’s URL. If you have pages linking to pages linking to pages, this cascades into requiring content from all pages encoded in the home page URL.
Re:Show HN: Bear – Minimal blogging platform by dartf on Thursday May 28, 2020 @12:29PM (#23339205)
I guess I'm a bit late to the party, but after reading your comment I hacked something together - https://x.rukin.me It's ugly and I haven't spent any time styling it or improving editor(it's just textarea) but it works as PoC. Also I've started it before I read comments that hashify exists, otherwise I would probably not do it ;)

Compared to hashify:

- it uses zlib to compress data, so it can actually contain much more content(if it's repetitive)

- it also supports password encryption of the content (don't know why, but my friend said it would be cool)

- only supports markdown(no html) as I haven't found any good js lib for html sanitization on client side

Examples:

- With password: https://bit.ly/3c7xkyb pass: wasted

- Some markdown: https://j.mp/2AivRYr

P.S. I still have no idea why anyone will use it

Re:Show HN: Bear – Minimal blogging platform by panopticon on Tuesday May 26, 2020 @04:59PM (#23316325)
This was posted on HN a while ago: https://github.com/jstrieb/urlpages

Not blogging specific, but it allows you to encode web content into the URL.

Re:Show HN: Bear – Minimal blogging platform by crocodiletears on Tuesday May 26, 2020 @01:05PM (#23313608)
This has been done, iirc. I think it was HN where I saw it a couple years back. I couldn't find it today if I wanted to, but it's definitely been done.
Re:Show HN: Bear – Minimal blogging platform by fwip on Tuesday May 26, 2020 @01:59PM (#23314350)
If you're sending a 2KB URL to somebody, you can also just copy&paste the text of your blog post.

But yeah, you'd miss out on styling it.