« first day (331 days earlier)      last day (4603 days later) » 

5:00 PM
@Als i usually just ignore FB friend requests. however, I get upset when others do that. like, apparently, kevlin henney didn't want my FB friendship, although now after that request I see his postings (don't know how), which are pretty good. ok i'll accept that. i generally do when people ask repeatedly or give some reason. ;-)
 
@LucDanton Yes, the thing is in the middle of the Atlantic/Arctic/whatever that is.
 
Als
@TonyTheLion: yes you are long gone.
 
@RMartinhoFernandes Sounds pretty Western to me.
 
Yeah, but Reykjavík is 64ºN. Sounds pretty Northern to me :)
 
I think a defining feature for me is the Atlantic I guess. (So yeah, I don't know where to put Belgium, the Netherlands and Luxembourg.)
 
Als
5:02 PM
@AlfPSteinbach: Well I don't know, I added you because, we were playing around here the other day and you found me on FB too, (remember u posted my pic here)....but then since you didn't accept the request i realized you didn't maybe want me to add you, so i thought you could have said so the same day when i said i will add you.
 
Don't understand why I am getting jargon in the stringstream buffer
 
Jargon?
Wow.
Or do you mean "garbage"?
 
Yeah xD
For example... I have
cin >> opt
stringstream ss
ss << opt
I do ss >> val ; ss >> val ;
and I get crap in the second val
 
Als
@AlfPSteinbach: And now why i was saying all that, you went back and cheekily accepted it!
 
That's just a preview
 
5:04 PM
@LewsTherin We need the types of val and opt to comment really.
 
they are both of type std::string
 
What result were you expecting?
 
The second extraction should fail, assuming no use of manipulators. Not sure why there is garbage though.
 
Westernish Europe.
 
5:06 PM
Why should it fail? stringstream evals to an array of strings ?
 
Seriously, what happened to Iceland? Ice giants?
 
so ss >> val should give me the next string in a loop say
 
Oh, it's back here.
 
@AlfPSteinbach Funny how Northern Africa is marked as Europe in that one.
 
5:07 PM
 
Als
Iceland is in Europe?
 
@LewsTherin I'm not sure what that means, but the only thing the stringstream holds in your pseudocode is one short string.
 
@Als Yes.
@AlfPSteinbach Oh come on! Turkey?
 
Als
@RMartinhoFernandes: Turkey is europe for sure
 
@Als Not the whole of it.
 
5:07 PM
oh damn I know why
 
And certainly not Western Europe.
 
Als
@RMartinhoFernandes: As a country
 
@RMartinhoFernandes Turkey is trying to become member in the European Union. And it's NATO country.
 
@AlfPSteinbach Irrelevant.
 
@LucDanton "one short string" xD cin returns on a space
 
5:08 PM
@Als Depends on how you count. Afaik, a geologist would say Iceland belonged to North America, but politically and culturally, it's European
 
Als
@jalf: Yeah, i had that doubt...
 
Hah, finally one without Portugal (and Spain)!
 
@LewsTherin It's good to get in the habit of checking your stream operations.
 
@RMartinhoFernandes Turkey is in the Eurovision song contest, and they're aplying for EU membership. It's pretty common to consider them part of Europe
 
Als
@jalf: You seem to be an expert on all matters :P
well read, well travelled it seems
 
5:10 PM
@LucDanton how do you mean
 
@jalf East of the Bosphorus is Asia. That map shows that as Western Europe.
 
or just an inquisitive mind, I guess;)
 
@LewsTherin if(stream >> blah) { /* success */ } for instance.
 
Als
@jalf: you are in Europe too i suppose?
 
Scandinavia is a fun one too. Denmark is definitely not on the Scandinavian peninsula, but is considered part of Scandinavia anyway
 
5:11 PM
Oh yeah..I know
It is weird that they make a cin.getline() function yet cannot pass a string object as a parameter
Twisted
 
@jalf Well, some of the islands are not on the European continent, but are part of Europe nonetheless.
 
@LewsTherin use std::getline from the <string> header
 
