Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bonzini
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
33 ms
·
631.
▲
by
bonzini
2y ago
I think it was better and easier to set up a DIB, treat it as a double buffer of sorts and only use GDI to BitBlt it to screen. Don't ask me how you do that, though it probably would not take me too much to page that stuff back into my
632.
▲
by
bonzini
2y ago
IIRC WinG was basically a way to set up a GDI device context that corresponded to a frame buffer, so you could take your DOS SuperVGA code and run it under Windows, only redoing sound and input. It's been almost 30 years though. :)
633.
▲
by
bonzini
2y ago
The article I linked explains that you can still get opioids during recovery in the hospital in other countries, it's only once you're discharged that they're a lot more careful. There must be something intermediate between &
634.
▲
by
bonzini
2y ago
It's worth noting is that at the time the EPA's position was _in favor_ of Chevron, while the agencies right now tend to be a lot less corporation-friendly (hence the need to overturn the precedent, some say). Also worth noting is
635.
▲
by
bonzini
2y ago
Most countries do without them now and have always done without them except in special cases such as palliative cures. You get opioids during recovery in the hospital, but not once you're discharged. You might get codeine rarely, but t
636.
▲
by
bonzini
2y ago
Ibuprofen, paracetamol, rest? From https://www.nytimes.com/2018/01/27/opinion/sunday/surgery-ge... : if you "no longer feel the pain you will no longer know what your body is telling you. You mi
637.
▲
by
bonzini
2y ago
Roald Dahl was censored a couple years ago.
638.
▲
by
bonzini
2y ago
It is easy to treat Galileo as fighting the obscurantist church of the 15th century, but as the article explains briefly: > provocatively voiced the pope’s own arguments through an obtuse Aristotelian called Simplicio ... Galileo's
639.
▲
by
bonzini
2y ago
Seems pretty interesting and pizza-ish (unlike Chicago pizza which is only interesting). Yeah, I would call it focaccia al pomodoro perhaps. But if you consider that New York-style pizza is commonly sold by bakeries in Italy, and it's
640.
▲
by
bonzini
2y ago
The guy is known in Italy for being very clickbait-y. What he says is usually okay but a bit exaggerated, but in the case of pizza he is wrong. This is a discussion between him and another guy -> https://angeloforgione.com&#
641.
▲
by
bonzini
2y ago
Pizza delivery has been available in Italy since the 90s at least. Not as common as it is now, with every restaurant offering it, but it definitely existed even in small towns.
642.
▲
by
bonzini
2y ago
Does that count as "going nuclear"? Four have been built, and as of now they've all been decommissioned.
643.
▲
by
bonzini
2y ago
Yes, gdb sets them with ptrace when debugging other user mode processes.
644.
▲
by
bonzini
2y ago
That other dimension is the one we use to dissipate heat.
645.
▲
by
bonzini
2y ago
The ESP32 has nothing to do with a Raspberry Pi. It's only good that people learnt to use the better tool (in terms of price and power consumption) once better tools like MicroPython or NodeMCU came around.
646.
▲
by
bonzini
2y ago
> We're actually getting safer reactors that can eat spent fuel, Absolutely not my field, but can't CANDU reactors use spent fuel too? They seem pretty cool, it's not clear to me why they use them only in Canada!
647.
▲
by
bonzini
2y ago
It's literally a difference of coordinates , not an intersection. Take all pairs of points in the (filled) polygons A and B, subtract their coordinates, and include the difference in A-B. If there is an intersection, there is at least
648.
▲
by
bonzini
2y ago
Why? It is only mandatory for companies and self-employed professionals. Most Italians don't have a registered email address.
649.
▲
by
bonzini
2y ago
Yeah, it's easy to downplay it but a single sign on (not government-provided, only government-standardized) to do everything from tax returns to downloading your medical record is not at all a given in many other countries. Hoping that
650.
▲
by
bonzini
2y ago
We have both the best and the worst examples of bureaucracy. We were even the first country to have "registered email", in 2005. It's a set of server side protocols based on SMTP and MIME, that provide a legally-binding confi
651.
▲
by
bonzini
2y ago
If there are any specific topics that you'd like covered, please ask.
652.
▲
by
bonzini
2y ago
The SR-71 in the Richmond Science museum was even more impressive to me than the Saturn V. The thing is _huge_ with a tiny cabin.
653.
▲
by
bonzini
2y ago
So basically GtkDialog's utility boils down to gtk_dialog_new_with_buttons(). That's like five line of code saved per dialog box, or zero if you use Glade to build the UI. The big deal for GtkDialog used to be gtk_dialog_run(), wh
654.
▲
by
bonzini
2y ago
Unfortunately https://developer.apple.com/design/human-interface-guideline... is down so I cannot show, but it is absolutely not showing off. It's an extremely detailed document showing how to place widgets on the
655.
▲
by
bonzini
2y ago
> Gnome 2 themes working well (for them) being one of them For some definition of working well. What I remember was debugging a case where the KDE theme for GTK (that is, to make GTK look like KDE) wanted to fork() and exec(), and that c
656.
▲
by
bonzini
2y ago
https://en.wikipedia.org/wiki/Riemann_hypothesis#Consequence... lists several theorems that have been proved conditionally on the Riemann hypothesis being true. The most notable is probably the Goldbach conjecture, tho
657.
▲
by
bonzini
2y ago
It is modal. https://docs.gtk.org/gtk4/method.Window.set_modal.html The user can't interact with the parent until you close it. The problem with nested event loops is that there can always be timers or idle callba
658.
▲
by
bonzini
2y ago
You never did. There was never a widget that knew that "No" was in the middle on Windows and on the far left (but spelled differently) on macOS. I have no idea if/how Qt does it. If you need to ask a question, GTK does provid
659.
▲
by
bonzini
2y ago
It's not dialog boxes per se that are in libadwaita, it's things such as where to place buttons and in what order, and also what are the standard labels for the buttons (e.g. should the dialog have Yes/No/Cancel or Don&#
660.
▲
by
bonzini
2y ago
There is gtk_window_set_transient_for() and gtk_window_set_modal(), and GtkDialog is basically a synchronous wrapper for those two + a nested event loop. But nested event loops are very easy to get wrong, so my guess is that, these days, yo
More ›