Top new questions this week:
|
Got the following question in a technical interview today (for a devops/SRE position): Write a function which returns true if the two rectangles passed to it as arguments would overlap if drawn on a …
|
How do I improve this code to remove all of the extra variables and make it easier to read. get_item_count calls to an API and gets a count and there are several pages to get this count from until …
|
Here is my C# code that draws scanline of the image to System.Drawing.Graphics. It's quite simple and it's optimized in order to merge neigbour samples with the same color into single rectangle …
|
I have been working on a toggle script, but I find myself repeating my code. Is there a way of combining it all? I am new to jQuery, so forgive me for my beginner question.
HTML:
<div …
|
I need some tips on how to improve the design of the following code. Everything works correctly in the program. It takes a string and shows each token the only tokens being numbers and operators. The …
|
This is code from a grappling hook implementation. This is specifically code that, after a block is detected between two way points, it tries to find a path around.
This particular piece of the …
|
I've been trying to take image pixel data and write it out into printer code and my results are rather slow.
Here is a asimplified version of what I have so far (image is a PIL Image object of 1200 x …
|
Greatest hits from previous weeks:
|
I have a java function that reads a csv and returns its content as a Vector<Vector<String>>.
The function seems to work as I need it, but my gut feeling says it could be better (never …
|
First off I would like to state that this is a homework assignment. However, I am not looking for you to complete anything for me. I code I am posting is the completed homework assignment. However, …
|
Can you answer these?
|
I have a Task model in Django which looks like following,
class Task(TimeStampedModel):
project = models.ForeignKey(Project, related_name='tasks')
date = models.DateField(_('date'))
task …
|
Ok, code reviewers, I want you to pick my code apart and give me some feedback on how I could make it better or more simple. This code finds a common ancestor for binary search tree. this code …
|
StackExchange page views works like this: Link
The objective is to increment the page visits by one. User should not be able to do this by refreshing. Number of visits can be incremented only if …
|