@LewsTherin C++'s iostreams were created before string.
 
@LucDanton But Europe is generally their nearest continental landmass
 
Is it called the 'Scandinavian peninsula' because it's the part of Scandinavia that is a peninsula or because Scandinavia proper should be a peninsula? :)
 
5:12 PM
@AlfPSteinbach ok thanks
@EtiennedeMartel that explains it
 
@LucDanton No clue :)
 
Als
Oh i was once in sweden, and i distinctly remember the taxi driver looting me! :P
 
I'm back
lol
 
@Als yep, Denmark
 
@LewsTherin That's also why ifstream's constructor takes a cont char *.
 
5:13 PM
@jalf The answer to that would determinate whether it's truly weird to consider Denmark part of Scandinavia, is sort of the point.
 
@Alf so it should be std::getline(string obj) ? that ain't working
 
@jalf I think Scandinavia is defined by culture and ethnicity.
 
@EtiennedeMartel yeah I was wondering why it only took that
 
Als
Scandinavia doesn't have enough population of their own? They easily give away resident status...lot of immigrant influx there i notice.
 
@RMartinhoFernandes Yeah, but it takes its name from a geographical feature
 
5:15 PM
works now
 
@Als oof, touchy subject
at least here
 
@jalf touchy in Belgium too
 
sbi
@AlfPSteinbach So do many eastern European countries, too. Are they also becoming western European by that?
 
Als
@jalf: Oh it was one of those taxi drivers, and i didn't want to tip him and he just wont give me back the change..and it pissed me
 
Ah it works! yay!
@TonyTheLion what C++ book do you use?
 
That looks like it will be hard
to understand
 
Als
@jalf: Is it a common practice to tip for taxi?
 
no, it's surprisingly easy to read
 
@TonyTheLion I suspect it's touchy almost everywhere, for the simple reason that most people who want to immigrate somewhere are doing so (at least primarily) because they expect a higher standard of living there than wherever they were previously. As such, their current income (etc.) is probably below average for the new area, and they're much more willing to accept poorer pay, living conditions, etc.
 
5:19 PM
@LewsTherin it's about the easiest book I've read on software development, and I've read quite a few books on the subject :)
 
ok thanks man..will grab it from the library
hopefully its there
 
@JerryCoffin prob right about that you are
 
Hah, I wish I could find C++ books on a nearby library.
 
but even in the US immigration is a touchy subject
 
Als
Scandinavia in particular seems remarkably open to immigrants from middle east, who most of the govts are not very keen to
any peculiar reason for that?
 
5:20 PM
@RMartinhoFernandes me too, wouldn't even know where to go to find one in a library here
 
@LewsTherin It's actually quite well written. Stroustrup's been working at Texas A&M as a professor the last few years, so he's gotten quite a bit of experience teaching C++ to real students.
 
@Als well, that is a touchy subject, not sure you'd want to get into a discussion about that
 
@JerryCoffin nice..I feel encouraged to get it. Why do you use "real" students though ? xD
 
Als
@TonyTheLion: uh well, i didn't know i just noticed that being there and in general
 
@JerryCoffin Texas A&M... Reddit always makes me think Europeans are smug about Texas
 
5:21 PM
@JerryCoffin "real students"... ?
 
@CodeMonkey cause I suspect some authors write books to teach people, that haven't ever dealt with actually teaching people in real life
 
@Als nope, not at all. I'm not aware of anyone ever really doing it, unless maybe they're super drunk ;)
 
Als
@jalf: I gather that was about the tips.
 
@Als for one thing, the west has quite a different culture to the eastern countries, and I think that makes for a great deal of the issues
 
@TonyTheLion Quite true -- primarily for exactly the reasons given. Immigration from Mexico (poor, high-crime, relatively poor educational system) is touchy. Immigration from Canada (relatively wealthy, excellent educational system, etc.) doesn't bother many people at all (not that a whole lot of Canadians particularly want to immigrate, but when/if they do, few people are bothered).
 
5:23 PM
and then there's religion
 
