« first day (2360 days earlier)      last day (24 days later) » 

12:00 AM
RELOAD! There are 6209 unanswered questions (90.0793% answered)
 
 
2 hours later…
1:56 AM
0
Q: Django Python increment database value using model save function

WMRamadanI'm looking for a more efficient way to increment the already saved value in the database by the value returned to the model from a form submit. def save(self, *args, **kwargs): l1 = Model.objects.filter(pk=self.pk).values_list('list_1') l1n = [l1r[0] for l1r in l1] self....

 
 
1 hour later…
3:01 AM
I think you may want to take working code over to Code ReviewAnthony 42 secs ago
 
3:17 AM
0
Q: Get an object with null values from an array of nested objects

a2441918I have an array of nested objects. How do I get an object with null values using only a particular key in the array of objects? let headers = [{ title: 'Arun', id: 'arunId', onClick: 'onClickArun' }, { title: "George", id: 'georgeId', onClick: '', children: [{...

 
 
3 hours later…
5:50 AM
Is your approach malfunctioning? If not, this might be more appropriate for Code Review than for Stack Overflow. If it is, please describe the problem you have. — JaMiT 47 secs ago
Is your approach malfunctioning? If it is, please describe the problem you have. If not, this might be more appropriate for Code Review than for Stack Overflow. Or maybe the question could be improved (for SO) if you explained why you're not sure if the code is good? What looks wrong to you? — JaMiT 1 min ago
 
6:40 AM
Monking
 
7:03 AM
i have tested, your code works, but its slower than @Divakar suggested [codereview.stackexchange.com/questions/132914/…Jingles 43 secs ago
 
7:20 AM
-1
Q: Haskell Graphing Module (Gloss)

Alex FI've been slowly learning Haskell over the past few months. I made a small module to graph functions using Gloss, and I would like feedback on how idiomatic it is (looking for ways to simplify using standard functions and to make it more pointfree). Graph.hs module Graph (graph) where import G...

 
 
1 hour later…
8:21 AM
Monking
 
 
1 hour later…
9:41 AM
0
Q: Event loop in C++

Luke SkywalkerWriting an EventLoop in C++. Few requirements, from a user perspective: Must be simple to use (as simple as the Javascript event loop) No type casting, no complex registering of event handler. Plain and simple API. Event handlers have the proper event type passed to them as reference. Should be...

 
 
2 hours later…
11:42 AM
0
Q: Implementing 3Blue1Brown's description of Fourier transform in Python+numpy

FoadI have implemented the 3Blue1Brown's description of Fourier transform in Python+numpy for irregular and unsorted data, as described here. import numpy as np import matplotlib.pyplot as plt def polarToRectangular(radii, angles): return radii * np.exp(1j * angles) def frequencyGenerator(tim...

 
12:41 PM
@CaptainObvious 2 more VTC for lack of context.
 
Monking
 
possible answer invalidation by mdfst13 on question by Kunjan : codereview.stackexchange.com/posts/229297/revisions
 
1:28 PM
@Mast 1 more
Monking
 
1:39 PM
@Duga Fine
 
1:56 PM
While I'd like to help out this poster, there are some obvious problems as far as this site is concerned, LCC. codereview.stackexchange.com/questions/231023/…
Note: whoever VTCed based on authorship is incorrect.
 
2:12 PM
This sounds like a better fit for codereview.stackexchange.com, though definitely check their help section regarding off-site links vs. posting code. — David 31 secs ago
 
2:32 PM
@evolutionxbox. I tried doing that also. But there are so many tags that it looks very messed up and the code reviewer wasn't very happy with that style of coding. — Tanzeel 8 secs ago
Why not talk to your code reviewer about how to approach this? — evolutionxbox 13 secs ago
@evolutionxbox Many people don't have a code reviewercharlietfl 38 secs ago
@charlietfl I’m aware of this. The answers to this question are vast and opinionated. If the OP has a code reviewer they should communicate and think of a solution that works for them. — evolutionxbox 37 secs ago
 
3:03 PM
-1
Q: Who can verify my implementation of react menu?

Миша ЧулейI’m studying REACT on official documentation and on the course at Udemy. I want to create an online store, first I made a small template for the site menu. Who can check the code and give feedback so that I could make the menu and the online store better? Thanks. https://github.com/Quintis1212/r...

0
Q: Brackets vs IDLE python, why Brackets nor work?

GrunMaybe stupid question but i have Brackets with Source Scripts i can run python scripts in console normal but now i try this code: from tkinter import * t = Tk() t.title("Wybierz przycisk") t.geometry("300x350") print("Done") In Brackets i see only "Done" without any window, in IDLE everything...

 
3:25 PM
It could be done a lot cleaner, with a lot less duplication (caching objects as variables, rather than searching the DOM every time would be a good place to start), but regardless, this question is best suited on codereview.stackexchange.comArcher 47 secs ago
I'm voting to close this question as off-topic because it should be posted on codereview.stackexchange.comArcher 48 secs ago
 
4:03 PM
-1
Q: Python/Pygame Graphical RPG Game

user12006555I have created a small RPG game using Python + Pygame, as well as a simple map editor, which I won't include the code for here. All the code and assets can be found in this Github Repo: https://github.com/T0MGithub/Python-RPG. I wish to expand the game in future to include actual gameplay as we...

0
Q: Javascript code for select input

FidoHi friends i have this code for select input change, i need some good advice if this code is ok like that or is a way to optimize this code? thanks! javascript: $("select[name=sectiuni]").on("change", function () { if ($(this).val() === 'Solo') { $('#mini,#copii,#juniori').hide(); ...

 
4:55 PM
possible answer invalidation by Fido on question by Fido: codereview.stackexchange.com/posts/231044/revisions
 
5:24 PM
1
Q: filesystem create a folder

1221I got a mixture of two languages ​​C and C ++ The code finds the folder my documents and creates additional folders in it when the program starts, I found no other way to implement this better. I also did not find any ready-made example where all this has already been implemented so as not to ma...

 
5:50 PM
possible answer invalidation by Edward on question by Mazdak: codereview.stackexchange.com/posts/231000/revisions
If anything, you’ll want to ask this at codereview.stackexchange.com. But not in its current form, you’ll have to post a reasonably sized chunk of code as part of the question, not somewhere else. — deceze ♦ 1 min ago
No, questions on Stack Overflow should be about one problem and one specific problem in your code. Again, there is a separate sibling site for code reviews, but read their posting guidelines (too) before a king there. — tripleee 33 secs ago
 
6:31 PM
this question is not a good fit for StackOverlow. Maybe the codereview exchange would be a better fit!? — Daij-Djan just now
You might want to ask this question on codereview.stackexchange.comProgman 28 secs ago
 
0
Q: Docker-compose for task-based flask api with redis and rq

SumNeuronMWE Repository here I am not a docker guru or expert in flask or redis. However, I need to leverage these technologies. I managed to cobble something together that works and would like to submit it for review. The linked repository has three main directories backend: the task-based flask api ...

0
Q: Pattern decorator with template class

user209470I'm trying to create a generic class for decorator pattern. I successfully did it with the example code by metaprogramming: #include <iostream> struct Action1 { }; struct Action2 { }; class Classe { public: // Default template. template<class U, class ...Args> auto go(Args ...args) { ...

0
Q: Made a simple login and register script with c# console app. I'm new to programming and looking for feedback

nozpherHey guys i'm very new to programming and C# iv had some homework this weekend to create a simple string check, I'v expanded upon that and came up with this, This is way more complex than what was asked but I wanted to push myself and see what I can learn I would like feedback and criticism for w...

 
7:04 PM
-1
Q: Get syntax error what the trouble?

user211744This is not my code as I'm so newbe to write such sophisticated in my opinion constructions but when I execute it I get syntax error Code: import itertools as it, re data = [[*re.findall('^\s+', b), *re.split('(?<=[A-Z])\s+', i)] for b in open('os_stuff.txt') if not (i:=re.sub('^\s+|\sStart\n$'...

 
7:44 PM
0
Q: Encrypting credit card data

Jonathan WoodI need an encryption algorithm that would be secure enough to store credit card data. So it should be reasonably secure. Here's what I've come up with. I'd appreciate any constructive criticism. public class Encryption { // Algorithm meta sizes (in bits) private const int SaltSize = 256...

0
Q: Permutation generator with OR operator

gxowrrqgcProblem: Given a vector of strings, I want to print out all possible permutations where the strings may contain an OR operator (the | character, as in regular expressions). Example Input: the strings race and car|horse Example Output: race car race horse car race horse race This code uses -s...

 
8:19 PM
please check that answer that demonstrates how you could proceed to optimize the code codereview.stackexchange.com/questions/231000/…mh-cbon 21 secs ago
 
-2
Q: Reading from .txt files & number crunching

Turgor PressureWarning: This program can not use any code outside of what a beginner should know. So do not add any additional libraries. Please keep the code simple. I am only a novice. Thank you This program will search a user-selected txt file for any integer the user provides. The only valid file names are...

 
8:45 PM
-1
Q: Trouble with iOS Swift calculator concatenating

jpsweeney94I'm trying to get a calculator app working in swift (just started learning) but I'm running into troubles. Not looking for someone to hand me the answer, but hopefully provide a high level view of how I should be piecing out this code or how I could approach it differently. I can't figure out ho...

 
 
1 hour later…
9:45 PM
0
Q: What is this php code doing? I am new and trying to learn

Tom ColganNeed to understand the below code what it does and where it is posted to function getUsernameFromEmail($email) { $find = '@'; $pos = strpos($email, $find); $username = substr($email, 0, $pos); return $username; } if(isset($_POST['submit']) ) { //need to know where is all this ...

0
Q: AniPop - The anime downloader

T145This is a recreational script made to update my home server w/ the latest season of anime from HorribleSubs. I'd like to know if there are any obvious syntactical and performance improvements, details on my usage of Selenium and BS4 and whether or not this usage is proper. Windows Setup Instal...

 
 
1 hour later…
10:53 PM
There is no error here. This is off-topic on stackoverflow. Better to ask this kind of question on codereview.stackexchange.comValentino 26 secs ago
 
11:26 PM
0
Q: Is there a way to make the condition for log output common in the gulp's method chain?

alihasanIf the default task is executed here, the file name to be compiled is passed to the argument of the CompileSass function. When the sass task is executed, the callback function to be executed at the end is passed by gulp. The CompileSass function logs the file name when it is passed. Also, when a...

 
This sounds like it may be a better fit for codereview.stackexchange.comDavid 42 secs ago
 

« first day (2360 days earlier)      last day (24 days later) »