« first day (3177 days earlier)      last day (857 days later) » 

12:00 AM
REFRESH! There are 8003 unanswered questions (89.2382 answered)
 
12:18 AM
0
Q: Recurrent neural network producing the same output for all inputs

sangstarI've been trying to create a toxic comment 'rater' from this Kaggle challenge. The training data consists of a number of comments with scorers on whether it was toxic, severely toxic, obscene, a threat, an insult, or identity hate. I first created my target 'overall_negativity' which is a cumulat...

 
@pacmaninbw Unless someone else looks into the post I will in the morning.
 
@Peilonrayz OK
 
Fun fact: Openreach (effectively big British ISP) don't know which ports are "live" in the IXP, so will disconnect any port to fulfil another obligation... AKA I has no internet the past day or so ):
 
12:35 AM
Since, your code is working, # Try Code Review It seems to me this question is more suited to be asked in the Code Review Forum. Code Review is a question and answer site for peer programmer code reviews. Please read the relevant guidance related to how to properly ask questions on this site before posting your question. — itprorh66 50 secs ago
 
1:02 AM
@pacmaninbw we've allowed the edit, since the change allows the code to compile and doesn't invalidate any answers; also allowed the question to be re-opened
 
1:16 AM
OK
There was a comment that the change invalidated the answers by the Mug.
 
@pacmaninbw I looked over the post but couldn't see any AI. If you can spot any then we'll need to address it. FWIW, SP is to favour the OP here.
 
1:34 AM
0
Q: The User Interface Code for a Simple Tool That Generates Word Documents from Excel Data

pacmaninbwThis question provides the code behind the dialogs in the C# refactoring question. I'd like a review of this code as well. I'm not currently using databinding anywhere, and there is really only one place that it might help which is in the add or edit tenant form. This question is separate from th...

 
 
4 hours later…
Monking
 
6:14 AM
0
Q: How can I make my code more concise and efficient?

CaesarI'm new to common lisp. I basically translated a procedural implementation of balanced parenthesis using a stack to common lisp. How can I make my implementation more lispy? (defvar str-1 "(this {is [it ()]})") (defvar str-2 "(this [is {it} )") (defun matchp (a b) "Check if brackets form the...

 
You might want to see codereview.stackexchange.com. FWIW, you don’t have to DRY everything to the nth degree. Some moistness is fine if that’s indeed the better solution. Mostly your business logic must be DRY and not repeated in several places which might contradict each other. — deceze ♦ 43 secs ago
 
6:49 AM
0
Q: Blocking an anonymous user from proposing edits

mdfst13I, and several other reviewers, have repeatedly rejected this edit. It's ungrammatical (easier is an adjective; it can't modify legible, another adjective; it needs an adverb, like "more easily" instead). It makes the post worse. If an account proposed this edit, the account would lose edit pr...

 
 
3 hours later…
9:58 AM
Also you ask How to do it better? but do not show your current code/attempt. If you have a code that works it may be better to ask on Code Review. — buran 36 secs ago
possible answer invalidation by Tamal Banerjee on question by Tamal Banerjee: codereview.stackexchange.com/posts/272927/revisions
 
0
Q: dynamic video sitemap don;t work

Matt McgorkI want to make a dynamic video sitemap in xml format so that it is friendly to Google robots. And I have a problem with generating the map correctly. The map opens in the browser but some elements do not appear, namely the code "urlset and xmlns" " Below I am adding my code and a screenshot of th...

 
possible answer invalidation by Tamal Banerjee on question by Tamal Banerjee: codereview.stackexchange.com/posts/272927/revisions
 
10:23 AM
 
0
Q: My code creates a soundboard that can assign a sound to a key on a keyboard while listening to keyboard strokes in parallel

EternalMy code works but I am looking for an efficient way to implement the idea with out having to repeat the same code block inside the function Recin() (record Input function is stated in the code) in order to assign a new key. I'm using windows for this project. here is the code: import playsound as...

0
Q: Clean up Python function with too many if/else statements

dencccI have a working function with too many if/else statements (pylint). The code works but it's not good. I try to improve it but I have some tunnelvision. Can someone help me to improve the code? So depending on a list of stacks, an environment (prod, nonprod or all) and a list of account IDs there...

 
11:11 AM
Monking
 
@Feeds sounds like a "Hey CMs is there a tool for that" kinda deal. I don't think we want to block anonymous edits completely
 
0
Q: Historical database design for school system

Luke CarrContext We are a multi-academy trust designing a database system (more of a warehousing solution) to aggregate educational data from our 13 schools into a single source. One of the biggest hurdles we've had to overcome is retaining historical values for student attributes that change frequently. ...

 
seems like there's 5 anonymous edits to that particular post in the last month
 
11:41 AM
I added a narrative - WHY are you asking on SO though? You got working code that you want to improve - you do not tell us where your problem with that is. Maybe checkout codereview - SO does not "optimize" code or teach you how to get shorter code that does the same as your working code. — Patrick Artner 50 secs ago
 
@Vogel612 IIRC (not on a PC right now), all from the same area.
 
that sounds like moderator-only info ;)
 
11:56 AM
Yes, I'm being vague on purpose. You know how it goes.
@Vogel612 You'd be against disallowing them completely, yea?
 
I had initially assumed there were more, but looking at the 10k tools it seems like anon-edits are rare, and actually useful ones are unicorns
 
I haven't seen a useful edit from an anonymous user since, well, long. Long ago.
 
there's a single approved edit in the 14 from the last 30 days
 
possible answer invalidation by Milos on question by Milos: codereview.stackexchange.com/posts/272943/revisions
 
12:36 PM
@Duga No AI.
 
0
Q: Write conditional expression better

