HNHacker News
TopNewBestAskShowJobs

ianhorn

481 karma · joined May 28, 2020

submissionscomments
ianhorn··on Excel Never Dies
People are all talking about how it's useful for quick stuff with datasets, but it goes far beyond that. It's useful for quick anything you might want a small database for. Imagination is the limit.

For example, if any of you play D&D online, you might be familiar with dndbeyond's character sheets. They're a fantastic way to onboard new players who might not have the inclination to spend hours with the rule books before they even start playing. It does all the calculations for you and gives you some buttons like "roll athletics" and doesn't let you add more spells than your character can have with their stats.

I recently persuaded some friends to give FATE a try and built analogous push-button character sheets with google sheets [0]. It was quick and simple. With conditional formatting, you highlight bad states (rules say you can't have more of X than Y!). With the script editor, you can add full on buttons for dice rolls and other state changes with whatever logic you want (anything you can code up!). Checkboxes are obvious but super useful. And the transparency of the calculations is helpful for teaching people the system (this stat is "min(A4, B1+C5)").

Without google sheets, it would be a serious endeavor to build a stateful, database backed, live collaborative GUI that can be added to and customized on the fly by my users. With google sheets, it was a quick fun afternoon hack. Excel/google sheets is an amazing piece of technology.

[0] Screenshot of the "app": https://raw.githubusercontent.com/imh/public_images/main/Scr...

ianhorn··on Kill the Alarm Clock (2017)
Most ceiling fixtures have a couple bulbs. Get one with three, and a bedside table + lamp on each side of the bed. That’s at least five hue bulbs, which lights up a room very effectively. Not full sunlight, but enough.

I think you aren’t including in your calcs that you’re presumably not in a black room. A light colored paint means the light that isn’t going straight to your eyes from the bulb still brightens the room significantly.

ianhorn··on Kill the Alarm Clock (2017)
I have a Hue light on my bedside table that goes from 0 to max over 30min, plus three bulbs in the ceiling socket that do the same, but are staggered. Like bedside can be 6:55-7:25, with overhead 1 from 7-7:30, overhead 2 from 7:05-7:35, etc. So you have the four lights brightening together over the course of 45min or whatever longer period you want.

If it's gradual enough, you won't just bury your head, and if it's enough bulbs, it'll get bright enough to convince your body it's daytime.

There's another trick I've been meaning to do. The Hue app's wake up routine turns it on to a low temperature light, but turning it a little higher temp/bluer once I'm up does help trick me into daytime. I'm meaning to make a cron job on my raspberry pi to make my own wakeup routine that is a little slower to avoid the need to stagger lights, and also increase temperature once it's bright. If you know linux, the pi is easy.

Even without the fancy pi stuff, it's Good Enough. The Hue bulbs add up fast in cost, but it's worth it to me. I have the white ambiance ones.

ianhorn··on Kill the Alarm Clock (2017)
I bought some smart bulbs for the bedroom and use those as a gradual alarm clock. It works wonders. I only have a blasting audio alarm clock when I need to catch a flight these days and it’s much much more pleasant to slowly wake from the “sun” than to be jolted awake suddenly. I also make sure to wake up early enough that I don’t have to start getting ready immediately. It has made mornings much more pleasant.
ianhorn··on We're Building a Calendar for Work
A bunch of mock-ups of something that doesn’t exist doesn’t seem any worse than a description of the same.

The problem is that the startup and the consumers have totally different goals. Misleading marketing is always better for the company than consumers. And it really does seem misleading in this case, even implying internationally acclaimed design! There’s a lot of “Rise is” rather than “We hope Rise will be.” That’s why everyone’s getting confused.

ianhorn··on Python’s tug of war between beginner-friendly and advanced features
For the last bunch of years, wherever my instinct says to add white space, I instead put a comment. If you want something to be a visually separate entity, it’s the perfect place to put a couple words about that entity, and it still gets the visual separation in an editor with any syntax highlighting at all.
ianhorn··on Python’s tug of war between beginner-friendly and advanced features
A super common solution to the problem of too many ideas packed into a clever solution is just naming intermediate things. For example, naming the zip(...) is a little change that goes pretty far in making the second one more obvious:

    def maxWidthOfVerticalArea(self, points: List[List[int]]) -> int:
        xs = sorted(x for x, _ in points)
        neighboring_coordinates = zip(xs, xs[1:]))
        return max(right-left for left, right in neighboring_coordinates)
