Yes, absolutely. I see it all the time in the Ruby ecosystem and have used it myself in Ruby. Many times it gets called by a different name. I've seen it in Python and Elixir too.
1,516 karma · joined October 10, 2009
Or in BNF if you prefer:
email ::= <full-name> "@" <domain>
full-name ::= <first-name> "." <last-name>
first-name ::= "david"
last-name ::= "cuddeback"
domain ::= "gmail.com"Yes, absolutely. I see it all the time in the Ruby ecosystem and have used it myself in Ruby. Many times it gets called by a different name. I've seen it in Python and Elixir too.
Bigger asteroids are easier to see.
R-trees are more generic in that they can store intervals, shapes, volumes, etc, but (start time, duration) tuples are point-like, and that opens more possibilities. The ordered map is going to give you good memory locality. It might be that you'll only beat that when searching for larger durations (that require you to iterate over more of your ordered map). There will probably be an inflection point somewhere, depending on the distribution of your data and queries.
Hope that helps!
Check out priority search trees. They search two dimensions, one of them being half-open (that would be your minimum duration requirement). Depends if the other half of your queries fits the closed dimension of a priority tree or if you can adapt it to fit your needs.
An RTree is the first structure that comes to mind, but the way you describe the problem, it sounds like the intervals never overlap, so I have my doubts. Sounds like you might be looking to optimize the query "what is the first interval of at least N days?" Maybe look at priority trees. They're good at queries that are bounded in one dimension and half-open in the other.
Edit: Nevermind. Answered down thread. Lucky you. Beautiful area and Jory's work is phenomenal.
> Did occult mean what it does now when they started?
A word can have more than one meaning. The first definition on merriam-webster.com covers the definition used in astronomy:
occult (v.): to shut off from view or exposure: cover, eclipse [2]
The adjective form might be a source of derivation for the meaning you're alluding to:
occult (adj.): (1) not revealed: secret; (2) not easily apprehended or understood: abstruse, mysterious; (3) hidden from view: concealed [2]
And finally, the paranormal meaning that people are more familiar with today:
occult (n): matters regarded as involving the action or influence of supernatural or supernormal powers or some secret knowledge of them -> used with the [2]
Again, I don't know the history of these words. If I had to hazard a guess, I'd bet that the noun form, "the occult", is derived from the adjective form since "the occult" refers to supernatural phenomena, which is naturally hidden from view, concealed, not revealed, secret, not easily apprehended or understood, etc (because it's not real).
Edit: Another guess. If you think about the history of astronomy, it was originally intertwined with religion and astrology. Perhaps these words date back to a time when "the occult" and astronomy weren't entirely separate. Anyways, I agree. Language is strange.
Also, btw, you might want to read the article you linked. The article is discussing a fringe idea that some scientists have. Scientists are free to explore new ideas, and they make for good click bait for science journalists. Until those ideas gain traction, they don't provide for compelling arguments, though.
https://www.colorado.edu/today/2022/01/25/what-marshall-fire...
Yes, absolutely! :)
Some day, I look forward to building a guitar and a telescope, either of which have the potential to take that title away from my dining table, but that will be several years down the road for me.
Isn't that exactly what they're representing by a country's overshoot day? FTA:
> A country’s overshoot day is the date on which Earth Overshoot Day would fall if all of humanity consumed like the people in that country.
It was posted to announce@openbsd.org a few hours ago. Binary patches are available through syspatch and source patches on the errata page.
From the link in your comment: "The average rate of cosmic-ray soft errors is inversely proportional to sunspot activity. That is, the average number of cosmic-ray soft errors decreases during the active portion of the sunspot cycle and increases during the quiet portion."
Why? That's actually true.
I've been to many truly dark sky sites. I get out to one at least once a year on average. I've photographed the Milky Way, galaxies, nebulae, you name it. Under dark skies, the milky way is an amazing site. But don't be mistaken: it's still gray in appearance to the naked eye.
Let's look at this in a few different ways:
1) The pupil of the human eye opens to about 7mm (if you're young) under truly dark skies. That is the limiting aperture that determines how many photons strike the retina. The human visual system is optimized to detect motion. The integration time for the image you see in your brain is maybe 1/30th of a second. When I photograph the Milky Way, I use a 14mm f/1.8 lens (that's a 14mm/1.8=7.8mm aperture) with about a 30 second exposure. Those two factors alone put the camera at a (7.8/7)^2 * 30/(1/30) = 1111x higher exposure level. The camera also has ISO levels for further gain.
2) The human eye has two types of receptors: cones and rods. Cones are used for color vision. Rods are used for low light vision. It takes more photons to stimulate a cone than it does a rod. So when you're looking at faint objects, you might not be able to discern their color. The reason people like me seek out dark skies is because the objects we're trying to see are at the limits of detectability and we'll take whatever advantage we can get. Even when viewing through my 4-inch telescope, most objects appear gray. And that's with a (106/7)^2 = 229x light gathering advantage over the naked eye.
3) Have you ever thought about why it's called the Milky Way? It comes from the name given to it by the ancient Greeks. It appeared to them as a streak of milk in the sky (and they didn't have modern light pollution issues). What color is milk?
I assume you're referring to Oracle here, but Oracle didn't invent Java either. Java came out of Sun Microsystems, whose color scheme seems to shift between blue and purple, so "big violet?" Just doesn't have the same ring to it.
FWIW, you can have the same thing with GFCIs. I recently wired my garage for woodworking and installed all GFCI breakers in the breaker box, so a GFCI trip is just like a regular breaker trip (not that either of those has happened with the new circuits). The GFCI breakers cost about $50/ea [1] and protect the whole circuit.
> GFCI, you gotta figure out which one popped. If the wiring's not great, it may well be in a totally different room from the outlet that stopped working.
I once couldn't operate my garage door for a few days. There were no tripped breakers in the box. Eventually, it dawned on me that the circuit was labeled "GFCI" so maybe I should go check the GFCIs in the house, and I found that the GFCI in the upstairs bathroom had tripped. The upstairs GFCI is nowhere near the garage (and in the opposite direction from the breaker box). Since then, I've talked to several people in the area whose houses are wired the same way. I guess GFCIs must have been really expensive in the 80s, when these houses were built.
The moral of this story is that GFCI breakers can save a lot of headache. (Plus, those GFCI outlets are kinda ugly IMO).
[1]: I see they're about $60/ea now: https://www.homedepot.com/p/Square-D-Homeline-20-Amp-Single-...
Principal engineer at a billion-dollar e-commerce company. Now a stay-at-home dad. I'm available to take on part-time contract and consulting work while my kids are at school.
I've done full-stack web development, but I'm most comfortable on the backend, building APIs, services, message buses, database systems and the like. My use of PostgreSQL, for example, goes beyond using B-tree indexes for everything. I'm well-suited for data-intensive projects.
I've picked up a ton of technologies in the past 20 years. Most relevant today are Ruby (Rails), Elixir (Phoenix), PostgreSQL, Kafka, C, Rust, Python, ZFS, FreeBSD, and Linux.
I can't do full-time right now, but I could be a good resource for a company looking for some help from a principal level engineer without filling a full-time position. Please email me (in profile) if you're interested. Thank you.
Location: Boulder, Colorado, United States
Remote: Yes
Willing to relocate: No
Technologies: I've picked up a ton in the past 20 years. Most relevant today are Ruby (Rails), Elixir (Phoenix), PostgreSQL, Kafka, C, Rust, Python, ZFS, FreeBSD, Linux.
Resume/CV: Available on request
Email: david (dot) cuddeback (at) gmail (dot) com
Principal engineer at a billion-dollar e-commerce company. Now a stay-at-home dad. I'm available to take on part-time contract and consulting work while my kids are at school.I've done full-stack web development, but I'm most comfortable on the backend, building APIs, services, message buses, database systems and the like. My use of PostgreSQL, for example, goes beyond using B-tree indexes for everything. I'm well-suited for data-intensive projects.
I can't do full-time right now, but I could be a good resource for a company looking for some help from a principal level engineer without filling a full-time position. Please email me if you're interested. Thank you.
Yes. They'll prepare you to switch over to FreeBSD. ;P
In all seriousness, the ZFS books would be helpful if you use ZFS on Linux. The FreeBSD-specific books probably not so much. Those are the only ones I've read.
To be honest, this may have already happened, but it would take a generation to see the effects. There was a major breakthrough on this a few years ago. I first heard about it on an episode of Science Vs [1]. That was merely weeks after my second child was born. It was interesting to see the advice from the pediatrician a few months later. The American Association of Pediatrics updated their advice accordingly [2], and my kids' pediatrician handed out informational fliers calling out "this has changed," etc. Hopefully other pediatricians are also updating their advice and doing a good job of educating families.
Check out the Science Vs episode [1] if you want details. The gist of it is that in a controlled study, they found that introducing allergens early reduced the prevalence of allergies by 86% compared to avoiding allergens. This means old advice (what I was told with my first-born) about avoiding allergens could actually increase the risk. The Science Vs episode goes into details about what led researchers to look into this and possible explanations about the mechanism involved.
[1]: https://gimletmedia.com/shows/science-vs/2ohd7e
[2]: https://publications.aap.org/aapnews/news/12250/New-guidelin...