« first day (2463 days earlier)      last day (1853 days later) » 

00:00
RELOAD! There are 6397 unanswered questions (90.0611% answered)
00:15
1
Q: Simple HTML5 insciption form

machetazoI'm creating a simple registration form for a Linux installation party I'm organizing. Although I'm a decent programmer, I almost never create html files. I wanted to know if this form is safe for users and if it will work on most devices. Also, am I follow all the good practices? Is this pure h...

-1
Q: Creating an array with malloc and using it as a pointer in various functions?

Marina S.So I've been making a program that creates an array that gets filled with random numbers between 2 limits (the user input is the array size and both limits for the random numbers). The user is then asked for a number and the array is scanned for said number. Finally both the frequency of the sear...

00:38
Your title should be descriptive of your question, not biographical. Assuming this code is working, it's probably more on topic at Code Review (although you should check what's on topic before posting). — John 24 secs ago
If your code is working, consider posting to Code Review. — Thomas Matthews 1 min ago
01:04
Welcome to StackOverflow! I've got to say, I'm not sure if you'll be able to get an answer for this here. StackOverflow is best suited for Q&A style questions where there can be a correct answer to a question, and I think what you might be looking for is opinions and discussion around the topic. You might want to check out Code Review SE or try asking on a platform which encourages discussion, such as a forum or Reddit perhaps. Be sure to check out the Help Center for more on how to utilize StackOverflow! — cubrr 17 secs ago
01:36
0
Q: How to increase scalability the method that output each file while switching multiple many conditions?

