« first day (2492 days earlier)      last day (1533 days later) » 

12:00 AM
RELOAD! There are 6413 unanswered questions (90.1170% answered)
 
12:58 AM
If this is working code and you are asking for code review, there is a StackExchange site for that: Code Review. — Gino Mempin 43 secs ago
 
0
Q: Arduino test pin and store or return result; help convert working function to library

3DFabXYZ.comI created an Arduino compatible checkDevice() function for a circuit designed to enable detecting devices that are plugged in. Essentially testing if a pin is HIGH or LOW and storing up to 8 boolean results into a single Byte Basically, I am now at the point that I would like to turn everythin...

 
1:24 AM
1
Q: Rotational Symmetry Indexing in a 1D “Square” Array

OrphevsI managed to find a way to rotate a slice in-place (previous question on SO). The slice is linear, but represents a 2d square of elements. Is this approach efficient? Please check the previous question linked above if anything is unclear about the algorithm. Code enum Rotation { Clockwise...

 
That's what Code Review is for. You get other, more knowledgeable people to read over your code and make suggestions. It's a similar idea to editing and review when writing essays. We actually have a site called Code Review for that purpose. — Carcigenicate 14 secs ago
 
 
1 hour later…
2:41 AM
0
Q: Short wrapper for fetch (similar to axios)

Ryan PeschelI was looking to replace my use of axios with just fetch, but I didn't like how verbose fetch was with regard to handling JSON output (having to have a separate then call just to return the json). Unfortunately calling text() first to see if it's a JSON response and then only calling json() if so...

 
3:14 AM
@nickb The OP states that the script is not successfully saving data to the database. In other words, the script is not working as intended. This makes it off-topic at CodeReview. I have flagged your comment for removal. — mickmackusa 52 secs ago
 
 
3 hours later…
5:54 AM
 
0
Q: Assign random shift with restrictions

Ricardo DiazBased on this question Thought it was a nice puzzle Main idea: How to randomly assign shifts to employees based on these restrictions: As per the O.P.: Randomly write to cells "1" or "0" Employees' total shifts in a month can't be more than 7 and less than 4 According to a few crite...

 
 
2 hours later…
7:35 AM
0
Q: Using several file system commands repeatedly. How can the code size be reduced?

Ankit JaiswalIn the following code there are some repeated commands. How can I reduce it and concise the code. A detailed explanation of code is given below in comments. import matlab.engine # importing MATLAB Engine in Python import os eng = matlab.engine.start_matlab() # Starting MATLAB engine. from Dis...

 
7:50 AM
possible answer invalidation by Sam on question by Sam: codereview.stackexchange.com/posts/237554/revisions
 
0
Q: x86 Single Stage Bootloader

eanmosI'm learning OS development and have written a single stage bootloader that loads the kernel, enters to protected mode and finally jumps to the kernel. I'll very appreciate any feedback and suggestion about the code. I'll be definitely glad to see any suggestions on my build system (Makefile an...

 
This question probably belongs to code review. — MrBean Bremen 48 secs ago
 
8:07 AM
If it ain't broke, don't fix it. In all seriousness, CodeReview questions exist on their own site — cricket_007 1 min ago
 
0
Q: POSIX shell function to "dump" all given arguments

LinuxSecurityFreakMy today's idea was to create a POSIX shell function to dump all given arguments, typical use would be to call it from a fucntion, where you already know some arguments are not well set (empty; not integer) and this way you can inspect all given arguments in one go. It reminds me of a PHP var_dum...

 
 
2 hours later…
9:59 AM
Might have better luck on code improvement at codereview.stackexchange.comCarsten Løvbo Andersen 29 secs ago
 
10:10 AM
0
Q: Code for getting the coordinates of points on the chart

DestroyerI am a beginner android developer. I am working on one of my applications. For this application, I wrote an algorithm that is needed to obtain data that is used to build a diagram. I have a list of objects (value, date). For these objects, it is necessary to build a diagram either in the last mon...

 
This might be better suited for the code review site: codereview.stackexchange.comMatsLindh 19 secs ago
 
10:57 AM
Thanks for the answers, very helpfull @Carcigenicate. I'll be checking code review right now! — lucas 50 secs ago
If your code works without any errors and you only want comments on style, performance, security, and other possible issues, then there is a site for that: Code Review. — usr2564301 17 secs ago
Thanks, I would also like to see how someone else would do this - but will look at Code Review now :) — Bob 47 secs ago
 
