Hacker News new | past | comments | ask | show | jobs | submit | Raymonf's comments login


é is a valid character in latin-1, the current encoding in "many cases".


> One for Japanese and Chinese

Please don't do this! Han Unification causes your Japanese text look weird when displayed with a Simplified Chinese font, likewise with a Traditional Chinese or Korean font.

https://heistak.github.io/your-code-displays-japanese-wrong/


Interesting! I never ran across this problem before despite doing a lot of i18n, but it seems like its because we're properly setting everything up with http headers.

Definitely useful knowledge for the game we're working on though.


Thanks for the tip! I've updated the article (and I'll soon update my game!).


Yes, unless you run OOBE\BypassNRO.cmd from cmd to bypass the network connection step, since there's no "skip" button anymore.

Even this is somewhat broken. If you run this after connecting to the Internet then it doesn't do anything and still forces you to use a Microsoft account (unless you somehow get it to throw you back to that page).


Other than Hyper-V, what hypervisor can paravirtualize DirectX 12?


By "base CSS" are you referring to using @apply? That's generally not recommended from what I understand, with componentization and reuse being preferred over most usages of @apply for this purpose.


Re `@apply`, that's correct, per Adam Wathan himself[0]:

> Confession: The `apply` feature in Tailwind basically only exists to trick people who are put off by long lists of classes into trying the framework

> You should almost never use it

> Reuse your utility-littered HTML instead.

[0]: https://twitter.com/adamwathan/status/1226511611592085504


I feel us programmers should be open to breaking rules in favor of convenience. I don't see an issue to why you can't use `p:not(:first-child) { margin-top: 12px; }` just because you're using Tailwind (that particular rule gives a margin to every paragraph except the first one which is usually needed in articles). The most productive programmers I have seen frequently disregarded best practices if it suited the situation.


You mean like this supported utility class `[&_p:not(:first-child)]:mt-[12px]`?


I tried to avoid using @apply but that makes creating variations (e.g. of button styles) REALLY hard — as your code is just littered with class names. Plus if you're adding :active :hover and :focus styles, you have to do it on ALL the variations on all of the pages. It's frustrating and takes a really long time.

I've moved to using @apply in a few generalized classes and I love it, since my class names like "btn" "btn-success" "btn-success-outline" describes what I want, and I can easily go in and change them.

I'm not creating a new component for every tiny thing, like a button or a link, just so I can avoid using @apply...


> Showing the user nonsensical warnings like "Someone is trying to steal your credit card information!!!!11" only creates confusion and misconceptions about security.

So is this suggesting that browsers should automatically trust all certificates? The Kazakh government sure would like that to happen.


Clearly it is not suggesting anything like that. You misunderstood it on purpose.


I found that my Discourse instance consistently took ~250 milliseconds to display the forum post list (according to the little box at the top left corner). After getting annoyed with Discourse, I went back to Invision Forum and I see about ~95 ms for the same thing, including sending the response to my browser.


Those are both unreasonably slow in a way that has little to do with the language.

Optimizing responses has diminishing returns once you're below 100ms, but 250ms is far too slow.


Android's app optimization process is AOT compilation of apps, not "a ploy to foist more unnecessary and unwanted apps"...


#6: These are full-width brackets. Most Chinese input method editors will output full-width characters by default instead of the half-width ones that you're accustomed to.

For example: ,。;:【】

If you ever see an Amazon listing have full-width characters, they're almost certainly either Chinese sellers or sellers that are really good a copying and pasting from Chinese sellers.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: