Or get *on* my chest, maybe? Heh, no. I research everything more than normal people. I happen to be disgustingly normal in my sexual inclinations. I'm sure that everyone else has much more fun.
It makes me think, though. Are female gamers like female golfers, highly lesbian? Normal women just don't act like this too often.(Compare Sailer's chart in Why Lesbians aren't Gay [Men].)
To add more worthless anecdotally supported stereotypes, I have to mention that maybe 1/3rd of the time that I come across a female CS wonk on the web or on Slashdot, that person is actually transgender. (Read through the journal here for my latest find.) I read an interesting book by Bailey a while back, in which he postulates two main categories of transgendered male-to-female individuals. The first tend to be very effeminate gay males who get the surgery done early and are much more successful with it than the second group. The second group tend to get the surgery done later, are often heterosexual and married beforehand, often have stereotypically male careers (like CS), are very bad at "walking like a woman," etc., and are lesbians or asexual afterward. There is also one unifying factor present in 100% of this second group: they like to wear female clothing and masturbate. Bailey calls them autogynephiles.
I wouldn't mention it, but they pop up again and again in news stories covering female CS advocacy (Lynn Conway is a notorious offender), or in lists of famous CS women. Maybe there is no connection to gaming, but then again...
I admit that I dislike ever having to think about bits. That's the correct solution for this problem, but not the one I thought of first. Here is my "mathematician's solution." The only advantage that I can see is that I can reuse my radix conversion code with a couple of changes for arbitrary bases. Only really useful if it just so happens that you are putting together a C++ library to compete with GMP. (Well, be as good as, if not compete—but then again, expression templates and other tricks may beat pure C.)
#include <deque> #include <string> #include "boost/foreach.hpp"//This is going to be in boost 1.34
using namespace std; using namespace boost;
int main(void){ int num = 1234567;
//RADIX CONVERSION HERE typedef deque<int> hex_cont; hex_cont hex_in_cont; while (num!=0){ hex_in_cont.push_front(num%16); num = num/16; } if (hex_in_cont.empty()) hex_in_cont.push_front(0); //END RADIX CONVERSION
//MOVE FROM CONTAINER TO STRING string hex_as_str; BOOST_FOREACH(int i, hex_in_cont){ char hexit_char; if (i<10){ hexit_char = i + 48; }else{ hexit_char = i + 55; } hex_as_str += hexit_char; } hex_as_str += "x16"; //END MOVE FROM CONTAINER TO STRING
To be honest, I always had. But I seem to have blundered into a career in System Administration, where I have got some experience. I just got a job offer as Unix Admin for a fair-sized campus network, and I'll probably take it. It's really fun work, and the pay is good. But like I said, programming is a hobby for me, and I've got a couple garage projects going that I'm sure I'll release eventually.
Destructors throwing exceptions? In C++ one should never allow an exception to leave a destructor. (See Item 11 of "More Effective C++" by Scott Meyers for a good discussion of this.) If there is no way to avoid doing something in a destructor that can throw, you should use a catch statement to take care of things.
Okay, you have intrigued me. Here is my solution. No extra memory needed for a temp variable due to a dirty trick. But I strongly advise you not hire anybody who does this. There will be tears.
Garbage collection is nice. It does its job and it does that job well.
But garbage collection only helps you manage one sort of resource. In C++, the RAII techniques that help you manage memory are good for every resource, from file handlers to database connections. Resource management in Java is not so nice. Often it is quite a hassle.
Also, if you really want the benefit of garbage collection in C++, simply compile your program using something like the Boehm Garbage Collector.
In C++, the proper coding style is RAII. If you really need to use a pointer somewhere, you use a smart pointer from boost or standard auto_ptr. And as if anybody needed more reasons to code this way, the possibility of exceptions tends to make anything else incorrect.
A *good* C+ programmer will remember to deallocate all of his objects to prevent memory leaks. A *good* C++ programmer will copy his strings correctly to prevent buffer overflow exploits.
No he won't. Because if he has to think about either of those things, he is programming C in a C++ environment. And is therefore not a *good* C++ programmer. His code is probably not even exception safe. He'd be kicked off any decent C++ programming team rather quickly. That aside, I'm reminded of a joke that does go somewhat against my point, but is still funny:
Bjarne Stroustrup : why so many people use "C++" just as "C" ? Dennis Ritchie : because you named the language "C++", not "++C"
I have been telling people that PlanetES is the best hard science fiction of the past decade. It doesn't understand the developing world, but other than that, it's great.
I also share your opinion on Enterprise. I was excited when I first heard the concept. But it just turned out to be another silly and generic Star Trek.
breaking the extentsions with a new release is the only way
HENRY: You sent for me, sir?
BILL GATES: Yes, Henry. A man down on earth needs our help.
HENRY: Splendid! Is he sick?
BILL GATES: No, worse. He's discouraged. At exactly ten-forty-five PM tonight, Earth time, that
man will be thinking seriously of throwing away Microsoft's greatest gift.
HENRY: Oh, dear, dear! Backward compatibility! Then I've only got an hour to dress. What are they wearing
now?
BILL GATES: You will spend that hour getting acquainted with George "Val314" Bailey.
HENRY: Sir . . . If I should accomplish this mission—I mean—might I perhaps win my
wings? I've been waiting for over two hundred years now, sir—and people are beginning to talk.
BILL GATES: What's that book you've got there?
HENRY: The MCSE Study Prep guide.
BILL GATES: Henry, you do a good job with Val314, and you'll get your wings.
But he was putting forward a legal theory. An incorrect legal theory. I don't see how the fact that his incorrect legal theory was based on analogy helps him here.
I just downloaded Rome off of Bittorrent, promoted the series on my blog because it was good, and was about to sign up HBO for my new place because of it. Take that as you will; it's just a datapoint.
And to be honest, if I were HBO, I'd be doing something 10 times as nasty to people (like myself) stealing from me (HBO).
Export your EFS keys to a CD. Without them, it is hopefully impossible to recover that encrypted file from just the hard-drive. That's actually the whole point.
Remote Desktop is very nice in all sorts of situations. It is far more forgiving on slow connections than X over ssh. The other thing I find myself using is XP Pro's built-in file encryption.
Not be using free in the first place. It's an error to code C++ as if it were C—use new and delete
Not be doing explicit memory management. Use RAII (Resource Acquisition Is Initialization) practices. Not using RAII in C++ is an error. (Beyond resource handling nightmares, you aren't being exception safe without RAII.)
I've got good news for you then, the boost smart pointer types are already in the standard committee's TR1.
It makes me think, though. Are female gamers like female golfers, highly lesbian? Normal women just don't act like this too often.(Compare Sailer's chart in Why Lesbians aren't Gay [Men].)
To add more worthless anecdotally supported stereotypes, I have to mention that maybe 1/3rd of the time that I come across a female CS wonk on the web or on Slashdot, that person is actually transgender. (Read through the journal here for my latest find.) I read an interesting book by Bailey a while back, in which he postulates two main categories of transgendered male-to-female individuals. The first tend to be very effeminate gay males who get the surgery done early and are much more successful with it than the second group. The second group tend to get the surgery done later, are often heterosexual and married beforehand, often have stereotypically male careers (like CS), are very bad at "walking like a woman," etc., and are lesbians or asexual afterward. There is also one unifying factor present in 100% of this second group: they like to wear female clothing and masturbate. Bailey calls them autogynephiles.
I wouldn't mention it, but they pop up again and again in news stories covering female CS advocacy (Lynn Conway is a notorious offender), or in lists of famous CS women. Maybe there is no connection to gaming, but then again...
Two words: Memory pools.
Destructors throwing exceptions? In C++ one should never allow an exception to leave a destructor. (See Item 11 of "More Effective C++" by Scott Meyers for a good discussion of this.) If there is no way to avoid doing something in a destructor that can throw, you should use a catch statement to take care of things.
Garbage collection is nice. It does its job and it does that job well.
But garbage collection only helps you manage one sort of resource. In C++, the RAII techniques that help you manage memory are good for every resource, from file handlers to database connections. Resource management in Java is not so nice. Often it is quite a hassle.
Also, if you really want the benefit of garbage collection in C++, simply compile your program using something like the Boehm Garbage Collector.
In C++, the proper coding style is RAII. If you really need to use a pointer somewhere, you use a smart pointer from boost or standard auto_ptr. And as if anybody needed more reasons to code this way, the possibility of exceptions tends to make anything else incorrect.
Bjarne Stroustrup : why so many people use "C++" just as "C" ?
Dennis Ritchie : because you named the language "C++", not "++C"
I have been telling people that PlanetES is the best hard science fiction of the past decade. It doesn't understand the developing world, but other than that, it's great.
I also share your opinion on Enterprise. I was excited when I first heard the concept. But it just turned out to be another silly and generic Star Trek.
BILL GATES: Yes, Henry. A man down on earth needs our help.
HENRY: Splendid! Is he sick?
BILL GATES: No, worse. He's discouraged. At exactly ten-forty-five PM tonight, Earth time, that man will be thinking seriously of throwing away Microsoft's greatest gift.
HENRY: Oh, dear, dear! Backward compatibility! Then I've only got an hour to dress. What are they wearing now?
BILL GATES: You will spend that hour getting acquainted with George "Val314" Bailey.
HENRY: Sir . . . If I should accomplish this mission—I mean—might I perhaps win my wings? I've been waiting for over two hundred years now, sir—and people are beginning to talk.
BILL GATES: What's that book you've got there?
HENRY: The MCSE Study Prep guide.
BILL GATES: Henry, you do a good job with Val314, and you'll get your wings.
HENRY: Oh, thank you, sir. Thank you.
"If you don't have money to purchase something, do without."
'Why?', asks the situational ethicist.
But he was putting forward a legal theory. An incorrect legal theory. I don't see how the fact that his incorrect legal theory was based on analogy helps him here.
I just downloaded Rome off of Bittorrent, promoted the series on my blog because it was good, and was about to sign up HBO for my new place because of it. Take that as you will; it's just a datapoint.
And to be honest, if I were HBO, I'd be doing something 10 times as nasty to people (like myself) stealing from me (HBO).
Anyway, go see Rome, it's really good.
The short story was fun. He should never have tried to expand it though.
For good Card-bashing, I'll point you to: Orson Scott Card Has Always Been an Asshat. It's a great read.
Export your EFS keys to a CD. Without them, it is hopefully impossible to recover that encrypted file from just the hard-drive. That's actually the whole point.
Remote Desktop is very nice in all sorts of situations. It is far more forgiving on slow connections than X over ssh. The other thing I find myself using is XP Pro's built-in file encryption.
Windows has taught the world that "Home Edition" is synonymous with "Crippled Edition."
Not quite the worst Slashdot story ever, but this is right up there with Zonk's "performing cunnilingus on a hardwood floor."
Windows hardware-DEP isn't quite the same as its software-DEP (the NX-bit stuff). It also does SafeSEH checks.