AngularDebutantI have the following code function x () { return a ? (b ? 'result2' : 'result1') : 'result1'; } Is there a better way to combine these two conditions into one?

 
possible answer invalidation by Tamal Banerjee on question by Tamal Banerjee: codereview.stackexchange.com/posts/272927/revisions
 
1:05 PM
0
Q: Code Structure for FastAPI and Celery Optimization

RichardSI have a FastAPI app that uses Celery and depends on DB transactions. I'm a little confused as to where the DB transaction should occur--Whether it should be run inside the Celery task definition, or whether it should be run in the endpoint (route) definition. I expect this endpoint to be simulta...

 
1:33 PM
possible answer invalidation by Milos on question by Milos: codereview.stackexchange.com/posts/272943/revisions
 
2:10 PM
Please understand that this community is about specific questions on programming. "Here is my code, please review that, and identify any bugs and so on", isn't a valid request here though. You might turn to codereview.stackexchange.com, but you have to read their help center content really careful before writing up a question there. — GhostCat 18 secs ago
 
2:26 PM
@GhostCat in fairness, it could've been code review or some other site, but... definitely not this one. But to your point, you are 100% correct because I remember being rejected on the "recommended" site as well. But I see a lot of question related to algorithms in CS site, so if the OP is looking for that, it might be an appropriate site IMO. — hfontanez just now
 
Monking
@Duga OP manually rolled back previous edit which was AI, per comment thread on an answer
Wow @TobySpeight I’m somewhat surprised it was easy to persuade about short answers without linking to a meta post
 
Too busy today to go searching Meta - sorry
 
2:54 PM
first, yes, you are right, it's initially null. you app is going to render once before the useEffect in your context is going to be called to fetch from your localStorage. Second, I am definitely seeing a few things that could be cleaned up to make some things flow more smoothly and might be worth a post over in codereview.stackexchange.comBastiat 41 secs ago
 
 
1 hour later…
4:16 PM
@NikosParaskevopoulos my intent was to extend the "doX" methods directly, so i didn't want the filters to be involved. Anyway, the only public method is the "service()" method (which makes sense since HttpServlet implements the Servlet interface) so i guess the best choice would be to decorate the "service()" method instead of the "doX" methods. In the end i came up with inheritance with this solution: codereview.stackexchange.com/questions/272887/…cidra 32 secs ago
 
5:25 PM
0
Q: How do you efficiently calculate YTD values in a pandas dataframe?

Mycchaka KleinbortI implemented the following code to calculate the YTD sum in Pandas: def calculateYTDSum(df:pd.DataFrame)->pd.DataFrame: '''Calculates the YTD sum of numeric values in a dataframe. This assumes the input dataframe contains a "quarter" column of type "Quarter" ''' ans = ...

 
5:51 PM
0
Q: c# Lambda updating a list value in Dictionary that has a list that's inside it

StealthRTHey all I have a issue with trying to use Lambda with my variable simply because its not a Key, value type of setup. Meaning I don't have the typical Dictionary<string, int>. I have a Dictionary<string, list<int>>)-kind of setup. public static Dictionary<string, List<int>> sizeOfPhotoBoxes = new ...

 
6:35 PM
Monking
 
 
1 hour later…
7:53 PM
 
8:14 PM
If you have code that works but you want it to be improved, then a) please include it in your post to make a minimal reproducible example so that we can offer specific help and b) consider posting to Code Review instead as that is the site for code review — G. Anderson 51 secs ago
 
8:53 PM
0
Q: Go logging wrapper that adds log levels

CageFuryThe package is essentially a small wrapper around the stdlib logger that provides a very simple, easy to use logger that can toggle between different log levels (DEBUG, INFO, WARNING, ERROR). Log levels control which log messages actually get written to the io.Writer. Also adds the ability to get...

 
9:19 PM
0
Q: Django Custom User Model

saadsawashThis is my second Django project for an actual client and I want some review on one of my important models, this custom user model exists in most of the projects I do, so I want to perfect it. from phonenumber_field.modelfields import PhoneNumberField from django.utils.translation import gettext_...

 
9:45 PM
0
Q: How can I make this actions triplets computer more efficient and cleaner

ShellZeroI have these game logs which I need to clean, process and find the frequency of game actions. These game actions should be a triplet. In the below given list, "1|123|/jump", "2|123|/flip", "3|123|/crouch" is a triplet and also "2|123|/flip", "3|123|/crouch", "8|123|/dance". Similarly, "4|999|/jump"

 
10:24 PM
You should ask on code review — mozway 8 secs ago
@mozway because of "the code still gives some errors" the post would not be on-topic on CR. Please only refer posts with working code. — Sᴀᴍ Onᴇᴌᴀ 14 secs ago
 
11:12 PM
0
Q: Collatz conjecture with plots

DilaI have an assignment where I write a Collatz Conjecture program for a series of starting values from 1 to N and make two plots: number of iterations vs starting value and computed numbers vs starting value. The assignment prompt is: Now modify your program so that it computes 3 vectors. The firs...

 
11:29 PM
0
Q: Collatz conjecture with plots

DilaI have an assignment where I write a Collatz Conjecture program for a series of starting values from 1 to N and make two plots: number of iterations vs starting value and computed numbers vs starting value. The assignment prompt is: Now modify your program so that it computes 3 vectors. The firs...

0
Q: zero values in dataframe - python

evehey everyone I have a project to do and I will be glad to receive your help the dataframe I am working on is relatively large from Kaggel, it has 250 columns and 22000 rows, the data are from financial statements of companies traded on the stock exchange and in some of the columns / rows I have z...

 

« first day (3177 days earlier)      last day (857 days later) »