« first day (525 days earlier)      last day (4424 days later) » 

5:00 PM
aha, some file has been modified in the future.
So it's quantum fluctuations then.
or my VM's clock that is out of sync
/etc/rc.d/ntpd start Y did I not make U autostart??
 
Any recommended reading on when to use boost?
 
the first question was stupid :P
 
when you want to do cross platform stuff
 
You should use boost when you think, "hey I need something not in the Standard Library" and discover it's in Boost.
 
5:17 PM
Hi
So I’ve been dabbling in reddit the last few days … and their post timeout limit is really annoying.
Almost as bad as the timeout for posting messages in the Stack Overflow chat …
 
@KonradRudolph i wouldn't dare wading in there. after trampling just twenty or thirty kids, i would get a whole flock of them on my back and neck. difficult to get at those parts
what's that other site, the one with someting about bytes or whatever it was?
 
@CheersandhthAlf Well, it’s a discussion platform. It brings out the worst in people, especially ignorant ones who think they have a clue.
“that other site”? … 4chan?
 
no older than reddit. lists news, and discussion on news
hm
my mind is rotten, but the will is strong
 
@CheersandhthAlf You mean /.?
 
i will find out...
 
5:21 PM
@CheersandhthAlf hackernews?
 
no, you will laugh at me when i find out
yes
!
thanks
maybe coffee will help
 
usenet?
 
slask dått, as vi say in norwegian /.
@TonyTheLion if u share anything on any sharing network, then chances are that you include some personal info. i've seen at least 3 bots that download only small files but all they can get of those. presumably looking for mail adresses and such.
 
@CheersandhthAlf that is, unfortunately all too true
 
i am trying to find the honeypot initiative, but wikipedia is slow
i'm still waiting for wikipedia...
googled instead
^ Apparently nice work!
 
5:36 PM
hmmm
 
1
A: Get tags of the same level?

DeadMGYou cannot parse HTML with regular expressions. For normal context-free grammars, I'd suggest just getting a parser, but the realistic state of HTML is that you need a dedicated HTML parser library.

 
what's a word for "up-to-dateness"?
oh my, that is already a word
 
I'm hungry.
 
what's the difference between overloading a base class method in derived class. and overriding base class method in derived class. are they both make other overloading version inside base class hidden.
anyone ?
 
5:49 PM
Oh, you mean shadowing vs overriding?
Actually, scratch that, it's not even shadowing.
Overloading a base class method in derived class simply creates a new method.
 
in this case does it make the other function in the base hidden
 
Well, no, because it does not have the same signature.
If you have a method f() in a class A, and a method f(int) in a class B (which inherits from A), then B will have both f() and f(int).
 
@EtiennedeMartel well it's not like the base class method is gone, but it's shadowed, hidden, not directly accessible
 
well it will have f() and f(int) but f() will be hidden if I want to use I should call is Object_B.A::f(); and not Object_B.f(); because it's hidden
 
5:55 PM
@CheersandhthAlf You mean a method with different parameters can shadow another one as long as it has the same name?
 
he he you said you was hungry
 
I hate you.
 
5:59 PM
@CheersandhthAlf so both overriding and overloading a method of base class from derived class both make all overloading version inside base class hiden. but I heard that I should not overload any method from the derived class bcz it's has
 
@AlexDan you can use using to bring forth the base class method(s). it's in the FAQ somewhere.
 
bad practice, whereas overrinding is okey , is this correct ?
 
not that I know
but it can be, definitely
like in MFC, they overloaded Create so you could never be sure of signature
 
@CheersandhthAlf thanks
 
I don't really see the point of shadowing base class methods, though.
 
6:06 PM
@EtiennedeMartel if you mean the rules, they protect you to some degree against changes in base class (which could otherwise change function call resolution). and they protect you against calls resolving to some base class method you never even knew about.
 
Which header file do I have to include in order to use Qi?
Oh I got it, #include <boost/spirit/include/qi.hpp>.
 
6:42 PM
36 flags? WTF?!?
 
There aren't even so many people in this room.
 
7:02 PM
i don't see any flags
 
Probably because you already acted on them.
 
7:19 PM
 
The acronym wiki is missing ADL I think
"Ambiguous Dubitable Lookup"
 
Hello everyone, how do you join a private chatroom with no one in them?
 
@tom_mai78101 If you talk in an empty room, does it make a sound?
 
@KerrekSB Yes, my own sound echos in the distance.
 
@tom_mai78101 Does it provide you satisfactory company?
 
