Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

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

Advanced Search Options

To further refine your search, you can use additional qualifiers such as score:>0.5. For example, the search score:>=0.5 created:<1y grammar would return only posts mentioning "grammar" that have a score >= 0.5 and were created less than a year ago.

Further help with searching is available in the help center.

Quick hints: tag:tagname, user:xxx, "exact phrase", post_type:xxx, created:<N{d,w,mo,y}, score:>=0.5

Filters
2.7k posts
 
66%
+2 −0
Q&A How to plot table from pandas dataframe

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, ...

1 answer  ·  posted 2y ago by mcp‭  ·  last activity 2y ago by __blackjack__‭

66%
+2 −0
Q&A How to correctly daemonize a Rocket-based app?

I did not find a way to get Rocket and Daemonize to work together without problems. However, I was able to get a more recent version of start-stop-daemon installed in the system (v1.20.11), and was...

posted 2y ago by ghost-in-the-zsh‭

Answer
66%
+4 −1
Meta Should we disallow ChatGPT-User crawler (and others) from scraping Software Codidact?

robots.txt amounts to politely asking people to please not crawl you, so I wouldn't expect it to do much. At the same time, you might as well ask politely, to avoid giving the impression that you ...

posted 1y ago by matthewsnyder‭

Answer
66%
+2 −0
Q&A How can I build a string from smaller pieces?

+ is string concatenation and only be applied by strings. Non-string operands like numbers or class instances must be converted to strings using str(). That's all there really is to it, except Pyth...

posted 1y ago by matthewsnyder‭  ·  edited 1y ago by matthewsnyder‭

Answer
66%
+2 −0
Q&A Why is git merge from rather than to?

I struggle to think of any use cases for merging from. Why was the merge command designed this way? The model here is that many developers on the same project are using branches to develop fea...

posted 1y ago by Karl Knechtel‭

Answer
66%
+4 −1
Q&A How can I build a string from smaller pieces?

Suppose I have some variables like: >>> count = 8 >>> status = 'off' I want to combine them with some hard-coded text, to get a single string like 'I have 8 cans of Spam®; b...

2 answers  ·  posted 1y ago by Karl Knechtel‭  ·  last activity 1y ago by Karl Knechtel‭

66%
+2 −0
Q&A What does the w3c standard say about tabbing away from a disabled element?

I'm looking at the behaviour of Chrome and my test framework and trying to understand what the correct behaviour should be before raising an issue/ticket on one or the other (or revisiting how my t...

0 answers  ·  posted 1y ago by pureferret ‭  ·  edited 1y ago by Alexei‭

Question html standard w3c focus
66%
+2 −0
Q&A PHP code is not excluding the watched videos.

Does the watched_videos column contain unique_id's? Are these numeric or string IDs? (If they are string ID's you shouldn't quote them below!) Also, why not use the $exclude_list you already made?...

posted 2y ago by dagelf‭

Answer
66%
+2 −0
Q&A Does redirecting blog from sub domain to root domain hurts SEO of old blogs?

We have done a reverse proxy to forward blog.example.com to example.com/blog. As I think it gives great help in getting the “link juice” to the root domain. However, I am concerned about any possi...

0 answers  ·  posted 2y ago by ThomasM‭  ·  last activity 2y ago by Mithical‭

Question redirect proxy seo
66%
+2 −0
Meta Should we allow answers generated by ChatGPT?

It is a relevant but not decisive point whether ChatGPT can produce citations to back up its output (and whether the citations exist and are on point). I asked it for a citation today and got a so...

posted 2y ago by Fred Wamsley‭

Answer
66%
+2 −0
Q&A Can freed pointers undergo lvalue conversion?

p is assigned a value and then it becomes indeterminate when the pointed at object has reached the end of its lifetime (C17 6.2.4). Pointers may have trap representations (C17 6.2.6.1/5) and in ca...

posted 2y ago by Lundin‭

Answer
66%
+2 −0
Q&A Remove entries by two-column ID everywhere, that meet a condition somewhere

