« first day (2962 days earlier)      last day (51 days later) » 

12:02 AM
RELOAD! There are 7631 unanswered questions (89.4196% answered)
3 hours later…
2:46 AM
To get the count of records in SQL there's the count() aggregation function. You should consider to use that instead, like SELECT count(*) FROM users. This promises to be way more efficient. This question however doesn't really fit here. It should better be deleted here and posted at Code Review instead. — sticky bit 58 secs ago
3:03 AM
Q: SqlAlchemy - Multiple Columns for func sum

Charlie ChapCurrently the query that I am using is as follows: Model.query.with_entities(Model.m_t, func.sum(Model.a),func.sum(Model.b), func.sum(Model.c),func.sum(Model.d), func.sum(Model.f)).group_by(Model.g).\ filter(*queries)...

1 hour later…
4:07 AM
possible answer invalidation by Govinda Regmi on question by Govinda Regmi: codereview.stackexchange.com/posts/262979/revisions
1 hour later…
5:08 AM
Q: Tiny attempt at a virtual machine in Nim

LearningPythonI am attempting to learn the Nim language by making a small and simplistic virtual machine. I am a beginner at programming in general, not just Nim. It is intended to interpret some basic instructions. The entire parsing lexing process consists of splitting the inputted code by spaces (not whites...

Please go through the intro tour, the help center and how to ask a good question to see how this site works and to help you improve your current and future questions, which can help you get better answers. You seem to have confused this with some sort of code review or tutorial site. — Prune just now
1 hour later…
6:38 AM
Nice suggestion, @Jarod42 OP, since you are new hear, you might not be aware of our code review site. When your code it working, it can be interesting to post it there & see how others suggest improving it - maybe not this one, as it is quite short, but for future reference — Mawg says reinstate Monica 56 secs ago
@MawgsaysreinstateMonica As far as I know, codereview rejects code which does not work as expected, aka "broken code". — Yunnosch 13 secs ago
Q: please help me to learn better OOP programming

Mostafa KeshvaryI start learning OOP programming style in PHP After end of the course; I try to simulate a simple calculator in OOP style. Can some one check my code and give me a feedback? Thanks geniuses. //Calculator Class <?php use lib\calculator\classes as classes; spl_autoload_register(function ($classNa...

7:12 AM
Q: Typescript type checking of hierarchical types

TomI want to create a hierarchy of Typescript interfaces because I think classes would be an overkill in my case. The main obstacle is checking if an object has a specific type. I solved it this way: enum AnimalId { Mammal = 1, Fish = 3, } interface BaseAnimal { id: number categoryId: Anima...

2 hours later…
8:57 AM
I’m voting to close this question because it belongs to: codereview.stackexchange.com0___________ 58 secs ago
9:49 AM
I copied the code exactly, and it always returns 1, even for an input with 500,000 characters. That's because of the broken ==true test. Once that's fixed, it works fine, even with a million characters input: yes One | tr -d "\n" | head -c 1000000 | ./67955465, so the problem is likely with your environment. BTW, once you have it working, there's a lot of problems that a good Code Review could help you improve. — Toby Speight 56 secs ago
10:06 AM
Q: Dilemma over authenticity of gcov generated code coverage percentage where unit test are not technically correct

user1228352When I joined my company as a new comer and I was exploring the unit test suite of the product code. It is using gtest framework. But when I checked all the tests, they were testing the whole functionality by calling real functions and asserting expected output. Below is one such test case as an ...

2 hours later…
12:05 PM
This question may be more suited to Code Review than the Stack Overflow section Stack Exchange. As they say in their tour, "Code Review is a question and answer site for seeking peer review of your code.' — traktor 54 secs ago
Q: c++ program with 2 classes

user16060425Im making this project from few days , and now i need little help because i am struggling. The task says II. Define a student booklet class CStudBook that inherits CStudent with a member data container of the student's grades. To implement a constructor with a filename parameter from which to ini...

12:35 PM
Q: Kotlin extension function in dto vs pojo dto in hexagonal architecture

tryingHardfrom kotlin page we can read: In particular, when defining extension functions for a class which are relevant for all clients of this class, put them in the same file with the class itself. When defining extension functions that make sense only for a specific client, put them next to the code of...

Before you post at Code Review, make sure to read A guide to Code Review for Stack Overflow users, as some things are done differently over there - e.g. question titles should simply say what the code does, as the question is always, "How can I improve this?". Be sure that the code works correctly; include your unit tests if possible. You'll likely get some suggestions on making it more efficient, easier to read, and better tested. — Toby Speight 9 secs ago
1:01 PM
Does it work? Yes. Is it reasonable? I don't think so. When should really avoid use panic for flow control uses, and it would make much more sense if you just return false when the two equal in the function that is passed to SliceIsSorted. Anyway, this belongs to code review site. — leaf bebop 54 secs ago
1:57 PM
Since your current code is a working one, it would be better to post it here codereview.stackexchange.comGautham M 15 secs ago
2:38 PM
@SᴀᴍOnᴇᴌᴀ I did a code review on SO and a VTC on code review.
Q: Each item of the array must loop and show message for some time (duration) and repeat msg each value of delay

РусланIs there a better way to loop item of an array using forEach and make repeat it using setTimout/Interval or somethin' else? I need that each item of the array was repeated each value of delay for some time (duration) const arr = [ { delay: 1_000, duration: 3_000, msg: "Hello World" }, //repeat ...

3:04 PM
Q: Find the farthest smaller number in the right side of an array

Jitesh MalipeddiGiven an array of size N. For every element in the array, the task is to find the index of the farthest element in the array to the right which is smaller than the current element. If no such number exists then print -1 This question is taken from here I came up with the following approach, Crea...

3:22 PM
This question is more suitable for codereview.stackexchange.comNetwave 18 secs ago
Q: Simple Python Recursive Web Scraper

AbbasTry to make a simple recursive web scraper using python.Idea was to grab all the links,titles and tag names. Website: https://lifebridgecapital.com/podcast/ Course of Action: Grab all the tags links from the Website. tag_words_links(Website) --> [https://lifebridgecapital.com/tag/multifamily/][2]...

4:20 PM
4:55 PM
Q: How to best motivate posters to migrate their question to another site?

G. SliepenIt often happens that people post a question that is not suitable for the site they posted it on, but should rather go to another Stack Exchange site. Sometimes this is made easy using some of the options in the vote to close menu. Sometimes that is not an option and you just have to write a comm...

5:07 PM
Q: Does unaliasing have an effect to the security of a shell script which just uses full paths?

Jens KubiezielRecently I had a discussion about code security. Someone argued that one should set PATH, IFS, umask in a script and delete existing aliases (by using unalias) to improve the security or to mitigate weaknesses. The script itself is used to generate invoices. So it reads an INI file, creates a LaT...

@pacmaninbw ah- that “question” seems too broad for SO
2 hours later…
7:21 PM
This belongs on codereview.stackexchange.com, not here. — Will Da Silva 20 secs ago
Ah, i'm sorry Will ! I didn't know about codereview.stackexchange.com, I will delete. Thank you @quamrana I'll take a look at the link — sleepyowl 35 secs ago
7:36 PM
Q: Have I implemented thread safety for this cache?

sleepyowlI've written a simple LRU cache class and I am trying to make it thread-safe. My thoughts are that I just need to wrap the code that updates the ordered dict in a lock so that if any thread is writing to the ordered dict, all other writes/reads need to wait. Is that correct? Also, what is the bes...

7:51 PM
8:03 PM
possible answer invalidation by Toby Speight on question by sleepyowl: codereview.stackexchange.com/posts/263008/revisions
@Duga Code-fence
8:36 PM
This belongs on codereview.stackexchange.com, not here. — Will Da Silva 13 secs ago
8:48 PM
why exactly would this belong on codereview? — Conner M. 39 secs ago
1 hour later…
10:06 PM
Q: Draw shapes using the Html5 Canvas api

irosgrimA while ago I decided to start working on a project that will keep me busy for a while and will help me sharpen my programming skills. I do not underestimate the work behind apps like adobe xd, sketch.app, or figma but I just want to understand how those apps work and if I can do something simila...

1 hour later…
11:20 PM
Q: MVC design pattern QT

pennyBoyI am currently trying to implement a MVC design pattern. I prefer an approach where the model and the view are independent from each other as well as from the controller. As shown in the image. I understand that this topic has been talked about before but based on the research I am still not enti...

11:51 PM
I think this question is better suited for the Code Review Stack Exchange website — Elitezen 53 secs ago

« first day (2962 days earlier)      last day (51 days later) »