# All Questions

6 views

### Best practices for creating a user registration form

How should I go about creating a registration page in Windows forms? I can easily create a registration page, but I'm not sure if it's the best way. I'd have a service account that is hard coded, and ...
15 views

### Prime numbers using wheel factorial

I have written a program to find prime numbers up to a given limit using wheel factorization of 2, 3 and 5. I would like it to work above $10^{10}$, but its still pretty slow. What else can I ...
11 views

### Reverse the character order of the words in a string

I've been trying to learn Java and one way I've been teaching myself is by tackling "programming challenge questions". One such question is "reverse the character order of words in a string". For ...
12 views

### Creating an ArrayList of Maps

I am making an ArrayList that contains Map values. itemData is my ...
12 views

### Printing Multiplication Tables to 12: in BF

Now, a while ago, I said in chat: I'm done with BF programming. Except I was lying. Here's a BF program I wrote, that prints out the multiplication tables. Fairly simple; what it does: Loops ...
21 views

### My first simple formatted webpage

This is the first webpage I've ever made, besides simplified tests. My goal was to have a navigation menu on the left, an image in the top left corner with a header to its right, and a block of text ...
18 views

### Reducing cyclomatic complexity of Javascript class constructor

I'm initializing a class in Javascript with a bunch of complex property checks. Codacy is showing that this is bad design and recommends reducing cyclomatic complexity. I'm at a loss for how to ...
22 views

### Fake 3D effect in SFML - follow up 2

Based on my previous question, I have implemented all the recommendations received. In addition, i have implemented new features and completed road geometries. Here is a summary of the improvements: ...
16 views

### Is my do-while loop correct? [on hold]

I want to complete a task, which assigns the variable randomButton a value. At the end, I want to check the value of ...
10 views

### Divide list into n parts in scala

The problem is to divide a list into n parts according to a predicate. I found recursive solution but I am sure that a more elegant solution also exists. ...
10 views

### Scala where can I put this generic code

So I was just practicing some regular expressions with pattern matching, for fun as you do in Scala. I wrote this class: ...
11 views

### C++ generic SqLite 3 table to vector

I just coded method for loading data from SqLite 3 database, it is working and in test run it was successfully checked for no memory leaks: ...
28 views

### Khronos: main function implementation

So here is my main() for the Khronos project. I figured that I would start with having this reviewed and then slowly work my way into the more detailed parts of ...
32 views

### Moving buttons is very slow

I have a very simple app which removes buttons and re-adds buttons to certain layouts when a button is clicked. The problem is this process is taking a very long time. How do I speed this process up? ...
33 views

### Calculate sum of all the items in array list?

I am setting the sum total of all the items in an array to a text view in android.The values contained in the array are all currency values. ...
16 views

### Print multiplication tables

Write a function that given a max argument will print a nicely aligned multiplication tables, for example, if max = 8 ...
12 views

### Recerse number in 4 digits (java) [on hold]

This is my code down below; ...
17 views

I tried: ...
244 views

### Project Euler 18/67: Maximum Path Sum

The complete problem definition can be summarized as "find the largest sum of for paths from the top to the bottom of a triangle of integers". I decided to read the triangle in from a file which can ...
183 views

### Selection Sort in C++

I wrote a little C++ sorting routine for my Algorithm studies, but I feel that a lot can be skipped out. I am aware that modern sort takes Iterators and comparator functions, let's disregard that for ...
25 views

### Running a script recursively in subdirectories

I got tired of running the same command in multiple directories, so I thought "there has to be a way to make this easier". The commands I was running was mostly ...
36 views

### Counting sort using arrays

This is my implantation of counting sort, but I see myself using way too many for loops. Is this necessary? ...
12 views

### Does adding a separate function for the conversion in the cipher make a difference in C? [on hold]

I am new to C coding, and the project is the ceasar cipher. Using the lectures and some online help, I have made the cipher, and both versions work as intended. My question is: Is it better to have ...
43 views

### IPv4 struct: Round 2

