HN user

algas

88 karma
Posts0
Comments52
View on HN
No posts found.

The same thing happened to me. Escalating levels of non-response from my system, starting with the browser slowing down and culminating in Process Control stopping. I think it may have to do with uBlock Origin, which is default in Brave: on desktop (Edge with uBlock), it quickly spawns hundreds and hundreds of blocked POST calls to litix.io, an analytics website. These seem to be coming from the video player, which is constantly trying to beacon information back home. The site hovers around 10% of CPU on my desktop and I have to keep reloading it to poke around the devtools.

I would suggest making the analytics less aggressive and adding some kind of error catching so that it doesn't attempt to send data hundreds and hundreds of times.

Yup, here's the problem [0]:

  def calculate_backlinks(
      pages: Dict[str, Page], attachments: Dict[str, Attachment]
  ) -> None:
      for page in pages.values():
          for link in page.links:
              linked_page = find(pages, attachments, link)
              if not linked_page:
                  info(f"unable to find link", link, page.title)
                  continue
             
  linked_page.backlinks.append(page)

No deduplication performed. Since he's parsing the backlinks directly out of the markdown, you don't have to worry about a recursive loop where the backlinks section on one page appears as links in another. A simple solution would be to change the datatype of backlinks from list to set.

[0] From OP's static site generator: https://github.com/llimllib/obsidian_notes/blob/main/run.py

I think that the UX could work really well for mobile with one significant tweak.

A typical design pattern on mobile is that if information is obscured for some reason, you click on it to expand it. Consider a drop-down text box on a blog: there's a little arrow and cut-off text with an ellipsis (...). When you click on the arrow, the cut-off text expands to fill the screen and allows you to read the rest of it. In contrast to what other users have said, this doesn't need to be idempotent. Tapping again hides the box.

To apply this design pattern to your site, simply make it so that tapping anywhere on a bar brings the UI to a known state, eg with the bar in the center with the text at a readable scale. This would work either horizontally or vertically.

Benefits:

- Your idea of the UI rescaling is preserved, and you can preserve the animations between states. I think the "rescaling bars" idea is fun.

- Cause and effect is preserved. If I want to read the text on the bar, I should not have to click on some arbitrary point above the current location of the bar.

- Further, the user does not have to hunt for the correct spot to click on a bar to make the text visible. Instead, clicking on a bar immediately and always makes all the information on that bar fully visible, by design.

I think this tweak would significantly improve the experience of interacting with the website.

Pandoc 2 years ago

It also pulls in about a hundred separate Haskell libraries along with it. Not really complaining, but it's funny that pandoc accounts for about half the programs on my laptop.

Let's run the numbers!

The speed of sound in an ideal (calorically perfect) gas is given by

  a = sqrt( gamma * R * T )
where gamma is the ratio of specific heats (thermodynamic property of a gas, which may vary with temperature), R is the individual gas constant, and T the temperature of the fluid. All of these are going to be different on Mars versus on Earth:
  Earth:
  R = R_atm = 287 J / (kg * K)
  gamma = 1.44
  T = 293 K (taking room temperature as an average temperature)

  Mars:
  R = R_CO2 = 188 J / (kg * K)
  gamma = 1.37
  T = 210 K (from a quick google, about -60 deg C)
If the Martian and Earth atmospheres were at the same temperature, then the speed of sound on Mars would be 80% that of the speed of sound on Earth. Given the temperature difference, the speeds of sound are
  a_mars = 232 m/s
  a_earth = 347 m/s
So yes, much of the difference is due to the composition: the Martian atmosphere has a higher atomic weight, which leads to a lower individual gas constant, and decreases the speed of sound. However, a substantial amount of the difference is simply due to the different temperatures on the surfaces of the two planets.

The classic is How To Win Friends and Influence People by Dale Carnegie -- highly recommended. If you're young and looking for something more helpful in romance, watch Before Sunrise.

Interesting article! Given that subtraction isn't closed on the natural numbers, I wonder if it would be possible to implement subtraction as operations on a new type (Integer, Z):

     Z = N x N (Cartesian product or sum type)
     for p, q in Z: p=q if p.first + q.second = q.first + p.second
     p + q := (p.first + q.first, p.second + q.second)
     p - q := (p.first + q.second, p.second + q.first)
Rational numbers can similarly be defined by new operations and equivalence relations on the product set Z x Z. I don't know enough Rust to say whether it's feasible to implement this in the type system, but I'd be curious to hear from someone more experienced!

That first result re: tires is simply wrong. Wider tires don't have a larger contact patch; the size of the contact patch is determined by the weight of the car and the air pressure in the tires:

    A = W / P
So the reason wider tires improve handling is more complex and subtle. Also, FTA:
    Assuming a baseline of a moderately wide tire for the wheel size.
      - Scaling both of these to make both wider than the OEM tire (but still running a setup that fits in the car without serious modifications) generally gives better dry braking and better lap times.
      - In wet conditions, wider setups often have better braking distances (though this depends a lot on the specific setup) and better lap times, but also aquaplane at lower speeds.
      - Just increasing the wheel width and using the same tire generally gives you better lap times, within reason.
      - Just increasing the tire width and leaving wheel width fixed generally results in worse lap times.
A full accounting of the effects of changing tire width should explain all of these effects.
My Left Kidney 3 years ago

