« first day (2007 days earlier)      last day (2308 days later) » 

00:00
RELOAD! There are 5768 unanswered questions (89.7376% answered)
0
Q: Very basic xhtml site

gjfgj12This is a VERY basic website that i made, ive been learning for about three weeks and this is what i came up with, its obviously not perfect but i want to know your opinions on the code, i wanted it to be nice and readable XHTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...

@hoffmale yes, but that's not what it says...
00:52
Welcome to StackOverflow! We are not a code reviewing service. If you don't have a problem you can ask your question over here → codereview.stackexchange.comJBis 23 secs ago
01:10
possible answer invalidation by Chemistpp on question by Chemistpp: codereview.stackexchange.com/posts/206447/revisions
01:25
possible answer invalidation by Chemistpp on question by Chemistpp: codereview.stackexchange.com/posts/206447/revisions
01:41
@MartinR Same issue it seems
 
3 hours later…
04:51
0
Q: Enter numbers to get sentinels

user183603Write a program in MIPS Assembly Language that asks the user what he wants the sentinel to be enter numbers until the sentinel is entered.--do not save the entered numbers output the sum of all the positive numbers the sum of all the negative numbers how many positive numbers were entered ho...

 
1 hour later…
05:56
This question belongs here > codereview.stackexchange.comVineeth Sai 18 secs ago
06:20
This question most likely belongs on codereview.stackexchange.comTorxed 5 secs ago
06:34
0
Q: Easier way to copy file into another folder using shutil

BARNOWLSo the following code exports a csv file in the parsed folder; I need it to do the same thing in the downloads folder. So, what i did is just copied the same code, and changed the destination folder name. I know there is a way i can do this with shutil, but im unsure how. main.py if mylist is n...

 
1 hour later…
07:40
In any case, this question belongs (or is better suited) on code review. — Lasse Vågsæther Karlsen 45 secs ago
0
Q: Easier way to replace multiple values in list of lists (numpy array) in Python

HtnamusI'm currently working on creating a mask for an image. I have initialized a two-dimensional numpy zeros array. I now want to replace the values of the mask corresponding to pixels following some conditions such as x1< x < x2 and y1 < y < y2 (where x and y are the coordinates of the pixels) to 1. ...

08:30
@HAL9000 I'm very surprised about your comment. I refrain from editing other people's posts (apart from simple typo/grammar issues), but have provided my own complete answer (with a link to the code posted on code review) already 18 months ago. — Walter 12 secs ago
 
1 hour later…
09:48
1. We need to see code. 2. This question would probably be better on Code Review. — Ken Y-N 23 secs ago
"How can I optimize this code?" Well, you can start by showing your code, however it sounds like this question is better suited for Code reviewJohan 31 secs ago
For improvement of already working code better ask at SE Code Review. — πάντα ῥεῖ 11 secs ago
0
Q: Checking if two time intervals overlap

