« first day (419 days earlier)      last day (4543 days later) » 

4:00 PM
@RMartinhoFernandes I know. Not terrifically helpful.
 
Oh noes, not 2D arrays again!
 
:)
 
@CatPlusPlus that was preemptive
 
I'm going out to buy some food. I hope you're not talking 2D arrays when I come back.
 
no, it will be 3d arrays by then
 
4:00 PM
We'll be at 6D arrays by then.
 
first!
 
Where's your ambition, man!
 
sbi
@RMartinhoFernandes Do we have an FAQ for typename and template somewhere? Because if we haven't, we should.
@RMartinhoFernandes Are you referring to my message or to @keith's?
 
I am trying to build a case against complicated 2D arrays :)
 
43
Q: Where and why do I have to put the "template" and "typename" keywords?

MSaltersIn templates, where and why do I have to put typename and template on dependent names? What exactly are dependent names anyway? I have the following code: template <typename T, typename Tail> // Tail will be a UnionNode too. struct UnionNode : public Tail { // ... template<typen...

 
4:01 PM
@sbi I thought STL explained it very concisely in one of those videos, typename at least
 
@keithlayne noh NOT vids
they suck for reference purposes
 
sbi
@CatPlusPlus Good find! Now let's close that dupe.
 
@sehe no, agreed...but I've enjoyed those videos, especially the ASTL ones I've seen so far.
 
3
A: "expected primary expression" error on template method using

seheFound it: newResult.template set<Criterion>( criterion() ); if(newResult.template get<Criterion>() >= oldResult.template get<Criterion>()) return false; You have to qualify the member function templates for the compiler in this case. The lexer wouldn't be able to deci...

@sbi you mean that one ?:)
@keithlayne: good point, but not a goto-FAQ resource
 
sbi
0
Q: Illegal use of type as an expression

DeadMGI've got a nasty problem with some code and can't see the error. I have a template function template<typename T, typename F> void RecursiveParseLeftAssociativeBinaryExpression(std::unique_ptr<Wide::Parser::ExpressionAST>& cur_expr, F f) { CheckedIncrement(); auto new_expr...

 
4:04 PM
@sehe that was just me talking...pay no attention :)
 
sbi
Opps, that's by the puppy. I hadn't seen that.
 
0
Q: Split a string into an array C++

Ahoura GhotbiI have an input file of data and each line is an entry. in each line each "field" is seperated by a white space " " so I need to split the line by space. other languages have a function called split (C#, PHP etc) but I cant find one for C++. how I achieve this? Here is my code that gets the lines...

 
woof
 
I need more close votes on that one
 
@sbi ah - of course!
 
sbi
4:05 PM
@DeadMG I would have expected you to know about typename and template. Is Howard wrong?
If so, say quickly, otherwise I'll vote to close.
 
@sbi: I wouldn't think so. He's only a bit hand-waivy. Perhaps out of respect for the asker?
 
it is most assuredly not a typename or template problem
 
Make it clear he doesn't need to spell it out for the OP
@DeadMG: uhoh let me read the question first then :)
 
mostly because the calling code isn't in a template of any kind
and the only two template functions involved are trivial and trivially verifiable and contain no dependent name lookup
 
sbi
Wow! You got both Raymond Chen and Howard Hinnant at your question! I'm impressed.
 
4:08 PM
pity neither of them could answer the question
 
@EtiennedeMartel This calls for std::stay
 
and Raymond asked me what the error line was when it had "(this is the error line)" written right above it
 
Als
hola
 
sbi
Oops. Someone came across the operator overloading FAQ. :)
 
The {plural foreign nationality} are coming! The {plural foreign nationality} are coming! COBOL is safer than here. Run!
 
sbi
4:13 PM
@Als Wow. By now we might hvae more human regulars than animals here. I see a tradition dying.
 
@sbi Should I change my chat name to an animal name?
 
@sbi Lol, Java? I didn't write Java.
 