or even naming the width generator:

    def maxWidthOfVerticalArea(self, points: List[List[int]]) -> int:
        xs = sorted(x for x, _ in points)
        neighboring_coordinates = zip(xs, xs[1:]))
        widths = (right-left for left, right in neighboring_coordinates)
        return max(widths)
Same thing, just with more built in explanation. It's easy to go overboard, of course, but it's a useful go-to to make stuff more obvious.
ianhorn··on California law bans delivery apps from listing a restaurant without an agreement
Does delivery tend to be different from takeout in your experience? It does in mine. The gap between finishing prep and me eating it is much longer for delivery, except that the apps almost all lie about it. While your order is sitting there waiting for a driver for 10 minutes, they tell you, no way! It’s not our inability to get a driver there quickly! It’s the restaurant who is still wrapping up right now! If they even tell you that. Then they drop off a few other orders on the way. You end up with food you think came off the stove 13 minutes ago that actually came off like 40 minutes ago. And then you think it came out of the oven worse because the app puts all the blame and uncertainty on the restaurant.
ianhorn··on California law bans delivery apps from listing a restaurant without an agreement
That’s a good slogan but there needs to be delineation of who is and isn’t involved. It turns out to be the central question. If I buy a book from Amazon and want to sell it on eBay, who needs to opt in? I certainly shouldn’t need your permission as you’re not involved. Is the paper manufacturer involved in me selling the book on eBay? Is the author? The publisher? Amazon? Me taking something I buy on Amazon and selling it on eBay has a pretty direct analogy here (sell what I buy from local pizza co to my app users). Asking for opt in is just a different way to phrase it, unfortunately.

That said, I’m glad for this law. Maybe it’s not perfectly worded but it’s a net good. What the delivery companies were doing was such blatant exploitation of everyone involved and I’m glad to see it go.

ianhorn··on The Elements of Statistical Learning [pdf]
Physics upper level undergrads too. There’s a pretty fuzzy line between something appropriate for the end of undergrad versus the beginning of grad school.

If you have had vector calc, basic probability and stats, and linear algebra, the book is accessible. Especially if you had a numerical methods course somewhere along the way.

ianhorn··on Emotional headlines have an impact regardless of the credibility of the source
> Journalistic integrity isn't as strong of a concern simply because it's not the journalists who write headlines.

Shouldn’t it still concern them? If I wrote a piece about Obama making a hard choice to fund orphanages or schools and it got a headline “Obama yanks funding from orphans” then I’d be pissed. Journalistic integrity of headlines needs to at least be somebody’s concern.

ianhorn··on Self-driving vehicles against human drivers: Equal safety is far from enough
That’s only the case if it’s entirely statistical, while the whole point is that there are factors under your control. Hiring someone/something to drive your family around isn’t a reversion to the mean. You can make certain efforts (interviewing, not tolerating bad behavior, etc). It’s a third person version of the usual debate of ‘I’m a safe driver’ versus ‘I only had like three beers and that was two hours ago’ versus ‘robo car.’ If you bucket the first two together and throw your hands up in the air saying humans are humans oh well, you’re pretending you don’t have the agency you actually have.

In the third person version, I suppose there’s an implicit unstated option that while your particular chauffeur has evidence they are better than average, you have an option to hire someone more responsible. That aspect of agency is central here.

> if the statistics he cites are correct and also apply to chauffeurs

I meant compared to the general population. As in self driving versus general population stats.

ianhorn··on Emotional headlines have an impact regardless of the credibility of the source
It’s so widely acknowledged that headlines mislead, and also that people often only read the headline. Why does the editorial practice of shitty headlines persist so strongly? It seems like journalistic integrity goes so much further with article content than article headlines, so why do they put up with it?
ianhorn··on Self-driving vehicles against human drivers: Equal safety is far from enough
Why don’t we mandate that people submit themselves to a mandatory medical experimentation lottery? We’ll do so much better if we go through as many people as we do lab rats, and it’ll save unimaginable lives in the long run.

Utilitarianism via taking current lives to save future lives is the wrong perspective here.

