- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Admin
Admin
Even if the bible (OT) were literal, it has undergone much translation often from languages that could express concepts that we can't (or at least don't). The very beginning of the bible is a case in point: "On the first day God created day and night" Well I'll be damned. Surely the day must already have existed if this was the first day? Sounds like the Big Bang. In the first instant, the universe began. Following that we have now shown "first day" does not literally mean "first day". Extrapolating this to the other six "days" we can actually lead ourselves to believe that Genesis is not entirely inconsistent with the whole idea of evolution. Good heavens, who'd have thunk it?
Concize version: The bible (Old Testament) is a series of fables not facts. Taken in this context it is clear that Religion and Science don't necessarily have to disagree. I'm sure a lot of scientists will be disappointed (apologies to scientists that aren't, but in my experience it's the science voice attacking the religious voice not the other way around - although I would very much expect it to flow the opposite way)
Admin
Nikola Tesla is a genius http://theoatmeal.com/comics/tesla
Admin
Fail miserably of course:
Debugger Exception Notification
Project Project1.exe raised exception class EConvertError with message '''--7'' is not a valid integer value'.
Break Continue Help
Admin
The testInheritance thing just looks like somebody was learning the language and forgot to remove a piece of experimental code.
Admin
Yup, soon will come a day when code magics itself into existence without a compiler:
{"FileNotFound", !FILE}
Admin
Close. It's:
#define YASURE 1
for the Minnesota edition.
Admin
Redefining addition, does not make him wrong. It makes you look silly. Especially since you have defined addition in a recursive manner.
Admin
I say unto thee, thou shalt accept the value of pi as acos(-1).
Admin
I feel like the first one should be:
Admin
"Rabbi Belaga presents the following explanation: The Hebrew word for line or circumference is written in the Bible as a 3 letter Hebrew word transliterated as kaveh, and whose equivalent English letters are KVH (kof, vav, hei). Yet, that word is read as a 2 letter Hebrew word whose equivalent English letters are KV.
Hebrew letters have numerical values, and the letters in question have values kof = 100, vav = 6, and hei = 5. So KVH = 100 + 6 + 5 = 111, and KV = 100 + 6 = 106. The ratio of KVH to KV is 111/106, which when multiplied by the value of 3 that was implied by 1 Kings 7:23, gives 3.141509 (rounded), which is again pretty close to pi. "
http://jerry.praxisiimath.com/pi.html
Admin
// Apparently, in at least on situation, a Statically declared public // variable will hold its value across different browser instances making calls to the // same web page. // For now, reset these variables on Page_PreInit.
In C# at least static properties keep their value until the application domain is reset, which is not done on a per session basis.
So any static properties will share its value between concurrent and all other sessions handled by the same appdomain, and since an appdomain can live for hours or more that could be a lot of sessions.
Unfortunately, not every book on C# for the web mentions this little gem making this a fairly common problem for new coders until they stumble on it on their own, I have seen it a few times with new coders here :/
Admin
Jay wrote: "So you're ridiculing the Bible for, (a) failing to ignore the concept of significant figures, and (b) failing to ignore the fact that pi is a transcendental number. Apparently Moses understood science better than you do."
Well, the bible also says that rabbits are rumiants and that grasshoppers have 4 legs. Frankly, there are many things in the bible to laugh at. I guess that the creation of the known universe in 7 days is also a clear instance of failure to grasp the concept of exactitude and/or precision... As a source of technical/scientific knowledge, the bible (or the quran, or the torah, or the kavalah or the whatever sacred text you can think of that is a revelation) is as good as News of the World.
Admin
However, if the "a" key on your keyboard is broken, you can use pi= 22./7 + sin( 22./7 ). It has an error of 1 in 10^10.
Admin
Damn, they sold me a bible without #define statements! I hate when gods don't use #define in their sacred books!
Admin
Methuzella wrote: "And I increasingly get the impression that the only people in the world who seem to think the Old Testament is anything even remotely literal are the people who want to argue that Science is right and the bible is wrong and never the twain shall meet."
Well, just exclude christian fundamentalists and all the americans who in surveys declare that they think that everything described in the bible is true, that evolution is false, and you got it... Sacred books of revelation and science cannot meet because revelations are about revealed truths that must be accepted without thinking, while science is about facts and critical thinking. A revelation is written in stone, while science is constantly evolving as theories must improve to reflect correctly the facts of the physical world. But I am glad to know that the bible is not to be taken literally, I guess this means that sins are metaphoric expressions of moral advices, there's no hell and even the concept of soul might be a simple beautification of the idea of human nature. So good to know that the ten commandments are just metaphoric ideas, so I cn actually understand them as I see fit, which after all what all military chaplains have been doing when it comes to the "thou shalt not kill" thingy, since blessing men who are going to kill other men doesn't seem quite a christian idea... But luckily we are XXI century people, and we don't hold irrational beliefs and superstitious ideas.
captcha: ideo, I create anything with my imagination and make it come true
Admin
You've got it wrong. The value of PI has nothing to do with time or space, it is a mathematical constant. If you want to change the value of PI, you'll have to change the value of some integers, because of PI is defined by a number of formulas that depend only on natural numbers, for example:
PI = 4/1 - 4/3 + 4/5 - 4/7 + 4/9 - 4/11 + ...
see http://en.wikipedia.org/wiki/Pi for more formulas of the same kind.
Admin
This is generated code.
There are unit test generators for simple classes (think JavaBeans).
They make managers happy, as unit test code coverage goes up, while developers don't have to waste time on testing getters and setters.
Kind of a WTF on it's own...
Admin
What do you think weight is?
Of course I believe the original question was about mass not weight.
Admin
Admin
Admin
What a bunch of boole sheeit ake.
Admin
Agree. Doesn't need a special scale to measure that difference. Any half-decent lab scale can do so. it's pretty easy actual so bad example. I would have written 40.01 g and if I failed because of that I would've went to proof experimentally how stupid that question was. They should have chosen a 1 liter of water (= 1 kg which also test if the students are proficient in the metric system :P).
Admin
Admin
In C++ at least if you try --7 you will get a compiler error "7 is not an l-value" or similar.
Admin
Admin
the real WTF is posters here who think the book of Kings is a "Christian" book.
Admin
The intention is that you don't buy this commodity in single units therefore you never pay the actual unit price.
Stock is commonly listed in fractions of a penny - on the London Stock Exchange a tick is actually a quarter of a penny. But as you don't buy them in ones, you never actually spend a quarter of a penny.
Petrol in the UK is at the moment around £1.299 a litre so if you fill your car with 50L you will pay £64.95 rather than £65 you would pay if the price was listed at £1.30
Yes, it's "only" 5p but it is an amount in legal tender.
Admin
Admin
Wrong. Pi is dependent on the curvature of space. In a largely flat space it is what we measure it to be. In a rather curved space you will find it smaller or bigger depending on the type of curvature. In the early universe it would have been much smaller so there was a time when it was 3.
Admin
Nope, Pi is the ratio of circumference and diameter of a circle and that can change. The numeric methods to calculate it you mention are only valid in an Euclidean space. So yes there is conceivably a time and place where it was 3.0.
Admin
Admin
Wrong. Try again.
Admin
Admin
Actually Pi is the ratio of the circumference and diameter of an idealised circle in flat (Euclidean) space. The value of Pi doesn't change in curved space, it is the formula C = Pi * d that changes according to the measure of the curvature of the space.
Admin
Could be right, could be wrong. Depends if it is an AND or OR condition. If it is an AND condition, then you either take the entire bible literally, or if you take part literally and port not, then you do NOT take the bible literally. If it is on OR condition, then if you take any part of the bible literally, then you take the bible literally.
XOR means you worship Satan, but not literally.
Admin
That's how people remember it. But acutally, whoever wrote that part of Genesis did pay some attention to detail. There God creates light, then separates light from darkness, thus causing the first day.
Admin
And someone's making all kinds of assumptions just because my stance against stupid and dishonest arguing has me appearing to support a viewpoint I often find idiotic.
This is bullshit. (gosh, I hope I didn't hurt your ears) There are all kinds of reasons not to take the Bible literally, but the rounding errors or poor mathematical understanding of the guy writing it down is a pretty flimsy one. The book is full of contradictions and all kinds of other nonsense like rules on which fabrics to never wear together. Try fucking harder.
Admin
Admin
That should work out fine as a Cristian, since Cristianity and of Eqyptology. and Jesus the reborn Horus or Ra.
Admin
I just remember being taught (and this was probably a maths class rather than a computer class) that 22/7 was a 'good enough' estimation of PI for rough calculations.
I would guess this is where the funny code came from - somebody from a maths background (or who remembered it from a maths class), and not even realising there's another way in most computer languages these days.
Admin
You're all wrong:
int negate(int num) { return 1 + ~ num; }
Admin
Obvious troll is obvious. 1/10
Admin
Admin
And since they're the same, we just call that value "Pi".
Admin
N is force, which the measure of weight. g is a measure of mass. 1 kg weighs ~ 9.81 N. You apparently failed physics.
Admin
The boolean_table needs to support plugins, so I can extend it with "HappyHour" and "OnASunnyDay"
Admin
I just wanted to show another possibility for the Biblical value of pi.
In 1 Kings 7:23 the molten sea is said to be 10 cubits from one brim to the other and 30 cubits in circumference.
If you notice in verse 26, however this object is a hand breadth thick. It is possible the 30 cubits circumference is of the inner circle instead of the outer and the 10 cubits is from outer rim to outer rim.
According to google a cubit is 18 inches.
According to wikipedia a handbreadth is 4 inches.
So if we substitute
2 * 3.14 * ((10 * 18) - 8)/2 = 30(18) 2 * 3.14 * 86 = 540 540.08 = 540
That value is not exact, but it sure looks close enough for me.
Admin
Fil was such a great guy. Lots of people denied his existence and even spelled his name wrong on many occasions in mockery ("file", we're looking at you), but those who loved him write functions in his honor and encapsulate his memories within the integerized booleans of unnecessarily verbose programs. After all, love makes the hearts of programmers do crazy things.
Fil, we'll miss you. Okay, now who wants some of this SHEEIT cake and PI?