Better HN
topnewbestaskshowjobs
Log inSign up

programd

2,559 karma · joined Dec 16, 2010 (15y ago) · 507 submissions

I consult on designing and developing modern, performant API servers running in Kubernetes/Docker or virtual machine environments. Mostly Go, but PHP, C/C++, and Rust also. Contact me at programd@nulladmin.com if you have a project you need help with.
Submissions

comment 7y ago · link · parent

> cvlc `ls | shuf`

gives you a different sequence every time

comment 7y ago · link · parent

Note that if you have not yet paired your key with a Google account the page will say "No action needed". Apparently they try to detect if the key is paired with your account before they replace it.

I emailed them to the contact address on that web page, but no reply just yet.

I hope they have a return/replace workflow for unused keys because obviously, why would you want to use one before you get it replaced? Obviously.

comment 7y ago · link · parent

Risks Digest

https://catless.ncl.ac.uk/Risks/

comment 7y ago · link · parent

Another vote for Vim key bindings. Think of it as future proofing. For all eternity :)

comment 7y ago · link · parent

I'll second that. Standard Xfinity cable connection, decent PC, and wired ethernet to the router. Occasionally in the evening during prime time when I assume everybody in my building was watching Netflix the stream would kick into lower quality graphics, but would recover quickly. No control input lag that I could detect. I put about 30 hours into the game and enjoyed myself (Awsome environment design and a vast, vast map to explore. All that fighting is repetitive and tedious, but story mode and running around exploring, taking in the views and the history is quite fun).

In any event I think that if you are a casual gamer and want to get off the graphics card upgrade train every couple of years, then this is a no brainer. It probably would not be a good match for multiplayer shooters, but for solo games, even AAA titles, it's a great option.

My feedback was that if they paired up with Steam they'd have a killer product. They might still have a killer product if they convince all those developers on Steam to also put their games on this service.

comment 7y ago · link · parent

I'm polishing up a (mostly) headless API-first user management system to release into the wild as a paid product.

Over the years I've written 5 different user management systems for various companies I've worked for, using 5 different languages. "We've got this terrific online product we need you to work on. By the way, we'll need a user management system. Can you throw one together quickly then get back to working on the core product?" That kind of thing. Each was used to manage hundreds of thousands of user accounts in production.

