Hacker Newsnew | past | comments | ask | show | jobs | submit | more keville's commentslogin

Safari has done this for a long time when you have multiple tabs with similar titles open.

I think the intent is to increase the unique text within the tab titles when you are reading sites that have titles like "My Blog - Tuesday's Article" and "My Blog - Wednesday's Article"; otherwise these would both shorten to "My Blog - ..." as tab count increases, or as other tab width constraints come in to play.

Granted, the heuristic for identifying common text between tabs isn't always great and can sometimes just result in titles looking cut-off.


That is indeed the list of colors from which the Level 3 CSS colors were adapted.


Don't forget about downright heartwarming entries like rebeccapurple: https://meyerweb.com/eric/thoughts/2014/06/19/rebeccapurple/


The Federal Reserve has a board of seven governors, and twelve regional banks (one in Atlanta). Along with that board, the president of the New York regional bank, and four others on a rotating basis, form the body that votes to set policy.


I don't think the "gearbox" mentioned in the article is the kind of internal gearing you're referring to here.

It appears this e-bike only has a single-speed chain drive, and only a throttle for adjusting motor speed.


This ought to make for inexpensive home automation sensors that do much better occupancy detection for rooms than pIR sensors, which stall out if you're sitting and don't move enough to trigger "motion" but still want lights on in the room.


There are ‘dual-tech’ occ sensors that use IR and ultrasonic sensors to avoid the issue that you mentioned.


That would be quite useful for a home office. I now only have hallways / bathrooms set for automatic light because you're always moving there.

Do you have a link?


Wheel of Fortune is just as much about your luck on the wheel as your skill with the phrases, so practice doesn't guarantee victory. WoF's final puzzle awards contestants the "RSTLNE" letters now because nearly _everybody_ came in to the final prepared, knowing the most commonly-occurring English letters.


You are right. I know there's no way to guarantee victory. But there's still a lot of basic errors, if you pay attention carefully to the contestants (rather than the more-fun trying to solve the puzzle before them). My favorite is actually when you get towards the end and they are calling out letters that couldn't possibly make any words with the 2-5 blanks left over, for instance. Saying a vowel after a spin also happens much more often than it should.

I don't watch WoF a lot but you can also tell they're playing games with the most common letters after RSTLNE too... simply picking the next three consonants and the next vowel is a great way to lose.

And, I mean, yes, very stressful. But you might also be a bit less stressed if you prepared a bit more. Not relaxed, of course, but less stressed.


It is not necessary to create any extraneous data structures to do OP's one-liner. This creates n+1 new arrays that must be garbage-collected.


Object.fromEntries takes iterable, so if you have a map from a handy iterator library you could get rid of the parent array returned from `bar.map`.

    import { map } from "my-iter-lib";
    
    Object.fromEntries(map((v) => [v.id, v], bar));
Or with the proposed iterator-helpers:

    Object.fromEntries(
      Iterator.from(bar).map((v) => [v.id, v]),
    )
However the inner arrays are harder to get rid of... In fact even OP’s oneliner defines the inner arrays. I would hope there were some engine optimizations though which could minimize their footprint.


Please see my other comment in this thread for the `reduce`-based solution that requires no extra data structures. They're not that hard to get rid of!


const foo = bar.reduce((hash, item) => { hash[item.id] = item; return hash; }, {});


https://missionlocal.org/2021/03/newsoms-experiment-to-get-r...

Linked in the article, too. While it's not the only source of the problem, it's still a big reason people get tired of looking around for a can in SF and just toss their litter.


Same point with public toilets. People will eliminate their waste; it's up to the community to decide where they will put it.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: