- Active Posts:
- 3535 (3.46 per day)
- Most Active In:
- General Discussion (964 posts)
- 03-August 10
- Profile Views:
- Last Active:
- Today, 01:58 PM
- Age Unknown
- Birthday Unknown
Posts I've Made
13 May 2013 - 02:46 PM
13 May 2013 - 02:27 PMYeah, this has already been posted tons of times.
But anyway, these "typing tests" don't mean anything -- I can average 100 WPM, but I never actually type that fast when working. Take this very post I'm writing; I have to think about each word I'm going to write, think about how my sentence will go, etc. Sure, I can type pretty fast when I'm just given a list of things that I have to copy, but that's rarely the case.
10 May 2013 - 09:33 AMWell, the author of that explained it pretty well.
First of all, PHP does stuff in order; since there are no parentheses it's going to append the var to the string, and then add three to it. Except - that can't work, can it? How can you add numbers and strings together? Well, PHP just converts the string to 0. And then adds 3 to that. Since the
"Return: "was part of the string, it's lost when the whole string is converted to 0.
("Result: " . $var) == "Result: 3" ("Result: 3" + 3) -> Not possible, let's convert "Result: 3" to 0 0 + 3 == 3
10 May 2013 - 05:05 AMI second the cloning idea. That's what I do anytime I do reinstall OS X or something along those lines. Not only can you get literally all your files back (even those you'll only realize you need later, such as config files for some apps), you can even boot onto the cloned drive to get the stuff back!
I usually use CarbonCopyCloner for that
05 May 2013 - 10:58 AMAs Tom said, there's no such thing as a default height for the
Though browsers do apply some default styling to some elements (mostly text-formatting related tags) it isn't the case for the div element.
In your code sample, what div are you referring to? (Which one has the height on it?)
Note that adding stuff like margin/padding, though it isn't height per se, will still affect the height of the element and/or its parent. What's in that