« first day (3086 days earlier)      last day (50 days later) » 

12:02 AM
REFRESH! There are 7882 unanswered questions (89.2701 answered)
 
12:48 AM
1
Q: Simple Cash Register -Python

Jakubhere it is my simple cash register app. It lacks some functionality ( class Payments should have more options like daily statements etc, class TillSettings needs more settings as well) but it does the job. Simple Cash Register and Stock Manager allows to add items to stock and then sell it and re...

 
 
1 hour later…
2:02 AM
0
Q: Dynamically resizing Array class

Joe SmithI am new to C++ and decided to make my own class that supports dynamic resizing and Pythonic style indexing. Here is the following code, I was hoping to see if anyone could throw me any suggestions or improvements, thanks. Because it is a templated class, I am unsure whether to place it in .h or ...

 
 
1 hour later…
3:18 AM
0
Q: Validating and encrypting a password

ZoraI am trying to write a program that validates a password and then I extend the code to encrypt the password. I am getting a traceback error: Traceback (most recent call last): File "/Users//PycharmProjects/classtask/test.py", line 55, in <module> main() File "/Users//PycharmProjects/class...

 
 
1 hour later…
5:07 AM
Monking
 
Monking
 
5:45 AM
But technically this is fine :) If there is some logic behind, this assignment should come up during code review :) — metal_man 23 secs ago
 
6:41 AM
Not sure whether this question is a really good fit for this place (isnt it more code review, SE practices) ... but your answer is great, for sure! — GhostCat 14 secs ago
@МихаилНафталь the code is not always read in an IDE, especially during code reviews. But in any case this is not a big deal of course, I never had to read code with shadowing personally — Joffrey 59 secs ago
 
7:04 AM
0
Q: Implementation for Simple Disjoint Set

Jae BradleySimple Disjoint Set Implementation I had not implemented a DisjointSet before and the following is my attempt at implementing a very simple DisjointSet for learning purposes. When union-ing sets, the goal was to implement union-by-size. Approach For simplicity, I implement a disjoint set that onl...

 
 
2 hours later…
8:42 AM
0
Q: Regulate the speed of a simulated gps

João TelemovelSo I am doing a project where I upload a .txt file with gps coordinates of a train and when I press start the train starts moving on a map following that coordinates. I allready have a range bar on the page, but my question is... Is there any way that I can regulate the speed of the "train" on t...

 
 
3 hours later…
11:20 AM
SO has dedicated Sub-Sites for code review. Yet, banging strings together as XML is a bad idea, because depending in the values you are using, there is a good chance, that you are creating invalid XML. Check out Creating XML with Groovycfrick 9 secs ago
 
11:35 AM
0
Q: simple code for pointer is it freeing memory is it overwring allocated space or is it correct use of keep pointer means handling of them in code

user786I have written a simple code. I like someone to look at it and give if it does it do what it suppose to do in terms of: is it correctly using pointers? Is it overwriting in allocated memory i.e. like allocated smaller sized space but overwriting it with strcpy or is it free() allocated space #inc...

 
 
2 hours later…
1:38 PM
0
Q: Check for max value in stack

G.RGot this problem in a coding interview - Get the max value of a stack in O(1). The stack contains numbers only. Please review my solution. Thanks class Stack { data; maxVal; pop() { return this.data.pop(); } insert(x) { const cm = new CheckMax(); this.data.push(x...

 
2:16 PM
This question might be better suited for the CodeReview site. — G. Sliepen 33 secs ago
 
3:10 PM
Monking
 
3:24 PM
Monking
 
 
1 hour later…
4:48 PM
I think your question belongs on to the StackExchange Code Review website, not here. — martineau 52 secs ago
 
 
3 hours later…
8:13 PM
0
Q: Divide array into three disjoint sets with equal sum

nkvnsProblem definition : Array partition problem Given an array of positive integers, divide it into three disjoint subsets having equal sum. These disjoint sets cover the complete array. Example Input: [7, 6, 1, 7] Output: [[7], [6, 1], [7]] Input: [7, 6, 2, 7] Output: Not possible to partition in t...

 
 
1 hour later…
9:26 PM
Code Review is a better fit for questions about reviewing working code in most cases. Anyway, one thing you can improve is to have only two event handlers (e.g., TextBoxes_Enter and TextBoxes_Leave) and have then handle the events for both/all TextBoxes. You can achieve that using the Handles clause (e.g., Handles TextBox1.Enter, TextBox2.Enter,...) or using AddHandler. Then, inside the event handlers, you can cast sender to a TextBox to access the specific TextBox that triggered the event (e.g., Dim txtBox = DirectCast(sender, TextBox)) — 41686d6564 21 secs ago
 
10:16 PM
wow only 8 new questions in the past 22.25 hours and half were deleted or closed
 
10:41 PM
0
Q: Quicksort using generics in java

DevShotThe goal is to have a function that can sort a series of all object types that implement the comparable interface. I'm not trying to improve the performance of the sort. I'm only trying to optimize my use of generics. I currently use T extends whatever and T[], however I was also considering to u...

 
11:17 PM
This probably belongs on Code Review. — shmosel 14 secs ago
 
11:30 PM
0
Q: Affine Cipher Decryption

user250548I joined a cipher challenge recently, and there are multiple decryption tasks there. One of the ways information on there is encrypted is with the Affine Cipher. Finding solutions to it is fairly simple, but I wish to avoid doing the crunch work of decrypting 3 paragraphs of writing after I have ...

 

« first day (3086 days earlier)      last day (50 days later) »