« first day (2761 days earlier)      last day (1249 days later) » 

12:00 AM
RELOAD! There are 7123 unanswered questions (89.7362% answered)
 
0
Q: Modeling data from Excel sheets to parse to Excel sheet

NacoridBackground: I have close to 50 excel files - I cannot change the data source - and I steadily get more. My task is to make sense of all that data and, lo an behold, save that as another excel file (I asked if I should put it in a local database, but no, I should not). Asking on SO lead me here, a...

 
1:03 AM
If you have working code that you want to have peer reviewed for improvement, you should be asking on Code Review instead. It was created for that specific purpose. — Ken White 41 secs ago
 
1:18 AM
This question seems more suited to codereview.se. — David Conrad 13 secs ago
Talk to your team, make it as mandatory step of code review to verify that "method" is not consumed. — Fabio 14 secs ago
 
 
2 hours later…
2:57 AM
No. It's working, but it's not fast enough. That's two different things. As I said, Code Review was created for this sort of question. — Ken White 41 secs ago
 
0
Q: Tetris clone in C

atiritI just finished writing an ncurses-based Tetris clone in C. It's only my second project of this size, the first being a Snake clone. I would really appreciate any and all suggestions/improvements as I'm relatively new to C and I would like to improve. As this is a 300-plus-line codebase, anything...

 
3:35 AM
@Peilonrayz Is the question fine now?
My question is similar to the other meta post, but it doesn't directly answer it.
 
4:12 AM
0
Q: "Backwards Read Primes" of Codewars powershell version

Gringo JaimesLink to problem: https://www.codewars.com/kata/5539fecef69c483c5a000015/train/powershell I have a working solution in Codewars but my solution is slow for some reason and I need to improve the efficiency. Please look over my solution and offer any suggestions on things I could do to improve what ...

 
4:59 AM
Monking
 
0
Q: Best way to bin pandas dataframe by date?

CJLI have code like: # Seperate tweets by day day_one = '2020-11-16 00:00:0' day_two = '2020-11-17 00:00:0' day_three = '2020-11-18 00:00:0' day_four = '2020-11-19 00:00:0' day_five = '2020-11-20 00:00:0' day_six = '2020-11-21 00:00:0' day_seven = '2020-11-22 00:00:0' date_col = tweet_df['created_a...

 
5:39 AM
Sounds like something your code reviewer should answer, if they are requesting it — Tore Hanssen 59 secs ago
 
 
1 hour later…
7:05 AM
0
Q: Reading a JSON file (Rust)

