All Questions
53 questions
2
votes
1
answer
202
views
Learning asynchronous caching by implementing one
After implementing a serial CLOCK second-chance cache in C++ without having enough rope to shoot myself in the foot, decided to dive into Javascript through NodeJs and write an asynchronous one. I ...
3
votes
1
answer
396
views
Node backend to run user-submitted code in a virtual machine
As per the title, I'm making a webapp that is intended to use as a JS exercise platform. Problems are shown to users, they submit code, that code is run against a few test cases, and a report of the ...
0
votes
1
answer
658
views
Import XML files to MongoDb with Nodejs
Here is my code which will read XML files and import the data to MongoDb. Do you have any comments on my code?
...
7
votes
3
answers
260
views
parse date and number from API results
I'm slurping up fields from an API that returns an array of fields. Each field in the array is a String that actually contains two separate fields (a number and a date). The number is enclosed in ...
3
votes
2
answers
780
views
Node JS and Handlebars checking if records have been completed today
Goal:
Currently creating an application using Node JS and Handlebars.
I have a to do list set up in ...
8
votes
2
answers
393
views
Serving a webpage that displays the HTTP request information sent by the client
In order to learn web server programming in Node and JavaScript, I decided to implement a simple web server that only does one thing:
Display data of the HTTP request as an HTML table.
The actual ...
2
votes
2
answers
73
views
String data manipulated given CSV variables
The Requirements:
List the expensable items sorted by date and location given two variables: 'categories' and 'expenses'. The Categories variable provides the following information in order: Category ...
4
votes
3
answers
195
views
Find events associated with users on a certain date in MongoDB
I have this script which works perfectly but I experienced some delays because of these 2 for loops [i][j]. Is there any way to ...
3
votes
1
answer
212
views
NodeJS CLI script to create React apps
Background
I crated a CLI tool which executes an npm command (to create a react app) and modifies the contents of the generated files. It was a practice attempt at ...
5
votes
1
answer
96
views
Searching all new Reddit comments for comments matching regular expressions and notify of matches
This program constantly sends an https request to Reddit's API for new comments.
Using a PostgreSQL Database containing Regular Expressions, find comments of interest and notify about them using faye....
9
votes
2
answers
216
views
Return probability (Javascript)
I've been working on a personal project. There's this game called TFT which is an autochess game. Each match is played by 8 players and there's a shared pool of champions. Each champion has their cost ...
6
votes
1
answer
318
views
Node.JS Protobuf socket client with TLS support
I'm working with one environment which allows me to execute node.js code from single file without installing additional modules. My task is to write simple ssl socket client which will send protobuf ...
8
votes
1
answer
111
views
Resolving Git conflicts with Javascript
Challenge:
Resolve git conflict by resolveGitConflict(linesArray, resolveMode), where
linesArray is an array of strings
Example:
...
4
votes
2
answers
286
views
An Express route, which renders a page, and makes use of socket.io
This is the code for a basic endpoint in my express app routes folder. This firstly renders a page, and then on a continuous loop, renders information about some random "Breaking Bad" character.
The ...
3
votes
2
answers
377
views
RegEx version control
this is my first time on this stack exchange :)
I created a little script to check for the latest version of specified API version available, but I am wondering if I am using the best way possible ...