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.
Activity for Peter Taylorâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #290786 |
Off topic, but when you say "only got a copy of the `man` page", is that not pretty exhaustive already? I remember that when I printed `man bash` a bit more than two decades ago, the result was a big stack of paper (180 or so pages IIRC). (more) |
— | about 1 month ago |
Edit | Post #290831 | Initial revision | — | 2 months ago |
Answer | — |
A: Git command formatting characters in msbuild are interpreted incorrectly From MSDN: > To escape a special character, use the syntax %\, where \ represents the ASCII hexadecimal value of the character. So to use format `%ad` you should escape as `%25ad`. (more) |
— | 2 months ago |
Edit | Post #290262 | Initial revision | — | 5 months ago |
Answer | — |
A: Git-ignoring files with special characters in their names, especially newlines Hidden in the documentation there's > See fnmatch(3) and the FNMPATHNAME flag for a more detailed description. so that's probably the route you should be taking to emulate the behaviour as accurately as possible. That said, the best I've been able to do is to match the newline with a range f... (more) |
— | 5 months ago |
Comment | Post #289871 |
What if the iframe is itself in an iframe? Maybe you should consider instead `window.top.document.location.href = "https://duckduckgo.com"` which should work at any level of nesting and doesn't require the `if`/`else`. (more) |
— | 7 months ago |
Edit | Post #284964 |
Post edited: |
— | 7 months ago |
Comment | Post #284086 |
I haven't: what I did in the end was give up, do what I can with an API which doesn't require Azure authentication, and do the rest manually in the Portal. I shall bear your suggestion in mind if I revisit the subject. I was prompted to consider revisiting it last month when an Azure bug was explaine... (more) |
— | 11 months ago |
Edit | Post #287931 | Initial revision | — | about 1 year ago |
Answer | — |
A: 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 beginner-friendly IDE for a certain language and operating system I think this covers the on-topic aspec... (more) |
— | about 1 year ago |
Edit | Post #287818 | Initial revision | — | about 1 year ago |
Answer | — |
A: 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 SemaphoreSlim Semaphore = new(1); Is it essential that the semaphore be shared between all health checks? ... (more) |
— | about 1 year ago |
Comment | Post #287817 |
Encouraging lots of minor edits to questions seems to me to be a great way to increase the noise-to-signal ratio in the "New content" flag, which is something to be discouraged. That aside, someone who is capable of judging whether an updated answer is more accurate or not could just write a more acc... (more) |
— | about 1 year ago |
Edit | Post #287815 |
Post edited: |
— | about 1 year ago |
Edit | Post #287815 | Initial revision | — | about 1 year ago |
Answer | — |
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 Variable. The Parameters area has three sections: Configuration Parameters, System Properties, Environment ... (more) |
— | about 1 year ago |
Comment | Post #287604 |
Another issue specific to `IList<T>` is that for legacy reasons it doesn't inherit from `IReadOnlyList<T>`. Returning `List<T>` allows callers to assign to `IReadOnlyList<T>`, which can make it easier to reason about the calling code. (more) |
— | over 1 year ago |
Comment | Post #287362 |
I can't see anything in this code which treats positive and negative numbers differently. Is the problem elsewhere? And can you just avoid it by starting at Integer.MAX_VALUE / 2 ? (more) |
— | over 1 year ago |
Comment | Post #287362 |
"Falls apart" in what way? (more) |
— | over 1 year ago |
Comment | Post #287349 |
The first example of using `LIMIT` and `OFFSET` together in the linked guide is `LIMIT 5 OFFSET 3` "*to return five rows starting from the 4th row*". If offset counted "pages" instead of rows then it would be considerably less useful. (more) |
— | over 1 year ago |
Comment | Post #287307 |
I searched for `GIS datasets planets` and found, among others, https://astrogeology.usgs.gov/search?pmi-target=mars (more) |
— | over 1 year ago |
Comment | Post #287272 |
Even just logcat often helps. (more) |
— | over 1 year ago |
Edit | Post #287158 | Initial revision | — | over 1 year ago |
Answer | — |
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 definition of ANSI's `rename` with, in particular: > The `rename()` and `renameat()` functions s... (more) |
— | over 1 year ago |
Edit | Post #287107 |
Post edited: Fix typo/autocomplete error: book recommendations, not bookings |
— | over 1 year ago |
Suggested Edit | Post #287107 |
Suggested edit: Fix typo/autocomplete error: book recommendations, not bookings (more) |
helpful | over 1 year ago |
Comment | Post #287075 |
`clear` has nothing to do with colours (and, in particular, with transparency). It relates to layout and has to be understood in conjunction with `float`. (more) |
— | over 1 year ago |
Comment | Post #286904 |
There's a 26-char saving by deleting `g`, adding `d=lambda t:t%10+d(t//10)if t else 0`, and changing `not g(i)` to `i%d(i)`. (more) |
— | over 1 year ago |
Comment | Post #286813 |
data-presentation ? (more) |
— | over 1 year ago |
Edit | Post #286617 | Initial revision | — | almost 2 years ago |
Answer | — |
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 to the csproj: Debug;Release;Dev Cloud This seems to be the key: the old solution now loads ... (more) |
— | almost 2 years ago |
Comment | Post #286411 |
The commonly used way is a [winged edge data structure](https://en.wikipedia.org/wiki/Winged_edge), but since it's so common I assume you've considered it and rejected it. (more) |
— | almost 2 years ago |
Comment | Post #286265 |
Setting the value of `window.location.href` [navigates to the provided URL](https://developer.mozilla.org/en-US/docs/Web/API/Location/href). Doesn't that mean that you're now on a different page, so there is no opportunity to trigger the same handler twice? (more) |
— | about 2 years ago |
Comment | Post #286265 |
I'm having trouble understanding what the problem is. The code navigates away from the page, so how could it possibly be triggered twice? (more) |
— | about 2 years ago |
Comment | Post #286249 |
Setting it on the Window works fine: all of the controls in the window inherit its FontFamily as long as you set it early enough. (more) |
— | about 2 years ago |
Edit | Post #286197 | Initial revision | — | about 2 years ago |
Answer | — |
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.Windows; using System.Windows.Media; namespace Anonymised.Theme { p... (more) |
— | about 2 years ago |
Edit | Post #286196 | Initial revision | — | about 2 years ago |
Question | — |
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 into `` in their respective `App.xaml` files. Now the designer has asked me to use a custom typeface rather than defau... (more) |
— | about 2 years ago |
Comment | Post #286041 |
[This appears to be the original source code](https://ifarchive.org/if-archive/games/source/basic/wumpus.bas) and also hard-codes the map. (more) |
— | about 2 years ago |
Edit | Post #286046 | Initial revision | — | about 2 years ago |
Answer | — |
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 facing) so that you could choose "left", "right", or "back" as the exit to use. Thus the state is effecti... (more) |
— | about 2 years ago |
Edit | Post #286028 | Initial revision | — | about 2 years ago |
Answer | — |
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 =, to test for NULL. (more) |
— | about 2 years ago |
Edit | Post #285722 | Initial revision | — | about 2 years ago |
Answer | — |
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 until 2015. (more) |
— | about 2 years ago |
Comment | Post #285534 |
HangFire is what I was going to propose as soon as I saw the question (more) |
— | over 2 years ago |
Comment | Post #285493 |
Class file version 52 corresponds to Java 8. The most obvious explanation would be that you have multiple versions of Java installed, and when you get the error it's because you're launching with a version 8 JRE. (more) |
— | over 2 years ago |
Edit | Post #285491 | Initial revision | — | over 2 years ago |
Answer | — |
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 other, even more, extreme options would be things like doing the processing in a new AppDomain or spawning... (more) |
— | over 2 years ago |