Giter Site home page Giter Site logo

notehub's People

Contributors

aminag avatar caffeinewriter avatar maciejsmolinski avatar mking avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

notehub's Issues

What is with the pornographic adverts?

Just opened one of my previous pastes, noticed you've started using blockadblock, so naturally I disabled adblock, only to see that the adverts you have on your site are pornographic, asked other people to turn there's off to confirm, it seems they are seeing it too, can't you use something a little more appropriate for your ads? Some of us are trying to use your tool for legitimate purposes only to be thwarted by these inappropriate ads.

Content lost on session expiration

When you write content and have a long pause, your session will expire even though you are not logged in. When you click "Publish" you get a message that states "Sessions expired" and the content is lost.

Since I wasn't logged in, I didn't even consider the possibility of a session.

It would be nice if the sessions expiration either kept the content in an text field on the expiration page or if the service checked for session expiration before attempting to publishing.

Auto delete after x days...

Dr. Christian Müller,

Any chance you would consider adding an option to auto delete an item in x number of days. I would like to have the option to write posts that would last for 7 days and then automatically delete. I use tweetdelete.net to kill my tweets in 7 days. If I notehub.org offered a similar option, I would use the two together for all my public posting.

notehub.org is the most aesthetically beautiful option I have seen to writing simple posts with markdown. I also love that it displays well in mobile mode.

Please consider adding a option to auto delete posts based on some time interval.

Cheers! RichGriese.NET


Feature Request: Support custom header sizes.

As it is, text size can be customized by using the text-size parameter in the URL. However, trying both header-size and h1-size parameters produces no result.

Markdown supports 6 header sizes. Please support custom sizes for these by using h1-size through h6-size parameters.

Long term hosting strategy

I am interested in hearing about your long term hosting and/or monetization strategy.

I really love this service and would like to be able to rely on it to store markdown articles indefinitely. In my experience the biggest obstacle to this is hosting costs, sites start out great, but then if they don't have a viable business model they are shut down or go offline eventually.

You say you are hosting on heroku free tier. Are you storing the data there as well? If the site became popular would you find a way to finance the increased hosting costs and scale the service?

I love this service and would love to see it succeed.

Thanks!

Light theme?

The website used to have a very clean black-on-white layout, but this seems to have been swapped for white-on-grey. Is there any way to have the old theme be an option, such as including it in the URL slug?

Editing published notes ?

If I am not mistaken, there is no way to modify the note once published ? I am aware this is just an experiment. Still the lack of edition is a bit drastic ;-)

Bold for Japanese characters works only in edit mode

I wrote some Japanese lessons in Markdown on your page and recognized, that the preview in edit mode doesn't look same as the final result. I wrote and preview has successfuly shown . Then I published my changes and in the final result, all Japanese characters, that have to be bold, are shown as . I have there even some normal text and it works with bold. I think the problem is encoding, but weird is, that your preview mode doesn't look the same as the final result.

When I try to edit it, the preview mode again shows me .

Here is the link to my note on NoteHub.org. The problem is in the section with title "3. Informace o členech rodiny a domácích mazličcích".

