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.3k posts
 
50%
+0 −0
Q&A How to merge Django model query results?

I have to modify a legacy Django web application where there are 2 tables to store the same information using the same database structure, and the only difference is the names of the tables (and th...

1 answer  ·  posted 1mo ago by toraritte‭  ·  last activity 1mo ago by toraritte‭

77%
+5 −0
Q&A What determines where the focus goes back to when clicking on a browser's back button?

As far as I can tell, it is in part determined by the HTML spec's History API1, specifically the value of history.scrollRestoration. Quoting the HTML spec's scroll restoration mode paragraph: ...

1 answer  ·  posted 1mo ago by toraritte‭  ·  last activity 28d ago by toraritte‭

60%
+1 −0
Q&A Adding dependency with cabal in gitlab-ci

I have a project I normally build with nix and cabal, however I also want to publish my documentation onto gitlab pages. It's impractical to run my nix on the gitlab CI, so I've just been using cab...

0 answers  ·  posted 1mo ago by WheatWizard‭

60%
+1 −0
Q&A Convert Synapse SQL Server hex `sid` to Azure Entra group object ID.

Suppose I have an Azure Synapse Serverless SQL database. I can run the following to get the sid of added groups: select name, type_desc, authentication_type_desc, sid from sys.database_principal...

0 answers  ·  posted 1mo ago by daviewales‭

66%
+2 −0
Q&A Privilege escalation from Python like from systemd

Generallly (assuming no exploit is found) it's not possible to escalate the privileges of an already running process, except via code that itself has kernel level access (running in ring 0 - this i...

posted 1mo ago by Karl Knechtel‭  ·  edited 1mo ago by Karl Knechtel‭

Answer
71%
+3 −0
Q&A Privilege escalation from Python like from systemd

When you try to do a privileged systemd operation without the privilege, you get an escalation prompt: $ systemctl stop docker ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ==== ...

1 answer  ·  posted 1mo ago by matthewsnyder‭  ·  last activity 1mo ago by Karl Knechtel‭

60%
+1 −0
Q&A Images won't fit flex container on chrome

#3: I still don't know what exactly is going on, but experimenting today, I found a workaround at least: align-items: normal; on the container and object-fit: scale-down; on the image. Due to the...

posted 1mo ago by martixy‭  ·  edited 1mo ago by martixy‭

Answer
60%
+1 −0
Q&A How can one import two classes with the same name in Java8?

Elaborating with an example: Java doesn't allow imports to aliased (not currently), to my knowledge. The current standard is writing out the fully-qualified name: ClassA.java: package com.fol...

posted 1mo ago by tylerbakeman‭  ·  edited 1mo ago by Michael‭

Answer
66%
+2 −0
Q&A Images won't fit flex container on chrome

I browse deviantArt from time to time and I wanted to make images display bigger, because there is so much useless whitespace on that site. On first glance that would be simple - remove the set di...

1 answer  ·  posted 1mo ago by martixy‭  ·  last activity 1mo ago by martixy‭

Question css chrome debugging
50%
+0 −0
Q&A Eclipse Custom Errors for Annotation Processing

In Eclipse, is it possible to setup custom errors or markers in the editor, for annotation processing? For example, the standard squiggly lines with descriptions. This question is not important. ...

0 answers  ·  posted 1mo ago by tylerbakeman‭

Question java jpa Eclipse
66%
+2 −0
Q&A Integrating a standalone database 'engine' into an OLAP database

I'm trying to build a proper understanding of what an OLAP[1] datastore vs an OLAP data engine is. I tend to put too much value on keywords like "engine" vs "data store." If it has "engine," I thin...

0 answers  ·  posted 1mo ago by erjcan‭  ·  edited 1mo ago by Michael‭

Question database olap
71%
+3 −0
Q&A Understanding the Matrix protocol vs Matrix server and what can be implemented from scratch

Specification You understand correctly. Matrix is an interface for federated encrypted communication. From the first page of the spec: Matrix defines a set of open APIs for decentralised commun...

posted 1mo ago by Michael‭  ·  edited 1mo ago by Michael‭

Answer
66%
+2 −0
Q&A Understanding the Matrix protocol vs Matrix server and what can be implemented from scratch

Since Matrix messenger offers only a protocol,[1] as a software engineer I can choose to: Write my own client or use an existing client Write my own server with my own server logic or join an e...

1 answer  ·  posted 1mo ago by erjcan‭  ·  last activity 1mo ago by Michael‭

Question open-source matrix
66%
+2 −0
Q&A Kubectl exec: "Error from server (BadRequest): Upgrade request required"

Ok I got it working again. The issue was that I had updated my kubeconfig file, and the current-context setting had changed. This setting essentially selects which cluster kubectl targets. Now th...

posted 1mo ago by Iizuki‭

Answer
50%
+0 −0
Q&A Kubectl exec: "Error from server (BadRequest): Upgrade request required"

I'm getting an error when trying to open a shell to a pod. This used to work. $ kubectl exec --tty --stdin --namespace my-ns my-pod -- sh Error from server (BadRequest): Upgrade request required ...

1 answer  ·  posted 1mo ago by Iizuki‭  ·  last activity 1mo ago by Iizuki‭

Question kubernetes kubectl
50%
+2 −2
Q&A How to write a bash function to sanitize filenames for Linux and Windows

I'm trying to write a bash function that can sanitize filenames to make them compatible with both Linux and Windows file systems. The function should perform the following operations: Replace in...

0 answers  ·  posted 1mo ago by ShadowsRanger‭

Question bash
50%
+0 −0
Q&A How to test if chrome dev tools are open in JavaScript?

Some web sites are able to detect that Developer Tools is open as output a message in a the console. How does JavaScript know that the Chrome DevTools are open? Could this be spoofed?

0 answers  ·  posted 1mo ago by kreijstal‭  ·  edited 1mo ago by Alexei‭

Question javascript chrome
66%
+2 −0
Q&A VS code - stop reopening old tabs

When I open VS Code inside a project dir, it reopens all the tabs that were open last time, and re-expands all the folders that were unfolded last time. I find this annoying. Usually, when I close...

0 answers  ·  posted 1mo ago by matthewsnyder‭

77%
+5 −0
Q&A Can I access an array element from a pointer to an object contiguous with but outside the array?

The problem with undefined behavior due to array out of bounds happens whenever we use pointer arithmetic, which is only defined to work within the bounds of an array. Where plain variables, "scala...

posted 1mo ago by Lundin‭  ·  edited 1mo ago by Lundin‭

Answer
50%
+0 −0
Q&A Simplest way of getting failure notification emails from kubernetes

The simplest solution I managed to find is robusta. It still has a bunch of unnecessary features, but with the correct configuration it's possible to disable these. As a bonus, it nicely adds some...

posted 2mo ago by Iizuki‭

Answer
75%
+4 −0
Q&A What is a .gitkeep file?

They are not a part of git the way .gitignore files are. It's just a convention to add empty directories to git repositories. Normally git ignores empty directories altogether. Adding an empty fil...

posted 2mo ago by Iizuki‭  ·  edited 2mo ago by Iizuki‭

Answer
71%
+3 −0
Q&A What is a .gitkeep file?

Sometimes there are empty files named .gitkeep sprinkled around a repository. What are these files?

1 answer  ·  posted 2mo ago by Iizuki‭  ·  edited 2mo ago by Iizuki‭

Question git
71%
+3 −0
Q&A Why does `let map f = id >=> switch f` work in F#?

when I look at the type signatures, it is not supposed to work. The types work because they're parameterized. The types of the combinators involved are (renaming all parameters to be unique fo...

posted 2mo ago by r~~‭

Answer
80%
+6 −0
Q&A Can I access an array element from a pointer to an object contiguous with but outside the array?

C prohibits accessing an array out of bounds even if measures were taken to ensure that what should lie outside those bounds were known: struct MyStruct { int x[2]; int y, z; }; static...

1 answer  ·  posted 2mo ago by CPlus‭  ·  last activity 1mo ago by Lundin‭

50%
+0 −0
Q&A Why does `let map f = id >=> switch f` work in F#?

Asked How to implement map using the fish (>=>, Kleisli composition) operator in F#? a couple of hours ago, and r~~'s answer blew my mind: let map f = id >=> switch f It is perfect ...

1 answer  ·  posted 2mo ago by toraritte‭  ·  edited 1mo ago by Alexei‭