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 #285534 HangFire is what I was going to propose as soon as I saw the question
(more)
almost 3 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)
almost 3 years ago
Edit Post #285491 Initial revision almost 3 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)
almost 3 years ago
Edit Post #285490 Initial revision almost 3 years ago
Answer 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` in it), which creates complications. That leaves `$GITDIR/info/exclude` and the file listed in confi...
(more)
almost 3 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)
about 3 years ago
Edit Post #284964 Initial revision about 3 years ago
Answer 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 easiest solution to that is to float them: add `float: left;` to the CSS for `img`, and ```css hr ...
(more)
about 3 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)
about 3 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)
about 3 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)
about 3 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)
about 3 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)
about 3 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)
about 3 years ago
Comment Post #284322 How do you find n and d without first calculating lg b?
(more)
about 3 years ago
Edit Post #284329 Initial revision about 3 years ago
Answer 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 you're trying to do. However, note also that it's not recommended unless "strictly needed".
(more)
about 3 years ago
Comment Post #284322 I'm not sure what your question is.
(more)
about 3 years ago
Edit Post #284322 Initial revision about 3 years ago
Answer 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 datatypes: NULL, INTEGER, REAL, TEXT, and BLOB. The natural datatype to use for binary data is BLOB. How...
(more)
about 3 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)
about 3 years ago
Edit Post #284265 Initial revision about 3 years ago
Answer A: 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 have a reason for that, but I don't think that's a sensible width in general any more. In fact, I...
(more)
about 3 years ago
Edit Post #284197 Initial revision over 3 years ago
Answer A: 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 means that what you post should be self-contained, so that reviewers can test the code and any changes to...
(more)
over 3 years ago
Edit Post #284086 Initial revision over 3 years ago
Question 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 irrelevant, and I'm updating this tool to the latest and supposedly greatest Microsoft auth library. What ...
(more)
over 3 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 3 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)
over 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)
over 3 years ago
Edit Post #282333 Post edited:
The present participle of *scrape* has one *p*; two *p*s gives the present participle of *scrap*.
over 3 years ago
Edit Post #282582 Initial revision over 3 years ago
Answer A: 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 items. I think that your list of `allowedNodeTypes` could be better ordered to allow manual checking (e.g....
(more)
over 3 years ago
Suggested Edit Post #282333 Suggested edit:
The present participle of *scrape* has one *p*; two *p*s gives the present participle of *scrap*.
(more)
helpful over 3 years ago
Comment Post #281589 It would probably help to see how you're using the custom cell renderer.
(more)
over 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)
over 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)
over 3 years ago
Edit Post #281456 Initial revision over 3 years ago
Answer A: How to break infinite loop in CTE
For small tables you can bound the recursion depth: WITH mycte(childId, parentId, depth, maxdepth) AS ( SELECT r.childId, r.parentId, 1, (SELECT COUNT() FROM MyTable) FROM MyTable r WHERE r.childId = 1 UNION ALL SELECT rel.childId, rel.parentId...
(more)
over 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)
over 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)
over 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)
over 3 years ago
Edit Post #281309 Initial revision over 3 years ago
Answer 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: $inputdate = $REQUEST['cfinputdate']; if ($inputdate) { $inputdate = DateTime::createFromFormat("Y-m-d", $inputdate)->format("d/m/Y"); }
(more)
over 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)
over 3 years ago
Edit Post #281160 Post edited:
Complete rewrite in light of changes to the question
over 3 years ago
Edit Post #281160 Initial revision over 3 years ago
Answer 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 cfgdict above) and then passes that structure to whatever code manages the configuration (the equivalent of dictConfig above). What's idiomatic in duck-typed Python is...
(more)
over 3 years ago
Edit Post #281095 Post edited:
over 3 years ago