« first day (2920 days earlier)      last day (1393 days later) » 

00:01
@basem Please create a new question if you have a specific question or error. If you want others to review your code, please create a post at Code Review Stack Exchange. — BioGeek 1 min ago
RELOAD! There are 7544 unanswered questions (89.4566% answered)
I see not hanging out in the 2nd often enough makes me miss important events. Congrats @Mast on becoming a mod!
@SimonForsberg Agreed. Protected
Is it ok to use goto in catch? (this last will solve your design that is not clean) — Olivier Rogier just now
01:21
0
Q: C++20 : N-dim matrix version 2, broadcasting binary operators

frozencaI've improved my previous N-dim Matrix class (C++20 : N-dimensional minimal Matrix class), adding some key feature from NumPy: Matrix broadcasting! Broadcasting is a key required feature for taking inputs with possibly different shape in matrix binary operators. https://github.com/onnx/onnx/blob/...

02:10
For code review, see Code Review. This is too broad for SO. Reference: What types of questions should I avoid asking?wjandrea 58 secs ago
 
3 hours later…
04:48
Thanks @Charlieface for the information. Posted this question on Code Review. — Akshay Gupta 18 secs ago
0
Q: How can i reduce the time complexity further for this solution?

Akshay GuptaI was trying to attempt below given challenge. I tried multiple ways to solve the problem but none of them were good enough to pass the time limit. Please advise if you have any idea to improve on this. Problem: You are visiting a building of N floors. On every floor, only one ladder of specified...

05:22
0
Q: Sime python system for a library. Tried every thing