ianhorn··on Self-driving vehicles against human drivers: Equal safety is far from enough
Let’s say you hire a chauffeur to drive your kids around. You find out they’ve been drinking on the job and speeding recklessly. When you confront them, they pull out stats that they’ve been actually less drunk than average. Do you fire them and find a new chauffeur?

When it’s a robot chauffeur, you have to evaluate it like you would a human one.

ianhorn··on Self-driving vehicles against human drivers: Equal safety is far from enough
I think I read that ninety something perfect of driving deaths or accidents are people being irresponsible in the manner you said, but can’t find a source again, so take it with a grain of salt.

I was able to find one that of the 37k driving deaths in 2016, 10-11k involved BAC over .08 and about the same involved speeding. Not knowing the overlap, 10-22k/30k is 27-59% of deaths involving drunk driving or speeding.

If it was on the high end of that, then to do better than speeding and/or drinking alone, you have to be at least 2.5x safer than human.

I wish there were better stats on the safety of the sort of driver you would let drive you around (e.g. you wouldn’t get in the car with your drunk friend behind the wheel).

ianhorn··on The Life in the Simpsons Is No Longer Attainable
tl;dr Cheaper credit and inflation. The monthly payments today are actually 40% lower on an inflation adjusted basis. Only the down payment is more expensive, by 30% after inflation.

I’m going to go with 1990 for a specific date. According to their source, house prices have gone up 2.6x since then.

In 1990 the prevailing mortgage interest rate was a little over 10%. Today its about 3%. For a house that costs the exact same amount, the payments today are 2.1x less. Conversely, the same payments today let you afford a house that costs 2.1x more.

Additionally, as far as I can tell, that figure isn’t adjusted for inflation, which is 1.99x since 1990.

Combining inflation and more affordable payments, an equally affordable house would today cost 4.2x what it did in 1990. Seeing “only” a 2.6x increase, the inflation adjusted monthly mortgage payments are almost 40% lower today. For the down payment, however, the easy credit doesn’t help you, only the inflation, so a median inflation adjusted down payment is still 30% more expensive today.

That’s my best guess for macro explanation. Cheaper credit and inflation.

