Better HN
topnewbestaskshowjobs
Log inSign up

pythonaut_16

1,567 karma · joined Nov 23, 2016 (10y ago) · 686 submissions

Submissions

comment 8y ago · link · parent

I personally use Docker combined with a $5 droplet on Digital Ocean. This makes it easy to spin up multiple applications and sites without worrying about conflicting dependencies, and docker-compose gives me most of the benefits of orchestration tools (e.g. Kubernetes) that actually matter for my small scale usage.

Also Traefik makes a nice load balancer for this uage

comment 8y ago · link · parent

So much awful software and UX is made by taking a paper based process and directly recreating it as a digital process without re-evaluating the process itself.

comment 8y ago · link · parent

Has the government "subsidized" SpaceX? AFAIK the government has been a consistent customer of SpaceX and they've leased facilities from NASA but it seems that overall they aren't being subsidized but rather patronized.

comment 8y ago · link · parent

Well of course not, all of the ISP's routers were already bricked.

comment 8y ago · link · parent

The ads then probably weren't good either. But they were certainly less pervasive and hostile.

comment 8y ago · link · parent

I'm not sure exactly what made Ecto click for me, but once it did, it quickly became my favorite ORM/data mapper.

Have you read some of the Plataformatec blog posts about Ecto?

comment 8y ago · link · parent

This seems like a place where physical security keys could've be useful.

Any invoice would be expected to be signed using a physical security key. The University or a trusted third party would have a list of vendor keys, signed by the university's master key.

Any request to change account details or for payments would require a new signed invoice. Then any user receiving such an email could easily see if the invoice had been signed by a person who can cryptographically prove they have a key that is trusted to be in the vendor's possession.

comment 8y ago · link · parent

I don't think Go has better concurrency than Erlang, but go does have generally better raw performance. Ultimately I think both are good languages they just make different trade offs.

If I was designing a command line app I'd probably choose Go, if I was designing a web service I'd probably choose Elixir/Erlang. Of course those can easily flip; there are classes of command line apps where I might choose Elixir/Erlang and there are classes of web services where I might choose Go.

I can't speak to Clojure though.

comment 8y ago · link · parent

All (graphical) user interfaces are a lie. The only real question is whether they're lying to benefit the user or not.

comment 8y ago · link · parent

I think this is the wrong mindset.

A better one would be: "Hire good developers. You can invest in teaching them whatever technology your company uses and/or built."

Otherwise you end up with companies that hire good developers who don't know the tech stack and expect them to be 110% productive in one week with no investment from the company in training them. Then, even if the developer can keep up with demands they end up writing sub par code due to unfamiliarity with the tech stack.

comment 8y ago · link · parent

I looked at Dokku and Flynn for personal (single host) projects and find both to be too complicated for my needs. I generally prefer deploying Docker containers over Heroku buildpacks.

I ended up just running a single Digital Ocean droplet with Traefik as a loadbalancer/entry point, and then running each of my projects with docker-compose. (And building each project with Docker)

With Traefik I can set up reverse proxying for each project just by adding a few labels to its docker containers, and Traefik manages LetsEncrypt for me.

comment 8y ago · link · parent

Kinda a cool idea in a Stargate-y, Ancient Astronauts kinda way.

It could easily be the origin of a story of the first interstellar star-ship from Earth traveling across the cosmos, only to reach a planet already inhabited by a human civilisation. (This would presume that knowledge of the traveler world was lost at some point)

comment 8y ago · link · parent

I appreciate that your conclusion was that the starting position helps determine the strategy necessary for success, rather than your starting position already determining your ability to succeed.

A lot of comments in these kinds of threads just assume a kind of fatalism that success is determined purely by change and the circumstances of your birth.

comment 8y ago · link · parent

And the flaw with your perspective is that if we all followed this advice, we might have a few highly polished bullet proof C libraries to use, but we'd still be stuck writing C and following all of its paradigms.

comment 8y ago · link · parent

