« first day (2519 days earlier)      last day (1500 days later) » 

12:00 AM
RELOAD! There are 6440 unanswered questions (90.1365% answered)
 
0
Q: How to add user input using two classes?

Dog Fistpackage bmi; import java. util. Scanner; public class BMI { private String name; private int age; private double weight; private double height; public static final double kilograms_per_pound = 0.45359237; public static final double meters_per_inch = 0.0254; public BMI(String name, in...

 
 
1 hour later…
1:26 AM
0
Q: BFF Word Finder

LinnyInspired by this question on Puzzling.StackExchange, I've decided to write a small python script that determines if a word is a BFF Word. Below are the parameters, solved by Puzzling user Stiv, also discussed in the program module docstring: If you remove two letters, you are left with an ana...

 
1:45 AM
0
Q: Could somebody look through my python videogame code?

Mario the technicianI am making a video game in my coding class. its nothing glamours but its a fun scp foundation based game (I DO NOT INTEND TO PUBLISH IT) the end of the game is a random.randit scenario, however it keeps looping back to the start. also i do not know how to make the PLAY AGAIN feature appear after...

 
2:23 AM
0
Q: Function & redundent help (New to C++)

DanielAssignment for C++ intro class, I understand the programing concepts completely but I am struggling with the actual code creation part, the task is create a menu, apparently that's a popular assignment for new programmers, I got the first part but got confused when trying to figure out the next...

 
2:35 AM
Have you checked my reply? Are you able to submit a code review? — Cece Dong - MSFT 29 secs ago
 
 
2 hours later…
4:41 AM
Ben Popper on March 27, 2020
We are stuck inside and raring to go. This week, you get double the usual Stack Overflow podcast!
 
5:21 AM
Monking
 
5:33 AM
0
Q: LeetCode: Divide Array in Sets of K Consecutive Numbers C#

Giladhttps://leetcode.com/problems/divide-array-in-sets-of-k-consecutive-numbers/ Given an array of integers nums and a positive integer k, find whether it's possible to divide this array into sets of k consecutive numbers Return True if its possible otherwise return False. Example 1: Input:...

 
5:52 AM
0
Q: A custom error to be thrown when numeric values are out of bounds

habitWhy did I make this? I'm building an interactive data structure visualization, and when certain errors are thrown from certain parts of the code, they are displayed on screen for the user. I have not included that displaying logic. The if checks seem somewhat smelly to me, but they might be simp...

0
Q: Ordinal Numbers as text

Michael WalkerI am new to Python and I have my code below that after the user enters a number; they should return the value of the number but in text form. However, the numbers after first, second, and third, they output as 5th, 6th, 7th, etc., up to 12th. I cannot understand how to make the output show the wo...

0
Q: Display details of a person based on first name

RaviImagine I have 10 person in my contact list and I have given all the details of those person in JAVA. But all the details are based on individual person's first name. If I type the first name of person A, then I will get all the details of person A. Then when I press enter, the program should ask...

 
What is the undefined error? Try to be more specific, and if you want complete coding solutions try codereview.stackexchange.com. — ajsp 1 min ago
 
6:11 AM
0
Q: Send Data from DynamoDB to Lambda (C#) and to Azure Queue

UnbreakableI am a beginner and trying to send data from AWS DynamoDB to Azure Queues. Note that this code will be invoked 10,000 and alot more. Can you guys review it once. using System; using System.IO; using System.Text; using Newtonsoft.Json; using Amazon.Lambda.Core; using Amazon.Lambda.DynamoDBEvent...

0
Q: getPixelColor in C++ on Linux

LinuxSecurityFreakgetPixelColor in C++ on Linux For a long period of time I worked on this code, mostly trying to understand it, which I still fail. That is the main reason for needed review. Second reason is simply that I would like to optimize it in any way you can find. If possible from your side, could you ...

 
7:02 AM
Humans never cease to amaze.
> I am asking this question as a result of my recent interactions with the moderators of the Medical Science Stack Exchange site, one of whom invited me to ask SE corporate to force them to make changes to their site's policies.
The 'invitation':
@nick012000 LOL, okay, we're done here. You go ahead and get SE corporate to change things. — Carey Gregory ♦ 55 mins ago
 
7:24 AM
Since this has been asked and answered here on Code Review, the question can be removed from Stack Overflow. — Mast 5 secs ago
 
0
Q: Linear Equation in Two Variables Solver using Python

Rajdeep_SindhuI made this simple program that can solve every set of linear equations in two variables. You just need to enter two linear equations of the form ax+by=c (without any unnecessary spaces) where 'a' is a positive integer (i.e. x should not have a negative coefficient) and b and c are just integers...

 
8:23 AM
0
Q: Publisher Subscriber Pattern Template

chewbapoclypseThis is the first time that I have tried programming in such a general way using c++. I have tackled this pattern before in other languages such as golang, but this is my first attempt with cpp. Subscriber template // class template for a subscriber that wishes to be informed of the // occurren...

0
Q: A simple Decryption Program using Python

Rajdeep_SindhuThis is a program that can decrypt the codes that have been encrypted using the algorithm that my previously posed encryption program follows, you just need to enter the encrypted text from that propgram. I got a lot of suggestions from people on the encryption post, I have tried to make this pr...

0
Q: How can i implement isolation forest algorithm?

AnghilleI am new to machine learning, and i discovered some days ago the isolation forest algorithm, which would help me deal with my outliers. Unfortunatly, i haven't been able to quite get how the algorithm needs to be setup and processed. I have a dataframe with 4 columns, each representing a measur...

 
9:00 AM
0
Q: Is it ok to break long html fields down into multiple lines?

BlackI often see very long code lines like this: <input type="email" name="email" autocomplete="email" id="email_address" value="<?= $block->escapeHtmlAttr($block->getFormData()->getEmail()) ?>" title="<?= $block->escapeHtmlAttr(__('Email')) ?>" class="input-text" data-mage-init='{"mage/trim-input":{...

 
 
2 hours later…
10:39 AM
If the code is working this is better asked in codereview.stackexchange.com — Dani Mesejo 54 secs ago
 
11:01 AM
This really belongs on Code Review, but yeah, there's nothing wrong with that. — AKX 12 secs ago
 
11:34 AM
This might be better suited for codereview.stackexchange.comFlyingTeller 43 secs ago
Make sure to include the problem you're solving if you ask the question on codereview — byxor 53 secs ago
 
11:50 AM
-1
Q: Pyhon compare arrays rowwise where order of values is preserved

Andigiven are two arrays with different amount of rows but same amount of columns arr1 array([[36, 16, 32], [36, 7, 24], [84, 2, 45], [98, 7, 56]]) arr2 array([[36, 16, 32], [36, 7, 24], [49, 16, 18], [56, 13, 12], [12, 56, 98]]) In the end ...

 
@CaptainObvious @Mast regarding this answer, isn't there any HMTL formatter ? like clang-format
 
12:22 PM
Monking
 
@ankii Probably, I haven't written HTML in at least a year.
 
@ankii There's definitely a couple. But with all hinters, a beatifier is a bit hit and miss.
 
0
Q: more tries less time?

iamauserThis is code for finding if inequality abc < 2( area of triangle) where a,b,c are the sides of any triangle. The given below code is working with the intended result but is taking a lot of time for processing(when max tries is increased).Is there a way to improve the below without reduce max_t...

 
@Peilonrayz Re Github unlimited repos, but size is limited to 500 MB right ?
otherwise use it as backup
(saw that in starred messages )
 
12:38 PM
FWIW, you can link to any post by getting the link https://chat.stackexchange.com/transcript/message/53916102#53916102 and then taking that duplicated number and starting a message with :53916102.
@ankii IDK, I've got most of my stuff public for free TravisCI, only have a couple of private ones
 
@Peilonrayz I know, that way I can ping myself too
but won't it complain about using transcript ?
idk
 
Complain about using transcript?
 
@Peilonrayz a
oh nvm
when you use "load to last message", and it's too far back ,it says use transcript
 
Yeah, the transcript is basically just chat, but you're not in the chat.
 
1:03 PM
If this is a Code Review question and you need to wait a little while to post another question there, why not wait that time and then post it there? — halfer 36 secs ago
 
0
Q: Block Bootstrap Estimation using Java

ClarinetistThe data use data in a file called test.txt, which is available at https://drive.google.com/file/d/1g0ffvH5oP5C4Cp6ciEp_L1Rst6WeTuYG/view?usp=sharing. There are some odd formatting things about it which I cannot replicate by putting on this website, hence I'm hosting it on my Google Drive. It is ...

 
1:31 PM
Please don't roll your own password hashes. You really should use PHP's built-in functions to handle password security. Make sure you don't escape passwords or use any other cleansing mechanism on them before hashing. Doing so changes the password and causes unnecessary additional coding. — Jay Blanchard 41 secs ago
 
1:43 PM
0
Q: Multiplying matrices gives extra zero columns that don't belong

Pel de PindaI have the following code. Everything seems to be working as it should, but when I multiply a 3x3 matrix and a 3x1 matrix, it outputs a 3x3 matrix instead of a 3x1 matrix. The first column is the result I am actually after. What is going wrong? import math import numpy as np import matplotlib.py...

 
If the code you have works, and you'd like a review of all aspects of the code, and your question meets their criteria, you may be able to ask this question on Code Review. — Heretic Monkey 16 secs ago
Are you using a web server? It sounds like You really shouldn't use your own salts on password hashes and you really should use PHP's built-in functions to handle password security. Make sure you don't escape passwords or use any other cleansing mechanism on them before hashing. Doing so changes the password and causes unnecessary additional coding. — Jay Blanchard 26 secs ago
 
2:02 PM
0
Q: Using const values in factory class to choose implementation

Jean-PierreI am creating a small program to parse the contents of Excel files. There are two types of Excel files, containing the same data, but with different templates. It is possible to tell them apart with 100% certainty by checking the contents of a specific cell, which I call the fingerprint. In o...

 
2:19 PM
oh my god who the hell though of this?
IRepository
 + putContentToFile(RepoReference, InputStream)
 + getDefinitions(GenericId)
why does anyone consider this a sensible interface?
 
0
Q: Showing form on btn click - preventDefault of submit btn, then remove listener

BagseyeI've built out a section on a page that contains multiple instances (why I'm using querySelectorAll()) of this Request Brochure form. They are using Campaign Monitor so much of the form code has been removed for this post. Operation On click of the 'Request Brochure' button preventDefault is a...

 
2:43 PM
@Vogel612 IRepository + RepoReference, wut?
 
that's the simplified version actually
I need to be able to pretend I am protecting the guilty here
 
Hah
What do you do these days?
 
Code reviews have their own place: codereview.stackexchange.comharold 26 secs ago
 
working on academic code for barely above minimum wage, mostly
 
@Vogel612 Still studying?
 
2:55 PM
yea, writing on my thesis right now
got an undeserved extension by at least five weeks due to the corona mess
 
Ah, thesis is for Master's?
 
bachelor's
 
Oh.. but I thought you were at university when I was studying too
 
yea, I took my time
 
I see
 
2:59 PM
I'm in my tenth semester now
 
Hmm did you frequent this place already before university then?
 
yeap
 
My memory is not that good anymore :D
I'm working full-time already for over three years now and finished university like half a year before that, and spent five years on my Bachelor's in total
 
well I put in my three years of full time work before starting my bachelor's :D
 
Interesting order :P
 
3:05 PM
yea, I did an apprenticeship instead of going to Uni
mostly because I missed the deadline for getting into Uni
 
Ah right I don't think we have those really here
 
Anyone here have a GTK theme or icon set they like? My old theme is pretty broken
 
I'm on plasma with the default theme soo ...
that'd be adwaita, but I don't really care about the theme in the first place
 
Nice it seems to have a dark theme
 
3:40 PM
Ben Popper on March 27, 2020
We have a new social account full of fun animations highlighting great questions and answers from across Stack Overflow and Exchange.
 
This is more of a question for code review. — Yonlif 26 secs ago
 
4:20 PM
This question might be a better fit for codereview.stackexchange.com. Stackoverflow is a QA site for specific coding questions and answers, so I'm not sure you'll get what you're looking for here. — Tim Lewis 21 secs ago
 
4:53 PM
0
Q: Refactoring a Laravel aplication layers

SteveMy Laravel project starts to grow up and I'm starting to dealing with fat Controllers and Models. Probably I'm for away from the SOLID principles path and my code is not DRY. I decided to refactor my layers logic to follow more SOLID and try to be more DRY. After some research over the internet ...

 
5:29 PM
posted on March 27, 2020 by CommitStrip

 
-1
Q: Unexpected behavior when using class method to set ivar value

timmanI have a RadioStation class, and a view controller in which I create a FM and AM station from this class. I have a simple UI, with labels for name, frequency and band and then corresponding labels to display these values. I have two buttons, one for FM and one for AM, so that when you press FM y...

 
6:09 PM
I mean this could be StackOverflow question but I think it fits more the CodeReview Page. Regardless please specify your question a bit more by e.g. adding your written code. — Cedced_Bro 35 secs ago
 
6:28 PM
for reviews of working (!) code there is codereview.stackexchange.com, while here asking to make correct code "nicer" is always borderline offtopic — idclev 463035818 39 secs ago
 
-1
Q: Initializing more than one object at once in required init method - is there a cleaner way?

timmanI have a RadioStation class, and a view controller where I create an FM and AM station based on this class. I created both of these station objects in the same init method. Was this the best way to do this? Or should I have created two separate init methods, one for each new object? RadioStati...

 
6:41 PM
As a further comment I too developed a C# library that was a form of Scripting.Dictionary on speed. I posted an early form of in in Code Review codereview.stackexchange.com/questions/233671/…freeflow 46 secs ago
 
7:06 PM
0
Q: Using generators on Observable class

BPLI've decided to implement a simple case of the Observer pattern. I've gone about this considering you can only register 1 single observer in the Observable, instead of allowing multiple ones. I would really like feedback about what'd be the proper way to return the listener in the run method wh...

 
7:44 PM
0
Q: Read large amount of XMLs and load into single csv

MarcelI am dealing with a large amount of XML files which I obtained from here https://clinicaltrials.gov/ct2/resources/download#DownloadAllData. The download yields around 300.000 XML files of similar structure which I eventually want to load into a single dataframe / csv. The code gives the result th...

 
8:21 PM
-1
Q: What's wrong with this design in C++?

HBatalhaSo I wrote this a while ago and yesterday I was going through it and trying to remember every line of code and how it works. Well, the program simulates a online bank account as well as an ATM. You register your account, you are able to withdraw, deposit, and transfer money. There is a limit to t...

 
8:59 PM
If the code works and is complete, it should really be on Code Review instead of here. This site is primarily for fixing broken code. — Carcigenicate 38 secs ago
 
9:48 PM
 
0
Q: I made a Guess the number game in Python

pablowolf96I just started programming a week ago. Online tutorials aren't my thing, so I decided to just start projects and learn what I need for the project. My first project is a guess the number game. The user is asked to guess a number between 0 and 20. If the user's guess is too high, he/she will be to...

 
10:04 PM
I'm voting to close this question as off-topic because it will be better answered on codereview.stackexchange.comO. Jones 31 secs ago
 
10:15 PM
0
Q: How can I better the elegancy of my code that uses axios?

yuvalI am trying to migrate from request to axios, since request has been deprecated. Suppose that the url 'https://www.example.com' receives a post request with formdata that contains login information, and also suppose that I need to maintain the current session across multiple requests(for that I n...

0
Q: Best way to replace Urls in .Net application-C#

GermanI have an application developed in ASP.NET Core C#, where according to a configuration it must replace certain urls of a text when an http request is made and the text must be returned as soon as possible in response, the text can change on each request. At this moment the code I have is workin...

 
10:33 PM
0
Q: PHP OOP Multiple Delete Mysql

LeandroFalasca 2I'm creating a small crud using PDO, but I had a little doubt about the vulnerability if it has any problem that could prevent it or something, because the intention is to use to delete either 1 line or several lines from the database. data, I am studying more deeply about PHP coding, if you can ...

0
Q: PHP/HTML Table and Modal Forms that display information

Zack EIts been a while since I have written PHP or HTML for a project, so I could use some thoughts on improving the code below. I wrote all of this going off of old knowledge, so I imagine its really sloppy and can be written a lot cleaner. All of the code below works and if you need to see any of t...

 

« first day (2519 days earlier)      last day (1500 days later) »