JohnA simple software system for a library models a library as a collection of books and patrons, as per the requirements below: A patron can have at most three books out on loan at any given time. Each book has a title, an author, a patron to whom it has been checked out, and a list of patrons waiti...

 
1 hour later…
06:51
@SimonForsberg Thank you.
07:16
Since this code works (I'm assuming) this question is probably more appropriate for CodeReviewapokryfos 42 secs ago
07:35
@Lekas23 If you have already working code, and want advice about possible improvements, better ask that question at SE Code Review.. — πάντα ῥεῖ 48 secs ago
07:47
Monking
08:35
0
Q: brute force algorithm keys with 32bit block and 64bit key using OpenCL

AndynvkzI wrote a brute-force attack on passwords using video cards for any algorithms with a 32-bit block and a 64-bit key, the password is only in BCD format, in the kernel source code the TEA algorithm, the project is written in c ++ builder 2010, on a Radeon RX560 video card, a full brute-force attac...

09:22
0
Q: Simulation of a falling ball

TuleKr1sI am new to C++ programming. Made a simple simulation of a falling ball. Is it possible to somehow improve or optimize this code? What tips can you give for development? #include <iostream> #include <cstdlib> #include <cmath> using namespace std; int timeFallingBall() { static int time(0); ...

10:00
I think this might be more suited for Code Review - codereview.stackexchange.comKacper Floriański 48 secs ago
Code that is behaving correctly, but inefficiently should be posted on CodeReview.SE. — outis 45 secs ago
10:19
If the code is correct, but needs improvement, CodeReview.SE is a better place to ask. — outis 20 secs ago
10:31
If you are looking for code review, it might be better trying on Code Review. Stack Overflow main site is for help with specific problems. — blackgreen 52 secs ago
10:58
0
Q: Dijkstra's algorithm is slow. (For loops)

A. ArhI tried to add Dijkstra's algorithm to a js game. First when I got it working it was very very Laggy (5-10 fps) and the browser would crash.. After adding a lot more improvements I got it to like 50-60 fps with 200 tiles (see GRID_SPREADING in script bellow). When I turn off this algorithm I have...

11:22
0
Q: Generating Unique Subsets using Bitmasking (Microsoft)

Shubham PrasharGiven an array arr[] of integers of size N that might contain duplicates, the task is to find all possible unique subsets. Link to the judge: LINK Note: Each subset should be sorted. Example 1: Input: N = 3, arr[] = {2,1,2} Output:(),(1),(1 2),(1 2 2),(2),(2 2) Explanation: All possible subsets ...

12:00
Fixing bugs in open source projects is a great way to learn and get your code reviewed at the same time — OneCricketeer 38 secs ago
 
2 hours later…
13:30
Monking
If this is working code that you think could be improved, see Code Review. If not please clarify the problem. — jonrsharpe 45 secs ago
13:49
Do you have a specific problem/error? Otherwise, code reviews are better suited in codereview.stackexchange.comBerriel 48 secs ago
possible answer invalidation by Deduplicator on question by TuleKr1s: codereview.stackexchange.com/posts/260249/revisions
We do not do code review over here. Code Review could be more fitting. --- From what I see, this seems overengineered. The abstract classes might be unnecessary and could be dealt with using default methods (external link). --- Overall, the question smells like an XY problem. — Turing85 47 secs ago
14:11
@Duga Fixed a formatting issue.
1
Q: Process Injector using ctypes and the Windows API

CarcigenicateTo get some practice with the Windows API and ctypes, I decided to write a program capable of injecting and running shellcode inside of another specified process. An example: C:\Users\Admin\Desktop>python inject.py -n explorer.exe -s shellcode.txt Remote memory address: 0x40a0000 Remote thread cr...

14:36
0
Q: Is there any room for improvements in this code. I am new to programming(python3), learning and practising functions related to arguments recently

Oak Soe Sandef make_pizza(*toppings, **pizza_info): """Creating a dictionary for pizza information""" pizza = {} pizza_toppings = [topping for topping in toppings] pizza['toppings'] = pizza_toppings for key, value in pizza_info.items(): pizza[key] = value return pizza def show_pizza(pizza): """Showi...

ok, thank you. Sorry i did not want to ask XY-Problems or let you review my code. Thats why i did not copy the code. It is my first time designing a project alone on my own and iam a bit confused. The code works fine, i can build and manage the objects. The question is, is that design ok or a bad fault. I will check the link for using default methods but at the first look i didnt get what you mean with that? And thank you for the Code Review Link i will use that. A last question: did i handle the "trainwaggong" right? — Kvothe Rabe 20 secs ago
15:40
Is there a question? If you want code review you should go to code review, but again this is not the way to use Stackoverflow — Gealber 26 secs ago
15:51
I’ve never seen this way before. It is most likely a personal habit of the author. If seen in a code review I would flag it. — Thorbjørn Ravn Andersen 14 secs ago
I would suggest you move your question to codereview.stackexchange.comZoso 33 secs ago
16:10
0
Q: What would be a good design for a parser class parsing two different files?

AshkanI have a design question in C++. I came up with an idea, but appreciate any feedback. Description I need to parse two different files containing raw files (they have totally different set of data) and store them in different structure or class. And then i need to correlate them, which means i nee...

possible answer invalidation by Edward on question by samfrances: codereview.stackexchange.com/posts/260233/revisions
If you have working code that you're wanting to have peer reviewed for improvement, your post should be on Code Review instead - that's the entire reason that site exists. This site is for problems with code that prevent it from working correctly or at all. — Ken White 57 secs ago
16:59
0
Q: How to make my Clojure code more "funcional"?

LikepineappleI've started learning Clojure a few days ago and I wrote this code that factorises numbers. How do I make it better? Is there any way to avoid doing it with a loop? Is that how I am supposed to code in Clojure? (defn classify [n] (loop [n n i 2 f []] (cond (= n i) (c...

17:21
Seems more of a question for Code Review. From what I can see in the question, I'd say you simply created an incredibly convoluted way of storing a result in a variable. — El_Vanja 19 secs ago
17:35
I’m voting to close this question because it'd be better on codereview.stackexchange.comAlan Birtles 42 secs ago
 
1 hour later…
18:36
0
Q: C++ Incredibly Precise Sorter | Efficiency and speed of sorting algorithms

GiovachoHey Guys, I'm in the process of building a console program in C ++ that allows users to: sort a sequence of numbers loaded from a TXT file save sorted sequence in a new TXT file measure the sorting time for individual algorithm I decided to write such a program because I want to learn algorithm...

18:53
@CaptainObvious Authorship, no code.
 
1 hour later…
20:13
0
Q: Managing configs to use scripts on different computers

klmrI have some python scripts to run on different computers. To avoid struggles with different paths and filenames I made specific config-files (DConfig, AConfig and MConfig) and another script that decides which config to use. It works, but I guess, there are better ways to do this. Any ideas? impo...

21:02
0
Q: Python speed while iterating over list gives weird time output

TiRePSim currently building an algorithm, that analyses semi-large lists and data frames (about 10 000 rows). While trying out my program I realized, its kinda slow. Upon optimizing I found a weird problem: for i in range(len(rolling_mean) - 1): if rolling_mean[i] < rolling_mean2[i] and rolli...

21:35
Thanks @El_Vanja, I didn't knew code review — yoshi 9 secs ago
21:49
0
Q: Bash script for mounting and backing up VeraCrypt volumes

millerMy bash script mounts two VeraCrypt volumes, rsyncs their contents, and dismounts them. The script takes two parameters, the path for both the source and backup veracrypt volumes. I wrote this script so rsync wouldn't have to copy an entire volume if there was a single change in it. This is my se...

22:01
possible answer invalidation by klmr on question by klmr: codereview.stackexchange.com/posts/260270/revisions
 
1 hour later…
23:11
possible answer invalidation by PixD on question by PixD: codereview.stackexchange.com/posts/260174/revisions
23:31
possible answer invalidation by PixD on question by PixD: codereview.stackexchange.com/posts/260174/revisions

« first day (2920 days earlier)      last day (1393 days later) »