« first day (2582 days earlier)      last day (1426 days later) » 

12:00 AM
RELOAD! There are 6694 unanswered questions (89.9367% answered)
 
0
Q: Caesar Cipher [The Odin Project-Javascript Exercise]

Adil AhmedVery new to coding, so please don't bully me. Implement the legendary caesar cipher: In cryptography, a Caesar cipher, also known as Caesar's cipher, the shift cipher, Caesar's code or Caesar shift, is one of the simplest and most widely known encryption techniques. It is a type of substitution...

 
 
1 hour later…
1:16 AM
Just to note that a better place to ask questions like this would be the Code Review community. — rph 46 secs ago
 
 
1 hour later…
2:29 AM
0
Q: Collapsing The Divs Using JavaScript

Ahmedfollowing is My Code for Collapsing div on Click using JavaScript It is Working Fine But i Want to Precise the onClick Function in Script Any Suggestion will Highly appreciated.Thnx In Advanced. <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link href=...

 
 
2 hours later…
4:56 AM
Ben Popper on May 29, 2020
Brian LeRoux walks us through the pendulum swings the software industry has seen in the last decade.
 
5:38 AM
On the side, I think this question will be well suited for the "Code Review" site of "Stack Exchange". codereview.stackexchange.comLazycoder_007 11 secs ago
 
6:02 AM
0
Q: Made a sudoku solver with basic GUI in C++

karan_zohI've made a sudoku solver which solves a sudoku, given user input, and can also extract digits from a picture of a sudoku to solve it. I've used OpenCV and GTK+ 2.0 to achieve the above. I am very open to any kind of suggestion on how write proper and understandable C++ code. I have the following...

 
6:26 AM
-1
Q: How can I use task async await to get all directories and files with progress report?

Benzi Avrumiusing System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Management; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; using System.Xml....

 
6:52 AM
Monking
 
7:38 AM
0
Q: How to use AWK to trim nth word (Bash)

IsaacSo, I have this function that I'm trying to make, which will take the size of a file and return it, along with the name of the file. All files are found by changing the value of i, which will change which files are searched. spider wget to search for files based on $i Find the lines that have L...

 
8:16 AM
Maybe better is post answer in codereview.stackexchange.comjezrael 15 secs ago
 
8:40 AM
Certainly not fit for SO. Strip the code and post it for review in code review: codereview.stackexchange.comKostas K. 51 secs ago
 
0
Q: "Modern" Python modules

Andreas TThere are several recommendations regarding modules or features that recent Python 3 offers to "replace" older alternatives. Examples would be the pathlib module over os.path, dataclasses or typing.NamedTuple over collections.namedtuple, and .format or f-strings over the %-operator. Are there an...

 
9:04 AM
Since you are having a working code, it should be posted on Code Review / Super User forum . — shrivallabha.redij 26 secs ago
possible answer invalidation by Federico Ponzi on question by Federico Ponzi: codereview.stackexchange.com/posts/114376/revisions
 
0
Q: Grouping / Categorizing Enums in C++

pacukluka each enum should have a group / categorization dont have to manually write enum indexes and ranges for the groups in one class so i can easily use as variables my current approach is to encode the group index in the last few bits of the enum integer value: #define TokenizerState_Normal 0 #de...

 
 
2 hours later…
10:50 AM
1
Q: Follow Up DinoPass - CLI Password Manager

Grajdeanu Alex.This is a follow-up (somewhat) to this post. I said somewhat because I've kinda changed most of the logic. Changes: I've changed the project name I've changed the CLI UX I've added encryption / decryption I've added a setup.py for easier installation. I've added click Temporarily removed type ...

 
11:07 AM
@Duga Welp
Rolled back.
@Feeds No transcripts, no overview, yea, no.
 
11:45 AM
@Mast it's kinda interesting that they don't put out transcripts anymore, considering that SE had two "other" podcasts already and both got transcripts (or something resembling it) after feedback from the audience
I include the normal podcast before ben took over as one of the "other" podcasts
 
12:04 PM
@Vogel612 Yea, I vaguely recall everybody thought it was a good idea to do transcripts yet they stopped doing it.
 
12:24 PM
This is really opinion based (and thus off-topic here). You might find codereview.stackexchange.com a better place to ask (but do read their guidelines before posting) — Quentin 19 secs ago
 
@CaptainObvious Another SO user bringing their SO habits of very brief code here. No context.
 
12:52 PM
0
Q: Customizing Django built-in views such as LoginView

