Search found 54 matches

by Mazzula
Fri Apr 11, 2014 2:25 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1353: "Heartbleed"
Replies: 99
Views: 32056

Re: 1353: "Heartbleed"

I was copying straight from the patch that introduced the bug, although your version makes more sense - perhaps the original patch contained a different bug that was quickly patched? The bug first went into the wild with version 1.0.1, on March 14, 2012. The source tarball is here... http://www.ope...
by Mazzula
Thu Apr 10, 2014 2:07 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1353: "Heartbleed"
Replies: 99
Views: 32056

Re: 1353: "Heartbleed"

Let's take a practical view of how the code would change by switching to STL. […] unsigned char *buffer, *bp; int r; buffer = OPENSSL_malloc(1 + 2 + payload + padding); bp = buffer; *bp++ = TLS1_HB_RESPONSE; s2n(payload, bp); memcpy(bp, pl, payload); RAND_pseudo_bytes(p, padding); r = dtls1_write_b...
by Mazzula
Thu Apr 10, 2014 1:05 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1353: "Heartbleed"
Replies: 99
Views: 32056

Re: 1353: "Heartbleed"

For security-sensitive applications, I think Haskell has a lot to offer. You've got the famous purity guarantee … If a program actually has no side effects, how can you tell if it is running? Even if such side effects are limited to I/O, how can a program be forbidden to use I/O (e.g. to a file sys...
by Mazzula
Thu Apr 10, 2014 3:29 am UTC
Forum: Individual XKCD Comic Threads
Topic: 1353: "Heartbleed"
Replies: 99
Views: 32056

Re: 1353: "Heartbleed"

For security-sensitive applications, I think Haskell has a lot to offer. You've got the famous purity guarantee … If a program actually has no side effects, how can you tell if it is running? Even if such side effects are limited to I/O, how can a program be forbidden to use I/O (e.g. to a file sys...
by Mazzula
Thu Apr 10, 2014 3:14 am UTC
Forum: Individual XKCD Comic Threads
Topic: 1353: "Heartbleed"
Replies: 99
Views: 32056

Re: 1353: "Heartbleed"

<tinfoil hat on> So, what's known about Heartbleed's provenance? By which I mean, how do we know the NSA didn't plant it intentionally? <tinfoil hat off> It always seemed suspicious to me that Al Gore suddenly stopped pushing for the Clipper Chip/Skipjack mandate, with its explicit backdoor. I figu...
by Mazzula
Thu Apr 10, 2014 2:51 am UTC
Forum: Individual XKCD Comic Threads
Topic: 1353: "Heartbleed"
Replies: 99
Views: 32056

Re: 1353: "Heartbleed"

I get why it has a heartbeat, I'm just not sure why it would be "the client sends whatever it wants, and the server echoes it" as opposed to "the client sends a specific, pre-defined message, and the server responds with a different pre-defined message". I suppose it could be to...
by Mazzula
Thu Apr 10, 2014 1:28 am UTC
Forum: Individual XKCD Comic Threads
Topic: 1353: "Heartbleed"
Replies: 99
Views: 32056

Re: 1353: "Heartbleed"

I'm curious why the people who initially designed the protocol allowed for clients to send arbitrary heartbeat requests in the first place, as opposed to making it a standardized message or at least of standard length. Was there a specific use they had in mind for that ability, or was it just an ar...
by Mazzula
Thu Apr 10, 2014 1:11 am UTC
Forum: Individual XKCD Comic Threads
Topic: 1353: "Heartbleed"
Replies: 99
Views: 32056

Re: 1353: "Heartbleed"

In order for OpenSSL to be widely accepted and deployed it had to be fast, faster than just about anything else at doing the job. Otherwise it simply wouldn't get used enough to become the de facto standard implementation, and that would likely have led to worse loopholes in the alternative wide var...
by Mazzula
Wed Apr 09, 2014 5:18 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1353: "Heartbleed"
Replies: 99
Views: 32056

Re: 1353: "Heartbleed"

Heartbleed is yet another example of why coding in C is a bad idea. A memcpy with an incorrect size caused all this because C compilers do no bounds checking. Heartbleed wouldn't have happened if OpenSSL had been written in, for example, Ada. Instead of an information leak that leaves no trace it w...
by Mazzula
Wed Apr 09, 2014 12:58 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1353: "Heartbleed"
Replies: 99
Views: 32056