Summary Original Question here. Updated GitHub link here I've taken an interest in lower level data structures and I implemented an 'Ip4Address` to get familiar with Explicit structure layout. It ...
23 views

### Excel Manipulation in Single Procedure part 2

So again I modified my last posted code as other fellow friends said me. So please review and let me know what more modifications and optimisation I can do in This code now. Previous Post Spreadsheet ...
61 views

### Battle Tanks: My first game

I created a simple 2D game that i made for myself, in C++ with SDL2.0 + OpenGL + Box2D, but i'm insecure about the code and structure, because I developed the game using everything I've learned on the ...
81 views

### Sorting a list based on date and time

I have a class that is used to basically store samples from data being read from a system. Within that class is a property that I use to store the date and time of that sample: ...
15 views

My name is Michael, 13 years, and I began to do C++ programming recently. I have a book with following exercise: Create a class myArray that solves the overflow ...
37 views

### Rate limiting function calls

I wanted to write a function that when applied to another would rate limit it, but permit all calls to eventually make it through. Comments and criticism welcome. ...
308 views

### A simple JavaScript Utility Library

I have developed a simple and easy to use JavaScript library called, Omega for practice. I would highly appreciate if you can point out all sorts of flaws in the ...
29 views

### Batch Processing : Design check with SRP and OCP prinicple

I have to create a batch process which reads data from DB , process it and saves it in db . The batch data is fetched organization wise ( each organization has set of data to be processed) at once.We ...
15 views

### (vba) find an element of collection given a key or position [on hold]

I have to ask a user to enter an employee name or position to display the data, so i have an string or integer as an input, how can i do this? i have an error on line 6 my try: Do While continue = ...
25 views

### Newton's Method Polynomial solver in Ruby

I am learning Ruby programming from "Learn Ruby the Hard way" and I am also doing the "Ruby koans". This is my first ruby program. I have heard a little bit about "Idiomatic" Ruby but I dont know ...
29 views

### PHP Going Multiple Directories Back Best Practice

I'm writing a php library for managing configurations of an application. but the problem is anyone who uses my library will store their configuration files in ...
54 views

### Type-agnostic BubbleSort in C

I'm trying out different sorting algorithms for learning purposes, here I'm doing a "type-agnostic" BubbleSort. I modeled the function signature after the standart ...
13 views

### Updating No. of Votes with “Like” button - Parse + Swift

I have a "Like" button in my iOS app that updates the votes every time it's tapped. Just like on FB, Instagram, Producthunt, etc. I have a custom cell where that IBAction is declared and that's ...
25 views

### Pseudoportable C script pattern - follow-up

See the initial/previous iteration. I have rewritten the script following the answer of @200_success. Now it looks like this: ...
20 views

### Code won't do what I want it to do [on hold]

So this is my first time working in C++ and playing with an Arduino. I wrote a simple code to blink two LEDs (while one is on the other is off and so forth). Now I am no C++ or any coding language ...
138 views

### Search for a Pythonic Caesar

I implemented a second encryption algorithm: the well known caesar-cipher. This turned out to be longer than I expected. The "main" code is very concise, but the interface that followed seems a bit ...
42 views

...
12 views

### MVC / Routing / Modular code with express and node-mysql [on hold]

I am working on a project with Angular, Express and MySQL using node-mysql dependency. I have the code working but wanted to know if I can make it more modular so that I can have a cleaner ...
25 views

### Postfix evaluation using a stack in c

I have written a program to evaluate a postfix expression using a stack. I had my stack implementation using a linked list reviewed here, so I am only including the header file here. I have taken ...
126 views

### Filtered Iterator

I have written a wrapper for Java's Iterator class using Java 7, which is designed to only iterate items that match a certain filter. When the filter is null, all ...
15 views

### Checking if a tag is on the screen

This function receives an HTMLElement as an argument and returns true if the tag is on the screen and ...
28 views

### Simulation of Multiple Producer Consumer

I am trying to implement the Multiple Producer-Consumer problem. I have made the buffer as the lock to maintain consistency of the system. Does this system actually implement multithreading? How can I ...
30 views

### Searching Combobox drop-down list

I've created a Combobox GUI that allows the user to search through the Combobox by entering a letter on the keyboard. If user ...
13 views

### read the information of the graph from file [on hold]

I don't know why my code is't working, this code suppose to take the name of the text file then read the information of the graph from it.(this is't the full code) ...
16 views

### C++ histogram, create a histogram depending on user input [on hold]

I wrote this code but it seams it doesn't create a histogram how I want it. ...