@Als I wouldn't have thought most governments treat immigration on a regional basis (other than asylum seeker status).
 
Als
@LucDanton: Yeah i think they do call it political asylum offically
 
@Als I'm not really sure that's true any more. For the last decade, Denmark has been in full-on xenophobia mode. Sweden and Norway aren't anywhere near as bad, but still a bit worse than they used to be
 
@JerryCoffin yea that's what I was referring too, having been in LA, and spoken to people there, this is what I noticed
 
@jalf And there's that... thing with that... abomination last July in Norway.
 
5:24 PM
@JerryCoffin yeah, probably true. Still depressing
 
also, it's very hard to legally migrate to the US from anywhere.
there's lots of stringent conditions you have to satisfy before you'll be considered
 
Als
@jalf: I didn't know, probably they(governments) are in panic mode about radicalization that might follow.
 
@AlfPSteinbach yes, as in people learning the language from the beginning, not consultants going to "C++ Next" (or whatever) will will then go out to companies and conduct seminars for other people (who are probably the most experienced at their companies) who will finally mentor their juniors...
 
Als
@TonyTheLion: Having said that, perhaps it has the most migrants than any other country?
 
@Als they're doing their damned best to radicalize people now. They don't have a reason other than populism and being voted in by stupid people
 
5:27 PM
Is there a better way to compare strings than using ifs?
apparently switch doesn't work with strings
 
Hmm, sounds like you're doing something wrong.
 
@Als probably yes, and you can't really blame them for making it hard, cause the native residents of that country should also have the chance for a job, and be the first ones to get it, which is I guess why the rules are so tight, so that there isn't a mass influx of immigrants that take all the jobs of the inhabitants of the country
 
Needing to switch on strings is not something common outside of parsers.
 
@Als At one time, immigration to the US was exceptionally easy. Over time it's become much more difficult.
 
Well, What I am trying to do is evaluate the options from commandline
 
5:28 PM
@JerryCoffin oh that sounds bad. but i'm a bit guilty of that for methodology.
 
For example
"create player 100 100 50 50"
 
Anyway, gotta go now.
 
that will create a new object
 
Als
@LewsTherin: Are you trying to learn C++ here? You need a book, You can't learn in a chat room.
 
@Als Still an absurd amount of paperwork and bureaucracy, which doesn't really seem to benefit anyone
 
5:28 PM
ok bye dude
 
2 hours ago, by Tony The Lion
@LewsTherin as I've said before, you need to read a good C++ book
 
It is working..just wondering if there might be a faster way
 
other than keeping a good number of people employed in the government, I suppose
 
just a kind reminder :)
 
@TonyTheLion I know, I get one when college starts lol
 
Als
5:30 PM
But the purpose why these very countries allowed inhabitants is they didn't have enough resources to manage their own business, now the problem is the inhabitants have grown over above locals
 
Als
who knew they would reproduce that fast
lol
 
Als
The governments misjudged their reproductive prowess!
 
@AlfPSteinbach Good or bad, what it means is that many of the C++ experts are accustomed to teaching the latest nuances to people who already know the language fairly well, not to relative beginners. Some (e.g., Scott Meyers) deal with that explicitly writing for somewhat more experienced programmers. Others (e.g., Schildt) are good at dealing with beginners, but don't know the subject matter. There aren't many others like Stroustrup who teach beginners well and know the language exceptionally well.
@RMartinhoFernandes Bye for now.
 
5:33 PM
@JerryCoffin Interesting perspective, thank you for that.
 
Als
@jalf: Oh btw talking of Denmark, copenhagen, i once visited there and was very excited to see the very famous Little mermaid and in the end the mermaid turned out to be very little to my liking
:)
I was a bit disappointed..yes.
 
sbi
LOL, meta users keep defending the deletion of my question as being triggered by nothing else but my use of the phrase "to fuck up" (not really directed at anybody, mind you). Well, if that is really so, I might just repost it after changing the "offending" phrase and see what happens to it then.
 
@sbi which q?
 
Als
@sbi: Could you do that?
 
