« first day (2233 days earlier)      last day (1788 days later) » 

12:00 AM
RELOAD! There are 6100 unanswered questions (89.8678% answered)
if you post on CR please read What topics can I ask about here? - note that the code to be reviewed must be embedded in the post. — Sᴀᴍ Onᴇᴌᴀ 49 secs ago
 
12:19 AM
0
Q: Make a bmp mirror image in C

MarneussI have been trying to make a mirror image of a 24 bit bmp in C, but when i start the program the image gets distorted. I have a structure for getting image width, height and all that works fine. I read that image padding should make rows divisible by 4 bytes, and have tried something with that, b...

 
 
2 hours later…
2:38 AM
0
Q: Companion object and static functions in kotlin

Ishwor KhanalIs it good idea to define static functions as compananion object in Kotlin under util nd use this way... class CustomFragmentManager { companion object { fun AppCompatActivity.addFragment(fragment: Fragment, frameId: Int){ supportFragmentManager.inTransaction { add(frameId, fragmen...

 
3:16 AM
You might want to take a look at CodeReview - but make sure your question meets the requirements of the site by checking the help section there, starting with "What topics can I ask about here?"John 40 secs ago
 
3:38 AM
0
Q: CUDA matrix class

Joshi VatsalI started to work on this CUDA C matrix class to learn both the object oriented programming in C++ and to learn CUDA. The initial goal of this project was to make a matrix class that can have almost similar syntax as MATLAB has. However, on the way I faced one big issue which was number the of h...

0
Q: Adding elements of 2 linked list in reverse order

AbrarI solved a problem with JavaScript which has the following requirements: Two non-empty linked lists representing two non-negative integers. Digits stored in reverse order Each node contains a single digit Add the two numbers and return it as a linked list Sample I/O: Input: (2 -> 4 -> 3) + (5 -

 
3:58 AM
0
Q: Explicit Song Checker

David WhiteTo stay in practice with my python I've decided to write an explicit song checker. It checks each word in the song against an array of explicit words contained in the file. I've decided not to include the words that are to be checked against, for I am not sure about the rule of having explicit wo...

 
4:21 AM
-1
Q: How's my SceneManager?

Brandon Mccurdy0 I looked up a few tutorials and made my own from a mish-mash of them. I ask because, I tend to find out that there's a far better was that won't come back to bite me later on. What I do is store the scene names in a enumeration, then create a string that will update when loading each new lev...

 
4:57 AM
0
Q: Are explicit words allowed in source code?

David WhiteI have just posted a question about an explicit song checker here. I decided not to include the explicit words. Question: Are explicit words allowed in a programs source code? If so, is there a limit to what words can be shown? If a programs source is dependent on these strings, should they be ...

 
 
4 hours later…
8:30 AM
possible answer invalidation by user3371223 on question by user3371223: codereview.stackexchange.com/posts/222269/revisions
 
9:00 AM
possible answer invalidation by Roman on question by Roman: codereview.stackexchange.com/posts/213623/revisions
 
9:18 AM
0
Q: Object-oriented Design Implementation on Elevator Sample in C#

doctorWeirdI am a newbie when it comes to Object Oriented Programming and I have read a lot of online articles and lessons so I want to try it out on my own. I've written a console app in C# and tried implementing Object Oriented Design and SOLID Principles. Although the app works. any feedback,comments, ...

 
 
1 hour later…
10:37 AM
0
Q: Showing a "back-to-top"-button after scrolling a certain amount

lampshadeI have a "back to top"-button on the page, It should be visible after the user has scrolled a certain amount*. This means I have to add or remove a class active every now and then. I have two solutions: Update the class on every scroll. Test whether the class is set/ not et and then test, whe...

 
 
1 hour later…
12:06 PM
The tag Security describes Computer Security, but not Information Security. Should I include a section in the description about it or not? I notice many questions marked with this tag are about Information Security (authorization, authentication, reliability, ..).
 
0
Q: Credit Card Validation in C

Dan SuttonI am relatively new to C programming and I am currently working through the CS50 EDX course. The problem I have solved below is for week 1 (credit). Any suggestions on how to improve this code to further my learning would be most appreciated. I feel like my solution is very clunky although it do...

 
12:48 PM
@dfhwze I'd go to meta first, as I'm not big on tag wikis. Some may disagree, or suggest splitting the tag. Otherwise you can try editing it, if it gets declined then Meta's defo the way to go.
 
0
Q: snake with pygames : legnth + positions

user48095so i'm making a snake game and i ran in to a few problems,and a fews questions. heres my code #snake : import pygame import random pygame.init() #for wing consol def print(*a, **b): import builtins, sys builtins.print(*a, **b) sys.stdout.flush() #setup taille = [700, 500] scr...

 
1:55 PM
0
Q: Java: Hashing array of strings as Merkle tree in one function

MichalI want to hash array of strings into one hash as shown on scheme on image below. But I do not want to implement some class based merkle tree. Just simple function. Do you think this is good or is there any possible improvements. public static String hashStrings(@NotNull String [] strs) { i...

 
2:15 PM
1
Q: Fantasy Game Inventory - Ch. 5 Automate the Boring Stuff

JustinHere is a practice exercise - \$Fantasy\$ \$Game\$ \$ Inventory\$ - that can be found at the end of the following page - https://automatetheboringstuff.com/chapter5/ - You are creating a fantasy video game. The data structure to model the player’s inventory will be a dictionary where the ke...

 
2:35 PM
0
Q: Continuous Fourier integrals by Ooura's method

user14717I have a PR implementing Ooura and Mori's method for continuous Fourier integrals. I used it here to compute an oscillatory integral that Mathematica got completely wrong, and then I thought "well maybe this method is pretty good!" and figured I'd finish it after letting it languish for over a ye...

 
2:55 PM
-1
Q: System.InvalidOperationException(An exception was thrown while attempting to evaluate a LINQ query parameter expression)

Blog SpotI don't know what's wrong with my LINQ query, everything looks fine but I got above error on the following code: if (!dbcontext.AndroidUser.Any(user => user.Equals(value.UserName))) Here's my complete code for RegisterController.cs. using System; using System.Collections.Generic; using System...

 
3:12 PM
This is more of a question for Code Review, but you can use for loops to check the individual combinations. — Progman 13 secs ago
 
3:24 PM
@dfhwze I agree with @Peilonrayz here, take it to meta, fight it out there.
 
3:35 PM
0
Q: loop to HTTP_Request Server Via Curl/POST

walter nuñezI have a loop in a php file to HTTP_Request Server Via CURL->POST. But I don't know if I'm missing any security considerations. Also, is there a better way to perform this http request? <?php $j = 0; while ($j <= 1) { $url = 'http://127.0.0.1/index.php'; $fields = array( 'inp...

1
Q: Basic corrections to LaTeX document

santimirandarpI've created a CV eager for corrections. Once it is properly written it'd be converted into a template, in order to share it with the community. Can you suggest some starting corrections or ideas? (I'm will to implement them by my own, if I can) A brief, compilable version is pasted below: ...

 
4:15 PM
If the code works there's nothing to fix. Go to codereview.stackexchange.com where working code is refactored. — zer00ne 54 secs ago
 
4:54 PM
-1
Q: Find sum of neighbors 2d array

mravenashWrite a function where the function takes in 2 inputs a matrix, for example 2-dimensional array, and indices: for example [row, col] This function should return the sum of all the second inputs neighbors (up, down, left, right, diagonals) Below is my solution. Just wanted to know if there is a b...

 
5:54 PM
0
Q: Is this the best way to code this small calculator in Javascript using Object Oriented approach?

Dheeraj MahraThere is a simple form which takes two numbers num1, num2 and operation (op). After submission, a new object is created. I'm new to OOJS and any correction and improvements are appreciated. window.onload = function() { let form = document.forms['cal-form']; form.addEventListener('submit', c...

 
6:05 PM
possible answer invalidation by Justin on question by Justin: codereview.stackexchange.com/posts/222354/revisions
 
Regarding @Duga's message - I haven't really changed much in the code, not in the main code, at least. I just fixed a copy-pasting error. Hope the edit does not get rolled back. The first answer does not mention anything about the copy-pasting error so I just changed it before anyone else could mention anything about it.
 
6:25 PM
possible answer invalidation by Dheeraj Mahra on question by Dheeraj Mahra: codereview.stackexchange.com/posts/222364/revisions
 
7:14 PM
-1
Q: Is my code following the Facade pattern as I intended? The UML class diagram and activity diagram, do you understand it and is it correct?

user10829235Could use some help with my presentation in Software Development. I'm presenting how I reworked a game's parser (SpaceTaxi). Basically we take in a .txt file with ASCII characters and convert them into entities that can be rendered in our game. Input, Output In between the input and output I'v...

 
Monking
 
For this question and further questions I have to refer to other ressources because it would represent a question of its own and is not really related to this post anymore. You might want to search here or external ressources. Check out codereview.stackexchange.com for questions that require a detailed insight into your code. — CrimsonMike 31 secs ago
 
7:34 PM
0
Q: Convert to and from variable length quantities

StreamlineAs part of small MIDI library i've implemented the conversion of a VLQ (variable length quantity) for byte[] -> bigint and bigint -> byte[]. Even though the maximum value for a MIDI VLQ is defined as 0x0FFF_FFFF i've decided to allow larger values for the moment. If there are any improvements fo...

0
Q: A simple TCP "command executer"

Dimitrios DesyllasIn https://github.com/pc-magas/tcp_command as an attempt to learn C++ I made a simplistic TCP server in GNU/Linux that will receives simple "commands" in ASCII form. Each command ends with '\n' and a user can send multiple commands at once. My background is a web developer in php using symfony m...

 
7:54 PM
0
Q: Regex version of strip() - Ch. 7 Automate the Boring Stuff

JustinHere is a practice exercise — Regex version of strip() \$-\$ Write a function that takes a string and does the same thing as the strip() string method. If no other arguments are passed other than the string to strip, then whitespace characters will be removed from the beginning and end ...

 
8:30 PM
possible answer invalidation by user10829235 on question by user10829235: codereview.stackexchange.com/posts/222369/revisions
 
@Peilonrayz @mast I got bold and edited the tag and they accepted. ooph :p
We have a little situation here: codereview.stackexchange.com/questions/222369/…
 
Code Review is the SE's for asking advice about how to improve working code. Asking others to find a script for you is off-topic on this site. — Rubén 38 secs ago
 
8:52 PM
well nevermind, he accepted the answer
 
 
1 hour later…
9:54 PM
0
Q: CareerCup (Bloomberg): Check if string is valid based on brackets

RockLeeroyThe goal of this problem is to determine if a string with brackets is valid. Below is a summary of the question from careercup. Check if string s is valid based on brackets "(({{}}))" is a valid s "{[]}" is a valid s "[{[}]]" is not valid I know this is a rather basic exercise. I am looking ...

 
10:11 PM
I left a comment on a code review recently to the same effect as this answer. It seems many people don’t understand that code is written once, but read many times over. — theMayer 59 secs ago
 
1
Q: Password validator making zxcvbn easy to use with Django

Pierre.SassoulasThis is a translatable password validator for django, based on zxcvbn-python and available with pip. zxcvbn is a password strength estimator inspired by password crackers. It permits to prevent users to have to choose a password with one upper case, one special character and a number, but still c...

 
10:54 PM
-1
Q: Improved computer AI in TicTacToe

NaiI was just passing by and I wanted to know how to improve my TicTacToe game by adding "intelligence" to the computer AI so it can block my movements and so on. #include <iostream> #include <string> #include <stdlib.h> rand(); #define dim_m 3 using namespace std; class Tic_Tac_Toe{ private:...

 
@dfhwze IA instead of AI may be a language problem. The real problem is the OP is asking us to do their homework because there is no AI. I easily won a game.
 
Oh I see =D
 

« first day (2233 days earlier)      last day (1788 days later) »