« first day (3681 days earlier)      last day (329 days later) » 

12:10 AM
REFRESH! There are 7311 unanswered questions (90.5075 answered)
 
0
Q: Using header files to include functions in wrapper

Dushyant PatilI am trying to write different functions in multiple c++ files for a project of mine and I want to use these functions in a wrapper.cpp file in the same directory (Similar to python import). I have written following placeholder example using a .h , .cpp and a wrapper.cpp file. But at the time of ...

 
 
2 hours later…
2:25 AM
0
Q: Shell script to download multiple files from different URL's using for loop to download and verify files on each invocation

Chris StoneThe expected behavior of the script is to download a file from a URL if the file is not present in the current directory and compare the md5 checksum of the file against the md5 checksum from the server. If the file is present then perform the verification again and download the file if the verif...

 
 
4 hours later…
6:41 AM
Being pedantic (and a little facetious...), a wing won't fall off a plane in flight. The wing is generating lift, therefore when first severed the wing will rise with the weight of the body no longer holding it down... so (initially at least) the plane falls off the wing! ;-) — John yesterday
Aviation has plenty of pedants that would love it here if they knew how to code.
 
7:25 AM
Please read How to Answer and note well that this is not a discussion forum. If the question is missing information necessary to answer clearly, it should be closed, not answered. Do not use the answer section to ask for missing information (since questions must have the appropriate information before they are suitable for the site) and do not use it simply to offer code improvements (this is not codereview.SE, and that is not answering the question). As for the backslashes, they are probably a result of switching between Markdown and WYSIWYG modes in the new question editor. — Karl Knechtel 30 secs ago
 
8:18 AM
0
Q: Increase / decrease counter in a thread safe way and perform action when counter is zero

tigrouHere is the code that I want to review : int counter; void Increase() { if (Interlocked.Increment(ref counter) == 1) { //do something when counter goes 0->1 } } void Decrease() { if (Interlocked.Decrement(ref counter) == 0) ...

 
 
1 hour later…
9:34 AM
0
Q: JS script to allow front-end users to change the number values in the given table using the prompt

VicardoI am running a web application with a price table that would allow front-end users to bulk add the distribution markup to the items prices and then select a different currency by clicking the appropriate buttons and entering the value in the prompt. The values entered should appear on the buttons...

 
10:06 AM
@PervonZweigbergk what i don't understand is, how did the alias pass codereview? was there any codereview at all during the development of PowerShell? how could they find 2 people to agree the alias was a good idea? — hanshenrik 39 secs ago
 
10:49 AM
0
Q: String iteration algorithms performance in jQuery Terminal

jcubicI have a JavaScript library jQuery Terminal and I have internal formatting that is used to change colors and style of the text that look like this: [[b;red;green]this is bold red text with green background] I have a main function that is used to process strings with formatting. The main function...

 
11:35 AM
Isn't this the sort of thing that code reviews are for? — Paul Sanders 55 secs ago
 
12:19 PM
@hanshenrik I'm not sure exactly how early, but the curl -> Invoke-Webrequest alias has been in Powershell for a very long time. I wouldn't be surprised if it predates Powershell 1.0. Decisions taken that early in a project (especially in an unofficial project like Powershell started out as) are not neccesarrilly subject to code review. — Per von Zweigbergk 39 secs ago
 
 
1 hour later…
1:40 PM
You have to check in code reviews anyway, because developers are too creative. What if I add a symlink and then include <not_bits/shared_ptr.h>? — BoP 23 secs ago
 
2:10 PM
1
Q: Copying allocated data into std::map in a smart way

uniqueI come across a problem and I solved it. The solution works but I have some feelings that there is something wrong with my solution/code. To be clear, let's assume that cars on the race track transmit their velocity periodically. I want to store only the final velocity data of each car in a std::...

 
2:35 PM
0
Q: Applying cointegration function from statsmodels on a large dataframe

BegoodpyI need to apply the coint function from the statsmodels library to 207 times series with 1397 points each, two by two. Currently, it takes between 35-40 minutes on my computer with an Intel 24 Cores CPU, last generation. I tried to use Cython, or Data processing hacks from this article but I get ...

 
possible answer invalidation by unique on question by unique: codereview.stackexchange.com/posts/285305/revisions
 
2:52 PM
possible answer invalidation by unique on question by unique: codereview.stackexchange.com/posts/285305/revisions
possible answer invalidation by unique on question by unique: codereview.stackexchange.com/posts/285305/revisions
 
0
Q: How to remove the hotspots from given image by using Python and opencv?

Alok MaityIn the picture below there are some regions which are very bright (i.e. more white). Some bright regions are wide and some are narrow or thin. The red box covers one such wide bright spot, and blue box covers one thin bright spot. Thin bright spots are called edges and wide bright spots are calle...

 
@Duga Rolled back by @TobySpeight
 
There is no conceptual issue with it. It is one way to do the thing, which is totally fine and won't be something I would flag if I saw it in a code review. — Eugene Sh. 22 secs ago
 
4:01 PM
codereview might be a better SE site for this. (And you don’t necessarily need to escape newlines; there are lots of nicer ways to break up a long line of Python code.) — Samwise 11 secs ago
 
4:16 PM
@Samwise The code review site does not deal well with out of context code. The one of the criteria used on code review to close questions is missing review context. — pacmaninbw 24 secs ago
 
4:31 PM
Monking
 
Monking
 
5:39 PM
Monking
 
 
2 hours later…
8:03 PM
0
Q: Implementing The Decorator Design Pattern in C++

Sc2046I recently tried to implement the decorator design pattern in C++. Here is the code in full: #include <algorithm> #include <iostream> #include <memory> #include <numeric> #include <string> #include <vector> //Interface for items of food class Food { public: virtual float Price() const = 0; /...

 
8:49 PM
@CaptainObvious @TobySpeight Code not working as intended.
 
0
Q: Streaming Parquet file in chunks for write operation

av abhishiekI am taking beginner steps into DE and was tinkering with writing an ingestion script which does the following tasks: Reads data from a source (in this case a remote parquet file) Writes it to local for now, this can be changed to a remote location like s3 or other any database. For this task I...

 
 
1 hour later…
10:11 PM
 

« first day (3681 days earlier)      last day (329 days later) »