Jonah AllertonI'm trying to read a config file in JSON. As usual, after a bout of compiler errors, this read the config file successfully. I can't shake the feeling, however, that this is extraordinarily bad code: let mut config_file = String::new(); match fs::read_to_string("config.json") { O...

 
 
2 hours later…
9:34 AM
0
Q: Calling different class objects using python

ProtractorNewbieIm trying to get more grip of Classes and also calling different classes to each other which will be more understandable when showing code before: Utils.py from proxymanager import ProxyManager # https://pypi.org/project/proxy-manager/ class ProxyServer: def __init__(self): self.prox...

0
Q: Is there a more efficient way I can multithread reading and processing when working with HDF5 files?

John KI have a program that should read and process about 500,000 files in the format hdf5, each of them containing about 400 datapoints representing the coordinates of carbon atoms in a sheet of graphene. Since I have an HDD, the process of reading is slow and as such I don't want to delay the reading...

 
9:50 AM
possible answer invalidation by Lubomir Stankov on question by Lubomir Stankov: codereview.stackexchange.com/posts/252565/revisions
 
0
Q: Remove duplicates from array and save it to another one

parallelaSo I have been tasked to make an array without duplicated values from another existing array. So I did it, but I want to know is there some other better way to do that. Example input/output: Input: 1, 15, 1, 5, 1, 3 Output: 1, 15, 5, 3 So here is my code. #include <stdio.h> int main(void) { co...

 
 
1 hour later…
10:59 AM
@Duga Vandalism
2
 
SO is not for code reviews - the code does what it is supposed to do? My main beef with above code is the use of nested each and if. This code can be written a lot less imperative by using collect and findAll. — cfrick 8 secs ago
 
11:22 AM
@progrmatico okay I wasn't aware if the python3 tag significance and the existence of a code review. I shall do that now. Thank you — Shaurya Goyal 42 secs ago
 
12:03 PM
0
Q: Message encode/decode library

bw_devI write protocol messages encoder/decoder for my project. All messages have 2-bytes header (1 byte - message type, 1 byte message sub-type) and body. There are three types of messages encoding/decoding: Plain message - no encoding Base64 message - Base64 encoding Fully encoded message - AES and...

 
12:28 PM
0
Q: Sticky Table Header in Plain JS

abjimI wrote a code for sticky/fixed table header. I am bit confused with my coding, though it does my job. I know there are many jQuery codes available online. But I wanted to do it in plain js with ie support. Now I want to see is there anything wrong/abuse of languge in my code. Here my code: /...

 
 
1 hour later…
1:31 PM
Head over to codereview.stackexchange.com, that is the better place to ask this question — mstaessen 38 secs ago
Open-ended questions about refactoring your code are off-topic for Stack Overflow, however they may be appropriate for Code Review. — jps 36 secs ago
Note that if your code is already working correctly and you are looking for improvements, this seems more appropriate for CodeReview – be sure to check their question guide first, though. — MisterMiyagi 35 secs ago
I’m voting to close this question because Open-ended questions about refactoring your code are off-topic for Stack Overflow, however they may be appropriate for Code Reviewjps 25 secs ago
As this is fully-working code; this might be better placed on codereview.stackexchange.com (please delete this question if you decide to post there) — JeffUK 46 secs ago
@mstaessen Could you at least point them towards the help center next time? If this question gets posted as-is on Code Review, it will be closed there too. — Mast 33 secs ago
 
2:02 PM
When you ordered array1, what have become of the three stops from "13004005E" to "13004007E"? It looks that they disappeared (with other words, how did you plan to cope with different paths for a same bus? IMO there should be cells for all stops and blank cells accordingly). Also, if your code wroks, your question would fit better in Code Review, if it doesn't, please explain more precisely what your problem is — Kaddath 20 secs ago
 
2:17 PM
good call! They are the real experts at code review you will get a lot of great pointers over there. — JeffUK 11 secs ago
 
2:32 PM
0
Q: How to run code with huge numbers faster

Martins MichealThe code was written to generate division of numbers using prime numbers in ascending order. E.g 3! ='2 * 3', 4!='2^3 * 3'. When I have huge numbers such as 100!. The run time becomes a problem. I want to have a code which will run in lesser time. from math import floor,sqrt,factorial from decim...

 
2:57 PM
0
Q: Google Foobar Level 1 - Minion Task Schedule

yfrI recently just stumbled upon a post regarding Google Foobar Level 2 and decided to try it out myself but starting from Level 1. The description and code are shown below. Write a function called answer(data, n) that takes in a list of less than 100 integers and a number n, and returns that same l...

 
3:08 PM
Do you have any known issues? Or are you just asking for people to review your code? (If so, that would be better suited for the code review SO site) — DBS 29 secs ago
 
3:22 PM
0
Q: Codeigniter 3 and Twig CMS

Razvan ZamfirI am working on a online newspaper/blogging application with CodeIgniter 3.1.8 and Bootstrap 4. I have decided to add themes to it. The application is not HMVC, only MVC. I thought it was a good idea to use the Twig template engine to the theme(s). For this purpose, I use CodeIgniter Simple and S...

 
possible answer invalidation by Arian on question by Arian: codereview.stackexchange.com/posts/252040/revisions
 
3:47 PM
0
Q: How to implement simple Date class in C++? Edit: And use that class with [i/o]stream_iterators

milanHrabosI would like to know how can I improve my simple Date class in C++. I am reading https://www.amazon.com/Exceptional-Engineering-Programming-Problems-Solutions/dp/0201615622 and the very first example handle with a Date object, but provide no implementation. So I tried to implement it myself: Date...

 
3:58 PM
@AryanParekh IMO no. By adding more questions you don't bring focus or explanation. I'd start off by answering Mast's first question. Then providing an in-depth explanation of what you think is right / wrong with each example. I think your question with some tidying up could be a good question.
 
Monking
@Peilonrayz welcome back?
 
This site is for more focused programming questions. We don't check whole programs. Maybe over at code review stackexchange they do, but please check with them first what they accept. — Trilarion 7 secs ago
for a review of working code you can ask at codereview.stackexchange.com. Just make sure to post complete and correct code there and to remove the question here in case you post there — idclev 463035818 30 secs ago
 
4:48 PM
@Mast My head hurts. OP vandalises post indicating he wants it deleted; we un-vandalise it; he makes a sock puppet account and duplicates it in a new question.
Just... why? Why not use the existing account and post a new question, having taken into consideration prior feedback?
 
MOnking
 
0
Q: Search and scroll to search term upon hitting enter

LadanI'm wondering if I can do a search, where when I type in my search term, the page will scroll down when I hit the enter key. $(function() { $('.searchTerm').bind('keyup change', function(ev) { // pull in the new value var searchTerm = $(this).val(); // remove any old ...

 
5:07 PM
I’m voting to close this question because Code Review questions are off-topic on Stack Overflow. — Ross Ridge 21 secs ago
If the code works and you're looking for advice on improving it, Code Review is the appropriate place. But see codereview.meta.stackexchange.com/questions/5777/… first. — Barmar 59 secs ago
 
5:24 PM
hiya 🤦
I don't understand what the heck you're talking about. I JUST want help with this — Ladan 1 min ago
@Mast If you keep your window open then you could set up a userscript with a MutationObserver on the element ul#present-users - look for a child with title or alt attributes containing the username...
 
5:52 PM
0
Q: std::deque and std::list Type Arbitrary Nested Iterable Generator Functions Implementation in C++

JimmyHuThis is a follow-up question for std::array and std::vector Type Arbitrary Nested Iterable Generator Functions Implementation in C++ and the previous questions about recursive functions, including A Summation Function For Arbitrary Nested Vector Implementation In C++, A recursive_count_if Functio...

1
Q: Microservice that fetches data from REST repository endpoints on Github

E.MohammedI have code in Python 3 where I fetch data from the GitHub API, and I want some advice on the architecture of this code. import urllib.request, urllib.parse, urllib.error import json import sys from collections import Counter from datetime import datetime, timedelta, date from tabulate import tab...

 
@Reinderien Please put that information in a mod flag so @Vogel612 can take action.
That's just nasty of them.
@SᴀᴍOnᴇᴌᴀ Unlike myself, my computer is sometimes asleep.
 
That's what I figured :/ I already flagged it. Thanks
 
@Reinderien Thanks for notifying us :-)
 