sbi
5:36 PM
@AlfPSteinbach The one that was deleted. (You might want to follow the link.)
 
Als
@sbi: Lets see how that goes, Atleast we could have a real assessment
 
sbi
@Als Why not? Knowing the madhouse that is meta, I certainly stored the original question's text somewhere safe. :)
 
I need like 300 more rep to make it to 10K
damn
 
@Als you're not the first ;)
 
Als
@sbi: Would you mind posting the question again then without the F- word and then we see how they play it
 
5:37 PM
and probably won't be the last to feel that way
 
sbi
@Als LOL! What do you think will happen? That's so silly. Nobody who saw the question will, for a minute, believe it was closed due to that phrase.
 
bye
 
She is well named. ;)
 
Als
@sbi: It will piss off the ones who claim it was closed for the F-word
and reiterate your point and say
 
Als
5:39 PM
@jalf: Yeah, very famous actually, and then it is at one end of the city and at the end of it makes u feel weird that you made it all that way to see a small bronze statue that looks exactly the same as all those pictures
 
sbi
@Als This room is actually quite a hideaway still to us non-pretenders, so please just go and say "fuck" if you are refering to the word "fuck".
 
Als
@TonyTheLion: You posted that for the chick?
 
@Als yea well, what else would I post it for? Not for promoting Windows 95, duh
lol
 
Als
@sbi: huh? I say and have said fuck and sex a thousand times here, whats gotten in to you?
 
sbi
@Als You can easily find out by looking at which message I was referring to.
 
Als
5:40 PM
uh balls..
 
@Als you should have taken the short trip to Oslo and visited Vigelandsparken then. by the way we're getting a new statue park. this time with only statues of nakked wimmen :-) it was a bit controversial. but there is already restaurant.
 
there you go, I said something offensive :P
 
Als
@sbi: uh i just chosse to use it the way they say it, you thought i am spoilt like them eh
 
@AlfPSteinbach Does the last part of that message imply that the canonical way to settle something in Norway is to open a restaurant?
 
Als
@AlfPSteinbach: I haven't been to Oslo but one of my friends has lived there for more than a year, good place he says
 
sbi
5:42 PM
@LucDanton I almost spoiled my keyboard and monitor over that one.
 
The juxtaposition of "fuck" with a picture of Jennifer Aniston has to be more than coincidental here.
 
@LucDanton some times
this is typical vigelandsparken statue:
 
Als
naked women statues? only that i thought naked women would do better
 
@AlfPSteinbach "The Burden of man" or something, right?
 
Als
haha
 
5:43 PM
very few nakked women in vigelandsparken, but some, i think
 
Als
I have nothing against naked women or statues but that image is disturbing lol
 
Als
@TonyTheLion: is that one of get a fuck soon cards?
 
@Als donno
 
Als
ahh work tommorow
i have had a long weekend
 
5:50 PM
that's an epic view of LA
 
Als
hmmm nice
 
@Als ah job hunting tomorrow, I've doing that every goddamn day for how many weeks now?!! FML
 
@TonyTheLion is it real?
 
@AlfPSteinbach yes it is real
 
5:51 PM
because I've seen views very similar to that when I was there :)
 
Als
@TonyTheLion: Sometimes, good things take time to happen.
 
I guess
 
Als
trying is what you will have to do and get onboard something where you learn more
 
yes, I want to do that
 
Als
probably, you won't get something as what you need but then you need to get onboard somewhere
and experience matters, so if i were you i would take something to get going, easier said than done but well i would say that is the way to go about it
I did a job but not so much in to what i loved looks better on a resume than i didn't do anything.
 
5:55 PM
yea well, I haven't even got anything to get going atm
so it's a bit hard
 
Als
Give it a thought, opportunites will come along, but not sure how many will be exactly the same as you want.
so adaptability is the name of the game.
just my two bits of advice.
 
thanks man, I'm not trying to be picky or anything
 
sbi
@Als: I have posted the question again. Lets see what happens.
0
Q: Please do not delete questions, even if they become obsolete

