« first day (2488 days earlier)      last day (1519 days later) » 

12:00 AM
RELOAD! There are 6400 unanswered questions (90.1228% answered)
3
 
 
1 hour later…
1:03 AM
This is why we have code reviews :-). This code ignores internationalization, and there are problems with the choice of method names. (Starting a method name with an uppercase letter is verbotten.) I would not recommend using this code. — Stephen C 10 secs ago
 
1:45 AM
This would be a better question for codereview.stackexchange.combad_coder 33 secs ago
 
1:56 AM
0
Q: C++ Merge Sorts Algorithm

TVSuchtyI have created this first-timer implementation of Merge Sort and I got confused by the C++ Syntax once or twice. So I have some questions about this code: #include <iostream> #include <thread> #include <cstdlib> #include <vector> #define NUM 1048576*2 int sort(std::vector<int>* vec); void run...

 
This might be more appropriate for Code Review Stack Exchange. — AMC just now
 
2:49 AM
Code Review is the place to ask for advice on how to improve working code. — Barmar 1 min ago
 
3:16 AM
0
Q: How to integrate array of data in python?

Shankar_DuttI am new to this community so please pardon if I didn't ask the questions in the proper manner. I am trying to integrate an array of data using scipy.integrate.quad. In Matlab it is easy to do so using integrate(fun,a,b,'ArrayedValue',true) In python, I have read on google that similar can b...

 
3:36 AM
0
Q: Program for string length in x86

