I'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...
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...
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). — John24 secs ago
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! — cubrr17 secs ago
I 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...
I 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...
I 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 ...
I 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...
if(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
I'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 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 ...
I 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...
Why 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.
Over 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...
I 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...
I'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...
Below 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...
I 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...
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.
My 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...
I 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...
@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.
The 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...