HNHacker News
TopNewBestAskShowJobs

nateberkopec

3,366 karma · joined March 23, 2009

submissionscomments
nateberkopec··on Speeding Up Rendering Rails Pages with render_async
It does seem somewhat dangerous to use on a collection. But for scenarios like a few parts of the page which depend on the logged-in-user, it seems pretty safe.
nateberkopec··on Speeding Up Rendering Rails Pages with render_async
Does this work with HTTP caching?

i.e. if I use this to render a movie rating asynchronously, can I return a 304 not modified response and the client will insert a previously-delivered response fragment?

nateberkopec··on Speeding Up Rendering Rails Pages with render_async
Only over an HTTP/1 connection. Chrome and FF limit it to 6.
nateberkopec··on Guaranteed Minimum What?
Probably, yes. But the question is how much of a bump in prices that translates to - how much of the UBI will it wipe out?
nateberkopec··on Guaranteed Minimum What?
MV = PQ. Money * Velocity = Price level * Quantity of goods and services.

Friedman assumes the velocity of money is constant (good assumption), so really the only why you can cause inflation is to increase the supply of money, M. UBI increases the velocity of money by moving money from low-consumption, high-investment rich people to high-consumption, low-investment poor-to-middle-class people. Increase money velocity, and you'll see price inflation to compensate.

nateberkopec··on A crashed advertisement reveals logs of a facial recognition system
I saw a pitch for this tech 5 years ago. Not sure the name of the company. The idea is they can measure engagement (how long you looked), approximate age and sex.

Five years ago it didn't seem so sinister. A lot has happened since then, I guess.

nateberkopec··on Trump Takes Aim at Western Monuments That May Hold Oil Riches
I live very close to one of the National Monuments being discussed (Rio Grande Del Norte). It's a big tourist draw, not to mention it's wildlife and historical significance. Letting oil companies potentially put that in jeopardy to extract resources is really just a wealth transfer, putting the citizens at risk for the benefit of a few big oil companies.
nateberkopec··on Mini.css – Minimal, responsive, style-agnostic CSS framework
Not sure. My blog uses Milligram inlined into the head tag: https://www.speedshop.co/blog/
nateberkopec··on Mini.css – Minimal, responsive, style-agnostic CSS framework
One of the reasons I've switched to a microframework (Milligram) is that the source is extremely easy to read and understand.

