Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
minitech
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
42 ms
·
541.
▲
by
minitech
8y ago
> previous invisible items are represented by a single large div … breaking the browser’s Find. Also, things jump around the page as you scroll down. That site does it decidedly wrong.
542.
▲
by
minitech
8y ago
I don’t, sorry. If regular pagination is at all an option for you, that’s a safe and user-friendly choice.
543.
▲
by
minitech
8y ago
The new layout for profile pages is where I noticed this problem. No RES.
544.
▲
by
minitech
8y ago
You have to be careful about which types of content you remove, though, to avoid breaking the browser’s Find. (Reddit is an example of a site that currently does this wrong.)
545.
▲
by
minitech
8y ago
Oh, I see, reading your previous comment again – you interpreted it as a “list of all the groups that need to be wary of police”. It’s not that, it’s just about “danger” in a broad sense.
546.
▲
by
minitech
8y ago
Because it’s irrelevant when we’re talking about the risk of being a member of the group?
547.
▲
by
minitech
8y ago
In modern browsers, you can sometimes achieve this effect with `:target`. ( https://developer.mozilla.org/en-US/docs/Web/CSS/:target )
548.
▲
by
minitech
8y ago
I’m biased towards websites, but truncating text server-side to provide an excerpt is something I need to do pretty often. Providing a count of remaining characters is maybe less common, but Twitter, Mastodon, etc. need to do it, and people
549.
▲
by
minitech
8y ago
Which “that”? If you’re asking about `OrderedDict`, I’m referring to equality between `OrderedDict`s: >>> a = OrderedDict([(1, 2), (3, 4)]) >>> b = {1: 2, 3: 4} >>> c = OrderedDict(reversed(a.items())) &
550.
▲
by
minitech
8y ago
> How often have you had to work with grapheme clusters without also using a text rendering engine? All the time. Want to truncate user text? You need grapheme clusters. Reverse text? Grapheme clusters. Get what the user thinks of as the
551.
▲
by
minitech
8y ago
It would be a type error because that would be helpful. Since comparing a bytes to a str is not usually what you want, Python could make you be explicit about it. It’s too late now, and it might have been considered another backwards compat
552.
▲
by
minitech
8y ago
> And the environment? [it’s not even clear.] https://stackoverflow.com/questions/44479826/how-do-you-set-... That question is about interpreting backslash escape sequences for bytes in an environment variable.
553.
▲
by
minitech
8y ago
Exactly! I was confused for a long time about the slowness people kept talking about with Firefox, and then work switched to MacBooks. Firefox is faster and more capable on my cheap Linux device than any browser on the Mac, but on the Mac,
554.
▲
by
minitech
8y ago
> WebRender is already turned on by default for many users in Firefox Nightly… Are you using Nightly?
555.
▲
by
minitech
8y ago
Sorry, I was commenting generally. Don’t know about AMP. How does that make sense, though? What performance reasons could there possibly be for inlining CSS that doesn’t apply to any element in a page?
556.
▲
by
minitech
8y ago
The recommendations are to inline the important (render-blocking) CSS, so at most only the part of the CSS that applies to the 1K of HTML should be inlined.
557.
▲
by
minitech
8y ago
> How does this work with cherry picks or rebases? Would it just be authorized by the key of the person doing the rebase and lose the authentication of the original commits? Yes. > ⋮ Sounds like your organization will need to put a lo
558.
▲
by
minitech
8y ago
> Is Git cryptographically secure? Not right now, because it still uses SHA-1. But apart from that, the answers are: > 1. Can I reorder commits without access to secret keys? No, because a hash of some commit data is what’s signed and
559.
▲
by
minitech
8y ago
SQL with no ORM. Harder to be unaware of what you’re querying when you have to write the queries. Not using attempted magic like Firebase would also fix the problem where the home page transfers 9 MB of data from Firebase on top of the 1 MB
560.
▲
by
minitech
8y ago
> Oh, you can code [a polyfill] yourself, and it will work. Use a polyfill that already exists. Take it out when browser support is there.
561.
▲
by
minitech
8y ago
Doesn't help developers not get different versions of packages. Lockfiles are necessary regardless of Docker.
562.
▲
by
minitech
8y ago
> How can I do this without defining a function? You do define a function, but only once. Constructor: this.smth = this.smth.bind(this); JSX: <button onClick={this.smth}></button> Kind of awkward, but the
563.
▲
by
minitech
8y ago
> This is _eslint-scope_ which is not included by default with ESLint itself. Yeah, it is. https://www.npmjs.com/browse/depended/eslint-scope
564.
▲
by
minitech
8y ago
I’m confused. If you already have script injection on a website with script-src 'unsafe-inline' (!!!), what do you need to bypass? I guess for some very unusual types of websites it could be hard to get information out, but you’re
565.
▲
by
minitech
8y ago
Yeah, it’s too bad about the name because this extension otherwise seems really good. (Just a minor annoyance, but as you say, one that comes up constantly…)
566.
▲
by
minitech
8y ago
Current ELinks does support SNI. That bug might have been RHEL being on an old version.
567.
▲
by
minitech
8y ago
> Fortunately, people have built-in biological CO2 detectors. They’re not that sensitive, though, and the symptoms are ambiguous.
568.
▲
by
minitech
8y ago
No, the tab prompts you to turn on accessibility features.
569.
▲
by
minitech
8y ago
That’s - one advantage, not “a lot” - very slight, because the tool to convert to and from text gets made - vastly outweighed by the disadvantages
570.
▲
by
minitech
8y ago
If you run your own mail server and everyone who sends you mail makes a direct encrypted connection to it, sure. That’s not a solution for most people.
More ›