« first day (2324 days earlier)      last day (1695 days later) » 

12:00 AM
RELOAD! There are 6162 unanswered questions (90.0509% answered)
 
12:37 AM
Sounds like you have something that works, but you want to make it work better. Give a read through this and see if what you're asking is a better fit for Code Review. — user4581301 17 secs ago
 
12:49 AM
Open a new question here or on codereview. — Brock Adams 14 secs ago
 
1:41 AM
1
Q: Python code to continue if a certain type is seen, otherwise try again to get valid input

mystic96I suspect from my question you will already have gathered, but I am very very new to Python and programming in general, so sorry if this is a stupid question. I have tried to search other threads but couldn't find what I was looking for. Anyway: I want to check to see if an input is of type 'in...

 
2:27 AM
codereview.stackexchange.com might be a better place for this. — jmargolisvt 53 secs ago
possible answer invalidation by Omar Ahmed on question by Omar Ahmed: codereview.stackexchange.com/posts/228949/revisions
 
3:19 AM
0
Q: How does the system order answers with the same number of votes?

LinnyLet's say there are two answers currently, Answer #1 and Answer #2. At first glance, I see that Answer #1 is above Answer #2. After refreshing, I now see that Answer #2 is above Answer#1, with no changes to either answer. I ask this because, in my experience, the answer on top gets more attentio...

 
3:43 AM
0
Q: Converting a binary string to hexadecimal using Rust

sc_rayOnce again, I am reinventing the wheel here to understand the fundamentals of rust. In a previous question I requested feedback on my function that performed a hexadecimal to binary conversion. In this snippet, I am seeking some constructive feedback on converting from binary to hexadecimal. fn ...

 
4:28 AM
I'm voting to close this question as off-topic because belongs on codereview.stackexchange.comAndreas 42 secs ago
 
4:59 AM
You might find better help at codereview.stackexchange.comJeremy Friesner 23 secs ago
 
 
1 hour later…
6:06 AM
1
Q: Check if is it possible to get to a point that is presented by a number

Arshia RThe problem is about checking whether we can get to a wall that is represented with a number, by horizontal and vertical moves or not. if we can, print one of the correct answers and we cant, print -1. we have three inputs. first one is the distance to the wall(n). the second one is our foot len...

 
 
3 hours later…
8:46 AM
Sorry, this is not a suitable question for Stack Overflow. We can answer focused questions about code problems, not produce whole solutions for coding challenges. If you want a review of your approach, there is the Code Review Stack Exchange site. — Martijn Pieters ♦ 48 secs ago
 
1
Q: Very basic Integer queue in C

the_endianI've never written a queue before and literally just took the concepts and tried to code something up. I decided to write a basic integer queue and as an example/driver I use a queue of size 5 which implements insert(), delete(), and display(). Please critique these implementations and comment i...

 
 
1 hour later…
9:46 AM
0
Q: Defining notations after equation in Latex

user460329How can define notations in the equation containing text, so they are well aligned . for example \begin{equation} \label{equa1} \mathit{CAR} = \frac{\mathit{C}} {\mathit{RWA_{c}}} \geq 8\% \end{equation} where: C := capital required to be reserved for regulatory purpose RWA_c := risk-wei...

 
10:32 AM
 
10:43 AM
0
Q: Do we really neeed the have the [latex] tag at code review?

πάντα ῥεῖJust as the title says: Do we really neeed the have the latex tag at code review? There are only two questions ATM, and no tag-wiki info at all. I heavily doubt it adds any value for code reviews.

 
11:07 AM
0
Q: Setting a request header with or without context in Golang

BentCoderI have two ways (middleware) of setting a specific header (if not set) to request but want to know if one is better/beneficial than the other and the reasons why. Note: At some point I will need to log X-Request-Id value in every single application log I have. If this plan affects your answer, I...

 
 
1 hour later…
12:35 PM
Monking
 
12:47 PM
0
Q: Is this the correct way to use F# function structure

Bas van DijkI am quite new to F# and just wrote my first program. It checks if the query exists in the brand list and returns the matching brand. Is there a better way to write this? Maybe there is a nicer way to define the functions? Would be happy to hear any remarks which I can take into account for the ...

 
1:07 PM
-1
Q: How can I refactor my code for this coding challenge

Joshua LeMayI have finally complete the cash register challenge found on freecodecamp.org and I was wondering how I can further clean my code. I need help refactoring my code. Link to challenge here: https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/javascript-algorithms-and-data-struc...

 
 
1 hour later…
2:34 PM
do you want this?
0
Q: Need help speed up this code - javascript

Nikita TrubchenkovI am new to coding and to apply for an internship me need to solve several tasks. This is one of them. I wrote working code, but the program says it takes too long to complete. Help me speed up my code please.) Requirements: Time limit - 1s Memory Limit - 64mb Input- standard input Output- s...

 
3:08 PM
0
Q: Using a thread to update a table automatically in Django

