Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
idoubtit
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
301.
▲
by
idoubtit
4y ago
The technical solution is to apply a rate limit on your web server. Then Google bots will receive a HTTP status code 429 "too many requests" that will force them to slow down. Nginx has `limit_req_zone` that allows fine-tuning the
302.
▲
by
idoubtit
4y ago
In Go, while it is possible to use a concurrent hash map, it's generally not recommended. In most cases, you should use a channel. In one of my first Go programs, I used mutexes to avoid concurrent writes in a critical part. Then I mov
303.
▲
by
idoubtit
4y ago
[meta] Hacker News has become a kind of Reddit "General news and curiosities for techies", far from its initial goal: > Hacker News Guidelines > What to Submit > On-Topic: [...] If you had to reduce it to a sentence, the
304.
▲
by
idoubtit
4y ago
I have a slight color deficiency, so the sample formula and paragraph are a bit hard to read for me, especially the paragraph. Up to 8% of male adults suffer from this, at various levels, so I'm surprised the authors did not mention th
305.
▲
by
idoubtit
4y ago
As an older person who's been exposed to the web and IRC for several decades, I've seen all kind of places, some of them well-moderated, and others where verbal violence was recurrent or moderation abusive. The moderation in HN is
306.
▲
by
idoubtit
5y ago
The example in the article is poorly chosen, because an associative array (map) would be more suitable. What you wrote is almost the same with PHP: ['abc' => 2, 'def' => 3][$x] ?? 'default'; PHP&
307.
▲
by
idoubtit
5y ago
I agree on the general position. And I use Firefox as my main browser on my secondary laptop. But I think your rant goes too far in the other direction. For instance: > You are free to donate, instead. Donations go to the Mozilla Foundat
308.
▲
by
idoubtit
5y ago
> Religious figures and scientists both argue over how the universe was created. I haven't seen much arguments about this. In most civilized countries, religions have stopped to make factual claims about the "antediluvian times
309.
▲
by
idoubtit
5y ago
The author of this blog article is not an historian, and neither am I. But many of his assertions are false, and this whole article looks like vain chattering to me. > the collapse of Mesopotamia more than four millennia ago, due to drou
310.
▲
by
idoubtit
5y ago
Instead of creating a new tool to convert MDN's content into HTML, it would probably be easier to modify the official tool, Yari, in order to produce web page with more compatible (and faster) CSS & JS. https://github.co
311.
▲
by
idoubtit
5y ago
My own experience is that (unix) timestamps are much less error-prone than textual representations like ISO 8601 and such. A field like `update_time_seconds` is clear and easy to convert into any representation. This is what the Google API
312.
▲
by
idoubtit
5y ago
When the content is static, adding so much JS and CSS weaken the website for no good reason. There will be more bugs and annoyances after this redesign. Now, scrolling MDN is sluggish with Vivaldi (YMMV). This is so annoying that I had to d
313.
▲
by
idoubtit
5y ago
I wanted to try Insomnia, but could not install their deb package on my Debian: it depended on a "libappindicator3-1" which is not available in my current release. I'll stick to basic CLI tools when I experiment with web APIs
314.
▲
by
idoubtit
5y ago
In my opinion, it is naive. First of all, the average yearly temperature means nothing for indoor heating. Suppose this average is 20°C: it could be half of the year at 5°C and half at 35°. It's even more complex, for instance if cold
315.
▲
by
idoubtit
5y ago
> It seems you do not code in the open air, and you should change habits and perspective on that. Not the OP, but when I started coding this morning, the temperature of "open air" was 4°C. Now it's 10°C. Still, typing (wit
316.
▲
by
idoubtit
5y ago
This modernc.org/ql is an embedded database accessed through QL, which is a sub-SQL language "less complex and less powerful than SQL" (according to their homepage). I fail to see when this would be useful compared to the de
317.
▲
by
idoubtit
5y ago
The reasons are, for a large part, not on the technical side. I was surprised, because this this a lot of work for little visible gain. Here are the reasons, slightly abbreviated: > The whole system is managed by the same team Mostly phi
318.
▲
by
idoubtit
5y ago
> I had to stop because [...] and depended on some WebGL 3D and game libraries. There's a limitation of Elm hidden in there. If your code needs to interoperate with some JavaScript libraries, you need to define an Elm port for each
319.
▲
by
idoubtit
5y ago
I believe that Derw is a good candidate for this. It was announced last month. The creator intends to deliver a better interop with TypeScript/JS, and promises a more open mind (public development of the core language, allow private re
320.
▲
by
idoubtit
5y ago
JMeter has literally hundreds more features than this. This tool (apart from the non-free licence) seems more similar to `ab` and the dozens other http benchmarking tools (like siege, wrk, httperf, and others I haven't tried), with an
321.
▲
by
idoubtit
5y ago
The post states that going from "34kb compressed" to "about 3kb compressed" is a big change: > That's a massive savings on size. Of course, there are some sacrifices taken in that reduction. My experience is that
322.
▲
by
idoubtit
5y ago
The author never defines "nemesis". "Nemesis" was a goddess that punished hubris (extreme pride and arrogance). In British English, the traditional meaning of "a nemesis" was someone with a greater power that i
323.
▲
by
idoubtit
5y ago
A close relative's house burned this fall, so I can relate to this subject. It was in western Europe, so it probably differs from the US experience: insurance was a great help, and other structures (e.g. municipality) are now involved
324.
▲
by
idoubtit
5y ago
Your opinion contradicts the official description of Nim on the language's home page: > Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modu
325.
▲
by
idoubtit
5y ago
ansible. And similar tools, but lack experience outside of ansible. You can see Ansible a a tool to automate the install/configure/update process that you would do manually on a single server. Then you can apply this "playboo
326.
▲
by
idoubtit
5y ago
> At the same time we want higher quality images YMMV but 99% the images I see on the web, I don't care about their quality. A large part of them are annoying, and most of the others could be low-resolution and low-quality, I would
327.
▲
by
idoubtit
5y ago
Opcache avoids the compilation step. It's not relevant in this case (compilation ~0.01s out of ~400s). Microbenchmarks are meaningful as long as one doesn't read too much from them. This benchmark shows that PHP seems to have a pr
328.
▲
by
idoubtit
5y ago
Since $x is an array, it will get rejected at runtime by `function f(int $a)`. So this `array` type is limited but useful. You can also add annotations like `/* @var []int */`. External tools (psalm, phpstan) use annotations in th
329.
▲
by
idoubtit
5y ago
I don't think any JS code can be worse than old PHP code. I've had to deal with legacy software written with PHP4. I was to port it to PHP7 since it was not compatible with PHP5.4+. The code used "register globals", mean
330.
▲
by
idoubtit
5y ago
It may be the longest distance recorded for a continual flight by any land bird, but it's not an extraordinary performance. For instance, common swifts can flight continuously for months. They obviously accumulate a huge distance duri
More ›