@DanPantry art? artful programming right.. geez, I wouldn't have the slightest beginning of a clue of how to go about animating individual stick characters into a countdown.
I was working on the code of Dijkstra algorithm and I am having trouble in obtaining the array that traces the shortest path from the source vertex to the destination vertex, Written below is the function that returns the shortest path--
public int[] short_path(int source,int destina...
I want to Show a Remark Column showing the total quantity of the for a particular product type.. If there are 10 rows and 5 rows is for honey with 30 quantity, it should show in the remark column as Total Quantity for honey is 30. without repeating it for each rows.. See image for more explanatio...
Got this from one of our service reps, "After speaking with customer on the phone she has no idea where we got these emails from and why these are the ones setup to get email notifications." -- Oh, right; those emails are set up via the customer application
I have some questions on how I can improve this "add action" (method) in "controller":
Some describes: In system the user can upload in a single form a product to be displayed in site, in system a Product is composed by Product, ProductFeatures and ProductMedias entities (and 3 different tables ...
I wrote a piece of code which should make me able to create subset of integer numbers.
Here is code:
public class FixedRangeIntegerSet implements Iterable<Integer> {
private boolean[] elementFlags;
private int size;
private int lowerBound;
private int upperBound;
public F...
It's actually really difficult to do gift shopping for normal family members, simply because of the merged accounts. (Which was a bad idea, but I can't really change it easily now.)
I was asked a weighted probability question in a technical interview a few months ago that went something like this:
Given an input of colors and an integer "weight" value, randomly return a color based on its weight.
The sample input would be something like this:
[("Red", 20), ("Blue", 50...
So I recently started following the James M Kernel Dev and was able to create an Operating System in C++ .
Here is the Source on Github : Just Another OS
I have a couple of questions
1. Is my coding style ok ?
2. It it wrong to have same name for standard Library Functions since I am making ...
Heelllooo folks. We're trying to make a Secret Santa with regular users of the 2nd monitor. Please join this room if you're interested. If you don't have write acces, ping me, @Mast or @DanPantry.
The Watch Project
I am a High School-er and just started learning C++ a few months ago so there are bound to be many things that can be improved in my code.
The project is very simple, it's a console based watch that shows the time, has a StopWatch and a CountDown mode, and has different files ...
It seems that your code currently works, and you are looking to improve it. Generally these questions are too opinionated for this site, but you might find better luck at CodeReview.SE. Remember to read their requirements as they are a bit more strict than this site. — Mr. Llama47 secs ago
To celebrate our first graduated Christmas (and because we feel like it), some members of the 2nd monitor thought it would be a good idea to make a Secret Santa between members of Code Review!
The rules are quite simple :
You will send an email to secret-santa@lambdaexpression.io to register....
I wrote this to scrape album review data from AOTY into a spreadsheet. Check it out and let me know what I could've done better.
Option Explicit
Const classAlbum As String = "listLargeTitle"
Const classScore As String = "listScoreContainer"
Const classRating As String = "listScoreValueContainer...
Hi guys, on this question: codereview.stackexchange.com/q/112554/78136, Jamal just changed the formatting to indicate html and css. The question also has a link to a code pen. However this can also be done within a SE snippet. Is it bad to change it into a SE snippet, and remove the codepen link? (Or possibly in addition to the code pen link?)
> Yes. Programmers when faced with a repetitive task, even a reasonably small one, tend to balance in their head which way would be quicker - just bang it out manually now or script it?
I have created a Backbone Movie app as part of a learning exercise, the app is hosted on codepen although I actually have it built on my local but thought this approach would be handier for code review. I have some dummy JSON containing some movies that are stored in a Movie Collection and then a...
I am trying to write a single function that will read a C file for a certain number of bytes or the entire file based on arguments. I want it to be memory safe of course and deal with NULL terminators and the like. Not only that but it should be efficient.
#include <stdio.h>
#include <stdlib.h>
...
To celebrate our first graduated Christmas (and because we feel like it), some members of the 2nd monitor thought it would be a good idea to make a Secret Santa between members of Code Review!
The rules are quite simple :
You will send an email to secret-santa@lambdaexpression.io to register....
Thank you for those thoughts. I keep a testing sub there to easily test snippets i'm working on. The ObfuscateString stuff I never actually use, a friend sent me that as an example alternative to encryption and I just didn't want to lose the code. And the dead code at the bottom, yes I can kill that. And yes i'm using TFS for source control. — Gary Ritter2 hours ago
I have a code (developed by someone else) that basically has four nested loops and based on a parameter can start from the second iteration of the innermost loop.
I want to get rid of the goto in the code. Can you please offer an advice for how to do that without introducing much of duplication ...