Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
thamer
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
181.
▲
by
thamer
5y ago
Ah yes I remember trying out Redis with telnet, it was helpful at the very beginning. Thankfully command-line clients came around soon enough. Also, the protocol as it is today was only introduced in Redis 1.2, and wasn't around at the
182.
▲
by
thamer
5y ago
Using the Redis protocol doesn't seem like the most efficient way to implement a fast client/server architecture. The Redis protocol[1] is text-based, where each command is an array with a header describing the number of elements
183.
▲
by
thamer
5y ago
A couple of my college friends use Ada daily and have been working with it for over 15 years now. One of them fell in love with the language when our first ever programming course was taught in Ada, presumably to get students with started w
184.
▲
by
thamer
5y ago
Unlike with the "k" suffix for thousands that we have today, YouTube used to show the unabbreviated number of likes and dislikes even for larger numbers of votes. This video was remarkable for the fact that it maintained pretty mu
185.
▲
by
thamer
5y ago
My point was that the background thread would remove elements periodically, by checking something like: if (it->expiry_time < now) erase(it); Where erase() could certainly remove the item and update the size, but it would rem
186.
▲
by
thamer
5y ago
It's interesting that size() has to be constant-time. From what I understand of the standard linked from the blog post, it looks like size() being constant-time is a property of Container and not each individual method (§ 23.2.1, pag
187.
▲
by
thamer
5y ago
For what it's worth, Copilot can do it. I typed the following prompt: def search_wikipedia(lat, lon): """ use "requests" to do a geosearch on Wikipedia and pretty-print the resulting JSON
188.
▲
by
thamer
5y ago
In case the name doesn't ring a bell: Sinclair is the group that was widely reported on a few years ago in a series of viral videos that showed dozens of their anchors reciting the same exact line about fake news.[1] They control a lar
189.
▲
by
thamer
5y ago
Michael Stevens from the Vsauce YouTube channel visited Tetsuro Matsuzawa, the author of this article. He competed against Ai at the masked numbers test and was utterly outmatched by the chimpanzee. The speed at which she taps the numbers a
190.
▲
by
thamer
5y ago
How do they attach the camera? I see that it has metal band clamps, but what do they grab onto? A seal's back is all smooth.
191.
▲
by
thamer
5y ago
Screenshot of the front page of Hacker News the day Steve Jobs died: https://i.imgur.com/yheyTOh.png
192.
▲
by
thamer
5y ago
I was also a "true believer" in CRDTs for a long time, implementing my first ones in Erlang about 9 years ago[1], but my opinion of where they fit has changed significantly. The one issue with CRDT that I find is rarely mentioned
193.
▲
by
thamer
5y ago
Command to run it on macOS: traceroute6 -m 40 hand.bb0.nl
194.
▲
by
thamer
5y ago
Some (most?) tools that output data in columns and fit each one to the largest value in that column need to scan the whole file as a first pass just to start displaying data. Not only is it the case with this tool, but from what I'm re
195.
▲
by
thamer
5y ago
In case anyone is wondering, the answer is '' (empty string).
196.
▲
by
thamer
5y ago
> there's no good way to organize your documents into folders But… there is? Just above this list there's a folder icon, clicking it brings a hierarchical file explorer with nested folders and a breadcrumb tracker at the top sh
197.
▲
by
thamer
5y ago
I worked on a tool that processes a large-ish dataset using only data structures in memory, since this is much faster and simpler than using a system like Spark for example. Not only that, the nature of the processing algorithm (a reduce,
198.
▲
by
thamer
5y ago
Wow! Thank you so much for this comment. I have been using IntelliJ for over 10 years and I never knew this feature existed, I just gave it a try and it's incredibly useful. One thing I wish Java debuggers supported was the ability to
199.
▲
by
thamer
5y ago
I have a PM2.5 sensor hooked to a Raspberry Pi Zero W, I use the PMS5003 ($40 at Adafruit). I have a script running in a screen session that posts its measurements once a minute to a Google Cloud Function which then inserts it into BigQuery
200.
▲
by
thamer
5y ago
If you use macOS, it's also in the menu bar in the View menu. This means that you can define an app-specific keyboard shortcut in Preferences > Keyboards > Shortcuts > App Shortcuts. Then click [+] and select Chrome as the app
201.
▲
by
thamer
5y ago
I can't edit the original post, but here's the script if anyone's interested: https://greasyfork.org/en/scripts/431384-switch-to-mobile-wi... The one to rewrite all WP links on all pages is part of
202.
▲
by
thamer
5y ago
Interesting to see that people dislike the mobile version so much! I only use the mobile version, it's so much more readable. I literally wrote a script that does the exact opposite of what you suggest! I have one script that runs on a
203.
▲
by
thamer
5y ago
What do you mean exactly? If you want to trigger some specific behavior per directory, have a look at `chpwd` for zsh, it's a function you can redefine that gets called every time you enter a new directory. You could for example have a
204.
▲
by
thamer
5y ago
I hit the same limit and couldn't read it. Outline worked: https://outline.com/xqvh3u (just prefix any URL with https://outline.com/ – including the original https:// – to get a "reade
205.
▲
by
thamer
5y ago
> The choice of how and when to update any emoji flag design rests with platform owners like Google or Apple. [...] The related question is whether the international community recognizes a Taliban flag as valid. Back in 2014 when ISIS in
206.
▲
by
thamer
5y ago
Your filter didn't work for me with uBlock Origin, also I'm not sure that many people still use Twitter over unencrypted HTTP. This filter seems to work (tested with uBlock Origin 1.37.2): ||abs.twimg.com/fonts/chi
207.
▲
by
thamer
5y ago
Somewhat a side-topic in this article, but I found this sentence striking: > When I'm losing, it's pain coupled with RAGE, depending on how bad the loss is, or how futile I feel playing. This doesn't sound very healthy, an
208.
▲
by
thamer
5y ago
I tried the most recent ISO from the "Releases" page using Parallels, and it didn't boot (failed to find a Lua file under /boot). Did anyone manage to try it out?
209.
▲
by
thamer
5y ago
One of the most important is that you can't iterate over all the UUIDs. How many data leaks have come from people incrementing an ID in a URL? This is so common, I've experienced this myself as a student with a summer job: the com
210.
▲
by
thamer
5y ago
The article mentions homomorphic encryption, which is a way to perform computation on encrypted text, yielding encrypted results _without_ revealing the plaintext. Instead of f(x) → y, you do f(encrypted(x)) → encrypted(y). So if you think
More ›