« first day (3325 days earlier)      last day (990 days later) » 

00:03
REFRESH! There are 8093 unanswered questions (89.3067 answered)
00:26
0
Q: Algorithm to effectively split money in group

Jakub ZnamenáčekHi I am working on application which will manage expenses in group of users. I would like to know, how to most effectively get final settlement instructions for users. I have came up with this: @Override public Map<Pair<User, User>, BigDecimal> getSettlementInstructions(Group group) { ...

0
Q: UIImage downscale and compression

fake girlfriendsgetFinalImageData(:UIImage) takes a UIImage and downscales its size dimensions (to 400 points, in this example) and returns it as Data that has been compressed to be within the byte limit (using the two UIImage extensions). This function works great but I would love to get some other eyes on it. ...

 
1 hour later…
01:49
This StackExchange site is more appropriate for your question: codereview.stackexchange.comPaolo 56 secs ago
02:11
possible answer invalidation by Vaibhav Vishal Singh on question by Vaibhav Vishal Singh: codereview.stackexchange.com/posts/277186/revisions
possible answer invalidation by Vaibhav Vishal Singh on question by Vaibhav Vishal Singh: codereview.stackexchange.com/posts/277186/revisions
 
2 hours later…
03:47
0
Q: Is style guide the best approach for finalising coding style?

overexchangeWe are into a scenario to refine code review standards for a team of 50 contributers on a single GitHub repo(using GoLang). It is not difficult to convince obvious bugs & performance hits in the code. For any given code change from a contributor, there can be multiple views on refining the code c...

 
3 hours later…
06:38
This should be moved to codereview.stackexchange.comJeppe 15 secs ago
0
Q: The levers puzzle

Andrew SavinykhI started playing Pathfinder: Kingmaker, and very soon ended up in a room with 6 levers, and a task to open a secret door by manipulating the levers. I assumed that the correct position for all the levers is up. But when you flip a single lever, one or two other levers also flip. For example, if ...

06:57
Perhaps this question is a better fit for codereview.stackexchange.comTed Lyngmo just now
07:09
0
Q: How to put filters based on set of numbers after combining numbers using combination and itertools?

John PricePlease do check my code and correct my mistakes. what I want to do is combine numbers then filter out those combinations if they exceed some criteria, for example; if the combination contains more than 4 even numbers, then it should be eliminated from the list. I have read that range function can...

07:35
0
Q: Can I make these functions more efficient?

cozy_hnI am a beginner in C language. I studied all night and did my assignment. But I wonder if there is a more efficient way. The original structure is this. typedef struct student { int id; int prob_1; int prob_2; int prob_3; int total_score; char grade; }Student I used typed...

 
2 hours later…
09:16
0
Q: Simple snake game with C and raylib

throwaway364Made a simple snake game using C and raylib for graphics, Would like to be critiqued on the clearity and efficiency of the code. #include <raylib.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <stdbool.h> #define DIRECTION_UP (Vec2i){0, -1} #define DIRECTION_DOWN (Vec2i)...

 
4 hours later…
13:07
@VanWilder This is also given in the last shared link. — Anoop Rana 20 secs ago
13:28
0
Q: NTP client displaying reference, originate, receive and transmit timestamps periodically with graceful shutdown in C#

Arturbased on this stackoverflow topic: https://stackoverflow.com/a/12150289/15270760 I have decided to create a simple NTP client displaying difference between NTP server response and DateTime.Now called right after receiving NTP response. I was just curious of the result. I have read both RFC's 2030...

@VanWilder You can search the keyword [] here and you'll find it and use it as a reference. — Anoop Rana 51 secs ago
14:18
1
Q: I've made a function that sorts nestedArray[][]'s. It works, but how can I clean it up?

WyreZI'm fairly new to coding and am trying to learn more about best practices. I wanted to have an nestedArray of objectArrays, and I wanted to be able to sort the elements in each objectArray based on matching certain property values with some in the preceding objectArray. This is what I came up wit...

14:31
@CaptainObvious hehe username reminds me of when I started working after graduating from university my supervisor would give me grief by saying I didn’t really have a gf and I must have been sending money to some website to have calls made to me so it would seem I did
Welcome to Stack Overflow. Please read about what's on-topic in the help center. Questions that are primarily opinion-based, like open-ended code review, are explicitly off-topic. Furthermore, when sharing code please share it as a code block, not an image. — Chris 59 secs ago
15:08
@VanWilder In the link, there they have implemented the multiplication using operator*. Do you have doubts from that implementation? If yes, you can ask those doubts as separate questions explaining in detail which part you don't understand and which part you do understand. — Anoop Rana 44 secs ago
15:49
Monking
 
1 hour later…
17:04
Monking
17:15
0
Q: Is this the best way to get the updated value of a propriety of a class in another module

leo___I've a player module export default class Player { upPressed = false; downPressed = false; constructor() { this.playerWidht = 15; this.playerHeight = 175; this.x = 10; this.y = (750 / 2) - (this.playerHeight / 2); // 287.5 this.xVelocity = 0; this.yVelocity = 0; ...

 
1 hour later…
18:31
0
Q: Setting constraints to scale app's UI for consistent display across all iOS devices

Quack E. DuckFor apps which don't have significant layout changes between the iPhone and iPad versions, I usually set the constraints of all UI elements (views, labels etc.) as fractions of the current device screen's width and height, in order to scale the content for different sizes and aspect ratios. The w...

18:56
0
Q: How To Use Multivariable Newton Raphson Method for Functions With Sum Loop

Natasha DavinaI'm currently trying to estimate parameters of a distribution with the mle method in Python. These are the derivative of my loglikelihood function: You can see that it has a quite complicated formula and that's why I would need to use the Newton Raphson method to find the value of each parameter...

19:15
@CaptainObvious That shouldn't have been able to post, no code.
19:52
Ok, so it looks like you want these operators to build an expression tree which dynamically generates numbers for each leaf variable. So I think that's how I'd do it. Maybe you should submit this to code review? — quamrana 44 secs ago
 
1 hour later…
21:02
0
Q: Implementation and Testing of Exponential Search for scenario where we search the same array/list many times

josevilleExponential Search is an optimization over binary search. Conceptually, when searching for a number target in a list of numbers nums, exponential search first finds into which power-of-two sized bucket nums[2**p: 2**(p+1)] the target falls into. E.g., if nums has a size of 30, then the buckets ar...

 
2 hours later…
23:08
0
Q: Determine if Hill or Valley

Brian WilkinsThis is my accepted submission for LeetCode. The problem is "You are given a 0-indexed integer array nums. An index i is part of a hill in nums if the closest non-equal neighbors of i are smaller than nums[i]. Similarly, an index i is part of a valley in nums if the closest non-equal neighbors of...

23:33
In a code review I would reject while (count --> 0) {. — Cheatah 54 secs ago
23:58
This question is probably better suited to Code Review. However be sure to take their tour and read A guide to Code Review for Stack Overflow users and their How to Ask page before posting. — Nick 46 secs ago

« first day (3325 days earlier)      last day (990 days later) »