7:30 PM
@KerrekSB No, I'm asking for help, and the only help I can get is my own voice. I can't make my voice tell me something I don't know without consulting anyone else.
 
@tom_mai78101 Why don't you post a question on SO?
 
Anyone care to help me with some simple Bash magic?
 
If you ask a question that nobody reads, you can still get a badge.
 
@KerrekSB Hm... Good idea. Except I already have that badge.
 
7:32 PM
@rubenvb Not so much "care" as "masochistically intrigued".
@tom_mai78101 The 'deadwood' badge, or whatever it's called?
 
Tumbleweed.
 
@KerrekSB Got that.
 
Driftwood? Deadweight?
Yes, that one.
 
A tumbleweed is the above-ground part of a plant that, once mature and dry, disengages from the root and tumbles away in the wind. Usually, the tumbleweed is the entire plant apart from the roots, but in a few species it is a flower cluster. The tumbleweed habit is most common in steppe and desert climates. The tumbleweed is a diaspore, aiding in dispersal of propagules (seeds or spores). It does this by scattering the propagules either as it tumbles, or after it has come to rest in a wet location. In the latter case, the tumbleweed opens mechanically as it absorbs water; apart from...
 
@rubenvb Is it about $* vs "$@", or arrays?
 
7:34 PM
@KerrekSB Scholar, Student, Tumbleweed, Editor, Teacher, and Supporter.
 
Two things:
1) I have a version string, something like 1.2.3 or 1.22 and I'd like to get ?.?.? or ?.?? respectively to delete old versions.
2) I have a URL/filename ending in .tar.* and I'd like to get that part.
Probably some ugly sed black magic or something
 
Tumbleweed can be awarded multiple times, I think.
 
2) for i in *.tar.*; do echo ${i%.tar.*}; done, I think.
 
@CatPlusPlus Seriously? Then why giving out badges of the same kind?
 
Why not?
 
7:36 PM
@KerrekSB well, say I have a URL stored in a bash variable, and I'd like to know if I have a .tar.gz or .tar.bz2 file that I downloaded.
 
@rubenvb I don't understand (1)
 
I have 45 "Nice answer" badges.
 
@rubenvb Do you mean "which of the two", or "whether either of the two"?
 
@CatPlusPlus Then I have no idea why you have 45 badges, when you could just get 1 free?
 
7:37 PM
@rubenvb if [[ $file = ${file%.tar.*} ]]; then yes; fi
 
@KerrekSB I'm downloading a bunch of stuff like gmp-5.0.4 and libiconv-1.14, I have the versions stored somewhere in GMP_VERSION and LIBICONV_VERSION and I'd like to make sure there's no old extracted sources in my source dir like libiconv-1.12, so I'd like to do rm -rf $SRCDIR/libiconv-$VERSION_STRING_FORMAT
 
@CatPlusPlus All you need to do, is go find a question that asks for philosophy related topic, then answer randomly. Then you get a "Nice Answer" without fail.
 
Not making sense.
 
@rubenvb So? libiconv-?.?? sounds right?
 
@CatPlusPlus I'm sure everyone will debate over that.
 
7:38 PM
Or use find if you need a more complex expression
 
@KerrekSB yeah, but that won't work for the GMP case
I need a general way to extract that format
I could just do rm -rf $SRCDIR/libiconv-* though
 
Get all files, ignore the one that's newest.
 
Hmm, I'm explaining this badly, or my head's ideas are messed up :/
 
Oh yeah, about the bounty: When you put a +50 bounty on it, do you lose 50 reps from your own reps? Like, I have 185, I put a +150 bounty, in return I am left with 35 reps, possibly me unable to join the chat?
 
7:41 PM
Then I'm not posting any questions with bounties then.
 
@rubenvb Rule #1 of bash programming: don't use bash for this.
Write it in Python, Ruby, Haskell, whatever.
 
Call me greedy, but this is how life works when you're in a libertarian
country.
 
You'll save yourself a lot of time and pain.
 
@CatPlusPlus well, I got everything else set up in Bash. It's a GCC toolchain build script. Works nicely as it is, I'm just adding automated source downloading.
@KerrekSB this gets me the rest of the filename, but I need the extension (the .tar.* part)
 
@rubenvb Use find with -delete target and a regular expression pattern (-regex).
 
7:43 PM
tar axf will unpack any file, regardless of compression.
Well, any supported obviously.
 
@CatPlusPlus still need a complete filename
Can I name the downloaded file anything I want?
Doesn't tar look at the extension to choose how to unpack?
Yeah, the manpage says -a uses the suffix to determine compression method
 
