263 karma · joined Oct 1, 2015 (11y ago) · 79 submissions
comment 7y ago · link · parent
Is that actually allowed by the GPL? I thought it was more like the "Ship of Theseus" - that even if you eventually replace all the original GPL code, the entire work remains GPLed. https://softwareengineering.stackexchange.com/questions/2603...
comment 7y ago · link · parent
If you're not aware of that, it is very tempting to use `useRef`, which is what I have often seen. Before hooks, we did not have the temptingly-named footgun `useRef` for this scenario (although we did have other footguns for other scenarios, and overall I love hooks).
comment 7y ago · link · parent
Also that the fix is "instead of using this one kind ref, use another kind of ref and put it in state"... I don't know, like I said I'm not sure if there is a better solution, but it still feels kind of unintuitive and complicated.
Now that I'm thinking about it... what is the reason that DOM refs and other refs need to be handled by the same concept? Every time I make a DOM ref, I'm doing something with it in a hook like useEffect. Why make me jump through hoops to re-run the hook if the DOM ref changes?
(I recognize there are probably good answers to those questions, the React folks are great, I just don't know the answers! Is it just to avoid introducing one more "type of thing", and instead making refs and DOM refs the same "thing"?)
comment 7y ago · link · parent
I'm not sure if there is a less confusing way of doing it, but it's damn confusing.
comment 7y ago · link · parent
For instance, several versions of Firefox had a serious bug in shared workers, which appeared intermittently when users opened your site in multiple tabs https://stackoverflow.com/questions/51092596/feature-detecti... - I had to use the user agent to work around this.
comment 7y ago · link · parent
20x more is not a sure thing, but for a disease like Alzheimer's that is already pretty common (e.g. we're not talking about risk increasing from 0.01% to 0.2%) it's more meaningful than just for entertainment purposes.
I agree with your wife that for most people their 23andme results will be nothing more than entertainment, but there are a handful of truly meaningful things it can find.
comment 8y ago · link · parent
comment 8y ago · link · parent
Although having the good version of APOE doesn't mean you'll never get it, and having the bad version doesn't mean you're guaranteed to get it. The odds do shift quite a bit, though.
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 9y ago · link · parent
https://github.com/dumbmatter/basketball-gm
Currently no terminal UI, sadly. PRs welcome!
comment 9y ago · link · parent
I remember growing up seeing people brag about how much coffee they drink and how much caffeine they consume and how addicted they are to caffeine - it seemed like a stupid macho dick-measuring contest. Later in life I learned about caffeine tolerance and addiction, and that confirmed my initial biases about regular caffeine consumption.
comment 9y ago · link · parent
Anyone know someone working on Edge? Maybe MS can apply to that program and get some extra funding?
comment 9y ago · link · parent
And I was being facetious, I know I'm not a normal user. Some normal users would like to play a video game I wrote that won't run in Edge due to missing IndexedDB features, though.
comment 9y ago · link · parent
That's funny, my most common request is "IT'S BEEN LIKE 5 YEARS, CAN YOU GUYS FINALLY SUPPORT ALL OF THE INDEXEDDB API? EVEN SAFARI DOES IT NOW!"
So sad when poor multinational corporations simply don't have the resources to compete with obscenely wealthy organizations like Mozilla. Maybe they should try open sourcing their browser so the community can pitch in?
comment 9y ago · link · parent
The SCN receives input from specialized photosensitive ganglion cells in the retina via the retinohypothalamic tract. Neurons in the ventrolateral SCN (vlSCN) have the ability for light-induced gene expression. Melanopsin-containing ganglion cells in the retina have a direct connection to the ventrolateral SCN via the retinohypothalamic tract. When the retina receives light, the vlSCN relays this information throughout the SCN allowing entrainment, synchronization, of the person's or animal's daily rhythms to the 24-hour cycle in nature.
comment 9y ago · link · parent