@Mast mine too
 
argh... the code isn't even duplicated
it's very close to, but it's not a total duplicate
 
6:06 PM
@Vogel612 yep. they took one of my suggestions into account, but it's murky
 
@Duga rolled back
 
This may be better-suited for codereview.stackexchange.comAsker 7 secs ago
 
0
Q: Excel VBA Sub not executing when target cell is filled with reference cell value

CommodePreviewThis works great for what I want want it to do when I manually enter the value for "b37" but when I put "=c20", for example, into "b37" nothing happens. How do I make this work for when the value in the cell referenced, "c20" changes instead of manually entering a value for "b37"? Thanks! Sub Wor...

 
6:39 PM
@SᴀᴍOnᴇᴌᴀ 1 more
 
++
Ironically I found a beer a couple weeks ago called 404....
 
Ahh, a lost beer.
 
Working code can be critiqued on Code Review, but please follow their guidelines. — user4642212 25 secs ago
 
yeah - fittingly I couldn't find mention of it on the brewery website... perhaps it is a seasonal and/or was only made a couple years ago
 
7:19 PM
@SᴀᴍOnᴇᴌᴀ Binary brewing producing a 404 beer.
 
@Mast it seems they don't anymore :/
 
@SᴀᴍOnᴇᴌᴀ Closed.
@SᴀᴍOnᴇᴌᴀ It seems like a joke, like they did it on purpose.
 
possible answer invalidation by ProtractorNewbie on question by ProtractorNewbie: codereview.stackexchange.com/posts/252581/revisions
 
@Duga Yes, thank you, rolled back.
I haven't seen Simon in a while, but I hope we get to keep Duga.
If not, I hope we get some advance warning so we can nick the code and get it running on an alternative site.
 
@Mast simon is around, just not in the 2nd
the code is open source AFAIK
 
7:30 PM
@Vogel612 Yea, it's on GH.
But I don't have a version available that's synchronised and up-to-date 100% of the time :-)
You never know when something goes down until it's too late, unfortunately.
 
ain't that the truth
 
0
Q: A calculator in C/C++

ArianI made a calculator in C/C++(My code is originally written in C++). I want to: Make my code shorter. Make my code better. I don't want to: Use #include. Here is my code: extern "C" { int printf(const char *format, ...); extern int scanf(const char *format, ...); double pow(double ...

0
Q: Kings Tour Python

user233682This is a deaph fist search Kings Tour, I call it like this because the king must pass by all coordinates only touching them once(like a knights tour). How could I improve? Thank You # author @reivaJ from collections import defaultdict from itertools import product import sys import numpy as...

 
Every once in a while I say something sensible.
 
