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.

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 2 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
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
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)
over 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
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
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
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
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
Comment Post #281308 @#53177, in what way is "gamification" a relevant tag for this question? It's about a *game*, but that's not the same thing.
(more)
over 2 years ago
Comment Post #284904 Code Golf would need two extra metadata fields: language and score. And even so it would continue to require following conventions in the post layout in order to extract a preview of the code for the custom widget. Not to mention that to really get the most out of extra metadata fields each site woul...
(more)
over 2 years ago
Comment Post #284806 I'm confused by the interaction with Excel and the issue of typing. Surely Excel would only store the leading 0s if it stores as a string? So is your code parsing a string to integers, splitting into smaller integers, and converting them back to strings?
(more)
over 2 years ago
Comment Post #284571 IMO talking about "correct use" introduces unnecessary risk of controversy. Taking your example, OOP purists will argue that at least 99% of setter/getter functions in Java are incorrect use. "Idiomatic use" isn't entirely free of controversy, but I think it's less controversial.
(more)
over 2 years ago
Comment Post #284378 I think that was my flag, and that I was so caught up in wondering whether it was technically possible that I overlooked the lack of motivation. The error message reported in the title is usually due to running a GUI program from a shell which doesn't know your X configuration.
(more)
over 2 years ago
Comment Post #284355 This "GOEMDAS" sounds like a nightmare. If I understand it correctly, `2/2*10/3` would evaluate to `3` (via `1*3`), but `0*1+2/2*10/3` would evaluate to `0` (via `0+2/20/3`).
(more)
over 2 years ago
Comment Post #284322 Take a non-trivial example. If I tell you that base 57 can encode 5.83289 bits per symbol, what block size should you use?
(more)
over 2 years ago
Comment Post #284322 How do you find n and d without first calculating lg b?
(more)
over 2 years ago
Comment Post #284322 I'm not sure what your question is.
(more)
over 2 years ago
Comment Post #284265 Are collisions other than bomb with submarine even possible? Although, sure, relying on that constrains future expansion. I think that for incremental movement, a simple test would be whether the bounding box intersects the screen area.
(more)
over 2 years ago
Comment Post #283876 Adding two integers is also a basic task found in many programming languages, but a tag suitable for questions about that would probably be `arithmetic` rather than `integer-addition`. I'm not sure exactly what the right level of specificity is, but linewise input feels too specific to me. I would ha...
(more)
over 2 years ago
Comment Post #283052 This answer correctly identifies the problem, but it would be improved by also stating that the solution is to merge the directives into a single policy as `Content-Security-Policy: style-src 'self' 'unsafe-inline' https://fonts.googleapis.com/; font-src 'self' https://fonts.gstatic.com/; default-src...
(more)
almost 3 years ago
Comment Post #282732 Back in the day you could manipulate the DOM with a Java applet, but I don't think any modern browser still supports them.
(more)
almost 3 years ago
Comment Post #281589 It would probably help to see how you're using the custom cell renderer.
(more)
almost 3 years ago
Comment Post #281552 Re "which is a different letter (or the same letter, but with a different semantics...)": there isn't going to be a short clean way of explaining it, because it's very contextual. In Spanish, for example, *a* and *á* are officially the same letter, but *n* and *ñ* are different letters.
(more)
about 3 years ago
Comment Post #281448 Stored procedures might be a sensible compromise. I'm not aware of step-through debuggers, but they allow you to do the iterative part on the SQL server without network overhead each time round the loop.
(more)
about 3 years ago
Comment Post #281347 It seems that the CommonMark parser used by this site deviates from the basic spec by turning CDATA blocks into comments, so the only workaround I can find to avoid the auto-linking is to use inline code: `dead.sh`, and that doesn't meet your requirement to display as normal text.
(more)
about 3 years ago
Comment Post #281309 @JohnDoea, I find that hard to believe and suspect that you're misdiagnosing the problem, but I don't think anyone can take this further unless you post at least some of the form handler (probably complete with logging statements and log output to show the formats before and after key steps).
(more)
about 3 years ago
Comment Post #281304 If sessions include a random ID (probably not the session ID per se, because that creates potential security problems of its own) and that ID is always included as a log parameter, it allows distinguishing between the impersonated session and the real user in a separate session.
(more)
about 3 years ago
Comment Post #281288 What exactly do you mean by "*I printed this HTML as output to my email box (via PHP)*"? Do you actually mean that the form is submitted to a CGI script which e-mails the values to you, and the e-mail contains values in a format you didn't expect?
(more)
about 3 years ago
Comment Post #281095 @JohnDoea , I saw the proposed edit before the change to the question and it seemed to make the answer worse rather than better. I can apply the changes again though, fixing the typo.
(more)
about 3 years ago
Comment Post #278907 `while(arr[index++] != 0);` does *not* accomplish the same thing, because it increments `index` one more time than `while(arr[index] != 0) index++;`
(more)
about 3 years ago
Comment Post #280755 @elgonzo, that's pretty much what I suspected. For my immediate purposes it's not strictly necessary to use an interface, but using an abstract class instead eliminates some interesting future directions. E.g. an orderable subtype and a field subtype couldn't be combined to an orderable field subtype...
(more)
about 3 years ago
Comment Post #280658 @ghost-in-the-zsh, not CPython, [Cython](https://cython.org/).
(more)
about 3 years ago
Comment Post #280670 @Marc.2377, your example looks like it will compile. I don't know whether the example signature is the best one for your situation, because I'm very short on context. This may be a situation where you should iterate two or three steps of asking "Why do I want to do that?" and then formulate a new que...
(more)
about 3 years ago
Comment Post #280665 I'm confused. https://docs.microsoft.com/en-us/dotnet/api/system.data.entity.dbcontext?view=entity-framework-6.2.0 doesn't list any `Add` method. Is that the wrong `DbContext`?
(more)
about 3 years ago
Comment Post #279597 @Martin, I know: that was the assumption which seemed reasonable, and I don't think that "requiring that both are present" was in the question when I wrote the answer - but I can't check, because the [history has gone missing](https://meta.codidact.com/posts/279687).
(more)
over 3 years ago
Comment Post #279087 Having tracked things through to https://github.com/microsoft/MSBuildLocator/blob/master/src/MSBuildLocator/MSBuildLocator.cs I'm rather pessimistic: it seems that `Microsoft.Build` is specifically set up to be unable to simultaneously be aware of the existence of .Net Framework and .Net Core, so tha...
(more)
over 3 years ago
Comment Post #278791 @Moshi, for people who mainly work close to the hardware, memory will probably be the salient meaning; for people who mainly work in high-level algorithm design, the abstract data structure also known as a priority queue will probably be the salient meaning; and there's probably a large number for wh...
(more)
over 3 years ago
Comment Post #278832 Possibly [spreadsheet-formula] would work, with extra tags ([excel] and [google-sheets] already exist) where the question is about something specific to one engine.
(more)
over 3 years ago