« first day (2909 days earlier)      last day (23 days later) » 

12:01 AM
RELOAD! There are 7518 unanswered questions (89.4725% answered)
this belongs at codereview.stackexchange.com but there is no option for that :( — CEPB 13 secs ago
 
12:20 AM
0
Q: Array manipulation by deleting repeated characters in c++

AndyPI am trying to do some array manipulations where I need to delete all repeated letters from the array and it should return a new dynamic array where all repeated letters are deleted. I don't want to modify the input array. I came up with below code which works fine. Is there anything that can be...

0
Q: GetNeighborhood function for 3D cells structure in MATLAB

JimmyHuI am attempting to implement a GetNeighborhood function in order to get a specific region from inputCells by sizeInput and centralLocation parameters in 3D cells structure. The experimental implementation The experimental implementation of GetNeighborhood function is as below. function [output] =...

 
 
3 hours later…
3:45 AM
Welcome Tiago! If you'd like a general review, this question might be more suited to the codereview stackexchange. If you want help with the problem you mention in the comment, it might be more appropriate to edit your question and trim down the problem to the part you're having trouble with — loopbackbee 8 secs ago
 
Monking
 
4:12 AM
Monking
 
monking around?
 
0
Q: Bash: call make when directory changes

Aaron HallI usually like to use entr when developing on my own hardware to run commands when a directory changes. However, sometimes I'm working in an environment where I don't have much control over the availability of helpful programs so many of us take for granted. I've been using Git Bash on Windows, a...

 
4:51 AM
possible answer invalidation by TorbenPutkonen on question by Raushan Kumar: codereview.stackexchange.com/posts/259746/revisions
 
 
1 hour later…
5:53 AM
@Mast Yeah, I have a lot to do this days and as a result I'm somewhat all over the place.
Only ~2.2 months till my vacation.
Monking.
@Duga Seems fine, only changes data, not the code.
 
 
1 hour later…
7:06 AM
Do you have a question? If you want a code review, Code Review is the place to go. — Ken Y-N 30 secs ago
 
 
2 hours later…
8:58 AM
0
Q: Short bash script to join arguments with dashoption, escaping quotes and $ dollar sign

MobergSo I got this short awk invocation wrapped in a bash script. unfortunately the bash script is kinda unreadable. Do you have any pointers? #!/bin/bash action="printf \"$1 \" \$1 \" \"" awk {"$action"} $2 Invoking it like this joinargs -s tmp if the tmp file looks like: a bb ccc would create this...

 
9:45 AM
0
Q: Binary Search Tree without pass by reference

motiurHere is a code for BST that I have written , that does not use pass by reference. Help me to find flaws in its design. Also I do not like the function getReqNodes, can it be made more elegant. #include <iostream> using namespace std; struct node { int data; node* left = nullptr; node...

 
10:25 AM
If you think your code works and you want others input for improveing the code, SO is not the correct site. The correct site would be: codereview.stackexchange.com4386427 43 secs ago
 
10:56 AM
Also, this question is better suited for code reviewburan 44 secs ago
 
11:24 AM
I saw it's mod election time and just wanted to pop in and wish everyone luck and thank you all for volunteering.
4
 
@KonradRudolph, I respectfully disagree - the code works and the main question is I wonder if it's OK to write a code like that - i.e. style. The next rather obscure and unclear remark The code works for some cases, but I wonder if my code contains any errors doesn't make it about correctness. If this was the case ANY question from code review will fit here - just add something within the lines - I wonder if my code contains errors. — buran 44 secs ago
What is the actual question? As far as I can tell the code matches your description of what you intend to do. Does it not work? I would also suggest using better naming, Snacks should perhaps be better named SnackType? As for better ways, it's not how I would have written it, but if it works it works. Use codereview.stackexchange.com if you are looking for a code review. — JonasH 50 secs ago
 
11:44 AM
0
Q: Spinning slash wheel to represent an Ongoing operation

MossManI have written a simple program to represent the computer is doing an operation. It is suppose to show a rotating slash character to the user with every second passed however the program does not work as intended. It shows all the characters instead of cleaning the screen and show just the spinni...

 
Codereview will improve your working code. — Sinatr 10 secs ago
 
12:33 PM
3
Q: Singleton metaclass for each argument set compatible with Pickle

Tomáš HonsI am creating a metaclass which ensures that instances of an actual class A are kind of singletons. But rather than having only single instance of A, I would like to have one instance per argument set given to A. That is class A(metaclass=ArgumentSingleton): pass r = A() s = A() t = A(1) u =...

 
Thanks to both. I'll add it to code review site. @Bergi did you mean like a grid? i.e. if(mondays[0]) table.push({"Date": mondays[0],"Shift":shifts[0], "user": users[0]}); table.push({"Date": monday2[0],"Shift":shifts[1], "user": users[1]}); — Shucoder 12 secs ago
 
12:57 PM
0
Q: Graph implementation

Sandra SilvaI'm new to Python and I have a college work that requires to use the graph, vertex and edge concepts, but I'm having some problems with the implementation. The works requires to: a) In Vertex, create a Station subclass, to contain the station id and the position, in decimal degrees, of the locati...

 
1:29 PM
Could you please post this on the "Code Review" Stack Exchange (codereview.stackexchange.com) ? That place is for commenting on your code, this place for solving concrete problems. — RemcoGerlich 10 secs ago
 
