HackerTrans
热门最新趋势评论往期问答秀出招聘

goo

no profile record

评论

goo
·6个月前·讨论
You may be right, but this article is entirely about the author's kids and has nothing to do with any administration.

Unless part of the poly-crisis is one twin changing the page of the book to one with fewer moons, and the administration is the parental policies of bedtime warnings and teeth brushing.
goo
·7个月前·讨论
it's really hard not to have at least one single point of failure. there's a case to be made that a single cloud account actually reduces the ways things can go wrong to just one point of failure, instead of a handful.

e.g. email on a custom domain. your domain registrar is now a spof AND your email provider for your domain is a spof. and that's just email.

There's obviously a middle ground and ways to have a strictly better personal data posture than before, but it's a multi faceted problem balancing usability, security, and resilience
goo
·7个月前·讨论
Micron leadership probably just heard about Roko's basilisk.
goo
·10个月前·讨论
Almost perfect. Inspirational.

It just needed to create a little box you can drag around when you click on nothing, like OS desktops have.

So here's the snippet to do that, toss this in the console and live the dream:

(() => { let startX, startY, box, dragging = false;

  const style = document.createElement('style');
  style.textContent = `
    .___selection-box {
      position: absolute;
      pointer-events: none;
      border: 1px dashed #2b76d6;
      background: rgba(43,118,214,0.12);
      z-index: 999999;
    }
  `;
  document.head.appendChild(style);

  function onDown(e) {
    if (e.button !== 0) return; // left click only
    startX = e.pageX;
    startY = e.pageY;
    dragging = true;

    box = document.createElement('div');
    box.className = '___selection-box';
    box.style.left = startX + 'px';
    box.style.top = startY + 'px';
    document.body.appendChild(box);

    e.preventDefault();
  }

  function onMove(e) {
    if (!dragging) return;
    const x = e.pageX, y = e.pageY;
    const left = Math.min(x, startX);
    const top = Math.min(y, startY);
    const width = Math.abs(x - startX);
    const height = Math.abs(y - startY);
    Object.assign(box.style, {
      left: left + 'px',
      top: top + 'px',
      width: width + 'px',
      height: height + 'px'
    });
  }

  function onUp(e) {
    if (!dragging) return;
    dragging = false;
    console.log('Selection rect:', box.getBoundingClientRect());
    box.remove();
    box = null;
  }

  window.addEventListener('mousedown', onDown);
  window.addEventListener('mousemove', onMove);
  window.addEventListener('mouseup', onUp);

  console.log(" Selection enabled. Drag with left mouse button. Check console for rect.");
})();
goo
·14年前·讨论
I'm fairly certain that unless the referer is the "new" page, it counts negatively toward the story's promotion.