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 would like to know, how can I write something(small) like node in native lanuage(c,cpp). I read that c,c++ experts developed node.js and made it available with javascript interface. This interface is much much simpler to start with node.js applications.
This is not about re-inventing the wheel,(only learning) but I want to learn/understand the way where to start if I want to create a server that work like node, it is not performance or scalability or simplicity oriented. nothing like that.
Any book or any c,cpp topic that will help me to start with websockets, broadcasting data and such important features of node. I am new to c,cpp also but need to understand what is making node such a strong technology.
Any other solutions than taking source code of node.js ?
Node.js is powered by libuv - it's an asynchronous crossplatform io library, written in C. Basically, it does everything node does, but exposes only C interfaces.
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
Hello i would like to check if ALL features of HTML5, CSS3 and Javascript are supported in my browser before redirecting the user to the application itself, i have seen some references to Modernizr but even after reading their documentation i can't make heads or tails of how to use it.
I just want a simple function that returns a boolean after the check has been made. Is there any sort of function like that out there somewhere?
Life (and browser compatibility) is more complicated than a single boolean.
Use Modernizr, then make sure all the specific features you actually need are supported and do your redirect, for example:
if(Modernizr.geolocation && Modernizr.boxshadow/* whatever else ...*/) {...}
You tagged your question as 'php' - but reliable feature detection can only run on the client side. If you want this info on the server you can run the tests client side and then pass the interesting results in a cookie or something similar.
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'd like to create a small JS, HTML & CSS-only web application for my personal use with some kind of MVC-framework (like ember.js). My big requirement is that I want to persist the data permanently on the server where I run the web-application.
Is that achievable and what are good frameworks for it?
If something needs to run on the server I want it to be lightweight and easy to setup.
I need to be able to query the data. After a while there will be a few thousand rows in the database. Joins etc. won't be required.
It's highly possible, but you'll need somethign running on the server to swallow the data.
Typically you have serverside code which interacts with your data store to prevent users from manipulating your databases.
You can stick with JSON/Javascript and use CouchDB: http://couchdb.apache.org/.
It allows you to read/write data directly from Javascript, so you don't have to write server side code.
Other ideas to stay in the JSON/Javascript world - you can write from client side to a Node.js machine that writes to Mongo. Pure JSON/Javascript all the way down.
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
Iam now making a program where user enters login, pasw and then program sends it to website with post method or somethink like that, and then retrvieves html source and puts it in string.
I cant find a best option to do this. Currently my program's ui is in Qt QML and main is in c++.
I have done this before with libcurl but I dont like, so maybe there is another option.
And another problem is that iam beginner and I know just C++ and Qml. I tried javascript but i cant get it to work.
You have two options. You can either write C++ code to make the call(which will require some sort of library to help you make the call) or you can make the call in JavaScript using an XMLHttpRequest(Which is provided natively by QML).
XMLHttpRequest example:
http://qt-project.org/doc/qt-4.8/declarative-xml-xmlhttprequest-xmlhttprequest-example-qml.html
For C++ I would refer you to How do you make a HTTP request with C++? which discusses libraries that allow you to easily make the http calls in C++.
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 see that javascript is becoming more and more practical as a server side language with the advent of node.js and v8. As far as frameworks go, most of what I've seen are minimalistic frameworks. Even express.js, one of the more promising ones, is a little bare.
Are there any full stack server-side frameworks out there for JS yet?
There's RingoJS, the current form of the (surprisingly old) Helma framework. It's a Rhino-based implementation, so you can get whatever you want from the JVM (sort-of a "good news/bad news" joke I guess).
Check out towerjs and railwayjs.
There is a very powerful webapp stack called ringojs. It is actually a Rhino prompt that you can use to run javascript modules. It is based on Jetty and features a well designed set of modules and a powerful but simple template engine (including inheritence and macros). You can reuse the galaxy of Java libraries out there throught simple Javascript-Java interop. Coming from J2EE development I threw out a lot of ceremony code and configuration - it is very productive, especially tweaking your running webapp throught the prompt
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 want to learn how to use XMPP and to create a simple web application with real collaboration features.
I am writing the application with Python(WSGI), and the application will require javascript enabled because I am going to use jQuery or Dojo.
I have downloaded Openfire for the server and which lib to choose? SleekXMPP making trouble with tlslite module(python 2.5 and I need only python 2.6).
What is your suggestion?
I think the Python way to go is to use Twisted along with Words.
Good luck!
Along with what Julien mentioned, also check out the excellent Strophe XMPP javascript client library, as well as the Twisted based XMPP toolkit called Wokkel.
I have found a lot of issues with Openfire and TLS are not with the xmpp lib :( -- SleekXMPP in the trunk has been converted to Python 3.0 and the branch is maintained for Python 2.5
Unlike Julien, I would only go with Twisted Words if you really need the power of Twisted or if you are already using Twisted. IMO SleekXMPP offers the closest match to the current XEP's in use today.