stealegiI have a common style (common.scss) and a text direction (RTL, LTR) option file (option-document-direction-rtl.scss, option-document-direction-ltr.scss). And by switching the reading of these files, the css file with RTL / LTR changed is output by method like gulp. _common.scss body { max-wid...

01:57
Bottom line is, code works I just want to see if it can be improved - Code Review ExchangeFabio 22 secs ago
02:17
0
Q: Can this async method be improved or simplified

RishoI was tasked to write process that initially seemed like a straight forward thing. "Fetch data from database, create a cache object, and assign this data to it. Use existing class to model this after." That's it in a nutshell. The 'existing' class did not do any caching, just an async call across...

02:57
0
Q: React Hooks - Did I write this correctly?

AttemptedMasteryI am brand new to writing hooks and I am having a little trouble getting my head wrapped around it. Initially, I wanted to write this with one event listener that passed the event and a separate param to distinguish itself from the other incoming arguments. With hooks, I was confused as to how ...

03:18
0
Q: New to Coding and Shiny

Noe VidalesI am trying to create a shiny app for a class project. My idea is to have users input through checkboxes and then I used this info to filter my data and then perform a cluster analysis through kmeans and plot the results. I keep getting the following error: Error in !is.null(value) && value : i...

 
1 hour later…
04:20
0
Q: In javascript, if a variable is null then how show another variable?

Bedanta Kakatiif(isLogin()) { $(".print_username").html( t("Hello") + ", " + user_firstname ); } else { $(".home-user-lateral").hide(); } Here, if user_firstname is null, then I want to print the value of user_firstname_social

04:53
Monking
 
1 hour later…
06:22
0
Q: "Reflecting" addition

CactusI'm implementing the following function for signed integer numbers: given endpoints of a closed interval lo and hi, and inputs x (in [lo..hi]) and dx, I'd like to compute the "reflected sum": if x + dx is still in [lo..hi] then that's it; otherwise the underhanging or overhanging portion is "fol...

I feel this question is more suitable for https://codereview.stackexchange.com/anuragal 17 secs ago
06:42
0
Q: Generic Binary Search in C#

mxplusbI am trying to master generics, so I figured a good way to try and test my skills would be through implementing it in a binary search. How can I improve on this implementation to cover all of the C# generic types? using System; namespace Algorithms.Search { public static class BinarySearch ...

06:53
@anuragal I asked the same question there.. Do share any info you can... Here's the link: codereview.stackexchange.com/questions/236461/…Muhammad Waqas Kayani 39 secs ago
0
Q: Use project config variables across different Python scripts

Muhammad Waqas KayaniI am working on a project with multiple directories, each having a number of python scripts. And it involves use of certain key parameters I pass using a yaml config file. Portion of the config file is: data_reader_config: negative_label_overlap_limit: 1 negative_label_overlap_lower...

 
4 hours later…
11:26
-1
Q: Multiplying datatypes by -1 in Python

VihaanWhy does multiplying a list/tuple etc by -1 give an empty list/tuple etc and not return an error? t=(1,2,3,4,5,6,7) print(t*-1) #returns "()" Similarily for lists: l=['a','b','c',1,2] print(l*-1) #returns "[]" Thanks in advance.

12:20
possible answer invalidation by George Austin Bradley on question by George Austin Bradley: codereview.stackexchange.com/posts/236197/revisions
13:16
0
Q: "Lacks concrete context”, et al - drivng in the wrong direction

Oliver SchönrockOver the last 2 months I have seen a significant proportion of questions closed, or marooned/abandoned by the threat of being closed. I understand the official figures are in region of 30-40%. The most common reason is: Lacks concrete context Code doesn't work - when it does, but there are cha...

 
1 hour later…
14:20
You might get good answers on the CodeReview SE too, your question would fit since your code works but you're looking to improve it — Aaron 8 secs ago
14:49
0
Q: Pythonic way to cast a dictionary into a pd.DataFrame with two columns?

QaswedI have a dictionary where for each key, a single value is stored. Say import pandas as pd dd = {'Alice': 40, 'Bob': 50, 'Charlie': 35} Now, I want to cast this dictionary to a pd.Dataframe with two columns. The first column contains the keys of the dictionary, the second column the...

0
Q: GO - Exported function that just call unexported function

NergelI'm a begginer gopher and i don't understand the benefit (if there is one) of an exported function that just call an unexported function and return the result. code from https://github.com/dominikh/go-js-dom/blob/master/dom.go#L1506 func WrapDocument(o *js.Object) Document { return wrapDocu...

15:09
0
Q: Function not returing specified precision for a double value?

MohitBelow is the code for a function returing a double value as string whose precision is 15(i.e. no. of digit after decimal should be 15) Click her to see the execution on ide #include <bits/stdc++.h> using namespace std; string doit(){ cout<<setprecision(15)<<fixed; double val = 4444/2...

15:27
Welcome to StackOverflow. If you have working code and you want a better way, consider checking out codereview.stackexchange.com too! — kojiro 45 secs ago
 
1 hour later…
16:31
-1
Q: How to find out second largest difference in java

Avyaya HI am trying to execute second largest difference between array elements using java but I am unable to acheive the output Could someone help me out to find the second largest difference between array elements in java class SecondDiffrence { int secDiff(int arr[], int arr_size) { int...

16:43
Monking
17:00
Monking.
:o hey @rolfl
So, it seems actively avoiding meta.se works so long as you don't have real-life people who ask "Can you beleieve what they did to the SE CM's?". Then I have to look, and OMG.
17:29
posted on January 31, 2020 by CommitStrip

17:52
-1
Q: Please rate my code. My program takes the variable a and, depending on the entered value, it searches for the area of ​a particular figure

FeraunMy program looks for the area of ​​the figures, depending on the value of the variable а. A = 1 area - triangle, A = 2 area - triangle2, A = 3 area - square, A = 4 area - rhombus I want to get constructive criticism about the structure of the code and what can be redone. The program is written in...

@rolfl Hows the whole in the water that you throw money into? Just think about the good things.
18:24
@pacmaninbw Sitting on "the hard" waiting out the winter, surrounded by snow and ice.
So, right now, it's not a hole in the water, but a cavern in the snow for frozen assets.
4
18:53
-1
Q: batch format list of cells gspread

Akshansh ShrivastavaI am developing an automation tool, where I am facing issue with formating cell's background using gspread. I have created a spreadsheet with 1 worksheet "wks". It has 1000 rows. with the help of gspread I am finding all the cell with contain the singular number "3" and getting a list of cells co...

19:51
@SimonForsberg Interesting peaks.
@rolfl It used to be a dumpster fire. Now the whole city is on fire.
CR has gotten more unfriendly as well lately. A couple of very vocal users being very aggressive. I'm at the point where I'm not sure whether I still care.
20:14
0
Q: Longest Word in Dictionary that is a subsequence of a given String. JavaScript

Garretthttps://techdevguide.withgoogle.com/paths/foundational/find-longest-word-in-dictionary-that-subsequence-of-given-string/#! https://jsfiddle.net/dhtmlkitchen/fymuc3ve/62/ const sampleString = "infatuated"; const dictionary = Object.freeze([ "fate", "effete" ]);

20:26
 
1 hour later…
21:56
0
Q: knockout js refresh observable array from ajax

Seth RenoThe following code refreshes an observable array of Run objects by calling an api method every 5 seconds. This code is working, but it seems like there's probably a utility method I'm missing that would handle merging the array from the ajax response with the existing observable array. Any sugges...

 
2 hours later…
23:35
@rolfl Good ice fishing though, I bet.

« first day (2463 days earlier)      last day (1853 days later) »