sbiToday a bug on SO made all answerers appear as anonymous. There were a bunch of questions about it quickly springing up here on meta. Some got closed as dupes (fine), but one stayed open for a while. While we were still contemplating what happens in the chat, I checked other sites and found they ...

 
Als
@TonyTheLion: All the best and don't you lose hope, you are a tiger...err Lion now! even better
@sbi: Ah that's more like it, Im pretty sure they will find a way to pull i down
but lets see how it goes
 
sbi
@Als The way to pull it down doesn't need to be found. All questions come with a close button. It only takes one mod to push it.
 
Als
6:00 PM
2 upvotes as of now
I believe me and the Lion
 
Yes :)
<--- Upvotes all the things :)
 
Als
@sbi: Going strong, 4 upvotes :)
 
sbi
@Als I am not going to hold my breath.
@Als So each of you upvoted it twice? :)
 
lol, yea I logged in as my other self, and upvoted you again
 
Als
@sbi: Looks like Jeff is on a Lunch break to let it survive for 6 mins :P the last one was closed in 2 something minutes
 
6:04 PM
it's all about cheating the system :P
 
Als
@sbi: I think the urgency of the situation in the morning demanded they were superactive in deleting those threads
now that it is history, they will let it stay for they already fixed it
 
Right now, voting to close is probably justified: it's written as a suggestion (possibly a rant), not a question. Admittedly, much of what's on meta is really that way, but it gives a semi-reasonable excuse to close anyway.
 
sbi
@Als Well, since he was still awake when I posted that first question, it's probably a safe guess that he's asleep now.
@JerryCoffin Even if it is a rant rather than a question, then closing it would suffice, no need to delete the thing right away.
 
Als
@sbi: I wonder if Michael Petrotta can read
 
@sbi Quite true -- don't get me wrong. I'm not saying they're anywhere close to blameless or justified here, only that you've still left them with a fairly easy excuse for sweeping your question under the rug, so to speak.
 
6:11 PM
ugh meta, it makes me sick
 
Als
@JerryCoffin: if you can suggest an modification that would make that excuse go away, then it would be welcome, i think @sbi, won't mind
That dude can't read or is he just pretending?
@TonyTheLion: you should eat him
:P
 
sbi
@JerryCoffin Yeah, but I set out reposting the original question minus the swear word. I already did a few very minor modifications, but I will not totally change the question unprompted. As @Als says, feel free to modify it now, though, if you think it's not worth the wait for how the meta police will deal with it.
 
Als
Too late...Closed as Dup
^^^^^^ Did it.
 
What's in it for the moderators?
 
sbi
I think this comment by Jeff nicely sums it up:
> I like rewriting history, actually, and this build situation should never have existed. Now it doesn't. Also you're talking about a fifteen minute interval here.
I hate re-written history.
 
Als
6:18 PM
hmm..
 
@sbi Even if it remained open, I wouldn't have been able to edit it -- despite my rather higher rep on SO, my rep on meta is something like 250, so I can barely post things myself, and can't do much of anything else.
 
Als
anyways, heading to bed, too much of this shit makes me lose sleep
and sleep i need a lot
 
like Wikipedia, oh how "neutral", he he: "Two of the operations for which the Irgun is best known are the bombing of the King David Hotel in Jerusalem on 22 July 1946 and the Deir Yassin massacre, carried out together with Lehi on 9 April 1948. The Irgun has been viewed as a terrorist organization or organization which carried out terrorist acts."
 
@Als G'night.
 
mentioning big terrorist act then going on the say "has been viewed as terrorist", or even more vaguely, "oganization which carried out ... acts"
 
Als
6:19 PM
@JerryCoffin: Good day
bye @All
 
just because it was Jewish, I think
It's a bit like googling for "war criminal nobel"
 
@AlfPSteinbach That much is arguably pretty accurate: it's undoubtedly true that at least a few people did view them as terrorists. Virtually the only difference between "freedom fighter" and "terrorist" is whether the speaker approves [of|likes] the [people|organization|whatever] involved.
 