sbi
@Moshe I'm not talking about names.
 
wtf, animals are losing to humans?
doggy bite!
 
4:14 PM
Never!
 
sbi
@Moshe That same study revealed that only COBOl is safer than C++.
 
Ah, got it.
 
We own the place!
 
Safer as in? Surely not type safe...
 
sbi
@CatPlusPlus Why would doggies never bite?
 
4:14 PM
woof woof
 
Als
@sbi: Oh ya I had a profile makeover ;) About time we get more humane ;)
 
anyone good with bitwise math?
 
sbi
@Moshe Why don't you just read the damn thing yourself?
 
Also: WEEKEND!
 
@owengerig: good enough. does it matter?
 
4:15 PM
@sbi Lol, because I'm too busy. (Which doesn't explain why I'm in here.)
 
a busy person?
 
You're here to not do whatever it is you're supposed to do.
 
wtf is this?
 
hopeing for some help with a simple problem: math.stackexchange.com/questions/89916/…
im asking here because last time the math people said bitwise was a little out of their zone
 
Math.se is not for help with arithmetic.
Especially bitwise arithmetic.
 
4:16 PM
@DeadMG What is AccessExpression?
 
ya thats y i came here. not really sure where to go.
its not a programming question
 
@owengerig I can't make heads or tails from that question. It lists a lot of numbers, but never do you say what you are doing to them
 
a type
 
@owengerig What exactly are you trying to do?
 
a class, specifically
 
4:17 PM
It is arguably more of a programming question than anything else. Is this a mental arithm exercise?
 
that problem shows taking the last 2 bytes of a packet and getting an integer from it
 
You're ANDing with 7F, which makes little sense.
 
i need the opposite
taking the integer and getting the 2 bytes
 
@owengerig I see - homework I guess?
 
You want 4C from 4C02?
 
4:18 PM
no
 
Als
I see many new faces here...
 
been out of school for a while now
well it should be 4c and 02
those would have been the last 2 bytes of the packet
 
What do you have, and what do you want to get from it, precisely.
 
2 bytes (say 4c:02) from an integer number (589)or(24d)
 
Woo, not talking about 2D arrays.
@sbi Yours.
 
sbi
4:21 PM
@Als You see many faces. And few with fur.
 
(589)or(24d) is not a number.
 
sbi
@RMartinhoFernandes So you know the term?
 
It's gibberish.
 
sbi
@CatPlusPlus It's the same number in two different systems.
 
20 hours ago, by R. Martinho Fernandes
Why is everyone changing their avatar to a picture of theirs?
 
Als
4:22 PM
@sbi: About time to see the faces beneath the fur. Well, atleast no rumors of @als being a female no more :)
 

Software Tools Developer, 3D Graphics at ARM Ltd

Are you a smart software developer looking for an exciting role developing tools for computer graphics?ARM produces cutting edge tools and technologies for real-time computer…

Posted on Careers 2.0 on November 16, 2011

/drool
 
@sbi Not in English.
 
no its the math that both client and server adhere to to get the "join" value
 
@Als Could be a female that grabbed some random dude's picture in the Internet.
 
@RMartinhoFernandes disappointment
 
4:23 PM
the original formula is here github.com/CommandFusion/CIP/blob/master/CommandFusion/… under the method self.userDigitalPush = function (join, value, tokens)
 
Or worse, it could be a female that looks like a dude.
 
sbi
@RMartinhoFernandes Of course, you were faster. We know this. Nice robbie! Now please go into your corner and recharge.
 
dude looks like a lady!!!!!!!!!!!1
 
I think he just looks like a terrorist
 
I feel insulted now.
 
Als
4:24 PM
@RMartinhoFernandes: lol
 
I can totally see that guy whipping out some mac10s and gunning down some civilians
 
"Nice robbie"? I'm not a pet.
 
Als
@DeadMG: Who?
 
@Als
 
That code is ugly as hell.
 