I'm not so sure it's that clear. (I'm not a lawyer)

If you can lawfully download a phone image over the internet while in the country and you can lawfully enter the country with no or limited digital information on your person then I don't see how backing up your phone in a different country (where New Zealand has no jurisdiction) and legally downloading the backup in New Zealand is evading customs.

Another (presumably) legal scenarios would include backing up all of your data, carrying no phone into the country, and then purchasing one while there. Is that "evading customs"?

comment 8y ago · link · parent

> The good drone operators didn't get control over the bad ones

What does this even mean? I buy a drone and now I'm responsible to go hunt down every idiot with a drone and tell him to knock it off? I'm sure that would be very effective. Definitely much more effective than the FAA regulations already in place that these people choose to ignore.

comment 8y ago · link · parent

I hadn't heard about Amazon using Stripe before.

Here's an article from 2017 talking about it: https://www.geekwire.com/2017/amazon-quietly-starts-using-st...

comment 8y ago · link · parent

Basically yeah. You probably aren't gonna be adding rebasing functionality to your supply chain git repo.

But again, that's why I mentioned a blockchain in the true sense, as a chain of blocks containing a hash of previous blocks, because git is a blockchain by that definition.

comment 8y ago · link · parent

I think there are two key points to making such a system work:

1. Packaging it in such a way that it's easy to use for non-technical users.

2. There still has to be a mechanism for establishing trust in the public keys registered in such a system.

For one I'd imagine that farmers are doing some amount of work to go from raw "lettuce in the ground" to "one unit of shipment". Once it's a unit of shipment it could have an ID/Bar/QRcode generated that is then scanned with a handheld scanner that has its own keypair. The scanners keypair would be registered with the farm and so the farm would either explicitly sign off on the package or implicitly have signed that scanners pair as trusted by the farm. So a farmer and farmstaff wouldn't need any technical know how beyond operating a scanner. Depending on the farm adding such a granular tracking system may or may not be easy to implement.

For two, I can see two options. Walmart could verify every step of the chain themselves and register/receive the public key for each step in the chain. (So a farm would register with Walmart as a verified producer, a shipping company would register, etc). Or each step of the change could make a binary decision to trust the step before it and apply pressure down chain to resolve issues, since theoretically each step could fabricate the entire chain before passing it off. In this scenario, Walmart would go to the shipping company and say "E. Coli was detected in Shipment X. We no longer want to be sourced produce from Producer Y. The shipping company then takes this into account when sourcing produce, or else Walmart discontinues business with them.

I think the big benefit is by having an associated public key, you can verify the claimed identity of any agent in the chain and build trust in that agent over time. You could keep popping up disposable proxy farms, but Walmart/Shipping provider/X doesn't have any reason to trust your proxy farm's shipments; you have to establish trust either directly with a buyer of your produce, or establish trust over time as a commodity provider. As you build trust you can probably get better prices.

I'm by no means a blockchain advocate or a supply chain manager of any kind, just doing a thought experiment of how blockchains might be effectively applied in such a scenario. There very well might be better solutions, but I think at the very least a blockchain presents an interesting or novel solution.

Just thinking through, you could also create a sort of "doubly linked list" and include who custody was given to as part of each block, so a farmer is signing a claim of who they gave their produce to. {Farm A produced unit of Lettuce X, Given to Shipper B, <no previous>}[Farm A signed]

comment 8y ago · link · parent

I agree that it's a buzzword,

but at least intuitively, a signed blockchain (in the true sense that each block contains a hash of the previous block) does seem to confer some additional security over a plain database.

A plain database would give you a log of events and who logged them, but security and trust resides in the database and how it's authenticated. Anyone with sufficient permissions could modify the database.

A signed block chain would give you a log of events where each party in the chain signs the new block (which includes a hash of the previous block) using their private key. The block can then be verified using each entities public key. To modify this system you would need to be able to breach the trust of the private keys.

{Lettuce from Farm A on date, <>}[Signed by farm A] => {Received lettuce on date, <Farm A block>}[Signed by shipping agent] => {Received lettuce on data, <Shipping agent block>}[Signed by Walmart store], etc

In theory then, Walmart would have a registry of the public keys of each agent in the chain, and upon receiving produce could verify the events of the whole block?

comment 8y ago · link · parent

Sounds more like a UI bug/oversight than intentional deception.

Google Maps UI has a feature to display your set home address, once you turn off tracking or whatever it no longer has access to that home address in its UI so the default state is to ask you to set one.

If that's the case then the real problem would be that the address data is siloed off somewhere in your Google account under maps and isn't accessible to be changed/cleared from your general account settings.

comment 8y ago · link · parent

The extent the common person (might) know about cookies is that sometimes it's helpful to clear them to speed up your computer and/or as part of other magical rituals.

comment 8y ago · link · parent

I'm curious what that does to discourse too. If there's no advertising allowed and users bid on one post per minute, what's to stop someone with deep pockets from dominating the system?

I do think bidding to post and rate-limiting is an interesting solution but it seems like there needs to be some kind of scaling mechanism.

comment 8y ago · link · parent

Google went to production with Pentium desktops on shelves.

IIRC their original hardware plan was based around commodity hardware and getting the most performance per dollar since they built the crawler to be distributed pretty early on.

Point being, consumer grade hardware has come a long way since then, and if you're doing something cutting edge like DL it's not outlandish to expect that rolling your own might be worthwhile and totally justified.

comment 8y ago · link · parent

That's fair but you can easily develop for the majority Chrome marketshare by focusing on designing and building your applications on top of the actual web standards instead of Chrome's specific implementations. Probably 95% of the APIs you use in a typical app will be easy to use in a standard way anyway.

WebRTC and some of the more mercurial APIs might be a challenge though.

comment 8y ago · link · parent

The user isn't the problem, the developer is.

If you're developing against Chrome/Chromium, particularly "works in Chrome" instead of developing against the published Web standards, you're support Google & Chrome.

comment 8y ago · link · parent

I would watch an AI-assisted human tournament, especially where each team is responsible for designing their own AI

comment 8y ago · link · parent

You still didn't really answer what you think Mozilla should be doing with that money. (Besides vaguely hinting that they don't target power users anymore which suggests you're bitter about the switch to web extensions)

comment 8y ago · link · parent

You can force cast a boolean by doing if(!!value == true) {}, but at that point you might as well just say if(value)
1
121314
23