Re: 1353: "Heartbleed"

rhomboidal wrote:I don't think there's enough earth in the Earth for clay tablets to store all the erotic fanfiction online.

Does it have to be clay tablets? Is IIS simply unthinkable?
by Mazzula
Mon Jan 27, 2014 4:46 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1321: "Cold"
Replies: 517
Views: 92655

Re: 1321: "Cold"

Half past 10 in the current system would be 23:43 in new time, 10:30 in the new system would be 04:20 on a current clock. Might take a bit of selling to people. :D I agree it is a tough sell, but I don't think it is a tough sell for that reason. That is essentially the rationale that says the metri...
by Mazzula
Mon Jan 27, 2014 3:35 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1321: "Cold"
Replies: 517
Views: 92655

Re: 1321: "Cold"

Next, we'll talk about units of weight, distance, and volume: it's bizarre how the US is so backwards on this narrow subject. Almost like they yearn for the old days of subjugation and empire. "Pounds" always makes me think of Britain and the queen. And does anyone really know what a gall...
by Mazzula
Mon Jan 27, 2014 2:20 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1321: "Cold"
Replies: 517
Views: 92655

Re: 1321: "Cold"

A common argument I hear for using Imperial measurements is that "it's better to divide things into 12, as it has more factors". My standard response is to ask what a twelfth of a mile is, and nobody has been able to answer off the top of their head. :? But most US schoolchildren know tha...
by Mazzula
Mon Jan 27, 2014 12:10 am UTC
Forum: Individual XKCD Comic Threads
Topic: 1321: "Cold"
Replies: 517
Views: 92655

Re: 1321: "Cold"

I think the main problem with climate change is that there is really no clear solution to the problem of CO2 emissions. How about an artificial recreation of something like the Azolla Event, which reduced CO2 levels from those present during the Eocene Climatic Optimum (about 3500 ppm) to less than...
by Mazzula
Fri Aug 16, 2013 3:11 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1252:"Increased Risk"
Replies: 45
Views: 11860

Re: 1252:"Increased Risk"

Agreed. A 1% risk should be represented as a 99% likelihood of avoiding the event.

On the other hand, there are so many small risks that the likelihood of something bizarre happening is actually pretty good.
by Mazzula
Thu Jul 25, 2013 2:01 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1240: "Quantum Mechanics"
Replies: 201
Views: 45586

Re: 1240: "Quantum Mechanics"

No, you miss my point. I'm not saying we can't trust our waking memories because time may not exist, therefore you can't be sure you experienced a dream. I'm saying that even if we grant the existence of objective reality and past and future and the notion that experience and memory are at least us...
by Mazzula
Thu Jul 25, 2013 1:12 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1240: "Quantum Mechanics"
Replies: 201
Views: 45586

Re: 1240: "Quantum Mechanics"

"Clearly"? You're begging the question now: It only seemed that I was begging the question because you left out the supporting argument in the sentence which followed the "Clearly". The bit about a consequence of the negation of the "Clearly" idea being that awareness ...
by Mazzula
Wed Jul 24, 2013 9:55 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1240: "Quantum Mechanics"
Replies: 201
Views: 45586

Re: 1240: "Quantum Mechanics"

In *EVERY CASE* that we can know for sure whether the observing awareness arises from the operation of the observed parts, we find that it does not. Well yeah, when you beg the question you get the result you want. You're claiming that we can't know for sure whether our real observing awareness ari...
by Mazzula
Wed Jul 24, 2013 9:42 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1240: "Quantum Mechanics"
Replies: 201
Views: 45586

Re: 1240: "Quantum Mechanics"

