Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bajsejohannes
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
bajsejohannes
2mo ago
If you get the ? from rust in addition to the option, then it’s suddenly a lot more convenient. It will do `if err != nil { return err; }` in a single symbol. There’s also convenience at the returning side. You can always just return the er
2.
▲
by
bajsejohannes
6mo ago
To be honest, I actually agree that Dijkstra's argument seem a bit one sided. It's also interesting to see the argument in your linked article that offset and index doesn't have to be the same. If I get the root of the argume
3.
▲
by
bajsejohannes
6mo ago
There are arguments for why 0-based indexing is _better_, unrelated to pointer arithmetic. https://www.cs.utexas.edu/~EWD/transcriptions/EWD08xx/EWD831... > we had better regard —after all those centuries!
4.
▲
by
bajsejohannes
6mo ago
I worked on a game where we added a "fairness" factor to randomness. If you were unlucky in one battle, you were lucky in the next, and vice versa. Mathematically you ended up completely fair. (The game designer hated it, though,
5.
▲
by
bajsejohannes
6mo ago
Interesting to see an alternative approach. I struggled a bit to understand the explanation on github, but eventually got to something that made sense. It would have helped me if it said up front that - 0, 1, N and Y pass the input signal o
6.
▲
by
bajsejohannes
1y ago
Capitalization is ignored by the compiler. So you can call it REPEAT, repeat, rEpEaT and so on. Same for variable names, functions, etc.
7.
▲
by
bajsejohannes
1y ago
I don't know, but anecdotally, I still use it for work, but no longer for personal chats. It also seems like someone at Slack is tasked with driving up engagement, because I get these "Your team is missing you" messages from
8.
▲
by
bajsejohannes
1y ago
Another version that's useful is this ASCII version: https://gabmus.org/posts/raspberry_pi_pico_pinout_in_your_te... I keep a slightly modified version of it as a top comment in my main C file in every pico projec
9.
▲
by
bajsejohannes
1y ago
Thanks! I've been using pinout.xyz quite a few times; maybe you should link from there to the pico versions so it's easier to discover?
10.
▲
by
bajsejohannes
2y ago
Thanks! So I guess the best recourse then is to resize the table? Seems like it should be part of the analysis, even if it's low probability of it happening. I haven't read the paper, though, so no strong opinion here... (By the w
11.
▲
by
bajsejohannes
2y ago
One thing I don't understand from watching the video, is what happens in the (very rare) case that you get collisions all the way down the funnel. I assume this is related to the "One special final level to catch a few keys"
12.
▲
by
bajsejohannes
2y ago
The UX on MacOS is so bad here. First, a notification prompts you to enable Apple Intelligence. When you dismiss the notification by clicking the "x" in the corner, it instead opens the system settings and proceeds to download som
13.
▲
Design and development of the Intel 80386 microprocessor [audio] [video]
(youtube.com)
3 points
by
bajsejohannes
2y ago
|
0 comments
14.
▲
Hacking the RP2350 [video]
(media.ccc.de)
4 points
by
bajsejohannes
2y ago
|
0 comments
15.
▲
by
bajsejohannes
2y ago
I agree with OP that it's unnecessarily confusing. A "method" is a procedure. The floating point number is the result of that procedure, not the procedure itself. "Decimal" implies a ten based system, even though it
16.
▲
by
bajsejohannes
2y ago
How much of luggage handling is the airline vs. the airport crew? I had assumed it was mostly the latter.
17.
▲
by
bajsejohannes
2y ago
> admittedly in spurts I haven't watched his videos, but this seems like a sign of quality. Making a video when you have a great idea vs making a video a week or day just to feed the algorithm.
18.
▲
by
bajsejohannes
2y ago
There's also MPU in even simpler/cheaper MCUs. For instance, ARM Cortex M0+ sports an MPU, and this architecture is used in STM32C0 ($0.24 in bulk) and RP2040. I have no idea how the landscape looks in general, though.
19.
▲
by
bajsejohannes
2y ago
This is because of relativity and the fact that there's more force at in the valley than the mountain. https://en.wikipedia.org/wiki/Time_dilation
20.
▲
by
bajsejohannes
2y ago
I also have mixed results with using the iPad as an external monitor. It works every time, but it's orders of magnitude more fiddly than an actual monitor. Exposing it as a monitor sounds like a much nicer interface, although I don
21.
▲
by
bajsejohannes
2y ago
And just to spell it out: Fewer payout means fewer resources to spend on further operations. So I would absolutely think that the criminals care if there is an actual ban.
22.
▲
by
bajsejohannes
3y ago
The up an coming GateMate seems interesting to me. They are leaning heavily on open source tooling. chip: https://colognechip.com/programmable-logic/gatemate/ board: https://www.olimex.com/Products
23.
▲
by
bajsejohannes
3y ago
https://lunar.fyi/ can do that (as well as control brigthness on external monitors)
24.
▲
by
bajsejohannes
3y ago
I never knew these were actually 90mm, and not actually 3.5in. Surprising, since I'm in a metric country.
25.
▲
by
bajsejohannes
3y ago
I just not sure why they put in the "Angstrom symbol" to begin with. If you do, then why isn't the "meter symbol" (m) also represented? Fortunately, it seems like it's marked as deprecated: https://e
26.
▲
by
bajsejohannes
3y ago
It goes 90000..9FFFF then 100000..10FFFF. The latter should have been A0000..AFFFF. So the author is using hex for the last four digits and decimal for the remaining ones.
27.
▲
by
bajsejohannes
3y ago
The preference is purely about the amount of characters. I hope no one will ever actually read or write these URLs, but you never know...
28.
▲
by
bajsejohannes
3y ago
Because a hash is (by definition) a one-way function. You need to be able to go the other way for incoming ids.
29.
▲
by
bajsejohannes
3y ago
I'm actually working on encrypting database keys like this, and I opted for a string ID with "url safe" base64. It avoids the ambiguity of looking like a UUID when it's not, and I prefer "o3Ru98R3Qw-_x2MdiEEdSQ"
30.
▲
by
bajsejohannes
3y ago
You would still use a secret key, so it's impossible for the end user to decrypt it.
More ›