« first day (892 days earlier)      last day (4282 days later) » 

00:03
@Chucky clear() works fine. You corrupted your memory somewhere else
@Ell The problem is that it's the first sentence. I didn't actually write what interface it's the same as.
Could someone tell me how to make the type of arguments of the lambda be equal to the one of v's elements generically in this example: coliru.stacked-crooked.com/…
that's not necessarily bad, depends on the context
@Tuntuni decltype(v)::value_type.
Do you guys know how I remove all my git commit comments without making a new repo? I just want the comments and timestamps gone because I said some nasty things at some nasty times :-)
@Tuntuni a typedef
@DeadMG aha thanks :)
ah, i see. decltype(v) returns std::vector and then i can use the ::value_type typedef
right, awesome :)
i'm really starting to like c++11 more and more
00:10
you know what I'd really like?
my bed.
heh
what time is it there
It is almost yesterday.
time travel?
Time zone magic.
00:17
Why is current ending up in the hundreds? It should never be anymore than 5?
@Chucky it's not safe to remove elements from a container that you're currently iterating over like that
    for(int i=0; i < enemies.size(); i++) {
        enemies.erase(enemies.begin()+i);  //doesn't work like you want
Is that what's causing my problems?
and keep an id of each enemy
@Chucky probably, the rest of the function looks fine
00:21
@Chucky erasing when iterating? most probably some problems
What is the better way to erase?
mark each one to erase as dead
or, wait, no.
0
Q: C++ network communication

user1602687I have created openGL game and now I'd like to modify it to multiplayer. But I have no idea how to create connection. I just need to see how to send data through the newtork, for simplicity I want to start with simple network terminal chat where person on the other side will see what u typed into...

I am mixing things up because it's too late.
damn right it's too late
00:23
3
Q: Vector.erase(Iterator) causes bad memory access

xon1cI am trying to do a Z-Index reordering of videoObjects stored in a vector. The plan is to identify the videoObject which is going to be put on the first position of the vector, erase it and then insert it at the first position. Unfortunately the erase() function always causes bad memory access. ...

> Does anybody know how to do it?
I am always amazed by this
No, there's not a single person on whole SO who knows how to use networking in C++
Xeo
Xeo
And with that, g'night
@Chucky basically, the problem is if you're at index 2, and you erase that element, at what index is the next element? The answer is index two again.
@Xeo 'night.
2 hours ago, by R. Martinho Fernandes
@kbok . http://primis.org/time/output.gif
00:25
oh welp
sockets do seem intimidating at first
especially if someone has only used high level
network frameworks
but once you get into them they are not hard
they are.
anyway, I am going to sleep
00:27
lol
Xeo
Xeo
@MooingDuck oh, also always up-to-date?
"There is. It's called Google :/ And typing "C++ network communication" in it would give you a reading for a few years."
lol for a few years :D
@Xeo seems to be. There's several people on the forums attempting to make "auto updating" versions.
Ahhh crap. This is more complicated than I though.
@Tuntuni lol thats why I love letmegooglethatforyou
00:30
@JustinMeiners ;)
I got scared for a second there, I thought Justin Bieber was in the lounge
recommending that someone learn networking by Googling is patently irresponsible
@Chucky Iterate backwards. Plus annoyed I missed some hot SF chicks.
As in 'Star Trek ,the next template'
@Borgleader Shit! Don't say things like that at this time of night - it's after the watershed.
00:58
Also starboard. Is dog++ on substances?
@martin
whoops
@MartinJames The thing is I'm not removing the end value, I'm removing any possible value in the list.
so I basically need to remove the item, and then shift everything after the empty value to the left.
@Chucky As a general rule, if iterating over a vector and remove/delete items, always iterate downwards.
Won't that still leave an empty space in the vector at times?
@Chucky If the remove() operation copies all elements above down one, no.
user1357851
I believe I can fly
user1357851
01:07
WTF is that?
user1357851
good thing lounge nazis are not here
user1357851
@MartinJames sloth
@MartinJames That's the point it doesn't. Erase leaves a blank spot. That's my whole issue at the moment.
@Chucky OK, copy the little fuckers down one on erase - overwrite the blank spot.
01:09
But how?
@Chucky You know the erase index, you know the current top index. Loop.
Top Gear making amphibious cars, hilarious stuff
@Borgleader What, again? I've seen two so far, first on a midlands lake, where jezza's contraption turned over, and the 'channel' one where the Toybota made it to Sangatte.
I'm watching old episodes
@Chucky Not so -- when you erase something from the middle of a vector, everything above it is copied downward to fill in the hole (automatically).
01:21
@Borgleader OK. I don't suppose I'm giving much away if I say that the amphibious cars were ambitious, but rubbish :)
@ScottW Eh what
Alright.
I think she just doesn't want to hang out anymore.
@EtiennedeMartel A terrible loss to the troll community :((
@MartinJames Poor james...
@Borgleader Yeah - James,. and the PHP room, will never be the same now the insect is dead :((
@Chucky you're removing elements from a vector?
01:27
@MartinJames I meant James May... his boat totally failed
user1357851
Speaking of trolls, I got trolled by someone I didn't think was a troll. Went on with said person until ... suddenly I realized what's going on, then had to stop myself from replying
@Borgleader He won the first attempt across the lake.
@Telkitty You found a better troll than yourself? lol
@MartinJames Yeah but I'm watching the one where they try to cross from England to France
user1357851
@Borgleader not better of course, I have an entry in the urbandictionary, nominating me to be the internet's elitest troll by some users on another online gaming community
@Borgleader I'm surprised that Jezza didn't blow his propellor when trying to get onto the slipway at Sangatte in shallow water.
01:31
@MartinJames Yeah same
@Telkitty That guy was probably trying to get into your pants :P
Also where does Jezza come from? (the nickname)
user1357851
@Borgleader across the internet? I am amazed
People do crazy things
relevant
There is an IP/TCP protocol for pants entering?
@Tuntuni Yes.
user1357851
@MartinJames will it be multi-threaded?
01:36
@Telkitty Synchronized, hopefully :)
@Telkitty You have to send Ack or the connection will be refused
Anyway, enough of networked sex-protocols, I have to sleep. Bye all!
user1357851
later
user1357851
@Borgleader yes, it can even run in the background while doing something else ...
user1357851
this conversation is weird :x
01:41
Yeah just dont tell your partner you put their thread on low priority.
@Telkitty welcome to the internet
user1357851
@Borgleader it would be normal for 4chan, craiglist ... or maybe even reddit
user1357851
It's a bit out of place for C++ lounge
user1357851
01:59
C++ lounge is made for this(until a lounge nazi comes in):
user1357851
user1357851
How about this then?
user1357851
@ScottW Tss tss
user1357851
sure, go on if they are cute or funny
user1357851
02:13
huh?
user1357851
lol awesome
user1357851
usually people would not like to refactor code that works
user1357851
Of course refactor is for bettering the system. But if a complicated system has been running for years, then people usually do not want to touch it in the fear of breaking working code.
user1357851
02:52
Well, one of the worst things would be the users became used to certain bugs in the system, so they start doing things in particular ways to get around them. Then when your new version comes out which fixed all those bugs, they couldn't not adapt faster enough and complains having to do things a new way. lol .. people
user1357851
@ScottW you can have the best developers, your new version is not going to be flawless - if the system is complex enough
user1357851
I am just saying why people don't like refactoring. But if you are confident on making things better and it fits your budget, then go ahead
03:32
Why, oh why, did I not start learning Haskell sooner?
Just started going through it a couple hours ago and it's great.
I love that one.
Wait, newbs have been exterminated? When did this happen?
03:47
More like Windows 7 Professional.
No, that sucked.
There, thanks. Fits right in with what I'm striking out.
I wasn't sure if that had a professional version.
Knowing my luck, that's the book I'll use when I start university next year.
Actually, I have faith in UW not to do that to me.
04:10
C: The Complete Reference - “This is an excellent reference book for C programming. ”
Nicholas Adrian Mc. | 6 reviewers made a similar statement
user1357851
@JerryCoffin yes, and that knowledge comes from real life commercial software development experience, lolz
How does it have 3.8/5 stars if it looks to be so very bad on here?
@chris Because those who give it 5 stars don't know any better.
@EtiennedeMartel, Sadly true.
Honestly, Java is even more annoying when I'm so pedantic with C++. Everything I do feels like there's a more proper way of doing it (although absolutely nothing is intuitive), but I don't have time to research every little part and find the most correct method.
Before I figured out a bit more about list models, I added elements by copying to an ArrayList, adding onto that, and replacing the list. I felt really terrible writing that code, but it was the best I could come up with at the time, since none of the casting to DefaultListModel was working.
@EtiennedeMartel There's more to it than that. If you ignore technical accuracy, Schildt is actually a very good author. He's engaging, strikes a nice balance between serious, humorous and witty. His examples are interesting, and explained so beginners can understand them (or at least think they do -- some of what they understand so clearly is, unfortunately, just plain wrong).
04:21
I am running a countdown timer in a div. Can i use any flip style or else in it?
user1357851
@JerryCoffin Not sure why someone would want to read a technical book but ignoring the technical accuracy, if they like to ignore the technical accuracy part, they should just read a fiction instead?
@JerryCoffin, I got that feeling from reading the reviews. It sounds like the book would be extremely high up in the list if it was correct and, from the sounds of it, didn't unnecessarily broaden the scope.
@Telkitty I'm not saying they should -- I am saying that there are some fairly good reasons that Schildt sells so many books and is so highly regarded by so many people -- and there's a lot more than simple ignorance involved in that.
user1357851
@JerryCoffin lol true. Need entertaining books to lure newbs in, then once they become pros, they are hit with boring ones with great technical accuracy
By contrast, many of the more accurate books are also dull, dry, and frankly boring as hell. No, that's not all accurate books, but it is an almost surprisingly high percentage of them. Very few are both technically accurate and well written.
04:26
Therefore, the better programmer you are, the more boring you become.
user1357851
not entirely true - being interesting or not is purely subjective and depends on the person, although there is some correlation being a geek and generally considered boring by no geeks
I generally find good content more worthwhile than being interesting. It's worth coming out of it with a good knowledge of what you're trying to learn if you put the extra effort in to read it without giving up.
@chris I don't think that has to be true, but pretty clearly is a lot of the time -- people who care deeply about ensuring that absolutely every detail of the book is precisely correct are obviously very detail-oriented, which often comes across as cold, distant, aloof, and even arrogant.
Inaccurate books are bad and fuck the entertainment factor
Unlearning crap is harder than learning new things
Of course inaccuracy is bad. I prefer more in-depth content, though, as opposed to something that will make me a bit confused about some topics after reading about them, or missing some areas completely.
user1357851
04:32
With the advance of the internet, I wonder whether the concept that geeks are boring will eventually be outdated ... because a geek might be boring in real person, they are not necessarily boring on the internet
@Telkitty I suspect it helps in at least one way: the Internet makes it much easier to tune into somebody when you need the deep knowledge of a specified topic that's almost the defining quality of geekdom, and then (importantly) tune them back out when you don't care, get bored, etc. Much worse at, say, a party, when you get somebody insists on spending an hour on some subject that probably wouldn't hold your interest for 15 whole seconds.
user1357851
@JerryCoffin one day I am going to invent glasses & invisible ear plugs that would beat googles - so their wearer can be attending whatever she's forced to attend and her mind could be else where </DayDreaming>
05:02
DreamVision - by TelKitty
Okay Glass, play Game of Thrones S3E1. pretend to watch whatever event you're at
You might have trouble telling it to do that inconspicuously, though.
user1357851
05:17
@ScottW Nah, Cat++ just pretends that he is. I would not be surprised that he gets sneaky and joins SO on another name and ask newb questions on Android app development
Hm.
#ifdef THIS && THAT <--- invalid, it seems
so I have to do #if THIS && THAT
or #if defined(THIS) && defined(THAT)
@ThePhD does that work even if THAT is not defined ?
What was the lowest version Bartek was supporting in Minicraft?
3.3 ?
3.3
Sounds like fun.
what is Bartek's minicraft really about, I didn't understand his description?
Shrug. Fuck if I know.
Ask him.
05:25
I asked him, I didn't understand his desc
I dunno what to tell you then. :D
...
Okay...
a static std::thread does not know how to fucking exit properly.
That's rich.
lol, thread is like a child, it needs a family to contain it
I hate std::thread..
inherit it to create your own version
-3
Q: Recursion for nested loops

JohnjIs there a way to create a recursive function of the following code? for(int i=0; i<1000000; i++){ for(int j=0; j<1000000; j++){ for(int k=0; k<1000000; k++){ //Do something using i,j and k } } } I need it to combine every possible sequence of numb...

^^ OP's code might take a while to run...
05:39
@Mysticial why would you want to do that recursively ?
@SteveJobs To make it even slower?
@Mysticial haha
@Mysticial i can try, my recursion skills == 0 so yeah...
I gotta say that will trouble call stack
@ScottW I saw that coming -_-\
05:44
because you're not a machine
Funny, because I'm just on the recursion chapter of the Haskell resource I'm using.
user1357851
@ScottW coz that's the only way to reach the dream version of anything :p
@Mysticial i got a stack overflow sorry
user1357851
I won't trust R.MartinhoFernandes, the robot in his avatar is holding an almost naked, unconscious woman. I wouldn't even ask him that the robot is going to do ...
0
Q: malloc / free for resizing array

mohitQueue.cpp include "Queue.h" include "Log.h" void Queue::resize(int n) { Log("[Resize] Req: %d ", n); DATA_TYPE *temp = (DATA_TYPE *) malloc(sizeof(DATA_TYPE) * n); int i, j; for(i = f, j = 0; i < r; i++, j++) *(temp + j) = *(buffer + i); Log("Buf: %p ", buffer); delete buf...

05:48
@Telkitty what the fuck ?
^^ oh gawd... the formatting...
user1357851
@Mysticial yes, making sure you are aware of the header files included
user1357851
very important in diagnosing buggy software
user1357851
@SteveJobs yes Cicade?
user1357851
@ScottW I was going to say ... :p
06:20
@ScottW It's pretty easy to have as one of your top tags if only 0.011% of the entire question base on Stack Overflow is tagged with it. :-)
06:42
Mmm, scanners.
06:54
I've always wondered how those top tags are chosen.
Since it's not strictly by votes.
07:23
@ScottW :) that's not news to us, right
good morning
Is it me or do I find a lot of the posts flagged as "spam/offensive" to be neither spam or offsensive?
@Insilico same
I think I've seen only a few that I thought was actually worthy of being flagged.
its annoying to see silly flag
user1357851
@NullPonyPointer are you a girl?
user1357851
07:34
I find your avatar extremely appropriate for a 16 yo girl
@Telkitty nooo :P
user1357851
Oo, then sry, I did not imply your avatar to be a bit gay for a guy.
user1357851
Although I wouldn't expect any guy to use a pink pony as his avatar
@Telkitty it was just for trolling some buddy's in php chat room .. but i am too lazy to change it now :D
Xeo
Xeo
Morning
07:46
Morning
Evening
Hmm.. I can't see ruben's mingw 4.8 with threads
Xeo
Xeo
@Mysticial Hey, did you watch GuP this season?
Xeo
Xeo
Girls und Panzer
07:54
oh, nope
Xeo
Xeo
Friend of mine coerced me into watching most of it on Sunday, I liked it. A bit like Saki, but with tanks. :P
@sbi you poor confused primate. I am on a course for work, nothing too complex you see.
Am I blind or can I not find @rubenvb 's mingw64 4.8 with threads :(
08:20
@ScottW you're looking at the full source archives. You won't need it
Typical net install is 100-150Mb
08:56
@Rapptz Seems I forgot to upload it. I'll do it tonight.
user1357851
09:21
user1357851
user1357851
09:33
@sehe did you scare all the kids away?
Ten gold badges TYVM! Now I never have to touch ever again! Yeah!!
You're about to get as well.
And my rep graph shows -80 today
how sweet
@Mysticial yepper
It has been said that the price difference between the C89 standard (approx $130) and "The Annotated C Standard" (approx $30) reflects the added value of the annotations. — Bart van Ingen Schenau Nov 1 '10 at 20:29
haha

« first day (892 days earlier)      last day (4282 days later) »