Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ollysb
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
211.
▲
by
ollysb
12y ago
I can't see any reason why application logic would be any less robust on the client vs the server. With regards to authorization there's examples from the nosql world, e.g. couchbase's sync gateway[1]. You could argue that yo
212.
▲
by
ollysb
12y ago
I'd love to see a jsonapi[1] interface to postgres. I'm mainly building ember apps at the moment and the rails layer is really just an interface straight onto the database(all the logic is client side). [1] http://jsona
213.
▲
World's first manned flight with an electric multicopter[video]
(youtube.com)
1 points
by
ollysb
12y ago
|
0 comments
214.
▲
by
ollysb
12y ago
This might actually be a great vehicle for promoting more secure technology. For many people this hits a lot closer to home than any of the arguments that were presented with the NSA revelations.
215.
▲
by
ollysb
12y ago
I always keep this in my boot.rb SAFE_ENV = Proc.new do |name| ENV[name].tap{ |value| raise "Environment variable #{name} is missing" unless value } end and then for any required env vars I use SAFE_ENV instead
216.
▲
by
ollysb
12y ago
Their proposed solution offers more flexibility in that you can use media queries to specify the upper/lower bounds and also specify the filenames. This feels over-engineered though, firstly because the above solution provides enough i
217.
▲
by
ollysb
12y ago
Another option would be to allow the source to be specified in css (stylesheets are loaded before images anyway). Then you could do <img id="cats" src="fallback_for_old_browser.png" /> @media (max-w
218.
▲
by
ollysb
12y ago
A simpler solution might be <img src="image.jpg" sizes="640,800,1024"/> Then then the browser can choose the most appropriate size based on the screen size. The filenames would simply follow the conve
219.
▲
by
ollysb
12y ago
I'm not going to claim that I know one way or the other (I think it's pretty difficult at this point) but here's another data point, http://humanrightsinvestigations.org/2014/05/12/pew-poll-cri.
220.
▲
by
ollysb
12y ago
This is definitely how siesta time goes in Southern Spain. It seemed an odd habbit when I was introduced to it but it definitely does the job.
221.
▲
by
ollysb
12y ago
Downvoters care to add anything to the debate? (perhaps which country you're from)
222.
▲
by
ollysb
12y ago
Legal or not they do seem to represent the will of the people, http://www.aljazeera.com/news/europe/2014/03/crimea-celebrat...
223.
▲
by
ollysb
12y ago
"Occupied Crimea" is a bit debatable isn't it? (seeing as the citizens voted for and celebrated joining with Russia)
224.
▲
by
ollysb
12y ago
From my experience in Granada it's pretty relaxed. I recall going to a Granada football game(they're in the top division), with a policeman standing on the steps next to my seat there was some guys smoking some joints right in fro
225.
▲
by
ollysb
12y ago
The killer feature for me would be able to "expand" method implementations at a call site e.g. class UserController def create ... UserMailer.send_invitation(user) # expanded line def send
226.
▲
by
ollysb
12y ago
This seems like a perfect example of a pattern applied in the wrong way. The builder pattern is supposed to be used to construct new instances (in other languages named parameters make it pretty redundant). I could perhaps understand allowi
227.
▲
iPhone 6: mass production of new sapphire screens begins
(theguardian.com)
2 points
by
ollysb
12y ago
|
0 comments
228.
▲
by
ollysb
12y ago
Nice game! On an iphone I had my thumbs on either side of the hex, I find that I often hit the reset button with my left thumb, maybe move the controls to the top?
229.
▲
by
ollysb
12y ago
>> The problem with operational semantics is exactly that of imperative code: in order to understand what some code will do, you need to know everything which 'happened before' (ie. the current state of the machine). Wouldn&
230.
▲
by
ollysb
12y ago
I use ember full time now but I have done projects in angular. IMHO the directives were by far the cruftiest part of the experience, they had their own structure which didn't really fit with the rest of the framework. This in part beca
231.
▲
by
ollysb
12y ago
Out of curiosity are they using ember-cli? (which has even stronger conventions)
232.
▲
by
ollysb
12y ago
I'd be interested to know what their lifestyle is, are they spending the majority of their lives watching insipid TV? (That would certainly be enough to depress me...)
233.
▲
by
ollysb
12y ago
I don't see any reason you couldn't have the greater of: a fixed term (say 20 years) or when the author dies (I don't have any problem at all with an author living off their own work for as long as they live).
234.
▲
by
ollysb
12y ago
I can't help but feel that it would be fair for copyright to stay with an author until they die.
235.
▲
by
ollysb
12y ago
>> It's just that the behavior we see in the universe suggests that galaxies, clusters of galaxies, clusters of clusters, etc. contain more matter than we are able to detect, since if they contained only the matter visible to us
236.
▲
by
ollysb
12y ago
That seems incredibly easy to represent as a patch patch /users/1 { active: true } or as patch for json patch /users/1 { "replace": "/active", "value": true }
237.
▲
by
ollysb
12y ago
No one gets voted on by the public unless they've bought themselves into the vote in the first place. The public just gets to vote between the few dozen people that can raise enough money to get there.
238.
▲
by
ollysb
12y ago
>> that price gouging actually makes everyone better off by ensuring greater supply and allocating the supply to (approximately) those with the greatest demand I think the issue is that it's not those with the "greatest dema
239.
▲
by
ollysb
12y ago
Why not just memoize the result of the slow function?
240.
▲
by
ollysb
12y ago
It leaves me wondering, are the parameters also scoped to the class(seeing as they're declared at the same time)? Wouldn't this cause an issue with concurrent access to the function?
More ›