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 #282828 What stops you from looking at the specs of the languages you mentioned to find out?
(more)
almost 3 years ago
Comment Post #282740 HTTP is _not_ a text that may link to itself or other text. It's a protocol. While it's primary purpose is to request and transport HTML document text, HTTP is not the same as HTML. And it also deals with more than just requesting and transporting HTML document text. In the same sense as a passenger ...
(more)
almost 3 years ago
Comment Post #282700 Personally (the following is just my personal opinion, as worthless as it is), if there is a good A to a rather bad Q, i do _not_ downvote the A. I would downvote only the Q, and would not vote on the A. If however the A is exceptionally good and manages to infuse some meaning into a bad Q (as rare a...
(more)
almost 3 years ago
Comment Post #282685 I don't see anything wordy about "_Click on the 'Exit' item in the upper-left menu._" It's a simple and short sentence, following the structure "action on what where". Most words in this sentence are short, too (most of them just 4 letters or shorter). If that is too wordy for you and you are seeking...
(more)
almost 3 years ago
Comment Post #282677 I agree it's noise. But situations like these should be handled tactfully. Phrases like these are expressions of politeness (EoP), and removing them from a post could easily be perceived as rude by the original poster if they are unaware of the context/reason of removal. But why are you specifically ...
(more)
almost 3 years ago
Comment Post #282670 There is also another logical problem with your program (unrelated to the segfault, though). Hint: Compare what you _believe_ the code in the `while(i < max - min) { ... }` loop in your main function does with what it _actually_ does in reality...
(more)
almost 3 years ago
Comment Post #282592 (2/2) Is the JS code free of errors? Nothing about this is about dealing with Ruby so far. If you diagnose this, you will know how your JS `onclick` handler fails in the browser. If you know how the JS `onclick` handler fails in the browser, you will either know how to fix the issue (whether it's in ...
(more)
almost 3 years ago
Comment Post #282592 So your problem is the `onclick` handler not working as it should? If so, it has nothing to do with Ruby per se. Look at the HTML document generated by the Ruby-on-Rails backend. Check if the `onclick` handler has been correctly set up in the generated HTML document. Is the function assigned to the `...
(more)
almost 3 years ago
Comment Post #282599 By the way, you can self-answer your own question, if you like. I mean, in the form of an answer, and not as an edit to the question :-) If i had any prior experience with Nannou, i would answer myself, but due to my complete lack of knowledge about Nannou i fear i might accidentally slip in some uni...
(more)
almost 3 years ago
Comment Post #282599 Again, i want to emphasize: My musings are just based on my belief -- or gut feeling, if you will. I don't have any experience with Nannou, so i might very well just talk bollocks... ;)
(more)
almost 3 years ago
Comment Post #282599 (2/2) If my (untested) belief is correct, then perhaps setting the values for `s` and `l` above the maximum value of `1.0` might still be accepted and stored by the `hsl(h,s,l)` function, but the out-of-range values might be clamped internally by the Nannou drawing functions to the actual allowed max...
(more)
almost 3 years ago
Comment Post #282599 I have no experience in Nannou. But the doc for the `hsl(h, s, l)` function (https://docs.rs/nannou/0.17.1/nannou/color/struct.Hsl.html) states that the `s` and `l` parameter values should be in the `0.0` to `1.0` range. You are using values that are far larger than the expected max. value of `1.0`. ...
(more)
almost 3 years ago
Comment Post #282592 @#54151 i don't see no issue doing so. What would be the problem with that?
(more)
almost 3 years ago
Comment Post #282592 Your comment does not help me understand. Your comment just repeated what you already wrote in your question, so your comment is redundant and does not add any further information/detail necessary for me trying to get a better grasp on what your real goal is that you want to achieve... :-( Is some...
(more)
almost 3 years ago
Comment Post #282592 That sounds a lot like a XY problem to me. RoR is a **server**-side framework. Therefore, ruby code itself is not running on the client, and itself is not able to "reach" into the client browser. Theoretically, what you would have to do is having some JS code in the browser send some fetch request to...
(more)
almost 3 years ago
Comment Post #282581 My comment was advice. Maybe unexpected, but still advice. If there is nothing more to it then it being a "simple" case, then choose either of the three. The differences between them won't matter much in simple cases. Your question sounds very much like "_Which car should i use if i want to drive aro...
(more)
almost 3 years ago
Comment Post #282583 Alright. My edit is pending in the review queue. I have added a little bit about access control which is significantly different between cookies and web storage. And i just noticed that i omitted a bit about the cookie access control, as it is not only domain/path based, but also includes scheme-base...
(more)
almost 3 years ago
Comment Post #282583 I would suggest removing this line entirely, as it does not convey any useful information in my opinion, and might mislead readers as i insinuated in my first comment. What do you think?
(more)
almost 3 years ago
Comment Post #282583 But that you already said that with "_client-only_". If it is about being a front-end tool, what has that to do with SSL? How is mentioning SSL even relevant in this context? Following your argument, you could equally say "_no support for HTTP_" or "_no support for TCP/IP_" with the same relevance. I...
(more)
almost 3 years ago
Comment Post #282583 Yeah, but how did you go from this to "_no support for SSL_"? Again, the web storage APIs are not concerned about transport, so it is a mystery to me what you meant by writing "_no support for SSL_".
(more)
almost 3 years ago
Comment Post #282583 Wait... are you saying that a page using the web storage APIs cannot access some web resource via HTTPS? Your explanation almost makes it sound so. I guess, it would be less ambiguous to simply state that cookies are part of the HTTP protocol, whereas the web storage APIs themselves are not part of a...
(more)
almost 3 years ago
Comment Post #282581 Based on _all_ the requirements of your project (current and expected) with respect to the information you want to store/maintain and your business rules relating to it, look at whether the functionality provided by each technology/method satisfies your requirements. How else would you determine a ch...
(more)
almost 3 years ago
Comment Post #282044 @Alexei, i would personally favor to have only "libxml2" and "libxml1" tags instead of "libxml", if possible. While libxml2 is mostly compatible with ye'olde libxml, development packages of the two differ in some aspects that could be relevant for some specific question(s).
(more)
almost 3 years ago
Comment Post #282544 Read the csv file line-wise. The StreamReader has a method for doing that. That will make it easier to iterate over the records/lines. Then you could just use a variable that keeps track of the currently maximum score value when iterating through the records. If a record has a score that is greater t...
(more)
almost 3 years ago
Comment Post #282532 Well, then you might have to go with `iframe`. Note however, that `iframe` will not allow you to compose/assemble back the structure of the original whole HTML file for presentation in the web browser. You will have to rather (re)do the layout of your web page with respect to page regions that would/...
(more)
almost 3 years ago
Comment Post #282532 I am not exactly sure whether you are asking for a PHP-based solution or something not relying on PHP specifically, as you didn't tag your question as `php` but you did mention your project being in PHP. Are you perhaps looking for something like PHP's `require` and/or `include` statements? (https:/...
(more)
almost 3 years ago
Comment Post #282487 @#53078, the libc functions dealing with `char*`/`char[]` are called strcmp, strlen, etc... Note the "str". The related header file is called `string.h`. The documentation regarding these functions talks about strings. I don't think we need to be pedantic here. The emphasis should rather be on not co...
(more)
almost 3 years ago
Comment Post #282463 The assignments in your constructor are backwards.
(more)
almost 3 years ago
Comment Post #282344 I don't really understand your question. What is "_minimum character allowance_"? Is that the required minimum length of characters to consider the text in the text area valid? What has "_minimum height_" to do with _accessibility_? Anyways, since text `<input>` fields are single-line by nature, I fe...
(more)
almost 3 years ago
Comment Post #282283 Great answer! Although, if i am picky (and a bit of an ar*ehole) i think you took the challenge away from Derrick, now he needs to find himself another one :-) I also think a mention of "[rubber duck debugging](https://www.thoughtfulcode.com/rubber-duck-debugging-psychology/)" would apply to the situ...
(more)
almost 3 years ago
Comment Post #282233 Yeah, my false perception of an outlier due to me not noticing the E notation led me to a misbelief that the test functions where only executed once. Guess i need some shut-eye...
(more)
almost 3 years ago
Comment Post #282233 @hkotsubo‭ oops, i have to admit i didn't notice the scientific notation. My bad, i am sorry... :-)
(more)
almost 3 years ago
Comment Post #282233 To ameliorate such effects of uncontrolled disturbing runtime effects and get "better" numbers without resorting to a full benchmark suite, run each individual test at least a couple hundred/thousand times and average the execution time. Also, prealloacte the stack to a size of len(s)/2 and performan...
(more)
almost 3 years ago
Comment Post #282233 Your numbers don't appear to be "clean". Look at the "Unbalanced in the beginning" test. How could "is_balanced(s)" take more than 1 sec? Of course, it did. But this is not the performance characteristic of the alogrithm but rather some "disturbance" in your runtime environment. In a clean runtime en...
(more)
almost 3 years ago
Comment Post #282203 This approach is not going to work (i am still curious about an alternative solution someone might come up with, though). From the doc about generated cols https://dev.mysql.com/doc/refman/8.0/en/create-table-generated-columns.html, first paragraph: "_Values of a generated column are computed from an...
(more)
almost 3 years ago
Comment Post #282143 I would prefer to have this verified first. Not that it turns out that my idea, while sounding good, is actually not being workable. Wouldn't be the first time... ;)
(more)
almost 3 years ago
Comment Post #282143 If your identifiers have to satisfy some specification wrt to format and/or allowed characters, you might construct the regex pattern(s) in way that they match the specification, and additionally employ the "additionalProperties" keyword that uses the "false" schema to fail validation if any properti...
(more)
almost 3 years ago
Comment Post #282143 Just a rough idea from the top of my head (untested, unverified, might be bogus). You could perhaps use the "patternProperties" keyword, with which you would specify a regex pattern against which property names are being matched. Since in your case the property names in "jobs" and "people" don't matt...
(more)
almost 3 years ago
Comment Post #282119 You have defined `dir="rtl"` in your `<form>` element. Note how the comboboxes in the background of your screenshot are mirrored compared to LTR. So, i would naturally expect the radiobuttions also adhere to this directive. Since radiobuttons are normally **in front** of a text label, for RTL this wo...
(more)
almost 3 years ago
Comment Post #282119 To clarify, if you would suffer from a left-to-right vs. right-to-left issue, you would have a problem with the direction of the text flow, where for example "אבחון קידום אתרים" (text direction being RTL/right-to-left) would be incorrectly displayed as "םירתא םודיק ןוחבא" (text direction being LTR/le...
(more)
almost 3 years ago
Comment Post #282119 Uh, the text in your screenshot is right-to-left, no? I don't know Hebrew, but "אבחון קידום אתרים" translates to "SEO Diagnosis", and "שיווק באמצעות תוכן" to "Content Marketing" or something similar (based on Google Translate and Wikipedia). It feels to me your actual concern/problem seems to be rath...
(more)
almost 3 years ago
Comment Post #282044 Side note: The `type` variable looks exceptionally fishy to me. Where is it set to a non-null value? What are conf_verify_key and parse_file _really_ doing with the `type` variable used as one of their function parameters, especially when its value is `null`? Since i don't know anything about those, ...
(more)
almost 3 years ago
Comment Post #282044 "Am I missing something?" Who knows. Use a step debugger and step through your code. This should make it easier to encircle the code line that causes the seg fault. Also watch any variable used in the function that you suspect is crashing (parse_group?), and see whether the vars have the expected val...
(more)
almost 3 years ago
Comment Post #282033 Side note: If you can't diagnose/solve the problem, i suggest seeking help in a mysql/Manjaro/Arch forum that's better suited for a back-and-forth discussion. Trying to troubleshoot system configuration problems based on a brief description in a Q&A format is rather limiting and cumbersome, as in man...
(more)
almost 3 years ago
Comment Post #282033 (2/2) Overview of using mysql with systemctl here: https://dev.mysql.com/doc/refman/8.0/en/using-systemd.html
(more)
almost 3 years ago
Comment Post #282033 It feels like the mysql server isn't running. Trying to use the `service` command will not succeed, because Manjaro is based on Arch, and Arch does not have the `service`, but rather the `systemctl` command (in other words, systemd). Thus, try (re)starting mysql by using the `systemctl` command. Be a...
(more)
almost 3 years ago
Comment Post #281886 @hkotsubo‭ good point!
(more)
almost 3 years ago
Comment Post #281808 Yeah, either we stick with the commonly used definitions or interpretations of "object oriented programming" and "functional programming", or we end up with a bunch of different and contradictory answers that despite their contradictions will all be true in some sense because we change the rules of t...
(more)
almost 3 years ago
Comment Post #281606 If it is about having different "SomethingElse" instances with their individual incarnations of C_1 ... C_n instances, well, I don't know nothing about this "SomethingElse" except its name and that you call it a "registry" of C_1 ... C_n instances. So, again i can't tell with certainty, but from the ...
(more)
about 3 years ago
Comment Post #281606 Hmm, you said you have instances of C_1 ... C_n classes. Why is it then not about classes? The facade pattern is about "hiding" the structure and complexities of a (sub)system and present (some of) its functionality through a simplified interface (the facade, in your case X). Your comment leaves me e...
(more)
about 3 years ago