HNHacker News
TopNewBestAskShowJobs

mwpmaybe

907 karma · joined July 27, 2015

[ my public key: https://keybase.io/mwp; my proof: https://keybase.io/mwp/sigs/IgRJbBXIMpIG5ILaErmbmjkyttiEoe4ov_JqABTpuoQ ]
submissionscomments
mwpmaybe··on Trump Fires Acting Attorney General
I am merely pointing out the flaw in your argument that the Trump administration's order is in any way acceptable simply because they're working off the same list of countries that the Obama administration used for a past order.
mwpmaybe··on Trump Fires Acting Attorney General
> > The major worry for me is Trump's seeking to punish anyone who shows disloyalty.

> It's the entire reason there are 2 other branches of government.

You have DHS officials refusing to obey a court order[0] and the White House refusing to share information with Congress[1]. Where are the checks and balances?

0. https://www.theguardian.com/us-news/2017/jan/29/customs-bord...

1. http://thehill.com/homenews/senate/317006-rubio-state-asked-...

mwpmaybe··on Trump Fires Acting Attorney General
And Michael Flynn's son[0].

0. http://www.politico.com/story/2017/01/michael-flynn-muslim-b...

mwpmaybe··on Trump Fires Acting Attorney General
> President Obama signed a list of countries into law

> using the exact list that President Obama signed into law

Yes, it's the same list of countries... with much, much broader restrictions placed upon them in this instance, to the point that some of the restrictions may violate the Immigration and Nationality Act of 1965 (point[0], counterpoint[1]).

0. https://www.nytimes.com/2017/01/27/opinion/trumps-immigratio...

1. http://www.nationalreview.com/article/444371/donald-trump-ex...

mwpmaybe··on Speed Up a WordPress Website in 8 Steps
I have not. The whole purpose of an architecture like this is to turn WordPress into a glorified static site generator, so it doesn't particularly matter how fast (or slow) the application server is. At any rate, I thought PHP 7 was about as fast as (and even faster than, in some cases) HHVM?
mwpmaybe··on [dead]
Discussion: https://news.ycombinator.com/item?id=13527018
mwpmaybe··on Speed Up a WordPress Website in 8 Steps
I recently wrote up my Caddy+Varnish+PHP-FPM solution for WordPress[0]. It's fairly complementary to the steps detailed in the OP. The site absolutely flies now: 50-75ms response times cf. 200-300ms per Google, A+ on SSL Labs cf. unencrypted HTTP/1.1, and the $10/mo VPS rarely cracks 1% CPU utilization despite it being a modestly well-trafficked site. Our organic search position has improved significantly.

Caddy was maybe an odd choice but it performs well and it's been a breath of fresh air after dealing with some gnarly NGINX and Apache configurations in the past. So far it's been easy to maintain and there's a clear CDN migration path (Fastly). I'm using Docker's official PHP-FPM images[1] to serve multiple sites with some isolation, sharing Caddy, Varnish, and MariaDB instances.

I'm not sure if this solution has value for anyone else but I've been plugging it here and there in case there is!

0. https://gist.github.com/mwpastore/f42f6f1309a7b067519f4c08e1...

1. https://hub.docker.com/_/php/

mwpmaybe··on [dead]
O rly? ;-)

https://en.wikipedia.org/wiki/Settlement_of_the_Americas

mwpmaybe··on Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59
zram[0] is not the same thing as zswap[1].

0. https://en.wikipedia.org/wiki/Zram

1. https://en.wikipedia.org/wiki/Zswap

mwpmaybe··on Split Brain Does Not Lead to Split Consciousness
This is giving me the heebies and the jeebies.
mwpmaybe··on Caching at Reddit
If a company is grossing $20MM/year and stands to improve that by more than 0.75% by having a faster site, then yes, it makes sense to spend 0.75% of your revenue to do so.
mwpmaybe··on What I Wish I'd Known About Equity Before Joining a Unicorn
Right. It's quite the opposite of GP's sarcastic remark: founders want their employees to value their equity highly so they don't have to pay them as much. The advice in this thread is contrary to this. But yes, I've seen founders be stingy with equity during negotiation using this type of "logic," so the GP's point still stands.
mwpmaybe··on What I Wish I'd Known About Equity Before Joining a Unicorn
The point is that an entry-level engineer can make $200K at e.g. Uber (think $120K base + $80K equity), so for a newish company (with near-worthless equity, per the advice in this thread) to match that, they would have to pay $200K base.
mwpmaybe··on DMARC Secured Email Identities but Broke Mailing Lists
The solution to this is SRS[0], but yes, not every mail-forwarder implements this (correctly), and it seems to break DKIM. The good news is that an SPF soft-fail and a DKIM pass usually means a DMARC pass. More information here[1].

0. http://www.openspf.org/SRS

1. https://blog.fastmail.com/2016/12/24/spf-dkim-dmarc/

mwpmaybe··on DMARC Secured Email Identities but Broke Mailing Lists
Running without DKIM/DMARC exposes your domain to a suite of spoofing attacks that aren't mitigable by SPF alone. A spammer can send mail "from" your domain and over time this activity may lessen the reputation of your domain and/or IP/netblock—even if it's just Gmail users manually marking such messages as spam—making your subsequent outbound, legitimate messages more likely to be flagged. If nothing else, the backscatter gets annoying! DKIM, DMARC, and ADSP are worth setting up for these reasons, and the reports provided by e.g. Postmark[0] are invaluable for understanding how your domains are being abused.