8:20 PM
possible answer invalidation by E.Mohammed on question by E.Mohammed: codereview.stackexchange.com/posts/252606/revisions
 
8:37 PM
Just browse some of the questions here pertaining to multidimensional arrays to get an idea. Then, start implementing. When you have problems, you could (after reasonable research) ask here. If you want your working code reviewed, there's also codereview.stackexchange.com. As a new user, please also take the tour and read How to Ask. — Ulrich Eckhardt 9 secs ago
I think you should post your question on code reviewAlan Omar 34 secs ago
As Alan points out, this question is more appropriate for the Code Review Stack Exchange since it's working code and you'd like opinions on how to make it better. — Sean just now
 
@Duga Was pointed out in comment, not in answers.
 
This question is more appropriate for the Code Review Stack Exchange since it's working code and you'd like opinions on how to make it better. Please don't repost the same question on Stack Overflow. — Sean 25 secs ago
 
0
Q: Choose random string from set without loading them all to memory

PenguinSo I have some code that runs perfectly fine, but the issue is that I do not want to load all the possible choices to memory. Even though at this stage that wouldn't really matter, at some point there will be a lot of choices and the array will become huge. First File: var opponentDictionary=[ "

 
@Jacky You're getting a lot of downvotes on this because a) you asked a very similar question two hours ago, and b) it's really a question for Code Review (which was pointed out in the comments on your earlier question) — CatchAsCatchCan 27 secs ago
 
9:36 PM
0
Q: ATM Application. How to create pre made users? Users with username, password, balance

tommyI have a start up menu. Right now i cannot login until i create a user. My goal is to have 3 pre made users with balances. Any other tips are welcome to make the code better. #include <iostream> #include <iomanip> #include <string> #include <vector> using namespace std; class AutoTellerMachin...

 
10:01 PM
0
Q: Trying to reduce the complexity of my code

JackyI'm trying to code a simple game called 'Atom'. The game is like this: First of all, you press 'Play' and one of the 3Boards (5x5, 6x6 or 7x7) are generated. There you have to guess where the hidden Atoms are through clicking on the squares on the left,right, top and bot. After pressing one of th...

 
Since you are asking for reviews/feedback on working code, I have migrated your question to Code Review, where it is a better fit than Stack Overflow. You'll note that I also transcribed the text from your image, which you should try to do yourself in the future. Images aren't searchable like text, and are therefore discouraged as a means for presenting textual information on Stack Exchange. When you try to access your question at its new home, you'll be prompted to create an account on Code Review. — Cody Gray ♦ 38 secs ago
 
10:19 PM
If this code works, the question is more suited to codereview. — v25 31 secs ago
 
10:51 PM
0
Q: LeetCode: Stone Game C#

Giladhttps://leetcode.com/problems/stone-game/ Alex and Lee play a game with piles of stones. There are an even number of piles arranged in a row, and each pile has a positive integer number of stones piles[i]. The objective of the game is to end with the most stones. The total number of stones is ...

 
11:02 PM
If the script works and performance is the only issue post the question here:codereview.stackexchange.comJLeno46 18 secs ago
 
11:16 PM
0
Q: How can I split a large list into multiple smaller list at certain indexes in Python?

Reed CurtisRight now I have a list that looks like this... [1,2,3,4,5,6,13,14,15,21,22,23,24,25,26] I need to make smaller lists where each is split when there is a gap in between the numbers, so the new lists would look like this... [1,2,3,4,5,6] [13,14,15] [21,22,23,24,25,26] I have been racking my brai...

0
Q: React App with external route table and cookie-based routing

CoupcoupThis is a small frontend frame for a React app that is built then served statically via Go. Because the app uses React-Router for browser-based routing but the server doesn't know anything about the app I added some code to the backend that reads the list of routes the app uses from a json file a...

 
If you just want someone to look it over, this belongs on Code ReviewDavid 27 secs ago
 
11:41 PM
1
Q: Trying to find a way to optimize a script that takes a really long time to run

TWesleyI was wondering if it is possible to speed up this script? The source file has 90,000 rows, and it has to create a separate forecast for 1200 unique dealers using fbprophet. I'm new to python so I'm not sure if there is something obvious I'm missing, or if it's just going to have to take a really...

 
11:52 PM
This question would be better suited for codereview.stackexchange.comteylyn 47 secs ago
 

« first day (2761 days earlier)      last day (1249 days later) »