ianhorn··on California Public Utilities Commission fired director who exposed missing $200M
I firmly believe that better voting systems are the highest ROI changes we can make to government. Unfortunately the people the current system over-favors are the ones who need to do it. It’s a microcosm of the whole problem of politics :(
ianhorn··on Artificial Intelligence – The Revolution Hasn’t Happened Yet (2018)
BPE as used in NLP might count as a successful hybrid approach. Maybe the hybrid approaches that work out will be really specific purpose like that for a while.
ianhorn··on Causality Is Graphically Simple
This is super interesting. Tons of people agree that machine learning needs a better grasp of causality. Something underdiscussed is that our data doesn’t generally include the information needed to automate causal inference and discovery in the large.

It’s the reason your A/B testing framework tracks which variables were the randomization units. Most tables don’t have that kind of provenance in a machine readable structured format. After all, a DAG connecting any rows in any tables at your company is a hell of a prospect.

It’s nice to read about causality tracking systems like in the article.

ianhorn··on Stanford apologizes after vaccine allocation leaves out medical residents
“Money laundering” is taking criminal money (maybe marked currency or something) and trading them out for “clean” currency that can’t be tracked.

Imagine a dataset about healthcare outcomes. You want to know whether airlifting a patient is good or bad, so you train a machine learning model to predict mortality given airlifting a patient versus not airlifting them. Turns out a lot more of the airlifted patients died, and the model picks up on that, deciding that airlifting is dangerous.

Obviously, we’re airlifting the patients who are in the most dire circumstances, and that’s why they die more, but maybe the model doesn’t have the context/circumstance variables to see that, or maybe it’s just regularized and thinks those context variables are noise. So the bias of “airlift = bad” gets stuck in the model, but then people defend it as mathematically precise so it can’t be biased like a person can. They say that the model just reflects reality, pretending the model or data is wrong is blindly rejecting reality for the sake of political correctness.

It’s worse with really human stuff like recidivism because the context variables that might be useful (like the patient’s dire circumstances) tend to be very human and complex and they’re unlikely to be captured in a simple form. Even if they were, interpreting them might require human level AI. By analogy, it is frequently impossible (or just too hard to be worth it) for current technology’s ML to tell from the data we feed it that the patients being airlifted were most near death to begin with.

So you end up with an algorithm biased against airlifting patients getting defended as mathematically bulletproof.

ianhorn··on Hands-Free Coding: How I develop software using dictation and eye-tracking
Any chance you have pointers on how to set that up? You'd probably laugh/cry to see my setup right now, with my Windows desktop on the left monitors and my MacBook on the right monitors because I need both... purely because Dragon is only sold on Windows since this started been an issue for me. A more tightly coupled super-aenea sounds pretty fantastic.
ianhorn··on Hands-Free Coding: How I develop software using dictation and eye-tracking
Yeah there is the Kaldi backend for caster, which I've tried on my Mac machine, since Dragon isn't a thing on Mac. Unfortunately it's not nearly as good :-(

I'd like to try to record my usage of Dragon that I could fine-tune my own model, but it's harder to get around to hobby coding projects like that now that coding is more of a pain in the ass.

The unfortunate reality in my case is that using Dragon is the least frustrating way to keep working. I don't think closed paid ASR models will stop being noticeably better better than three open ones until the state-of-the-art error rate is basically zero.

I do like that caster is open source where talon isn't, but preferences like that are pretty low priority when say your career is on the line.

ianhorn··on Hands-Free Coding: How I develop software using dictation and eye-tracking
> or Mac alongside Dragon

Unfortunately it looks like Dragon on Mac isn't a thing anymore, which is a shame because my main dev machine is a Mac. Or at least it used to be, before I needed to start dictating everything.

ianhorn··on Hands-Free Coding: How I develop software using dictation and eye-tracking
I’ve been having similar issues lately, and after looking at talon, serenade, and caster, I ended up using caster [0]. The different programs all have significant differences in usability, and have clever ideas behind them, but unfortunately automatic speech recognition is still bad enough that the primary factor is which has a better ASR engine. Caster supports Dragon Naturally Speaking, which is expensive, but enough better to make it worthwhile.

There are moments where I think this is going to be the future of programming, since code as text is only the easiest for as long as typing is the easiest way to record things unambiguously.

But for the most part it’s still pretty frustrating. If ASR systems can get the sentence error rate down by an order of magnitude or two, I sincerely think this will take off not just for accessibility, but for normal use.

Until then, it’s a PITA that is saving my career nonetheless.

[0] https://caster.readthedocs.io/en/latest/

ianhorn··on Baumol Effect
A side effect of this is that if your individual productivity goes up, your real wage might go up, but if your whole industry’s productivity goes up, it’ll be mitigated by this effect.

Kinda like how everything in SF is so expensive, so the real wage is diminished by the increasing cost of living.

ianhorn··on Excel warriors who save governments and companies from spreadsheet errors
It’s an extreme end of the spectrum where static, restrictive, but harder to screw up is one end, and weak, dynamic, permissive, but easy to screw up is on the other.

For what it’s good for, it’s great. I love it because you can do many things faster with it than anything else, and the immediate feedback and visual data flow aren’t matched in any language’s IDE I’ve seen. But like all systems, when they grow they need checks. Like the trope about when your code grows to too much complexity, you start needing static types.

ianhorn··on OpenAI is giving Microsoft exclusive access to its GPT-3 language model
> If you want to understand “how GPT-3 works”, you can just study GPT-2. Nothing is different architecturally between them.

This isn't true. At the very least, off the top of my head, GPT-2 didn’t have the sparse layers that GPT-3 has.

ianhorn··on What are Differential Equations and how do they work?
One of the last classes I ever took was nonlinear dynamical systems. It should have been one of the first after basic calc/vector calc!

The typical progression is to start with systems you can solve by hand and then move to ones you can’t usually solve, but can still usefully describe, teaching how to analyze them.

It should be the other way around! Start with generally useful tools that apply broadly and then teach the special cases you happen to be able to solve analytically. General tools like basins of attraction and nondimensionalization, should be considered more rudimentary than perfect closed form solutions.

ianhorn··on Witeboard
Oh wow, ziteboard has a feature I’ve been looking for for ages: vector graphics rather that pixel graphics. You can zoom in indefinitely, making nested notes and annotations possible!
← PreviousPage 2 of 5Next →