sbi
4:24 PM
@Als Why not? There are rumors I'm human, despite my gorilla avatar.
 
And not even counting the fact it's in JavaScript.
 
Als
@DeadMG: huh me terrorist? why? what makes you think so?
 
sbi
@RMartinhoFernandes Rolls eyes. Neither had I! But you have heard the term?
 
dunno
just a crazy look in yo eyes :P
 
And I still don't know what the hell the question is, so I'll just go play something.
 
Als
4:25 PM
@sbi: Yeah the Bonobo who talks :)
 
@sbi We have something similar in Portuguese.
 
Haven't tried Dungeon Defenders yet.
 
Als
@DeadMG: I am coming after you with a broom not a gun lol
 
ok
I've decided that the best reason to use my own language is not just that the feature set will be vastly greater
but so that there are less goddamn bugs
 
4:26 PM
or at least, when they do crop up, I can debug them myself
 
sick of MSVC throwing compiler errors, at this rate, it costs me about a quarter of my dev time
 
sbi
@RMartinhoFernandes OK, thanks for the confirmation. That professor could just as well have been the only one in the world making this distinction. (He's a nice chap, though. We still have beer together sometimes.)
 
Oh, you've mastered Step Over? :P
 
sbi
@Als A broom should do for a puppy.
 
4:27 PM
you'd be amazed
 
@CatPlusPlus i editted my question though i dont understand where people are getting hung up at
 
I can't catch my damn puppy with any implement
she runs fast
 
Use a tranquilizer gun
 
Als
@DeadMG: You are the puppy for us mate
 
@CatPlusPlus the equation takes 2 bytes 4c and 02 and turns them to a hex number 24d. i need the reverse, figuring out what the 2 bytes are from the hex number.
 
4:28 PM
@DeadMG That's because you're slow as hell from spending all day sitting.
 
sbi
@RMartinhoFernandes You shouldn't start being offended before you have recharged. It's so embarrassing when you run out of power in the middle of a fit.
 
lol
 
you've never seen my puppy run
 
Als
@RMartinhoFernandes: You still battery powered eh? And you dream of controlling us humans....phew
 
4:29 PM
I've seen a lot of dogs run.
 
But it's nuclear battery.
 
sbi
@DeadMG "My puppy"? Do puppies have puppies now? Is that meta-puppies?
 
Als
@DeadMG: Neither have we seen you run, probably problem is you run too slow not that the puppy runs too fast.
 
lol
 
@sbi No, they're called "children".
 
4:29 PM
@owengerig bit shifts
 
@sbi Indeed. The picture isn't some random puppy, it's actually my puppy. The arm is mine.
 
beagel?
 
@Als My puppy can cover 100m faster than any human, I'd wager
 
Als
@DeadMG: Dont get us started on the frickin debate of whose arm it is, we already did that once.
 
lol
 
4:30 PM
A bitwise operation operates on one or more bit patterns or binary numerals at the level of their individual bits. This is used directly at the digital hardware level as well as in microcode, machine code and certain kinds of high level languages. On the simple low cost digital processors used in many embedded systems, bitwise operations are typically several times as fast as multiplication, sometimes also significantly faster than addition, at least in certain technical circumstances. On the other hand, modern processors in high performance segments usually perform addition and multiplica...
 
Als
@DeadMG: Is your puppy Usain Bolt? *rolls eyes...
 
sbi
@Als Yeah, Wasn't it that it turned out to be his sister's thigh or something?
 
humans aren't as fast as dogs, I'm pretty sure
 
Als
lol
 
4:31 PM
@DeadMG: highly depends on sample bias and subspecies
 
@sehe i understand the bitwise operations to a degree but i still dont know how to answer my question
 
@sbi No, it's my arm.
 
sbi
Proof by counter-example.
 
lol
 
sbi
4:33 PM
@RMartinhoFernandes But that dog isn't a puppy anymore!
 
Als
Did the chat guidelines not say no picture images inline anymore?
 
That was about GIFs.
Or NSFW stuff.
 
well, no more inline images for Tony then
 
I'm pretty sure dogs and babies are SFW.
(Babies, not the making of.)
 
Als
4:36 PM
@RMartinhoFernandes: huh someone might think I am on a parenting website
Given that I am unmarried its a potential prob
:)
 
