All Questions
37 questions
1
vote
1
answer
79
views
Extract each occurrence from an array of objects
I have a huge list of 4k+ software products.
My goal is simple. I have a list of products. Each of those products has a software value. I would like to extract each software occurrence and covert it ...
2
votes
2
answers
118
views
Find differences between two arrays
I have to identify added and deleted items between two objects with the same structure.
...
2
votes
0
answers
234
views
express.js server to resize images
What I have is a simple express js server where user sends an image url with a specific width all in the URL query. the code will get the image stream pipe it into a sharp.js module then send it back. ...
2
votes
1
answer
95
views
iterating a big list of objects throws a memory issue
I'm writing a function which iterate through a list of objects and should return:
true if all the items have the attributes (cp and type).
false if all the items haven't the attributes (cp and type).
...
1
vote
1
answer
65
views
Function that decodes all values of a given object from Base64
I have function decodeVals in NodeJS that decodes all of the values of the given object from Base64 to ASCII. This is achieved by traversing the values of said ...
3
votes
2
answers
76
views
Javascript best way to filter out empty values and simplify reusable function
Hello I have this function that takes array of objects and takes a specific value from the object and creates array of strings that can make mapped to dropdown selector.
...
2
votes
1
answer
86
views
Generating a performance report for clans in Clash Royale
The following code generates a report showing performance of clan members in a game called Clash Royale.
Everything is pretty self-explanatory, we are working with a lot of https requests, arrays and ...
1
vote
1
answer
56
views
Lookup an array against another with performance
I got an initial array, I am checking against another array to find how many objects have at least one instance of the Domain in data.
I wonder if there is a more ...
3
votes
1
answer
68
views
New TV Episode Checker
My code checks if a new subbed episode of a TV show is out by checking the designated blog. The blogs url returns a json which is then parsed for episode number, direct video link, embed video link, ...
8
votes
1
answer
237
views
Way to delegate command to methods in different files
What I want to do is for an example command have it defined in its own file - e.g. command.js - and the same for the other methods. I want to make a separate file for every module - for example "...
4
votes
2
answers
168
views
Efficiently generate large file to create SQL table and insert sample user data
Here's a function I use to generate a 2.5 gig SQL dump file for testing. It works but it takes a long time. How can I make it more efficient?
...
4
votes
1
answer
699
views
Enhancing search using Fuzzy Logic in NodeJS
Brief Description:
In my NodeJS Application, I have a model called User.
User.js
...
2
votes
2
answers
2k
views
Retrieve a city list for a country and state
The code below is working properly but how do I make this code faster and more efficient. How do I perfect this code?
Let's assume I have 1000 country, state and city records in a mongodb collection. ...
2
votes
0
answers
55
views
A CSS Browser Compatibility Checker
I am working on a program that checks for the browser support of a CSS file. Below you can find my working code, so far it supports CSS At-Rules & Properties. In the next few weeks, I will need to ...
0
votes
1
answer
903
views
jenkins deployment making the build very slow
I am new to Jenkins. I am doing a build through Jenkins, but the build is very slow. Is there any way I can speed it up?
...