« first day (2366 days earlier)      last day (1643 days later) » 

12:00 AM
possible answer invalidation by Shift_Left on question by Shift_Left: codereview.stackexchange.com/posts/231209/revisions
RELOAD! There are 6189 unanswered questions (90.1216% answered)
 
@Duga manually rolled back code change, since edit also added context
 
12:23 AM
optimization and code review type questions are generally too subjective to be on-topic for Stackoverflow community members to address. I would advise you to post in codereview.stackexchange.com for that sort of feedback and guidance. — Brett Caswell 19 secs ago
 
12:35 AM
0
Q: Python AsyncIO pipeline

Illia AnanichI wrote a small snippet to implement asyncio Pipeline - object that connects together Layers, and lets them create and pass through objects. Each Layer could perform some IO to create/store an object or calculate something to create on object on the go or remove an object. Layers are connected wi...

 
 
1 hour later…
1:35 AM
@SimonForsberg 8
 
 
1 hour later…
2:38 AM
0
Q: Initialized class with its corresponding method

KeithI have a class IpHelper and that class has a one method Get() that returns string. Is it good that I did the initialization like this? string IpAddress = new IpHelper().Get()

 
3:29 AM
Improvements to already-working code is more suited to codereview.stackexchange.com — Raymond Chen 13 secs ago
 
1
Q: Is this question on-topic for Code Review?

Siddharth RoutI need some guidance from the community. I came across this question. The question has a "working code". The user is asking us to review the question and help him make it more efficient. And this is what the 'Help' of CR says... Is this question on-topic for SO or CR?

 
4:00 AM
0
Q: Finding Intersection between Spine Curve and Created Curves

Jacob SaxingerI created a spline curve and would like to find the intersection points of the curves I have created. I tried using the np.intersect1d in my for loop and created my 8 array that I would have hoped to be a 1 long; however, they are empty arrays...help would be appreciated plt.figure() xnew = np....

 
4:23 AM
0
Q: Toggle between 0 1 based on condition in a loop

BiLALI am new to programming. I just need an optimal way to have the same result of my following code. I am trying to create a logic that each time the loop runs j and k toggles between 0 and 1 and if the loop goes above 1 then j and k if they are 1 becomes -1. for example, j k 0 1, 1 0, 0 -1, -1 0 ...

 
 
1 hour later…
5:24 AM
0
Q: Intersect Method Slows Down Code In Large Selection Of Cells

JuhiI have picture in certain cells. When I run following code in smaller number of selected cells, it runs correctly but when the number of selected increase - say above 1000, then code slows down a bit. Can it be optimized? Sub shapesincells() Dim sh As Shape, isect, rng As Range, n As Integer, ar...

 
 
2 hours later…
7:35 AM
possible answer invalidation by Robin on question by Robin: codereview.stackexchange.com/posts/224012/revisions
 
8:29 AM
0
Q: Getting index of arguments in arrayList java

Emil BədrəddinliI have an arrayList like below: int num_of_car = sc.nextInt(); for (int i = 0; i < num_of_car; ++i) { int width_car = sc.nextInt(); int height_car = sc.nextInt(); cars.add(new Node(i + 1, width_car, height_car)); } it creates multiple Node ob...

 
Monking
 
 
1 hour later…
9:31 AM
-1
Q: Distribution of requests that performe by selecting two requests that will be dropped

Miguel Angel Frias Your server has received a package of N incoming requests. Handling the K-th request (for K from 0 to N − 1) will take A[K] seconds. The load balancer has to drop two acquired requests and distribute the rest of them between three workers in such a way that each worker receives a conti...

 
10:19 AM
Monking
 
11:09 AM
Monking
 
12:00 PM
Monking
 
That kind of question would be better suited for codereview.stackexchange.com. It is actually off-topic on stack overflow. — zvone 9 secs ago
 
12:16 PM
-1
Q: My first project in Python Curses

