« first day (1776 days earlier)      last day (2244 days later) » 

12:00 AM
RELOAD! There are 5172 unanswered questions (89.9868% answered)
 
12:14 AM
 
 
2 hours later…
1:49 AM
0
Q: Please answer this

Bimochan Thapa MagarHello can you please tell me its answer using if else and switch with simple and easy way.? Write a program to display season. Take month as Boolean condition and in according with the number of the month provided program should display the name of the season.

 
@CaptainObvious No
 
2:23 AM
0
Q: Getting image file path from PreviewMouseDown event (WPF/C#)

UofAStudentHere's my .xaml for my program <Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openx...

 
2:40 AM
0
Q: Speedup on Copy/Paste values on two sheets

0m3rI'm trying to copy values from one sheet to another sheet if value exist, code run great on around 500 rows but very slow on 5000 rows. I was wondering if there is any way I can speed it up my code? Option Explicit Public Sub FlashCycleCount() ' updating off With Application ....

 
 
1 hour later…
4:02 AM
looks good, but you might want to check out the code review forum — vol7ron 13 secs ago
 
4:44 AM
0
Q: Checking if all questions were answered with javascript

MateusI made a quiz project and I made a code to see if all the questions were answered, using javascript. It works, but its way more exhaustive than I wanted it to be, I first check every single option from each question and separate it, then I use a function to see if the question was answered(allF...

 
4:55 AM
 
5:18 AM
Monking
 
5:37 AM
0
Q: Lazily recovering from async initialization errors?

Ryan The LeachI have 'some network client' that I'm wrapping around in order to try and create a class that can be instantiated by a DI container, as a probable singleton for the project. Initialization can fail in 2 ways, it can either hard fail, a connection was made, and prerequisite installation steps were...

 
6:10 AM
0
Q: Car crash reaction time

DannySo in physics at the moment we are doing an investigation thing. Some of the numbers might seem plucked out of thin air but they aren't. The maths is right(I think) I just want some feedback on the code. import datetime import random import time import math player_1 = input("Player one: ") spe...

 
We have to go through code review, we have more than 20+ admin screens each one if i create two models, I will out of the premises. — salz 6 secs ago
possible answer invalidation by web-tiki on question by web-tiki: codereview.stackexchange.com/posts/189612/revisions
 
6:27 AM
@Duga its ok
 
6:50 AM
possible answer invalidation by web-tiki on question by web-tiki: codereview.stackexchange.com/posts/189612/revisions
 
7:20 AM
-1
Q: Hash Table - Open Addressing, Double Hashing, C implementation

Brendan SI'm trying to learn C by implementing some basic data structures. I can't figure this one out. Open-addressing, double-hashing hash table storing key-value pairs where the keys are strings, values are integers. Dynamic sizing (up to a certain limit). I suspect the issue stems from typedef struct...

 
7:49 AM
Monking
@Duga It's fine, fixed the example usage code.
 
Please keep in mind that Code Review needs the actual code to be in your question. Have a look at their help-center before you post there. — Zeta 52 secs ago
 
8:13 AM
Looks fine, but should probably go on codereview.stackexchange.comChris G 24 secs ago
 
8:48 AM
Monking
 
9:04 AM
-1
Q: A Random build plan

IceDI'm currently struggling to figure out to do this since i'm new to coding with python but it's my first project. I'm trying to figure out how to draw buildings in turtle based off a random floor plan such as: Buildings to be constructed (site, style, no. floors, opti...

 
Monking
 
Obviously, without seeing your code we have no way to tell you how to improve your code. Also: reviewing code is not on topic on stackoverflow, but there is the codereview site: codereview.stackexchange.com You may consider posting your code there and ask for suggestions (read the help center first!) — Giacomo Alzetta just now
 
9:43 AM
@GiacomoAlzetta I agree and as stated in my above comment, the class in practice does do this. This class is basically a computation class, and there is a lot of computation. I agree that code review would go to the corresponding SE. However, the question here is not code review. It doesn't matter how large my class is. The question in short is, if I have a class I split into multiple files (as done above) and a method therein needs an instance of the class how do I reference it? — SumNeuron 49 secs ago
 
10:33 AM
-1
Q: creating a class

adedeji azeezcreate a class named emploeeDatails for the empployee book application and display a menu similar to the following menu enter name update data display data exit

 
possible answer invalidation by Arnav Borborah on question by Arnav Borborah: codereview.stackexchange.com/posts/188915/revisions
 
@Duga Nothing invalidated
 
11:10 AM
Monking
 
11:21 AM
@CaptainObvious Asks for code. One more VTC needed.
 
11:44 AM
0
Q: Stats classes for a text-based adventure (Python)

Broken RoseLearning Python by creating a text-based adventure. I've separated the stat creation and storage classes into separate file(modules?), and common functions (ValueError handling etc.) into another as well. Is this good practice? import common_functions # Maximum number of points. Adjust for bala...

 
12:00 PM
0
Q: stopwatch class

GohanPI am learning C# and I have an exercise: Design a class called Stopwatch. The job of this class is to simulate a stopwatch. It should provide two methods: Start and Stop. We call the start method first, and the stop method next. Then we ask the stopwatch about the duration between start...

 
12:35 PM
0
Q: Responsive Navigation for website

BrandrallyI had a third (reputable) party code up my PSD concept - First time doing something of this nature. To be honest, I am not confident in sketch or how it outputs, so I don't know whether this is considered good, though looking at it, I just think it appears clumsy. Below is an example of the navi...

 
12:46 PM
@JonSkeet I agree entirely; and it will be a huge benefit if it happens - in code reviews I often see (and fix) cases where method groups are used in ways that allocate, where lambda-izing it (is that a word?) doesn't - but a: I'm not perfect, and b: lots of people don't know about this (and why should they have to?). So: if you want to club together we could send Jared a beer or two "totally not in a bribing way, honest (but please make it happen kthxbye)" :) — Marc Gravell ♦ 56 secs ago
 
-1
Q: Non-greedy match of regular expression not in effect

RayI'm a Python beginner. I am learning how to use the non-greedy modifier ('?') in Python 2.7. Let's say, I have a string myStr = '<td id=abc xxxx> bla </td> <td id=efg zzzz> wow </td>' and I wish to extract this part from the string <td id=efg zzzz> wow </td> Thinking that a non-greedy matc...

 
1:52 PM
This should go on codereviewFCin 6 secs ago
 
2:03 PM
0
Q: Set, List and Map equality comparison with Lambda check

Karl RichterI'd like to be able to compare two objects with different equality checks. This should work if they're in a Set, List or Map as well. An example use case is testing of deserialzation of a entity which might contain sensitive information, like passwords, the server side, but not in a REST respons...

 
@IlmariKaronen I can't close this as a dupe because of the bounty - I have flagged for diamond mod. If not for the bounty, this would be closed as a dupe of this. Please note that my answer there was written for the Code Review site, until someone incorrectly migrated it here. — Lundin 39 secs ago
 
2:37 PM
I'm voting to close this question as off-topic because belongs to: codereview.stackexchange.comLeandro Tupone 11 secs ago
 
2:55 PM
0
Q: Closest Prime Number via Letters

Johnny I'd like this code to be optimized and factorized, along with, perhaps, re-making it so it's more readable via introducing better functions and minimizing the lines needed for it to be human-readable (making the code more advanced than the cheap theatrics used here). #include<iostream> using nam...

 
3:11 PM
@AmandaFerrari, that't not a trick, that's a mere common sense ;-) I'd start with this and this. — kostix 35 secs ago
 
0
Q: How to create generic delegate for all consumer

Mahesh MoreI am working on one project where I have a requirement to multicast the real-time update to all connected clients using socket programming. Currently, I am multicasting the properties which I have to send as a JObject (key-value pair) and at the receiver end I have to map those updated properties...

0
Q: Check if multiple lists contain an element from a large external list

quantyI have a list of lists (many tokenised sentences). For anyone who doesn't know what tokenised sentences are, my list is like so: list = [['hello', 'my', 'name'], ['this', 'is', 'stack', 'exchange'], ... ] I have a list of key words as well, key_words. For every sentence in list, I want to ch...

 
I'm voting to close this question as off-topic because it belongs to codereview.stackexchange.comceving 47 secs ago
Maybe this question is best to be posted under https://codereview.stackexchange.comCedric Zoppolo just now
 
3:30 PM
Surely not a code review. — user unknown 1 min ago
 
3:47 PM
Monking
 
3:58 PM
I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.comPeter B 23 secs ago
 
0
Q: Generate and validate EAN-13 barcodes

jpfferreiraI developed a console app to generate and validate EAN-13 barcodes. I'm looking to develop a Windows Forms counterpart to render them as images using a barcode font (mostly looking for advice on this). I may test the console interface using Process. Calculator.cs using System; namespace Ean13...

 
@Mast monking!
 
possible answer invalidation by Sam Onela on question by Arnav Borborah: codereview.stackexchange.com/posts/188915/revisions
 
@Duga No code appears to have changed...
@Mat'sMug Hiya, haven't seen you in a while.
 
4:13 PM
IKR! I've been flying low for quite a while
my mod dashboard is a disaster lol
 
Not a clue what it would look like, but I suppose it's filled with flags and other notifications?
 
no no, I mean my stats for the past week & month
quarter isn't too shiny either
 
Oh, those, haha.
So, what's wrong? Just busy? Or fed up with it?
 
not fed up, just busy. I don't even remember the last time I put up something for review
 
@Mat'sMug September '17, I checked.
 
4:16 PM
ouch
 
But hey, writing questions/answers isn't the only relevant stat when it's about activity.
 
edits are next to none, comments, deletions, closures....
 
This may be blunt, but do you still feel up for it?
 
I was considering stepping down last year already. I think the time has come. I feel like I'm just warming my seat and there are a bunch of folks here that are more active than I've been throughout the year, that would be a better fit for a moderator position IMO.
 
I'm sorry to hear that, although if I read this correctly you probably made the right decision.
Being a moderator is a hard job.
 
4:24 PM
not really.. it's just.. priorities.
 
0
Q: Hangman game in Ruby

JMacI'm just a few months in learning to code and never had my code reviewed. Is this class structure ok? Should I split it differently? How is the code overall? require "json" class Hangman def initialize @secret_word = select_word @display_content = "_" * @secret_word.length @failed...

 
I've been letting CR slip down in my priorities, and at this point keeping that diamond feels like stealing it from someone else. Like you, for example.
or @Heslacher - hi!
 
I'm sure there are plenty of people more capable and willing to step up.
But I'll consider it.
Regardless of what you'll do, you can always find us here in The 2nd :-)
 
=)
 
@Mat'sMug nice to see you
 
4:30 PM
same!
 
4:41 PM
2
Q: Signed integer-to-ascii x86_64 assembler macro

BogdanSikachI am trying to implement an algorithm which converts a signed integer to its ASCII equivalent string with the corresponding sign as a first byte. So below is my attempt. I have tested it on several numbers and it worked correctly. But as a newbie I might have not noticed some logic mistakes or fl...

 
@CaptainObvious You did something crazy in an arcane language? Right up our alley, welcome to Code Review!
3
 
@CaptainObvious No brainfuck? :(
 
5:19 PM
@Nope fair point, it might be better content for the Code Review StackExchange. Keith that's a great one-liner, thanks. — Geesh_SO 10 secs ago
 
If somebody reviews that question this evening it may just hit HNQ.
But I haven't written x86_64 in 2 years so all I'll say is it looks quite decent for a beginner.
 
5:52 PM
1
Q: Counting primes in given interval

MooncraterSo, here is a Hackerearth question, regarding (more or less) counting the number of primes between a given pair of numbers. Then there were 3 major options available to me: Trial division method, and it's variants. Sieve of Eratosthenes Segmented sieve of Eratosthenes. As learned from thi...

 
6:04 PM
posted on March 15, 2018 by CommitStrip

 
If you have code that runs, and produces output, and you would like suggestions to improve it, post it, along with some sample input, over at Code Review. What you've posted here does not compile, but you haven't asked about compilation errors so I have to assume you haven't posted the complete code. — jwvh 28 secs ago
 
6:56 PM
StackOverflow is a site for debugging. This question is well written, but not for this site. I think with a few tweaks it could be on topic for our sister site software engineering or if you have some example code that demonstrates the decision you're trying to make, code review. — Goose 38 secs ago
 
Sad news in Moderator Land: Mug is putting down his mug. Thanks Mug for all your Mugs!
7
 
@SimonForsberg Scroll up.
 
@Mast Oh, he announced it here as well, didn't see that.
 
</lurks>
 
:-)
 
7:04 PM
And here I thought us other moderators were special -.-
 
for some values of "announced"
lol
 
IIRC this is the second time you're stepping down ...
the first time just didn't really stick or something.
Nov 29 '16 at 20:39, by Mat's Mug
I pulled a prank on my girlfriend. I said "I resigned". We're buying a house, just got the financing approved. Her face went white. Then I said "as a moderator on Code Review". She hit me. I guess I earned it. but yeah, ..I need to slow down SE activity and focus on my dayjob and my family.
yeap.. found it
 
lol
6
 
possible answer invalidation by 200_success on question by Mateus: codereview.stackexchange.com/posts/189637/revisions
 
community manager said timing wasn't ideal, with Winter Bash coming up (and IIRC, SO elections happening), so I had time to think it through
so I decided to keep the diamond and see what happens
been a while now, and I was looking at my mod stats when it hit me: it's time.
 
7:11 PM
this is a weird feeling ...
 
@Duga its okay- just putting it in a runnable snippet
 
a mixture of sadness, excitement, worry and ... happiness, I guess?
 
Relief?
 
4
Q: Putting down my mug

Mat's MugI joined CR in May 2013, but only started living here in September of that year. I remember very well then, the site had been in beta for almost 1000 days, and I kept thinking that was a shame, CR was such an awesome twist of the Stack Exchange format, it had to "graduate". Soon I met folks that...

 
7:23 PM
@Feeds Thank you, Captain Slowpoke.
 
@user463035818 Ah right sorry that slipped through. Thanks for the tip but trying to work with these two sorting algorithms. And sorry I was unaware of the codereview website. — Ajay 6 secs ago
 
@Mat'sMug Well you did a good job :) I'm happy that you've been a moderator here! :) I hope the best for you :)
3
 
@Marc-Andre thanks!
 
-1
Q: Drupal 8 Content Import via CSV Implementation

AaronI am implementing a way to import content into Drupal 8 via a csv. This csv contains various fields such as node ID, title, body, etc. It has been working great but I am very concerned about how long this takes to run. When there are quite a few rows, it starts taking minutes to complete. This w...

 
7:37 PM
is there a question? there is a code review site if you want your code reviewed — depperm 1 min ago
 
7:47 PM
Thanks for the mugs as well! @Mat'sMug
Figured I missed the message up here a bit
 
What is the question? If you want your code to be reviewed, consider using CodeReview.SE. — iled 29 secs ago
 
As an honor to your duck mention in your post!
 
@CaptainObvious somebody a bit trigger happy here...
this used to be not working, but OP fixed it
 
Wasn't me, but I've fallen for that in the past. Reading at first glance, seeing something something broken something, voting to close.
Especially when I've already VTC'd 12 questions that day...
Glad that never became a habit.
 
I have my duck at work and whenever my coworker answers his own question I throw it to him.
 
7:58 PM
40
Q: Duck, duck, goose!

AJFaradayRemember the kids game, 'Duck, Duck, Goose'? No? Me neither. The challenge Print the word 'duck' on individual lines an indeterminate amount of times. Print the word 'goose'. Your program ends. The rules Attempt to play the game in the fewest bytes. There must be at least one duck. There m...

@SimonForsberg Has he gotten the hint yet?
 
@SimonForsberg I have the good duck and one of my co-workers has the evil one. They may fight some day.
 
It looks like that one yeah
 
nice!
 
8:13 PM
-2
Q: Max Priority Queue Using Heap DS (IndexOutOfBoundsException)

iTennoXI'm trying to implement the algorithm from the sedgewick book but i cant figure where im going wrong. PLease highlight where the array out of bounds error might be. Many thanks you guys :) import java.util.ArrayList; public class MaxPQ<E extends Comparable<E>> { private ArrayList<E> pq; ...

 
8:26 PM
@Mast He claims that he can only think while he's talking.
@Marc-Andre There are evil ducks?
 
FWIW talking to the duck doesn't alleviate the problem of your coworker talking ...
 
9:04 PM
0
Q: Best practices concerning the gulpfile

Vera PerroneI have been trying to automate a lot of stuff lately. I am looking for feedback about my first gulpfile.js. From what I learned so far gulp is quite powerful but I'm still learning. I am looking for ways to improve my current file, are there better ways to do what I have so far? I am ...

 
9:35 PM
Show what you have and we'll tell you if it can be improved. Better yet: if you have working code, ask on Code Review as they specialize in improving working code, not fixing broken code as is done here. — usr2564301 51 secs ago
 
9:55 PM
-2
Q: PowerShell script, adds driver to driverstore, then adds the printer

xerxes2985Here is my PowerShell script. When running this it finds and imports the drivers into the driver store (top half of the script) - works fine locally $driversCollection = (Get-ChildItem -Path .\ -Filter "*.inf" ` -Recurse -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Fullname) fo...

-2
Q: Get the intersection of 2 object arrays based of id value

ThomasI am trying to reproduce an intersection of 2 arrays based on the same value of an id. I tried to test my example on Js Bin but this gives me an error. Cant figure out why: var category = [{"id":"123","Name":"Batman","var":"category"},{"id":"124","Name":"Superman","var":"category"},{"id":"126","...

0
Q: Concurrent hero vs monster program

Dejan IlicI have made a simple concurrent program. It represents a battle between a hero and a monster. I am beginner in concurrency so i just want to hear your opinion, what are bad and good sides of my code and how can i improve it? Interface Attack public interface Attack { public void attack(Object s...

 
10:29 PM
0
Q: K-Messed Array Sort python implementation

NinjaGI got this question during my interview with Pramp. K-Messed Array Sort Given an array of integers arr where each element is at most k places away from its sorted position, code an efficient function sortKMessedArray that sorts arr. For instance, for an input array of size 10 and k = 2, an eleme...

0
Q: Pairs with Specific Difference python

NinjaG Given an array arr of distinct integers and a nonnegative integer k, write a function findPairsWithGivenDifference that returns an array of all pairs [x,y] in arr, such that x - y = k. If no such pairs exist, return an empty array. In your solution, try to reduce the memory usage ...

 
10:41 PM
What is the question? If you just want your code to be reviewed, consider CodeReview.SE. — iled 16 secs ago
 
0
Q: I want to scrap the comment as well as rating from best buy website(ipad pro). divs is coming as zero

Preeshaenter code herefrom bs4 import BeautifulSoup enter code herefrom selenium import webdriver enter code here#import csv enter code heredef getReviews(page_url): enter code here reviews = [] enter code herei = 1 enter code here# chrome driver path enter code here chrome_path = r"C:/U...

 
11:03 PM
0
Q: operations with complex numbers in C++

Gitana#include <iostream> #include <fstream> #include <cmath> using namespace std; class Complex { private: double Rez, Imz, ro, fi; public: Complex() { Rez = 0.; Imz = 0.; ro = 0.; fi = 0.; } Complex(double x, double y) { Rez = x; Imz = y; ro = sqrt(p...

 
11:21 PM
0
Q: String Optimizations

SamString optimizations in C# can be a big deal. I've done a lot of improvements to the piece of code below. Does anyone know of any other optimizations that would make a difference? public static void Method2() { var sb = new StringBuilder(); List<int> sample = new List<int> { 1, 1, 1, 1,...

 
11:44 PM
This site is for problems if you have any. There are other sites that will help you with reviewing your design or code. Try codereview.stackexchange.com or dba.stackexchange.com. — clinomaniac just now
 
@Duga Phrancis beat me to it
 
This would be off-topic on Code Review as it is. If you include the complete data definition language query that creates the schema/tables/functions, then it should be fine. I don't think DBA would do a schema review either, they're more about database administration related problems. — Phrancis 48 secs ago
 
@SamOnela o/
 
would softwareengineering be a good suggestion?
 
Nope, don't think that would fly there either
 
11:48 PM
okay
 
Honestly there's not really a good place on the network to get a database review, that's more something IMO that should be done internally at a company, for instance, with people who understand the context and use cases
They're OK here as long as the code is included
 
0
Q: Encapsulation of putpixel is terribly slow in JavaFx

TheTask1337I am trying to write a simple rendering engine in JavaFx and I manage encapsulate putpixel in the way that I pass x,y coordinates and color and it draws pixel of that color to the screen. I also wrote drawLine that draws line between x1,y1 and x2,y2. Today I wrote a function drawRectangle which u...

0
Q: The script is not assigning points to the attribute. Python 3

Ender KidI'm trying to create a text-based adventure game and all is going well until I encountered a problem with assigning points to attributes. I've been using this website to help with the process but realized that it might be in Python 2. Here's all that I've done so far code: #Date started: 3/13/2...

 

« first day (1776 days earlier)      last day (2244 days later) »