Better HN
topnewbestaskshowjobs
Log inSign up

cap10morgan

487 karma · joined May 14, 2010 (16y ago) · 54 submissions

Coder, beer brewer, devops guy, bad skier, mountain lover.

Former CTO of Democracy Works, Inc. Currently a Senior Developer at Harper.

[ my public key: https://keybase.io/wesmorgan; my proof: https://keybase.io/wesmorgan/sigs/SruzQSLSDqABvVg1jXxtWS9_iBBZMouTYcmOfjbb3dY ]

Submissions

comment 9mo ago · link · parent

I am already using Claude in Xcode 26.2. What did they change / add specifically in 26.3? It's not super clear behind the marketing haze.

comment 2y ago · link · parent

This highlights a common pitfall: If you “solve” a problem with a “temporary” solution, you lower the priority of the better solution below every unsolved problem. And there are always enough of those to ensure no one ever revisits the temporary solutions.

comment 3y ago · link · parent

Important caveat with Firefox: You can run your own Firefox Account server (see https://mozilla-services.readthedocs.io/en/latest/howtos/run...) and then e.g. connect to it over a VPN to mitigate a lot of this.

comment 4y ago · link · parent

I would encourage folks to listen to this podcast episode from April 2020 for some background on how the virus itself can carry detectable earmarks of being natural or lab-grown and what we see in SARS-CoV-2 based on that:

https://gimletmedia.com/shows/science-vs/dvheexn/coronavirus...

Gives you some good additional questions to ask when reports like this come out.

comment 4y ago · link · parent

They think they aren’t, but it’s yet another thing they’re confused about.

6.

Solid-State Batteries Are Here and They're Going to Change How We Live(popularmechanics.com ↗)

5 points · by cap10morgan · 4y ago · discuss

comment 5y ago · link · parent

Peter Thiel almost certainly didn’t invent this. The idea that our decisions are heavily influenced by those around us is one of those things that’s been well-established in the relevant scientific communities for some time but has a hard time breaking into the popular consciousness because we don’t want it to be true.

comment 5y ago · link · parent

In my experience "Does your company measure the long term benefit of X?" is 99.99999% "no" for any X.

comment 5y ago · link · parent

I'm hoping this leads to an announcement of some kind of hypervisor support in iPadOS 15. I would imagine that would come at WWDC if it's coming. Seems like it would allow software development on the iPad while retaining app sandboxing.

comment 6y ago · link · parent

That's a fair question and something I should have clarified in my comment (though I have a feeling it is likely addressed in the blog post I linked to).

It gets into the deeper motivation behind not breaking backwards compatibility within the same-named module. There are two bad extremes here:

1. Never update dependency versions for fear of breakage. This leaves you open to security vulnerabilities (that are easy to exploit because they are often thoroughly documented in the fixed version's changelog / code). And/or you're stuck with other bugs / missing features the upstream maintainer has already addressed.

2. Always just updating all deps to latest and hoping things don't break, maybe running the test suite and doing a "smoke test" build and run if you're lucky. Often a user becomes the first to find a broken corner case that you didn't think to check but they rely on.

The approach outlined by Rich Hickey in that Spec-ulation talk I linked to allows you to be (relatively) confident that a package with the same name will always be backwards-compatible and you can track the latest release and find a happy middle ground between those two extremes.

Go's approach is one of the few (only?) first-class implementations of this idea in a language's package system (in Clojure, perhaps ironically, this is merely a suggested convention). The Go modules system has its fair share of confusing idiosyncrasies, but this is one of my favorite features of it and I hope they stick to their guns.

comment 6y ago · link · parent

I see a lot of comments in here about the v2+ rule’s reason for existing being to allow importing multiple major versions of a module. That’s not it at all. As the blog post (which was easily Googled by me and explains things quite well IMO) states: “If an old package and a new package have the same import path, the new package must be backwards compatible with the old package.”

They’re trying not to break compatibility until a downstream developer explicitly opts in to that breakage. The simplest way to do that is to give the module a new name. And the simplest way to do that is append the major version to the name.

Here is the post: https://blog.golang.org/v2-go-modules

For more background on this principle, I recommend Rich Hickey’s Clojure/conj keynote “Spec-ulation” from 2016: http://blog.ezyang.com/2016/12/thoughts-about-spec-ulation-r...

comment 6y ago · link · parent

> During a brownout, password authentication will temporarily fail to alert users who haven't migrated their authentication calls.

This took me a second to correctly parse. Would have been better written as: “During a brownout, password authentication will temporarily fail. This is to alert users who haven't migrated their authentication calls.”

comment 6y ago · link · parent

It is free for the time being. But you point out a good reason why we built dgit to support other storage backends.

comment 6y ago · link · parent

Totally fair. We definitely want to make that install process very simple and fast for as many people as we can. And it only needs to be done once per machine. :)

comment 6y ago · link · parent

Cool! We'll look into that.

comment 6y ago · link · parent

Our setup process is a much lighter lift than standing up a server and installing gitolite on it.

But yes, if GitHub is down, then your workflow is going to change. We're hoping to close that gap down the road, but having a way to continue pushing and pulling with collaborators with a very quick setup seemed compelling to us. Not to mention the benefits that decentralization itself brings.

The vast majority of git users tend to agree on one "origin" remote and 99-100% of their pushes and pulls are to/from that remote. So git, in practice, tends to be centralized when it comes time to collaborate with others. We're trying to re-decentralize that aspect while accommodating the convenient workflows we're all used to.

comment 6y ago · link · parent

Absolutely. Our strategy is to give you a decentralized on-ramp by starting with GitHub's central value proposition of the "one true git remote" that everyone can share. We made a GitHub action (https://github.com/quorumcontrol/dgit-github-action) to automatically mirror GitHub pushes on dgit so you can continue using GitHub's other tools (like issues and wikis) until dgit offers a compelling alternative for those.

comment 6y ago · link · parent

dgit dev here. Good question. For starters, dgit is not 100% tied to Sia, it's just a great decentralized file hosting service so we started with it as the first default.

But to answer your question, anyone can host Sia nodes. Here are their docs on that: https://support.sia.tech/category/0OpBuOHIVD-hosting

comment 7y ago · link · parent

Straw man alert. I've never heard a YIMBY argue for "build anything, anywhere." I've only ever heard them argue for exactly what the article proposes, i.e. smart, context-aware density.

comment 9y ago · link · parent

So all of the corporate breaches show that the entire private sector is irresponsible with data too? Maybe the problem is a little deeper than "government is irresponsible?"

comment 11y ago · link · parent

Does anyone know if there is an implementation of the key-press-light-flash-delay temporal illusion anywhere online? I'd love to try that out and experience the light flash "before" the key press after conditioning my brain to integrate the 200ms delay.

If there isn't one, I may have to write it. It sounds really trippy.

comment 13y ago · link · parent

Humbug: https://humbughq.com/signup/

Still pretty new, and in closed beta. But it adds an interesting threading/topic model onto the typically chaotic stream of most group chat apps.

comment 14y ago · link · parent

There's a common fallacious argument in here:

A. The corporations that have the most power in this industry have lobbied for and gotten a consumer-hostile regulatory regime. B. It's the government's fault that the regulations are less than ideal. Therefore the consumer would be best served by getting the government out of it.

This is like saying, "The problem with being stranded in the desert is the lack of water. Therefore water is the problem. Therefore we should remove all the water from the desert."

24.

Opal - Ruby to Javascript compiler(opalrb.org ↗)

130 points · by cap10morgan · 14y ago · 49 comments

comment 14y ago · link · parent

Yeah, it changes the game when you need to fill out a pre-existing PDF form with user-supplied data (as opposed to free form PDF generation). In my experience, you pretty much have to use a Java library (such as iText) for this. So for a Rails app, that means JRuby, queue to a Java daemon processor, or something along those lines.

Though I see they're using the prawn gem to do it here: https://github.com/democrats/voter-registration/blob/master/...

Last time I checked, prawn wasn't quite powerful enough for this use case. I'll have to revisit that approach.

comment 14y ago · link · parent

I worked as a Rails dev at the DNC in 2010-2011. I pushed for open-sourcing our fully-featured voter reg. Rails app back then, but didn't find much support for the idea. The political world is pretty wary of "giving code away" because the opposition will use it, etc. So, progress?

We were allowed to open-source some infrastructure code back then: https://github.com/dnclabs

Hopefully they'll continue working on this tool and make it something worth using and contributing to. I've tried to convince several political orgs. I worked for in the past to do this, but so far none have bitten.

comment 14y ago · link · parent

I'm not claiming it did. I'm saying that a very different PC desktop / laptop OS and software ecosystem back in the mid-nineties would have ripple effects on PCs, phones, and tablets today.
12