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.

Posts by Peter Taylor‭

39 posts
66%
+2 −0
Q&A Git command formatting characters in msbuild are interpreted incorrectly

From MSDN: To escape a special character, use the syntax %<xx>, where <xx> represents the ASCII hexadecimal value of the character. So to use format %ad you should escape as %25ad.

posted 3mo ago by Peter Taylor‭

Answer
66%
+2 −0
Q&A Git-ignoring files with special characters in their names, especially newlines

Hidden in the documentation there's See fnmatch(3) and the FNM_PATHNAME flag for a more detailed description. so that's probably the route you should be taking to emulate the behaviour as acc...

posted 5mo ago by Peter Taylor‭

Answer
75%
+4 −0
Meta Should we allow SEO related questions?

The scope currently lists as on-topic: Best practices, as long as clear "best" criteria are provided. Examples: fastest execution, least memory use, widest tool support for a target, most begi...

posted 1y ago by Peter Taylor‭

Answer
71%
+3 −0
Code Reviews Health checks with caching in ASP.NET Core

private readonly int _checkInterval; What are the units? I have to search for usages to find out. I strongly favour using TimeSpan instead of int. private static readonly SemaphoreS...

posted 1y ago by Peter Taylor‭

Answer
66%
+2 −0
Q&A TeamCity build variables

I have created a Configuration Parameter in TC's 'Parameters' area: That can work, but from the rest of the question I think that what you actually want to do here is create an Environment Var...

posted 1y ago by Peter Taylor‭  ·  edited 1y ago by Peter Taylor‭

Answer
66%
+2 −0
Q&A Using Lua's `os.rename` to rename a file from a hard drive to a new location on a USB flash drive

Your diagnosis appears to be correct. Per https://www.lua.org/pil/22.html Because Lua is written in ANSI C, it uses only the functions that the ANSI standard defines. POSIX rename extends the...

posted 1y ago by Peter Taylor‭

Answer
71%
+3 −0
Q&A How to define custom configurations in new-style .csproj?

I decided to tackle this again via the route of creating a new solution project-by-project, and this time the configuration manager actually did something useful. Specifically, it added a property ...

posted 2y ago by Peter Taylor‭

Answer
66%
+2 −0
Q&A How to set FontFamily for an entire WPF application in a theme?

While writing the question I did find one hacky solution which works, and which I will use unless someone has an alternative. Create a codebehind file for the theme: using System; using System.W...

posted 2y ago by Peter Taylor‭

Answer
75%
+4 −0
Q&A How to set FontFamily for an entire WPF application in a theme?

I have a project Anonymised.Theme which contains XAML resource dictionaries for a theme. This is used by about a dozen applications which simply include it by merging <ResourceDictionary Source...

2 answers  ·  posted 2y ago by Peter Taylor‭  ·  last activity 2y ago by aresavatar‭

Question fonts wpf theme
66%
+2 −0
Q&A Algorithmically generating the grid formed by the vertices of a dodecahedron (Hunt The Wumpus)

When I implemented this for a code golf challenge, the state had to encode not only the vertex you were at but the edge by which you had entered (or, equivalently, the direction in which you were f...

posted 2y ago by Peter Taylor‭

Answer
77%
+5 −0
Q&A Conditions which always matches returns no result with CTE

Wrong operator. To test for NULL, use the IS NULL and IS NOT NULL operators ... You cannot use arithmetic comparison operators such as =, <, or <> to test for NULL.

posted 2y ago by Peter Taylor‭

Answer
71%
+3 −0
Q&A Why object-oriented instead of class-oriented?

I understand that in object oriented programming, an object is an instance of a class. Not necessarily. JavaScript famously supported object-oriented programming but did not support classes un...

posted 2y 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 2y ago by Peter Taylor‭

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 2y ago by Peter Taylor‭

Answer
84%
+9 −0
Q&A How to align my content to the left?

If you remove the align="left" then it works fine. My best guess is that you put those in because you didn't want the image in the text flow, affecting the vertical positioning on the text. The ea...

posted 2y ago by Peter Taylor‭  ·  edited 8mo ago by Peter Taylor‭

Answer
60%
+1 −0
Q&A Why comma is expected for auto_increment?

Read the documentation for SQLite CREATE TABLE clauses, not questions about Netbeans JavaDB. In particular, if you expand column-def and column-constraint you'll see the correct syntax for what yo...

posted 2y ago by Peter Taylor‭

Answer
71%
+3 −0
Q&A What's the better way to store base64 in SQLite Database?

The question seems to show a certain level of confusion about terminology. I shall address what I believe to be the underlying question: How can I store binary data in SQLite? SQLite supports 5 da...

posted 2y ago by Peter Taylor‭

Answer
75%
+4 −0
Code Reviews A simple game with pygame

Overall the structure seems sensible. Style It's Python style to have two blank lines after a function or method, not just one. You seem to be trying to line wrap before 80 characters. Maybe you...

posted 2y ago by Peter Taylor‭

Answer
77%
+5 −0
Meta Is this a good fit for Code Reviews, and if so, how to best post it?

This should perhaps be a comment rather than an answer, but I want to allow people to vote to indicate agreement or disagreement. "Complete code" doesn't necessarily mean an entire project. It mea...

posted 2y ago by Peter Taylor‭

Answer
71%
+3 −0
Q&A Credentials for multiple tenants with Azure.Identity

Situation: I have an Azure account which has management permissions for various subscriptions in various directories (tenants). I have a GUI tool to do various management tasks whose details are ir...

0 answers  ·  posted 2y ago by Peter Taylor‭

77%
+5 −0
Code Reviews Is this HTML sanitizer safe?

Is there any disadvantage of doing it this way that I should be aware of? In general whitelisting is the best way to sanitise, but it does create important error classes, especially missing it...

posted 3y ago by Peter Taylor‭

Answer
66%
+2 −0
Q&A How to break infinite loop in CTE

For small tables you can bound the recursion depth: WITH my_cte(childId, parentId, depth, max_depth) AS ( SELECT r.childId, r.parentId, 1, (SELECT COUNT(*) FROM My_Table) FROM My_Table ...

posted 3y ago by Peter Taylor‭

Answer
75%
+4 −0
Q&A yyyy/mm/dd instead expected dd/mm/yyyy format in PHP-created-HTML output

The date is sent in the form submission in ISO 8601 format (year-month-day). You can reformat it in the form handler as follows: $input_date = $_REQUEST['cf_input_date']; if ($input_date) { ...

posted 3y ago by Peter Taylor‭

Answer
75%
+4 −0
Q&A How do I configure log4net from an arbitrary data structure?

My assumption is that, internally, log4net loads its XML file into some data structure (maybe not a dict, but some equivalent of cfg_dict above) and then passes that structure to whatever code ma...

posted 3y ago by Peter Taylor‭  ·  edited 3y ago by Peter Taylor‭

Answer
71%
+3 −0
Q&A Running remote scripts (cloud scripts) locally --- valid and securely as possible

An example for a current problem; the file downloaded can have a trivial name such as install.sh and collide with similar files (the rm is especially problematic here I think). This is why tem...

posted 3y ago by Peter Taylor‭  ·  edited 3y ago by Peter Taylor‭

Answer