Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bobbylarrybobby
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
31.
▲
by
bobbylarrybobby
8mo ago
I don't care how good of a programmer you are, if you don't know Apple stuff (Swift, Xcode, all the random iOS/Mac app BS) you aren't making an Apple app in a weekend. Learning things is easy but still takes time, and pr
32.
▲
by
bobbylarrybobby
8mo ago
At least this one can be disabled: settings > accessibility > Face ID & attention > attention aware features.
33.
▲
by
bobbylarrybobby
8mo ago
This doesn't really work for things that are already words like it's/its. I type the one i want, iOS “corrects” it to the wrong one, and even after I tap the one I typed in the prediction bar? iOS still inserts its own sugges
34.
▲
by
bobbylarrybobby
8mo ago
I've been seeing this from time to time since at least 2016. As others have noted, it's more likely to happen when you type quickly or immediately after pasting your search in the url bar.
35.
▲
by
bobbylarrybobby
8mo ago
The three Fn* types correspond to the three ways you can refer to a value: &T, &mut T, T. Fn captures its environment by shared reference, FnMut by exclusive reference, and FnOnce by value, and everything flows from that. Calling a
36.
▲
by
bobbylarrybobby
8mo ago
Youtube also doesn't let you replace an already-uploaded video while maintaining the URL, which is incredibly painful if you need to edit a posted video for whatever reason.
37.
▲
by
bobbylarrybobby
8mo ago
You tend to know your spouse, you don't know the mental state of people on the train. Especially people who have already demonstrated they don't care about social norms or preserving tranquility in public spaces.
38.
▲
by
bobbylarrybobby
9mo ago
Where does dither fit into this picture?
39.
▲
by
bobbylarrybobby
9mo ago
If I'm not mistaken, the Photos app stores originals on disk and then uses a sqlite database to track metadata (and maybe edits to photos as well, given that it has the originals). Seems reasonable to me.
40.
▲
by
bobbylarrybobby
9mo ago
To those who are interested in viewing the “shape” of weather data (and who are using an apple device), I cannot recommend https://www.weatherstrip.app enough. I think its visualization is even superior to Dark Sky’s, mostly by
41.
▲
by
bobbylarrybobby
9mo ago
A reasonable format would not insist you lay out tables visually any more than it would insist you center your headers if you'd like them horizontally centered when rendered. For instance, Asciidoctor has syntax for table cells that re
42.
▲
by
bobbylarrybobby
9mo ago
And even non cycling functions (e.g. a gaussian)
43.
▲
by
bobbylarrybobby
9mo ago
Steak’s not great for you, but in moderation is probably a better source of calories than refined grains, which should be treated more or less the same as candy.
44.
▲
by
bobbylarrybobby
9mo ago
As long as the compiler is new enough to handle 2024 code (i.e., you're not using a 2021 version of the compiler itself), 2021 code can use 2024 code.
45.
▲
by
bobbylarrybobby
9mo ago
Apple spent the next several years walking lots of the changes back, in particular the thin text and overdone translucency
46.
▲
by
bobbylarrybobby
9mo ago
In theory, the problems highlighted in the article would have become apparent shortly into the process of assigning an icon to every menu item. Forging ahead despite the impossibility of doing a good job on the task is a sign of orders bein
47.
▲
by
bobbylarrybobby
9mo ago
Is the following accurate? “If a type has a generic bound T: ?Sized, then its data lives on the heap.” (Except for &T because it's the one type that doesn't take ownership of its T upon construction.)
48.
▲
by
bobbylarrybobby
9mo ago
At the same time, there are humans who can be convinced to buy iTunes gift cards to redeem on behalf of the IRS in an attempt to pay their taxes.
49.
▲
by
bobbylarrybobby
9mo ago
Why would a website leave you with an account but no way to log in aside from the account recovery procedure?
50.
▲
by
bobbylarrybobby
9mo ago
Try blocks let you encapsulate the early-return behavior of Try-returning operations so that they don't leak through to the surrounding function. This lets you use the ? operator 1. when the Try type doesn't match that of the func
51.
▲
by
bobbylarrybobby
9mo ago
You can also de-mut-ify a variable by simply shadowing it with an immutable version of itself: let mut data = foo(); data.mutate(); let data = data; May be preferable for short snippets where adding braces, the yielded expression, and inden
52.
▲
by
bobbylarrybobby
9mo ago
Would it be possible for messenger apps to simply ignore <script> tags (and accept that this will break a small fraction of SVGs)? Or is that not a sufficient defense?
53.
▲
by
bobbylarrybobby
9mo ago
Shouldn't most chemicals be assumed unsafe until proven otherwise? How many chemicals have we produced in a lab that have no harmful effects? Even medicine is bad for you, it's just better than the disease it's meant to treat
54.
▲
by
bobbylarrybobby
10mo ago
On the one hand I can see the appeal of not having a build step. On the other, given how many different parts of the web dev pipeline require one, it seems very tricky to get all of your dependencies to be build-step-free. And with things l
55.
▲
by
bobbylarrybobby
10mo ago
You can combine the second and third strategies to hit the sweet spot of time and space.
56.
▲
by
bobbylarrybobby
10mo ago
You brought up an important opportunity for optimization. If you know the distribution of your data, it may make more sense to implement it in terms of the odd numbers and leave even numbers as the fallback. It's important to profile w
57.
▲
by
bobbylarrybobby
10mo ago
Safari supports base64-embedding font files in a <style>’s @font-face {} (iirc it's something like `@font-face { src: url('data:application/x-font-woff;charset=utf-8;base64,...'); }`) that can then be referenced as
58.
▲
by
bobbylarrybobby
10mo ago
How well can LLMs reason about avoiding UB? This seems like one of those things where no matter how much code you look at, you can still easily get wrong (as humans frequently do).
59.
▲
by
bobbylarrybobby
10mo ago
iPhoneScript should be fine though?
60.
▲
by
bobbylarrybobby
10mo ago
Well, it is a misspelled Fairphone :) You can see in the picture of the phone that the (paint? sticker?) of the letter i has fallen off
More ›