0
Q: Utility for Python date ranges

BobI'm trying to write something that can take a description and a date range and return all the dates that satisfy that description. Descriptions can be anything from the following... parsed_tests_dict = [ {"Saturday": [5]}, {"Sunday": [6]}, {"Weekend": [5, 6]}, {"Weekday": [0, ...

 
11:46 AM
0
Q: Writing unit tests for function s in the constructor

Omar Farragclass Base: def __init__(self, param): self.prop = val self._validate(param) def _validate(self, param): 'Validation that uses self.prop in its checks' First of all, is it a good practice to set 'self.prop' and make the function use it, or pass it to the function? And if I want t...

 
@Gene I know, but I also believe it's a nice challenge to work out how to do it this way. If you have any performance concerns, I opened a question on Code Review SE: codereview.stackexchange.com/q/238145/162096Orphevs 14 secs ago
 
12:25 PM
0
Q: STL replacement for std::function

Yanick SalzmannI am working in a system that does not have room for an STL, however I do like the comfort of std::function. For now I am only using this to wrap lambdas, but some sort of std::bind replacement is also on the roadmap. Lets look at the usage first: function<void (bool)> _click_callback; ...

 
@SᴀᴍOnᴇᴌᴀ Ewww...
 
1:03 PM
MOnking
 
Monking
 
Monking
 
2:01 PM
0
Q: Web crawler in Rust

roliszI am learning Rust. I have written a web crawler that would scrape all the pages from my own blog (which is running on Ghost) and would generate a static version of it. Because of this, I'm not interested in handling robots.txt or having rate limiting. extern crate select; use std::io::Read; us...

 
2:56 PM
I'm voting to close this question as off-topic because This question are better suited at Code Reviewstovfl 12 secs ago
 
 
1 hour later…
4:17 PM
-1
Q: Executing two databse queries concurrently in Go

jz22I would like to execute two database queries concurrently for quicker response time. Since channels seemed to be too verbose, I came up with the solution below. However, I'm not very confident about it and wanted to head your opinion and ask if there is a better solution for this. Thank you. var...

 
4:55 PM
0
Q: Extension content script multiple mouse events handling

fuatI'm writing a translate extension for firefox just similar like google translate extension. I achieve that the listening mauseup and mousedown events to get selection text and popup a div that you can click. Due to the i am new at javacript, i would like some feedback for above code. var bubb...

 
5:53 PM
0
Q: Add post to favorite in PDO and mysql

sanoj lawrenceAfter lot of research and couple of questions in https://stackoverflow.com/ i managed to create Favorite System in PDO mysql as database. Am not a developer so there may be security issue or better method with my below code. config.php try { //create PDO connection $conn = new PDO("mys...

 
6:13 PM
0
Q: Calculate when is convenient taking advantage of sorting in filtering arrays

Davide ToninI'm trying to optimize my FilterArray function so I've thought to use the sorted column (when available). The original function loops through all items in the array, make comparison in various columns and build the resulting array. In this new version, I want to reduce the number of main loop's...

 
 
2 hours later…
8:28 PM
0
Q: Multiple Processors handling by C++ Linux

ChristiePPPHere is the part of code and it's kind of long so I do not place the entire here. The program is called BP, and it allows users run 3 at the same time. Therefore, I want some reviews on the performance. Thanks. //structure part //Needed Functions in BP void bg(string, char* arg[]); void bgList(...

 
 
2 hours later…
10:00 PM
possible answer invalidation by allo on question by allo: codereview.stackexchange.com/posts/238111/revisions
 
10:24 PM
If your Scala code has no errors (runs and produces correct results) then you should consider posting it over at Code Review after cleaning it up. — jwvh 38 secs ago
 
0
Q: Snowflakes in C++

LinnyI've started learning C++ using Microsoft Visual Studio. I'm decided to create a simple GUI program that creates a "snowflake" wherever the user clicks on the screen. Seeing as how this is my first C++ program, I would greatly appreciate feedback on any aspect of my code. snowflakes.cpp // Decl...

 
11:03 PM
0
Q: Dijkstra Algorithm implementation in C++

Balog SzilárdI have implemented Dijkstra's algorithm in C++, but it seems a bit complicated since I really tried to follow the process of the algorithm as much as I could. If there's any simplification you would suggest, I would really appreciate, because this task was only for me to get familiarized with thi...

 

« first day (2492 days earlier)      last day (1533 days later) »