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
Edit Post #281552 Post edited:
about 3 years ago
Edit Post #281551 Post edited:
about 3 years ago
Edit Post #281552 Initial revision about 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)
about 3 years ago
Edit Post #281551 Initial revision about 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)
about 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)
about 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)
about 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, and so on - nobody is "wrong"). But ISO 8601 is not intended to be locale oriented, because it was designed to ...
(more)
about 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)
about 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)
about 3 years ago
Edit Post #281169 Post edited:
about 3 years ago
Edit Post #281168 Post edited:
Adding tags
about 3 years ago
Suggested Edit Post #281168 Suggested edit:
Adding tags
(more)
helpful about 3 years ago
Edit Post #281169 Initial revision about 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)
about 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)
about 3 years ago
Edit Post #281050 Post edited:
about 3 years ago
Edit Post #281050 Post edited:
about 3 years ago
Edit Post #281050 Post edited:
about 3 years ago
Edit Post #281050 Post edited:
about 3 years ago
Edit Post #281050 Initial revision about 3 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)
about 3 years ago
Edit Post #281036 Post edited:
about 3 years ago
Edit Post #281036 Post edited:
about 3 years ago
Edit Post #281036 Post edited:
about 3 years ago
Edit Post #281036 Post edited:
about 3 years ago
Edit Post #281036 Post edited:
about 3 years ago
Edit Post #281036 Post edited:
about 3 years ago
Edit Post #281036 Post edited:
about 3 years ago
Edit Post #281036 Post edited:
about 3 years ago
Edit Post #281036 Post edited:
about 3 years ago
Edit Post #281036 Post edited:
about 3 years ago
Edit Post #281036 Post edited:
about 3 years ago
Edit Post #281036 Post edited:
about 3 years ago
Edit Post #281036 Post edited:
about 3 years ago
Edit Post #281036 Initial revision about 3 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)
about 3 years ago
Edit Post #281035 Post edited:
about 3 years ago
Edit Post #281035 Initial revision about 3 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)
about 3 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)
about 3 years ago
Edit Post #280959 Post edited:
about 3 years ago
Edit Post #280959 Post edited:
about 3 years ago
Edit Post #280959 Initial revision about 3 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)
about 3 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)
about 3 years ago
Comment Post #279716 @MonicaCellio Now it's working. Also, I could post this comment, so the other problem that I reported ([this one](https://software.codidact.com/posts/279715)) seems to be fixed as well
(more)
over 3 years ago
Edit Post #280097 Post edited:
Typo and some formatting
over 3 years ago
Suggested Edit Post #280097 Suggested edit:
Typo and some formatting
(more)
helpful over 3 years ago