« first day (1993 days earlier)      last day (2022 days later) » 

12:00 AM
RELOAD! There are 5737 unanswered questions (89.7477% answered)
 
12:44 AM
Generally for code that runs with no errors and requests for code review aren't appropriate for StackOverflow, but are welcome on CodeReviewdavedwards 13 secs ago
 
1:35 AM
I'm voting to close this question as off-topic because it belongs an CodeReview. — Rafael 28 secs ago
 
2:02 AM
0
Q: Automate the Boring Stuff with Python - The Collatz Sequence Project

AlexHello StackExchange Community, I am new to programming and started learning with Automate the Boring Stuff with Python. I just completed chapter 3's Collatz sequence project (link below). I was wondering what would you do differently and why? Trying to learn how to think like a programmer and ...

 
 
3 hours later…
4:42 AM
0
Q: Android App buttons stop working after screen orientation is changed

user7222436I am making a Tic Tac Toe app. The game works fine on first launch, but once the screen is rotaed, everything goes back to its default layout. The text on the buttons as well as the listeners for the buttons. I attempted to save the values of the buttons using onSaveInstanceState and onConfigurat...

 
5:23 AM
Having said that, I think you are asking to review working code, and such requests rather belong on codereview.stackexchange.com . — GhostCat 43 secs ago
 
6:09 AM
Monking
 
6:31 AM
0
Q: Need a critics for my TypeScript+Knockout project

Igor SHere's my demo project for TS+Knockout. Need your critics and advises how to enhance the TS part.

 
@CaptainObvious No code, no glory.
@CaptainObvious Broken code.
 
7:02 AM
0
Q: Plain Page Flip Effect

Zechariah RamanI've created a very plain version of page flip onscroll. I made it to look like turning the pages of a book. It works OK on browsers I have (Firefox, Chrome, IE8). But I want to use this presentation method on a website. Are there any parts of the code that I need to create a fallback for? Coul...

 
7:16 AM
Monking
 
7:41 AM
Monking
 
7:52 AM
Monking
 
8:20 AM
0
Q: SQL code takes too much processing time

EinherjarI have the following code SELECT distinct t2.code ,isnull(t1.row,'Name') as Internal ,t4.name ,t4.value ,t4.rowX FROM [db].[dbo].[table1] t1 inner join [db].[dbo].[table2] t2 on t2.id = t1.id inner join [db].[typ].[table3] t3 on t3.id = t1.otherID inner join [db].[typ].[table4] t4 on t4....

0
Q: Calculation of next week number (constrained by max 3) with rollover

uraza def calculateNextWeek(week: Int, day: Int): Int = { if (day == 3) if (week == 3) 1 else week + 1 else week } What I want my code to do is that if we're on day 3 then we want to increase the week by 1. But if week number is 3 we want to reset the week to 1.

 
8:35 AM
0
Q: AppContext vs AppConfiguration

