I think the http://en.wikipedia.org/wiki/Universal_Declaration_of_Human_Rights says it best: "No person may be forced to install or have installed on any machine Microsoft Windows 95 or any derivative of it under any circumstance, no matter what they have done". There is also a special declaration of suggested physical punishment for Windows ME...
I got Machinarium as a gift (I think for christmas) in a retail box. It came with an executable for mac and a free copy of a flash game ("Samorost 2"). Machinarium is a great point-and-click adventure game that has a graphical style that reminds me of "Beneath a Steel Sky" with the simple usability of a flash game. Its puzzle style is a bit like Myst, where you just click without a verbal ("Use", "Open" etc.) interface, and have a few minigame-puzzles that you must solve to get along in the game. It is not a big game (took me only a few hours to solve) but I heartly recommend it! The should have a demo version, but for 5$ you really should just buy it.
This is the code used by eclipse to detect a SUN vm (http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.equinox.executable/library/win32/eclipseWin.c?view=markup):
infoSize = GetFileVersionInfoSize(vm, &handle); if (infoSize > 0) { info = malloc(infoSize); if (GetFileVersionInfo(vm, 0, infoSize, info)) { TRANSLATIONS * translations; int translationsSize; VerQueryValue(info, _T_ECLIPSE("\\VarFileInfo\\Translation"), (void *) &translations, &translationsSize);
/* this size is only right because %04x is 4 characters */ key = malloc( (_tcslen(COMPANY_NAME_KEY) + 1) * sizeof(_TCHAR)); for (i = 0; i < (translationsSize / sizeof(TRANSLATIONS)); i++) { _stprintf(key, COMPANY_NAME_KEY, translations[i].language, translations[i].codepage);
And yes, you can ask the JVM if any of the Java interfaces are supported, so switching on the name of the company that produced them is unnecessary. The company name is neither a necessary nor a sufficient test for anything. For those kinds of tests you use this reflective thingie they invented...
--dave
Interesting, how would you query the java vm (before calling it's binary), whether it supports -XX:MaxPermSize? I'd say you could execute "java -X" to see the -X parameters that are supported, but -XX: seems to be out of control. Those are documented at http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html and maybe it was dumb of the eclipse staff to try detect a sun vm by looking for the company name... I'd even say the eclipse launcher is a complete hack, but necessary. JAR-Files are not sufficient as directly executable files, because launching a jar often needs to be done with the correct settings for the java vm executable, like in this case to set memory or permgenspace (or on osx, -XstartOnFirstThread for any SWT app). That completely fucks up distribution of java software as JARs.
I don't understand the reasoning here... If you pirate it, you can't post on the Blizzard forums anyway. If you buy the game, you can, but only with your real name. So just don't use their forum system...
I think this is a nice feature. What also surprised me as pretty cool: My Logitech mouse operates with two AA batteries, but if you want to reduce the weight, it works with only one. Great!
So according to you, if you rolled a dice twice (independent results), the odds that you would have rolled a 1 and would have rolled another 1 are the same as that you would have rolled a 1 and would have rolled a 2?
You're right, and now that I read the article again, this is actually explained there pretty well... But your point goes only half way, because the selection of telling of a boy affects this exactly in the same way as you explained for the weekday, so that the result in the end is P=1/2. Just as intuition would suggest. I think.
In my experience, many non-intutive probabilty results are easier to understand if you spell out the full population. For example, I coudn't understand http://en.wikipedia.org/wiki/Berkson's_paradox until I drawed it up graphically.
I think the http://en.wikipedia.org/wiki/Universal_Declaration_of_Human_Rights says it best: "No person may be forced to install or have installed on any machine Microsoft Windows 95 or any derivative of it under any circumstance, no matter what they have done". There is also a special declaration of suggested physical punishment for Windows ME...
I got Machinarium as a gift (I think for christmas) in a retail box. It came with an executable for mac and a free copy of a flash game ("Samorost 2"). Machinarium is a great point-and-click adventure game that has a graphical style that reminds me of "Beneath a Steel Sky" with the simple usability of a flash game. Its puzzle style is a bit like Myst, where you just click without a verbal ("Use", "Open" etc.) interface, and have a few minigame-puzzles that you must solve to get along in the game. It is not a big game (took me only a few hours to solve) but I heartly recommend it! The should have a demo version, but for 5$ you really should just buy it.
But who makes the ATMMs?
It's machines all the way down!
But who makes the ATMMs?
This is the code used by eclipse to detect a SUN vm (http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.equinox.executable/library/win32/eclipseWin.c?view=markup):
/* this size is only right because %04x is 4 characters */
int isSunVM( _TCHAR * javaVM, _TCHAR * jniLib ) {
_TCHAR *vm = (jniLib != NULL) ? jniLib : javaVM;
int result = 0;
DWORD infoSize;
DWORD handle;
void * info;
_TCHAR * key, *value;
size_t i;
int valueSize;
if (vm == NULL)
return 0;
infoSize = GetFileVersionInfoSize(vm, &handle);
if (infoSize > 0) {
info = malloc(infoSize);
if (GetFileVersionInfo(vm, 0, infoSize, info)) {
TRANSLATIONS * translations;
int translationsSize;
VerQueryValue(info, _T_ECLIPSE("\\VarFileInfo\\Translation"), (void *) &translations, &translationsSize);
key = malloc( (_tcslen(COMPANY_NAME_KEY) + 1) * sizeof(_TCHAR));
for (i = 0; i < (translationsSize / sizeof(TRANSLATIONS)); i++) {
_stprintf(key, COMPANY_NAME_KEY, translations[i].language, translations[i].codepage);
VerQueryValue(info, key, (void *)&value, &valueSize);
if (_tcsncmp(value, SUN_MICROSYSTEMS, _tcslen(SUN_MICROSYSTEMS)) == 0) {
result = 1;
break;
}
}
free(key);
}
free(info);
}
return result;
}
And yes, you can ask the JVM if any of the Java interfaces are supported, so switching on the name of the company that produced them is unnecessary. The company name is neither a necessary nor a sufficient test for anything. For those kinds of tests you use this reflective thingie they invented...
--dave
Interesting, how would you query the java vm (before calling it's binary), whether it supports -XX:MaxPermSize? I'd say you could execute "java -X" to see the -X parameters that are supported, but -XX: seems to be out of control. Those are documented at http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html and maybe it was dumb of the eclipse staff to try detect a sun vm by looking for the company name... I'd even say the eclipse launcher is a complete hack, but necessary. JAR-Files are not sufficient as directly executable files, because launching a jar often needs to be done with the correct settings for the java vm executable, like in this case to set memory or permgenspace (or on osx, -XstartOnFirstThread for any SWT app). That completely fucks up distribution of java software as JARs.
Doesn't it count
that the GP was reminiscent
of spring time?
in fact I have locally anesthetized myself and performed minor surgery on myself (yes I am a doctor) on more than one occasion.
Appendectomy?
double the capacity of the London phone system.
How much is it in Libraries of Congress?
"Stay away from our turf"
Ask apple
99 $
99 €
99 £
no difference
I don't understand the reasoning here... If you pirate it, you can't post on the Blizzard forums anyway. If you buy the game, you can, but only with your real name. So just don't use their forum system...
I think this is a nice feature. What also surprised me as pretty cool: My Logitech mouse operates with two AA batteries, but if you want to reduce the weight, it works with only one. Great!
I think it effected his post.
I was expecting HiRes pics of the current apple antenna engineers. Or what's left over.
A "die", sorry
So according to you, if you rolled a dice twice (independent results), the odds that you would have rolled a 1 and would have rolled another 1 are the same as that you would have rolled a 1 and would have rolled a 2?
Oops, sorry. "drew". English is not my first language.
You're right, and now that I read the article again, this is actually explained there pretty well... But your point goes only half way, because the selection of telling of a boy affects this exactly in the same way as you explained for the weekday, so that the result in the end is P=1/2. Just as intuition would suggest. I think.
In my experience, many non-intutive probabilty results are easier to understand if you spell out the full population. For example, I coudn't understand http://en.wikipedia.org/wiki/Berkson's_paradox until I drawed it up graphically.
But if you split one of those cases in two, each has only half the chance of occuring in the first place.
Assuming 50/50 chance of boy or girl and a 1/7 chance of each weekday, let's look at the general population of families with two childs:
B1B1 B1B2 B1B3 B1B4 B1B5 B1B6 B1B7
B2B1 B2B2 B2B3 B2B4 B2B5 B2B6 B2B7
B3B1 B3B2 B3B3 B3B4 B3B5 B3B6 B3B7
B4B1 B4B2 B4B3 B4B4 B4B5 B4B6 B4B7
B5B1 B5B2 B5B3 B5B4 B5B5 B5B6 B5B7
B6B1 B6B2 B6B3 B6B4 B6B5 B6B6 B6B7
B7B1 B7B2 B7B3 B7B4 B7B5 B7B6 B7B7
B1G1 B1G2 B1G3 B1G4 B1G5 B1G6 B1G7
B2G1 B2G2 B2G3 B2G4 B2G5 B2G6 B2G7
B3G1 B3G2 B3G3 B3G4 B3G5 B3G6 B3G7
B4G1 B4G2 B4G3 B4G4 B4G5 B4G6 B4G7
B5G1 B5G2 B5G3 B5G4 B5G5 B5G6 B5G7
B6G1 B6G2 B6G3 B6G4 B6G5 B6G6 B6G7
B7G1 B7G2 B7G3 B7G4 B7G5 B7G6 B7G7
G1B1 G1B2 G1B3 G1B4 G1B5 G1B6 G1B7
G2B1 G2B2 G2B3 G2B4 G2B5 G2B6 G2B7
G3B1 G3B2 G3B3 G3B4 G3B5 G3B6 G3B7
G4B1 G4B2 G4B3 G4B4 G4B5 G4B6 G4B7
G5B1 G5B2 G5B3 G5B4 G5B5 G5B6 G5B7
G6B1 G6B2 G6B3 G6B4 G6B5 G6B6 G6B7
G7B1 G7B2 G7B3 G7B4 G7B5 G7B6 G7B7
G1G1 G1G2 G1G3 G1G4 G1G5 G1G6 G1G7
G2G1 G2G2 G2G3 G2G4 G2G5 G2G6 G2G7
G3G1 G3G2 G3G3 G3G4 G3G5 G3G6 G3G7
G4G1 G4G2 G4G3 G4G4 G4G5 G4G6 G4G7
G5G1 G5G2 G5G3 G5G4 G5G5 G5G6 G5G7
G6G1 G6G2 G6G3 G6G4 G6G5 G6G6 G6G7
G7G1 G7G2 G7G3 G7G4 G7G5 G7G6 G7G7
Each outcome has P = 1/(7*7*4) = 1/196
Let's only look at the families with (at least one) tuesday boy:
B1B2
B2B1 B2B2 B2B3 B2B4 B2B5 B2B6 B2B7
B3B2
B4B2
B5B2
B6B2
B7B2
B2G1 B2G2 B2G3 B2G4 B2G5 B2G6 B2G7
G1B2
G2B2
G3B2
G4B2
G5B2
G6B2
G7B2
Of these 27 families, 13 have another boy. So P = 13/27.
A friend of Socrates!
Sound like a case for the A-Team! Or Nathan Ford...
Also solves organ donor scarcity!