noibeThis is my first TUI program implemented via the curses module for Python. I use the program to input some data (numbers only) via the terminal, which are then saved to a .txt file. Any kind of feedback is highly appreciated, especially regarding the way I input data (I basically catch every ch...

 
12:36 PM
0
Q: Recursively find files of certain types and log their paths (C++)

EmptypyhoI've written a function that takes a list of extensions and recursively finds files of those types, and logs their paths to a text file. Usage example (finding image files in a home directory): // set up filestream for unicode const std::locale utf8_locale = std::locale(std::locale(), new std::...

 
12:53 PM
@teego1967 yes, 12 or 14 hour days are the main reason for some workplaces to moan about high staff turnover and the high cost of training... You would think managers would learn, but perhaps that is not in their job description... — Solar Mike 23 hours ago
 
1:17 PM
0
Q: Generic Select, Update and Insert methods for MySql

dr_mopsI wrote generic methods for SELECT, UPDATE and INSERT database commands in C#. They work but they use reflection and I heard that you should avoid using that. Select: public async Task<IEnumerable<T>> Select<T>(string command) where T : new() { var ret = new List<T>(); using var conn =...

 
1:45 PM
@Scheff There are some pending changes that will adapt QCalendarWidget and QDateTimeEdit to support a choice of calendar. However, I'm not sure what version those changes will appear in, because I can't find a corresponding issue on the tracker. This all seems to be part of a larger effort to improve locale support in Qt5 (see the section there on QCalendar). — ekhumoro 26 secs ago
 
1:55 PM
Questions about optimizing existing and working code are better suited at codereview.stackexchange.com. Please check this site. — sanyash 17 secs ago
 
 
1 hour later…
3:00 PM
-1
Q: How can I make this program work faster (using Horner's method)?

HemalI am trying to create a program where a user inputs two numbers - a base and an exponent, while exponent is a binary number. Then prints out the last two digits of the result. My code is working well, but according to the time execution it is not the fastest way to do it. I read a little about us...

 
 
1 hour later…
4:13 PM
you might consider putting this question on the code review site codereview.stackexchange.comDaniel Farrell 49 secs ago
I honestly do not have time to try to make sense of that code. It is also off-topic for Stack Overflow. If you really want to get comments about the code, then try on CodeReview, but make sure you first read the help section there to see what you can ask about. — trincot just now
 
0
Q: Kruskal MST without disjoint set union and find

Sidharth SamantI have been solving this HackerRank problem, which is just a slightly modified version of Kruskal's, in that, when two edges have the same weight, pick the edge which has a lower value of V1 + V2 + edge_weight (V1 and V2 are the two vertices of the edge). Given an undirected weighted connecte...

 
5:04 PM
1
Q: optimization of using boost graph library in solving system of ODE

AbolfazlI tried to use boost graph library for connection of nodes and used a system of ODE on top of connected nodes. Then I compared the code using a 2 dimensional vector instead of graph. Using 2D vector (in function kuramoto_model) is up to 6 times faster than using BGL (in function kuramoto_model_b...

 
 
2 hours later…
6:47 PM
0
Q: Class for storing shared objects

IrbisI have a scenario where many objects may need to load some resource but when a path to the resource is the same a resource object should be shared. The following simplified code presents the above concept: struct Obj { }; struct SharedObj { Obj* CreateObj(const std::string& key) { ...

 
7:37 PM
Is this not something that should have been on code review? What is the exact problem you are facing that needs community support on SO? — codein 11 secs ago
 
8:09 PM
-1
Q: C Program Code To Display Horoscopes Using Dates

Abhishek Shetty #include <stdio.h> int main() { int iDayOfBirth=0,iMonthOfBirth=0, iMultiplyDOB=0; printf("\nWrite The Day of Your Date Of Birth(1 to 31):\t"); scanf("%d",&iDayOfBirth); if(iDayOfBirth<1||iDayOfBirth>31) { printf("Please Enter T...

 
8:36 PM
Since you don't have an issue with your code and are asking for opinions on coding style, this question would probably be better placed on codereview.stackexchange.com That said, StackOverflow does have a tag for coding-style so your question may be somewhat of a gray area. — webaholik 10 secs ago
 
9:31 PM
0
Q: Improving CSS design of my web application

MercurialI wrote a fully working Angular application as a hobby. But however the designer in me is kinda dull. My request is to take a simple look at my page and suggest improvements that can be made. There are plenty of loose threads that I've left unattended like two layouts on the same page, as I got ...

 
9:52 PM
0
Q: c++17 zip iterator compatible with std::sort

DarioPHere are ~100 lines of code implementing three classes (ZipRef, ZipIter, Zip) which should satisfy the zip iterator pattern in a stl-compatible way. This means that, unlike boost::zip_iterator, ZipIter can be safely (I hope!) used in various algorithms like std::rotate and std::sort. I tried to e...

0
Q: Salaries exercise

J AdamsonHey there guys, I have just completed an exercise for uni and I would really like some feedback as I'm pretty new to using java. Areas that I could especially use some input in this instance: readability of the code, the names of the variables, the javaDoc comments, correct use of error statement...

 
 
1 hour later…
11:14 PM
0
Q: Simple User and Database Relationship

Daniel A.Hello and thanks for clicking! I'm currently studying the relationship between a database and user objects. This is a very simple program and the "database" itself is a dictionary. This will be used in a website (after studying a lot, of course, as I am fairly new to the "programming world", if ...

 

« first day (2366 days earlier)      last day (1643 days later) »