0. https://dmarc.postmarkapp.com

mwpmaybe··on An Inferno on the Head of a Pin
Great story. When I upgraded from a 486DX2/50 to a Pentium 133, I thought for sure there was something wrong with the voltage regulator on the motherboard because the chip was throwing off so much heat. Spent hours on the phone with Tyan technical support (which was great) and a multimeter and even swapped out the motherboard at one point. Turned out the new chips just ran that hot!
mwpmaybe··on Ask HN: Is it possible to make $200K/year base salary?
No. An associate-level employee without any direct reports is just an employee. A manager- or director-level employee without any direct reports is an individual contributor. I wanted to clarify the distinction. If that's still confusing (for whomever), s/level/pay grade/g. Source: Former IC and Senior Manager at a Fortune 100-ish corp.
mwpmaybe··on Ask HN: Is it possible to make $200K/year base salary?
A manager-level employee.
mwpmaybe··on Major Service Outage at GitHub
I'm envisioning some kind of caching forward proxy for git. Point your clones/fetches at it and it will proxy the connection to the source fork. If the source fork is down, it will serve its cached copy of the fork.

I found this[0] but it's prerelease and looks like it hasn't been touched in five years. Anyone know of any other solutions like this? Good idea? Bad idea?

0. https://github.com/rohanpm/ngitcached

mwpmaybe··on Make Your MacBook Pro, Again
This seems a little more appropriate to me: https://www.kickstarter.com/projects/hypershop/hyperdrivetm-...
mwpmaybe··on Show HN: Posixcube, a shell script automation framework alternative to Ansible
Agreed, although I will say the templating has improved over the past year to be more consistent and full-featured cf. Jinja 2 proper, and they are now enforcing interpolation instead of inferring expressions (e.g. if foo is an array you have to write `with_items: "{{ foo }}"`; `with_items: foo` was deprecated, and is an error as of Ansible 2.0 IIRC). The quoting issue is still there, although once you learn the two or three rules it really isn't a day-to-day issue, and Ansible tries to warn you if and when it sees something problematic.
mwpmaybe··on Show HN: Posixcube, a shell script automation framework alternative to Ansible
I can't criticize someone rolling their own foo for learning's sake (or just for the fun of it), but I think if you'd given Ansible a try, you would have been happy with it.
mwpmaybe··on The first web site
I remember switching over. It took some getting used to!
mwpmaybe··on Caddy – a modern web server (vs. Nginx)
The Caddy web site provides a helpful download link where you can select your architecture and addons/features and receive a binary. You can easily point a script at it, like in this Ansible role[0], for instance.

0. https://github.com/antoiner77/caddy-ansible

mwpmaybe··on Caddy – a modern web server (vs. Nginx)
I've been experimenting with Caddy over the past few days and it's great, if somewhat immature and quirky. The plugin ecosystem is rich but in dire need of some oversight and QC. What I like most about Caddy is its very sane behavior out of the box: it just does the right thing in most cases, and requires much less configuration than NGINX, Apache, HAProxy, etc. (It also has fewer features, so there's a trade-off.)

I posted a gist[0] with my Caddy+Varnish+PHP-FPM configuration and a README explaining the hows and whys. I'm moving a bunch of WordPress sites from Apache/mod_php to this configuration (each site's PHP-FPM instance is Dockerized, but that's out of the scope of the gist). Hopefully someone finds it helpful!

0. https://gist.github.com/mwpastore/f42f6f1309a7b067519f4c08e1...

mwpmaybe··on Caddy – a modern web server (vs. Nginx)
I think you want header_upstream instead of proxy_header, at least in newer versions of Caddy, and the transparent[0] preset sets Host, X-Forwarded-For, and X-Forwarded-Proto for you!

  proxy / 127.0.0.1:8080 {
    except /favicon.ico /robots.txt /assets /plainpages /staticstuff /test1
    transparent
  }
0. https://caddyserver.com/docs/proxy
mwpmaybe··on Coding is not ‘fun’, it’s technically and ethically complex
It sucks until you figure out the problem, then it's euphoric.
mwpmaybe··on Secure your MongoDB, Redis, etc
That's an excellent question. I've only ever used stunnel and I was blown away by how many different things it can do / ways it can work. It does so much for such a simple tool. antirez probably likes spiped because it does fewer things. :)
mwpmaybe··on Secure your MongoDB, Redis, etc
stunnel. It's an incredible piece of software.
mwpmaybe··on Taking a month off from OSS volunteering
I've been on both sides and I have to say that the road goes both ways.

When I was getting started with a language last year I found a missing feature in a module of an open source library and submitted a very simple PR to add the feature. The maintainer asked me to completely refactor the module. I admittedly overreacted to this request—as I perceived it to be way too big of an ask—before settling down and getting to work on it. Then it literally took almost six months for the maintainer to review and merge my PR because of the intensity of the refactoring and performance regressions. (I would get some small piece of feedback, submit a fix or more information, wait weeks and weeks to hear back again, repeat ad naseum.)

So yes, issue-reporters and PR-submitters can be irritating, demanding, and disrespectful of maintainers' time, but maintainers can be just as bad.

Postscript: I don't regret the time I spent on it because it was an awesome learning experience, but it was certainly frustrating at the time!

← PreviousPage 7 of 12Next →