« first day (2380 days earlier)      last day (1638 days later) » 

12:00 AM
RELOAD! There are 6230 unanswered questions (90.0955% answered)
 
 
3 hours later…
3:05 AM
possible answer invalidation by Jamal on question by Rubics: codereview.stackexchange.com/posts/224728/revisions
 
-2
Q: Chef and rainbow array-codechef

AkashChef likes all arrays equally. But he likes some arrays more equally than others. In particular, he loves Rainbow Arrays. An array is Rainbow if it has the following structure: First a1 elements equal 1. Next a2 elements equal 2. Next a3 elements equal 3. Next a4 elements equal 4. Next a5 e...

 
 
1 hour later…
4:35 AM
Here is a list of warnings and some recommendations the code reviewer made. I'm just wondering how running in dev mode will affect performance and user experience. <a href="drive.google.com/file/d/1Sw6EUivqJ8obOSiDK3Tnesf_Y746w‌​Y4e/…> — Rusty Craig just now
 
5:12 AM
0
Q: excel vba udf: entire column as fn parameter

dactyrafficleI have a function that accepts a range as an input. It works fine when I supply the function with a range like a1:a5, but not when I use an entire column like a:a. I could always loop over the whole column (ie. a:a) but that is so slow. Here is a simple example. Function r_sum(r1 As Range) As ...

 
 
2 hours later…
6:50 AM
I'm voting to close this question as off-topic because this question belongs on codereview.stackexchange.comslebetman 44 secs ago
 
0
Q: How to call two arrays in foreach loop laravel blade?

