Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm building my first (and rather big) NodeJS application. I need excellent performance since it's a big all AJAX (AngularJS) interface with a lot of requests from a lot of users.
I'm building the login system, and I need to choose which storage engine I will use. I narrowed down my search to 4 choices :
connect-mongo : read a lot of nice things about it, but requires the installation of MongoDB
connect-redis : read a lot of nice things about it, but requires the installation of Redis
connect-pg : don't know the performance but that's the DB we're using so no additional installation needed
cookieSession : according to this post is very fast, but I'm a bit confused at to why it's so fast and everywhere I look people seem to ignore this option
Which setup should give me the best performance possible? Without of course impacting functionality.
Thanks!
The right answer is clear by following your links and looking at the number of stars and forks. cookieSession is unacceptable because it doesn't work across multiple machines, which you will absolutely need. connect-mongo doesn't make any sense because it's not worth installing and maintaining mongo just for cookies.
connect-pg would probably be fine for you, but why risk slowing down your database when there is no need. Redis is an incredibly well-written, easily installable, highly regarded piece of software. It's free and universally available. It's also the most popular option on Github. Go with connect-redis.
This question is asked all the time in the big-data world and there are a lot of biased opinions about the merits of each. I recommend using whichever one you are most comfortable with.
With that said, I prefer Mongo with Node because of the ease of conversion from JS objects to MongoDB rows and back.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I first would like to probably apologize in advance for this question, because this is so low-level it's embarrassing.
Right now, I'm learning Javascript through Codecademy, and while I'm enjoying it, I want to have an environment where I can experiment with what I'm learning in a way where I can see results of what I'm programming, much like what I see when I'm going through the tutorials.
I'm sure I'm missing some incredibly obvious answer, but it looks to me like every system I've seen so far is for either writing the code or running it, not something that will let me quickly try something, hit 'run', and see what the results are. I've looked at Sublime Text, Aptana, and some other things, but they don't really do what I want.
I'd really just like a basic environment that's like Codecademy Labs, but in software form.
Again, I apologize, I feel really dumb asking this question, but I was hoping to get some help.
A modern web browser (e.g. Chrome) is a full-featured Javascript environment with a console, interactive debugging, and all manner of useful tools. Write your code in the editor of your choice (I do like Sublime, myself, but to each one's own) and open the file in your browser with the dev tools. You can even open the file in multiple tabs for multiple independent sessions.
If you want offline solution only, then ya any modern browser like Google Chrome Console is enough.
However you can also try the w3schools try it editor, you can run both html and javascript in it. I use it sometimes, quite simple and handy (although online)
http://www.w3schools.com/html/tryit.asp?filename=tryhtml_basic
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm at the start of a project to create a customer support system. For this system I've looked at Meteor.js, which looks very interesting. The thing is that we want to build the rest of our system using Cassandra.
So my question is as follows; can meteor.js also be used with Cassandra instead of MongoDB? Are there any ready pieces of code to do this, or would we need to write a substantial amount of compatibility code ourselves?
You can use any database you want with Meteor, but you'll lose three of the seven key benefits of the framework:
Database Everywhere. Use the same transparent API to access your
database from the client or the server.
Latency Compensation. On the client, use prefetching and model
simulation to make it look like you have a zero-latency connection to
the database.
Full Stack Reactivity. Make realtime the default. All layers, from
database to template, should make an event-driven interface available.
I use Redis and Postgres with Meteor, in addition to MongoDB. I use Meteor Methods to expose functions on the client to create, read, update and delete records in other databases.
Official support for Redis and other databases is on the Meteor roadmap, currently targeted for version 1.1. Meteor is currently at version 0.7.0.1, so that's probably not going to happen soon.
If you want to integrate another datastore like Cassandra more tightly with Meteor, you would probably start with Meteor's mongo-livedata module.
There have been a few attempts to use Meteor with other DBs, see meteor-sql for the most interesting I know of. Generally, it shouldn't be difficult to create a wrapper for your DB that covers querying and takes care of reactivity. It's a large bit of work, but fairly easy one.
The difficulty rises significantly when you also want to use your DB for user accounts. Meteor account system uses Mongo heavily, and is blends with the rest of the platform so much that it would be quite difficult to replace it. So you'd need a workaround: either low-level wrapper that would convert Mongo queries to Cassandra queries, or dual DB (Mongo for users, Cassandra for data), or something similar.
This is asking opinion rather than any real question so I would expect your question to go away as being very off-topic.
If you had really looked at Meteor.js then you would be aware that aside from the server side implementation, there is a good deal of work done on the client side code to emulate the server side interaction with MongoDB in order to keep both client and server patterns under a familiar model for the programmer. And that it's ambitious and far from perfect, but a pretty good show.
That kind of shoots, "I want to use Cassandra as a back-end" in the foot.
All said, feel free to fork and create your own Cassandra version of Meteor. Really, give it a go, and maybe you'll get some traction from others who are interested.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm writing a small gambling site where you can gamble with bitcoins.
As on the large currency exchange sites i want the user to log in. He then can create a new bitcoin address and send a amount of coins to that address.
When the transaction is six times confirmed the site should know about this status and give the user the sent amount of money on the site.
Now my question ist: Which Framework do i use.
The site will be written in Node.js. I have experience in working with the Blockchain Websocket API, but i think it is not reliable enough, so i looked into bitcoinjs.
What do you guys think? Which Framework is the best for determine these things?
Unless you are planning to use blockchain.info as your casino's wallet, I would stay away from their (or any other external) wallet management services, APIs, etc.
The traditional way of interfacing with bitcoin is by running bitcoind on your server, which is a fully fledged bitcoin client (and would need a full copy of the blockchain, so prepare for a big download there). You can communicate with it through its JSON RPC and it will keep track of different wallets/addresses you have & their balances, as well make payments when that is necessary.
That said, there appears to be a native nodejs bitcoind alternative ("bitcoinjs" that you mentioned as well) which would probably be easier to set up. My personal recommendation would be against using an unofficial/alternative implementation. Bitcoind is bitcoin, you can't go wrong with it. Bitcoinjs is far more likely to have bugs than bitcoind, and will presumably be behind bitcoind on updates, which are sometimes crucial.
Here's a getting-started-in-PHP tutorial. I know you aren't going to use PHP, but the principles are all the same. Hope it helps.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I know this question has been asked multiple times on this site in one way or another, but even after everything I've looked at I still can't for the life of me work out Node.JS nor how to efficiently use it as well as knowing what it's good for.
I consider myself an advanced JavaScript developer. I'm not just talking about knowing jQuery or Prototype, but rather actually knowing the underlying language quite well which from my understanding is all you really need to learn Node.JS as it is server-side JavaScript after all.
I develop on a Windows machine, but have just installed Virtualbox and an Ubuntu Server ISO to develop Node.JS applications in it. Where do I begin? I know the language, but what now? I can't seem to understand how applications are written in it.
Another question (if I hadn't already asked a million of them) is should I be using a framework for Node.JS like Geddy or Express or should I learn Node.JS and then consider a framework?
I found Node Beginner to be an excellent starting point.
If your time for this project is limited, you should jump right at a framework. If you want a deeper understanding of the tools you are working with, start with a barebones tutorial (which does not make much use of frameworks such as expressjs, backbone). I've also found Node Beginner to be the best starting point, so go with Michael Stum's advice.
Later when you will start using those frameworks, you will be able to understand better what each line actually does.
Check out the official nodejs community wiki. Also see Useful Node.js Tools, Tutorials And Resources
I really would suggest just looking at the documentation on the nodejs.org site itself...
Overview and video http://nodejs.org/docs/latest/
and the API Manual which is not too long and worth a read....
I would suggest that you first start with the basics, and the later go with frameworks and modules of which this should be you starting point
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have found that simply googling this does not return what I am looking for. I am to find something simple and easy. I don't know if this requires javascript or not. I know I can "View Page Source" but I was hoping to find a tutorial. Some examples of what I am talking about can be found here:
-IBM
-Auburn
-About.com
Javascipt code works by running code on the viewer's computer. The pages you're linking are being dynamically generated by code that runs on the webserver itself, not in the browser. More than likely, all of those sites have some sort of database behind them.
I see from your other questions that you know C#. Microsoft provides a framework that uses C# known as ASP.NET. You can write code in C# that will run whenever someone views a page on your site (provided your site is running under IIS).
The ASP.NET Community website is a great resource if you want to find out more about that.
Other such tools that perform server-side operations would be PHP, Ruby on Rails, or Django (to name a popular few).
From viewing the examples you mentioned, it does not seem like there is any javascript used to make these "browse a to z" lists. (There should be a better name for them than that. I'm just going to call it a sitemap.)
I couldn't find any tutorials online that would teach expressly this type of sitemap, but figuring it out should be pretty straight-forward. (At least for implementing sitemaps like the IBM or Auburn examples. The About.com example would be more difficult as it seems that it is backed by a database or lots and lots of individual html pages.)
The trickiest part of making a sitemap page like these is using the tag, and luckily, it is way easy. Just keep checking the source of those pages you can have your own version in no time. The most time consuming part will be putting all of the links down, from A to Z.
http://www.w3schools.com/HTML/html_links.asp