Imagine that we found out a model that describes us as a product of some specific cellular automaton. Imagine that the model is falsifiable in an area where its predictions have an utility value for us (for example, it predicts that while the maximum speed of information propagation on uniform stru...
by Mazzula
Wed Jul 24, 2013 4:28 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1240: "Quantum Mechanics"
Replies: 201
Views: 45586

Re: 1240: "Quantum Mechanics"

This is related to the fact that it is not possible for a computer program to tell whether it is running on a simulated computer, and also that it is not possible for a state within a state machine to contain the information that says it is the current state. In the ontological sense, it's not. But...
by Mazzula
Wed Jul 24, 2013 4:01 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1240: "Quantum Mechanics"
Replies: 201
Views: 45586

Re: 1240: "Quantum Mechanics"

I understand where it comes from now, but wouldn't the consciousness of a virtual machine be identical to one on physical hardware? Isn't it the hardware that is emulated, as opposed to the software? I don't tend to call my browser a virtual browser when it would be run on a virtual machine. Then a...
by Mazzula
Wed Jul 24, 2013 3:49 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1240: "Quantum Mechanics"
Replies: 201
Views: 45586

Re: 1240: "Quantum Mechanics"

What would a virtual consciousness be? Would it be distinct from other consciousnesses in any way other than running on virtual hardware? Ah. Sorry to be unclear, I'm not trying to establish different kinds of consciousness here. My point is that if our world were a virtual environment, and my perc...
by Mazzula
Wed Jul 24, 2013 12:56 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1240: "Quantum Mechanics"
Replies: 201
Views: 45586

Re: 1240: "Quantum Mechanics"

Are you saying that your experience of self is of something distinct from your brain, eyes and emotions? In that case, my response is "You're probably wrong". Seems like special pleading. If the subjective experience of reality can be generated by the objects it perceives, then why does t...
by Mazzula
Tue Jul 23, 2013 5:35 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1240: "Quantum Mechanics"
Replies: 201
Views: 45586

Re: 1240: "Quantum Mechanics"

And Bell's Theorem pretty much counters that counterargument, by removing the possibility of local hidden things (i.e. souls) influencing what we observe. Bell's Theorem doesn't remove the possibility of souls, because souls are not local things. It isn't that one's physical body carries around a s...
by Mazzula
Mon Dec 27, 2010 1:01 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0836: "Sickness"
Replies: 299
Views: 56343

Re: 0836: "Sickness"

I would say that in this circumstance "not-D" is my will (the desire I "ultimately" act on), but that I do not have freedom of it, because I cannot change it. In that example, you say you cannot change that particular desire. I don't think we meaningfully choose any desires. At ...
by Mazzula
Fri Dec 24, 2010 6:55 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0836: "Sickness"
Replies: 299
Views: 56343

Re: 0836: "Sickness"

I think that the most meaningful definition of free will is the alignment of outcome with desire. I agree that that is the correct definition of freedom generally. If you desiring something about X is causally effective upon X, then you are in the broadest sense "free to X". There are mor...
by Mazzula
Thu Dec 23, 2010 11:23 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0836: "Sickness"
Replies: 299
Views: 56343

Re: 0836: "Sickness"

But anyways, for me the debate is more than just something interesting to talk about...it's a serious personal issue, and I probably shouldn't take this much further here (if any further at all). I don't believe myself to be religious (I'm damn confused and undecided as far as beliefs go, if any), ...
by Mazzula
Wed Dec 22, 2010 2:58 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0836: "Sickness"
Replies: 299
Views: 56343

Re: 0836: "Sickness"

The fundamental nature of reality is ineffable, but science is still a great thing. Science, economics, ethics, etc all help us to understand how to understand the relationships between aspects of the world we have, but they don't create being-ness from non-being. It is easy to see that the fundamen...
by Mazzula
Wed Nov 10, 2010 2:54 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0817: "Mutual"
Replies: 202
Views: 39941

Re: 0817: "Mutual"

"A universe that needed someone to observe it in order to collapse it into existence would be a pretty sorry universe indeed." What does the word "exist" mean, if it is divorced from the idea of the possibility of being experienced? Suppose I describe two apples which are alike i...
by Mazzula
Fri Jul 30, 2010 3:35 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0704: "Principle of Explosion"
Replies: 104
Views: 32053

Re: "Principle of Explosion" Discussion

