Top new questions this week:
|
A long time ago I created a script for moving up directories very quickly in the command line using the command up. You can find usage notes here.
It's a very simple script with just 8 lines of ...
|
Let's say I have \$5\$ apples, thus \$n = 5\$. I have three bags (\$k = 3\$), each having the capacities of \$4\$, \$4\$ and \$2\$:
$$c = { \{4, 4, 2 \}}$$
I'd like to calculate the number of ways ...
|
Here is working code to get N closest points to some reference point.
Please help to improve it, specifically by commenting on my use of std algorithms and vectors/iterators manipulations.
...
|
I was looking through the JavaFX library, and I spotted that JavaFX DOES NOT HAVE A JOptionPane EQUIVALENT. (Or at least not in my version - as @SirPython has said in comments, as of 8u40, there is a ...
|
I made a simple hash table and I was wondering if there was any way to increase the efficiency of search times. My table class is called Dictionary, because C# has tainted me.
The way I set this up ...
|
As the title explains, this is a series of extension methods that convert certain numeric types to and from byte-arrays, for certain actions which work better on byte-array types than numeric types.
...
|
I wrote a small generic implementation of a simple generic double buffer pattern, and I was wondering if it's actually thread safe or can be improved in any way.
Note: The specific part that I'm ...
|
Greatest hits from previous weeks:
|
I am building an ASP.NET MVC 5 application and, for reasons which are irrelevant at this point, I am attempting to build my own means of authenticating users. I'm still very new to programming, ...
|
I am just coding some classic brute force password cracking program, just to improve myself.
I've explained how my program works at the start of the code. Check some of those screenshots to ...
|
Can you answer these?
|
I have built a Twitter clone in Golang, using object orientation principles. I wish to know the design mistakes I have made.
package blade
import (
"database/sql"
"fmt"
)
type User struct {
...
|
I am trying to optimize my vertex and pixel shader code. Do you have any suggestions what could I possibly do to improve performance? I am using it to draw textured cuboids, and if there are many ...
|
I recently developed a simple treap data structure in C#. In the future, I may have the class extend IDictionary. For now, I only expose a public accessor and a delete method.
public TValue ...
|