# All Questions

62,604 questions
Filter by
Sorted by
Tagged with
15 views

### Check a string for 2 values

I have a string, for example: dashboard/12398911/overzicht and I want to check that string for 2 values. For dashboard and ...
11 views

### Recreating NTILE function on running SQL in Excel [on hold]

I am making a conversion from traditional way of creating reports in Excel, and I have been stuck on recreating NTILE function when running SQL in Excel (because NTILE function does not exist there), ...
14 views

### “Phone price problem” in C [on hold]

I was solving this question from a coding platform,i am getting my answer always as zero can someone please help what's wrong with logic / syntax in my code. here is my C code ...
24 views

### Arduino Code for Talking to an RFID Reader

I've written some C++ code, intended to run on an Arduino, the purpose of which is to talk to SparkFun's Simultaneous RFID Reader. The current situation: The code runs fine, most of the time. ...
70 views

### Ultra fast Amazon scraper multi-threaded

This is a follow up to the code here: Web scraper that extracts urls from Amazon and eBay A multi-threaded modification to the previous version that is Amazon focused and most of the necessary ...
45 views

### C# handling of images - is this best for memory usage?

I am working with a system that needs to consume product images uploaded by employees and resize them / add white padding to the sides to create square images to be consumed by our e-commerce site. I'...
25 views

### Is there anything I can fix or make better when it comes to my code? [on hold]

Link to my program code; ( I only want critique about my code not anything about indentation or spaces) https://pastebin.com/D05rCdjR This is the libary I use in my program; ...
39 views

### Function to take a positive integer and return the next bigger number formed by the same digits

I've written a solution to a Codewars challenge: You have to create a function that takes a positive integer number and returns the next bigger number formed by the same digits: 12 ==> 21; 513 ...
14 views

### Mysqli auto closing after select or any action [on hold]

i need edit on my php code for enable auto closing mysqli after any action ( select , insert , update , delete ) php class fuly code ...
19 views

### File Utilities in Go

I'm beginning to learn Go. I've decided to write some file utilities to help me with some bigger projects I intend to write. Coming from mainly a Python background, I'm sure there are plenty of ...
20 views

### BST range search

I'd like some input on my implementation of bst-range, which follows below. Before we can get to bst-range, we first need some setup code to build the BST. (You ...
66 views

### Simplified Vector Implementation in C++

I have implemented a class Vector to learn about data structures and algorithms and how to implement them using C++. I have yet to implement some std::vector functionalities e.g. custom allocator ...
44 views

### LeetCode: Shortest Common Supersequence C#

https://leetcode.com/problems/shortest-common-supersequence/ Given two strings str1 and str2, return the shortest string that has both str1 and str2 as subsequences. If multiple answers exist, ...
37 views

### Slow loris solve algorithm task in java [on hold]

I try to solve the problem of having a List of calibrated masses (grams). For every weight (of an Animal slow loris ) which is given to your function you should return a List with the masses you need ...
20 views

### Shell Script code yields same output on update input [on hold]

I have written script to add pattern of directories in exclude-list of Deja-Dup (backup softaware). Even I have updated values for ...
30 views

### Is this an acceptable MVVM Model with IEditableObject implementation?

I'm trying to follow MVVM pattern in a VB.net WPF application, and I would like to implement IEditableObject. Is this code acceptable for an MVVM application? In ...
17 views

### Molecular .pdb File Reader in Rust

I am new to rust and wanted to get going with a medium-sized project to help learn. I've settled on creating some basic quantum mechanics code which starts with this bare-bones file reader. It takes a ...
911 views

### C function to check the validity of a date in DD.MM.YYYY format

I was tasked with writing a function, that checks whether a date is valid in the following format: DD.MM.YYYY. Here's what I wrote: ...
48 views

### Sluggish Performance when using ranges from two workbooks to update the one

I'm hoping someone can help me here, I'm working with a file which has about 38000 rows and 180 columns. I'm using a macro to update the fields in the one workbook with the values in the other ...
60 views

### .NET entityframework updating huge table performance

I have very large table which is expanding every day and many applications are involved with that table. After while we find out, that from time to time there are table ...
10 views

### What is right way to define method typing in es6 arrow method [on hold]