sbi
@RMartinhoFernandes Animated gifs. Otheriwse I don't mind which format a picture is in.
@DeadMG From @Tony.
Where is he, BTW? Haven't seen him her ein days.
 
@sbi Oh, right not all GIFs are animations. Also "otherwise".
 
Als
@sbi: I havent seen him/her either
for a long time now
 
he was here this morning, I think
 
sbi
@RMartinhoFernandes Whereas babes with does are not, right?
 
4:38 PM
when I got up
 
(See that's why I edit a lot of my messages: I can spot the errors in them!)
 
Als
@RMartinhoFernandes: You are a machine, remember?
 
what's there to understand except shifting: `0x0 is 0b0000`; `0x8`is 0b1000`,

Ergo, `0x80` is `0b10000000`, `0x88` is `0b10001000`
 
sbi
@Als What's a "machine remember"?
 
Als
4:39 PM
oops formatting @sbi
 
@DeadMG What kinda pup?
 
sbi
@Als Please do not format me. My kids would object violently.
 
Cavalier King Charles Spaniel
 
That sounds fancy.
 
sbi
4:39 PM
@robjb Those are called Dead MGs. Silly name for a race, but what can you do?
 
Als
@sbi: ya ya I know
 
@owengerig in other words, shift the 'high significant nibble' down and mask with (and) 0xf, you get the hex digit (4 bits, i.e. nibble)
 
sbi
@DeadMG Admit, you just made this up, right?
 
Als
@DeadMG: Whats your pups name?
 
@Als "Puppy".
 
4:40 PM
@sbi no
@Als Daisy, actually
 
we had a previous brown & white puppy called Toffee, so I wanted to call this one Fudge
 
Als
Its a she-puppy!
 
sbi
@DeadMG Why wouldn't you admit? We all know so, anyway.
 
but my mother overruled me
 
4:41 PM
@Als A bitch.
 
@sbi because I didn't make it up ^^
 
Als
Hit the bot @DeadMG
35 secs ago, by R. Martinho Fernandes
@Als A bitch.
 
What? It's true.
 
@sehe it seems to me the first operation is to undo the or. so 24d -1 =24c but after that i dont see how to apply what your saying, did you get a chance to look at the question in the link i posted
 
sbi
@Als look at the first bullet here.
 
4:42 PM
 
@sbi Surely you mean this:
 
sbi
@sehe Taps foot.
 
sbi
@sehe Huh?
 
How's that relevant to bitches?
 
Xeo
4:44 PM
 
@sbi ffs I can't get the link to the image on my WikiP add
 
@Xeo Lol
 
@Xeo That's more or less my point. Will post in seconds
 
Taps lower appendage.
 
phew. That was HARD
I had to use developer toolbars, dig through css stylesheets to get anywhere near the image url!
 
Als
4:47 PM
@sehe: Who is she?
 
sbi
@sehe I appreciate you trying so hard to tell me something, but I have no idea what I am to make of this.
 
@sehe: I dont get it. Random college studying contributing to Wikipedia is a bitch?
 
@Als Now, the point was, that is the first bullet appearing on the WP page for 'Bitch'
 
That's not a bullet. That's a person. I know I'm stating the obvious, but it seemed necessary.
 
4:47 PM
@sehe Google Chrome's "inspect element" is very convenient for things like that.
 
Als
@sehe: I don't understand
 
Xeo
@sehe Maybe a screencap would've done the job, eh? :P
 
@Xeo How to get a screen cap on the chat though
 
@Als It was a bad joke... that photo was the first thing on the WP page, but it doesn't make much sense given that photo != bullet
 
sbi
4:49 PM
@sehe Well, the robot is right, though. She might take a bullet, but she isn't one.
 
Xeo
@sehe save it to a file, upload and link? Same as I did
 
Anyways, digging through css is a lot more fun and style
 
sbi
@Alf, where have you been all the time? What happened?
 
4:49 PM
ah, so that is the magic purpose of the UPLOAD link button
 
sbi
@RMartinhoFernandes Bad fake again! All the wrong messages colored.
 
You know, the buttons I don't use, I don't see. Autistic spectrum :)
 
