Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
aidos
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
391.
▲
by
aidos
4y ago
For a supplementary angle I’d highly recommend having a nose in both the Postgres docs and source. They’re both very readable. I think the section on internals is a good jumping off point that leads to a lot of deeper content. https:/
392.
▲
by
aidos
4y ago
It may be a misconfiguration but I’m fairly sure you couldn’t change this behaviour in the past. Each worker would take a job in advance and you could not prevent it (I might be misremembering but I think I checked the source at the time).
393.
▲
by
aidos
4y ago
“path of least resistance” is very fitting.
394.
▲
by
aidos
4y ago
It does on Chrome. I believe it’s used from Google search results to link you to the relevant place in the page.
395.
▲
by
aidos
4y ago
Countfire | Senior or Mid-level Fullstack Developer | Remote (London, UK) | www.countfire.com Countfire makes software for the construction industry. Our software is well loved because we try to design solutions that are a magnitude more ef
396.
▲
by
aidos
4y ago
I don't quite get your point. Your parent was pointing out that there are interesting projects where the "compile" time is milliseconds — at least for the developer perspective. It doesn't really matter that there's
397.
▲
by
aidos
4y ago
I did a bit of AppleScript recently (scripted changing between draw and erase in zoom annotations from the buttons on my tablet pen). In my reading I got the impression that not everything is implemented in js so you might get stuck.
398.
▲
by
aidos
4y ago
To clarify. There is no mapping from natural numbers to all the irrational numbers. And that’s why there are different sized infinities
399.
▲
by
aidos
4y ago
It’s been a while for me but the main thing you need to consider is bijections. If you can find a mapping for each A -> B and conversely each B -> A then they’re the same size. Consider the rational numbers. They can all be written as
400.
▲
by
aidos
4y ago
We’ve actually been through our code after this conversation to look at the impact. Switching to the model where we use useEvent in the local component only is working fine and is easier to reason about.
401.
▲
by
aidos
4y ago
The idea with them is to “break” reactivity. In the local space where you define them that’s totally fine because you’re obviously doing it in order to have useEffects that only run when their real dependencies change. If these are passed
402.
▲
by
aidos
4y ago
Hat tip to you, my friend! A small data point as to how your bad memories balance out the universe. Despite not having a lot of disposable income, my parents got me a subscription to AA (staring somewhere in the late 80s). Receiving each ne
403.
▲
by
aidos
4y ago
Sounds like that’s probably ok in practice - you can use it nearer to the location of the useEffect. Though, in our case we use mobx so a lot of our components are effectively memoised on shallow prop comparison. Here the ergonomics of stab
404.
▲
by
aidos
4y ago
I mean, with that attitude? You’re obviously a bit frustrated but as someone who has done a lot of React over the years I don’t quite get what you’re running into that would make you that upset.
405.
▲
by
aidos
4y ago
Thanks for the update. There’s always a lot of complaining about hooks but honestly I think they’re generally pretty wonderful. Occasionally you need to do some gymnastics but more recently I’ve lent on the useEvent pattern to detach reacti
406.
▲
by
aidos
4y ago
I’ve not read through the thread but I wonder how much of it is effective replaced by the upcoming useEvent hook https://github.com/reactjs/rfcs/blob/useevent/text/0000-usee...
407.
▲
by
aidos
4y ago
That’s a nice touch. Where we are it’s a little impractical as there’s only a single road through the village but it also means that that we’d only have to man the single point of crossing.
408.
▲
by
aidos
4y ago
It’s the catch22 of it I suppose. Also grew up in rural Nz where walking / cycling alone from a fairly young age was normal. Now my kids are at that age they cycle a bit on their own, but even in our village there is a street they need
409.
▲
by
aidos
4y ago
As you say, I feel like it probably doesn't really matter that much. If you're relying on a PDF rendering correctly based on an unusual local font then you're in trouble as soon as you send the document to another machine. If
410.
▲
by
aidos
4y ago
Unless I'm missing something, if the fonts aren't embedded in the first place then it shouldn't make any difference. The text should be encoded properly so that it can render now without the fonts (in which case we know which
411.
▲
by
aidos
4y ago
Here’s one of the scripts if anyone wants to see how weird it all is. tell application "System Events" repeat with theProcess in processes if not background only of theProcess then tell theProcess
412.
▲
by
aidos
4y ago
I can’t answer that question exactly because that’s driving Chrome, but I wrote an AppleScript the other day to make zoom less dreadful. I annotate on screens all day and there are no useful shortcuts for moving between drawing and erasing.
413.
▲
by
aidos
4y ago
I think we probably copied it via a laplink cable. We definitely played it multiplayer via a serial cable.
414.
▲
by
aidos
4y ago
If you’re talking python then you just use ipython. There’s an auto reload feature that live updates code in situ so you don’t even have to reload data in between. I recorded a video with terrible quality audio years ago that shows how effe
415.
▲
by
aidos
4y ago
Well that’s probably the response that’s most swayed my opinion of a service ever. Good luck with it, I really hope you can turn it around.
416.
▲
by
aidos
4y ago
I think they have indexes on json (or any selectable thing?). You could probably implement the foreign key using generated columns these days. Ah I guess you mean instead of having the association table? That would definitely be nice in som
417.
▲
by
aidos
4y ago
Nitpick but it’s a stretch to classify PDF as a markup language. They’re a graph of nodes that can encapsulate myriad different types of data including things that are probably even turing complete like fonts. Even the graphics streams insi
418.
▲
by
aidos
4y ago
Well sure, as ever, it depends on your usecase. PDF is an insanely complex spec (I’ve spent more time reading it than most because I need to know bits of it for my job and I just generally find it fascinating). But a lot of devs just need t
419.
▲
by
aidos
4y ago
That's a well trodden path in most languages. A cursory search surfaced this library that looks like it would probably do the job: https://github.com/scriban/scriban
420.
▲
by
aidos
4y ago
The markup doesn’t need to be html - and would be better not to be. The point is more that templating languages are great for formatting data as markup and markup is great for driving layout. With this library as a backend you can make some
More ›