user960567We have a project where we have AppContext and AppConfiguration classes, like class AppContext { /** * @var string */ private $prop1; /** * @var string */ private $prop2; /** * @var string */ private $prop3; /** * @param string $p...

 
8:50 AM
if you want to learn how to write more idiomatic python post it codereview.stackexchange.com, there is a lot you can do better and I'm sure people there will give you a nice explanation — chris 14 secs ago
 
0
Q: Can you explain these few lines of gawk?

user432089023489I am experienced in bash but somewhat new to awk/gawk. Could you explain these few lines for me commenting thoroughly? Thanks for your help. awk -F 'localhost_access_' ' { n=substr($2,1+index($2,":")); gsub(".tar.gz.*","",$2); str[$2]+=n } END{ ...

 
@chris - not until it's working correctly. Code Review doesn't like to be presented with known-broken code. — Toby Speight 5 secs ago
 
9:06 AM
0
Q: read custom tag values from string using c#

user182342I want to capture the information marked in stars using c# , it contains row tag for starting and closing afterwards c tag but patterns are different to get the value like somewhere is tag and somewhere is tag. <row r="186"> <c t="inlineStr" r="A186"><is><t>**DNC**</t></is></c> <c t...

 
@T.J.Crowder If I edit this question is it possible to move it over to codereview or should I just delete and recreate over there? — Batters just now
 
9:22 AM
-1
Q: What are the steps and tools involving source code to executables

Ajil Rajuworld! I'm a newbie in computer science and I love programming I do the program. I heard about lot's of tools for developing software and deploying I want to know what they are like for example make

1
Q: Simple Hand Cricket Game in Object Oriented Way

thebenmanThe rules of the game are pretty simple. I'll put it here in case people don't know them It's a two player game hand game where they alternate being a batsman and a bowler. Who decides to do what initially is determined by a toss. These are the hand gestures which has a corresponding score ...

 
@CaptainObvious Asks for software recommendation so generic that even softwarerecs.stackexchange.com won't help.
 
10:00 AM
I answered this in a code review postmoshevi 34 secs ago
 
0
Q: Finding suggested flight destinations from database in Golang

saidaspenThis is my first Go project. Coming from a Java developer background, this code just smells very bad. But, cannot figure out better way to do this. It's a small app to find suggested flight destinations based on one or more origins (by their airport-codes, called codesbelow). Basically finding ...

 
 
1 hour later…
11:55 AM
possible answer invalidation by Below the Radar on question by Below the Radar: codereview.stackexchange.com/posts/205771/revisions
 
0
Q: Scala - How to refactor a Java-like method to be more Scala styled

sambaI have a Java background and have recently started learning Scala. I've implemented a method that still looks to me more like a Java style. How can it be improved using various Scala features to be more Scala-like method? Here is how I implemented the method. Is there a space for improvements? ...

-1
Q: Async Server-Client Code

Deniz KaanI've a basic Async Server-Client socket connection between my applications. The problem is when I send something from my client the server get the right request and send back the result correctly atleast thats what I think, but in real actually my client receives the previous messages all the tim...

0
Q: Count Blobs with bad contrast and border Blobs

danieltakeshiProblem The code is working, however, there is low accuracy. While trying to count the number of objects in the image with WaterShed Algorithm or Blob Counting. It wasn't possible. The low contrast on the image doesn't help. The following code was created to count the objects, however, it is ...

 
12:09 PM
In that case, to me (for whatever that's worth) your solution sonds okay-ish. But maybe you want to ask the guys over at (codeReview)[codereview.stackexchange.com/]Burki just now
 
12:29 PM
-1
Q: Code opinions and improvements please

StuartThis Java code project (Eclipse Photon) was submitted for a job opportunity but was marked down for showing "bad habits that could be difficult to unlearn" but I am mystified by what this means. Any takers please. How could it be approached differently or improved. https://gitlab.com/smackintosh...

 
@CaptainObvious Including a diff of the project is not the same as including the code. Try again.
 
Just a heads up this might be better placed in the Code Review Stack Exchange (codereview.stackexchange.com) as the answer to this may be viewed as opinion based — Djave 58 secs ago
 
12:56 PM
If you want to improve already working code better ask such questions at SE Code Review please. — πάντα ῥεῖ 41 secs ago
 
@Vogel612 You have really good thoughts there, please don't think I'm trying to say they're not good ideas or be mean. :) (They're also forcing me to think a lot harder about the concept on it's own.)
 
No worries :)
 
0
Q: Suggestions and Improvements

Dude CoderI have made a simple To-Do Application just to get started with HTML/CSS/JavaScript and here is what I came up with. I have done what I can do at my best but still, I need some suggestions on my code, because I am new to Web-Development. So if there is something wrong, or there is something whic...

 
(I just wanted to let you know I'm not discounting your thoughts, hard to convey that idea over Twitter.) :)
 
1:30 PM
@CaptainObvious Insufficient accuracy to count as working code IMO
 
1:47 PM
1
Q: Javascript time series data combination

BattersI've written code that performs a merge of two streams of sorted time series data. The first stream is taken to be the primary and any successive streams are merged into it, using the nearest timestamp match to align data. It can be assumed that there will only ever be one match per primary times...

0
Q: JS counter in DOM

TitsjmenI've written a function to update the contents of an HTML element to display a counter. On pageload the counter will recieve an initial value, every five minutes the new value will be requested from the server. Over the next five minutes, the initial value will loop to the new value. const incre...

0
Q: Loop each items are the unique solution to retreive one specific property from one collection object?

Fabriziowith this code I add item/properties into my collection: Public RateSTD as Collection Public Sub mCaricaRateSTD() On Error GoTo RigaErrore Dim rng As Range Dim c As Range Dim newRate As ClsRate 'ClsRate are Class Module If Not RateSTD Is Nothing Then Set RateSTD = Nothi...

 
FYI the StackExchange network has a bunch of different sites. One of those is the CodeReview StackExchange. It is perfect for those "How would you improve this?" questions. — Marie 43 secs ago
 
2:02 PM
-1
Q: Made a simple pomodoro timer synced to actual clock, code seems inefficent

Foreel19This is my first post to stackoverflow so please bear with any missteps I may take in asking this question. I'm trying to build a timer/clock that rings every: :00 (starts a pomodoro work period) :25 (starts a 5-minute break period) :30 (starts a pomodoro work period) :55 (starts a 5-minute br...

 
2:18 PM
-1
Q: Create a function in python that calculates the commission for a salesman based on the table below:

user182382Between $10,000 -$20,000 2% of sale Between $20,000 -$30,000 3.5% of sale $30,000 and over 5% of sale Allow the accounts clerk to enter the sales figures for the salesman.

 
3:17 PM
Monking
 
0
Q: Need help to speed up code for stitching together badly formatted log files

AbsThe objective: I needed to stitch together a large number of badly formatted log files. I [painfully] developed a script for it in R, one that successfully dealt with the various flaws in the dataset. However, this script is rather slow. Considering I'm a neophyte to the field (and don't know wha...

 
Too many zombies, not enough time...
3
 
If you believe that the code works correctly, consider presenting your work (with its unit tests) in a more-complete fashion over at Code Review. You'll likely get some suggestions on making it more efficient, easier to read, and better tested. Before you do that, make sure to read A guide to Code Review for Stack Overflow users first, as some things are done differently over there - e.g. question titles should simply say what the code does, as the question is always, "How can I improve this?". — Toby Speight 11 secs ago
 
@Vogel612 You don't happen to have any news about this?
@Mast FWIW maybe we can hijack the default localization tools for that... — Vogel612 ♦ May 5 at 14:27
11
Q: Can we disable "Questions that may already have your answer?"

JosiahIf you post a question, Stack Exchange with all their clever AI produces a list under your title called "Questions that may already have your answer". This makes a lot of sense for Stack Overflow, where duplicate questions are to be avoided. It makes a lot less sense for Code Review, where the fi...

 
3:39 PM
@CaptainObvious Salvagable, but needs to get edited by OP.
 
4:31 PM
Monking
 
4:44 PM
I'm voting to close this question as off-topic because reviews of working code belong on Code Review, not Stack Overflow. — jwodder 41 secs ago
Is it good? is probably a question for Code Review. Is it bug riddled? would be best answered by testing it. — Greg 16 secs ago
Please check "Which site?" for general issues and "Code Review or not?"Prune 31 secs ago
 
0
Q: Count features in a file, using parallel code

BarWhen processing large files (say for parsing or performing computations based on the contents), we want to be able to use multiple processes to perform the job faster. In my case I wanted to count the frequency of appearance of features in a LibSVM formated file, similar to a word-count which is...

0
Q: Good idea to NOT await a Task in a ASP.NET Web API call?

JannikOne of my WebAPI methods does some calculation / data retrieval. When all was successful and the user subscribed to it, my method tries to send an overview email to the user. Currently the code piece looks like this (handwritten): public Task<DayOverview> DoSomeStuffAsync() { var data = aw...

 
5:05 PM
I'm voting to close this question as off-topic because question belongs to another site codereview.stackexchange.com. codereview.stackexchange.com is not displayed in the list of another site option. — Rajen Raiyarela 29 secs ago
@RajenRaiyarela Feel free to recommend the OP post on CR but in the future, please don't use Code Review as a reason to close a question. Evaluate the request and use a reason like too broad, primarily opinion-based, etc. Then you can mention to the OP that it can be posted on Code Review if it is on-topic. Please see the section What you should not do in this answer to A guide to Code Review for Stack Overflow usersSᴀᴍ Onᴇᴌᴀ 13 secs ago
 
0
Q: K&R Exercise 1-13. Printing histogram of word lengths (vertical variant)

div0manI'm going through the K&R book (2nd edition, ANSI C ver.) and want to get the most from it. How does the following solution look to you? Note that, for the sake of exercise, I don't want to use techniques not introduced yet in the book. Also, I'm trying to reuse whatever code/philosophy already p...

0
Q: Measure size of repository as a function of time

GraipherIn order to avoid having to make any real progress (at least for a short time), I wrote a script that measures my progress instead. Specifically, this script sums up the file sizes of files in all commits of a git repository, filtering files either by their endings, a whitelist or not at all, and...

 
5:26 PM
-1
Q: 2D Character arrays from file Computer Programing homework

Chris Siaweleski Write a program that reads text from a file. Create a 2-dimensional character array that is 6 * 7. Store the characters read in your array in row major order (fill row 0 first, then row 1, etc.). Fill any unused spaces in the 2-D array with the ‘*’ character. If you have more characters tha...

 
This is basically an exercise in code-golf, which is off-topic here. You might have better luck on codereview.stackexchange.commeagar ♦ 43 secs ago
 
5:41 PM
0
Q: C# [Console Application] to display the n terms of even natural numbers(between 1 and 100) and their sum

Anthony K.This is a C# console application that displays the n terms of even natural numbers between (1 and 100) and their sum Is this good? Or is it bug riddled ? int numberOfEvenNumbers; int currentNumber; currentNumber = 0; int counter; counter = 1; int s...

0
Q: Creation of matrix with specific attempts at the end

Maxime RecuerdaFirstly, I have these two C# interfaces: public interface IStep { IRoom this[int index] { get; } int Size { get; } void Connect(IStep nextStep, int[,] matrix); } public interface IRoom { IRoom[] NextRooms { get; } void Connect(IRoom nextRoom); } Here is what I want to achi...

0
Q: Evaluating 5-Card Poker Hands in Python

tonfredFirstly, I'd like to point out that, in general, I'm a beginner at coding. I recently started learning Python and I know the basics. Now I'm working on my first "proper" project in Python - or at least trying to! Secondly, English is not my native, so please excuse all grammatical errors and pos...

 
6:28 PM
0
Q: Vue Star Rating Component

ShreerangI am wondering if someone can do a code re"vue" specifically for (link: https://github.com/Shreerang/Vue-Nuggets/blob/master/src/components/StarRating.vue) I am looking for feedback on best practices, any glaring code crimes I might have committed and bad code. The code is also deployed to #Hero...

 
SO is not really geared for general code review questions - try reposting on codereview.stackexchange.comPaulMcG 17 secs ago
 
6:51 PM
The assumption here is that manual instantiation would never make it through code reviews and common sense. But I do agree that you can never be safe enough. — Joshua VdM 49 secs ago
 
0
Q: Copying either an Array or Object for immutability

Andrew AultI have a couple of functions in a javascript project that accept an object as an argument and are expected to return a copy of this object with a few changes. I'm trying to make these functions immutable by using Object.assign, but the argument can be either an Object or an Array, so I can't just...

 
... manual instantiation would never make it through code reviews and common sense even in unit tests? — Joe just now
 
7:16 PM
1
Q: Python echo client/server program, parsing and editing integers

Anna BelleGoals: Create a single-connection echo client/server program in python. Client sends values x, y, z, degree, timestamp. Server receives these values (as strings) and parses them into floats. Server sends back ((x/2), (y/2), (z/2), (degree/2)) Client receives data and prints it back. I'm extre...

0
Q: I'm new to Python, can someone criticize my code?

BrandonSo basically I want to get familiar with what is "right" or "wrong" in terms of programming with Python. I would like my work to look professional and practice more respected coding ethics. I created a basic program that allows a user to continuously input values until he or she is satisfied; fur...

 
7:42 PM
@CaptainObvious I can criticize your title...
 
0
Q: Navbar isn't displaying after integrating it into site with pure CSS parallax effect

Angeliss44So I've run into a problem involving pure CSS parallax in combination with a fixed navbar that changes size when the page begins to scroll or returns to the top. Each of the two parts work independently but when I combine them the parallax effect still works while the navbar does not change from ...

 
Glad I could help. Use Code Review (if you feel it necessary) to refine your code by posting a working snippet. — Shashank 8 secs ago
 
8:03 PM
-1
Q: Bash program that sets up and configures the environment for new Debian installs

somethingSomethingHere is my second version of a bash program I'm writing, as per @hjpotter92 I've updated and cleaned it since last: This script is run directly after a fresh install of Debian, to do: sets up LS_COLORS====> colors in /bin/ls sets up Portsentry sets up syntax highlighting in nano, sets up iptab...

 
@CaptainObvious so I replied... and OP actually didn't include critical code so they get a -1 from me until they do.
@Mast I think I did a harshness with my review heh
You need to include your external custom libraries if you have them. We need COMPLETE CODE including any additional code libraries you wrote, including clear. — Thomas Ward 9 mins ago
 
Seeding a std::mt19937 correctly is not so easy. It has a huge number of potential states, way more than can be represented by a single int. For example, see [this post on Code Review Stack Exchange ](codereview.stackexchange.com/questions/109260/…). — François Andrieux 7 secs ago
For working code you probably want codereview.stackexchange.comJesper Juhl 43 secs ago
 
 
1 hour later…
9:16 PM
This is a code review. You should post this at codereview.stackexchange.com and then delete it from here. — rmaddy 18 secs ago
 
0
Q: Efficiency of Data Use in Queues

TheMachoMuchachoSo we've just finished learning about queues in my data structures class; however, I'm still trying to dwell on the information a bit, just to make sure I really understand it. Anyways, I have a basic knowledge of what the structure of a queue looks like; however, I'm still feeling a bit lost on ...

-1
Q: Nested For Loop

user182417I'm looking for a bit of help on this. I don't understand how to start the code so I'm wondering how to do it? It's must be nested for loops only. Thank you :) Piece is Below

 
9:36 PM
I'm voting to close this question as off-topic because it should be posted on Code Reviewtevemadar 15 secs ago
 
-1
Q: How to use IMPORTJSON function in google script to request a list of top gainers and their float

manu_1777I'm trying to write a google script that use the IMPORTJSON function to request a list of the top 10 stocks that gained value during the current day. I separated the code into two files. One file has the IMPORTJSON function, and the other has the function that request the data that I need. After ...

 
0
Q: Variadic Functions in NASM Win64 Assembly

T145Simple variadic function implementation in NASM Assembly. When implemented like I have below: sum.asm ;; bits 64 default rel extern printf section .text global main global sum main: sub rsp, 40 mov r9d, 3 mov r8d, 2 mov edx, 1 mov ecx, 3 cal...

 
10:39 PM
0
Q: Dispatching Vuex getter via setInterval

Cory BaumerI am fetching the friend list for a chat application using a Vuex store. I need to dispatch the getter via an interval. Is there a best practices way to do this? <template> <aside class="friend-list"> <h5 class="whos-online">Who's Online</h5> <ul class="users"> <U...

 
11:26 PM
-2
Q: how to replace row with list

Benjamin Lundquist ThomsenHi I am trying to replace a row inside a csv file with a list. when I run my code, I get the message PermissionError: [Errno 13] Permission denied: 'benj777.csv' here is my code. hope someone can help. import csv f = open("benj3275.csv", "r") csvreader = csv.reader(f, delimiter =",") next (csvr...

 
@tevemadar Feel free to recommend the OP post on CR but in the future, please don't use Code Review as a reason to close a question. Evaluate the request and use a reason like too broad, primarily opinion-based, etc. Then you can mention to the OP that it can be posted on Code Review if it is on-topic. Please see the section What you should not do in this answer to A guide to Code Review for Stack Overflow usersSᴀᴍ Onᴇᴌᴀ 10 secs ago
 

« first day (1993 days earlier)      last day (2022 days later) »