Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Search
input type="url" works like this by design: An empty string ("") indicating that the user did not enter a value or that the value was removed. A single properly-formed absolute URL. This doesn'...
The comment box is now resizable; drag the control in the lower right corner down to make the area bigger. -- Update: With the later introduction of threaded comments, the comment box lost its re...
The date is sent in the form submission in ISO 8601 format (year-month-day). You can reformat it in the form handler as follows: $input_date = $_REQUEST['cf_input_date']; if ($input_date) { ...
In PHP the single quotation mark ('x') is reading the content as raw values. This means, that escape sequences, such as \n, or variable interpolation, such as $x, is not supported. There are three...
It's because of the comma. Our comment-ping notification system isn't particularly smart and gets tripped up fairly easily, including by punctuation, so that ping wouldn't have worked. We've got s...
My first instinct would be to track both identities, using one for access control, and the other for audit purposes. For instance, rather than storing: User createdBy; you'd store User create...
So I was looking around for some async solutions and I found one on github, https://github.com/electronicarts/ea-async I follow the setup instructions for maven. Only to realize it didn't work (I ...
While I removed the -javaagent argument from the vmoptions file within my Program Files, it persisted in my roaming AppData folder and that seems to be what the IDE was referencing, not the main bi...
As someone who spent a lot of time trying to get this to work on Stack Overflow, I would advise against it. Some background story of my merry adventures with book lists: The story starts around...
I apologize for the long delay in getting such a small change made and deployed. Someday I would like the blocks to be resizable, but in the meantime, a code block now shows 40 lines before the sc...
Are we talking about questions asking for book recommendations, or for a way to share/compile book recommendations? A question doesn't have to be the vehicle for the latter. A question like "what...
Suppose I have some code like: filename = "bad_dir" print(f"File not found: {filename}.") raise(FileNotFoundError) When the exception isn't caught, the stack trace is printed at the end of ...
The ambition of this site was always to give more room for subjective and big picture questions compared with Someplace Else. However, I believe programming language design falls under the topic of...
I've thought that since I sometimes ask questions on chats and they are like black holes for information, whenever I get an answer I should post the question and answer here so that other people ha...
git checkout --ours -- * --theirs would do the opposite, i.e. keep the changes from branch-y. Don't forget to git add later!
If you want a table for including in a latex document, then DataFrame.to_latex should be the best way. import pandas as pd import numpy as np df = pd.DataFrame(np.random.rand(9, 4), columns=['a'...
MWE import pandas as pd import numpy as np import matplotlib.pyplot as plt df = pd.DataFrame(np.random.rand(9, 4), columns=['a', 'b', 'c', 'd']) df.plot.bar(table=True) # don't want plot, ...
MWE In the terminal run: mkdir mwe cd mwe mkdir dir touch f1.txt f2.pdf dir/f1.txt dir/f2.pdf git init . Create a .gitignore with: * # ignore all !dir/ # except this directory ...
While reviewing older bug reports we discovered that the first problem is now working; the code fences show up in the diff. The second one still shows as one line without a clear diff, but I don't...
I noticed I have the ability Participate Everywhere even though I do not meet the requirements (Having roughly 75% of my posts to be positively received, with a minimum of 5 positively-recieved pos...
There's still time This scenario is not yet a problem for this site, but we will get there, since it's a huge problem for Stack Overflow This topic should be separately addressed, too. At ti...
My take on this: Q&A sites used to fill two distinct roles, but only one of these (the more boring one that doesn't matter anyway) is usurped by LLMs. The interesting one is not yet in danger o...
In computer programming, an expression is something that yields a value. A statement performs an action. For example, let us look at some pseudocode. Let's assume that we want to calculate the su...
My redirect in javascript somehow gets "hijacked" and I don't understand how. Previous developer (who is no longer working with the company) on page load initialized onbeforeunload event like so: ...
In Python, multiprocessing is easy to do if you follow a "list projection" paradigm. Say you want to take a list of inputs X and apply some function f to every x_i, such that y_i = f(x_i) and the y...