UriWhich way is preferred to customize Django built-in views such as LoginView: Define a line in urls.py: path(route='login/', view=views.django_auth_views.LoginView.as_view(template_name='accounts/login.html', authentication_form=forms.LoginForm, extra_context=None, redirect_authenticated_user=Tr...

-1
Q: Tyrus Websocket Server endpoint OnMessage is not triggered

sarpI am trying to send a java object- message using encoder and decoder between tyrus client and server but onmessage method is not responding to the message from client. Encoders and decoders are invoked on both server and client sides each time a message is sent. I tried with string message, it wo...

-1
Q: stderr from execution of command in rust

guestyThis rust code get the stdout of the executed command, but how to get the stderr should the command fail? use std::process::Command; let output = Command::new("sh") .arg("-c") .arg("echo hello") .output() .expect("failed to execute process"); let...

 
 
0
Q: Code Refractoring for Dynamic List in Angular 8

ramsWith a specific requirement of showing/hiding the pages, the following implementation has been carried out. The pages which needs to be hidden will be provided through an array this.unshowPages = ['menuPage', 'aboutusPage','linkedInPage']; The corresponding HTML file, <ng-container *ngIf="...

 
1:40 PM
0
Q: Is it good practice to pass props through a Route to a component?

OrlyynI just found out that it was possible to pass some props through Routes to a component in two different ways: Using the component property: <Route exact path="/props-through-component" component={() => <PropsPage title={`Props through component`} />} /> Using the render property (wh...

 
2:09 PM
Ryan Donovan on May 29, 2020
May 2020 Welcome to ISSUE #23 of the Overflow! This newsletter is by developers, for developers, written and curated by the Stack Overflow team and Cassidy Williams at Netlify. Check the wealth of tiny startups doing good work, the puzzle of keyfiles, and the wonder of the miracle sudoku. From the blog You want efficient…
 
If this is working code that you think could be improved, see Code Review, but note that they require code to be in the question. — jonrsharpe 9 secs ago
 
2:28 PM
0
Q: Listing words from text, provide lines where appears, count them

KonradI applied for Junior Java Developer in some company. Got a task:"Listing words (without duplicates) from text, provide lines where appears, count them." Output should looks like: Alphacoronavirus - 3 - pozycje -> [1,3,2] gatunki - 4 - pozycje -> [1,3,2,7] Koronawirusy - 2 - pozycje -> [3,2] W...

 
I’m voting to close this question because it would be a better fit for something like Codereview. — Austin T French 42 secs ago
 
2:53 PM
0
Q: Reduce database touches for one to many data pull

GrumpyCroutonI have the following function which works properly and grabs all of the rows from a specific table, then loops through each row to add data related to it as a subarray. public function fetch_products() { $return = $this->db->all("SELECT * FROM consumables_products"); foreach($return as &...

 
Monking
 
And a slightly facetious alternative (but it might actually work) if you need to call them multiple times is to make them lambdas. Might get overlooked by your code reviewers. :) — Tenfour04 24 secs ago
 
3:11 PM
Happy Friday
 
3:42 PM
0
Q: A* Path Finder (Java) is inefficient using a 1024 multidimentional array

Ian TaylorI have the below code for a A* pathfinder, however it is taking upwards of 10 minutes to find a solution using a simple 1024 x 1024 array. I had to comment out //Collections.sort(this.openList); as it was throwing a comparison method violates its general contract! error when running. Is the al...

 
4:06 PM
0
Q: StackOverflow clone

eanmosTry It Online I have to write a simple web application using the Java Spring framework as my course project. So I decided to write a simple StackOverflow clone. My application have the following features: Authorization (using Spring Security); Posting new questions and answers; Voting up/down ...

 
Ryan Donovan on May 29, 2020
At the time of this article, Kubernetes is about six years old, and over the last two years, it has risen in popularity to consistently be one of the most loved platforms. This year, it comes in as the number three most loved platform. If you haven’t heard about Kubernetes yet, it’s a platform that…
 
4:30 PM
possible answer invalidation by Sᴀᴍ Onᴇᴌᴀ on question by amalgamate: codereview.stackexchange.com/posts/242965/revisions
 
4:46 PM
posted on May 29, 2020 by CommitStrip

 
0
Q: Implement sorted list and BST as sorted maps in Python

user141240I have implemented both sorted list and binary search tree as sorted maps in Python. Both are subclasses of MutableMapping. Apart from the usual methods of MutableMapping, they also have methods of SortedMap, namely minimum, maximum, predecessor and successor, although I didn't make SortedMap int...

 
5:18 PM
0
Q: Match lists and get value of one column based on values of other columns from dataframe optimization

ds_AbcI have an input dataframe like below, where 'ID' is unique identifier, 'Signals_in_Group' is a derived field containing list of all unique 'Signal' column values present in a 'Group'. And 'Signals_Count' is also a derived field whose values are count of items in 'Signals_in_Group'. groups_df ...

 
6:06 PM
-1
Q: How to take values from a file, apply an equation to those values, and write them to file in c

RichardHow do I take values from a file, apply an equation to those values, and write them to file in c It seems simple, what I've tried just writes the same number as many times as I have samples. I would like to write a file with the new values. printf("Enter the number of sample values in the fil...

-1
Q: Ajax parallel requests and callback()

AzevedoI wrote this function to retrieve json data simultaneously and callback when the last request finishes. Is this approach correct? var mydata = {} function getData(callback) { var requests = 3 // # of ajax request. When 0, callback() $.getJSON("/data1", function(data) { mydata....

-1
Q: How to use sapply to output a list?

CloudI don't know how to use sapply can anyone help me? I want to perform cubic spline regression use lm in R, with different degrees of freedom, for example, df=3,4,5,6,7,8. And then compute the RSS for each fitted model and stores the output in a variable rss. rss_function<-function(df,data){ the.fit<

 
6:16 PM
@DerKommissar In the Coding Projects room we've thought about creating a meta post about @Phrancis' death. Any thoughts about this?
 
We should, I think.
 
@DerKommissar jump into the Coding Projects room
 
6:54 PM
-1
Q: How to manage javascript files?

Juan TopoI'm using JQuery in my website, I have several views and each view has an ajax call to retrieve user info, products, and other stuff. What is the best or the more efficient way to manage javascripts files. I currently check the url to decide what javascript file I must call, but I don't feel tha...

-1
Q: Is it enough to check IsFaulted for caching Tasks?

Dirk BoerIs the code below enough for not having scary problems with caching exceptions a longer time? public static Task<User> TryGetCurrentUserAsync() { var cached = (Task<User>)_Cache.Items[_CacheKey]; if ( cached != null && !cached.IsFaulted ) return cached; cached = TryGetUserF...

 
You're welcome.
4
 
7:21 PM
@DerKommissar Maybe we the post too?
 
Do it
 
@Vogel612 Could you give us a hand ^
 
7
Q: Phrancis: A final review of a good member

Der KommissarOn May 22, 2020, I received a message from the roommate of one of our cherished members, Phrancis (Francis Veilleux-Gaboury). She was reaching out and using his account to inform me that he had passed away the night before. Many of us around Code Review, and even in the wider Stack Exchange netwo...

5
 
8:21 PM
 
@RMunroe I both love and hate the fact that there seems to be some logic in all that.
 
0
Q: My implementation of Clojure's assoc-in

NavarroThis is my implementation of assoc-in function from Clojure, how can I make it more performant? (defn my-assoc-in [m [k & ks] v] (assoc m k (if (empty? ks) v (loop [current-key (first ks) remaining-keys (rest ks) curre...

0
Q: Semantic HTML for a card component

Nobdy SomebodyHow can I escape the pitfall of using divs for everything in this, where can I substitute them with semantic tags? I am doing this a part of a exercise and I know it's important to use semantic HTML tags. <!-- Card --> <div class="card"> <div class="card__showcase"> <a href="#" cla...

 
 
1 hour later…
10:07 PM
0
Q: My code is running extremely slowly. Is there a way to speed it up?

0f-bajorI'm writing a small program to plot new COVID-19 infections. As of right now, I have it so the program reads the given data file, pulls out the daily cases and dates for each country, and adds together all the cases for a given date. However, it currently runs extremely slowly. Is there any chang...

 
10:30 PM
The full source for this program can be found on Code Review. The question is close to being closed there. — pacmaninbw 46 secs ago
 
0
Q: Implementing a Hilbert-like space-filling-curve conversion in Rcpp

LewkrrI have written a series of functions that are designed to create a space-filling curve (similar to a Hilbert Curve) that is intended for symmetric matrices (as opposed to a square region). I plan to ultimately use the function in R, but decided to write it in c++ for the sake of speed. Also, ...

 
I’m voting to close this question because Code ReviewEJoshuaS - Reinstate Monica 45 secs ago
 
10:49 PM
@EjoshuaS-ReinstateMonica While this may be on-topic on CR in the future, please don't use the existence of the Code Review site as a reason to close a question. Evaluate the request and use a reason like needs focus, 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 Does being on-topic at another Stack Exchange site automatically make a question off-topic for Stack Overflow?Sᴀᴍ Onᴇᴌᴀ 45 secs ago
 
11:06 PM
@SᴀᴍOnᴇᴌᴀ I disagree. Questions asking about how to improve working code should almost always be asked on Code Review (rather than Stack Overflow). — EJoshuaS - Reinstate Monica 34 secs ago
@EJoshuaS-ReinstateMonica - I'm not saying they shouldn't be asked on Code Review... just that it shouldn't be used as a reason to close a question... "The fact that a question is on topic on some site does not make it off topic on every other site. There is some amount of overlap between sites."Sᴀᴍ Onᴇᴌᴀ 35 secs ago
 
@Duga some people (including me) just don't read everything...
 
11:47 PM
@SᴀᴍOnᴇᴌᴀ I think we can safely change "everything" to "anything" here...
 

« first day (2582 days earlier)      last day (1426 days later) »