Bruno VermeulenFor my portfolio app using Django I made a thread that pulls out the usd exchange rates for various currencies every 6 hours and updates the database. The program kicks in as soon as the module module_stock.py is being imported. Other than to make the thread to start in a function call, shoul...

 
3:48 PM
0
Q: Kotlin shared preferences

Ian NewsonSo I've written a class for storing user/device specific settings, but I've written the Kotlin pretty much like I would in Java: import android.content.Context import android.content.SharedPreferences import java.util.* class UserSettings { private lateinit var _prefs :SharedPreferences ...

 
4:28 PM
0
Q: Use math to project price rather than a loop

PPannI have to project the price for a publicly traded contract when the price should be approximately matching the targeted profit or loss. I have written the following code, runs under 0.02MS.. could be a faster and could be a bit more elegant as the code will get slower progressively depending on t...

 
4:48 PM
This would be better placed at code review IMO — SpghttCd 58 secs ago
 
5:03 PM
Now this is obviously an opinion but if someone wants to see some bad C++ code here you go codereview.stackexchange.com/questions/228922/….
 
-1
Q: Why does editing one list also change another?

user46348I'm new to Python and new to asking programming questions here, so if this belongs somewhere else, I apologize. I know that if you create a list and call that list by a new name, it still points to the original list, which is why one uses .copy() or [ : ] to create a distinct version of the origi...

 
@SpghttCd Actually, CR is for working code only. This code doesn't work. Please see on topic before making migration recommendations. — ggorlen just now
 
5:49 PM
1
Q: Remove duplicates from an unsorted Linked List in Ruby

Steven AguilarCurrently I'm going over the cracking the coding interview. I'm in the Linked List 2.1 question which is as follow: Remove Duplicates, write code to remove duplicates from an unsorted Linked List. How would you solve a problem is a temporary buffer is not allowed. I used a Hash, which b...

0
Q: Compare a dictionary in C#

CuriousBearIntroduction I built a web crawler for a project. One of the variables parse from the website is the date. I thought that building a dictionary containing the month in French and the int associated with it. The way that I saw the code going is. 1. Scrap the data from the website 2. var Month...

 
6:06 PM
@YvetteColomb needs a better title, but would IMO be on-topic for us
 
6:29 PM
0
Q: delete a file using by another process in c#

user10821150I want to delete a jpg file from my c# program but i can't do that because these files are using from another processor, i tried many ways but none worked.any one have a sol This is my code string pictureDirectory; pictureDirectory=Application.StartupPath+"NitemsPicture"+"\\"+itemToEdit.id +".j...

 
6:47 PM
codereview.stackexchange.com This questions belongs here i'd say. — Noob 13 secs ago
 
0
Q: Convert text file to html?

catufI have a script that converts a text file to html. The text file is an output of a program (needle). The function takes the text file as an input. I am aware the script is awful. I use this function in Django. I would like to improve it. Can you help me with it? def write_html(result): seque...

 
7:24 PM
 
7:50 PM
0
Q: An ES6 array of numbers - Double last number, delete the first number. Max of 10. Stop at 2^15

JimI'm writing a Javascript function for an array, based on a geographic sequence. [1, 2, 4, 8, 16], etc. This function needs to populate the next number in the sequence (x2). If there are more than 10 items in the array, remove the first (smallest) number. If the array reaches 2^15 (no idea what ...

 
8:13 PM
If the code is working, you should ask on Code Reviewroganjosh just now
 
8:51 PM
Thanks @icza, I see you point about the reverse() calls and I can do that at the JSON read stage. I've also flagged the post to be moved to codereview thanks for the heads up — Yendor 45 secs ago
 
9:11 PM
1
Q: Python script for parsing links optimization?

Pavel RiabovI wrote a test that parses links from a web page and in a loop clicks on each of them, and then returns to the main page. But each iteration is accompanied by parsing the entire web page again and again and overwriting the links array, Although only one link is needed per iteration. I understand ...

 
9:56 PM
This post is too broad here, please feel free to delete this here, tailor it to codereview's standards and post it there. Thanks — Bhargav Rao ♦ 40 secs ago
 
10:36 PM
I know you didn't ask for a code review, but I can't control myself. if i-1 is replaced with i, the final append outside the loop is not necessary. — dnault 32 secs ago
 
10:52 PM
0
Q: Django Dashboard View

Joey CoderWhat does my code do? I use Django and in the following snippet, I use a class together with a TemplateView to render an HTML page. I already tried to simplify it with methods, but my code still looks "messy" and unstructured. Do you have any more recommendations on how I could make it more clear...

 

« first day (2324 days earlier)      last day (1695 days later) »