Comment: Re:Killed because it wasn't a revenue generator (Score 1) 118
Huh? Google Maps still exists
|
|
Huh? Google Maps still exists
"unsigned int x = -3;" generates no compile errors or warnings.
This supports the point of the poster you were referring to. The code is correct, predictable, and generates no warnings.
If you don't believe me, listen to the creator of C++
C and C++ are different languages. The implicit conversion rules and the promotion rules are different in C++ to C. In C, unsigned types always promote to unsigned types. But in C++, unsigned types may promote to signed ones, if the value fits in the signed range.
In general, it's a good idea to used signed ints whenever possible.
Says who?
In C, signed ints have a whole lot of problems associated with representation and overflow. But unsigned ints have well-defined behaviour in every circumstance. They wrap around in case of overflow or an out-of-range assignment. You can safely test, set and reset individual bits.
With signed ints, you can raise a signal (triggering a signal handler, or aborting the program if there is no handler) if there is overflow or underflow. Using '^', '|' or '&' on signed values can trap due to creating an invalid representation (e.g. negative zero, or parity error).
Test: what is wrong with this code snippet (assuming the appropriate furniture)? Hint: it doesn't always print 0x82.
char ch = 130;
printf("0x%x\n", (unsigned int)ch);
As a former Alaskan I can tell you that glacialization has come back the last 3 years and summer temperatures are rapidly falling year after year. So climate != weather but 13 years of data is starting to make a case for a cooler climate regardless of increased CO2.
"global warming" doesn't meant that every point on the globe will warm up by the same amount. It could be that Alaska gets colder, but Brazil gets hotter by a larger amount, for example.
skepticalscience.com is completely unreliable source, they make non-trivial edits to posts after comments have began
So they fix mistakes pointed out by commentors. How terrible.
Of course it would be even better if they retained a change history.
Interesting question is - if they haven't released the pirated copy, how many people would have downloaded it (assuming anyone would even bothering cracking it)?
It has no DRM so it is not possible to crack.
If the developers really want to mess with the pirates, now they will start seeding dozens broken copies with various titles like "Game Dev Tycoon - FULL VERSION", so that the pirates can't tell the real one from the broken one.
For what it's worth, bombings are happening every day elsewhere in the world. But in the US, granted, it's an uncommon sight. Quite sad. (That it happened, not that it's uncommon!)
I was watching coverage of the Boston incident and the news ticker said "Explosions across Iraq leave 24 dead". But it's only brown people, right? The priority of those stories should have been reversed.
Heh you're onto it.
Here's hoping we don't end up with something like:
void main()
{
My String s;
s.read(cin);
}
You, and the Slashdot editors that posted this, are wasting everyone's time with this question. What's next, an Ask Slashdot for shaking crumbs and pubes out of your keyboard?
Don't be an ass. The question is whether cleaning dust out of a PC actually makes a difference or not. (or even whether it's harmful). Since most people don't do it and their PCs continue to work; and it's possible to give a component a static shock while trying to clean it, the question is reasonable.
But Tyson's pomposity sort of makes it hard for me to "like" him..
They're fine as long as they don't get uppity, eh?
Throw them both in jail until one confesses. If they want to act like children they can be treated like children..
Let me get this straight: I can't drive 65 or turn up the heat without having to worry about getting stranded?
If your petrol vehicle had a very accurate range finder, you'd notice the range going down when you sped up or turned up the heat.
You don't have an accurate range finder, so you assume that those things make no difference; and if you even do notice that your vehicle varies a bit in how many miles you get to each tank, you just put it down to randomness because you don't understand the actual factors that go into vehicle range.
We know the facts in this case and can see how far the news article diverges.
Think of all the times you read a news article about some topic you don't know much about besides what the article tells you - and yet we tend to take those articles at face value.
The handful of times I have known people involved in an event which got reported on in a newspaper, the article often diverged wildly from reality. One time, a murderer was reported as "having been tracked down after a 3-day manhunt" when in reality once he came off his meth high he walked to the nearest police station and handed himself in.
That's a phenomena specific to diesel engines. Diesel's don't use a spark to ignite the fuel mixture like gasoline engines do, they use the heat from piston compression. Thus, so long as vacuum pressure and fuel supply is maintained, a diesel can continue running without electrical power.
Fuel pumps are driven electronically too (for the last N decades) , normally turning the key off will also kill power to the fuel pump. In fact I once owned a car where the owner had installed a hidden switch under the seat to turn the fuel pump on and off, purely as an anti-theft measure - although I'm sure this French driver wishes his car had one of those.
Also (I'm sure you know this but some readers may not, judging by the number of "why didn't he just use the handbrake" comments), petrol engines continue to run without the battery being connected - the engine's mechanical output drives the alternator which powers the spark plugs. Turning the key off normally interrupts the flow from battery/alternator to relevant part(s) of the ingition system.
That your kids make you happier than anything else you have now DOES NOT imply that you would not be happier without them. IIRC there are studies that have shown people without children are in fact happier than those with children.
You don't know what true happiness is until you have children.
They have been at a great feast of languages, and stolen the scraps. -- William Shakespeare, "Love's Labour's Lost"