What's the problem, though? You need to know the filename beforehand anyway, if you're downloading it.
 
That's one big URL
 
Then split it.
 
I could seperate that
yeah
thanks
 
7:48 PM
output input?
 
hello...
 
Oi! Whats all this then?
 
Ooh, Erlang got 64-bit Windows support.
 
Let's bring all to the Puppy! And the kitten! And the lion!
It's a zoo out here.
No, not the mailman, Mr. Euphanize. It's not nice to bite someone's butt. You will have bad breath.
In fact, I should start considering changing the nickname to a less controversal one.
Scott Pilgrim.
Aw... But it matches your name nicely!
 
0
Q: Any STL doubly linked implemenations with pointer to head instead of previous

asdfasdfasdf asdasIs there an doubly linked list implementation in c++ that allows modification to the previous pointer. For example instead of the previous pointer pointing to the previous node, it can be modified to point to the front of the list, and thus all one will have to do is call previous to get directl...

Anyone know what this question is on about?
 
7:58 PM
This is really hard.
 
I can't figure out for the life of me why the OP thinks modifying the previous pointer to point to something that's not a previous node makes any sense.
 
@rubenvb Seems like the XY problem explains exactly your case: ${i##.*.*}.
 
@Insilico If you give me all of your reps, I may give you an answer. :)
 
@Insilico XY problem, again.
 
@tom_mai78101: The problem isn't even that interesting. :-)
 
8:00 PM
@Insilico Dang... You sounded like as if you are.
@ScottW You will start to care when you're less than 20.
 
After you pass 1000, it's pretty much impossible to get that far back.
 
@ScottW If you give a bounty of +500 for every question you asked over the years, yeah probably.
@ScottW Ooh...
@ScottW That will work. 6 * 500 = 3000.
 
@tom_mai78101: The fastest way to get rep is to answer questions well.
And get all the bounties
 
0 questions, 815 answers.
 
But seriously, rep is damn near worthless anywhere outside Stack Overflow
 
8:04 PM
@CatPlusPlus @ScottW Is it okay if I call you guys, "Josie and the Pussy Cats"?
Josie the puppy, and Pussy Cat for the kitten?
 
wget+sourceforge sucks balls
 
@ScottW You mean, Jughead Jones, from 1941?
Am I old? O_O
3 months in SO = old. @ScottW 's age = Mother of God...
@CatPlusPlus = Sage
@rubenvb = Probably a brother -in-law of @CatPlusPlus
I made a nice presence. :D
What if, people here stay idle for 6 hours, will people outside of this chatroom notice a disturbing amount of ghost avatars lying around?
 
@tom_mai78101: That's pretty much the case for Lounge<C++> all the time.
 
Who are you, by the way? I don't recall seeing you around here.
 
This is one of the more active chatrooms
 
8:16 PM
I think our only rival is PHP.
 
which is overstating it
 
@Etienne de Martel: Even so, this chat room is way more interesting. :-)
 
Of course.
"The room of a thousand topics"
 
@Insilico @EtiennedeMartel Let me introduce myself. I'm the Lounge Troll, aka. whatever @ScottW calls me.
Not lunch troll, mind you.
 
Hi Lounge Troll.
 
8:18 PM
Hello.
 
user406009
Looking at the list of talk pages, it seems that Javascript has more posts than Php by about 100k.
 
user406009
Still 200k less than C++ though.
 
It's because we have 2 languages we can afford to talk about in here.
One is C, the other is C++
 
Yeah, technically, we do talk about C.
Most of the time it's because someone walked in and asked a C question.
 
user406009
I think I have seen more talk about Java in here than C.
 
8:20 PM
There's a third one. Hidden, but in existence.
C++++.
 
You mean C#?
 
@tom_mai78101: What's C++++?
 
Those you seemed to have seen Java, we talked about C#
(C++)++
++++ = #
 
Calling C# C++++ is a bit of an overstatement
 
@Insilico Calling "overstatement" twice is an overstatement itself.
Oh wait.. Wrong person.
 
8:22 PM
Of course, you can talk about any language other than C++ here
Just don't expect to get a useful response. :-)
 
Including laggy response time?
 
anybody here knows EJB?
 
@Catfish: Enterprise Javabeans? Unlikely.
 
why unlikely?
is it so difficult?
 
This is Lounge<C++>.
 
8:24 PM
Because it's a C++ room, and most people here hate Java anyway.
 
Not Lounge<Java>
 
