Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nthj
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
25 ms
·
181.
▲
by
nthj
12y ago
Instead of symlinking ~/.pow/example to (say) ~/Sites/example, you can `echo 3000 > ~/.pow/example` and example.dev will now point to port 3000. This lets you boot up your Rails app normally, or via Procfile
182.
▲
by
nthj
13y ago
So have the customer hash her list with a salt, and you hash your list with the same salt, and everyone goes home for dinner.
183.
▲
by
nthj
13y ago
The IRS is not paying $11M for the development know-how to maintain security; it's true that they could probably shop around and find the services they need for much less. No, they're paying $11M so they can say "We paid Micr
184.
▲
by
nthj
13y ago
1. Purchase access to the club for $10K/year 2. Wait for next vulnerability 3. Immediately sell details to hackers via bitcoin 4. ??? 5. PROFIT
185.
▲
by
nthj
13y ago
> So the real question is: by donating money to the Proposition 8 cause, was Eich exercising his right to free speech? or was he taking a discriminatory action? As I learned in High School Debate Club, most un-winnable, never-ending argu
186.
▲
by
nthj
13y ago
> unless it's obvious you're just reading an article or something. Generally agree with you, although just because I'm reading an article doesn't mean it's a good time to ask me a question. Right now, my brain is
187.
▲
by
nthj
13y ago
I think it was this one, but unfortunately I can't find the whole video. https://www.youtube.com/watch?v=mp4z2eK1Avw http://johannesbrodwall.com/2007/02/27/crud-rest-rails/
188.
▲
by
nthj
13y ago
Redis, yes. Perfect for this kind of thing. delayed_job might make less sense, since delayed_job still INSERTs to the database. I haven't benchmarked it specifically but I'd have to guess your time savings to store the information
189.
▲
by
nthj
13y ago
> Additionally, I find that the key problem with bloated models stems from missing domain models (often has-many-through models). Not from moving the logic of the existing models into more noun classes. When I first started learning Rail
190.
▲
by
nthj
13y ago
> Is there some left/right brain separation that keeps techies from being charistmatic Nah. It's just that most techies are too busy doing brain things to learn soft skills like how to interact with people. — a guy who struggle
191.
▲
by
nthj
13y ago
Welcome! If you want to grab a beer, I'm @thenthj on twitter.
192.
▲
by
nthj
13y ago
That's fine, as long as you recognize that is your choice. "mullingitover" had the thesis that freedom doesn't really have anything to do with not having a family, that it's entirely related to expenses. But not hav
193.
▲
by
nthj
13y ago
> I'm 36 and make above the average income for a person in Los Angeles Location, location, location. My dad moved his family to a place he could afford so he could take care of them. I could make the same salary in San Francisco tha
194.
▲
by
nthj
13y ago
They might cache the first n pages, too.
195.
▲
by
nthj
13y ago
I see what you mean. I'd suggest that longer, more descriptive method names can help here, though. If I'm referring to a method body to understand what it does when reading another block of code, the method probably doesn'
196.
▲
by
nthj
13y ago
> As a tech guy, I always feel extremely guilty about it As a tech guy, business people routinely dump big piles of raw data in my office every few days. I mutter a bit about how this is why we invented databases and then laugh all the w
197.
▲
by
nthj
13y ago
> POROs are great, though. Our app/models is full of them. We even added app/services too. The trouble I have is with people who, like you, fall in love with the flawed notion that their application is such a special snowflake
198.
▲
by
nthj
13y ago
As of Rails 3.0, I believe app/anything/ is autoloaded: * https://github.com/rails/rails/blob/3-0-stable/railties/test... * http://hakunin.com/rails3-load-paths
199.
▲
by
nthj
13y ago
> If they were competent then they would know that no serious threats will be discussed in world of Warcraft or over yahoo messenger. Or they're pretending to be incompetent so they have an excuse to swallow up World of Warcraft and
200.
▲
by
nthj
13y ago
I was really curious to see the pull request, so I hunted it down: https://github.com/sstephenson/sprockets/issues/506 Edit: if you just want to install a gem and skip the why, the parent has this blog post:
201.
▲
by
nthj
13y ago
It can be less about scalability and more about user experience. I have several apps that I only need one or two dynos to run, but I invested in caching/performance anyway because it's a better experience for the (few, high-paying
202.
▲
by
nthj
13y ago
If it's really "simple" (not dynamic, or doesn't change often), you should throw the whole site behind a CDN. Then you can support tens of thousands of users very in expensively.
203.
▲
by
nthj
13y ago
CircleCI is another option: https://circleci.com
204.
▲
by
nthj
13y ago
Hey Sergio, my agency's website [1] has been happily hosted on Heroku for a year and I pay approximately $0 for it. You have to set up your site for performance—caching, CDN, use Unicorn, the like—but unless you have something like 30
205.
▲
by
nthj
13y ago
One cool trick for serving mixed http/https that I somehow went 10 years without finding out: you can just point your Rails asset_host to "//d3vam04na8c92l.cloudfront.net". Browsers understand this to mean "Lo
206.
▲
by
nthj
13y ago
> e.g. "But you should NEVER serve static assets directly!!!". As with music, painting, and architecture, any development-related NEVERS require that we understand the why, so we can know when to break the rule.
207.
▲
by
nthj
13y ago
I'm really glad to see Heroku focusing on these types of optimizations. We've been using similar optimization strategies internally at my Rails consultancy for over a year [1], and it's amazing how much fun it is to ship fea
208.
▲
by
nthj
13y ago
Yeah, that's frustrating. I might suggest you just serve them from your app [1], and use CloudFront with a custom origin to take over from there. I can deploy a Rails 4 app in ~20 seconds. [1] http://guides.rubyonrails.org&#
209.
▲
by
nthj
13y ago
> We will purchase a $600 rice cooker. If you had A/B tested for optimal responses, this wouldn't have happened.
210.
▲
by
nthj
13y ago
I'd be really interested to know more about how the switch shaved 40% off of the response times. What was the major bottleneck? RAM? CPU? Network IO to PostgreSQL? Network IO to memcache? Heroku is offering 2X and soon, 4X dynos; did h
More ›