|
hey - you also a bit older than yesterday
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Although you are right, it doesn't imply that my comment is wrong in any way
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Did I say that?
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Have you reached the stage where you have dry dreams and wet farts?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Barbed wire
"We can't stop here - this is bat country" - Hunter S Thompson - RIP
|
|
|
|
|
a typical "surviver biased" statement
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Getting a little close to home.
If you can keep your head while those about you are losing theirs, perhaps you don't understand the situation.
|
|
|
|
|
Or maybe don't want to get to fat from home.
I'm not sure how many cookies it makes to be happy, but so far it's not 27.
JaxCoder.com
|
|
|
|
|
While messing around with Java I made a stupid mistake that took me the better part of the morning to figure out: I gave the project the same name as the name of the main Java class used in the project. You shouldn't do that, I know now, but it had some weird consequences. The main problem was: If I tried to run one of the class's constructors, Java would look for the constructor in the project, not the class! I could not figure out why the compiler kept telling me that the constructor does not exist, while I knew damn well that the class does have such a constructor.
In the end in desperation, I restarted the project under a different name. Problem solved! This is one mistake I will never make again!
Get me coffee and no one gets hurt!
|
|
|
|
|
The only good java is a stong brewed java!
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- Never argue with a fool. Onlookers may not be able to tell the difference. Mark Twain
|
|
|
|
|
I have to agree that brewed Java is good. But I find the programming Language interesting to learn.
Get me coffee and no one gets hurt!
|
|
|
|
|
I think your mistake was coding in Java.
Real programmers use butterflies
|
|
|
|
|
The mistake is using Java.
|
|
|
|
|
TRWTF is replying to an old message without reading the other responses first.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
I wouldn't blame Java for this, it's probably more an issue with the IDE used to handle Java. In NetBeans I give my project names exactly the same name as the main class, and the package name is the same but all lower case as it must be = no issues. NetBeans did change the way it does all this stuff by default some years ago as I recall. Students often fail at this task, but with this simple convention nothing goes wrong.
|
|
|
|
|
There's an artwork by Nikolay Bogdanov-Belsky called Mental Arithmetic. In the Public School of S.Rachinsky, 1895 - Nikolay Bogdanov-Belsky - WikiArt.org[^]
The interesting part is the task on the blackboard.
(102 + 112 + 122 + 132 + 142)/365
Like the Russian boys, you have no calculator and no paper. Upvotes for:
1. A good reasoned guess at the answer
2. The exact answer, with an explanation of how you got it by mental arithmetic.
<edit> I should have expected you to brute force it in your heads. (You did do it without paper or calculator, right?)
So from now on I will upvote elegant solutions!</edit>
Wrong is evil and must be defeated. - Jeff Ello
Never stop dreaming - Freddie Kruger
modified 17-Aug-20 15:55pm.
|
|
|
|
|
|
Answer: 2 (ALL IN M'HEAD)
I pretty much know those squares by heart.
First 3 = 365 (already a hint): 1
Next two 169 + (200-4) = 365: 1
1 + 1 = 2
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
|
W∴ Balboos, GHB wrote: I pretty much know those squares by heart.
Obviously, why did I expect anything else.
Wrong is evil and must be defeated. - Jeff Ello
Never stop dreaming - Freddie Kruger
|
|
|
|
|
I did it the same way. But then, I'm an accountant, so.... Kind of a nerd as-is.
|
|
|
|
|
Exactly the same thought process, and I also know the squares in my head - up to 16 anyway. Above that there's a bit of mental arithmetic required.
|
|
|
|
|
I was about to "guess" 2 based on the same premise: first three and a "feeling" about the last two (:
------------------------------------------------
If you say that getting the money
is the most important thing
You will spend your life
completely wasting your time
You will be doing things
you don't like doing
In order to go on living
That is, to go on doing things
you don't like doing
Which is stupid.
|
|
|
|
|
Everyone should know the squares - at least for 1 to 20. After that, you just need to know that multiples of ten are (x * 10)^2 = x^2 * 100. You can then do the halfways [numbers ending in 5] (x * 10 + 5)^2 = ((2x + 1) * 10)^2 / 4 [looks a lot more complicated than it is]; thereafter, for numbers ending in 1, 2, 6, 7 you apply (x + 1)^2 = x^2 + 2x + 1 (or x^2 + (x + 1) + x) [do it twice for 2 and 7] and for numbers ending in 3, 4, 8, 9 you apply (x - 1)^2 = x^2 - 2x -=1 or x^2 - (x + 1) - x = x^2 - x - x - 1 [do it twice for 3 and 8]
At least, that's what I use! And I assure you, once you've got the hang of them that are simple.
Edit: It is also useful to memories powers of two and squares of prime numbers
modified 18-Aug-20 6:03am.
|
|
|
|
|
For those I don't know I use a binomial expansion in my head to make it easier. Not as quick as memorization (look up tables are always rather fast - even for computers).
So, if given 27 * 82 it would become (30-3)*(80+2)
Numbers to juggle mentally: +2400, -6, -240, +60
Corresponding to the outer two terms and the cross terms.
If you do it now and then it remains pretty efficient - but if you've not done it for a year or two it take some cobweb sweeping to set one's storage back to efficient levels.
2214
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|