Asking Java questions in the Lounge is frowned upon.
 
Is like trying to blend Java coffee beans in a hot soup of water.
 
Lounge<Java> would not work in Java, because Java is too primitive.
 
ahhhh. Help. I have been frowned upon.
 
8:24 PM
It's frowned upon, because you're spoiling the flavor.
 
@CatPlusPlus No, it would, but it would soon become Lounge at runtime.
 
Troll to the rescue.
 
Primitive == not an object.
 
You've missed my cleverness there.
 
8:25 PM
Missed the joke.
 
@everyone Aww....
 
@Catfish But, yeah, perhaps you would have more luck on SO.
 
What if, we each of us tells a joke? Would we be splitting the fun up?
 
@tom_mai78101: No, because each joke would be adding to the fun, not splitting it up
Assuming it's a good joke
 
--------------------------------------------------------------------------------------------->
I see that when more people join this room, the starred messages go down a bit.
@Insilico Good insight. Missed that.
 
8:28 PM
is there an wget equivalent for curl -L?
 
Curly, stop Larry from following Moe. You'll get us into trouble.
Moe: slaps Curly Quiet.
I don't know, that command always makes me think of the Three Stooges.
 
What does curl -L do?
 
@CatPlusPlus it follows ugly sourceforge redirects
 
Last guy who considered himself a "troll" stopped coming here after I crushed his ego.
 
wget should follow redirects with no nudging.
 
8:32 PM
@EtiennedeMartel I applaud your efforts in crushing a fatal blow to my mentor.
@EtiennedeMartel It's an honor to have you crush me, for I will die honorably.
 
@CatPlusPlus well, I'm gonna have to disagree (see for example unix.stackexchange.com/questions/31821/… )
 
And...?
c:\dev\tmp>wget downloads.sourceforge.net/project/romfs/genromfs/0.5.2/…
--2012-03-24 21:35:17--  downloads.sourceforge.net/project/romfs/genromfs/0.5.2/…
Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: kent.dl.sourceforge.net/project/romfs/genromfs/0.5.2/… [following]
--2012-03-24 21:35:17--  kent.dl.sourceforge.net/project/romfs/genromfs/0.5.2/…
 
I do not understand why people would actually create 1 thread to do all the physics and drawing, while the other UI thread goes along and continues to draw the main buffer.
 
well, shit
 
8:36 PM
damn SF.net urls
 
@rubenvb You can blame that on your router, I guess.
 
@tom_mai78101 uh, no?
 
@rubenvb I just don't want you to get rage quit syndrome.
@rubenvb I care about you.
 
@tom_mai78101 Well, cross-thread communication is relatively expensive
 
and why on earth does wget use a capital O for its output file name argument?
aaaarrghh
 
8:39 PM
Unless you don't mind race conditions
 
@Insilico But they have already put in "synchronized", wouldn't that migiate race conditions?
 
@tom_mai78101: Synchronization is expensive. The fastest multithreaded code uses the least amount of synchronization possible
 
fuck Bash and all unix utilities
especially the GNU ones
 
@Insilico Then I guess parallel programming is for rich people.
@rubenvb Oh no! The rage quit syndrome kicked in.
 
@tom_mai78101: No, parallel programming is for people who doesn't think that putting mutexes everywhere will solve the problem
 
8:42 PM
I never said I quit.
 
There's a difference between concurrent code and thread-safe code
 
@rubenvb I never said you rage quit. :/
 
Your code can be fully thread safe but not concurrent
Synchronization intentionally limits concurrency
 
@Insilico I see.
@rubenvb <3
 
That's why there's been lots of work in lock-free multithreading techniques
 
8:44 PM
@tom_mai78101 Who the hell are you?
 
(but lock-free code is extremely hard to write correctly)
 
@rubenvb A nobody.
@Insilico I guess I'll leave that to the pros.
I should go ahead and sleep now. It's 4:50 AM. I'm logging out.
Bye everyone.
@Insilico Thanks for your tips.
 
maybe a stupid question but, what is lock-free code?
 
@joschua011 Code without mutexes or locks.
 
Mutexes are locks.
Lock-free code is based on atomic operations/transactions.
 
8:58 PM
Or single-threaded.
 
Yes, single-threaded lock-free multi-threaded code.
 
oh...ok...
 
"The Internationale" ("L'Internationale" in French) is a widely sung left-wing anthem. It has been one of the most recognizable and popular songs of the socialist movement since the late 19th century, when the Second International adopted it as its official anthem. The original French refrain of the song is C'est la lutte finale / Groupons-nous et demain / L'Internationale / Sera le genre humain. (English: "This is the final struggle / Let us group together and tomorrow / The Internationale / Will be the human race.") "The Internationale" has been translated into many languages. It is oft...
I thought about that when I read "The international zoo"
 
