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
 
75%
+4 −0
Q&A Would a MySQL database run more efficiently with smaller varchar lengths?

I have a database with quite a few VARCHAR fields. When the database was first built the lengths of the columns were set a bit larger than absolutely necessary. Now after, having used the DB for a ...

3 answers  ·  posted 4y ago by Charlie Brumbaugh‭  ·  last activity 4y ago by manassehkatz‭

Question mysql performance varchar
75%
+4 −0
Q&A How do I get IIS UrlRewrite to handle CSS-delivered woff files appropriately?

Context: Azure; Windows Server 2012; IIS 8 First up, here's the (redacted) web.config for reference <rewrite> <rules> <rule name="ReverseProxyInboundRule1" stopProcessing="false"&...

0 answers  ·  posted 4y ago by bugmagnet‭  ·  edited 4y ago by Alexei‭

Question iis url-rewriting woff
75%
+7 −1
Meta Importing Selected Q&A?

Just mass-importing from elsewhere is generally bad. Look at the mess this has made of the Outdoors and Scientific Speculation sites, for example. Bringing over your own content is a bit different...

posted 4y ago by Olin Lathrop‭  ·  edited 4y ago by Olin Lathrop‭

Answer
75%
+4 −0
Q&A Why would excluding records by creating a temporary table of their primary keys be faster than simply excluding by value?

is_excluded = 1 is very different from do_not_touch != 1. Whenever possible, try to structure your data and queries so that you can do an equi-join - that is, compare things using an = comparison. ...

posted 4y ago by BobJarvis‭

Answer
75%
+10 −2
Q&A What are the pros and cons of a composite primary key versus a unique constraint?

Let's say we have two tables A and B and a join table C that has foreign keys to both A and B and the combination of those foreign keys is unique. One could either do a unique constraint or a comp...

2 answers  ·  posted 4y ago by Charlie Brumbaugh‭  ·  edited 4y ago by Alexei‭

Question sql primary-key unique-constraint
75%
+4 −0
Q&A What is a standard definition (or a CS theory based formal definition) for Escaping?

The term escape sequence apparently dates back to the telegraph and pre-computer technology, according to wikipedia: https://en.wikipedia.org/wiki/Escape_sequence. So I doubt there's an universally...

posted 4y ago by Lundin‭

Answer
75%
+4 −0
Q&A What is a standard definition (or a CS theory based formal definition) for Escaping?

I personally would define "escaping" in software development in general and coding in particular as follows: Making an exception to match data which otherwise would not be allowed to be matched: I...

1 answer  ·  posted 4y ago by deleted user  ·  edited 4y ago by Alexei‭

Question string escaping
75%
+4 −0
Q&A Is it possible in MySQL to require each row in a table have at least one foreign key record in a join table?

If I understand your question correctly, i.e. Is it possible to enforce that constraint at the database level? Then the short answer is: No. In the business logic for the program, every re...

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

Answer
75%
+4 −0
Q&A Is omitting braces for single statements bad practice?

I'm in the "Use the braces. Just use them every time" camp [1]. As others have suggested you or your tooling will catch a lot of cases where you screw up on this, but the ones that slip through can...

posted 4y ago by dmckee‭  ·  edited 4y ago by dmckee‭

Answer
75%
+4 −0
Q&A Unable to `mount` overlayfs in Docker container when inside a LXC with a ZFS pool

Summary/Context I'm currently working to improve performance and throughput of our automation infrastructure, most of which is a combination of Bash/Shell scripts, Python scripts, Docker, Jenkins,...

1 answer  ·  posted 4y ago by ghost-in-the-zsh‭  ·  last activity 4y ago by ghost-in-the-zsh‭

Question linux bash docker lxc zfs
75%
+4 −0
Q&A Why would an unique index get moved to the primary key after the underlying column is dropped?

I can't say that I fully understood what you did, but I think I got the explanation: removed 1+ columns that were part of the index. The index will be updated to not include that column. If...

posted 4y ago by Alexei‭  ·  edited 4y ago by Alexei‭

Answer
75%
+4 −0
Q&A Iterating through a MySQL table with a LIMIT clause and PHP gets progressively slower

LIMIT/OFFSET, fundamentally, is slow for large datasets. With a clause like LIMIT 10000 OFFSET 150000, you're asking the query engine to find 160,000 rows, then throw away 150,000 of them. Hardly e...

posted 4y ago by ArtOfCode‭