alexI am using query builder method i have to combine these two arrays and call in foreach loop for blade table $students = DB::table('donators') ->select('*') ->leftjoin('payments', 'payments.id','=' ,'donators.id' ) ->get(); $amount= DB::table('payment...

 
7:35 AM
possible answer invalidation by Dirk Boer on question by Dirk Boer: codereview.stackexchange.com/posts/231874/revisions
 
 
3 hours later…
10:29 AM
This question is better suited for codereview.stackexchange.com. — a_guest 26 secs ago
 
10:58 AM
0
Q: Making a simple leader board in memory

Rachel DockterIm trying to think of the most efficient way to structure an in memory leader board with the ability to read a specific rank quickly. Im talking about very micro optimisations as either way it will still be fast. class Leaderboard { constructor() { this.leaderboard = []; } ...

 
11:37 AM
Good asm style is to indent your operands to a consistent column, far enough to the right of mnemonics so they're not ragged, but not too far (e.g. this codereview answer). This is an improvement in some ways (no longer too far), but now you've removed too much indenting from some. Maybe you were using tabs instead of spaces for some of them? Stack Overflow eats those; you can see from looking at your question that it's messy. — Peter Cordes 54 secs ago
 
MOnking
 
Monking
@Duga Ugh. The original question may have needed to be closed, so the answer is premature.
 
12:19 PM
0
Q: UART Logger class

Bob Kelsoi wrote simple logger class, which i want to use for debugging my embedded projects. The logger uses uart to send messages to PC. I am not so experienced, so i count on your tips and comments about how to improve the quality of this code. In uart driver i used queue for store the messages. But i...

 
1:00 PM
-1
Q: How to check the all elements in the array

Mo Mansouri want to make a method called isSorted which takes an array of integers and returns an integer value as follows: 0 if the array is not sorted 1 if it is sorted in ascending order -1 if it is sorted in descending order. public static int isSorted(int[] a) { int max = a[0]; int m...

 
If you want to see an example on how to use pack and grid, see codereview.stackexchange.com/questions/231930/…Bruno Vermeulen 44 secs ago
 
1:20 PM
0
Q: Improvement of Method to rotate [Flags] Enums

Jesse WilliamsNote: Moved from StackOverflow based on suggestion. I'm working on a method to rotate System.Enum values that have the [System.Flag] attribute set. I've tried to think of cases where there is no work to do (set to enumVar.ALL or enumVar.NONE where no rotation can occur, or when a request is mad...

 
2:20 PM
You might want to take a look at Code Review if you want someone to review your working code. — John 57 secs ago
 
0
Q: Extracting mail data out of MS Outlook's generic mailbox

AstroLehThis code extract data from generic mailbox mapped by MS Outlook I failed at recursive iteration in subfolders, so it stays as iterative one. Added ASCII encoding to deal with crazy national symbols in body/subjects. My main target is to ensure scalablity and prevent it being slow (iteration over...

 
2:40 PM
possible answer invalidation by Jesse Williams on question by Jesse Williams: codereview.stackexchange.com/posts/232098/revisions
 
@Duga Added class at my request, and the answerers request as well.
 
3:13 PM
To add to the useful remarks above, it is worth noting that you are not looking for code improvements. That would imply your code works and does everything you want it to, but you want to make the code better in some way (faster, more succinct, etc). In other words, your title is seeking a "code review", but the body of your question is asking how to add features. The best approach to your actual question is to explain what specific problems you are having. — halfer 1 min ago
 
3:27 PM
Your question is too broad. If you think there are mistakes, try testing it. Once you have working code, consider Code Review. — jonrsharpe 50 secs ago
 
3:43 PM
0
Q: base64 encoding and decoding tool

MarcoLucidiI wanted to understand how base64 encoding (and decoding) works so I implemented this tool in the spirit of "classic UNIX tools" (read from stdin, write to stdout). I'd like to get general feedback on style and implementation (hoping I got it right). Also, since I'm doing bit manipulation, shoul...

 
4:23 PM
0
Q: animal class with Threads and factory

studentaccount4it's my first time working with threads and I had this Homework to solve: Homework Text: Program a class called Animal. Animals have a spatial position that represented by an x ​​and a y coordinate (of type int). In addition, each animal must have an int-instance variable that represents the ...

2
Q: Shoe shine shop model in Rust

rogdayI'm learning Rust and a few questions did arise during translation of my C++ code to Rust. There are comments in Rust code I'd like to be answered. Is there an idiomatic way to solve this task? The task was in simulating a random process - there are two chairs, which have different processing cap...

 
4:44 PM
0
Q: How would you convert this code to best take advantage of CSS transform for panning/zooming?

Mehdi SaffarI am using react-flow-chart for a job project but it doesn't implement zoom and I would like to take the reigns and try implementing it myself. I tool linear algebra class in college but I am not very good at transformations. I feel like I could make my job a lot easier if I directly use CSS tran...

 
I'm voting to close this question as off-topic because it would be a better fit on codereview.stackexchange.comruohola 55 secs ago
 
4:59 PM
Monking
 
5:24 PM
1
Q: Can anyone give me feedback this encryption program?

Val198765I am 14 years old and I have just created an encryption program with a friend. I wanted to know if anyone here could give me back any feedback on it. Here is how the program works, Imagine you want to encrypt the word 'hi', Depending on the key that can be generated with the program, the compu...

0
Q: How well does this ECS implementation follow these principles?

JorayenI'm currently learning about Entity-Component-System architecture Data-Driven design as a way to counter bad OOP design and optimize data fetching as a CPU friendly operation. I'm trying to write a simple ECS system that tries to follows these principals: CPU friendly by storing entities/compo...

0
Q: PHP complete pagination code

K. P.I'm working on a site where you can read about different songs, listen to them, rate them etc, same with their singer. I've been thinking about how I could create a simple, yet perfectly working pagination script using PHP, and yesterday at night I came up with the code which you will see below. ...

 
 
1 hour later…
6:50 PM
possible answer invalidation by dactyrafficle on question by dactyrafficle: codereview.stackexchange.com/posts/232088/revisions
 
7:06 PM
-1
Q: Better solution to regexing string

ConnorSo currently I'm feeding in a text file which has settings of a sort that I'm saving to a class structure. I have it working although sometimes 1/2 fail to capture out of 30 or so. I was curious if anyone knew a different way I could regex a value out of a string and store it to a class. Here is ...

 
7:24 PM
@Duga Rolled back
 
8:07 PM
0
Q: strsepf() - Parsing string using strsep with a scanf-like interface

gberthvstrsepf is string parsing utility function born from the idea of using strsep and strtol with a sscanf-like interface. This is an attempt to build a safer scanf for embedded system application. Some key design choices: Will destroy its input string (by adding '\0'). No dynamic memory alloca...

 
8:48 PM
-1
Q: Command Pattern Implementation - Model Command Output

nikhilI am trying to implement an in memory file system and wanted to model the commands Currently i want to support mkdir, cd, up, dir. mkdir and cd takes the directory name as argument while up and dir do not take any arguments. I am thinking to implement the commands as command pattern and started w...

 
@Mast This is what happens when you don't maintain stuff
 
9:08 PM
0
Q: Excercise for a function that recives two integers: x and y. Return the sum of the x and y elements of the series

isratenedaLook at this series: 7, 6, 8, 4, 9, 2, 10, 0, 11, -2,... Create a function that receives two integers: x and y. If any of them are 0 or negative, or if they are greater than 255, the function should return -1 Otherwise, the function should return the sum of the x and y elements of the series....

 
9:19 PM
I see, but then it may be that your question falls under the opinion-based, off-topic questions and may very well be better served on a different platform, like codereview.stackexchange.com or softwareengineering.stackexchange.com for example... but who knows, maybe someone here will come along and post a solid answer. Good luck. — mkopriva 56 secs ago
 
9:49 PM
0
Q: Homemade Web-Scraper that feeds Perceptron with Hidden Layer (python)

Milan CapoorSo this is my first time posting here and one of my first projects in general. I’d like to start by apologising for the mess that is my code. I know that it’s really hard to parse, inefficient, and probably not idiomatic. I just don’t know how to fix it which is why I’m here. The whole thing is ...

 
10:22 PM
"There are 2 Hard Problems in Programming: Naming things, cache Invaliations and off-by-one error." A question like this is propably better asked at Code Review. — Christopher 59 secs ago
 
11:22 PM
Welcome to Stack Overflow! :-) You could also probably ask this on Code Review as that's a good place to get feedback and improvements for working code! — Ari Cooper-Davis just now
 
0
Q: CliwPw - Yet Another Python3 Password Manager

Chev_603I wrote a (very) simply Python3 password manager to familiarize myself with Sqlite3, and for fun. I am aware that there are already a variety of password managers out there, but I wanted something simple and secure(?) to replace the very insecure bashrc function that I use to generate random pass...

 
11:51 PM
0
Q: Python overflow cause by product of many probabilities, inversion of a large covariance matrix, and computation of its determinant

RockSo I have a function like this: def logp(X,m,S): # Find the number of dimensions from the data vector d = X.shape[1] # Invert the covariance matrix Sinv = np.linalg.inv(S) # Compute the quadratic terms for all data points Q = -0.5*(np.dot(X-m,Sinv)*(X-m)).sum(axis=1) # Raise them quadratic te...

0
Q: A lightweight version of std::shared_ptr<T> V2

ALX23zThis is a lightweight version of std::shared_ptr<T> called res_ptr<T> This post is a continuation of: A lightweight version of std::shared_ptr<T> Revisited the code due to review from @TobySpeight and @MartinYork. Fixed errors and implemented full support for all types of data. std::shared_ptr<T>

 

« first day (2380 days earlier)      last day (1638 days later) »