|
Whoa, I just got the double meaning and it blew my mind.
"who need less"... who require very little more than they already have.
"who need less"... who could do well if they had less then they already do.
|
|
|
|
|
Sometimes is not needed to say so much in order to mean something
Regards.
--------
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 helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Only if you belong to the 1%. Right?
|
|
|
|
|
since he doesn't "rail against the rich", it's unlikely he means anyone.
|
|
|
|
|
I'm so poor I can't even pay attention.
|
|
|
|
|
what????
(yes|no|maybe)*
|
|
|
|
|
I am not in that 1%, but have enough to leave without troubles and allowing me some extras from time to time, that's enough.
Don't know who told it, but I am totally agree...
Rich is not the one that has more, but the one than need less
Regards.
--------
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 helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Thanks for posting this. It is really eye opener.
Happy Programming
|
|
|
|
|
Pranit Kothari wrote: It is really eye opener.
It is more correctly referred to as 'blowing smoke in your eyes'
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "As far as we know, our computer has never had an undetected error." - Weisert | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
When I was a kid my mom always told me "finish your plate, kids are starving in Africa", and I do, I am already doing a lot! ^_^
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
At least your heart is with them.
You should have told your mom, "then why didn't you think of that before you gave me too much broccoli?"
|
|
|
|
|
I usually didn't talk back much to my mom...
Such is my hard life!
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
|
I'm the 1,1%... FFFFFFFFFFFFFUUUUUUUU!!!!!!
Better find me a bank building and set up camp!
It's an OO world.
public class Naerling : Lazy<Person>{
public void DoWork(){ throw new NotImplementedException(); }
}
|
|
|
|
|
<0.1% for me. I think I can afford more ammo.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
|
You're an outlaw biker? 
|
|
|
|
|
In a hospital full of quadriplegics, it's like pointing out what a lucky man a paraplegic is.
Being malnourished in Appalachia is so damn lucky, too! After all, they could be starving in Ethiopia!
Accepting such bull-crap is a patently disgusting concept: defending injustice with greater injustice.
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "As far as we know, our computer has never had an undetected error." - Weisert | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
modified 11-Mar-12 9:56am.
|
|
|
|
|
|
After Sarah Burke[^] earlier in January, today Nick Zoricic[^] died after a crash near the finish line in Switzerland.
Even with the safeties and precautions, accidents still happen.
Sad day for Canadian winter sports.
(fix'n'link)
Watched code never compiles.
modified 10-Mar-12 18:41pm.
|
|
|
|
|
That is so sad, and I hadn't heard about Sarah Burke. I grew up in Colorado and have skied almost since I could walk. Even so, watching the professional skiers has always scared the daylights out of me.
QRZ? de WAØTTN
|
|
|
|
|
FYI, your Sarah link is broken.
|
|
|
|
|
thanks.
Watched code never compiles.
|
|
|
|
|
A young waiter just had his first customer, who turned out to be a big burly truck driver. The young man walked up to the table where the truck driver was sitting and asked. "Can I take your order sir?" The truck driver replies, "Sure kid, I want three flat tires and two headlights." The young man was very puzzled and said, "I beg your pardon?" The truck driver said again, "Look kid, I want three flat tires and two headlights." The young man was still puzzled, but replied, "Yes sir."
The young man took the request to his boss who was the head cook. He told him about the truck driver's order, and that he wanted three flat tires and two headlights. "I think he's in the wrong place." The head cook said, "I know what he wants - he wants three flap jacks and two eggs sunny side up. The truck driver is just trying to be smart, I know him." The cook said to the waiter, "Here, take this bowl of beans, give it to him and say this."
On receiving the bowl of beans, the truck driver says, "Listen kid, I didn't order this - I said I wanted three flat tires and two headlights." The waiter replies, "Well sir, the head cook said while you wait for your parts, you can gas up."
/ravi
|
|
|
|
|
[EDIT2]
Oops.. completely misleading results.. test in x86 mode on my win7 machine!
Well the only conclusion C# is good ^_^, .NET4.5 is not optimized, C++ optimizer is way better
(And, BTW, .NET DLL loading is a sad source of slow .NET app startup)
[/EDIT2]
I was curious about performance and did run some test, on my Windows7 machine.
And also on a Windows 8 (consumer preview) VM machine in Virtual Box on my Windows 7 box.
In C++ I ran this test:
TC++
int primes(unsigned long n) {
unsigned long i, j;
int countprimes = 0;
for(i = 1; i <= n; i++) {
int isprime = 1;
for(j = 2; j < sqrt((double)i); j++)
if(!(i%j)) {
isprime = 0;
break;
}
countprimes+= isprime;
}
return countprimes;
}
In C# I have 2 test, one with the SQRT computed before the loop.
In C++ having sqrt called everytime or just before made no difference!!!
I suspect a compiler optimization and tried to trick the compiler with custom no inline function taking both i and j as parameters, no change... :-/
[EDIT]
Thanks Harold I was able to trick the C++ compiler!
with
static double SQRT(double x)
{
__asm
{
movsd xmm0, x
sqrtsd xmm0, xmm0
movsd x, xmm0
}
return x
}
[/EDIT]
TC#1 (Sqrt in the loop)
static int primes(int n)
{
uint i, j;
int countprimes = 0;
for (i = 1; i <= n; i++)
{
bool isprime = true;
var limit = Math.Sqrt(i);
for (j = 2; j <= Math.Sqrt(i); j++)
if ((i % j) == 0)
{
isprime = false;
break;
}
if (isprime) countprimes++;
}
return countprimes;
}
TC#2 (Sqrt before the loop)
static int primes(int n)
{
uint i, j;
int countprimes = 0;
for (i = 1; i <= n; i++)
{
bool isprime = true;
var limit = Math.Sqrt(i);
for (j = 2; j <= limit; j++)
if ((i % j) == 0)
{
isprime = false;
break;
}
if (isprime) countprimes++;
}
return countprimes;
}
Now for the times... (took the average time of a few run, with n = 1000 000)
Windows 7:
TC#1: 2780 ms (.NET4)
TC#2: 858 ms (.NET4)
TC#1: 2400 ms (.NET3.5)
TC#2: 856 ms (.NET3.5)
TC++: 286 ms
[EDIT]TC++ (inline sqrt): 1011 ms[/EDIT]
Windows 8:
TC#1: 1065 ms (.NET4)
TC#2: 296 ms (.NET4)
TC#1: 2760 ms (.NET4.5)
TC#2: 880 ms (.NET4.5)
TC++: 297 ms
For this results it appears that
1. Math.Sqrt() is slooooow
or the C++ compiler defied my attempt at preventing it optimizing
2. (.NET on) Windows 8 is fast!!! .NET4 on my VM is faster than .NET4 on the host machine!!!
3. .NET4.5 is not yet optimized...
4. WTF happened to Math.Sqrt() in .NET4??! it is slower than .NET3.5!!!?!?!
[EDIT]
5. C# is not doing too bad after all!
From some Windows Phone profiling I guess the biggest perceived performance (real) problem is DLL loading, C# is slow.. (at startup)...
[/EDIT]
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
modified 10-Mar-12 11:10am.
|
|
|
|
|