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 Why python regexps look expecting a begin match, but not an ending one?

My impression is that the regexps behave a little bit odd: >>> import re >>> r=re.compile("test") >>> r.match("test") <re.Match object; span=(0, 4), match='test'&g...

2 answers  ·  posted 13d ago by peterh‭  ·  last activity 12d ago by Karl Knechtel‭

Question regex python-3
75%
+4 −0
Q&A Macro to count the number of arguments

Let's say we have a function void f(int argc, ...); where argc is the number of variadic arguments. Can we write a macro of the form #define F(...) f(CNT(__VA_ARGS__), __VA_ARGS__) which...

2 answers  ·  posted 10d ago by alx‭  ·  last activity 8d ago by Lundin‭

Question c c-preprocessor
75%
+4 −0
Q&A Extracting Firefox Local Data

How does one parse/decode/extract information stored by a web page in Firefox's browser local storage without the browser? So far, I've worked out that the data lives at ~/.mozilla/firefox/${profi...

1 answer  ·  posted 1mo ago by John C‭  ·  last activity 1mo ago by Zoe‭

Question json sqlite firefox
75%
+4 −0
Q&A PHP curl / how to ensure cookie file is read?

I've recently discovered that php curl does not load cookies from a cookie file until after at least one request is made. For instance, assume I already have a cookie file from a previous session ...

0 answers  ·  posted 2mo ago by billynoah‭  ·  last activity 1mo ago by Alexei‭

Question php curl
75%
+4 −0
Q&A How to sort the output of meta / slash commands in `psql`?

For example, how to sort the output below by the values in "Column" in the psql shell itself? my_db=> \d auth_user Table "public.auth_user" Column ...

1 answer  ·  posted 1y ago by toraritte‭  ·  edited 1y ago by MER‭

Question database postgresql psql
75%
+4 −0
Meta RSS feeds for tags

There are RSS feeds for tags already, linked at the bottom of the tag page. (Yeah, I missed it too; I'll see if we can make that more obvious.) For example, here's the RSS feed for the feature-re...

posted 1y ago by Monica Cellio‭  ·  edited 9mo ago by Monica Cellio‭

Answer
75%
+4 −0
Q&A How to sort the output of meta / slash commands in `psql`?

It's been a while, but the answer is "yes and no," I believe. No: The describe-schema command doesn't (last I heard) allow any modification. Yes: The describe-schema command also doesn't do any...

posted 1y ago by John C‭  ·  edited 1y ago by toraritte‭

Answer
75%
+4 −0
Meta RSS feeds for tags

How can i get a per-tag RSS feed? I only see the general feed at the main pages and i don't want to subscribe to tags via email.

1 answer  ·  posted 1y ago by JohnRando‭  ·  edited 9mo ago by Monica Cellio‭

Question feature-request status-completed
75%
+4 −0
Q&A How to iterate over numpy array axes in array slicing?

slice(None) will give you a value that's equivalent to a bare : in slice syntax. So you can write, for example, for i in range(4): print(new_array[tuple(slice(None) if i == j else n for j, n ...

posted 1y ago by r~~‭

Answer
75%
+4 −0
Q&A Syntax match any 2 spaces at end of line

I'm using the following syntax match to conceal 2 spaces at the end of a line with a special character. syntax match Normal '\s\{2}$' conceal cchar=⏎ A line with two spaces at the end of it wou...

2 answers  ·  posted 1y ago by rcmosher‭  ·  last activity 1y ago by Michael‭

Question vim
75%
+4 −0
Q&A How do I trim a sorted list in Python?

You can use the functions in the bisect module with a list slicing operator. For example bisect_left finds the index of the insertion point in a sorted list, and if the values are equal, it will fi...

posted 1y ago by congusbongus‭

Answer
75%
+4 −0
Meta Comparing our site scope to Stack Overflow

The main difference between Stack Exchange and Codidact is that SE loves to spawn off hundreds of sites with lots of overlapping scopes, whereas Codiact has the category system, which means that co...

posted 7mo ago by Lundin‭

Answer
75%
+4 −0
Q&A Understanding "logical OR" and "logical AND" in programming languages

Many programming languages either have keywords like or and and used for logic, or equivalent operators such as || or && - which are referred to as "logical or" and "logical and" respective...

3 answers  ·  posted 7mo ago by Karl Knechtel‭  ·  edited 7mo ago by Andreas demands justice for humanity‭

Question language-agnostic language-design logic
75%
+4 −0
Meta Comparing our site scope to Stack Overflow

We've had discussions before about the site's intended scope (range of permissible topics and questions), but for new users coming from the Stack Exchange network, I think it would be useful to dra...

2 answers  ·  posted 7mo ago by Karl Knechtel‭  ·  last activity 7mo ago by Lundin‭

Question discussion scope stack-overflow
75%
+4 −0
Q&A How to find out which packages target .NET 3.1 in a .NET 5 application?

You could start to track down the problem by using Assembly.LoadFrom() to attempt loading each library individually. I have a routine in a .NET 5 solution that performs some analysis on assemblies...

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

Answer
75%
+4 −0
Meta Error 500 in one specific post (the rest of the site is fine)

I've got a HTTP Error 500 when trying to access this post. Here's the quote error ID's: ef4f6ec1-8d0f-4be3-9553-36e01b5f01c4 and bbeb9bf9-2c58-43b1-be05-c9e914bb80bf. I've browsed to another pos...

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

Question bug status-completed
75%
+4 −0
Q&A Strange change of object lightness and colour in Nannou application

Thanks to comments by elgonzo the solution was quite easy. hsl expects the first component (hue) to be in [0.0, 1.0] instead of [0.0, 360.0] and the third components (lightness) to be in [0.0, 1...

posted 4y ago by telefza‭

Answer
75%
+4 −0
Q&A How do I communicate with a subproject in qmake?

When working with a qmake subdirs project you may want to share configuration between multiple projects. In a less common case you may including a external project within your own as code and want ...

1 answer  ·  posted 4y ago by dmckee‭  ·  last activity 4y ago by dmckee‭

Question qmake subproject
75%
+4 −0
Meta Is it correct to downvote answers to bad questions?

Sometimes I see bad questions (e.g Off-Topic questions) but I see perfect high quality answers to it but since the question is Off-Topic, so I think that who answered the question is being a victim...

1 answer  ·  posted 4y ago by Kevin M. Mansour‭  ·  last activity 4y ago by Alexei‭

Question discussion
75%
+4 −0
Q&A What are the disadvantages of using static methods in Java?

I am not a Java developer, but a C# .NET one, but I guess static concept is very similar between the two. As in many areas, it depends, but for most applications using static should be avoided: ...

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

Answer
75%
+4 −0
Q&A Get the length of a slice from a multi-dimensional array

If I have a one-dimensional array, I can get the length of it quite easily: var x = moves.Length(). However, if the array is multi-dimensional, .Length() returns the total number of elements. If ...

2 answers  ·  posted 3y ago by FrankLuke‭  ·  last activity 3y ago by FoggyFinder‭

Question c# array multidimensional-array
75%
+4 −0
Q&A Hash sum mismatch (only for openjdk-11-jdk)

"Hash Sum mismatch" printed by apt-get on Debian and derivatives means that the file as downloaded had a different cryptographic checksum (hash) than what's listed in the packages list. In this ca...

posted 3y ago by Canina‭

Answer
75%
+4 −0
Q&A Get the length of a slice from a multi-dimensional array

I think what you are looking for is Array.GetLength which: gets a 32-bit integer that represents the number of elements in the specified dimension of the Array.

posted 3y ago by Alexei‭

Answer
75%
+4 −0
Q&A How to generate multi-line completions (code generation) with OpenAI?

I have finally received access to a trial account on OpenAI and I took it for a spin. My interest is with code generation, so first tried something simple using the playground: Q: generate a stand...

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

Question c# openai code-generation gpt-3
75%
+4 −0
Q&A Why is this client code getting the wrong date for a few hours a day?

There are two issues here. The first is that this code isn't rolling over at 8PM as expected: if (now.getHours() > 20) { now.setDate(now.getDate() + 1); } This change happens at 9PM as...

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

Answer