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

Type On... Excerpt Status Date
Question Text with many diacritic marks are not displayed correctly in posts
When posting this question, I noticed a difference between editor's preview and the post's final render. When editing, the preview correctly shows the Zalgo Text: But after the post is saved, it's rendered in the browser like this: Note that part of the text (the diacritics at the to...
(more)
over 3 years ago
Edit Post #281551 Post edited:
over 3 years ago
Edit Post #281551 Post edited:
over 3 years ago
Edit Post #281552 Post edited:
over 3 years ago
Edit Post #281551 Post edited:
over 3 years ago
Edit Post #281552 Initial revision over 3 years ago
Answer A: How does Zalgo Text work, and how can I prevent my application from accepting it?
First, let's see how Zalgo Text works. Unicode Combining Characters Unicode defines the concept of combining characters. Basically, some characters can be combined with others, to "make/create" different ones (you can also say that they can modify other characters). > Example: in Portu...
(more)
over 3 years ago
Edit Post #281551 Initial revision over 3 years ago
Question How does Zalgo Text work, and how can I prevent my application from accepting it?
A Zalgo Text is something like this: T̃͟͏̧̟͓̯̘͓͙͔o̤̫͋ͯͫ̂ ̥͍̫̻͚̦͖͇̌ͪ̇ͤ̑̐͋̾̕i̢͖̩͙͐͑ͬ̄̿̍̚ͅn̵̢̼̙̳̒̄ͥ̋̐v̡̟̗̹̻̜͕̲ͣ̐ͤͤ͒́oͫ͂̆͑ͩ҉͇̰͚̹̠̫͔̗k̷̭̬̭͙̹̺̯ͩ̌̾̒̋̓ͤ͛͘͠e̥͙̓̄̕ ̵̫͈ͪţ̱̺̺̑̿̉̌͛̂̇h͙̣̬̓̂͞ę̡̲̟͎͉̟͛̓̉̆̉͘ ͍̯̱͎̬͍ͬ̒ͣͩ͟͡ḥ̗͖̝̮̗̼ͮ̋̉̃͐̿ͪͅi̞͉̯͖̞͉̙ͬͦ̄͋̈̂ͥ̊́̕v̶̝̼̫͔̬̯̯ͯ͑̈͠e̪͓͕̦̪̗̠ͯ͛͌̀̉͘ͅ-̍̉ͦ̈́͌͏̸͉͍͖̥͓̭̗̖mͣͣͪ̇͂͏̳̤̺...
(more)
over 3 years ago
Comment Post #281511 I guess "*passwords and other data*" refer to the passwords themselves saved in your browser config (so it offers an option to auto-fill login forms). After you login, each website might set a cookie with your token/credential info, but Chrome has no way to know which cookies are related to authentic...
(more)
over 3 years ago
Comment Post #281288 When handling dates in a system, one should prefer to send/receive in a standard format (to make parsing easier), and only when presenting this to users, a specific localized format is chosen - BTW, that's exactly what browsers (and probably your mail client) do: internally, the `input` value is in I...
(more)
over 3 years ago
Comment Post #281288 Date formats are specific to locale/culture/country/etc. What makes sense to one doesn't necessarily make to another (in Japan, the "normal" order is year-month-day, in USA, month-day-year, in Brazil, day/month/year, and so on - nobody is "wrong"). But ISO 8601 is not intended to be locale oriented, ...
(more)
over 3 years ago
Comment Post #281288 ISO 8601 is intended to be "locale agnostic" and unambiguous, and this "biggest to smallest units" approach is IMO a good choice, with advantages already pointed by previous comments. It's an information exchange format, not a human friendly one (although it *is* friendly once you get used to it)
(more)
over 3 years ago
Comment Post #281288 According [to MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date), the displayed format of `input type=date` can change according to the browser's locale. My guess is that mail clients might do something similar when interpreting HTML. Not sure if this can be changed (without s...
(more)
over 3 years ago
Edit Post #281169 Post edited:
over 3 years ago
Edit Post #281168 Post edited:
Adding tags
over 3 years ago
Suggested Edit Post #281168 Suggested edit:
Adding tags
(more)
helpful over 3 years ago
Edit Post #281169 Initial revision over 3 years ago
Answer A: SQL timestamp for daylight saving day when clock goes 1 hour back.
This behaviour is documented here: > "... an ambiguous timestamp that could fall on either side of a jump-back transition is assigned the UTC offset that prevailed just after the transition." So, when there's an ambiguous timestamp (when a local date/time occurs twice: first in Daylight Saving ...
(more)
over 3 years ago
Comment Post #281036 @MonicaCellio I noticed that it also happens in other sites (example: https://meta.codidact.com/posts/281048) - Would it be worth posting this problem in Codidact Meta? Or having it just here is enough?
(more)
almost 4 years ago
Edit Post #281050 Post edited:
almost 4 years ago
Edit Post #281050 Post edited:
almost 4 years ago
Edit Post #281050 Post edited:
almost 4 years ago
Edit Post #281050 Post edited:
almost 4 years ago
Edit Post #281050 Initial revision almost 4 years ago
Answer A: How to match standard email addresses with regex?
Matching a valid email address can be as complicated as you want it to be. If you want to be compliant with RFC 5322, the regex will be a monster (see below). But if you want a subset of it, with predefined arbitrary rules, then your monster will be a little less scary. Considering the simpl...
(more)
almost 4 years ago
Edit Post #281036 Post edited:
almost 4 years ago
Edit Post #281036 Post edited:
almost 4 years ago
Edit Post #281036 Post edited:
almost 4 years ago
Edit Post #281036 Post edited:
almost 4 years ago
Edit Post #281036 Post edited:
almost 4 years ago
Edit Post #281036 Post edited:
almost 4 years ago
Edit Post #281036 Post edited:
almost 4 years ago
Edit Post #281036 Post edited:
almost 4 years ago
Edit Post #281036 Post edited:
almost 4 years ago
Edit Post #281036 Post edited:
almost 4 years ago
Edit Post #281036 Post edited:
almost 4 years ago
Edit Post #281036 Post edited:
almost 4 years ago
Edit Post #281036 Post edited:
almost 4 years ago
Edit Post #281036 Initial revision almost 4 years ago
Question Border-bottom of inline code is (sometimes) not displayed when it's in the last line of a paragraph
After I wrote this answer, I could notice that, when there's inline code in the last line of a paragraph, sometimes the border-bottom of the inline code text is not displayed. One case is when the paragraph is followed by either a horizontal line or a code block: inline code with border-bottom...
(more)
almost 4 years ago
Edit Post #281035 Post edited:
almost 4 years ago
Edit Post #281035 Initial revision almost 4 years ago
Answer A: What are field separators in operating-programming languages (such as Bash)?
In Bash, `IFS` is an internal variable and it stands for "Internal Field Separator" <- according to this link, it "determines how Bash recognizes fields, or word boundaries, when it interprets character strings". Its default value is a "whitespace" (space, tab, and newline), but you can change it ...
(more)
almost 4 years ago
Comment Post #280959 @CodeFarmer I've upated the answer, but based on your edit, I think the options that I've had previously suggested might work
(more)
almost 4 years ago
Edit Post #280959 Post edited:
almost 4 years ago
Edit Post #280959 Post edited:
almost 4 years ago
Edit Post #280959 Initial revision almost 4 years ago
Answer A: Python Regex to parse multiple "word. word. word."
First of all, let's understand why your regex didn't work. The first part is `\w+\.\s`, which is "one or more alpha-numeric characters" (`\w+`), followed by a dot and a space (`\.\s`). If the regex was only this, it would match `THIS. ` &nbsp;(the word "THIS", plus the dot and space after it). ...
(more)
almost 4 years ago
Comment Post #280933 You're closing the parentheses before `format`, so you're calling `format` on the value returned by `print` (which is `None`). It should be `print("{} {}".format(inspect.currentframe().f_code.co_name, path.basename(__file__)))` - https://ideone.com/4z9NRl
(more)
almost 4 years ago