Better HN
topnewbestaskshowjobs
Log inSign up

benburwell

352 karma · joined Jan 8, 2015 (11y ago) · 62 submissions

https://www.benburwell.com
Submissions

comment 1y ago · link · parent

Some examples of flights without schedules:

- A private pilot who departs their local airport without filing a flight plan and flies around for a while.

- A charter jet that departs whenever the passengers show up.

- A medevac helicopter departs a hospital to return to its base. While en route, it is rerouted by dispatch to pick up a patient at a different hospital.

comment 1y ago · link · parent

This is still very much the case. Although most new code is written in other languages, Tcl still has a substantial presence.

comment 3y ago · link · parent

In general, this is actually done: there are defect detectors that are installed along tracks that monitor for several conditions as trains pass over/through them. Once the train has passed, a voice radio message is sent to the train crew.

Here's an example of one working: https://www.youtube.com/watch?v=R7BGg82uQ1U

I'm not sure whether similar equipment was a factor in the East Palestine incident.

comment 3y ago · link · parent

I wrote about how I decrypt TLS streams in Wireshark for debugging purposes here: https://www.benburwell.com/posts/intercepting-golang-tls-wit...

It won't apply to every situation, but might provide some building blocks you can adapt to your environment.

comment 4y ago · link · parent

The article mentions a takedown notice they received from GitHub instructing them on how to remove certain content from their repo. I'm guessing maybe this PR contains some of that content they were asked to remove, and there's a bug in GitHub when rendering a pull request page that references deleted content?

comment 4y ago · link · parent

How useful is this in practice though?

I'd guess that far greater than 99% of the people using (most) products do not have perfectly color calibrated monitors. If it doesn't look good on the developer's "kinda close" monitors, that seems like a decent indication that the design needs to be updated to allow for "rougher tolerances" so to speak.

comment 4y ago · link · parent

I really want to like GitHub Actions. But it feels like every time I'm trying to get something done, they are broken.

comment 4y ago · link · parent

I also made something similar for Boston: https://mbta.benburwell.com

Mine doesn't show the routes. Originally it did, but it was too visually busy. I like the way you did it where the route shows up when you select a vehicle!

comment 4y ago · link · parent

Your "state of the art" Go code is not really a good example of how that functionality would be written.

If you want to check for a specific error condition, then just define a value for that error and use `errors.Is` to check for it. This works as you'd expect with wrapping: https://go.dev/play/p/rJIlKKSYn9Q

> With the current go error handling, you need to add the informations yourself in the string, not as a real data structure.

This is completely false! If you want to provide a structured error, then you just need to define a type for it. In your example, a Go programmer might use errors.Is(err, fs.ErrNotExist) and errors.As if they wanted to retrieve the specific file path that does not exist in a strongly-typed way, something like https://go.dev/play/p/hdHPLAVbQuW.

> Delegating error handling to a try/catch block with a typed data structure allows the caller to care for certain type of errors and delegate the others to its own caller. With the current error type in Go, what would you do? parse the error message?

Certainly not! I think there is a misconception that "an error is a string" -- in Go, an error is actually any type that satisfies the error interface, i.e. has an `Error() string` method. It can be any type at all, and have as many other methods as you like in order to provide the functionality you need.

> what if the function is defined in a dependency you have no control over?

There's nothing stopping you from writing `throw new Exception(String.format("file not found: %s", filename))` in languages with exceptions either. In both cases, it would be recognized as poor API design.

Regarding stack traces, Go makes a strong distinction between errors (generally a deviation from the happy path) and panics (a true programming error, e.g. nil pointer dereference, where the program must exit). Errors do not provide stack traces since there is no need for them in a flow control context, panics do provide stack traces for useful debugging information.

comment 5y ago · link · parent

Cool! I was expecting to see this implemented with the go/ast package, but I guess gofmt makes this easy enough to parse out by just matching lines.