MWE import random import pandas as pd from itertools import product random.seed(12345) dies = [1, 2] cells = list(range(10)) currents = [100, 200, 300] dcc = list(product(dies, ce...

3 answers  ·  posted 2y ago by mcp‭  ·  edited 1y ago by mcp‭

66%
+2 −0
Q&A Ignore NPM Modules Digital Ocean App Platform

I solved this last night and meant to come back and update, the problem is totally mine. Jest requires a package-lock.json file in GitHub actions to run. DigitalOcean App platform checks for a Do...

posted 2y ago by fausty‭  ·  edited 2y ago by fausty‭

Answer
66%
+2 −0
Q&A Built-in way to compute coefficient of variation in pandas

There's very little information to go off of here but to me the built-in function you need is division which is already built in to any language. Unless you are unable to use df.std() / df.mean() f...

posted 2y ago by cuzzo‭  ·  edited 2y ago by cuzzo‭

Answer
66%
+2 −0
Q&A How do I (compactly) initialize a 2-d array of structs with the same value?

I learned about the ** operator for array-repeat, and I love it. I have a struct that contains a 2-d array of inner structs, like const D1 = 30; const D2 = 40; const Inner = struct { .a: u32, ....

0 answers  ·  posted 2y ago by aghast‭

66%
+2 −0
Q&A Using Lua's `os.rename` to rename a file from a hard drive to a new location on a USB flash drive

I'm using the os.rename function in a lua script. It works perfectly fine for renaming files on my hard drive, e.g. os.rename("test.txt","/Users/username/Desktop/test2.txt") will rename the fil...

1 answer  ·  posted 2y ago by samcarter‭  ·  last activity 2y ago by Peter Taylor‭

66%
+2 −0
Q&A Using Lua's `os.rename` to rename a file from a hard drive to a new location on a USB flash drive

Your diagnosis appears to be correct. Per https://www.lua.org/pil/22.html Because Lua is written in ANSI C, it uses only the functions that the ANSI standard defines. POSIX rename extends the...

posted 2y ago by Peter Taylor‭

Answer
66%
+2 −0
Q&A How would I avoid textures being blurred when mapped to a TriangleMesh?

I am making a game using JavaFX and the Fxyz library. I have chunks which are made of Point3D's, these points are then passed to a ScatterMesh and that is used to generate a TriangleMesh so I can m...

0 answers  ·  posted 2y ago by cuzzo‭  ·  edited 2y ago by Alexei‭

Question java 3d javafx fxyz3d
66%
+2 −0
Q&A Why is IntelliJ not finding these modules?

So to preface I started a new JavaFX project in IntelliJ and all of this is from what was auto-generated out of the box. The modules I'm having trouble with are Edit to make this post more query...

1 answer  ·  posted 2y ago by cuzzo‭  ·  last activity 2y ago by cuzzo‭

Question java intellij-idea
66%
+2 −0
Q&A How can I upload images or files to strapi using graphQl

How can I upload images or files to strapi using graphQl. I'm using Cloudinary as the image provider. The strapi admin panel works fine, uploads the images to cloudinary. But, when using graphQl m...

0 answers  ·  posted 2y ago by Phtremor‭

66%
+2 −0
Q&A How to write a macro that discards the const qualifier, for any type?

I developed this macro (using GNU C) similar to C++'s const_cast(). #define const_cast(t, p) \ ({ ...

posted 2y ago by alx‭  ·  edited 2y ago by alx‭

Answer
66%
+2 −0
Meta Best practices for posting tabular data

For most purposes, the easiest approach is probably Markdown tables, as described in Wicket's answer. If you have requirements that Markdown tables do not support, such as merged cells, you can re...

posted 1y ago by trichoplax‭  ·  edited 1y ago by trichoplax‭

Answer
66%
+2 −0
Q&A Generating nested repeating values with JSON Generator

Instead of nesting this in another loop, you could simply calculate the value of "code" from the value of index(). It's the remainder of the division by 25: [ '{{repeat(100)}}', { "id"...

posted 1y ago by __blackjack__‭

Answer
66%
+2 −0
Q&A For scripting what are the pros and cons of command line arguments versus capturing input at the start?

I would like to add further options to the set of possibilities, namely environment variables and GUI input. Moreover, I would like to distinguish reading information from stdin and from other (na...

posted 1y ago by Dirk Herrmann‭  ·  edited 1y ago by Dirk Herrmann‭

Answer
66%
+2 −0
Q&A Load site based on cookie value in PHP

The problem is that you are using an undefined variable $cookie. This will cause setcookie() to "set" a cookie with name "cookie" and value null. Obviously PHP deletes the cookie in that case, as y...

posted 1y ago by keyang‭

Answer