sbi
@JerryCoffin You can now suggest edits even if you have low rep. I suppose I could have accepted your edit. But it is moot now.
 
@JerryCoffin I mean, Wikipedia (its editors) has no qualms about designating some other organizations as terrorist.
 
@AlfPSteinbach An organization can carry out terrorist acts yet not be viewed as a terrorist organization (e.g. it does other stuff and terrorist acts may only be one of their overall means). I have no idea whether it is the case in your example, but if some consider the organization terrorist as a whole, and others only make note of the acts, what are you going to put down?
 
sbi
6:24 PM
@LucDanton Yeah, that's true. Just think of governments as "organizations".
 
@sbi Somehow, despite having reviewed at least a few hundred suggested edits from low-rep users, I'd somehow managed to forget that the same would apply to me... Oh well, maybe next time.
 
I think we live in very much a propaganda world. Like, Norwegian newspapers recently reported a remarkable operating theater in Libya, found only 100 meters from a hospital. But that was buried in the article, which made it look like a sex toy thing used by Col Ghadaffi.
 
@sbi I first wrote 'governmental organization' as an instance but it came out as exhaustive so I changed that.
 
sbi
@JerryCoffin It would have been a waste of time anyway,
 
@sbi Well, yes. But we knew that even before you posted it, didn't we? That was pretty much the point from the beginning...
 
6:26 PM
To be precise, first thing that came to mind is the bombing of the Rainbow Warrior. Is the DGSE a terrorist organization?
 
sbi
@JerryCoffin Yeah. Too bad it was closed as a dupe. Now we'll never know... OTOH, I'm pretty sure there will be a next time.
 
@sbi Undoubtedly true.
 
I'd like to encourage everyone to chime in on this "read this before posting" suggestion on meta:

http://meta.stackoverflow.com/questions/105838/feature-request-tips-hints-based-on-tags
(Ugh, how to make the question show up in the chat box?)
 
@AlfPSteinbach Quite true. OTOH, I think this here Internet thingy has helped a bit, at least for most of us. Here in the US, home of freedom (etc.), it used to be nearly impossible to get even a hint at what Al Jazeera (for one obvious example) had to say about most things.
@KerrekSB The link has to be the only thing in that message. You need to be quick, preferably with the link already in the paste buffer, so you post your intro, then the link by itself in the next message.
 
sbi
@KerrekSB Read the newbie hints. They explain this and other stuff.
 
6:34 PM
@sbi Thanks, will do.
 
sbi
Anyone interested in a HTML/PHP/WordPress job in Berlin? I just saw a friend making an offer on Twitter.
 
Hmm... the newbie hints must be the worst readability nightmare since MySpace...
 
11
Q: Is there a C++ iterator that can iterate over a file line by line?

thehouseI would like to get an istream_iterator-style iterator that returns each line of the file as a string rather than each word. Is this possible?

can any one explain : class Line : std::string -> does this Line will inherit 1 arg constructor implicitly ?
 
Constructors are not inherited.
 
Fighter jets scramble over passengers 'making out' in toilet

Read more: http://www.theage.com.au/travel/travel-incidents/fighter-jets-scramble-over-passengers-making-out-in-toilet-20110912-1k4xx.html#ixzz1XlUklWxb
 
6:41 PM
C++11 has a feature called 'inherited constructors' but as it uses a using declaration I find the name to be misleading.
 
@LucDanton : then how will this line work from code -> std::getline(is, line);
    class Line : std::string
    {
        friend std::istream & operator>>(std::istream & is, Line & line)
        {
            return std::getline(is, line);
        }
    };
 
Implicit conversion to std::string& I assume, i.e. upcasting.
No constructors are involved.
 
arrhhh i am keep forgetting conversion , thanks
 
sbi
6:57 PM
@KianMayne When I was much younger, I once shared such a cubicle for some time in a long flight across the Atlantic. I guess today we would have risked being arrested for that. :)
 
@sbi AND questioned by the FBI? ;)
 
when did "edit" change to "improve this question / answer" ?
 

« first day (331 days earlier)      last day (4603 days later) »