Yes, also true. But the point of the principle of explosion is that when you have a contradiction in the system then you can show any statement to be true. Thus any of those numbers is in fact your Mom's number. No, that isn't the point of the principle of explosion (although it may be the point of...
by Mazzula
Thu Feb 25, 2010 12:46 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0704: "Principle of Explosion"
Replies: 104
Views: 32053

Re: "Principle of Explosion" Discussion

edit: Consider phlips' raincoat example. I tell you that "If it will rain tomorrow, then I will wear a raincoat." Now suppose it does not rain tomorrow - then you say "Perhaps if it had rained today, you would not have worn a raincoat. Since it didn't rain, it's impossible to tell.&q...
by Mazzula
Tue Apr 21, 2009 1:04 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0571: "Can't Sleep"
Replies: 141
Views: 29221

Re: "Can't Sleep" Discussion

I use size_t for indices and counts in general, since size_t will be able to represent any size/number of objects you can actually allocate on that platform. Too lazy to dig up documentation ATM, but e.g. wcslen (strlen for wchar_t strings) returns a size_t. Also, C++ containers seem to use size_t ...
by Mazzula
Mon Apr 20, 2009 8:53 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0571: "Can't Sleep"
Replies: 141
Views: 29221

Re: "Can't Sleep" Discussion

Was I the only one who immediately thought "sheepCount should be size_t, not a long int" when reading the alt text? It's what they're there for, after all... I believe that size_t is for the size of structures and other memory objects, not for numbers of arbitrary objects. There are lots ...
by Mazzula
Mon Apr 20, 2009 8:43 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0571: "Can't Sleep"
Replies: 141
Views: 29221

Re: "Can't Sleep" Discussion

I used to declare sheepCount as a double, just to be on the safe side. But then I started having nightmares about fractional sheep. Doubles can overflow too, I believe. Well, they can, but they won't overflow by repeatedly adding 1. Before they overflow they will just stop changing. For example, a ...
by Mazzula
Mon Apr 20, 2009 2:55 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0571: "Can't Sleep"
Replies: 141
Views: 29221

Re: "Can't Sleep" Discussion

darkspork wrote:My mind works this way as well. It's always out to screw me over. Interesting how all of the sheep can count to 764,586.

:lol: On a similar note, when I wanted to fill memory with fixed content, I chose to fill each byte with 238, so it could be done without difficulty.
by Mazzula
Wed Apr 01, 2009 3:54 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0563: "Fermirotica"
Replies: 169
Views: 57397

Re: "Fermirotica" Discussion

MiserereNobisAlex wrote:Close, but there needs to be a Dirac delta function, whose input is 0 if you are in a fraternity and 1 otherwise, in the expression.

:twisted: That would be a Kronecker delta, whose output is 0 or 1. The value of the Dirac delta is never 1. Ruined the joke for me.
by Mazzula
Wed Feb 18, 2009 6:23 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0545: "Neutrality Schmeutrality"
Replies: 137
Views: 51934

Re: "Neutrality Schmeutrality" discussion

Suppose that the editors of the article simply follow the Wikipedia rules and actually make their edits from a neutral point of view, and don't bother to count the words. In that case, the existence of the award does not violate the neutrality of the article. It may be that, in practice, the article...
by Mazzula
Tue Jan 06, 2009 4:53 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0526: "Converting to Metric"
Replies: 429
Views: 90729

Re: Converting to Metric

yohanleafheart wrote:
Mazzula wrote: It also is incompatible with human psychology, we are better off grouping at about seven (plus or minus two). It is also inconvenient because it doesn't have three as a factor.


[CITATION NEEDED]

http://psychclassics.yorku.ca/Miller/
by Mazzula
Mon Jan 05, 2009 4:40 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0526: "Converting to Metric"
Replies: 429
Views: 90729

Re: Converting to Metric

It all comes down to feeling natural. If you grew up with imperial, distance in km, especially speed (kph to us in the USA, even if others say km/h), feels too "stretched out;" temperature in Celsius feels too "squished together" There are independent reasons that metric and Bri...
by Mazzula
Wed Nov 26, 2008 1:51 am UTC
Forum: Serious Business
Topic: Effects of Population Growth / Decline
Replies: 138
Views: 14372

Re: How to solve the problem of low birth rate

Forcing the population to grow is insane. "Insane"? Or "fun". The problem is that using biofuels with current technology is terribly inefficient. Do you really doubt that there will be advances in technology? The fact that you can find one possible alternative to fossil fuel use...

Go to advanced search