1:44 PM
This is a question that would be better be suited for CodeReview instead of StackOverflow. If I'm not mistaken, SO is only for asking questions about programming and not about reviewing existing code. codereview.stackexchange.comAkilan Manivannan 47 secs ago
 
2:08 PM
0
Q: Is it common to use static void method to handle objects, e.g. set some properties?

JJJohnI'm trying to develop a text-based game. Here is the concept-demo version. class Arena { public static void battle(Hero h1, Hero h2){ h1.setHp(h1.getHp()-h2.getPhysical_attack()); h1.info(); } public static void main(String[] args) { System.out.println("Enteri...

0
Q: Too many if statements? How to write better Python code?

soulpaulA couple of weeks ago I had to do a coding challenge for a job interview. I did the challenge using Python, the code was working and I got the job. But I would like to know how (if possible) I can improve/refactor the code I've written. The reviewer told my future employer there were too many if ...

 
2:21 PM
possible answer invalidation by Tomáš Hons on question by Tomáš Hons: codereview.stackexchange.com/posts/259793/revisions
 
hi
 
possible answer invalidation by Tomáš Hons on question by Tomáš Hons: codereview.stackexchange.com/posts/259793/revisions
 
@Duga Huh, strange double message. Can someone else handle the situation. Smells fishy, but at the same time a meh from me.
@hga77 Hey
 
0
Q: Fetch a specific <a> tag with Beautiful soup that is only under <article> tag

LordOfWizardI have tag under tag.. i want to only fetch all tags that belongs to the category or (subsession) of tag from a webpage. How can i accomplish that. In python Beautiful Soup <article class="THIS_CLASS_IS_DIFFERENT_EVERYTIME" data-post-id="4178" data-video-uid="1"> <a href="URL_I_WANT_TO_FETCH"...

 
@Peilonrayz should I roll it back, I think yes
 
2:33 PM
@Heslacher As the answerer I think I'm a bit biased here ;) I trust your judgement
 
rolled back
They added code from your answer and then others won't know which they should review.
 
Thank you for your help, makes sense yeah
 
no problem
 
@CaptainObvious CNWAI - ~gimme teh codez~
 
2:40 PM
@SᴀᴍOnᴇᴌᴀ Needs 1 more
 
@Peilonrayz yeah we've told(1, 2) Simon about it.... he said:
in Coding Projects and Factorio Madness :), Apr 9 at 15:39, by Simon Forsberg
@Mast Sorry, but I'm not spending time to troubleshoot such things. I have started working on migrating @Duga though to be easier to make changes to, then anyone could troubleshoot it
 
@SᴀᴍOnᴇᴌᴀ Oh. Thank you for the detailed info!
 
3:19 PM
0
Q: How to Display Students Examination Results from Multiple Tables in MySQL with PHP

LexizI have some tables in MySQL that are relational. It's for a basic school management system that am trying my hands on. Below are the main four tables out of eight tables am selecting data from. 1. students table student_id firstname othernames surname ---------- --------- ---------- -...

 
Stack Overflow is not appropriate for questions about optimising working code. It is too open-ended, and there is not one definitive answer. We have Code Review for this. Answers there can offer any input, including cosmetic improvements. It's not limited to performance, so bear than in mind before posting. — Michael 47 secs ago
 
@CaptainObvious Also CNWAI
 
@Michael But CodeReview is not intended for questions about code optimization. It is designed for the review. I tried to ask such questions there and it was labeled as an offopic. — chptr-one 15 secs ago
 
@SᴀᴍOnᴇᴌᴀ Looks like someone voted to move it to SO.
 
@pacmaninbw I saw that.... it does reference a SO question from ~8 years ago
@Duga ಠ_ಠ don't see a (deleted) off-topic CR post by that OP... that seems like a strange statement...
 
3:34 PM
Code review's What topics can I ask about here says "It's OK to ask for help to optimize code to run in a resource-constrained environment. However, asking about code-golfing, obfuscation, or similar is off-topic." It sounds like your question is probably fine there. — azurefrog 57 secs ago
 
0
Q: Chess game in Kotlin

Florian WaltherI wrote the following Chess logic in Kotlin and am looking for feedback to make the code cleaner and follow good software design principles. I tried to adhere to object-oriented design. Some notes: • I ignored special moves like "Castling" and "en pessant" for simplicity. • To reset the game you ...

0
Q: Tic-tac-toe in python with OOP

Moiz _I'm a beginner to intermediate in programming, and created a Tic-tac-toe game in python. I plan to add an AI player and a GUI using pygame. Any improvements I could make to the code, especially with the logic, or just formatting in general? my_board = [ ["1", "2", "X"], ["4", "5", "6"], ...

 
3:50 PM
@CaptainObvious might not be working as intended
 
Monk ing
 
4:05 PM
If your code works but you want to see alternative solutions, then perhaps Code Review Stack Exchange is the better venue. I also did not downvote. — Justin Ezequiel just now
 
4:47 PM
this question seems to better suit Code Review since I assume You have no errors — Matiiss 25 secs ago
 
5:19 PM
0
Q: Encryption/Decryption algorithm

Have a nice dayI've been working on this for a while, and now that I've got a working program I thought I'd see what other people think about it. Basically if there is anything you think would make it faster or make it simpler, or make it better in general, please share your thoughts. As for actual strength, I ...

 
6:07 PM
0
Q: How to search through fortran source for a string ignoring comments?

wander95I am trying to write a python script that can search through Fortran code ignoring comments. I didn't find a simple way of doing this using grep. So I startwed writing my own. The rules for comments that I am following are: the first character is not a space or a number. It is usually a c, C but...

 
7:04 PM
@pacmaninbw Any particular reason why you answered this?
The question clearly states the program doesn't work, yet it has 4 answers.
I've removed the tag by the way, by how it's written and how the includes are presented I'm fairly sure it's C, not C++.
 
7:19 PM
0
Q: Is my database schema in 3NF?

em_r_aiI have a table with following columns: show_id, type , title, director(multi-valued), cast (multi-valued), country (multivalued), date_added, release_year, rating (PG-13 etc.), duration, genre (multivalued), description I made the following tables to achieve normalization: MOVIE: SHOW_ID (PK) |...

 
8:06 PM
possible answer invalidation by Florian Walther on question by Florian Walther: codereview.stackexchange.com/posts/259807/revisions
 
0
Q: How to make my 1D EM algorithm written in Julia faster?

ForceBruI wrote this code that's supposed to implement a 1-dimensional (!) EM algorithm with k-means initialization: begin import Pkg Pkg.activate(temp=true) Pkg.add(["StaticArrays"; "Plots"; "BenchmarkTools"]) end using Printf using LinearAlgebra: norm using Statistics: quantile using Stati...

0
Q: Copy Columns Forward Macro: From Procedural to OOP

HellboyBackground: I had created a macro few years ago and when I was reviewing this now, it was hard to understand. I recently went through all the articles from RubberduckVBA and started learning that VBA can also be Object Oriented language and, I tried implementing this concept in my macro. Purpose ...

 
possible answer invalidation by Florian Walther on question by Florian Walther: codereview.stackexchange.com/posts/259807/revisions
 
8:34 PM
@Mast I missed that line.
The code definitely could be improved.
I was in teaching mode this morning.
Answered 2 questions, that was one.
 
@Mast and you might have noticed this- 1 of those answers is by OP, reporting about what the issue was
0
A: Spinning slash wheel to represent an Ongoing operation

MossManThe problem was that before going to sleep i had to flush the contents of stdout manually and that is why i did get nothing on the screen since printf buffers the output i either have to have a new line character which tells the buffer to flush or use fflush(stdout) before i call the sleep functi...

it is potentially NAA
 
8:55 PM
0
Q: Check for changes on a webpage

ProtractorNewbieI have been working quite alot of refactoring as well as learning new stuff in python. I have before wrote a code review where I have learned alot about: Previous code review and here I have now tried to refactor my code to make it more readable and also a way to monitor a product in my case, to ...

 
 
2 hours later…
10:31 PM
0
Q: Python Autoclicker

Syed Mohammad SannanI made this super basic autoclicker using Python (v3.7) and the pynput (v1.7.3) library. Are there any changes that you could recommend to make the code more efficient, faster, and overall better. Here's the code: from pynput.keyboard import Key, Controller import time # Autoclicker Functionali...

 
This might be more appropriate for codereview.stackexchange.comZ4-tier 20 secs ago
 
10:55 PM
0
Q: Separate logic and UI PySide

iRexI'm trying to separate logic and UI. In the code below I have UI and logic classes. The goal is to fill the list widget with data - a list of found json files. At first start of the UI it gets data from Data() and fills the list with it. The button which is connected to Data()create() method must...

 
11:18 PM
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 48 secs ago
 
0
Q: extraction of large excel file

JohnThe script runs a request on an URL that returns an xlsx file and converts it to a dictionary without saving the file on the computer. It works well with small xlsx files but when I run it on large xlsx files (close to 100k rows) it runs forever... How could I make it execute faster? sess...

 

« first day (2909 days earlier)      last day (23 days later) »