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
 
60%
+1 −0
Q&A Preloading some data at application startup as fast as possible

One way to do this is to launch a Task at application startup as soon as possible (the DI is configured). The only hard part is to make DI available in the prewarm functionality. The following imp...

posted 3y ago by Alexei‭

Answer
60%
+1 −0
Q&A Are there references in C?

This question most often comes up in relation to C++. That language has something that is called reference in the standard. They work like pointers, with a few differences. They have to be initi...

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

Answer
60%
+1 −0
Q&A Preloading some data at application startup as fast as possible

I am caching some very static information (changes once per day) in my ASP.NET Core application. This is normally done when needed ("lazy"). One such cache item is a 50K list of items that are tak...

1 answer  ·  posted 3y ago by Alexei‭  ·  last activity 3y ago by Alexei‭

Question asp.net-core caching prefetch
60%
+1 −0
Q&A How can the Caesar cipher be implemented in Java?

The formulas for encryption and decryption require a positive value of the modulo operation. However, this is not guaranteed for all implementations of the modulo operator. For instance, in Python ...

posted 3y ago by Holden‭

Answer
60%
+1 −0
Q&A Comparing two excel files with Python based on changes

Here's what I'd do, hope it still helps someone: import pandas as pd t1 = [123,456,789,101,133] t1_descr = ['Description' + str(i) for i in t1] table1 = pd.DataFrame({'name': t1, 'descripti...

posted 3y ago by ibmx‭

Answer
60%
+1 −0
Q&A DST disrupting rsync twice a year

Solved this æons ago actually... [Assumes Bash shell]. If the DST difference is for instance an hour (or 60 minutes, or 3600 seconds), change: --modify-window=3 To: --modify-window=$((3 + 60...

posted 3y ago by .                                                .‭

Answer
60%
+1 −0
Q&A Python looping 300 000 rows

I’m struggling to get timeit working correctly but this is faster in my limited tests: l = [123456789, 23456789012, 34567890123] result = [0, 0, 0] for idx, row in enumerate(l): i = f"{r...

posted 3y ago by NoahTheDuke‭

Answer
60%
+1 −0
Q&A What solutions available for a CMS-agnostic contact form?

Besides the aforementioned solutions, Web components might be useful (can be reused in multiple contexts). Examples: in Drupal in ButterCMS in Backdrop CMS in WordPress However, if your fo...

posted 3y ago by Alexei‭

Answer
60%
+4 −2
Q&A Separate digits of a number in groups with different sizes

I have a list of 11-digit numbers stored in one single column in Excel, and I need to separate the digits according to this pattern: 2-2-1-3-3. Example: 00002451018 becomes 00 00 2 451 018. How c...

2 answers  ·  posted 3y ago by sfrow‭  ·  edited 3y ago by Alexei‭

Question python string number-formatting
60%
+1 −0
Q&A How to show XML in browser?

XSL and XSLT is a good way to provide a theme or stylesheet to XML files including RSS and Atom feeds. By the way Atom is so much better than RSS and RSS as a feed standard sucks. I think there wa...

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

Answer
60%
+1 −0
Meta Why did my question get a downvote?

I believe this should be answered by the downvoters on a case by case basis. Only they know the particular reason they downvoted that particular question. I am not a fan of canned feedback, becaus...

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

Answer
60%
+7 −4
Q&A Are there references in C?

Yes there are references and pass-by-reference in C, though the language has no explicit syntax item called "reference" like C++. In a C context, it is irrelevant that C++ happens to have something...

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

Answer
60%
+1 −0
Q&A What is malloc's standard-defined behavior with respect to the amount of memory it allocates?

Here's a relevant bit from the standard (C89, section 7.20.3): The pointer returned if the allocation succeeds is suitably aligned so that it may be assigned to a pointer to any type of object...

posted 3y ago by bta‭

Answer
60%
+4 −2
Q&A Question regarding an error message in my compiler to do with my code on linked list.

Can anyone help me, I'm currently learning pointers, this is the code I wrote to try and insert a node at the beginning of the list. However at the part where I included the comment of "error at th...

1 answer  ·  posted 3y ago by hamburgersarecool‭  ·  edited 3y ago by hamburgersarecool‭

Question c pointers linked-list
60%
+1 −0
Q&A Tracking what users are searching in a content management system

Every URL served by your web site is recorded in your web server logs. You could brute-force your way through it by grepping for whatever the prefix is for your search URLs (for example, /search?q...

posted 3y ago by Monica Cellio‭

Answer
60%
+1 −0
Q&A Conditionally ignore files in git

Per man gitignore there are four sources of patterns for ignoring files. Command-line arguments are probably too much hassle; .gitignore is itself version-controlled (unless you include .gitignore ...

posted 3y ago by Peter Taylor‭

Answer
60%
+1 −0
Q&A Can I set a memory limit for the .NET Core garbage collector to collect objects more aggressively?

forcing the GC collection after each operation - this can be done using GC.Collect(), but it is not recommended to do so ...unless you have good reason. Here you have good reason. The oth...

posted 3y ago by Peter Taylor‭

Answer
60%
+1 −0
Q&A cannot initialize a variable of type 'CFDictionaryRef'

Instead of reinventing the wheel, I would use SpaceInfo, a nice little command line tool to retrieve the current space number.

posted 3y ago by samcarter‭

Answer
60%
+4 −2
Q&A Watertight Mesh Representation

A watertight mesh is one which does not have holes, and for which each face has a designated inside and outside. Such a mesh can be "tetrahedralized", has a defined volume, and can be an operand in...

0 answers  ·  posted 3y ago by Josh Hyatt‭  ·  edited 3y ago by Josh Hyatt‭

Question validation data-structures 3d cad
60%
+1 −0
Q&A Order a subcollection from linq

If you are using .NET Core 5.0 or more you should be able to write something like the following (not tested): var data = context.TblOrder .OrderBy(o => o.OrderDate) .Select(o => ne...

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

Answer
60%
+1 −0
Q&A How to set update-crypto-policies to LEGACY in Dockerfile

Hi, so I solved this issue, I first ran my container in -it mode, went to this path- etc/crypto-policies/back-ends and made following changes to these files- openssl.config- replaced "DEFAULT"...

posted 3y ago by Megan‭

Answer
60%
+1 −0
Q&A How to set update-crypto-policies to LEGACY in Dockerfile

So im trying to do RUN update-crypto-policies --set LEGACY in my Dockerfile as I was getting an error "Failed to load certificate from file 'client-rsa.pem':''ee key too small". But when I build...

2 answers  ·  posted 3y ago by Megan‭  ·  last activity 3y ago by Megan‭

Question linux docker macos devops docker-compose
60%
+1 −0
Q&A Should a salt be stored in the same database as the hash?

With bcrypt, the salt is stored in the same string as the hash. This is done so that you have everything you need to get that hash identifier if you know the password.[1] Wikipedia breaks down the ...

posted 1y ago by Michael‭

Answer
60%
+1 −0
Q&A Do the elements of 'required' array need to be defined in 'properties' dictionary in JSON schema?

According to my reading of the JSON Schema Spec, the answer is no. required array can contain elements which are not in the properties dictionary. The example schema in question seems to be valid....

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

Answer
60%
+1 −0
Q&A What is the purpose of having a wrapper class for JarFile in Spring-boot-loader?

Why does the wrapper exists and why doesn't it override close()? Apparently, this wrapper was introduced to "Attempt to fix memory leak in JarFile class". The memory leak issue was caused by a cha...

posted 1y ago by Miss Skooter‭

Answer