Compare mini.css (https://github.com/Chalarangelo/mini.css/blob/master/src/min...) to Milligram (https://github.com/milligram/milligram/blob/master/src/_Form...).

Unless you're planning on inlining your CSS in the head tag, IMO the network difference between 7kb and 20kb of CSS is just splitting hairs. I've gotten far more out of optimizing my CSS for programmer understanding than network size (though the two tend to be correlated!).

nateberkopec··on Postgres tips for Rails developers
Well, that's because no one opened a PR until now.
nateberkopec··on Postgres tips for Rails developers
Yes, but at some point you can't just go around installing all the possible extensions/gems/whatever that you think are "good". The default gemfile would be 300 lines long with "developer happiness" gems such as `oink`, `bullet`, etc etc etc.

Most of the things that Rails is "opinionated" about are far more arbitrary than this, like whether the database primary key should be “id”, “postId”, “posts_id”, or “pid”.

nateberkopec··on Postgres tips for Rails developers
The appropriate setting for a statement timeout could really depend on the application. 5 seconds is probably sane for 90% of applications, but the other 5% may have a legitimate need for longer running statements.
nateberkopec··on Postgres tips for Rails developers
A feature somewhat similar to `marginalia` is probably going to merged into Rails very soon: https://github.com/rails/rails/pull/26815
nateberkopec··on Ask HN: Best budget Linux laptop for a developer?
If you see a Chromebook that you like the specs on, the crouton project can turn it into a dual boot system with your distro of choice. I found it surprisingly easy to use and it works really well. Since it's a chroot under the hood, the new distro can use all of the device drivers from ChromeOS, so all the hardware works perfectly.
nateberkopec··on Possible routes for distributed anti-abuse systems
Twitter took years to deploy notification syncing across clients (if I read a message on mobile, it gets marked as read on desktop). Is it really so hard to believe that deploying a "spam filter" for hate speech is difficult for them?

I agree that the technology exists (and plenty of other solutions mentioned in the article). But saying that because the technology exists and hasn't been deployed therefore there is no abuse problem is a hilariously bad non sequitir.

nateberkopec··on What's The End Goal for Wealthfront and Betterment? (2016)
I haven't switched to a roboadvisor product for a few reasons, but one of them is that saving for retirement is a decision you make on a 30+ year timeline. Most startups hardly last 3 years, much less 30. Why would I trust my money to an industry where the typical case is a flameout in only a few years?
nateberkopec··on Performance bugs – the dark matter of programming bugs
Personal blog authors - if you insist on not using Medium/similar big box blogging service, just host your blog as flat files on S3. It will never, ever go down when you hit number 1 on HN (as this poor author's site has).
nateberkopec··on Building a Hackintosh Pro
Yeah. I buy Macs because they "just work", so a Hackintosh completely destroys the point of even owning a Mac for me.
nateberkopec··on How I Made $70k Self-Publishing a Book about Ruby on Rails
I actually have an HTML version of the course, it comes with the purchase. This is because Gitbook can automatically output an HTML version. It's not the best, but it works.

I didn't do a free version because it's a premium product - if you want the "free version" of my stuff, you read my blog.

I did not consider physical printing.

nateberkopec··on How I Made $70k Self-Publishing a Book about Ruby on Rails
Yup. You can see it in the replies to Austen's results. "Your results aren't typical","did you have a following before", etc. I've been in their shoes, so I know now it was all just excuses, not tactical questions.
nateberkopec··on How I Made $70k Self-Publishing a Book about Ruby on Rails
I don't really have a way to know the Slack channel's value because I don't offer a package without it. But I can say it's been very popular and is still very active a year after launch.

The Slack channel was a last-minute afterthought when I was testing the product originally, but I kept it in and advertised it because so many of my testers thought it was a great idea.

nateberkopec··on How I Made $70k Self-Publishing a Book about Ruby on Rails
Someone above already chimed in with results far better than mine, and they sold just a book (and it's like half the length of mine). So it is definitely possible.

Part of the advantage of self-publishing is that you can be sophisticated in your product and not sell "just a book".

nateberkopec··on How I Made $70k Self-Publishing a Book about Ruby on Rails
I was that person for fucking years. After my Shark Tank appearance I went into a period of minor depression and didn't really try my hand at entrepreneurship until this project, which was almost 7 years later.

All I can give for advice is to build a snowball - start as small as possible, and work on it consistently. Eventually the success will come.

nateberkopec··on How I Made $70k Self-Publishing a Book about Ruby on Rails
Thanks! Yeah I mean it's not that different from my freelancing. I've been paying estimated tax and self-employment tax for years. Mostly now it's about selling products (example: I have to deal with New Mexico gross receipts tax, ugh) vs services.
nateberkopec··on How I Made $70k Self-Publishing a Book about Ruby on Rails
I get the sense that different verticals require vastly different strategies. A friend of a friend pulls in ~$10-20k a year on Kindle erotica, but they have to pump out like 2 books a month.
nateberkopec··on How I Made $70k Self-Publishing a Book about Ruby on Rails
Gumroad doesn't even send 1099's, like Amazon does for Kindle authors. I am not an accountant, but I believe it's just gross receipts on your Schedule C.
nateberkopec··on How I Made $70k Self-Publishing a Book about Ruby on Rails
Congrats. Do you pull anything in from Gumroad Discover? I think I've made ~$4k from them in the last year, which is not a huge part of my sales, but of course more than makes up for the $10/month for Gumroad Premium (or whatever they call it).
nateberkopec··on How I Made $70k Self-Publishing a Book about Ruby on Rails
I think if I actually paid for advertising, it would make sense.

But since I don't spend money advertising, and I'm going to write about what I'm going to write about regardless of 10k visitors or 70k, I don't see the value.

Also, programmers are privacy-sensitive. I think people like looking at their Ghostery icon on my site and seeing nothing is being blocked.

nateberkopec··on How I Made $70k Self-Publishing a Book about Ruby on Rails
Hi, author here. I don't do that. I think I even mention in the post that I don't bother with vote-ringing on HN because I think HN's algos are pretty sophisticated on this front. Plus, HN hellbans a lot for a lot of reasons, so any type of manipulation is extremely risky.

Also, I generally write enough stuff that I don't need any one particular post to succeed, but keeping my domain off any "blacklists" is very important to me. Vote manipulation would be a very, very bad decision for me.

nateberkopec··on Sweden brings back military conscription
What's the point of conscription? Surely there must be a good reason. Boosting the numbers of your military by forcefully bringing in some barely-motivated, hardly-trained conscripts that are discharged just a few months after completing basic training seems ineffective.

Is there some larger "get the public used to military service" social goal?

← PreviousPage 5 of 15Next →