Skip to content

General Discussion

A place to talk about whatever you want

3.9k Topics 23.8k Posts
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    22 Views
  • Shockwave Flash Objet

    2
    0 Votes
    2 Posts
    1k Views
    PitaJP
    @Demerzel Yes you can, but how easy it is depends on where you want to put it. If you want to embed it within a post, that would be difficult. You could instead create a widget, or you could put it in a custom homepage.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    12 Views
  • OddLog - Modern logging with node.js

    1
    2 Votes
    1 Posts
    1k Views
    frissdiegurkeF
    Hey folks! First off, some links: oddlog - repository: https://gitlab.com/frissdiegurke/oddlog oddlog-cli - repository: https://gitlab.com/frissdiegurke/oddlog-cli I've been working on a project called oddlog, object driven data logging, lately. It's still in early development (as of now version 0.1.3, first code written about two weeks ago), but I'd like to present it to you anyways. If you know a logging library called bunyan, oddlog will probably look pretty familiar to you. It's because bunyan has been the main inspiration, but also the reason why I needed to come up with a new project. If you know bunyan: At first I tried to get bunyan working the way I wanted it to Have several output streams for the same messages - yes, bunyan is pretty good at this (even so the overuse of the name "stream" is pretty confusing) Have some backtrack-logging as soon as a messages level exceeds a specified threshold - I ended up with a half-working solution for bunyan that had to wrap and use some of bunyans internal functions; an ugly hack Have a reliable logging system - bunyan has a commented-out function called Logger#close which never got finished or even close to working. Thus when your application breaks or you call process.exit, you have no way to ensure the logging messages have been flushed to the files Have good code quality. Perform well After taking a deeper look into the source-code of bunyan I decided not to fork and modify it but to create a very own logging library from scratch that provides similar functionality but better maintainability and more abstract transports. As of today, I've managed to implement the basic logging system with most features bunyan provides, but in addition the possibility of nested transports (e.g. the backtracking transport allows you to specify sub-transports to deliver messages to) and advanced options for deferred transports (e.g. the backtracking transport). Since the backtracking transport does not deliver messages as soon they arrive, we have the question how to handle payload in the mean time. A deep clone would be optimal to prevent future modification by the user, but performs very bad. Thus I decided to give the control to the user application via some immediate* options for such transports. In my opinion the maintainability is great and code quality pretty good (including jsdoc for relevant parts) - The same does not hold for the command-line interface yet; I'll have to tidy that up soon. Performance wise I haven't completed all necessary benchmarks yet, but overall it looks pretty promising and outperforms bunyan in most tests. If you don't know bunyan: I'm not going to repeat, what I've already written within the project overview Just check it out. Now to the purpose of this post... As the project is growing more mature every day I'm in need of some real-world applications using it to detect any bugs and get some feedback about the experience. So if you're developing a non-professional node.js project that is in its early stages, so it's not too bad if something with the logging system goes wrong, it would be great if you could help me simply by using oddlog. I will definitely use it in all of my future projects since I'm confident it's better than all other logging libraries I know of. But of course it needs some proper testing and application yet. If you would use it while I'm improving it (and hence not working on applications that actually use it), it would probably get more stable faster. However, keep in mind that it's in early development and may show up a bunch of bugs. Although my simple-by-design example applications work well. Besides the default oddlog and oddlog-cli packages (written in ES6, but CommonJS module system), there are babel transpiled versions oddlog-legacy and oddlog-cli-legacy available for non-bleeding-edge versions of node.js - I'm not sure how they perform thought. Feel free to contribute in any way, that would be highly appreciated Please share any comments and thoughts Many thanks, frissdiegurke
  • More informative dashboard

    5
    0 Votes
    5 Posts
    2k Views
    barisB
    We don't delete analytics data. You can check how many analytics documents are store with. db.objects.find({_key: {$regex: /^analytics*/}}).count();
  • Changing order of pinned topics

    5
    1 Votes
    5 Posts
    2k Views
    deiden26D
    I would also be interested in this feature
  • NodeBB on Cloudron

    5
    4 Votes
    5 Posts
    2k Views
    P
    Great to see third party cloud hosts taking up NodeBB such as yours. I've merged documentation for this: https://github.com/NodeBB/nodebb-english/pull/107 I'm planning some revamps on our commercial site (nodebb.org) and that may include a page linking third parties to host. Give me a shout at [email protected], there are some opportunities that we can talk about. Thanks!
  • Database INSERT function

    6
    0 Votes
    6 Posts
    2k Views
    B
    Thank you, you have solved the problem.
  • the search engine

    3
    0 Votes
    3 Posts
    1k Views
    DemerzelD
    thank you for advice, we have changed the search engine and everything works ... thank you
  • User to user email

    4
    0 Votes
    4 Posts
    2k Views
    P
    bad idea
  • request - Nodebb Blog plugin

    34
    0 Votes
    34 Posts
    15k Views
    yariplusY
    @Flemming-Hansen here https://community.nodebb.org/topic/9507/nodebb-plugin-featured-topics-extended-feature-topics-in-a-news-blog-page-and-widgets or here https://github.com/yariplus/nodebb-plugin-featured-topics-extended
  • i wanna 5 new topic display / persona theme over there how can..

    4
    0 Votes
    4 Posts
    3k Views
    @yariplus thanks for u're help ~ i wil try it
  • Get password via MongoDB

    9
    0 Votes
    9 Posts
    8k Views
    B
    Oh, thanks a lot for your helping.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    57 Views
  • Why all the seriousness let's loosen up a bit

    3
    3 Votes
    3 Posts
    2k Views
    P
    [image: 1aca6g.jpg]
  • about (gif image) direct upload to my server..

    11
    0 Votes
    11 Posts
    4k Views
    carteraxC
    of course [image: 5gBlyCC.jpg]
  • Troubleshooting Use of nodebb-plugin-leaderboard

    11
    0 Votes
    11 Posts
    4k Views
    M
    @baris Ok thanks, I will take a closer look. Could you show me a quick screenshot of what it looks like when the leaderboard succesfully loads? And where would I find the template file in the leaderboard plugin/greater nodeBB app for what should be loading the html for the leaderboard? Thank you!
  • Welcome Notification Link

    15
    0 Votes
    15 Posts
    4k Views
    E
    @pichalite Got it.
  • JS loading troubles in widgets

    11
    0 Votes
    11 Posts
    4k Views
    T
    Ah, nvm. I declared an object called config, which conflicted with something from nodebb.
  • Performance Improvement

    20
    1 Votes
    20 Posts
    9k Views
    C
    @teh_g said in Performance Improvement: @charles said in Performance Improvement: I agree with @exodo that score of 57/79 and 53/79 (nodebb) doesn't look very good. For some that are judging based on these scores, they would skip and use another app. I think judging based on those benchmarks alone isn't a great way to determine which software to use. Yes I agree. When I ask several people to give NodeBB a try as their main app, they first go and check the grades They sent me this (first one is NodeBB) and said, "why would you use that?" [image: q2vig1w.png] If I can't even get them to try it, think about others that are also check the grades? This is the same with wp themes that have poor scores. People just skip over them and not use them on sites because they want good grades. It's hard to get people to look past certain things even after they decide on another app. Just sharing