« first day (2150 days earlier)      last day (1850 days later) » 

12:00 AM
RELOAD! There are 5909 unanswered questions (89.9141% answered)
 
1
Q: Note-drawing program

User319This program draws a random music note on a staff, refreshing the note every second. It compiles with g++ and also emscripten, so it is runnable in both the browser and on desktop. This is my first attempt at graphics programming, so I'm not interested in feedback on how I'm using OpenGL. In par...

 
1:00 AM
0
Q: [Beginner]/[Readability]: How much does my code suck?

Jacob FranklinCompleted a short coding challenge located here: https://www.hackerrank.com/challenges/js10-loops/problem?h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen Just want to have it checked to see what I could have done to make it better and more readable. /* * * Complete the vowelsAndConsona...

 
1:38 AM
0
Q: Refactor if statements that check for different conditions

Asel SPreface: I've perused the other related questions before creating this one but I believe that those solutions weren't applicable to my situation. I'll concede that its possible that I may not have understood a possible solution (if any). I'm working on refactoring an old poker game that I creat...

 
 
1 hour later…
3:05 AM
possible answer invalidation by Jamal on question by HelloWorld: codereview.stackexchange.com/posts/216054/revisions
 
3:51 AM
0
Q: Generate alternate saturday dates list within range in R

newguylibrary(tidyr) d = seq(as.Date("2018-01-01"),Sys.Date()+365,by='day') saturdayList = d[weekdays(d)=='Saturday'] altSaturdayList = data.frame(lapply(split(saturdayList, format(saturdayList, "%Y-%m")), function(x) na.omit(x[c(2,4)]))) altSaturdayList = subset(gather(altSaturdayList),select = c(...

 
4:31 AM
0
Q: Function-based Tic Tac Toe game in C

grabbailoutrunThis is a tic tac toe game that I made in C. It works the way that I want it to but I feel like I could have done it better or shorter. Any input as to how I did would be appreciated. Include Statements and Prototypes #include <stdio.h> #include <stdlib.h> #include <string.h> //Creating the pr...

 
5:12 AM
Looking at that one.
 
5:27 AM
0
Q: Semaphore implementation exception

AKS I am not sure why below code is throwing exception. If I implement the same code with synchronized at method level then there is no exception, and it works fine. I think using object lock should also not have any issue.enter code here package practice; public class CustomSemaphore { ...

 
 
2 hours later…
7:21 AM
0
Q: Simple raw buffer queue implementation

AliI am trying to implement a simple raw queue in C++. This is what I have come up with #include <queue> #include <cstdint> #include <array> #include <cstring> class simple_queue { private: static constexpr uint32_t max_msg_size = 4096; using char_msg = std::array<char, max_msg_size>; ...

 
 
2 hours later…
9:34 AM
0
Q: Ref readonly struct property or regular readonly struct property?

Ehouarn PerretI am implementing the Unit type (like in F# and other functional languages) in C#, I drafted the code below: public readonly struct Unit : IEquatable<Unit> { public static readonly Unit Default = new Unit(); public override int GetHashCode() => 0; public override bool Equa...

 
9:53 AM
0
Q: Block YouTube iframes until user consents with cookies (GDPR)

TheDancingCodeI'm trying to embed YouTube video's on a website in compliance with the GDPR and ePrivacy regulations. The code doesn't load the iframes by default but shows a preview thumbnail overlayed with an info message instead. The user can load a single video by clicking the button in the info message. T...

 
10:31 AM
0
Q: Blackjack game with database

Maria LauraThis is the latest version of my Blackjack game and I did a quite big update to it. Now you can make an account that is saved in the MySQL database and you can bet money that are also saved in the database. from random import shuffle import os import cymysql from getpass import getpass import sy...

 
 
2 hours later…
12:25 PM
possible answer invalidation by Maria Laura on question by Maria Laura: codereview.stackexchange.com/posts/216105/revisions
 
12:55 PM
Welcome. You've given a view of the final report, but you don't explain the layout of data in "Applicant's_Status". You rightly point out that "Experience" and "Education" could run to several lines, and it is important to understand how this information is delineated in the raw data. Your code only populates rows 1,3,4,5,6, and 7. Does this codework, what about the rest of the rows - have you written the code for them yet? Please update your question to provide the additional information. To assist with code review, I suggest you also share samples of the two spreadsheets . — Tedinoz 22 secs ago
I suggest you take this to Code Review, but only after you've had a look at their help center and have edited your question to be on-topic there. — Aran-Fey 27 secs ago
 
@CaptainObvious is there a code-ownership issue with this question, or is it OK in that regard as a comparative review? (link)
 
For reviews of working code, check out codereview.stackexchange.com - be sure to read the help center and format your question accordingly — Blorgbeard 17 secs ago
 
@bruglesco (thanks for the clarification)
 
@VisualMelon I'm not certain my assessment is accurate. although I believe it is. It was your observation though.
 
2's a riot; so I'm happy to VTC on those grounds
 
1:12 PM
Monking
 
1:23 PM
0
Q: Which is better conditional rendering or styling in reactjs?

Zeyad EtmanI want to toggle showing content using reactjs, and I have two options, applying the condition on rendering or on display? I'm asking which is better from performance. Here's a running code from codesandbox import React, { useState } from "react"; import ReactDOM from "react-dom"; import "...

 
1:52 PM
Try CodeReview for code reviews. — Jesper Juhl 37 secs ago
 
0
Q: A N^2 solution to 3Sum

AliceI tried to solve a 3Sum problem in leetcode Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. Note: The solution set must not contain duplicate triplets. Example: Gi...

 
 
2 hours later…
3:36 PM
0
Q: Finding maximum homework grade ECOO 2018

Michael exeI'm trying to solve ECOO 2018 round 2(regionals) question 2 to prepare for the upcoming contest. Basically, in the question George has to achieve the maximum possible grade by completing the right assignments. Each assignment has a deadline and a weight value. I've came up with two solutions yet ...

 
3:55 PM
0
Q: Python: My program is unable to perform addition correctly

Aaryan DewanI was trying to solve a problem which stated: Calculate the first 10 digit prime found in consecutive digits of e. I was able to solve the problem but I did it by using some 10k digits of e available online. So I tried to write a program which calculates digits of e. The problem is that it...

 
 
2 hours later…
5:41 PM
Code in this answer is totally wrong. With *list.end() = x; you will be laughed out of any code review. Of course std::list doesn't implement it this way. @HanXIAO this thread is 8 years old, good luck getting attention from the originators. — n.m. 30 secs ago
This question may be better suited to Code ReviewArtemis Fowl 13 secs ago
 
6:04 PM
do you want this?
-1
Q: Optimizing algorithm

JegErEnKagei've gotten an exercise in regards to one of the classes that i'm taking at Uni. My problem is not that i can't solve the problem but that my algorithm isn't fast enough. The assignment Josefine has spent the entire summer deciding what courses she wants to study at The University of Algorithm...

 
0
Q: Anonymous function uses variable declared outside the function?

w0051977Please see the code below, which I have taken and adapted from here: https://www.rabbitmq.com/tutorials/tutorial-one-dotnet.html and here: https://github.com/rabbitmq/rabbitmq-tutorials/tree/master/dotnet (RPCServer and RPCClient): public RpcClient() { var factory = new Conne...

 
@Yvette Not with that title.
It's overall not a great question. Wasn't there a rule not to migrate lousy questions?
 
@Mast sure, thought I'd ask
 
But if it's polished up a bit, sure, it would work here. The answer is just enough of a review that it wouldn't be a problem either.
 
6:35 PM
@Mast Not sure I'd class it as a 'lousy question'. I'd say it has normal quality
 
@Peilonrayz The spelling is usually better on the average question, but that's in part because we edit the crap out of everything that's not up to par.
 
@Mast I'm not seeing this. They don't have capital 'i's but that's about all I can see?
 
Yea, it's not as bad as I thought it was. Needs a better title, some minor work on the body. Afar from that...
A couple more tags.
 
IMO they're all minor problems, the base quality is that of an unedited CR question.
 
Belongs to codereview.stackexchange.com . For this site it is too broad and probably also opinion based. — Sulthan 14 secs ago
 
6:48 PM
0
Q: How to include all standard C library headers?

chuxThe Standard C Library consists of various headers files. Often only a few select ones are needed for given code. Other times it is simply convenient coding to include them all in a .c file, even if that make the compilation time a bit slower. Including all standard <*.h> is useful to help det...

 
7:01 PM
Your question would be more suited for the Code Review StackExchange codereview.stackexchange.comvs97 30 secs ago
 
0
Q: Swift Memory Cycle From Closure

DarkisaI am working with closures and want to confirm that I do not have any memory leaks in my code. Below is my current code: // in ImageGalleryController.swift class ImageGalleryCollectionViewController: UICollectionViewController { var images = [Image]() func dropInteraction(_ interaction: UIDro...

 
7:35 PM
0
Q: What is _best to the author's knowledge_?

vnpThe question has been put on hold with the reason code not implemented or not working as intended. It is a curious case: in fact, the code is implemented, and does work as intended. The OP just didn't realize that. Unfortunately the people voting to close also didn't recognize it. They were mis...

 
0
Q: Is the implementation of RMI correctly done in my code?

LeonI'm doing a personal project on RMI. We did not study this at school. I just want to know what you guys think about my code, if its well done. And, this is a stupid question but how do I know its working well ? A little word about my project: I'm doing a supermarket checkout service (be able to...

 
8:42 PM
0
Q: Parsing infix expressions in Clojure

Eric ZhangI'm trying to teach myself Clojure by reading the Brave Clojure book online, and at the end of Chapter 7 there is an exercise to parse a mathematical expression written as a list in infix notation to s-expressions, following operator precedence rules. To do this I implemented the shunting-yard a...

 
9:01 PM
0
Q: sum from the sublist

thadeuszlayThe task: Given a list of numbers L, implement a method sum(i, j) which returns the sum from the sublist L[i:j] (including i, excluding j). For example, given L = [1, 2, 3, 4, 5], sum(1, 3) should return sum([2, 3]), which is 5. You can assume that you can do some pre-processing...

 
9:39 PM
This question should probably be moved to codereview.stackexchange.comaventurin 52 secs ago
 
-1
Q: Javascript calculation functions

ChrisI am building a calculator of sorts, im aware of what these functions do but I want to test if You, without any knowledge can tell what they do. Basically I'm asking you do I need to comment this or is there sufficient information to ascertain its purpose: function percentOfValue(percentage, of...

0
Q: Invalidation of Data

BanMeOK so I am working on a framework for invalidating data dynamically. using System; using System.Collections.Generic; using System.Linq; namespace Template.Invalidation { //Interface Definition public interface IInvalidator<T, U> { //Reference to target T _Target { get; set; } U[] _P...

0
Q: Generate EFF diceware passwords with Python

AlexI wanted to write a commandline scipt to generate diceware passwords based on the EFF diceware list. The script (diceware_password.py) can be found below. It was originally developed for Python 2, but I want it to be compatible with Python 3 as well (both versions have been tested on my machine)...

 
10:18 PM
-1
Q: PyYaml - overwrite yaml file and save it

Majid Azimiwhat I am trying is to load a yaml file and update its values by argparse and save the resulted yaml in another path. the output of yaml.save_load is: import os import argparse import yaml import functools parser = argparse.ArgumentParser() parser.add_argument( "--config", nargs="?", ...

 
10:56 PM
0
Q: tkinter Stopwatch

jayco 10125As part of a school project I had to make a stopwatch with python, I wish to show my teacher but at the moment it is a little messy and long, is there any way to make it more compact or easier to read? - thanks in advance. #stopwatch from tkinter import* import time root=Tk() root.configur...

 

« first day (2150 days earlier)      last day (1850 days later) »