Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mhartl
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
53 ms
·
541.
▲
by
mhartl
14y ago
The price will eventually stabilize (possibly at 0).
542.
▲
by
mhartl
14y ago
They're not that different, so if you're just starting out I recommend following the more stable 3.2 version. Once you've finished that, you'll be in a position to learn the Rails 4.0–specific material very quickly (especially once the supp
543.
▲
by
mhartl
14y ago
You're right, of course, but it's not just that. In previous versions of Rails, the default page (a static file served out of the public/ directory) worked just fine on Heroku. It was only the magical “About your application’s environment”
544.
▲
by
mhartl
14y ago
Thanks for sharing your story. Glad to hear it! :-)
545.
▲
by
mhartl
14y ago
All right, based on everyone's feedback I was able to get things working on Heroku and have updated the news post and book accordingly. Thanks! HN rocks.
546.
▲
by
mhartl
14y ago
Completely new features like TurboLinks aren't covered yet (they will probably be in the full third edition later this year), but additions like strong parameters and the new Active Record finders are covered. Glad you like the book!
547.
▲
by
mhartl
14y ago
Thanks! That link had the missing piece, which is to configure Rails to serve static assets. See https://news.ycombinator.com/item?id=5411968 .
548.
▲
by
mhartl
14y ago
Thanks. Yes, I just realized that it's "working", even though it shows an error. See https://news.ycombinator.com/item?id=5411968 . This is new behavior in Rails 4.0, which is why it threw me. The default page works on Heroku going back to
549.
▲
by
mhartl
14y ago
Thanks. I think I know what the problem is. Tracking it down now... Edit: Yes, I figured it out. In Rails 4.0, the default page for a new app is no longer served as a static file from the public/ directory. Instead, something magical happ
550.
▲
by
mhartl
14y ago
Even with an explicit Ruby line in the Gemfile, I get this error: $ heroku logs . . . heroku[slugc]: Slug compilation failed: unrecognized error Here's the Gemfile: source 'https://rubygems.org' ruby '2.0.
551.
▲
by
mhartl
14y ago
Please do send feedback! Any significant structural changes will have to wait until the next full edition (slated for production later this year), but bug and typo reports are hugely appreciated. I typically process such reports as an email
552.
▲
The Ruby on Rails Tutorial for Rails 4.0 (beta)
(news.railstutorial.org)
195 points
by
mhartl
14y ago
|
44 comments
553.
▲
by
mhartl
14y ago
Bitcoin doesn't have built-in deflation; it has built-in hardness: a(n eventual) strictly fixed supply. Deflation comes from currency concentration; inflation comes from currency dilution. Bitcoin has neither.
554.
▲
by
mhartl
14y ago
Virtually no mainstream economist advocates a perfectly hard currency. This is either an indictment of hard currencies, or an indictment of mainstream economists. You can probably guess how I feel. Unfortunately, discussions on this subject
555.
▲
by
mhartl
14y ago
It's worth nothing in this context that the OP and many of the commenters here might have trouble landing a job at 37signals because they are misspelling the name of the company: http://37signals.com/svn/posts/1088-how-not-to-apply-for-a-j
556.
▲
by
mhartl
14y ago
Ah, so following Greenspun's tenth rule [1], perhaps we have this: Any sufficiently complicated web application contains an ad hoc, informally specified, bug-ridden, slow implementation of half of Ruby on Rails. [1] http://en.
557.
▲
by
mhartl
14y ago
This actually sounds like a promising idea, though only if you've got insane dev chops on the founding team. In the Ruby world, Sinatra would be the obvious place to start. On the other hand, you might just end up reinventing Rails.
558.
▲
by
mhartl
14y ago
I think the main value of Bitcoin is that it's a perfectly hard currency, not that's it's anonymous (or not). Monetary dilution is alarmingly easy with today's fiat currencies, and replacing them with Bitcoin would fix that basic flaw. ( Di
559.
▲
by
mhartl
14y ago
I continue to be impressed at how cleverly Y Combinator hacks investing. What a breath of fresh air!
560.
▲
by
mhartl
14y ago
Consider Bulirsch-Stoer. https://en.wikipedia.org/wiki/Bulirsch%E2%80%93Stoer_algorit...
561.
▲
by
mhartl
14y ago
If you're serious about learning history, there's no substitute for reading primary sources: http://books.google.com/ Remember that the cliché is right: the winners write the history books. The antidote is primary documents (and humility)
562.
▲
by
mhartl
14y ago
The minimum wage is as perfect a litmus test as we have for separating those who think they understand basic economics from those who actually do.
563.
▲
by
mhartl
14y ago
Furthermore, I believe it is only included in the extended edition of The Two Towers (but I could be wrong on that point). You're right if you s/The Two Towers/Return of the King/
564.
▲
by
mhartl
14y ago
There's a natural monopoly in a medium of savings used to defer consumption. Among competing currencies, the winner is the "bubble that doesn't pop". Until the monopoly is established, though, volatility is to be expected, as it would be wi
565.
▲
by
mhartl
14y ago
The attention to detail cracks me up. It even has a test suite!
566.
▲
by
mhartl
14y ago
I've definitely spent too much time in Fairbanks (flying Alaska Airlines, natch), because when I read The temperature that evening was a brain-numbing minus 16 degrees Fahrenheit I thought, "Oh, 16 below isn't so bad. 40 below—now that's
567.
▲
by
mhartl
14y ago
Musk's plan in a way serves as a reminder for those of us that tend to overestimate the role luck plays in the personal journey towards entrepreneurial success. I agree that Elon's results with Tesla and Space X are not principally (or ev
568.
▲
by
mhartl
14y ago
I think a lot of Asian parents in particular have good intentions in this regard but don't understand the realities of a career in medicine. The hours in medicine are brutal, the pay is much less than most people believe, and virtually ever
569.
▲
by
mhartl
14y ago
It's interesting to note that (unless I missed something) all the struggling ambitious 20-somethings interviewed for the article are women. (I don't include Ross Perlin, who was interviewed not because he's struggling but because he wrote
570.
▲
by
mhartl
14y ago
The original joke goes like this: Why is 6 afraid of 7? Because 7 8 [ate] 9. In octal, this reads "Because 7 10 11", which doesn't work because our tendency is to read it as decimal, yielding "seven ten eleven".
More ›