78 karma · joined Sep 6, 2011 (15y ago) · 43 submissions
1.
Mixed Content Blocking Enabled in Firefox 23(blog.mozilla.org ↗)
1 points · by pindi · 13y ago · discuss
comment 13y ago · link · parent
Now it's basically a 50-50 chance of which transaction will make it into the ledger and which will be rejected as invalid because the input was already spent. If you have your own compute power, you can shift this, up to the extreme of having >50% of the total power, in which case you can guarantee B is accepted, since you can outmine any chain that includes A. However, there is no reason you would need to forfeit any reward if you personally mine the block with the transaction in it.
Confirmations shift the probabilities back towards the merchant, since no honest node will mine on a chain not already including A because the one including A is longer. In this case you must mine secretly on the chain including B until it exceeds the length of the chain including A. This absolutely requires more than 50% of the network compute power, since you must totally outmine the honest network. But again, if you can get the length of chain B up to the point where it exceeds chain A, the block rewards in chain B are yours and those in chain A are forfeit.
4.
Getting started with Puppet(pindi.us ↗)
1 points · by pindi · 13y ago · discuss
comment 13y ago · link · parent
The first commenter proposes a device that would use a Molex connector. The second points out that the device needs to interface with a wire not found on the Molex 8981 connector, a useful correction. The third makes the inane observation that Molex the company makes many connectors, when it is obvious that the first two commenters were referring to the Molex 8981 connector specifically.
comment 13y ago · link · parent
comment 13y ago · link · parent
comment 13y ago · link · parent
comment 13y ago · link · parent
Am I missing something? What's wrong with:
return HttpResponse(json.dumps(data), mimetype='application/json')
Wrap it up in a convenience function and you're done.The JSONResponse class suggested automatically implements JSONP, which is extremely dangerous. Consider a view on /accounts/info which returns some information about the currently logged in user. A malicious site could embed
<script src="http://example.com/accounts/info?callback=someFunction">
and access the account information of any user logged into your site. JSONP is a technique to bypass the same-origin policy in appropriate cases; don't just blindly apply it everywhere or you're giving up the protection of the policy.comment 13y ago · link · parent
comment 13y ago · link · parent
I would think that using mixins should also count as having eliminated redundancy. A simple solution would be to ignore them, or more ideally the redundancy check could treat mixins just as a normal rule, so that it could detect using the same set of mixins in multiple places as redundancy.
comment 13y ago · link · parent
comment 13y ago · link · parent
16.
Show HN: StudyRoom, our social learning platform for online students(getstudyroom.com ↗)
3 points · by pindi · 13y ago · discuss
comment 13y ago · link · parent
18.
Debugging a race condition with client-side load balancing(pindi.us ↗)
2 points · by pindi · 13y ago · discuss
comment 13y ago · link · parent
If you did somehow create a block that all clients except yours crashed on, you still wouldn't gain control of the network because the difficulty of creating a new block is calibrated according to the total power of the network, and only re-calibrates every few blocks. So for a while, you would still be effectively competing against the former power of the network, giving the client developers time to fix the crash.
comment 13y ago · link · parent
comment 13y ago · link · parent
I use it to manage just 5 servers, with a Fabric script that rsyncs the manifests up to the servers then runs `puppet apply` to apply the changes.
comment 13y ago · link · parent