Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ben_h
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
Ruby 2.0 by example
(benhoskin.gs)
2 points
by
ben_h
14y ago
|
0 comments
2.
▲
by
ben_h
14y ago
Absolutely. At theconversation.edu.au we run a content site—we publish the news, which is the same for everyone. This means we can cache the front page and all the articles as static HTML, and then annotate the page with user info for signe
3.
▲
by
ben_h
14y ago
Great post. I didn't understand the role of controllers and directives but this explained them well with a thoughtful walk through. The idea of wrapping distinct chunks of logic in separate directives that can then be sprinkled around the D
4.
▲
by
ben_h
14y ago
You can configure `git push` to push just the current branch to its configured remote, by setting 'push.default' to 'upstream'. `git config --global push.default upstream` The relevant docs (droplr'd, since you can't anchor-link into the on
5.
▲
by
ben_h
14y ago
Hope was definitely a bad choice of word. By that I meant, the sort of tight query you'd hope an ORM would deliver. Anyhow, it's a matter of taste, but what may appear at first as hieroglyphics actually is straightforward. It's just that co
6.
▲
by
ben_h
14y ago
Good point, #merge isn't itself an arel method. I say arel because it's the core sitting behind the #merge / #where / #joins frontend -- but AR::Relation deserves credit too :)
7.
▲
Arel merge, rails' hidden gem
(benhoskin.gs)
79 points
by
ben_h
14y ago
|
16 comments
8.
▲
by
ben_h
15y ago
The frame showing Facebook vs Greek debt is particularly good. We ran a piece in a similar vein last week: http://theconversation.edu.au/how-david-beckham-caused-globa...
9.
▲
by
ben_h
16y ago
Good explanation, thanks. The part I don't understand is the POST hitting the victim app. I don't know django but rails apps require an authenticity token to be included in all non-GET requests. How does the attacking app satisfy this token
10.
▲
by
ben_h
16y ago
Worked a treat, cheers.
11.
▲
by
ben_h
16y ago
Agree to disagree :) The only Flash component is the embedded screencast, which is hosted at Vimeo and downloadable as an mp4: http://vimeo.com/6782671
12.
▲
by
ben_h
16y ago
I should have copied and pasted instead of typing it out :) Thanks for the correction, fixed.
13.
▲
by
ben_h
16y ago
Thanks for submitting this, speek :) For those that are interested in trying out babushka, here's a 30 second crash course. To install: bash -c "`curl -L babushka.me/up`" # If you're on a Mac bash -c "`wget -O - babushka.me/up`" #
14.
▲
by
ben_h
16y ago
It's a really good question, and one I probably should answer more directly on the website and in the README. As I wrote above, I have a lot of time for these other tools—in fact the creators of sprinkle (Marcus Crafter) and deprec (Mike Ba
15.
▲
by
ben_h
16y ago
Hey, that's cool—pretty tempting to start using that reference retrospectively. Maybe a few canvas-animated butterflies on the website? :) Cheers!
16.
▲
by
ben_h
16y ago
Hi, great questions. Chef and puppet have a lot to offer. In particular, there are things that chef and puppet can do that babushka can't, like orchestrating ecosystems of multiple machines, and provisioning new hardware automatically. Depl
17.
▲
by
ben_h
16y ago
Yep, I was aware of that :) I chose babushka because here in Australia at least, the nested Russian dolls are known as babushka dolls. (Also, Matryoshka is kind of already taken by the video container format http://www.matroska.org/ ). And
18.
▲
by
ben_h
17y ago
Speculation, but I think it makes sense: http://blog.acooper.org/2009/12/speculation-the-real-villain... tl;dr: Labor are using the filter as a political means to an end, to court the conservative Christian senator Steve Fielding's vote o
19.
▲
by
ben_h
18y ago
(the irritating html-escaping bug will be fixed as soon as voting's over - couldn't squeeze the fix inside 10 lines!)
20.
▲
by
ben_h
18y ago
I was in a team of four, we built Twippet: http://railsrumble.twippet.com It's code sharing over the twitter network. Throw up some code snippets, enter your twitter creds (pass not stored) to verify your twitter account and scrape your f
21.
▲
by
ben_h
18y ago
If you're going to serve Javascript over SSL, you need a full SSL setup including a valid certificate, etc. If you have that, you may as well just serve the login form itself over HTTPS, redirecting back to HTTP after logging the user in, a