Finally I wrote one for my own projects and have been using it for a couple of years. Designed from the ground up for modern Kubernetes/Docker deploys, handles all your CRUD and random user data storage needs, scales to infinity (and beyond!), and requires minimal admin/maintenance (because I'm lazy - I like services you can launch and forget about). Scratching my own itch so I don't ever need to write another one ever again - and neither should you.

I'm working on productizing it, writing more docs, adding licensing, distribution, payment infrastructure, that kind of thing. I'll announce it on HN when I'm ready to sell.

If anybody's interested shoot me an email (in my profile).

comment 7y ago · link · parent

I post this as an example of a major project's release process in hopes of spurring some discussion about what should and should not be a good release process.

Please note that my goal is not to criticize Kafka - which has a lot of history and accumulated technical debt - but rather to get some perspective on what should be best practices for managing releases in our new and shiny age of DevOps.

For the record Kafka is great and I've used it in production, so they are clearly doing a lot of things right.

338.

The complicated Kafka release process(cwiki.apache.org ↗)

1 points · by programd · 7y ago · 1 comment

comment 7y ago · link · parent

Three recommendations.

For general static website needs, just use Hugo

https://gohugo.io/

For API documentation I recommend Slate. Nice three column layout which allows you to include code/curl examples for multiple languages with tabs in column three. Works great, can be dockerized easily.

https://github.com/lord/slate

Finally, for general user guide documentation, I like legacy Gitbook. Super simple and trivially produces a nice web based ebook from Markdown files. Don't let the deprecated warning put you off, it works just fine and the code is not going anywhere.

https://github.com/GitbookIO/gitbook

Between the three of them you can have a simple nicely formatted static doc site up very quickly.

comment 7y ago · link · parent

There's an excellent account of how the US forces in Vietnam forgot and re-learned the lessons of WW II urban warfare during the Tet offensive in the battle for Hue in Mark Bowden's "Hue 1968: A Turning Point of the American War in Vietnam" [0]. It's an excellent study of urban warfare and in general a great military history. Includes first hand accounts by soldiers and civilians from all sides. Highly recommended.

[0] https://www.amazon.com/Hue-1968-Turning-American-Vietnam/dp/...

comment 7y ago · link · parent

I like what I see provided out of the box by FusionAuth, but I'm rather weary of the hard dependency on Elasticsearch.

I'm curious why the need for Elastic. You already have a database which can be used to search all the user objects. What does Elastic bring to the party other then an extra ops burden?

This is not necessarily a criticism, just trying to understand what went into that architectural decision.

comment 7y ago · link · parent

I have to violently agree with this (consistent builds).

All the infrastructure with index, notary, mirror, etc. is nice, but at the end of the day you have to fetch some external code, verify it, lock it down in some vendor directory, and check it into your own backed up repo. Everything else is fluff.

If you're not doing this you're dancing with the devil and one day when you need to tweak some module or fix some bug, and the remote source is long gone, you will rue the day you depended on anything except your own source storage. And it will be 3 AM on Saturday, in some dismal server room, with no outside Internet connection, your customers screaming at you, and your phone battery dying, because Murphy's law.

For the purposes of software builds just pretend the rest of the Internet does not exist. Vendor everything, all the time, everywhere, and trust nothing.

comment 7y ago · link · parent

This is the perfect place to recommend "History of the Space Shuttle, Volume Two: Development of the Space Shuttle, 1972-1981" by T. A. Heppenheimer. An excellent account of a nation-scale engineering project and all the myriad engineering, economic, infrastructure, political, and project management pieces that go into it. Eye opening if you've never been involved in true mega-scale projects.

There's also "Space Shuttle Decision, 1965-1972 (History of the Space Shuttle, Volume 1", but I think Volume 2 is far more interesting from an engineering point of view.

comment 7y ago · link · parent

I was going to suggest you look at OKlog [0] but it seems that the project is recently archived and no longer maintained. A pity because I really like its simple and minimalistic design. It does still work of course and the code is all there. Loki would do well to look to it for some inspiration. I particularly like the super simple install, and lack if the need for some clunky UI to tail and grep your distributed logs.

[0] https://github.com/oklog/oklog

comment 7y ago · link · parent

I think the question is a bit too broad because every form entry application has many dimensions you need to think about.

On the one hand if all you need is a simple form which gets shoved into a DB then every web language/framework makes that very easy. Usually you can do it with just the standard library. Forms are trivial to deal with in JavaScript, Java, Rails, Python, Perl, Go, etc.

On the back end if you're allergic to writing your own SQL queries you have a myriad of ORMs which will shove the data into your DB schema with minimal fuss. Most of those are also language specific.

On the other hand there are also many commercial solutions which you can use that let you completely avoid re-inventing the wheel, e.g. WuFoo, Google forms and the like.

On the gripping hand [0] in real life any serious business application which takes form input and shoves it into a DB winds up becoming a custom, hand crafted, artisanal, locally-sourced, specially grown mushroom. Why?

Well, is data entry on phones/tablets or not? Web forms cover both cases, but the UI solutions would probably be fairly different. What's your back end for dealing with the forms? What kind of business logic validation do you need? What are your security requirements (tamper proofing forms, storing input securely a-la GDPR)? How do you ensure your form inputs are not lost in case of failures (reliability, availability)? What's your form acknowledgment infrastructure (e.g. email, SMS, error feedback, etc). What's your DB security, availability, and performance look like?

You get the idea. The app you're trying to create is somewhere on the spectrum between a standard language supported libraries, all the way up to the how your bank deals with forms. The framework answer will be somewhere on that spectrum also.

I suggest you narrow down your question and I'm sure HN will point you in some good directions for your particular application.

[0] https://en.wikipedia.org/wiki/The_Gripping_Hand

346.

R.I.P. Roy Clark – Malaguena(youtube.com ↗)

2 points · by programd · 8y ago · discuss

347.

A Large Scale Study of Data Center Network Reliability [pdf](people.inf.ethz.ch ↗)

3 points · by programd · 8y ago · discuss

comment 8y ago · link · parent

For on premesis installs, enterprise production systems seem to be converging on the ELK stack - Elasticsearch, Logstash, and Kibana. However managing this at scale requires quite a bit or resources and know-how. It's frequently overkill for what you need.

For modern brand new production systems I always suggest to start with oklog until you outgrow it (if ever). Most of the time you just want to send your logs to some central location and archive them in files. Occasionally you want to tail them or search them. Oklog gets you all that in a distributed fashion and with minimal fuss.

https://github.com/oklog/oklog

comment 8y ago · link · parent

Anybody interested in an excellent history of the WW II European bombing campaigns should pick up “Bomber Command” by Max Hastings. I covers everything from technology, to strategy, to ethics, and more. Top notch history book.

https://www.amazon.com/Bomber-Command-Zenith-Military-Classi...

comment 8y ago · link · parent

On the Go side take a look at go-kit

https://github.com/go-kit/kit

You can get a lot of boilerplate out of the box, and it's not hard to extend it with more sophisticated features like custom server timeouts.

The New York Times has a nice set of Go microservice frameworks with simple server boilerplate also:

https://github.com/NYTimes/gizmo

comment 8y ago · link · parent

Here is one cautionary tale showing why you would not want to use Macaroons:

https://about.sourcegraph.com/go/gophercon-2018-an-over-engi...

comment 8y ago · link · parent

I think you meant vi and grep :)