Als
wtf this room is gone bonkers
 
lol
 
4:50 PM
@Als Everyone needs a little Adam Sandler
 
Als
@robjb: Well theres too much of Adam sandler in everyone here :)
 
sbi
@Als This room has gone bonkers 419 days ago.
2
 
Als
@sbi: Its been lot more crowded lately, c++11 effect?
 
Maybe school exam time.
 
Als
Anyhow, gotta run..dinner is served.
 
4:52 PM
@sbi You know... 419 is a Prime Number!
 
Als
have fun
 
Have a good meal.
 
Xeo
This is the kind of music I listen to all day
Anyone wanna call me crazy?
 
You're crazy.
Where do you collect my prize?
 
sbi
@Xeo I doubt someone would volunteer.
Oh.
 
Xeo
4:54 PM
Well, it wasn't some*one* but some*thing*. Robots, y'know.
 
@sbi Good thing we have the next prime-number age-day for this room in two days already
 
Xeo
And effing markdown
 
sbi
@Als Maybe it's simply that most SO users are bonkers, too.
@sehe You have made your point now. Here's you cookie. :)
 
@Xeo Never played Touhou, but the music is pretty good. Well, some of it.
 
Xeo
@Pubby I love the music. All the original soundtracks are non-vocal, and for some reason I really like that.
 
4:56 PM
@Xeo That's really odd -- I both like the vocals and the guitar, but not together. :|
 
Instrumental music is the best, vocals wear me down
 
Xeo
There are awesome vocal ones too
 
it's cold
 
sbi
Anyway, the boss is going to make a speech now, and then we're all invited to a xmas dinner. So I'll be away for the night. Have fun everybody!
 
and my code won't compile
night @sbi
 
4:58 PM
@sbi i'm not the one with a dog avatar! (fixed replyto)
 
@sbi Have fun.
 
Xeo
@Pubby Not if you have awesome vocals, like here
Imho, anyways
 
Uhh
Are you telling us you're confused about your identity?
 
@Xeo That's a pretty good song, although I can't understand a thing. Although I usually can't understand english lyrics either!
 
5:03 PM
@robjb nevermind. I'm quitting. I was tired. Getting more tired. And apparently my associations are getting to wild too follow. It is quite interesting to see this happening - if I'm not on a chat, I won't even notice
 
Xeo
@Pubby Japanese is quite hard to understand if you don't know it xD
 
@Xeo desu desu desu kawaii? That's all I know.
 
@sehe I'm also somewhat distracted, that could have an effect.
 
Xeo
Yay, time to watch my little brother again...
 
(473)
wow
 
5:12 PM
@Xeo That music was a bit too intense
 
Xeo
@DeadMG, mind upping your WideC source somewhere so I can take a look at it later on? this sounds like a bug in MSVC, see the MSDN page, which suggests that somehow a -> gets inserted like with this question of mine, where also something was inserted by the compiler without me knowing.
 
I might get a job where I can code exclusively in C++ :)
 