Eugene SI have two time intervals i1 and i2, each defined by two values, begin and end (epoch time). I need to write a function returning a boolean value indicating whether the intervals overlap. According to my understanding, an overlap can occur in four following cases: while the last case (where ...

10:32
0
Q: Translate a day in year to month and day

dino2018Take an integer representing a day of the year and translate it to a string consisting of the month followed by day of the month. For example, Day 32 would be February 1. This is what I came up with. I'm sure that there's something more streamlined than else if statements. vector<string>DayOfYea...

possible answer invalidation by JohnLBevan on question by JohnLBevan: codereview.stackexchange.com/posts/206645/revisions
10:47
0
Q: Python text based game, would like a second opinion on how I've written it

MitchI've been teaching myself python for a couple of months now and have just finished my first solo project, I would like someone to check over the code and let me know if I've made any glaring errors or done things in a hacky way. The code is working and doesn't have any errors so I'm just looking ...

@Duga Has been rolled back the hard way.
@Duga Oh, great...
11:02
@Mast - I do know where to find you.
11:17
0
Q: Unity Generic Pool System

victor dabijaSo i'm using this for pooling my gameObjects in game. Every other script can ask for a pooled GameObject using GetElementFromPool and normaly i'm using return to pool when GameObject is disabled. My doubts: 1: I'm taking the last gameObject from the List<GameObject> since the list have an array...

@rolfl Thanks for stepping in.
np.
0
Q: Angular: Show feedback to users using Service and Directives

Rex OverflowI am working on a structural directive FeedbackDirective that automatically adds Alert component to any given container. I have also created a FeedbackService which exposes a RxJS Subject commands. The FeedbackDirective subscribes to it. The idea is to use the FeedbackService and FeedbackDirectiv...

11:45
This question belongs on (codereview.stackexchange.com). This site is for code that doesn't work. :-) — Daniel T. 26 secs ago
 
1 hour later…
12:54
@rolfl Oh man I was surprised to see the blue name at first but then I remembered I voted for you lol
2
If code works, it is better to ask on CodeReview. — zett42 40 secs ago
I'm voting to close this question as off-topic because it should be asked on codereview.stackexchange.comzett42 58 secs ago
@this means someone should have failed code review — TheGeneral 34 secs ago
possible answer invalidation by Eugene S on question by Eugene S: codereview.stackexchange.com/posts/206710/revisions
@Vogel612 It's a little more complicated than that.
bool is not the same as bool?.
The ! operator doesn't work on a bool?.
So that is uncompilable.
You can't compare a bool to null. Only a bool?.
13:17
0
Q: How avoid code replication in the following Matrix calculation on Cuda example? C++ / Cuda

Cr0wyIn the MatrixDevice class i want to call the kernel functions in kerne.cu. I reduce the MatrixDevice class to only showing this concept how i do it actually. From MatricDevice i have some functionens to add MatrixDevice with other MatrixDevice or number, this should work for different types, in...

13:32
-1
Q: Simple event mechanism

PeepeIam working on a simple event mechanism for c++. Since Iam not very experienced I would like to share my code in order to get some thoughts. I also dont like the BIND_X macros. Ideas how to simplify the binding process are welcome as well any comments regarding problems, bad style... Thank you ...

13:47
0
Q: Service for generating faked objects

TomSelleckI'm using the Bogus library to mock up some data for testing. This is my main method demonstrating how the faking service should be used: class Program { static void Main(string[] args) { IFakerService r = new FakerService(); var dogs = r.Generate<Dog>(10); var ...

14:02
Seems like a good fit for codereview.stackexchange.com — HimBromBeere 26 secs ago
14:17
0
Q: Contest Solution: Packet Sniffer

T145 The Problem Sniffed any good packets lately, dude? Hopefully you haven’t done this illegally, but rest assured that there are some who have. If you surf the Internet, you have probably visited companies’ net sites where they sell their products online: you give them your credit card n...

Greetings, Programs.
@Duga That's on request.
14:47
0
Q: Getting a JObject by a property value

SipoI am building a contact management system. Each contact can relate to the business in one of three ways: client, service provider, and third party. I have a JSON file containing the relation types and their importance to the business (so I could priorities messages, for example): { "Relati...

Yes its giving desired output. Thanks @kcorlidy for helping. Really appreciate your code review — Varun 28 secs ago
15:28
@AdilB Thank you for suggesting "How to conduct a full code review on GitHub". I am checking it out now! — Jeff Tanner 51 secs ago
0
Q: Simpler way to copy file into another folder using shutil

BARNOWLSo the following code exports a csv file in the parsed folder; I need it to do the same thing in the downloads destination folder. I just copied the same code, and changed the destination folder name. I know there is a way i can do this with shutil, but im unsure how. main.py if mylist is not N...

-1
Q: Phone directory using java

BoluWrite a java program which makes the console based telephone directory, the program must use the array to amintain the 'n' number of data. The following task must include switch cases: craeting an array to save contact details also copying the data in the file to retrieve any data from the phon...

15:44
Code Review is a better place to ask for improvements to code. You also seem to be referencing cells a fair amount and stepping through rows where column A isn't blank - may be faster to filter the sheet by column A and then copy the visible cells into an array so you only read from the sheet once and put the values back once. — Darren Bartrup-Cook 14 secs ago
0
Q: Python filter opencv contours

snowflakeI am extracting contours of binary images via the openCV cv2.findContours() function. Now I want to filter them by different parameters, e.g. area, width, height...I would like to create a flexible function to filter the contours. I struggle with two problems, first it ends up with using many if ...

16:19
Monking
Impossible to tell without seeing your code. Also, if your code works but is just slow, consider putting it up on Code Review. — Mathieu Guindon 17 secs ago
16:41
Monking
Don't exactly understand what you are trying to achieve here but if you are trying to find common elements across arrays this link might be able to get you started : hereAlicia 12 secs ago
-1
Q: why doesn't the search button work in MVC

TalukderI am stuck in this problem since hour.when i click the Search Button it doesn't respond,it just refreshes the page. [HttpGet] public ActionResult Index() { return View(db.Students.ToList()); } public ActionResult Index(string option, string search) { i...

17:01
This should be posted on codereviewtypetetris 46 secs ago
1
Q: Better way to set number of threads used by NumPy

Andrey PortnoyBackground When NumPy is linked against multithreaded implementations of BLAS (like MKL or OpenBLAS), the computationally intensive parts of a program run on multiple cores (sometimes all cores) automatically. This is bad when: you are sharing resources you know of a better way to paralleliz...

17:38
Please check "Which site?" for general issues and "Code Review or not?". Without a demonstrable problem, this doesn't really fit Stack Overflow. Your request for a code review is specifically off-topic for SO. — Prune 52 secs ago
18:05
You may want to consider: codereview.stackexchange.comMWB 37 secs ago
This SO question and answers will help get you started. However, if this is functional code, it's better at Code Review which is designed for these types of questions as opposed to here at Stack Overflow which is designed for fixing broken code. — FreeMan 57 secs ago
0
Q: Javascript filter not filtering by selection only

DanielSSo I got this code and everytime I filter by options it goes site.com/brands/brand+++red/ (example of trying to filter by brand + varietal). Is there a way to make it filter by the marked options only removing the extras "+'s"? . Thanks <div> <h4> TYPE </h4> ...

18:29
@LakshayGarg , thanks for your kind words and reference to Code Review, I haven't used them in the past, but will in the future. — elzurdo 40 secs ago
0
Q: Python segment intersection program based on Kattis challenge

Catalin PopaIn an attempt of learning Python by solving problems from Kattis website, I've stumbled upon a problem asking to count all unique intersections of up to 1000 segments, given their (x, y) coordinates. Here is the complete description: Input The first line in the input contains an integer...

0
Q: Mutually Exclusive Events (Probability Theory)

Alberto CapitaniData.Set and Data.List have not a function for intersectionS. As I was interested in mutually exclusive events, I wrote the following function. Is it correct? Is it efficient? mutuallyExclusiveEvents :: (Foldable t, Ord a) => t (S.Set a) -> Bool mutuallyExclusiveEvents xss = isJust $ f...

18:47
0
Q: Project Euler #8 - Largest product in a series, seems correct but doesn't work

Chance"The four adjacent digits in the 1000-digit number that have the greatest product are 9 × 9 × 8 × 9 = 5832. Find the thirteen adjacent digits in the 1000-digit number that have the greatest product. What is the value of this product?" The function works for four digits, it gets 5832. I've been ...

19:02
0
Q: Reading Min and Max From Text File

Tabitha Anne DaddisI am trying to write a program that will read the highest and lowest voltage along with its associated amp and time. I am able to find the max, but I am getting all zeros for the minimum value. I need help. Please and thank you. Sample of txt file: Time Volt Ampere 0.0001 9.77667 0.14740...

0
Q: Small stack based language in Rust

DairI made a small stack-oriented language in Rust. It tries to run anything it is given. To elaborate: Division by zero gives zero. If there is nothing on the stack and a request is made that involves popping off the stack, instead of just throwing an error, it acts as if 0.0 is always available on ...

19:14
@SimonForsberg I may have done something bad with Neo4j...:)
Alright, I should say "evil"
Please check "Which site?" for general issues and "Code Review or not?". — Prune just now
19:48
0
Q: Boilerplate free registry/factory class for C++

HenrikSI've made registry/factory class for C++ so I can instantiate different classes at runtime based on some kind of key. My design is partially based on this blog post: http://www.nirfriedman.com/2018/04/29/unforgettable-factory/ . So you might read it first to get a broad overview. In short: Instea...

0
Q: Self Updtating QuadTree

Kristóf BácskaiI'm making a simple 2D game engine, and to make collision detection more effective I tried making a QuadTree class. I don't know if this will work, but that's not that important. You don't have to waste Your time testing it, but I would like to know if this is an efficient design in terms of logi...

20:03
0
Q: Is there a way to speed up the following web scraping code?

WizardCovfefeI was wondering if the following code could be altered to speed up the scraping process. I know xrp has many transactions, but it takes an hour to go through half a day of transactions (at the busiest times, 2016-2018). My thinking is that the Try, Except Statements are slowing it down but I am n...

20:35
This would probably be a better question for the Code Review Stack ExchangeCubemaster 38 secs ago
20:48
0
Q: comparing between binary search method and linear search

Asmaa HadirI am a python beginner and I wrote a program that compares between the binary search method for finding a number and the linear one. However, when I run it It does not function properly and would stop when I enter an input and print nothing. Please, may someone explain what is wrong with it? THA...

0
Q: An exception-less wrapper for std::stoi

Sparklerstd::stoi may throw exceptions so it needs to be surrounded by try/catch. In applications where std::stoi may be used frequently, it could be useful to have a wrapper. Is this good practice? int _stoi(std::string str, int* p_value) { // wrapping std::stoi because it may throw an exception ...

21:00
possible answer invalidation by dino2018 on question by dino2018: codereview.stackexchange.com/posts/206712/revisions
21:18
I'm voting to close this question as off-topic because more suitable for codereview.stackexchange.comzx8754 17 secs ago
0
Q: Reinforcement Learning for Flappy Bird in JavaScript

nellexThis happens to be my first post here in the code-review forum so please feel free to correct me if I go wrong somewhere (or with the tags). To give a bit of a background, I'm organizing a small session about reinforcement-learning, specifically Q-learning, to a group of high school students in ...

21:33
0
Q: beginning to work with derby.

DCRI have the following code that seems to work. I'm just wondering if I'm doing everything right or if there are some obvious improvements that should be made. here's the code: import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement;...

 
1 hour later…
22:53
This probably belongs on codereview.stackexchange.comNick 32 secs ago
23:49
0
Q: React/TS View Slider

joshuaaronLooking for some constructive feedback and ideas for a small view slider written in React/Typescript that I've worked on for a small project. It's leveraging some animations from an page transition article by codrops. Code can be found here: https://codesandbox.io/s/pkvwpoqvvx Main Note: I'm c...


« first day (2007 days earlier)      last day (2308 days later) »