It's written in Czech language and so I discovered another problem - that your font doesn't support UTF-8 encoding. (e.g. č, š, ř... are shown in another font, but that's irrelevant, I can deal with it 😄)

Thanks for your beautiful sevice NoteHub and good luck with developing it!

API 1.0 draft discussion

First of all, I'm glad to see this awesome beginning! And I think we have some things to discuss.

  1. Why not to use version number as part of API URL? Like in twitter:

    http://notehub.org/api/1.0/get-note?title=<NOTE-ID>

  2. Maybe you will follow REST style and use POST, PUT, GET and DELETE HTTP-methods instead of semantic-driven methods names? CRUD:

    POST http://notehub.org/api/1.0/note — create,
    GET http://notehub.org/api/1.0/note?id=<NOTE-ID> — read,
    PUT http://notehub.org/api/1.0/note?id=<NOTE-ID> — update,
    DELETE http://notehub.org/api/1.0/note?id=<NOTE-ID> — delete.

    To update a note, an UPDATE request must be issued to the following URL:

    BTW, there are no UPDATE HTTP-method.

  3. Important! Why do you use DJB signature algorithm? I think, MD5 or SHA1 are very good for all signature tasks and there are no reasons not to trust them. E.g. like in twitter (https://dev.twitter.com/docs/auth/creating-signature) you may just to SHA1 or to MD5 the alphabetically sorted list of parameters.

    If you use this algorith because of lack of any inner implementation of any grown algos in JS, you should think twice.

enable api

Hi,

I was using the old notehub to store diff data from open street map (5-20kb every hour), but no longer works.

Can you enable API for posting notes?

Thanks.

Self-host

I'm interested in self-hosting this; however I see no instructions or positive clues as to how I would go about doing so. Is the code open-source solely for the purpose of bug-hunting or is it possible to self-host and I'm just unaware of the components necessary?

issue with code blocks

i wanted to publish some code using " ``` " as i usually do

in the preview it was well formatted but not in the display: newlines were not interpreted so that was not readable.

wanted to check how you were doing code blocks in the demo and at the time the page had an error (seems fine now)

[deriveTitle] The tittle should be the first line (stripped out special chars)?

Hi,

Idea: The new note's title will be the first line which is stripped out all of special characters

The header (Markdown: #, ##) is the title. This keeps all non-ascii, latin-based, CJK chars, ... but not the special symbol such as: #, $ and so on. These chars will be replaced by -.

What about this?

The original:

var deriveTitle = text => text
  .split(/[\n\r]/)[0].slice(0,25)
  .replace(/[^a-zA-Z0-9\s]/g, "");

Changed to:

var deriveTitle = text => text
  .split(/[\n\r]/)[0]
  .replace(/[`~!@#$%^&*_|+=?;:'",.<>\{\}\\\/]/gi, "-");

Ability to change the password.

Would be awesome if a password can be changed.

E.g. UI...

[ ] [SAVE]

[ ... old password ... ] [ ... new password ... ] [CHANGE]

Porn ???

Are you showing porn at the top of your pages on purpose?

note* in returned url

I'm getting a return url in the API response like this now:

 http://notehub.org/2014/3/14/a-simple-test-4?note*=%23+A+simple+testLorem+ipsum+dolor+sit+amet%2C+consectetur+adipisicing+elit%2C+sed+do+eiusmod+tempor+incididunt+ut+labore+et+dolore+magna+aliqua.+Ut+enim+ad+minim+veniam%2C+quis+nostrud+exercitation+ullamco+laboris+nisi+ut+aliquip+ex+ea+commodo+consequat.+Duis+aute+irure+dolor+in+reprehenderit+in+voluptate+velit+esse+cillum+dolore+eu+fugiat+nulla+pariatur.+Excepteur+sint+occaecat+cupidatat+non+proident%2C+sunt+in+culpa+qui+officia+deserunt+mollit+anim+id+est+laborum.

The entire note is contained in a param called 'note*'. Do you know offhand if something changed that would cause this? The shortened url resolves to the same thing.

Slim down the workflow

Perhaps it would be possible to require "Accept Terms of Service" just once. (The data could perhaps be stored in a cookie?)

Same for the password - it would be great if I wouldn't have to enter it each time. Perhaps the fact that I'm allowed to edit the note I created could be stored in a cookie?

"Password is wrong" destroys data

If edits are made and an incorrect password or no password is entered into the box, the text changes are irrecoverable. "Password is wrong" should return the user to the previous screen where they can put in the correct password and publish the changes.

Website is down

There seems to be some major server issue, as the website only returns a continuously-reloading CloudFlare landing page.

Preview mode or less aggressive captcha?

Are there any plans on adding a preview mode when writing a note?

I'm horrible with markdown and constantly want to preview how the styling will look. Currently, I either have to save between edits, or write the note in some other application.

I'm also getting caught by the captcha on every save, which makes the process even more frustrating. Not sure if that's intended behavior or a bug.

update_note signature invalid

I noticed that v1.3 of the API has a "new ID format." I believe that's central to my issues with creating a valid siganture for an update call. Any details on this anywhere?

how to enable TEST_MODE ?

I'm trying to run a container of the project.

I haven't been able to make it work with my RECAPTCHA key, so I'm trying to run it without the captcha.

I passed to the container TEST_MODE=true

I still get prompted for the captcha.

Am I properly turning on TEST_MODE ?

I looked through the code, I think the way I'm doing it should work.

Here is my docker-compose.yml

https://gist.github.com/anonymous/9a8126b4f103a0925fc2c799a56feadf

Dockerfile

https://gist.github.com/danhimalplanet/6542d1f101e92f08e4c575283a633b20

Character limit

I tried to make a note with a folder tree generated with tree -H baseHREF on linux however when trying to post it (8162 words - but TONS of them are just html code) i get the error Error: request entity too large.

I can understand that a limit is needed to avoid strain, but an improvement could be to show the remaining characters available.

Edit: Forgot to mention, the preview is generated instantly instead.

Discuss the Reasons Why Less People Watch Central Television in China

Discuss the Reasons Why Less People Watch Central Television in China
In 1990s, China Central Television was the main entertainment of Chinese people, but it started to lose its audience in 2000s. As a matter of fact, most TV stations lose part of their market share, whereas China Central Television's audience ratings drop the most sharply. The main reasons are  the rise of Internet, the competition from other TV station, etc.
First, with the rise of Internet and the improvement of people's lives, entertaining fashion has been changed. For example, TV had occupied people's leisure time since they could afford it, but many people, especially the youth, choose to surf the Internet for entertainment now. With the increase of wealth, more and more families prefer travelling in the vacation to watching TV at home.
Second, competition from other television stations hurts the ratings of China Central Television. In the past, China Central Television provided the best show of China, and the only thing that local television stations could do is to imitate the programs of Central Television. With globalization, they had access to the foreign programs and bought the copyrights of their format. Now they attract thousands of audience from China Central Television.
Third, China Central Television lose much credibility nowadays. For example, they ignore many sensitive events which has been covered online, for example, the news with serious casualties which most people care for, just because of the censorship. Another reason is that they focus on the activities of the leaders , which is not attractive for audience in most of the time.
In a word, less people watch Central Television in China now than in the past. China Central Television are starting to change in recent years, but the audience is easy to lose but hard to earn. With the relaxation of censorship in the future and their efforts in the new media, China Central Television will be rewarded from the audience. But if they don't work hard on the perspective of the audience, the Central Television will lose them forever.

Change style and font with update method

Just a nicety, but it would be great if you could update the theme and font settings in addition to the note text. Just theme, text-font and header-font parameters for the /note POST request.

Additional API query/parameter requests

It would be awesome if the initial call to create a note could have parameters for theme and font, so that the returned short URL was already styled.

(I renamed this issue in light of all the tangential questions it led to...)

LICENSE file

Would you mind adding LICENSE file in your repository if there's any?
Thank you!

Additional Markdown extensions

I note that fenced code blocks and tables work, any chance of adding other extensions like footnotes and definition lists?

Footnote[^1]

[^1]: footnote text

Definition term
: definition

get a list of notes?

hi, is there a way to get a list of all notes?

I tried to add a /all route, using Notes.findAll(), but it still required url

Self Signed Certificate Error

When visiting https://notehub.org , a self signed certificate is currently returned:

https://notehub.org/

The certificate is not trusted because it is self-signed.

HTTP Strict Transport Security: false
HTTP Public Key Pinning: false

Certificate chain:

-----BEGIN CERTIFICATE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0XntbJj8rxuWZLd8RKoGXncZNj80W/QNrrJ5vDhi
38Q+u+nExWlY
-----END CERTIFICATE-----

I'm using Firefox 61.

Editing replaces any occurences of "$`" with html source

A note containing the following:

`this will break when edited: $`

will publish correctly but when editing becomes:

`this will break when edited: <!DOCTYPE html>
<html style="height: 100%;">

<head>
  <title>NoteHub — New Page</title>
  <meta charset="UTF-8" />
  <meta content="width=device-width, initial-scale=1.0" name="viewport" />
  <link href="/style.css" rel="stylesheet" type="text/css" />
  <script src="//cdnjs.cloudflare.com/ajax/libs/marked/0.3.5/marked.min.js" type="text/javascript"></script>
  <script src="//cdnjs.cloudflare.com/ajax/libs/blueimp-md5/1.0.1/js/md5.min.js" type="text/javascript"></script>
  <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.5.0/highlight.min.js" type="text/javascript"></script>
  <script src="/js/publishing.js" type="text/javascript"></script>
  <base target="_blank">
</head>

<body onload="onLoad()" style="height: 100%">
  <div id="editContainer">
    <form id="editPane" action="/note" autocomplete="off" method="POST" target="_self">
      <input id="action" name="action" value="UPDATE" type="hidden" />
      <input id="id" name="id" value="pytv0" type="hidden" />
      <input id="password" name="password" type="hidden" />
      <input id="session" name="session" type="hidden" value="240812222d3940475d758aacd61c02a42f7ba" />
      <input id="signature" name="signature" type="hidden" />
      <textarea id="note" name="note">

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.