DNS_JeezusIt takes in a string from the command line. prints out the length of the string. I'm mostly looking for tips and general convention suggestions But I'm open to any other criticism also. Roast it please thanks. global _start extern printf section .data arg_err db `Invalid Arg Length\n\0...

 
 
1 hour later…
4:59 AM
Monking
 
5:43 AM
Ben Popper on February 25, 2020
This week we chat with Anil Dash, CEO of Glitch and board member here at Stack Overflow. He breaks down the tech behind Glitch apps, explains why the company is launching an online magazine called Glimmer, and talks about the fight to keep the web weird, fun, and open to all. Glitch, a platform that…
 
6:19 AM
0
Q: Building string with max length

dRvI need to run a evaluation for large (1 Million) number of components and build a string with error which has comma separated error codes. As the final string is to be persisted in RDBMS TABLE.COLUMN with MAX length for 255, I need to truncate the string (not abruptly) and append an ellipses to i...

 
0
Q: Let's demerge [mergesort] for consistency with other sorting tags

L. F.In a previous meta question, we decided that the sorting tags should not be merged. I am fine with this. Currently, however, there is a peculiarity among the 6 major sorting algorithm tags: mergesort — instead of merge-sort quick-sort insertion-sort radix-sort heap-sort bucket-sort you can ...

 
6:52 AM
Monking
 
0
Q: Codility Fish (queue) solution

Greem666Today I have attempted a Codility exercise "Fish" (https://app.codility.com/programmers/lessons/7-stacks_and_queues/fish/), and I have to say I found it to be: 1) Not necessarily "easy" as implied by the page, AND 2) Quite satisfying to figure out in the end. My solution is a bit playful, and I ...

 
8:20 AM
0
Q: How do I code better? Failed coding assignment for not following best practices

Mohima ChaudhuriRecently got this coding assignment as the first round of interview at a tech organization. I could get the expected result, however, my code failed the best practices check. Please let me know if it needs a different approach or specific things are missing. I was confused about how to add tests ...

0
Q: Update and Select same query

MOHAMED NEJII have two queries the first one return the code and the last price SELECT s.art_code AS CODE ,max(s.DocD_PUHTB) AS PRIX ,max(s.Docd_date) AS DATE FROM documentd s INNER JOIN ( SELECT s2.art_code ,MAX(s2.Docd_date) AS MaxDate FROM documentd s2 GROUP BY s2.art_code ...

 
9:01 AM
1
Q: Any tips to refactor the following Pandas code?

PenguinSnowI am doing a Pandas project on alcohol consumption. For your information, the dataset has the following columns: | Continent | Country | Beer | Spirit | Wine | The following is my code: # Separating data by continent # ---------------------------- data_asia = data[data['Continent'] == 'Asia'...

 
possible answer invalidation by PenguinSnow on question by PenguinSnow: codereview.stackexchange.com/posts/237876/revisions
 
9:21 AM
0
Q: Is returning inside an else block safer than just returning after an if block?

Karl MorrisonI had an interesting chat with a C/C++ programmer regarding the following code: function example(maybeTrue) { if(maybeTrue) { // ...lots of code return 1; } else { // ...lots of code return 0; } } function example(maybeTrue) { if(maybeTrue) { ...

 
10:01 AM
0
Q: NodeJS CLI application that uses exec() asynchronously

nopassport1Background I crated a CLI tool which executes an npm command (to create a react app) and modifies the contents of the generated files. It was a practice attempt at creating CLI tools for NodeJS and a chance for me to experience publishing NPM packages. What I set out to do My plan was to creat...

 
10:22 AM
@AjmalJamil Did you just want to use TFS Query find all Changesets which without Code Review. It's not possible to do this through any work item query. It is a bit annoying that you may have to manually check that each changeset has a review. If lack of review is really a problem for your team, I would suggest setting up a check-in policy. Of course, there is another option that is querying directly to TFS Warehouse but it's tricky and requires access to that database and knowledge on the schema. — PatrickLu-MSFT 52 secs ago
 
10:56 AM
If your code works well and there is no issue, please consider posting the question at Code Review. — Wiktor Stribiżew 1 min ago
 
0
Q: Mean interview feedback I received

Batu G.I have been asked to solve 2 javascript questions and I was thinking I did pretty well because I cover edge cases, wrote almost every possible test case, documented code by jsdoc. Because I don't have someone to give better feedback right now I just wanted to ask in here so I can see what's wrong...

0
Q: plotting from text files with numbers containing "e" in python

megajoulesI can't seem to plot the data from this text file because of the format of the data. I can't find anything about plotting numbers with an exponential. Does anyone have a solution? The text file is two columns of data spaced by a tab where the first number is negative and multiplied by some expone...

0
Q: DFS with recursion and without stack

Abhithis is my code to implement DFS with recursion but no stack. I ran few test cases which turned out to be positive but wanted to check the efficiency of the code. graph = {'A': set(['B', 'C']), 'B': set(['A', 'D', 'E']), 'C': set(['A', 'E']), 'D': set(['B', 'F']), ...

 
11:22 AM
1
Q: Algorithm movie ticket booking

Steve NgaiJust for fun and practice purpose, I have written a short program in C# console with few classes which will create 30 seats for a cinema during program initialization with these options. Print all seats Seed 20 random taken seats Print all empty seats Print all taken seats I think my algorith...

 
Hi, and welcome to Stack Overflow. Generally speaking, working code that needs to be reviewed is off topic in Stack Overflow, and should go to Code Review (codereview.stackexchange.com). I'm not a user there, so I can just advise you to strictly view their guidelines before posting. Hope you get your answer there! — Itamar Mushkin 24 secs ago
 
12:02 PM
-1
Q: How to create component/s when editing a rather big object

ka_linImagine a decent scenario where I have on object I want to edit. Example of an object: { id:1, title:'asda', labels:[] //and at least 10 more properties } Question: Is it worth passing each object properties as props (when having 10+ properties)? How would one deal with lists (object prop...

 
12:22 PM
0
Q: A* Search in JavaScript

Somya AgrawalI just implemented a version of A* search in JavaScript for educational purposes. I'd really love it if you could take a look and tell me how to improve my code. The grid passed in is just a multidimensional array (2-D array) where each slot in the inner array is an object with property weight. ...

0
Q: Complete IntCode Computer - AdventOfCode day 2, 5 and 9 in Haskell

M.DoernerI am new to Haskell and currently trying to port my solutions for the 2019 installment of the coding challenge AdventOfCode to Haskell. So, I would very much appreciate any suggestions how to make the code more readable and more idiomatic. In particular, I am interested in whether my use of the S...

 
12:37 PM
@Mast Where is your evil laugh after this statement?
 
If your code works well and there is no issue, please consider posting the question at Code Review. — Wiktor Stribiżew 53 secs ago
 
12:56 PM
@pacmaninbw The "Mwuahahahaha" was implied.
3
 
1:22 PM
0
Q: How the below mentioned python dictionay value updation logic can be improved?

ParthS007I have two lists: Users - [<UserObject1>, <UserObject2>, ...] Contributions - [<ContributionObject1>, <ContributionObject2>, ...] Every ContributionObject further can have single or multiple UserObject in it which are mentioned as person_links here and both the objects that are ContributionOb...

 
 
1 hour later…
2:23 PM
0
Q: Are there any issues with this simple c# caching mechanism

jonaglonI have some legacy code which gets a list of Students and their corresponding School. It's LinqToSql and there is no lazy loading: public class Student { public string FirstName { get; set; } public string LastName { get; set; } public School AttendedSchool { get; set; } public ...

0
Q: A fast generator of palindrome dates in chronological order

Sep Roland 02/02/2020 is a palindrome day because reading the date left-to-right or right-to-left still refers to the same calendar date. And because it doesn't matter whether you use the DD/MM/YYYY format or the MM.DD.YYYY format, it's called a Universal Palindrome Day. No one year can have more than 1...

 
2:43 PM
0
Q: Performance on countifs and sumifs

DamianI'm trying to calculate with SUMIFS and COUNTIFS some data. The output sheet looks like this: I've hidden some irrelevant or sensitive data to make it easy to go to the point. My code runs an array on this worksheet and calculates per each day and user some KPIs I need from this worksheet: ...

 
 
1 hour later…
3:44 PM
0
Q: Parsing CSV header for validation

Lee MorganI have a simple application that reads a couple of csv files and outputs the input into catalogues for the website. However, users have a habit of opening the csv files and inserting extra columns etc and it causes obvious issues, I have tried to tell people not mess with the files with no succe...

 
 
1 hour later…
4:47 PM
Monking
 
5:29 PM
Nibjubg
 
5:43 PM
This looks like a job for... Code Review (note: CR would want to see the whole procedure, not just a snippet) — Mathieu Guindon 57 secs ago
 
0
Q: Transcribe .docx files via python-docx to modify font and font size. Need to reconstruct paragraphs in target files

Don Foxfrom docx import Document from docx.shared import Pt def main(filename): try: src_doc = Document(filename) trg_doc = Document() style = trg_doc.styles['Normal'] font = style.font font.name = 'Times' font.size = Pt(11) for p_cnt in ran...

0
Q: competitive line matching and fast line skipping

BanMeI have put the below class and extension methods together to make finding bitmaps faster, more clearly understandable and efficient. If I can make any headway in either of those directions, I would appreciate it. It first takes a bitmap as area to search then it takes another bitmap you want to ...

 
Teresa Dietrich on February 25, 2020
As we work to improve our relationship and communications with our users, we want to share with you our community roadmap each quarter, so once every three months. Even though we are halfway through this quarter, we wanted to share with you what we are working on currently. In March, we will share our roadmap…
 
6:16 PM
SO is English-only. And questions about advice on working programs are more appropriate for Code Review. — Barmar 9 secs ago
I am thinking this question might be better asked on Code Review. From my testing there are no errors so nothing "wrong" with your code and because of this I am not sure it is suited for SO. — Mike - SMT 11 secs ago
Voted to close as Needs more focus to be a well-posed question for this forum. As this is working code which is being optimized, it may be more appropriate for CodeReview. — Cyril 6 secs ago
@Mike-SMT Thank you for the reply, locating the nearest wall might be a good start. I understand why you say it might be better for Code Review. I've spent a long time on this problem and was hoping to place a bounty on this question in 2 days when it's eligible to increase the chances of getting a good answer. And I can only do that here because I don't have any points on Code Review. — alec 22 secs ago
If you want to get a better sample code, post your code on Code reviewdan1st 46 secs ago
 
6:55 PM
Again this reads more like a Code Review post than an SO post. I personally didn't vote to close but I can see why they did. — Mike - SMT 29 secs ago
 
7:06 PM
1
Q: Path finding solution for a maze whose state changes during the solve

alecThis is not a traditional maze where you find the shortest path (like the gif on the left). In order to solve it, you need to visit every available node before reaching the end, where once a node is visited it turns into a wall (like the gif on the right).       My current solution works quic...

 
7:16 PM
Code Review is the place to ask for advice on improving working code. But this is probably too trivial to be on-topic there. — Barmar 57 secs ago
If your code works without problems and you want a code review, you could ask on Code Review. "Best practices" is not a well-defined term. — usr2564301 14 secs ago
Thanks dude. Anyways I have gone ahead and posted it to Code Review. — alec 44 secs ago
 
7:37 PM
This would be better posted in CodeReview — zfrisch just now
 
-1
Q: How do I simplify the following code which solves the attached challenge?

JulianI recently downloaded an app called "SoloLearn" to improve my coding skills as I am a beginner with Java while I am not at home. Today I solved the following challenge: Everything worked but I have a feeling that there is a much easier way to get it done. Here is my code: import java.util.Array...

0
Q: Generate random letters containing a word

Roland IlligThere is a popular game called 4 Pics 1 Word that presents to the user 4 pictures representing a common word. The word has to be typed by selecting some of the 9 random letters appearing below the images. The German version of this app has an annoying bug. When the random letters contain a lette...

 
8:18 PM
I'd suggest checking whether "Code Review" would be a better site for this. — the Tin Man 27 secs ago
 
9:03 PM
"I don't think I did it correctly" Do you mean the code doesn't work, or you just think it can be improved? If it doesn't work, please edit the question to focus on specifically what is wrong with it, what the error/incorrect result is and what you've tried to do to fix it. Otherwise, if you are looking for general feedback on your code and tips for improving it, please ask on codereview.stackexchange.com instead - Stack Overflow is for more specific questions. — kaya3 39 secs ago
 
9:49 PM
-1
Q: Beginner programmer on sending error messages

Sauce BruneI am looking to optimize one function that returns error messages to the user. /// <summary> /// Handles the Ouverture event of the PrescriptionVue control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.Even...

 
 
1 hour later…
10:50 PM
0
Q: Select array element by its weight/probability

Alan ViníciusI'd like to randomly select an array element (Number) by its value/weight, where each weight determines each probability. // e.g. // Array [1.5, 3.5, 2, 1.3] // Probabilities (%): [18.07, 42.16, 24.09, 15.66] So I coded a function which gets an array, chooses an index (Randomly but probabil...

 
possible answer invalidation by DNS_Jeezus on question by DNS_Jeezus: codereview.stackexchange.com/posts/237869/revisions
 
11:00 PM
possible answer invalidation by DNS_Jeezus on question by DNS_Jeezus: codereview.stackexchange.com/posts/237869/revisions
 
11:57 PM
posted on February 25, 2020

We’ll be upgrading from SQL 2017 to SQL 2019 on our primary clusters between 9:00-10:00AM Eastern (14:00-15:00 UTC) on March 7, 2020. We expect to be read-only less than an hour and in full maintenance mode only a few minutes. For more details, see our post on meta.stackexchange. If we’re in maintenance and you can’t see that post, try again in a few minutes!

 

« first day (2488 days earlier)      last day (1519 days later) »