« first day (2917 days earlier)      last day (1397 days later) » 

00:01
RELOAD! There are 7531 unanswered questions (89.4708% answered)
 
2 hours later…
01:45
0
Q: Rehashing & Hashing With Quadratic probing In C

sayoI'm practicing some Data structure In C.I want to apply rehashing to quadratic probing. I was able to find the old factor and tell when the load data is above 0.5 but when it comes to creating the new table doubled in size I wasn't able to do it. I know it's not the best hash table but I'm still ...

02:32
0
Q: Group by lastName and variable firstName

L GradoI'm trying to solve a problem of how to group name objects. A name has firstName and lastName properties. Need to group the name objects that have identical lastnames and a similar firstName(aka Tom Smith and Thomas Smith should be grouped together). Case doesn't matter. The firstName equivalency...

03:20
0
Q: Check for folder structure and add file

DeanoI have a google apps script to create docs running off the back of form submissions and I'm struggling to get this one part down. I want to end up with a structure of 'Partner\Year\Month\Document' I have the following code which checks for the existance of 'Partner' and either adds the file to it...

03:59
Monking
 
1 hour later…
05:00
Does it work? Do you have a problem with the code you show? How do you use it? If it works and you just want a review, please post on the Code Review SE instead. Otherwise, please tell us the problem you have with it, show us a minimal reproducible example, and tell us what debugging you have made and what it told you. — Some programmer dude 51 secs ago
06:00
Monking
 
2 hours later…
07:42
Is it just me, or is there an increasing amount of close votes being cast without comment?
Unrelated: request to protect this question.
 
1 hour later…
08:52
Monking
09:51
@Mast Protected
10:09
As you have working code, this question would be more suited for Code Review. However, it is strange that you use a mapper when you're only interested in the value of the first array element. — trincot 58 secs ago
 
2 hours later…
12:06
possible answer invalidation by Mast on question by Beluga Sinister: codereview.stackexchange.com/posts/257167/revisions
@CaptainObvious ^ Simplified code. Not a fan, but probably not hypothetical enough to warrant closure even though it's riddled with non-existing callbacks.
 
2 hours later…
13:46
0
Q: Printing of status message during execution of the bash script

Hot JAMSAs a part of my bash routine I am printing some message in terminal regarding status of the workflow. The message in splited into two parts (part 1: begining of the task, part 2: status of its finishing) echo -n "Dataset is being processed ! "; execution of some AWK script; echo " Processing has ...

13:58
Just one more note: int T[] is the same as int* T. It should be int const* T instead, because you don't intend to modify the array. In general, once it works, submit your code for review at codereview.stackexchange.com, you will get valuable feedback there. — Ulrich Eckhardt 37 secs ago
14:11
Greetings, Programs.
Ryan Donovan on April 29, 2021
We’re honored to be nominated for a Webby Award again.
@Mast "riddled with non-existing callbacks". I've only seen two, both being keyboard which probably should be kkeyboard.
15:00
0
Q: Can someone suggest an improvement to this query?

George Austin BradleyI'm currently working on a grade calculator for a university (professionally), and I am wondering if anyone can suggest an improvement to the following query? The query returns the following table: SELECT `course`.`title` AS `course_title`, `yearGroup`.`id` AS `year_group_id`, ...

0
Q: Flattening a List containing Empty Lists

clartaqAs part of a text buffer implemented as a piece table, there is an often called procedure to flatten a nested list of character lists. The function is part of constructing substrings of the buffer for display, copying, and cutting. I have been using a procedure based on Dan D.'s StackOverflow ans...

This question could really be helped by providing a sample of your input data and your expected output to make a minimal reproducible example, otherwise we have no idea whatany of the variables are or really how to help. Also, since your code works but you want it improved, this may be a better fit for the Code Review stack site — G. Anderson 8 secs ago
@Peilonrayz That's probably a persistent typo, yes.
The rest is hypothetical, but at least complete by the looks of it.
It has been answered, so, shrug. As I said, probably not hypothetical enough.
When I see code on Code Review, it should work because it's from a working project. This doesn't. It's a bit careless, I guess.
15:48
Working code that only needs improvement might get better answers on Code Review. — Pranav Hosangadi 34 secs ago
Monking @Sᴀᴍ
Sorry, I wasn't aware of the existence of Code Review! — Marcos Gonzalez 16 secs ago
Monking
16:11
I think the question fits better on codereview.stackexchange.comCfun 53 secs ago
16:22
You did not post the question, you posted the solution as screenshot instead of as text, you tagged multiple languages and if you want working code reviewed you should look over at codereview.stackexchange.com (but the questions needs a lot more effort when you want to post over there) — luk2302 34 secs ago
For working code you should ask in code review, not in stackoverflow — Gunther 28 secs ago
@Mast Sorry, you're right. Probably not something to spill milk over :)
0
Q: Go Lang custom convert array into string with two separators

