Live data from Hacker News

Show HN: Markdown New Tab – A new tab replacement to jot down notes in Markdown

github.com

1–10 of 118 posts

Re: Show HN: Markdown New Tab – A new tab replacement to jot down notes in Markdown

#3
> The code makes use of localStorage() to save the raw text and the time and date of when the edit has been made.

Given that localStorage only has 5MiB available to it, you could try using the localForage library to have a localStorage-like API around IndexedDB, so that people can store even larger notes (you could even support storing pasted images as PNG blobs). Even better: is has automatic localForage fallback.

Alternatively, you might want to either compress the text with LZ-String before storing it[1]. (BTW, version 2.0 is currently in the works and much faster, especially if you use the "Unsafe" version[2])

[0] https://localforage.github.io/localForage/

[1] http://pieroxy.net/blog/pages/lz-string/index.html

[2] https://github.com/pieroxy/lz-string/pull/98#issuecomment-40...

Re: Show HN: Markdown New Tab – A new tab replacement to jot down notes in Markdown

#6
post #4

How do you interpret these licensing terms: License Copyright (c) Mihir Chaturvedi. All rights reserved. Licensed under the MIT License. If Mihir has all rights reserved, what's the purpose of adding MIT with it?

Isnt't "All rights reserved" typical language, even with open source licenses?

Re: Show HN: Markdown New Tab – A new tab replacement to jot down notes in Markdown

#8
post #4

How do you interpret these licensing terms: License Copyright (c) Mihir Chaturvedi. All rights reserved. Licensed under the MIT License. If Mihir has all rights reserved, what's the purpose of adding MIT with it?

Open source license does not mean giving up intellectual property rights. You can only license the work if you own the rights to the work.

MIT License starts with copyright notice:

    Copyright (c)  

    Permission is hereby granted, free of charge, to any person
    obtaining a copy of this software and associated 
    documentation files (the "Software"), to deal ....

Re: Show HN: Markdown New Tab – A new tab replacement to jot down notes in Markdown

#10

> The code makes use of localStorage() to save the raw text and the time and date of when the edit has been made. Given that localStorage only has 5MiB available to it, you could try using the localForage library to have a localStorage-like API around IndexedDB, so that people can store even larger notes (you could even support storing pasted images as PNG blobs). Even better: is has automatic localForage fallback. A…

You realize that all of Pride and Prejudice is ~280KB, right?

http://www.gutenberg.org/ebooks/1342

:)

Post reply on HN