I agree, and would extend your point even further. Drafting people into the army against their will is a grave harm, for obvious reasons. But the existence of a "volunteer" army that nevertheless gets paid for their participation represents no less financial coercion. People on a financial precipice, given the option to join the army, might take it -- and thus increase their risk of being shot or blown up abroad. Removing those payments removes that coercion.

I was originally going to post this as a facile gotcha, until I thought about it slightly harder and realized that effectively disbanding the military would actually be a pretty good idea, all considered. However, I would still argue that we should accept monetary rewards for altruistic yet dangerous acts, like fighting fires and rescuing cats from trees (and donating kidneys).

The Cloud Computer 3 years ago

I agree, it seems the same to me. They have the allure of "we do it different" along with the promise of "we do it well".

Unrelated, but a "costumer" makes costumes. I think you were looking for "customer".

Yeah, the lights in the back of your car can warn of exactly four things:

- The car is going to turn left (one blinking yellow light) - The car is going to turn right (one blinking yellow light) - The car is stopping (three solid red lights) - An unspecified error occurred (two blinking yellow lights).

It's not exactly a high - bandwidth form of communication. Most of the purpose of the lights behind your car is to remind other human drivers of your continued existence. As you point out, some of this deficiency can be made up by not looking at them.

Imagine a world where you could automatically talk over an intercom with the driver in front of you about traffic conditions. I bet you'd find safer, better-informed driving. Self-driving cars make that theoretically easy and humanly pleasant.

I was hoping someone would mention the variational properties of splines, so I'm glad to see you bring up their energy minimization. In Strang's Intro to Applied Mathematics, he briefly mentions (at the end of the section on splines) that a spline interpolation can be found by minimum principles, since it's essentially passing a beam in bending through the control points. I was curious if anyone has used that practically, eg writing a finite element spline solver?

The "paradox" is really a contradiction of the axiom of unrestricted comprehension:

    To every condition there corresponds a set of things meeting the condition. 
Unrestricted comprehension allows you to build sets out of whole cloth, and seems reasonable. Of course everything divisible by two is a set, of course every prime number is a set. It's tempting to say that the set is simply defined by a single condition, and if some item fulfills that condition, it gets to be in the set.

Your example would not violate the axiom of unrestricted comprehension. No primes are divisible by 4, so the set of all primes divisible by 4 is the empty set. Russell's paradox does. He chose a condition that depends on the result of creating a set using that condition. "The set of all sets that do not contain themselves" can't contain itself, but it can't not contain itself either -- since either case would imply the opposite must be true.

The result is that unrestricted comprehension gets pared back. Instead of building a set from a condition, all sets must be built from a condition and a pre-existing set. A single infinite set corresponding to the natural numbers is given as an axiom, and all further sets (integers, real numbers, topological spaces, fields, and so on) are built from there.

Noise pollution and collisions are a much, much larger problem with cars, since they're constrained to two dimensions while drones can use three. Plus, cars tend to kill people when they collide with each other (or with pedestrians), and drones would not. Hopefully they will all use engineered quiet propellers (such as Zipline uses) and electric engines (similarly).

Chili Oil Notes 3 years ago

Wa! is my absolute favorite chili oil. I put it in and on everything. A simple bowl of rice, with some Wa! (and perhaps an egg), becomes an entire meal.

MechE here. The way strain gauges work is with a long conductive trace that loops back on itself like a snake, or a radiator. This creates a conductive line that passes back and forth many times along the direction you want to measure strain in.

When the surface that the gauge is attached to flexes, the PCB itself actually stretches and shrinks by a very small amount, on the order of a thousandth of a percent. This causes the long conductive trace to get slightly longer, which measurably increases its resistance.

I waited in the airport for 6 hours before learning that my flight was cancelled, and had to rebook... I was flying to New York to see my family, so I didn't really have any alternate transportation options!

Yeah. Cookies qua cookies are at best something obvious and measurable, but don't necessarily correlate with the company doing anything nefarious with your information. What's worse, it has always been the client's choice to keep cookies. You can, e.g., browse in a private tab on Chrome and they'll get automatically deleted.

The fact that cookies are A) only loosely correlated with undesired behavior and B) already optional makes it absurd that every site I visit should waste 10 seconds of my time with a banner asking me to consent to their use of cookies. Especially because the only way for them to remember that preference is... to give you a cookie!

Fortunately Brave has an option to automatically skip those banners, which works on most sites.

New York's last mayor DeBlasio was an avid cyclist and expanded bike lanes across the city. Made it actually a rather nice place to bike (imo).

They aren't designed to be possible to sweep, so they're frequently too dirty to ride in

This seems like exactly the problem that would be solved by a bike-pulled sweeper. Could you elaborate on why that wouldn't work?

Animated Knots 3 years ago

I love this resource. So many useful knots. Particularly I like the lanyard / friendship knot [1] and the midshipman's hitch (adjustable slip hitch) [2], the latter of which is probably about 90% of the knots that I tie. Honorable mention to the constrictor knot for attaching to large cylinders [3].

[1] https://www.animatedknots.com/lanyard-knot

[2] https://www.animatedknots.com/midshipmans-hitch-knot

[3] https://www.animatedknots.com/constrictor-knot-twisting-meth...

Absurd Success 3 years ago

Google still kills for useful applications. I use marginalia when I have either A) something deeply obscure I want to research or B) when I just want to read some entertaining long-form text posts about something in a category that interests me.