How do I create a simple javascript server? [closed] - javascript

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to create a server where if I pressed "w", a variable (lets say me1) would equal to 1. And if another user (from a different browser and IP) pressed the same key, another variable (lets say other2) would equal to 1.
I don't need everything to be JavaScript (as long as it's easy to understand), I just need the end variables to be JavaScript.

Do your users from different IP's need to be able to talk to each other?
You could use NodeJS as one way to do this. I only recommend Node because its very simple to setup sockets if your answer to my above question is yes.
However both technologies would require a medium to advanced skill set.

Related

How can we mitigate shopping-cart checkout spamming? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 days ago.
Improve this question
We have an e-commerce site that allows you to check out as a guest.
An individual has been using it to check if stolen credit card numbers function.
We plan to add invisible captcha, which helps for people using scripts/headless browsing/automation, but it doesn't stop someone from manually using it this way.
We could track a cookie that starts to prevent/timeout the user from checking out if there are enough recent requests, but that's easily workaround-able.
It seems like a situation where it can't be limited too much further because normal users need to be able to check out, but are there any other specific methods that would help?

Creating an accelometer in CSS/Javascript [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Im working on a project where I need to visualize the G-force on a spaceship. I want to accomplish this with creating an accelometer (something like a seismogram see picture for an example)
Is is possible to create this using CSS/JavaScript?
The accelometer needs to run infinite creating random data for the G-force on the spaceship.
It sure is possible with CSS and JS.
The question is wether you want to do it that way.
If I were you I'd choose to use the HTMLCanvasElement to display the data generated by either JavaScript on the client side or the server side language of your choice on the server.

Write to file in javascript? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have made a simple site that generates random number.
I want to record how many times a specific number comes up.
Is there anyway I can use javascript to write to a Local .txt File on the server?
or do I have to learn PHP?
If you want to keep track of the number of times a random number comes up for a single client/browser, you can use localStorage. If you want to keep track of the number of times the random number occurs across all executions, you'll need some sort of server-side processing.
If you want to avoid any server side processing and this data is critical then you can try GoogleAnalytics code to capture and analyaze the randomly generated data.

Is it possible to practice AJAX using the Brackets web editor with local files only? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
What I'm ultimately trying to accomplish: Making a site that allows you to browse through videos and add/remove them from an AJAX-controlled playlist. So far, my website has only been created through Brackets using local web files, and I'm curious how much I'll need to change my work environment if I want to begin using AJAX with my website. I've never used AJAX before, if that isn't obvious....
You have to use a local server like WAMP (http://www.wampserver.com/en/), MAMP(https://www.mamp.info/en/), or LAMP

How to get the data I need from airbnb web page? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to get the dates booked and price from the the airbnb page: https://www.airbnb.com.sg/rooms/2781352 under the "Calendar" tab of it.
I am quite newbie to this, and I want to python to do that, can I?
And what else should learn, javascript, PHP?
For extracting data from web pages, my first stop is Beautifulsoup. It is designed for just this purpose, and is excellent at it. Combine it with the great requests HTTP library (so much better and easier than urllib/urllib2/etc.) for getting the pages.
Both of these are Python modules, there is no need to learn any other programming languages to do it, although it greatly helps to have an understanding of HTML and DTDs (Document Type Definitions) for setting up paths.

Categories