Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tomatsu
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
tomatsu
9y ago
> I'm curious if brotli's decompression is still fast on high compression levels. This is the case for gzip IIRC. Yes, it's optimized for fast decompression. Compression, on the other hand, is comparatively expensive. Th
32.
▲
by
tomatsu
9y ago
You could use a cookie which contains the revision and then the server could selectively push things which have changed since then.
33.
▲
by
tomatsu
9y ago
Too bad it was renamed. "Contains" was a much better name. "Contains" is used everywhere else - the DOM API included (Element.classList.contains).
34.
▲
by
tomatsu
9y ago
> Why would any sane person leave the water running while brushing their teeth? Because turning it on and off all the time is inconvenient. Operating the faucet with a foot pedal fixes this. People are too lazy to push it down if they
35.
▲
by
tomatsu
9y ago
Fn and Ctrl are the wrong way around. My laptop also got pgup and pgdn in those position, but they have a slightly different shape than the up key. I flipped them with Home and End with seems to be a somewhat popular thing to do. Works much
36.
▲
by
tomatsu
9y ago
> I believe that any knife that can be opened one handed would qualify, no? This would include things like box cutters (utility knifes).
37.
▲
by
tomatsu
9y ago
And the US doesn't? By the way "propaganda" and "public relations" are exactly the same thing.
38.
▲
by
tomatsu
9y ago
> 2Kb of extra bandwidth Images, animations, auto-playing videos... ads are much larger than 2KB. 2KB for the network overhead alone, maybe. Anyhow, my primary reason for blocking ads is that I seriously hate animated stuff next to tex
39.
▲
by
tomatsu
9y ago
https://www.reddit.com/r/FloridaMan/
40.
▲
by
tomatsu
9y ago
Komodo Edit/IDE had some command for selecting the word which is touched by the cursor (|foo, f|oo, foo| -> would select "foo"). It's similar to double-clicking a word. I used Ctrl + Shift + Down to activate it. Too b
41.
▲
by
tomatsu
9y ago
> 9px Verdana It's 9pt, but I do agree that it's way too small. I got the zoom level at 150% even without having any disabilities.
42.
▲
by
tomatsu
9y ago
Paying with cash is faster. Inserting your card, entering your pin, waiting a bit, getting some receipt printed, and finally signing it does take significantly longer than getting the right amount of change from a cashier who is used to doi
43.
▲
by
tomatsu
9y ago
> var body = document.getElementsByTagName("body")[0]; You can just use document.body. I also suggest to use a data URL instead. E.g. "data:," is an empty plain text file, which, as you can imagine, won't be in
44.
▲
by
tomatsu
9y ago
Yea, I wouldn't mind living in a large fancy RV. There are apartments which feel more cramped.
45.
▲
by
tomatsu
9y ago
The 'x' (#cancel-copy) does nothing. You've to focus/blur #link to go back.
46.
▲
by
tomatsu
9y ago
> how do I type this? On Linux, capslock then ß works. No idea how to do that on Windows, though. > so the only reason to use it is to write a word in ALL CAPS. Yep, it was only added for ALL CAPS. It was actually added to Unicode
47.
▲
by
tomatsu
9y ago
> We should really ban big diesel rigs from areas with population density above a certain threshold. I'd go much further than that. I'd ban all combustion engines in cities. There are enough alternatives: Walking, bicycles, e
48.
▲
by
tomatsu
9y ago
> Dart? [...] JS fatigue I think you might like working with Dart. The entire ecosystem is standardized. And if you do Flutter stuff, Flutter is the only framework. Learning the language isn't a big deal. You already know most of
49.
▲
by
tomatsu
9y ago
Having the dev tools integrated means that they are still available if you're using some machine (e.g. a school PC) where you cannot install extensions.
50.
▲
by
tomatsu
9y ago
I quit cold turkey and ate 2 large bags of sunflower seeds in the first 3 weeks. Quitting was cheap. Quitting isn't that hard. It's just super annoying. Things like exercising regularly and eating properly take more discipline and
51.
▲
by
tomatsu
9y ago
You do get near-native performance, though. There are benchmarks. You can run them yourself.
52.
▲
by
tomatsu
9y ago
Either the IDE/editor is able to assist you or you have to consult the documentation regularly. That's just how it is. JS' standard library, for example, is really tiny but I haven't memorized all of it. If the editor ca
53.
▲
by
tomatsu
9y ago
> The web is the web, there is only the DOM guys, deal with it and move on. Flutter doesn't use a WebView. There is no DOM. That's why it's fast.
54.
▲
by
tomatsu
9y ago
> Why do I need to care if something takes a `child: (single object)` argument or a `children: [LIST of objects]`? The IDE tells you what's needed and the latest version of the plugin automatically adds a list literal and places t
55.
▲
by
tomatsu
9y ago
> let, const are slower than var, for example. They aren't slower anymore in V8. Most ES6 features are now about as fast as their ES5 counterparts.
56.
▲
by
tomatsu
10y ago
Xubuntu (with xfce instead of Unity) doesn't have that kind of thing. After you've moved panel #0 to the bottom, it's much closer to Window's UI as well.
57.
▲
by
tomatsu
10y ago
AOT compiling was initially all about iOS (where JIT isn't allowed), but you can now do that everywhere with "application snapshots" which were recently added with Dart 1.21. Unlike the script snapshots, application snapshots
58.
▲
by
tomatsu
10y ago
Benzos are only used for short-term treatment of anxiety. You get withdrawal symptoms after taking relatively small dosages for a few days. There are also many adverse effects like being unable to retain any new information. E.g. when I bri
59.
▲
by
tomatsu
10y ago
I always thought it was odd when they go with the whole " http://www." voodoo ritual, but then they skip the final slash after the domain.
60.
▲
by
tomatsu
10y ago
TypeScript and Dart are viable options for scripting. (Try it!) Wasm modules will be viable options for processing-intensive tasks.
More ›