« first day (2531 days earlier)      last day (1492 days later) » 

12:00 AM
RELOAD! There are 6464 unanswered questions (90.1333% answered)
 
12:15 AM
0
Q: AddressBook help needed

SzarlejI new person in the java world. I began my adventure with java one month ago. I trying create my own address book where I can add, edit, search and delete contacts. Right now I was stoped because don't known how to create methods for edit and delete contacts. Contact Class import java.util....

 
 
1 hour later…
1:45 AM
Once you know it's correct, take it over to Code Review. That's for working code that you want advice on improving. — JohnFilleau 43 secs ago
@JohnFilleau understood. I was unaware of the Code Review Stackexchange. I'll check it out. — Tokumei 56 secs ago
 
 
2 hours later…
3:24 AM
0
Q: Python Code in Airflow Dag

HardeepI have a python code in Airflow Dag. This Dag performs 3 tasks: Authenticate the user and get access token Create a Databricks cluster using rest API and Submit a notebook job on a cluster using rest API. Pass access token created in the first step as input. Check the status of notebook job ...

 
 
4 hours later…
7:25 AM
We can't really say much given this small snippet and not knowing the bigger picture. You may be most successful in getting help by posting a more complete sample at codereview.stackexchange.com. — deceze ♦ 1 min ago
 
 
1 hour later…
8:44 AM
0
Q: Django migration script to add metadata

TaekI made a simple django migration that adds two field to our Invoices model : first_payment and first_paying_month. first_payment is obvious : is this the user's first payment, first_paying_month answers to the question: Was this payment made in the same month as the first payment, I'd love a mor...

 
If the code works and you are just looking for general performance optimization, then codereview.stackexchange.com is a better site to ask. — Lundin 31 secs ago
 
8:59 AM
For your requirement, I think it could be better on the site codereview.stackexchange.comTân 43 secs ago
 
-1
Q: Opening a New Window on a Button click - MVVM WPF

maneeshaI am new to MVVM architecture, and I would like to keep the standard of MVVM without violating its rules. So I implemented an approach to open a new window on a button click using Services. I don't know if this is the right approach to do so. Here is my code, Inside the service folder, I have two...

-1
Q: Awaiting the completion of a server request

AckdariI faced the following problem. I have a Server object server which exposes TriggerStateChangeAsync() which return an Task<bool> this task finished with true as soon the request for the state changed is send off to the server and with false if the request could not be send to the server. The obje...

 
9:58 AM
This is better suited for code review stack exchange. The algorithm isn't much optimizable except that you don't need to pop out of the second array, you just need to save and advance a pointer into it — Cruncher 15 secs ago
 
0
Q: Existential quantification versus explicit types

ErichI developed a card game engine for a german three player card game called Skat. The operating code lives in a StateT SkatEnv (WriterT [Trick] IO) Monad. data SkatEnv = SkatEnv { piles :: Piles , turnColour :: Maybe TurnColour , skatGame :: Game ...

0
Q: Anyway around having a Task.Delay in C#

user3667111I have some code that looks like this: while (result.Any(r => r.Details.Status == "InProgress" || r.Details.Status == "Queued")) { await Task.Delay(1000); result = await GetStatusAsync(appGuid); } Creating the Task with Task.Delay seems a little hacky to me, I was wonder...

0
Q: Python script for refreshing and preprocessing data in Excel report files

currentlyunknownI wrote some code to create marketshare reports. However, I'm sure it can be improved. The tasks performed are: Open the global data file, refresh the data, import its content as a DF. Create a backup copy of the old report file. Read the list of Distribution companies who should receive the re...

 
10:19 AM
0
Q: Custom view to select a value

DestroyerI created a Custom view to select a value. I use horizontal Recyclerview to select an integer value and 2 buttons that decrease or increase the values. Could you consider the code and tell how it can be improved? SliderValueSelectorView public class SliderValueSelectorView extends ConstraintLay...

 
10:57 AM
0
Q: Fetch HTTP wrapper and API

MonteCristoI have written a basic HTTP wrapper around the fetch. Then a API service which add some default options/parameters. the idea is that HTTPClient is a very basic minimal wrapper I could use in multiple projects internally and I could have specific APIService to a project. I would like some feedback...

 
11:51 AM
If your code works as intended, you may get better answers over on Code Review. — dspencer 47 secs ago
 
1
Q: Sharing User Inputs via Dependency Injection

DavidThis code solves the problem of how to share user inputs throughout a large application when using dependency injection. To achieve this, I'm using a static (through DI) store and injecting it at those places, where the inputs are needed. In an application without dependency injection, arguments ...

 
Ask on Code Review. Personally I don't care for computers SHOUTING at me, but that's just my opinion. — usr2564301 just now
 
 
1 hour later…
12:58 PM
0
Q: Brute-force electronic component selection space search

ReinderienYesterday I hacked up a simple component selection program. An example is shown at the bottom for the application, though this can be used generally for a lot of different simple circuits I come across. It requires Python 3; I've only tested it on 3.8. About the code: It is self-contained The...

 
Hi @SamuelEverson, Thank you for this advise. I didn't know about Code Review. For now I just went around the issue by adding a tick box allowing to activate or desactivate the automatique call of the macro. — remyfra 22 secs ago
 
1:22 PM
-1
Q: What should I return as response for asp.net core 3.1 web api with ef core 3.0 and repository pattern

Sanjay KumarWhat I am basically asking is that what is the proper way of returning data from a controller implementing repository pattern. Here is the code of my controller - using Demo.Repository; using Demo.Models.Dtos; using Microsoft.AspNetCore.Cors; using Microsoft.AspNetCore.Mvc; using Microsoft.Asp...

 
1:45 PM
Monking
 
Also if you have working code but are not sure if it is good (structured, bug proof, ...) you should go to Code ReviewAckdari 23 secs ago
How is this a question? If you were checking if the given code had any flaws, perhaps you wanted to post in codereview.stackexchange.com ? — TamaMcGlinn 1 min ago
 
0
Q: PHP MVC login code/structure correctness - what inside view?

ChryfiI am quite new to the MVC concept. I already know how to programme object-orientated from other languages like C++ or Java. I have implemented a little login system for test purpose. I am not sure if my implementation is the correct way to do it with MVC. Any feedback is welcome. The class Contr...

 
2:03 PM
"I can't post this code to codereview.se because it is not my original code, but a borrowed one." That doesn't make it on-topic for SO either... — Sweeper 16 secs ago
Code reviews should be done on ... Code ReviewLarsTech 12 secs ago
 
2:35 PM
can anyone tell me what kind of details their looking for here? codereview.stackexchange.com/questions/240128/…
Monking
 
@pacmaninbw no clue, tbh
 
@Vogel612 Thanks
 
2:57 PM
0
Q: Accelerate runtime of large document text tokenization through Python & RegEx

warmbadetagI'm currently trying to process a large amount of very big (>10k words) text files. In my data pipeline, I identified the gensim tokenize function as my bottleneck, the relevant part is provided in my MWE below: import re import urllib.request import time url='https://raw.githubusercontent.com/...

 
Teresa Dietrich on April 08, 2020
Back in February, we shared our Q1 Community Roadmap with you. In that post, we described our four roadmap themes which will continue throughout the year. In our commitment to provide transparency, we will continue to share our roadmaps each quarter. So without further ado, here is our Q2 Community Roadmap:  Understand community This month,…
 
3:18 PM
This question is off topic for this site. Please read What topics can I ask about here? Maybe you can try posting your code at the Code Review Stack Exchange to get feedback on working code. — François Andrieux 11 secs ago
 
3:50 PM
I'm starting to wonder why when you ask people to explain what their code does, they just fill the question with noise about how they want their code to become better.
 
@Peilonrayz tell them to comment in the code :p
 
@ankii Most questions with comments normally get a warranted answer "your comments are useless".
 
haha
 
foo += 1  # add one to foo
 
Most comments in code I see on this site are useless.
 
4:07 PM
one of my former co-workers had a tattoo on his arm: /* no comment */
 
@SᴀᴍOnᴇᴌᴀ Yeah that's fine. Why don't the queues show it's closed :/
 
4:26 PM
@Peilonrayz Is this edit sufficient codereview.stackexchange.com/questions/240145/…
 
@pacmaninbw I'm not going to tell you how you should vote
 
@Peilonrayz I searched meta SE but don't see anything relevant in the first page of results...
 
@SᴀᴍOnᴇᴌᴀ I don't understand you, what is it you're replying to. That it's fine that you rejected it, or that it doesn't show the post is closed?
 
@Peilonrayz I was looking for anything about why question titles don't show [closed] in the queues (at least for suggested edits)
 
It may be due to the 'fancy' new close mechanisms. If we don't tell anyone it's closed then is it really closed?
 
4:40 PM
@200_success Am re-visiting CS61A using GoLang. I would need your help. codereview.stackexchange.com/q/240081/37254
 
@overexchange 200 hasn't been active in chat in the last ~5 months :/
 
@overexchange 200 is no longer an active member.
 
Nov 20 '19 at 19:12, by 200_success
Some of you may have noticed that I let my 6-year streak of daily appearances on Code Review lapse earlier this month, and my participation has been minimal since then. I was thinking of writing a goodbye message on Meta CR, but decided that it wouldn't be worth the effort.
Nov 20 '19 at 19:12, by 200_success
I'll just leave this as a parting statement:
 
If this is working code and you're requesting a review, there's another site for that: Code Review. — madreflection 45 secs ago
 
0
Q: Code for tracking changes and deletions to tables

George BarwoodI have written a SQL server stored procedure to generate "log" tables which store the old values of rows when a table is updated, and also record when rows are deleted ( and by who ). It's quite straight-forward, the log table has identical rows to the table being logged, plus a "Changed" column ...

 
5:00 PM
@madreflection thanks, I am moving there the question to that site in 40 min (I cannot post it yet...) isnt feedback or codereview allowed here? just out of curiosity... — Sergiodela 53 secs ago
 
Oops I will miss him, for sure. He was my mentor
I see lot of new members here
 
It's not, and that's why Code Review exists. StackOverflow is about solving problems. You've solved the problem and now you're looking for feedback. Unfortunately, that attracts broad and opinion-based answers, which are off-topic on StackOverflow. — madreflection 54 secs ago
I flagged this post for moderator intervention, requesting it be migrated per Migration of code questions from Stack Overflow to Code ReviewSᴀᴍ Onᴇᴌᴀ 43 secs ago
@madreflection okey! I'll flag it to be migrated or I will delete it in 30 min and post it manually in Code Review. Thanks — Sergiodela 22 secs ago
I know you're not asking for a code review, but getters are not very Pythonic, consider using the @property decorator. To answer your question remove list from around row. — Dominic JL 22 secs ago
@VGR I will move it to this codereview — zeugor 56 secs ago
 
5:29 PM
0
Q: An entire file size retriever using a recursive os function in python

MahdeenSkyI'm a beginner and i just started with automate the boring stuff with python course and reached his first os lesson, so i decided to make a recursive directory size finder since apparently os.path.getsize doesn't get the size of folders. Need a way to improve my code or advice on coding tricks, t...

0
Q: Find How Many Times Numbers Repeat on a Digital Clock

sxt_Project Overview: See how many times numbers would repeat x times on a digital clock output. This particular code only counts from 12:00 to 11:59, so it's technically only half of a day, I could take the (output x 2) for a full day. Functions: input_io(): Input the number of times you would li...

 
I'm voting to close this question as off-topic because the question is asking for advice on refactoring working code to be more efficient, thus it belongs on codereview.stackexchange.comTaplar 7 secs ago
@Taplar can you not close it? I have posted on codereview.stackexchange.com and there are not many people willing to answer questions related to front end development compare to SO. — Joji 42 secs ago
 
5:47 PM
0
Q: Racket FFI for looking up the group and passwd databases

XophmeisterThis is my first foray into FFI. It annoyed me more than it surprised me to learn that the definition of struct passwd is not portable; I've stuck with the GNU version because that's what I'm targeting. #lang racket/base (require racket/contract racket/function racket/list ...

1
Q: React Component Reuse with 2 similar components

philkillsI have 2 variations of components that I wanted to create in React. They both use Radio buttons with the only difference is one adds an image to one side of it. The first method will use just one component but use conditional logic to display the appropriate HTML: getImgDiv(iconFile) { ...

 
6:06 PM
0
Q: How do I make the search in the typeahead widget more efficient

JojiI have a typeahead widget to get the state or city's population according to what the user types Instead of issuing a GET request every time the user is done typing, the way this typeahead widget works is fetch data beforehand and store it in memory and every time user types, we are iterating th...

0
Q: Google apps script Exceeded maximum execution time issue or 29k rows

Mohammed ZiaraI build my own app script code to update date from Dump file. I'm facing issue "Exceeded maximum execution time" most of the time. But the code was working fine. it imports & updates status for data (16.5 K rows) from sheet has (29 k rows ) can you support to make the code faster / working fine?...

0
Q: C++ Template to implement the Factory Pattern

Blue7Design A template class that will create a concrete instance of an interface class when given the name (as a string) of the concrete class. This design is often seen in code, so the purpose of this class is to reduce the boilerplate code needed to write a factory class. The template class wil...

 
6:25 PM
0
Q: (Feedback) Finding bridges in an Undirected Graph implementation in C#

SergiodelaI am implementing fundamental data structures in C# while trying to learn techniques in the language to make my code cleaner, more concise while using good programming practices. I have implemented both algorithms, DFS and BFS, to find the bridges in a graph. The code is properly working (as far ...

 
7:03 PM
0
Q: Visibility of Variables in Methodes

JwanI am working on a students management program which lists the names(VN), surnames(NN) and degrees(Noten) of the students / a specified student after entering his name In this code there is a java method which is not able to access the declared arrays: import java.util.Scanner; import java.util....

 
7:18 PM
If you have working code and you want ideas for improving the code, then post your users.js file in codereview.stackexchange.com. No matter where you want help, we would able to offer a lot more intelligent advice if we could see the actual file you're asking about. As with nearly all design decisions, there's nothing absolute - it's about seeing what you're' trying to accomplish and coming up with the cleanest ways to do that. Seeing your code is the best way to start. — jfriend00 43 secs ago
 
7:52 PM
Please see on topic. You seem to be asking for a code review and algorithmic help. Stack Overflow is generally to fix specific problems with almost-working code. Also see MRE if you have a specific problem. — Prune 24 secs ago
Not that I don't appreciate the advice as I am new to JavaScript, but your answer doesn't address my question. Improvements on working code are for codereview.stackexchange.comGalen 15 secs ago
 
8:19 PM
-1
Q: How generate a random pojo value using reactor.core.publisher.Flux and reactor.util.function.Tuples

Jim CFirstly, take in account is my first question here in CodeReview. Any purpose misuderstanding will be highly appreciated if orientaded. Scenario: I want to answer randomly a pojo (json with two fields) to Angular using a WebFlux restservice. I can succesfully answer an integer but I got stuck w...

 
8:38 PM
-1
Q: Is slightly more fishing a dangerous?

SitoSetup The following code implements the algorithm described in this and this paper. The first paper describes how the evolution of a fish population can be simulated, while the second paper introdues the phenomenon of 'fishing' into the simulation. The end goal of both papers is to show that one...

 
8:53 PM
Tests should be optimized for readability as the only validation most tests have is manual code review. I would think that the most readable way to perform the test would be to supply the list of card test cases. — Charles Bamford 34 secs ago
 
9:16 PM
0
Q: How to optimize code to take advantage of NumPy broadcasting when calculating pairwise correlation?

O.rkaI'm trying to take advantage of NumPy broadcasting and backend array computations to significantly speed up this function. Unfortunately, it doesn't scale so well so I'm hoping to greatly improve the performance of this. Right now the code isn't properly utilizing broadcasting for the computati...

 
This would probably be a better fit on CodeReview. — SCappella 43 secs ago
 
@Mast I didn't understand Simon's code, so I wrote my own pure JS version. I should now be in the queues
 
9:35 PM
0
Q: purrr::partial() but keeping function signature

WasabiI quite like purrr::partial(), which allows us to easily create partial functions. However, the partial function loses its remaining arguments from its signature (replaced with ...): f <- function(x, y) { print(x) print(y) return(invisible()) } ff <- purrr::partial(f, y = 1) ff(2) #> [1]...

 
I'm voting to close this question as off-topic because what you are asking for is a code review and you should be asking such questions on the Code Review Stack Exchange Please delete this and ask over there. What topics can I ask about here?Rob 46 secs ago
 
10:14 PM
@Peilonrayz which code? the userscript for desktop notifications?
 
@SᴀᴍOnᴇᴌᴀ Yeah Simon's desktop notifications. I linked to it a couple of messages below Mast's message I pung
Ah I linked to an issue, here's some better ones cr, code and raw
 
yeah I found the CR
 
If your code works fine but you are asking for ways to improve it then your question is better suited for codereview.stackexchange.comPshemo 34 secs ago
 
10:43 PM
 
11:04 PM
Code Review won't take questions seeking feedback on UI or UX. Maybe one for a Reddit sub? — halfer 48 secs ago
 
11:28 PM
0
Q: Reading and Storing Integer from Serial Monitor

Stefan2000 Description I wanted to understand how integers can be written and stored inside variables without the use of Serial.parseInt(). I couldn't find any code examples about this. Perhaps this is the right way to do it, although it doesn't detect and block letters and special characters. Please lea...

 
@Peilonrayz I believe that is only for moderators (and because it is five years old it might be too outdated) ; I modified this userscript but for an individual queue...
Malachai has a notification script also...
 
Ah, I'm just about to post my code to CR, seems "review queue" is not allowed in question titles :(
I didn't know of the existence of those. I think I recall Malachai's but I completely forgot about it.
@SᴀᴍOnᴇᴌᴀ How did you get your fancy letters, I'm searching for them online but I'm just getting complete misses.
 
11:47 PM
0
Q: Stack Exchange rᴇviᴇw queue notifications

PeilonrayzA couple of days ago a user in chat asked us to spend more time in the queues. Kick starting my desire to get notifications for new items in the queues. Reviewing the queues has been something I've wanted to do for a long time now. But I've never built a habit to check daily, and so I've wanted t...

 
@CaptainObvious Eh I stole your E's they look really out of place. But meh it'll do.
 
@Peilonrayz I honestly don't remember for sure... likely used a site like this
I think I was inspired by another user but I forget who that was
 
Ah, small caps is cool, but they just look out of place in a title. :( I remember making a script to find all NFKC collisions, strange none of the Unicode 'websites' return them when you search for a single letter...
 

« first day (2531 days earlier)      last day (1492 days later) »