Sokouthis is my custom function to join string from array into one string. We can provide normal separator and the last one. JoinStringsIntoArray(", ", " and ", words...) func JoinStringsIntoArray(sep string, lastSep string, words ...string) string { lastElementIndex := len(words) - 1 var joinedString...

17:05
Pfizer second dose apparently does have some side effects. Sore muscles, headache, feeling very tired. Not working the queues today.
Yeah, take care the next 48h.
3
I get my 2nd moderna dose in two weeks... I might have to reschedule my dentist appointment - currently 26 hours later
17:23
If your code works and you just want someone to review it, post it over at Code Review instead. This site is for helping out with specific issues you might have. — Magnus Eriksson 31 secs ago
I’m voting to close this question because it's a code review question and should be posted over at Code Review instead. — Magnus Eriksson 57 secs ago
18:14
I got Moderna #2 today
@SᴀᴍOnᴇᴌᴀ I've heard that Moderna #2 has some rough stuff the next 48 hours, so I hope mine doesn't go like that because I'm helping a buddy load the other motorcycle I sold him onto a trailer Saturday.
yeah- we'll see...
Kaz
Kaz
18:42
@pacmaninbw ~50% of the people I know who've had the vaccine have gotten noticeable-to-severe symptoms afterwards.
18:55
0
Q: The Functional Enterprise Java Bean 3

rslemosI've coded this @Stateless session bean: package br.eti.rslemos; import java.util.function.Supplier; import javax.ejb.Stateless; import javax.ejb.TransactionAttribute; import javax.ejb.TransactionAttributeType; @Stateless public class FunctionalEJB { @TransactionAttribute(TransactionAttrib...

19:43
0
Q: How to have a nested struct as linked list in C?

Ibrahim RahimiI am new in C and I have to do a project which reads data from a .txt file and created linked list of structures to different operation on that structures (CRUD). The file contains data of rooms in a hotel and its guests with below pattern: --- 203 1 103.52 # Michal Novak Malinova 97, Bratislava ...

20:22
Welcome to StackOverflow. I believe codereview.stackexchange.com is a better fit for your question. — Anatolii 56 secs ago
I’m voting to close this question because belongs on codereview.stackexchange.commartineau 31 secs ago
20:57
0
Q: Getting hard-drive serial number on Windows

Ayxan HaqverdiliThe point is to get the serial number of one of the hard drives on Windows. My code is based on an example from MSDN. I tried to make it an exception-safe, self-contained function. It works, to the best of my knowledge. All comments are welcome, especially about correctness, exception safety and ...

21:21
0
Q: Idiomatic Approach to Filter Struct Field - Rust

ANimator120I frequently need to find then remove something from some Vec<> type struct field. Does the following represent an idiomatic approach to doing this? struct Roster{ names: Vec<String> //.. } impl Roster{ pub fn remove_name(&mut self, name: &str){ //are both of these lines nece...

21:36
That said: "please make the code more elegant" is what codereview.stackexchange.com is for; and what you have isn't a minimum reproducible example (we don't have a definition for h here). — Karl Knechtel just now
21:57
If it's not broken / something to debug, probably better off asking over at codereview.stackexchange.comNikki9696 54 secs ago
22:11
@daniel Sure - I'd encapsulate the naked file descriptor in a RAII class that supports these operation on a higher level - but again, that's a completely new and different question. That type of question is more suited for codereviewTed Lyngmo 16 secs ago
possible answer invalidation by L Grado on question by L Grado: codereview.stackexchange.com/posts/260145/revisions
@daniel Sure - I'd encapsulate the naked file descriptor in a RAII class that supports these operation on a higher level - but again, that's a completely new and different question. That type of question is more suited for codereview - Two things though. You should always check for errors (both open and dup2 may fail) and you could add wait or waitpid in the parent process to wait for the child to finish. — Ted Lyngmo 17 secs ago
possible answer invalidation by L Grado on question by L Grado: codereview.stackexchange.com/posts/260145/revisions
@Duga rolled back
22:32
0
Q: Mapping values. Should a single use variable be declared as a variable at all?

QuitchWhere I have, let us say an object, that I will only use once, what is considered general best practice in terms of declaring it as var vs. simply putting the object directly into the method it will be used in? I'm thinking this is going to come down to "which do you think is more readable", but ...

22:56
0
Q: Encryption/Decryption algorithm #3

Have a nice dayThis is a follow up question to Encryption/Decryption algorithm #2 and Encryption/Decryption algorithm. In my last question, in @Reinderien's answer, he added this line from typing import List, and stuff like this m: List[List[int]]. Is that just for type hints? Would it be faster to use numpy ar...

23:42
0
Q: A password generator in python, how can i make it better?

BackpainYTThis a small project for a beginner, i wanted to make it and post it here so i can code better, thanks to who ever tries to help :) import string import random asklenght = 0 asku = int(input("Please choose a method:\n 1)Digits \n 2)Letters \n 3) Symbols \n 4) All \n ")) asklenght = int(input("H...


« first day (2917 days earlier)      last day (1397 days later) »