while learning in react 16.8 with typescript code base, I came through many diffrent type definition pattern is been followed. so for the sake of consistency, which is the right way (recommendesld ...
79 views

### Detecting overlapped boxes and the color of overlapped area in a View

Recently, I applied for a job that required skills in object-oriented programming. Although I have coded in Java at odd times, those were very small assignments. I have been mostly programming in C ...
296 views

### Pagination calculation

I have written a function to get the actual page range to display that page range in pagination. My function is working properly. But I think that I have written bad code. Can someone review my code ...
70 views

### How to make my groupby and transpose operations efficient?

I have a DataFrame of size 3,745,802 rows and 30 columns. I would like to perform certain groupby and ...
31 views

### Atbash Cipher in Rust - Exercism exercise

So I'm working on an implementation of the Atbash Cipher for Rust - it is an exercise on exercism.io. I come from a little C experience and found my code to be rather round about and kind of tortured. ...
46 views

### Menu with buttons using pygame

I wrote this to teach myself how to make a menu with buttons and I want to know if I've done well and if there's any way to make it shorter and/or more efficient. ...
34 views

### A runtime benchmark for multiple programs using the Python subprocess module

I would like feedback on my benchmark script. What's another method for benchmarking that might be better/easier? Overhead I've found that subprocess.run has an ...
38 views

### Compile SASS files in a directory via Gulp.js tasks, one of which produces logging output

If the default task is executed here, the file name to be compiled is passed to the argument of the CompileSass function. When ...
2k views

This is a recreational script made to update my home server w/ the latest season of anime from HorribleSubs. I'd like to know if there are any obvious syntactical and performance improvements, details ...
23 views

### What is this php code doing? I am new and trying to learn [on hold]

Need to understand the below code what it does and where it is posted to ...
67 views

### Permutation generator with OR operator

Problem: Given a vector of strings, I want to print out all possible permutations where the strings may contain an OR operator (the | character, as in regular ...
86 views

### Encrypting credit card data

I need an encryption algorithm that would be secure enough to store credit card data. So it should be reasonably secure. Here's what I've come up with. I'd appreciate any constructive criticism. <...
23 views

### Get syntax error what the trouble? [on hold]

This is not my code as I'm so newbe to write such sophisticated in my opinion constructions but when I execute it I get syntax error Code: ...
66 views

### Simple login and register script with C# console app

I'm very new to programming and C# and had some homework this weekend to create a simple string check. I've expanded upon that and came up with this. This is way more complex than what was asked but I ...
26 views

### Pattern decorator with template class [on hold]

I'm trying to create a generic class for decorator pattern. I successfully did it with the example code by metaprogramming: ...
27 views

I am not a Docker guru or expert in Flask or Redis. However, I need to leverage these technologies. I managed to cobble something together that works and would like to submit it for review. The MWE ...
42 views

### filesystem create a folder

I got a mixture of two languages ​​C and C ++ The code finds the folder my documents and creates additional folders in it when the program starts, I found no other way to implement this better. I ...
59 views

### Javascript code for select input

Hi friends i have this code for select input change, i need some good advice if this code is ok like that or is a way to optimize this code? thanks! This code is used for changing info's between ...
23 views

### Brackets vs IDLE python, why Brackets nor work? [on hold]

Maybe stupid question but i have Brackets with Source Scripts i can run python scripts in console normal but now i try this code: ...
29 views

### Who can verify my implementation of react menu?

I’m studying REACT on official documentation and on the course at Udemy. I want to create an online store, first I made a small template for the site menu. Who can check the code and give feedback so ...
87 views

### Implementing 3Blue1Brown's description of Fourier transform in Python+numpy

I have implemented the 3Blue1Brown's description of Fourier transform in Python+numpy for irregular and unsorted data, as described here. ...
118 views

### Event loop in C++

Writing an EventLoop in C++. Few requirements, from a user perspective: Must be simple to use (as simple as the Javascript event loop) No type casting, no complex registering of event handler. Plain ...
46 views

I've been slowly learning Haskell over the past few months. I made a small module to graph functions using Gloss, and I would like feedback on how idiomatic it is (looking for ways to simplify using ...
37 views

### Get an object with null values from an array of nested objects

I have an array of nested objects. How do I get an object with null values using only a particular key in the array of objects? ...
42 views

### Django Python increment database value using model save function [on hold]

I'm looking for a more efficient way to increment the already saved value in the database by the value returned to the model from a form submit. ...
23 views

### Inizialize an Jarray wih n JObject that contain an progressive index

I need to inizialize an JArray with a JObject that contain a property areaNum that is an incremental integer. Right now I wrote the below code, which works ok if I have a small number of JObjects, ...
24 views

### How to join following python Tkinter files? [on hold]

I have tried to join the following with clasees and I didn't manage to do it. How can I join Py1 & Py2 in one Py file so I will not call them from outside? The code runs OK but when changing from ...
31 views

### Concurrent execution and coordination of C# tasks

I have a class, 'TaskCoordinator' which has 'BaseTask's applied to it. The BaseTasks have OnStarted, OnFinished and OnCancelled events which are triggered to notify the calling class of their events....
Problem Write a program to return a boolean if an input grid is magic square. A magic square of order $N$ is an arrangement of $N^2$ distinct integers in a square such that the $N$ numbers in ...