comment 5y ago · link · parent

Thanks! Hmm, that is odd. I'm currently seeing a few RL trains, but not as many as I'd expect... perhaps I've got a bug in processing the data somewhere.

Edit: Actually, it's probably due to the derailment: https://www.reddit.com/r/boston/comments/px7zii/heads_up_t_i...

comment 5y ago · link · parent

Hi HN! I wanted a way to visualize the MBTA system as a whole, so I hacked this together over the weekend.

It shows the current position of each bus, train, and subway, including a little tail behind each vehicle to show where it's been.

There are plenty of rider-focused experiences built around this data but I'm more interested in the visual aspect of being able to look at the whole thing at once. It's probably not a very practical tool for riders!

13.

Show HN: Live MBTA Map (Boston T)(mbta.benburwell.com ↗)

5 points · by benburwell · 5y ago · 3 comments

comment 5y ago · link · parent

Wouldn't clients then only become aware that they need to replace their certs after they've been revoked?

I think the desire here would be for a mechanism to alert clients to obtain a new certificate before their current certificate is revoked and becomes invalid.

edit: formatting

15.

Debugging HTTP Services with Mitmproxy(benburwell.com ↗)

2 points · by benburwell · 5y ago · discuss

16.

Law firms seek $93M in fees in Apple class action suit [pdf](angeion-public.s3.amazonaws.com ↗)

2 points · by benburwell · 6y ago · discuss

17.

Learning About Syscall Filtering with Seccomp(benburwell.com ↗)

2 points · by benburwell · 6y ago · discuss

comment 6y ago · link · parent

As a Go programmer, it doesn't really seem that notable or surprising to me that Go isn't considered the best language to use for implementing an operating system.

19.

Show HN: A CLI for Aviation Weather (METARs)(git.sr.ht ↗)

1 points · by benburwell · 6y ago · discuss

comment 6y ago · link · parent

Of course it is their responsibility to take it back.

Suppose I order a watering can from the garden supply store. When I get home from work, I discover that instead of a watering can, they've delivered 2 tons of mulch in a giant pile in my driveway.

I'm not sure how you could make the argument that it's now my responsibility to get rid of the mulch that I didn't want or ask for?

comment 6y ago · link · parent

This is how it works in most areas. Mobile calls to 911 will go to the PSAP for a relatively large region, who will triage the call and if your address is in an area served by a more local PSAP, they will add a calltaker from the local PSAP to the line and transfer the call to them.

It's probably best to just stick with 911. That's what calltakers are used to, and trying to route around 911 means you won't get the advantages built into that system (like priority handling, mapping, etc).

22.

Show HN: How to Choose a Password(howtochooseapassword.com ↗)

1 points · by benburwell · 7y ago · discuss

23.

Part of Ham Radio AMPRnet IPv4 Space Sold to Amazon(ampr.org ↗)

10 points · by benburwell · 7y ago · 7 comments

24.

Why do you host offensive content?(nearlyfreespeech.net ↗)

113 points · by benburwell · 7y ago · 158 comments

25.

NIST proposes shutdown of WWV and WWVH time and frequency stations in FY19(nist.gov ↗)

5 points · by benburwell · 8y ago · 1 comment

26.

Supreme Court Ruling on Carpenter V. United States [pdf](eff.org ↗)

1 points · by benburwell · 8y ago · discuss

comment 8y ago · link · parent

This is the MOTD when connecting: https://i.imgur.com/A8XP0eK.png

28.

Slack IRC and XMPP Gateways Are Closing(get.slack.help ↗)

6 points · by benburwell · 8y ago · 2 comments

29.

Pass-audit – Check whether your password-store passwords have been pwned(github.com ↗)

2 points · by benburwell · 8y ago · discuss

comment 8y ago · link · parent

Larry Lessig agrees: https://en.wikipedia.org/wiki/Code_and_Other_Laws_of_Cybersp...
123