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 elgonzo‭

Type On... Excerpt Status Date
Comment Post #285068 Important side note: The URL `https://example.com/%23/login` is quite different from the URL `https://example.com/#/login`. I am talking about actual URLs here, i am _not_ talking about URL patterns. **Do not make the mistake** of treating them as equivalent forms of the same URLs. They are not the ...
(more)
over 2 years ago
Comment Post #285068 In an URL, the `#` is called fragment identifier, followed by the actual fragment. It is important to understand that fragments are **NOT** part of the path in an URL. For example, all the following url's have the _same_ empty path: `https://example.com/`, `https://example.com/#`, `https://example.co...
(more)
over 2 years ago
Comment Post #285019 ... therefore you get a big **shrug** from me. But note that depending on the actually web site/page you are messing with and depending on how and precisely when your little Javascript runs, you might get different results...
(more)
over 2 years ago
Comment Post #284935 (P.S.: Since it is unclear to me whether you actually were asking about _textContent_, and also due to the vagueness of the other question you posed, i decided to just write a comment. If the two questions are being clarified, i would transfer my comment to an answer, provided my comment still applie...
(more)
over 2 years ago
Comment Post #284935 Well, depends on the variable, doesn't it? I speculate that you refer to _textContent_, which is not "just" a variable, it is a property. Generally speaking, a property is kinda like an instance variable: it has a value that you can set and get. But only "kinda". Because properties allow custom imple...
(more)
over 2 years ago
Comment Post #284935 That's an awfully unspecific and vague question, with basically the only answer possible in this vague context being: "_By reading the code, and looking up the documentation for any method or property that is unfamiliar_". Okay, i lied. There is another answer to that vague question: "_What exactly d...
(more)
over 2 years ago
Comment Post #284911 Self-deprecating pedantry: Realizing the nature of the predicate, technically `else` clauses can appear directly in the predicate expression -- albeit in a colossally stupid and useless way, for example by translating the boolean expression `num != 11` into the equivalent form `True if num != 11 else...
(more)
over 2 years ago
Comment Post #284911 To add, the `if` expression at the end of the list comprehension (behind the iterable / element emitter) is a filter predicate, determining **whether** an iterated / emitted element will take part in the comprehension. That means, it has to be **boolean** expression. `if num != 11 else 22` is not a b...
(more)
over 2 years ago
Edit Post #284832 Post edited:
rst2pseudoxml is from docutils; added tag "docutils"; suppressed false url detection for rst2pseudoxml.py
over 2 years ago
Comment Post #284838 https://docs.phpmyadmin.net/en/latest/privileges.html#assigning-privileges-to-user-for-a-specific-database
(more)
over 2 years ago
Suggested Edit Post #284832 Suggested edit:
rst2pseudoxml is from docutils; added tag "docutils"; suppressed false url detection for rst2pseudoxml.py
(more)
helpful over 2 years ago
Comment Post #284806 If 14 sec for 10k rows "_is not so bad_", then 7 min for 300k rows is not worse and not so bad either. Because, given 7 min for 300k rows, each of the thirty 10k rows in those 300k rows still take around 14 sec.
(more)
over 2 years ago
Comment Post #284549 I agree with your points, but i would like the 2nd point to be narrowed down further. Asking about "_what are the important differences between the Visual Studio debugger and gdb with the various gdb frontend GUIs?_" would satisfy the qualifier in the 2nd point about the question being directly conne...
(more)
over 2 years ago
Comment Post #284415 @#36363, you seem to be confused. You cannot make a change to an existing DOM of an element through the element's _innerHtml_ property other than replacing it. Note that _innerHtml_ is a property of type DOMString. A DOMString is basically a string, not the/a DOM. If you get or set the _innerHtml_ pr...
(more)
over 2 years ago
Comment Post #284413 ...if the koolplot.h file is not in the same directory as the cpp file exhibiting the error. The concrete name of that setting depending on the actual IDE or compiler you are using (that setting is often named similar to "include dir" or "header dir").
(more)
over 2 years ago
Comment Post #284415 You wrote `I assume that the original author meant "changing" not replacing`. Can you provide an example of using _innerHtml_ that represents a change that is not a replacement? _innerHtml_ is a property whose value -- a DOMString/String [\*] -- can (aside from get) only be set. Setting a property is...
(more)
over 2 years ago
Comment Post #284394 If you spend a little time reading the official documentation about style properties that must be supported by SVG user agents (https://svgwg.org/svg2-draft/styling.html#RequiredProperties or https://www.w3.org/TR/SVG11/styling.html#SVGStylingProperties), you will notice the absence of the `margin` p...
(more)
over 2 years ago
Comment Post #284355 Just as a side note, because i put the stack-based RPN approach against expression trees. On a conceptual/theoretical level, they are not so far removed from each other. The stack-based RPN approach is in fact the same as post-order traversal of an expression tree -- except the tree doesn't have to b...
(more)
over 2 years ago
Comment Post #284355 On the other hand, you might perhaps spend some thoughts on using RPN (Reverse Polish Notation) instead. While it might not be like the common infix-notation humans are normally used to _[\*]_ (on the other hand, early HP pocket calculators and early ones of some other brands used RPN, so there is th...
(more)
over 2 years ago
Comment Post #284355 The expression tree is not necessarily required to be an explict data structure to be built. In can be implicitly (or conceptually, if you will) realized by a clever implementation of an interpreting parser that evaluates the expression as it interprets it, but this can be trickier to get right than ...
(more)
over 2 years ago
Comment Post #284355 Given an expression (no matter how complex) in your language, let your parser internally build an expression tree, taking operator precedence into account. Such a tree would be a binary tree, where each node can only have zero, one or two leaves. A leaf-less node would represent either a value, or a ...
(more)
over 2 years ago
Comment Post #284322 Okay, i see your point now. I stand corrected. I actually hadn't thought of unusual non-power-2 [\*] BaseN encodings before much, but it seems to be rather nifty to spread the value range of a group of data bits across the symbol value range(s) of multiple symbols that are being otherwise left unused...
(more)
over 2 years ago
Comment Post #284322 To be clear, i am not saying that your answer is wrong. I just personally find the stuff about the binary logarithm and formula a distraction that in my opionion is in the best case not adding much to the answer and in the worst case is an impediment for a reader consuming your answer.
(more)
over 2 years ago
Comment Post #284322 For the numbers involved here it's rather simple and intuitive. Let's take base-128, for example. A UTF-8 code unit is 8 bit (a byte). Base-128 can encode 7 source/data bits per UTF-8 code unit (assuming we stick with code points <= \u007f for the encoded symbols, as you mentioned). Therefore, the en...
(more)
over 2 years ago
Comment Post #284322 Okay, let me rephrase it into two questions: How is the bit about `lg b` relevant to the information conveyed by the answer? Why is it important to talk about `lg b` if the encoding efficiency is equivalently expressed by n/d, which is both simpler and easier to grasp than going into `log₂ b`? I hope...
(more)
over 2 years ago
Comment Post #284322 ...see comment thread title...
(more)
over 2 years ago
Comment Post #284320 Try figuring out the actual DBMS backend (or SQL bridge/adapter/parser/translation layer) you are using. Unfortunately, i don't know of a way to do that in SQL that would work across different DBMS products. If you can't figure it out, and no one comes up with a "_what a lucky blind guess, i'm glad i...
(more)
over 2 years ago
Comment Post #284320 Note that `AUTO_INCREMENT` is not a standard SQL keyword, but rather an additional keyword defined by certain DBMS and/or SQL parsers. The syntax constraints/rules regarding this keyword can also differ between different DBMS/parsers implementing `AUTO_INCREMENT`. Thus, i would suggest you add as a t...
(more)
over 2 years ago
Comment Post #280649 With respect to "_Another advantage is platform-independence, although it comes at a price. [...]_". This seems to imply that the result of compilation will be "native code" that is specific to an architecture and/or OS. Which it often does, yes. But there are also compilers where the compilation res...
(more)
over 2 years ago
Comment Post #284184 This question is way too broad and open-ended. If you know the capabilities/functions of SFTP and git, you'll know whether they are applicable to a scenario you come across. There are numerous different scenarios one can imagine (of which there might be countless permutations), with others imagining ...
(more)
over 2 years ago
Comment Post #284177 There might be ways to avoid such a tool altogether, there might be ways to abstract the function of the tool in a way that (hopefully) will make it easier to migrate to another tool/library/whatever in the future without throwing your software project into disarray. Again, it all depends on the actu...
(more)
over 2 years ago
Comment Post #284177 Depends. Your question is not really answerable because it (intentionally?) is written in a way that the very core of your problem is only expressed in the most vague and generic terms. Things change over time. Software tools/tooling is no different. You will have to cope with that. How exactly, you ...
(more)
over 2 years ago
Comment Post #284162 As a side note: I kinda can't shake the feeling that it's not the XML document and structure that is really your problem, but rather whatever you use or however you are trying to present/render the food items. Because, honestly, from the XML in your Q it looks like it is just a XML document describin...
(more)
over 2 years ago
Comment Post #284162 Do you just want a linebreak as part of the document text? Then you can encode just the LF character (0x0A --> `&#xA;` somewhere in some content text), for example. If you want to have an element in your XML document representing a linebreak, define that element (like you have with `<food>` and `<cal...
(more)
over 2 years ago
Comment Post #284089 `$a = stream_get_line(STDIN, 1024, PHP_EOL);`
(more)
over 2 years ago
Comment Post #284031 Just weird.....
(more)
over 2 years ago
Comment Post #283849 Depends entirely how you would define "practical reason" and how narrow or broad you understand the term "class". Is the mere existence of method-only classes in a runtime or framework (such as `System.Object` in .NET/C#, or `java.lang.object` in Java) already "practical reasons" enough to answer you...
(more)
over 2 years ago
Comment Post #283824 That said, what's up with the `+` character followed by a space in your transform string? What could this possibly achieve that a transform string without that `+` char could not? I speculate that the space after the `+` char is perhaps making for invalid numbers (`+1` might perhaps be a valid numbe...
(more)
over 2 years ago
Comment Post #283824 Unless you want to play a game of pinning the tail on the donkey, it is in my opinion it good idea to start troubleshooting/debugging by outputting the composed string `'translateX(+ ' + targetSlide.style.left + ')'` to the (browser) console so you can inspect the actual transform string your code is...
(more)
over 2 years ago
Comment Post #283797 I don't know how you normally approach those things. I usually would start with aiming to get something working by implementing the functions you are asking about based on their documented behavior as described in the (official) documentation. At that point, i might as well already inline the predica...
(more)
over 2 years ago
Comment Post #283247 ...it's obviously up to you to choose the way that's right for you.
(more)
over 2 years ago
Comment Post #283247 The Wiki has several examples of how the serialization can be customized, including selective (de)serialization: https://github.com/aaubry/YamlDotNet/wiki/Serialization.Serializer. You'll notice there are several different possibilities how you can include/exclude properties from the serialization pr...
(more)
over 2 years ago
Comment Post #283058 Maybe not bounties, but perhaps some reaction emojis that don't have an effect on the votes/score nor users reputation/privileges. I am thinking along the lines of those reaction emojis as available in Github's issue tracker or on Steam, for example. That said, i do not want to bring this forward as ...
(more)
almost 3 years ago
Comment Post #283058 Tipping my hat top you, this is one mighty answer about the weird, dark corners of Unicode encodings...
(more)
almost 3 years ago
Comment Post #283059 Yep, `D` is not bundled in the highlight.min.js. I guess D and other languages need to be fetched separately, as shown here with Go: https://github.com/highlightjs/highlight.js#fetch-via-cdn. (Funnily Go has been chosen for the examples, despite Go being part of highlight.min.js.) Technially, it woul...
(more)
almost 3 years ago
Comment Post #283001 Therefore, the usage of `.dup` in the above example is neccesary, since char[] is a dynamic array, a mutable type...
(more)
almost 3 years ago
Comment Post #283001 You could also read the language doc instead of some 3rd-party website: https://dlang.org/spec/arrays.html#strings. Since everybody likes to read comments, but nobody likes to read documentation :-P , here a straight copy&paste: "_String literals are immutable (read only)_" and from https://dlang.org...
(more)
almost 3 years ago
Edit Post #283056 Post edited:
almost 3 years ago
Edit Post #283056 Post edited:
almost 3 years ago
Edit Post #283056 Post edited:
almost 3 years ago