Skip to main content

All 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 ...
huseyin tugrul buyukisik's user avatar
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 ...
Samuele B.'s user avatar
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? ...
Steve Ngai's user avatar
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 ...
user2402616's user avatar
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 ...
DeveloperLV's user avatar
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 ...
NPN328's user avatar
  • 771
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 ...
amalgamate's user avatar
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 ...
Nodegeek's user avatar
  • 151
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 ...
nopassport1's user avatar
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....
dustytrash's user avatar
  • 2,436
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 ...
Stan Loona's user avatar
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 ...
Olvin Roght's user avatar
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: ...
NCM's user avatar
  • 181
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 ...
Dan Savage's user avatar
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 ...
Hugo Cox's user avatar
  • 141

15 30 50 per page