Answer
75%
+4 −0
Q&A Is there a way to automatically fix MySQL tables where the auto_increment has fallen behind the correct value?

Due to a series of unfortunate events I have some tables where the auto_increment value got behind what it should be. If the auto_increment value is 9 and there are 20 rows in the table the next 1...

1 answer  ·  posted 4y ago by Charlie Brumbaugh‭  ·  last activity 4y ago by Alexei‭

Question mysql auto-increment
75%
+4 −0
Q&A Static and thread_local initialization order

Is there any guarantee regarding initialization of static and thread_local objects? In example, is there any guarantee about the value printed by the following program? #include<iostream> s...

1 answer  ·  posted 4y ago by Estela‭  ·  edited 4y ago by Alexei‭

Question c++ static thread-local
75%
+4 −0
Q&A Handling JSON files in Rust without manually creating mapping classes

The hard part is figuring out exactly how your code needs to adapt to changes in the JSON structure. In your example, presumably the rest of your program needs to depend on the names and types in p...

posted 4y ago by r~~‭

Answer
75%
+4 −0
Q&A What do the number entries mean in the sympy poly.diff(...) tuple syntax?

It appears that the tuple syntax works like this: (variable index, order of derivative) Where something like: base = poly(x*y**2 + x, x, y) deriv_mysterious5 = base.diff((0,1)) print('deriv_mysteri...

posted 4y ago by jrh‭  ·  edited 4y ago by jrh‭

Answer
75%
+4 −0
Q&A Permutations of an array - APL

I assume the built-in definition you're referring to is pmat. That illustrates how to solve your problem near the bottom. The idea is simply if σ is a permutation of length N and A is an array of l...

posted 4y ago by Derek Elkins‭

Answer
75%
+4 −0
Q&A Controlling format when importing CSV

This is happening because of assumptions made by the software. "E notation" is a standard convention popular with scientists, mathematicians and engineers as a convenient way to represent and proce...

posted 4y ago by pnuts‭  ·  last activity 4y ago by Alexei‭

Answer
75%
+4 −0
Q&A How can I generate documentation from comments in SQL DDL?

I have some SQL scripts that contain DDL to create tables and schemas for a database. I'd like to be able to comment this SQL and then use those comments to generate output documentation (in HTML)...

0 answers  ·  posted 4y ago by Monica Cellio‭  ·  edited 4y ago by Monica Cellio‭

Question sql documentation tools
75%
+4 −0
Meta Community feedback: What type of questions can I ask here?

There is a new page What type of questions can I ask here? (found under Help -> Guidance.) I'll quote it as whole below, for convenience. Please give feedback on specific items in the list that ...

15 answers  ·  posted 4y ago by Lundin‭  ·  last activity 3y ago by Lundin‭

Question discussion scope on-topic off-topic help
75%
+4 −0
Meta Community feedback: What type of questions can I ask here?

On-topic questions about SQL programming ... Off-topic questions about database administration I propose that these two are changed to clarify that we allow questions about database design an...

posted 4y ago by Lundin‭

Answer
75%
+4 −0
Meta Community feedback: What type of questions can I ask here?

I propose that the following is added: On-topic questions asking for code review that follow [the site policies for the code review category]. Where [the site policies for code reviews] is a li...

posted 4y ago by Lundin‭  ·  edited 4y ago by Lundin‭

Answer
75%
+4 −0
Q&A What's the difference between null pointers and NULL?

In short, NULL is the 0 value, and a null pointer is a pointer variable that points to nothing. some systems allowing a different representation of the null pointer other than zero Years back...

posted 4y ago by sonofel‭  ·  edited 4y ago by EJP‭

Answer
75%
+4 −0
Q&A Implementing impersonation in an ASP.NET Core Web application

I am working at a proof-of-concept for porting an ASP.NET MVC application to an ASP.NET Core API + Angular SPA. One of the features of the existing application is the ability of an admin (typically...

0 answers  ·  posted 4y ago by Alexei‭

Question asp.net-core impersonation
75%
+4 −0
Q&A dig -6 works but dig -4 does not

I can't get a response from IPv4 dig on my server but I can get one from IPv6 dig. See the below output: $ dig +short myip.opendns.com a @resolver1.opendns.com # Doesn't return anything, this used ...

1 answer  ·  posted 4y ago by cobertos‭  ·  last activity 4y ago by Canina‭

Question linux ipv4 ipv6 dns