i love this song xD
 
@StackedCrooked Literally.
 
zmo
o/
is the stackoverflow chat interconnected to irc ?
(or xmpp/muc)
 
I don't think so.
 
zmo
damn websites that want to do everything in the browser...
 
I love this joke that sometimes appears in reddit comments: "I think you accidentally a word."
 
9:24 PM
@StackedCrooked "I accidentally the economy"
 
zmo
why the hell are we coding things, if people don't use it ?!
 
@zmo Because it's fun?
Or because we get paid to do it.
 
zmo
well, sadly, I think that's the only one time I'm coming to this chat, only because I do have a jabber client, an IRC client and my webbrowser is already overloaded with stupid stuff :/
/me sighs thinking of the good old usenet times ;)
 
-4
Q: C++ ever paid one of those programmer sites for homework/program assignments?

gamergirl22So I missed 2 weeks of class due to a personal emergency .. in that time we advanced from arrays/pointers/structs (which i get) to class implementation/specification, .h files and makefiles. im completely lost and am considering ordering one of those pay-for-homework sites for this next program. ...

look at the comments
 
Anybody knows what can cause a "pure virtual function call" error?
 
zmo
9:28 PM
aren't you trying to call a non-implemented pure virtual method ?
 
@EtiennedeMartel Calling the virtual function in the base constructor or destructor.
 
No, or at least not intentionnally.
 
@EtiennedeMartel doing a virtual call to a pure virtual function in the dynamic scope of a constructor or destructor.
 
Because it's a crash I get sometimes.
 
This kills the program.
 
Xeo
9:30 PM
@EtiennedeMartel Dangling pointer? Null pointer?
"sometimes" hints strongly at UB
 
zmo
you should try to gdb the stuff and look out where it happens
 
Hard to say. I can only "reproduce" it in release with all optimizations turned on, so debugging is tough.
 
zmo
ahah :)
 
Xeo
Concurrent code?
 
Xeo
9:31 PM
Is it atleast the same class that fails?
 
But not really.
 
Xeo
Oh, maybe a race condition?
 
i got my copy of "C++ Concurrency in Action"
now that CIA book will teach me on creating atomic bombs xD
 
@EtiennedeMartel Is my above answer wrong?
@JohannesSchaublitb Let the race begin!
 
9:34 PM
lol
ok, the USA definitely will be a critical section i should avoid!
 
Anyway, I think I found where the crash occurs, and it does not happen in a constructor or destructor.
 
@JohannesSchaublitb Make sure not to release confidential data under any condition.
 
i will be sure to not use AquireRelease
 
And don't share to much personal data with them.
 
hmm i don't know a fun threads reply to that ><
 
9:39 PM
@EtiennedeMartel I like to use Valgrind to catch mysterious bugs.
 
I'm on Windows.
 
Dammit, figured that would be the case.
 
Believe me, I would have loved to use valgrind.
 
usually if you are on windows there are at least as good solutions
 
In any case I always found it easier to find bugs when using the Visual Studio debugger.
 
9:40 PM
that's why i changed to windows7
and i still have my loved Gimp and Xchat
 
I still haven't found a good diff and merge tool on Linux.
 
try kompare
it's excellent
 
Hm, I remember it mentioned before. Guess I should check it out.
BitC seems to be dead. I had the impression that this programming language had gathered quite some attention.
 
9:55 PM
@JohannesSchaublitb is that book totally new?
 
@bamboon totally!
 
@JohannesSchaublitb it looks damn good
like it so far? do you think it is also appropriate for a non-C++-expert?
 
i haven't yet read it :)
reading will only work in the train. when im at home i'm on IRC and c++. no books xD
 
10:10 PM
I think I am just gonna get it
 
I learned multithreading basics by reading the documentation of boost thread.
 
I've read the first few chapters of "Concurrency in action". It is pretty good, but some parts are not clear.
It also seems to cover the library more than the underlying knowledge.
 
@Pubby you got the book?
 
Yeah
 
10:24 PM
@Pubby so you expected more general topics about concurrency?
 
No, I just wanted a reference to the C++11 threading stuff which it provides
Anyway, I'm gonna go. Ping me if you have any questions about it
 
@Pubby yeah thanks
 

« first day (525 days earlier)      last day (4424 days later) »