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 |
---|---|---|---|---|
Edit | Post #292457 | Initial revision | — | 2 months ago |
Question | — |
Identifying non-daemon threads in an Android ANR stack dump One of "my" Android apps is showing a heavy frequency of "slow exit" application-not-responding (ANR) problems. The Play Console has the "insight": > Slow exit > > Problem > The main thread has finished processing events and is shutting down the app. As part of this process, it waits for all ... (more) |
— | 2 months ago |
Edit | Post #292206 | Initial revision | — | 3 months ago |
Answer | — |
A: Is this AES/CBC scheme, where the IV does not need to be known during decryption, insecure or does it have any other disadvantages? > However, the last variant has the advantage (at least in my opinion) that the condition The IV of the encryption is required for decryption is eliminated. It isn't really. It's just generated less efficiently: instead of generating a random IV, the sender has to generate a random IV and do one b... (more) |
— | 3 months ago |
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) |
— | 8 months ago |
Edit | Post #290831 | Initial revision | — | 9 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) |
— | 9 months ago |
Edit | Post #290262 | Initial revision | — | 12 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) |
— | 12 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) |
— | about 1 year ago |
Edit | Post #284964 |
Post edited: |
— | about 1 year 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) |
— | over 1 year ago |
Edit | Post #287931 | Initial revision | — | over 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) |
— | over 1 year ago |
Edit | Post #287818 | Initial revision | — | almost 2 years 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) |
— | almost 2 years 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) |
— | almost 2 years ago |
Edit | Post #287815 |
Post edited: |
— | almost 2 years ago |
Edit | Post #287815 | Initial revision | — | almost 2 years 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) |
— | almost 2 years 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) |
— | almost 2 years 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) |
— | about 2 years ago |
Comment | Post #287362 |
"Falls apart" in what way? (more) |
— | about 2 years 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) |
— | about 2 years ago |
Comment | Post #287307 |
I searched for `GIS datasets planets` and found, among others, https://astrogeology.usgs.gov/search?pmi-target=mars (more) |
— | about 2 years ago |
Comment | Post #287272 |
Even just logcat often helps. (more) |
— | about 2 years ago |
Edit | Post #287158 | Initial revision | — | about 2 years 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) |
— | about 2 years ago |
Edit | Post #287107 |
Post edited: Fix typo/autocomplete error: book recommendations, not bookings |
— | about 2 years ago |
Suggested Edit | Post #287107 |
Suggested edit: Fix typo/autocomplete error: book recommendations, not bookings (more) |
helpful | about 2 years 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) |
— | about 2 years 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) |
— | about 2 years ago |
Comment | Post #286813 |
data-presentation ? (more) |
— | over 2 years ago |
Edit | Post #286617 | Initial revision | — | over 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) |
— | over 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) |
— | over 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) |
— | over 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) |
— | over 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) |
— | over 2 years ago |
Edit | Post #286197 | Initial revision | — | over 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) |
— | over 2 years ago |
Edit | Post #286196 | Initial revision | — | over 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) |
— | over 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) |
— | over 2 years ago |
Edit | Post #286046 | Initial revision | — | over 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) |
— | over 2 years ago |
Edit | Post #286028 | Initial revision | — | over 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) |
— | over 2 years ago |
Edit | Post #285722 | Initial revision | — | almost 3 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) |
— | almost 3 years ago |