I checked Wikipedia and the permanent polar caps are made of water ice. The seasonal cover is from frozen carbon dioxide which sublimes in summer. I didn't know that. So you are right, there is enough water for a colony, but you'd need to melt it and transport to the colony in pipe I guess. I read somewhere there might be underground deposits of water ice which can occasionally melt during summer and even flow on the surface for a while. I don't have any reference for that however.
Tomas Takac
Posts
-
A million of Martians -
A million of MartiansOne person is seven or eight trees’ worth in terms of oxygen. But distance from the Sun will definitely be a factor here. Martian polar caps are mostly CO2, no luck here. Maybe there is some frozen water underground. Or you can get some water from comets if you can make them crash on Mars. Sun will be our only energy source so electricity will power everything.
-
Unit testing discussion - Mock Data - Yes, No, or Yes & No?How do you define mock data? We are not allowed to use real-life customer data in our tests. But we sometimes use data from test system when it is too complex to craft it by ourselves for example. However this has nothing to do with the fact where you store it: hard-coded in your test or in a file or database. For me these are two different aspects.
-
Game MakingI would definitely not advise to use a real game engine. Kodu is aimed at teaching programming and is free.
-
Game MakingHonestly I have the same problem. My 8 year old invents levels upon levels of his super complicated game thinking in details how different monsters will kill you. I tried to bring him to think of something simple which we can do together but seems that's not that interesting after all. I don't know anything about game making either so I tried to sell him Kodu[^] - with partial success.
-
Spammer in Lounge - Gone -
addition having null values in between -
addition having null values in betweenHow do you add up the values? SUM should give you the correct result with NULL values. What database engine do you use?
-
How do i generate .dll file with only one line? -
Dysfunctional programming?Wow! Never seen this before. I tested with RAND() and FLOAT and it's the same behavior. Did you find any explanation?
-
Spammer in moderation: SALE OF HYPOTHECATED -- gone -
Spam in moderation queue -
tricky C# literalsI agree with the constant. I usually do this after I finish developing a method. I admit In this case I'd seen the problem immediately if I declared the constant upfront.
-
tricky C# literalsThat's nice trick with unchecked. Thanks for sharing. I eventually used decimal format, it's just a number after all.
-
tricky C# literalsIt was an uint, and the problem was that I was comparing that to and integer. The integer value is -2147024864 but there is no way to declare that in hex. Hex value always translates to positive number which is 2147942432 in this case. The hex view in debugger fooled me. Edit: ok there is a way :) thanks John.
-
tricky C# literalsI have a code where I need to get an exclusive lock on a file. It goes something like this:
try
{
// open file
}
catch(IOException ex)
{
if(ex.HResult == 0x80070020)
{
// retry
}
else
{
throw;
}
}Looked good so I tested and it didn't work at all. So I debugged it and what i saw was:
ex.HResult 0x80070020 int
ex.HResult == 0x80070020 false boolThere is something wrong about the value 0x80070020. So I tried to declare a constant:
const int lockedFileHResult = 0x80070020;
And there it was: Cannot implicitly convert type 'uint' to 'int'. Of course because that is actually a negative number but the compiler doesn't know that so it cannot fit it into an integer. Next time I'll be extra careful with hex literals.
-
Article: gaming PC -
(yet another) Spammer from moderation -- gone -
Spam in moderationI was just looking at that. Maybe it's just a very poorly written article? I'm really not sure. There is no reference to any website or company or anything that I would consider spam. But is definitely off topic for CodeProject. Taking back, was not looking properly.
-
Spam in QA