353.

Setting up Amazon EKS: What you must know(medium.com ↗)

2 points · by programd · 8y ago · discuss

comment 8y ago · link · parent

Here's a nice recent blog post about various issues you have to deal with to even set up a EKS cluster in AWS:

https://medium.com/@dmaas/setting-up-amazon-eks-what-you-mus...

I get the impression that compared to GKE, EKS is not yet fully baked as an easy to use product. It still involves too much manual fiddling around (e.g. see above) and operational complexity.

I'd advise any clients of mine who want to run Kubernetes in the cloud to stick to GKE for now. The lower prices on GKE are a nice bonus also.

That said, I don't discount what Amazon can do in this space. If they make the setup/admin experience as easy as spinning up a VM on AWS then Google will have a serious competitor. But not yet.

BTW, for smaller shops and solo devs, I hear good things about the upcoming Digital Ocean Kubernetes service. It's in beta right now:

https://www.digitalocean.com/products/kubernetes/

comment 8y ago · link · parent

If I read this correctly then apparently several million hardware encryption devices - including Yubikeys - have weak RSA keys which can be factored in a reasonable amount of time for a few tens of thousands of dollars worth of cloud computing power.

The Summary of results section has the really fun stuff, including vulnerable Yubikey 4, vulnerable TPM chips in laptops, vulnerable Git keys for "crucial open source repositories", vulnerable Estonian eIDs, and that favorite of intelligence agencies everywhere, vulnerable SCADA systems.

356.

Practical Factorization of Widely Used RSA Moduli [pdf](acmccs.github.io ↗)

2 points · by programd · 8y ago · 1 comment

comment 8y ago · link · parent

Which is great, except when the attackers use MDM to compromise your system

https://arstechnica.com/information-technology/2018/07/hyper...

358.

Archiving self-destructing Gmail messages with Firefox(grokprivacy.wordpress.com ↗)

2 points · by programd · 8y ago · discuss

comment 8y ago · link · parent

I saw him give a talk once. He told outrageous lies about himself. Half the audience believed him, and the other half really wanted to. He looked like he was enjoying himself.

I considered him such a great writer that I went around telling people that I'd be willing to read anything he wrote, even his laundry list. Which led to the idea of asking to buy his laundry list and creating a website called "Harlan Ellison's Laundry List". I suspect it would have been magnificent. Sadly I never got around to it - too late now. Probably would not have worked anyway as he was said to be notoriously anti-computer in his life.

Magnificent bastard indeed.

comment 8y ago · link · parent

"Nothing you code outside work is cleared for public release."

Locate that cluse in your employment contract and cross it out and initial before you sign it. I'm willing to bet this is entirely negotiable and nobody will even blink. I speak from experience. After all, you own intellectual property already and it needs maintenance. So no, they don't get to own work you do on your own time.

If the company pushes back you really don't want to work for them. Seriously.

1
111213
17