Xeo
I want one too. :(
anyways, afk watching my brother
 
keep looking!
stay hungry, stay foolish
:D
 
How about them 2D Arrays? Great stuff eh?
 
5:19 PM
?
 
@Xeo You should listen to OP2 of Death Note all day :P
 
you can easily address 2d data in an 1d array
 
@manler Well since you bring them up, I prefer a list.
 
wouldn't be surprised if the c# 2d arrays are just syntactic sugar
 
Argghh, stop torturing me.
 
5:20 PM
@Nils: Syntactic sugar for what? Single dimensional arrays?
 
@robjb for accessing 2d data
 
Ah
 
Just like C's are.
 
True, although that wouldn't work for jagged arrays, would it?
 
5:22 PM
Jagged arrays in C work fine too.
 
Oh, I know
I was just saying implementing a jagged array as a 1D array wouldn't work very well. ;)
 
Of course.
 
10
Q: Why are multi-dimensional arrays in .NET slower than normal arrays?

Hosam AlyEdit: I apologize everybody. I used the term "jagged array" when I actually meant to say "multi-dimensional array" (as can be seen in my example below). I apologize for using the incorrect name. I actually found jagged arrays to be faster than multi-dimensional ones! I have added my measurements ...

@RMartinhoFernandes there is a feature called multi dim arrays in addition to jagged arrays in c#
 
Yes, I know that.
 
ok
 
5:26 PM
Argh, I need more screen space
Two monitors is not cutting it
 
What's all the hype with more screen space? Is there something I'm missing? I tried 2 monitors for a while but went back to a single 15"
 
Multi-tasking mostly
I always have an IDE filling one, but the other I am often switching between 4 or 5 different windows.
And within the browser window, multiple tabs. I'd rather have one for the IDE, one for the browser, one for other stuff.
 
wow I have just a 20' monitor
 
@RMartinhoFernandes while(!stream.eof()){stream >> n;} //<- why this method of reading is not preferred ?
 
while(!stream.eof())
    stream >> n;
    do_stuff_with(n);
}
 
5:34 PM
The final data can be processed twice if it is followed by a newline
 
Now, let's pretend n is... an int.
 
@RMartinhoFernandes yes
 
And the stream has "10 blah" in it.
 
Also may not terminate if stream fails for reason other than EOF
 
@RMartinhoFernandes ok
 
5:35 PM
This will read 10, do stuff with 10, and the file is not at the end yet, so it will loop again. The reading will fail, but you'll still try to do stuff with n.
You want to loop while you can read.
Not while the file is not at the end.
 
@RMartinhoFernandes awesome , Thanks
 
^
 
I'm here
what's wrong with you people?
lulz
 
Always write your read loops with the reading as the condition: while(stream >> n) { do_stuff_with(n); }
2
 
@RMartinhoFernandes Yes I always do the same , just wanted to know the reason why that code wasn't prefered :)
 
5:38 PM
Sadly, you see people being taught to do it like that all over.
This cplusplus.com/doc/tutorial/files is one of the offenders.
 
 
And that site is the often the first Google hit for C++ related searches.
 
screen space!
 
-1
A: C++ random number between 2 numbers reset

trippleta simple solution to randomize once would be: int getrand(int min,int max) { static int init = FALSE; if (!init) { srand(time(NULL)); init = TRUE; } return = rand()%(max-min)+min; }

lol the -1ed solution was the accepted one.
 
5:52 PM
Yeah.
 
All my Sprint e-mails come addressed as "Dear username null," and have for almost a year and a half. Seems like something that should have been caught by now.
 
> UPDATE: aaaannd once again, it turns out I'm (err, the code I wrote) is TRWTF and once again null'd the article on publishing. And guess who didn't store the original. I'm on a very short layover, and the bush-leauge planes I'm on don't have WiFi; so expect a (re-done) update when I land. It was a fun collection, too
 
Ell
hey guys
im having a little design dialemma
im writing a graph class which is similar to a map in that its nodes can be accessed by key
but i'm not sure what should happen if a node doesn't exist? in a map a new one is created but i'm not sure if this will be desirable for a graph? (for pathfinding et al)
and this is just for me & learning
 
@Ell Well that would depend on how you want to use your graph.
 

« first day (419 days earlier)      last day (4543 days later) »