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.6k posts
 
71%
+3 −0
Q&A Is there a way to automatically fix MySQL tables where the auto_increment has fallen behind the correct value?

This is possible in two steps by using a dynamic SQL: SET @nextId = (SELECT MAX(id) + 1 FROM `CustomTable` ); SET @sql = CONCAT('ALTER TABLE `CustomTable` AUTO_INCREMENT = ', @nextId[]()); PREPA...

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

Answer
71%
+3 −0
Q&A Union of queries depending on variable in list

Yes, you can achieve this using UNWIND and CALL, in the following pattern: UNWIND ['Canada', 'Europe'] AS region CALL { WITH region query } RETURN * You can replace RETURN * with any o...

posted 4y ago by r~~‭

Answer
71%
+3 −0
Q&A Union of queries depending on variable in list

I have a big Cypher query that is depending on a variable. Example: With REGION = 'Canada' query I want to execute this query several times based on different values on a list and return the UN...

1 answer  ·  posted 4y ago by Guilherme Costa‭  ·  edited 4y ago by Alexei‭

Question cypher neo4j union
71%
+3 −0
Q&A In PHP what is the use case for include instead of require when including PHP scripts?

In PHP one can either use include or require to include files, the difference is that if the file doesn't exist it will emit a fatal error and halt with a require and only emit a warning with inclu...

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

Question php
71%
+3 −0
Q&A In MySQL is there a limit to the number of keys in a IN() clause?

According to the documentation for the MySQL IN function: The number of values in the IN() list is only limited by the max_allowed_packet value. The default value for it is 67108864. So, you...

posted 4y ago by Alexei‭

Answer
71%
+3 −0
Meta Add syntax highlighting for Cypher

There have now been two questions about Cypher, the Neo4j query language. Highlight.js doesn't support Cypher syntax highlighting out of the box, but they do offer a drop-in highlightjs-cypher modu...

0 answers  ·  posted 4y ago by r~~‭  ·  edited 3y ago by sau226‭

71%
+3 −0
Q&A In MySQL is there a limit to the number of keys in a IN() clause?

I have a PHP program that does a SELECT and then updates some of the values based on an algorithm. Rather than updating one row at a time UPDATE example_table SET COLUMN_A = 1 WHERE primary_k...

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

Question mysql
71%
+3 −0
Q&A Iterating through a MySQL table with a LIMIT clause and PHP gets progressively slower

I have a very large table that I need to iterate through with a PHP script and I can't do all of the results at once so I do it in sections with a LIMIT like for ($x = 0; $x < 10000000; $x += 1...

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

Question php mysql
71%
+3 −0
Q&A How to make Microsoft.Build.Evaluation.Project use same base properties as Visual Studio?

Microsoft.Build.Evaluation.Project seems to have some rather odd ideas of what values to use when loading projects. In particular, I have a number of projects with the following dependency: <Pa...

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

71%
+3 −0
Meta I can't choose any tags when posting a question

The problem described below occurs in Windows 10 and Chrome 87.0.4280.66 (64 bits, JavaScript enabled). I could post this question only in mobile (Chrome/iOS 14.2), where the problem doesn't occur....

0 answers  ·  posted 4y ago by hkotsubo‭  ·  edited 1y ago by hkotsubo‭

71%
+3 −0
Q&A Why would an unique index get moved to the primary key after the underlying column is dropped?

So I had a table with a primary key and a bunch of different columns. Columns A, B, and C were all unsigned ints (like the primary key column) and each column had a unique constraint I dropped the...

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

71%
+3 −0
Q&A Would a MySQL database run more efficiently with smaller varchar lengths?

YES or NO: It all depends on the storage engine Fairly universally, though IIRC from looking at PostgreSQL a while back, PostgreSQL may not even do that, there is a difference between CHAR/VARCHAR/...

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

Answer
71%
+3 −0
Code Reviews Counting number of assignments that a `fscanf` format strings implies

Consider using look-up tables to increase execution speed (at the cost of some 200 bytes .rodata use). For example this: static const char specifiers[] = "diouxaefgcspAEFGX"; could be replaced wit...

posted 4y ago by Lundin‭

Answer
71%
+3 −0
Meta Code Reviews: ‘it's fine’

Put it in a comment if it's just "It's fine, no problems here". As with most answers that aren't substantial enough to warrant their own answer post, I'd say to just leave a comment. As you said, k...

posted 4y ago by Moshi‭

Answer
71%
+3 −0
Q&A SID to login for access via a group

I have a query that returns the owner of jobs on an SQL instance, select s.name as JobName , s.owner_sid , ISNULL(L.name,'AccessViaGroup') as LoginName --Trying to figure out how to turn that ...

0 answers  ·  posted 4y ago by James Jenkins‭  ·  edited 4y ago by Alexei‭

71%
+3 −0
Meta Phantom answer in my notification list

That... looks like a funny bug. I started writing an answer, containing mostly the number "1", because that would be an (not really helpful, but correct) answer to your question. To test, whether t...

posted 4y ago by luap42‭  ·  last activity 4y ago by luap42‭

Answer
71%
+3 −0
Meta What is the point of tagging a question with both a parent and a child tag?

I can provide an answer based on Stack Overflow experience. SO offered watches by tags. By using a general tag along with a more specific tag, users interested in [sql] will also get the question i...

posted 4y ago by Alexei‭

Answer
71%
+3 −0
Code Reviews Counting number of assignments that a `fscanf` format strings implies

Just looking at your code, I think you'll need to look at a few nasties in scan sets: %[^]%a-z] stops at the second ], not the first, for example, and I think your code would misconstrue the %a ...

posted 4y ago by Mythical Programmer‭  ·  edited 4y ago by Mythical Programmer‭

Answer
71%
+3 −0
Q&A How should we share some content between two otherwise-independent git repositories?

I would create three repository, let's call them dev, doc and shared for simplicitiy. Then I would add shared as a dependency to the other two by using submodules. In this way you will not only tra...

posted 4y ago by ntd‭

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

questions asking for implementing a certain feature (or homework). You should include your (partially working) trials in the post asking to explain what a certain code does. A great many questi...

posted 4y ago by meriton‭

Answer
71%
+3 −0
Meta Are reference requests welcome here?

This will be community dependent - e.g., Software Development, Outdoors, Cooking, etc. might each have a different rule. IMHO, there are two issues here: How helpful is such information, compared ...

posted 4y ago by manassehkatz‭

Answer
71%
+3 −0
Q&A What would the pros and cons of storing the compiled CSS output of SASS in version control?

One of the benefits of having the compiled CSS in the revision history is that it enables you to see changes if you have other steps in the compile process besides SCSS -> CSS. One example is if...

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

Answer
71%
+3 −0
Meta Initial List of Tags

As far as I can tell, there are no tags yet for the main Q&A. I suggest setting an initial group of tags which help organize questions. Two groups I think would be particularly helpful are lang...

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

71%
+3 −0
Q&A What options can be set via swing.properties?

The default Swing look and feel can be set in $JAVA_HOME/conf/swing.properties What else can be set in this file? I can't find any other documentation of it.

1 answer  ·  posted 4y ago by ajv‭  ·  last activity 4y ago by Stephen C‭

Question java swing
71%
+3 −0
Q&A Can renaming a MySQL column be sped up by dropping indexes or foreign keys?

I would simply turn off foreign key checks: SET FOREIGN_KEY_CHECKS=0; and make all the changes, and then turn foreign key checks back on: SET FOREIGN_KEY_CHECKS=1;

posted 4y ago by manassehkatz‭

Answer