« first day (698 days earlier)      last day (4241 days later) » 

10:01 AM
@sbi Sorry, I thought that was funny. Pardon me for the star
 
@LucDanton no, it seems ok.
 
sbi
@thecoshman If there's anything to lol about, it's your pidgin German.
 
@sbi My German is just fine! I can point and shout real loud
"One of those please; no up their. One. ONE. UP THERE. THERE! ONE!"
 
@thecoshman That does seem like that would be confusing in German.
 
@Neil German? nah, I would say it English, loudly and with lots pointing, works the world over
 
sbi
10:07 AM
@Neil Oh that. The thing with this video is that I understand the real dialog, the meaning, and the subtle undertones, catch the accents they're speaking with, the use of old phrases. On top of that, the rick-rolling is nothing but a silly distraction smeared across a quite impressive scene. (Note: I haven't seen the movie. Basically, I only know this scene, and I only know it from that video.)
 
@sbi yeah, I've scene the real movie this is in, very good scene
 
sbi
@thecoshman "very good seen" FTFY.
 
@sbi I learned of it only from the parodies, but it looks like a very good movie
I think I'll have to watch it
 
sbi
@Neil It comes across like a classic German TV production. Not having lived with a TV for 25 years, I haven't seen most of those for quite some time. I can certainly not say whether the movie is interesting, or good, all I can say is that the scene, with it's quietness followed by his outburst, is quite impressive. Of course, nobody knows whether this is even close to what happened in the bunker back then.
 
@sbi A lot of people dislike it when a historical film fills in holes, but I rather like it. Of course just have to know which parts are real and which parts are filling holes
I think I read somewhere that the actor that played Hitler is actually Jewish, which is ironic
 
sbi
10:18 AM
> Bruno Ganz was born in Zürich to a Swiss mechanic father and a northern Italian mother. — Wikipedia
 
I'm wondering whether I should get a Sky TV subscription at my flat?
thing is, I'm alone alot, and boredom is my definite enemy.
Question is, whether just movies isn't good enough.
hmmm
 
sbi
I hope you're not asking me.
 
@TonyTheLion How can you be bored when there's so many things to code
 
sbi
@kbok Believe it or not, but there are humans that do not want to write code all the time.
 
@sbi Granted, although I'll point out that we are currently on SO's C++ room.
 
10:24 AM
@sbi no. I know your answer already :)
 
sbi
@kbok It's called Lounge for a reason. :)
 
@sbi To be completely honest I don't really know what it means.
 
sbi
@kbok This is not a place to solely chat about C++. It's a place for C++ programmers to hang out and relax. That does include C++, but also, sex, drugs, Haskell, and movies.
 
@sbi Oh, yeah, this I noticed :) What I meant is, I don't know what a "lounge" really is.
 
Xeo
A room/place to hang out and relax. :)
 
sbi
10:31 AM
Lounge may refer to: In architecture: * Airport lounge, private waiting area offered by airlines to special customers or to those who pay an extra fee * Living room, also known as a lounge room, a room for entertaining guests, reading, watching TV or other activities * Lounge, a public waiting area provided with seating as in a hotel; a lobby * Bar (establishment), also known as a lounge in some cases * Bar (counter), a section of a restaurant, typically with unreserved seating In music: * Lounge music, a type of easy-listening music * Lounge singer, singers in the lounges and bars of h...
 
I'm browsing it right now
 
@sbi Haskell actually is sex, drugs and movies.
And C++++, but that’s different.
 
@daknøk You're doing it wrong.
 
Sex, drugs and movies are all addicting, and so is Haskell.
 
@sbi 'seen' is the past tense of see, "I have seen things man". 'Scene' is a small part of a film or play "Act five scene seven is just amazing"
 
sbi
10:36 AM
I remember Billy Bragg tweeting from a tour in North America, that it is a Saturday night in a big city — and what he's doing is his laundry. He wrote "Sex, drugs, rock'n'roll, and clean undies". :)
@thecoshman "I've scene the real movie this is in..."
 
That's the seen I've scene.
 
@sbi oh crap damn it :P
what I said just is still true, what you quoted was (yet another) mistake of mine
 
sbi
@thecoshman I admit, though, that my comment (deliberately) wasn't overly helpful.
 
@sbi was it attempting to be funny?
 
sbi
10:41 AM
@thecoshman Actually, no, it wasn't attempting to be funny. It was funny.
 
@thecoshman Haha, for a moment there, I thought you were on a roll.
 
sbi
@R.MartinhoFernandes I thought he was about to make a scene.
 
@R.MartinhoFernandes I don't know if you recall, but I had an issue where recursive_wrapper<T> could not put constraints on its perfect-forwarding constructors since the whole point of the template is to deal with an incomplete type. I figured out that I can however add specializations to the relevant traits (is_perfectly_constructible/is_perfectly_convertible_from) since by the time those are instantiated then T would be complete.
Or it might just be working by accident.
 
Xeo
What does "perfectly constructible" mean?
 
@LucDanton Oh. I still have to check out what you did with those PF ctors.
 
10:45 AM
@Xeo The two traits work in tandem. They're designed to be used with one explicit T(U&&); and one T(U&&...) -- constructible constrains the former and convertible_from the latter.
constructible simply delegates to is_constructible. The magic is in convertible_from.
 
Xeo
"constrains" in what sense?
 
Namely, convertible_from<T, U> doesn't hold if constructible<T, U> does, so that the non-explicit constructor does not conflict with the explicit one.
@Xeo wtf you use traits for?
 
Xeo
Sorry, brain still not fully booted up :s
Just woke up a few mins ago
 
Hi
I was looking for places I could download XML data Streams for running my data mining algorithms
any ideas guys ?
 
@Xeo Asynchronous boot is annoying, isn't it?
 
Xeo
10:49 AM
heh
 
sbi
@TonyTheLion I have provided an answer. HTH.
 
It's like a external hard drive that takes a long time to awake from sleep modus.
 
would there be a right place on StackExchange to ask the question : " places I could download XML data Streams for running my data mining algorithms"
 
@RitwikG no. Not really. "where do I download X" are not really suitable questions for any Q&A site
 
@jalf No :) According to the doctor it was BPPV. It passed after two days though. I hope it won't come back.
 
10:54 AM
you could just ask "how would I read XML data and stream it into my data mining algorithms". Ask about the problem you want solved. Then people will give you the nicest solutions they know of, which might be to download an XML stream library which someone else has already written
 
ty !
 
room topic changed to Lounge<C++>: WTF kind of topic was that? Where's my share of whatever Apple paid us for that ad? [c++] [c++11] [c++-faq]
 
What ad?
 
@R.MartinhoFernandes what do you mean?
 
that laptops suck, but macbooks don't
 
11:03 AM
@sbi you really think so?
 
sbi
He is obviously referring to the previous topic.
 
daknok changed my topic to include Apple ad?
 
@thecoshman On a roll of giving English advice. Then I went back and saw what the message referred to :( (I was truly sad)
@CatPlusPlus Yes.
 
UNOWNER HIM
TAR AND FEATHERS
 
11:04 AM
lol
 
Meh, I don't understand how accept and connect are supposed to work
 
sbi
@CatPlusPlus Disown him yourself. We're not your minions.
 
@TonyTheLion in standard sockets?
 
That's what you think.
 
@R.MartinhoFernandes typo :P
 
11:05 AM
@TonyTheLion What do you mean?
 
sbi
@CatPlusPlus Sigh.
 
@sbi Can any of the owners disown the others?
 
accept creates a socket out of queued connection.
 
If you're writing server and client, then both have to run simultaneously else neither will accept or connect. Or do I run one of them in a loop until accepted or connected?
 
So you can reply to the client.
 
@TonyTheLion you can accept a new connection (socket) and then listen on another one. If your calls are non-blocking, nothing happens
 
sbi
@BartekBanachewicz Yep. All owners are equal. None are more equal.
 
now a war has been started
 
11:06 AM
@TonyTheLion Server starts listening and then waits for connections.
 
sbi
@TonyTheLion A war would require both sides to be armed, no?
 
@CatPlusPlus yes, but the listen is a non-blocking call, so it moves onto accept which is also non blocking in WinAPI
 
Xeo
@sbi They were, but you disarmed the other side
 
yup. I guess the faster one to disown wins it
 
@TonyTheLion More like, a war has ended.
 
11:07 AM
@sbi Technically, you won before it even started
as an ape would do :)
 
@TonyTheLion listen changes the state of the socket.
 
Xeo
Oh yeah, @Tony, did the Asio snippet work?
 
sbi
@TonyTheLion Actually I won the moment it started. That's how I like my wars.
 
@Xeo can't use it, we don't have it in the Boost thingy
 
Xeo
wat
 
11:08 AM
accept is blocking, unless you're using nonblocking sockets.
 
sbi
@Xeo Oh did I?
 
Then it returns an error indicating it would block.
If there is no connection waiting, that is.
 
Xeo
@TonyTheLion Your Boost installation doesn't have Asio or what?
 
Client can connect() after the server socket is bound and listen() is called.
 
11:10 AM
@Xeo indeed
 
Xeo
Okay wtf, how old is that thing?
 
@CatPlusPlus accept is indeed blocking
@Xeo it's not old, the main asio.hpp exists, but not the rest of the nonsense
 
accept is blocking, unless nonblocking, lol
 
BSD sockets are wonderful API designed by very smart people.
This might contain traces of sarcasm.
 
Xeo
11:11 AM
@TonyTheLion the fuck
 
@CatPlusPlus I have noted those traces
> No connection could be made because the target computer actively refused it.
this is my problem
 
Firewall.
 
Xeo
@TonyTheLion Port forwarding problem?
 
Also my life has now no meaning. I can't change topics.
 
@Xeo I had ai_family = AF_UNSPEC; instead of ai_family = AF_INET
which caused the problem on the client
 
Xeo
11:16 AM
mhm
 
@CatPlusPlus :(
Not sure if anyone will dare add you again, not wanting to piss off the ape
 
sbi
@CatPlusPlus You got your minions to do that, though.
@TonyTheLion I'm not a special owner, I'm just one of a dozen ten.
 
Btw, when we remove someone from the owners list, we should keep them on the explicit write access list.
 
Revolt against the oppression of the apes.
 
@sbi true, but for some reason it seems to me that on most owner topics, your input is always wanted.
 
Nice one Robot :)
 
I'll add daknok later because he hasn't suffered the anxiety of not being able to change topics yet; mwhahahahaha.
 
that's an anxiety?
people have no lives?
 
7 mins ago, by Cat Plus Plus
Also my life has now no meaning. I can't change topics.
@TonyTheLion Fortunately for some, and sadly for others, people only have one life each.
 
11:26 AM
I have 9.
 
me too :)
 
When my life is ending I look for another host.
 
sbi
@TonyTheLion Nope. According to native speakers, you're not a cat.
 
Felidae is the biological family of the cats; a member of this family is called a felid. The most familiar felid is the domestic cat, which first became associated with humans about 10,000 years ago; but the family includes all other wild cats, including the big cats. Extant felids belong to one of two subfamilies: Pantherinae (which includes the tiger, the lion, the jaguar, and the leopard), and Felinae (which includes the cougar, the cheetah, the lynxes, the ocelot, and the domestic cat). The first felids emerged during the Oligocene, about 25 million years ago. In prehistoric times,...
The lion is family of the Felidae, and so is the domestic cat.
 
@TonyTheLion The human is in the kingdom Animalia, and so is the domestic cat.
 
11:35 AM
 
sbi
@TonyTheLion So I said, but I was corrected by native speakers.
 
they're wrong
 
sbi
@TonyTheLion I know: I said so. I defended your categorization as a cat. However, I was told it's not that way in English.
 
@sbi where's their evidence for this fact?
 
@TonyTheLion struct Cat : Felidae {}; struct Lion : Felidae {}; // Therefore Cat is a Lion??
 
11:37 AM
your mum
 
@sbi But it seems that was not Tony's reasoning.
 
Per the Websters dictionary, there's two definitions 1a and 1b respectively, and they could be the explanation to this.
 
Xeo
Btw @Tony, I just remembered, you can have multiple clients connected to the same port, so how do you check if the port is "taken"?
 
11:40 AM
@Xeo I'm looking if anyone is listening on the port
 
Xeo
Ah, right.
 
sbi
@StackedCrooked Did you just put "Tony" and "reasoning" next to each other?
 
@sbi did you just insult me?
 
sbi
@TonyTheLion Casually.
 
I noticed
 
sbi
11:41 AM
@TonyTheLion I hadn't expected that.
 
I wonder if you're not a bigger troll than litb at times
 
Ape's on a roll today.
 
I think he's in an ape kind of mood.
 
@TonyTheLion "I noticed" is "kazuita" in Japanese. I learned that this morning :D
 
Xeo
Ape's on a troll today.
 
sbi
11:41 AM
@TonyTheLion Of course, I'm bigger. I'm a bloody gorilla!
 
@StackedCrooked cool
 
sbi
@TonyTheLion I'm in an apic kind of mood.
 
@sbi true
 
Damn, it was kizuita.
 
@R.MartinhoFernandes Oh, just to be clear: I specialised my own traits because at first glance it's not allowed to specialise Standard traits.
There are exceptions though.
 
11:46 AM
I haven't seen the ape pick on Robot or Cat for example?
I'm probably just an easy target for trolling :(
 
@sehe Well I went Off the chat. So I couldn't see the replies.
 
@TonyTheLion You haven't seen him pick on me?
 
@R.MartinhoFernandes no that I recall.
 
He like to pick lice from people's hair.
 
Dec 12 '11 at 21:15, by sbi
@RMartinhoFernandes How would you know? You're a robot.
 
11:47 AM
What I am wondering is. I didn't saw a boost::thread constructor that takes native_handle
 
Xeo
Robot remembers everything
 
@NeelBasu didn't saw?
 
@StackedCrooked didn't find
 
@NeelBasu Because there isn't one.
 
@R.MartinhoFernandes right. So there is no way to create a boost::thread, If I've already created that thread using some other vendor such as Qt.
may be there will be a problem with move construction
is that the reason for with it doesn't take a native_handle in constructor ?
 
11:51 AM
> pgCC compiler.
WTF is that kind of compiler?
 
@TonyTheLion symetric
 
Profile-guiding?
 
@R.MartinhoFernandes ironically, still advertising Apple
 
Ironically, my code works
unusual for me :P
 
@Tony A broken one.
 
11:55 AM
lol
 
Did @Tony ping you?
or is it just highlighted?
 
@LuchianGrigore what?
yes, it's highlighted
and I don't have sound here
 
@NeelBasu No. The reason is that it would break the abstraction.
 
@TonyTheLion that's not irony, that's strangely
 
by breaking abstraction do you mean there will be two controllers for one thread ?
 
11:58 AM
I don't necessarily mean that, no.
 
@LucDanton Then ?
 
flump
 
@DeadMG oh, those are tasty
 
What useful functionality would such a constructor add, compared to all the invalid uses it may add?
 
@LucDanton synergy
 
12:02 PM
well I may be getting some bad_vendor::thread that doesn't give me the required controls over thread. So I need to transfer its control from bad_vendor to boost::thread
 
It's not enough to have the native handle though. You need some guarantees on the underlying state. What if the preconditions on a hypothetical boost::thread constructor taking a handle such that you can't satisfy them for your bad vendor?
 
@NeelBasu but given that the thread was created by a bad vendor, how could Boost possibly trust that if they take ownership of it, it won't break?
 
If you want boost::thread to work for any handle with any state, how do you make that portably?
 
What if the bad vendor decides to kill the thread all of a sudden?
 
@jalf what's the status on that bug report?
 
12:05 PM
@LuchianGrigore nothing new, of course :)
 
Yes thats what I am asking I'll be having two controllers for one thread
 
@NeelBasu Or just don't use bad_vendor::thread in the first place.
 
@NeelBasu Maybe. It's a hypothetical scenario, why worry about the exact imaginary outcome?
 
@NeelBasu well, the only sane answer is "don't do that".
 
right
I wanted to be sure actually.
anyone have any idea on this ticket ? svn.boost.org/trac/boost/ticket/6018
* This is not related to thread
I am interested on boost::filesystem::touch()
 
12:12 PM
I think I may have new ring tone material...
 
-4
Q: Print prime numbers from 1 to 100 and 100 to 1 without using any loop (if, for, while etc)

padma057Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

Nevermind
 
delving into a big project that you've never seen before is not that easy, to fix a non trivial bug
@R.MartinhoFernandes labels and goto
LOL
 
user1182183
@TonyTheLion seems legit
 
user1182183
But aren't you creating a loop then? xD
 
user1182183
and you would need to check how big your var is
 
12:15 PM
@TonyTheLion You could also print prime numbers as compiler errors.
 
@StackedCrooked How ?
 
@TonyTheLion I'd just use 50 print statements.
 
user1182183
well
 
@NeelBasu There are implementations floating around on the Internet.
 
user1182183
the best solution
 
user1182183
12:16 PM
print("1 3 5 7 ..." ); xD
 
@StackedCrooked "prime numbers as compiler errors" ?
 
I can do it in one print statement.
 
user1182183
done XD
 
@StackedCrooked I prefer 50 (one per each prime, as there are only 25 primes between 1 and 100), because it violates the spirit of the rules in an even more blatant way.
 
lol
you violator
 
Xeo
12:17 PM
I wouldn't even bother calculating which is prime and which is not and simply print from 1-100, the prime numbers are certainly in there :)
 
@StackedCrooked Did you mean Compile Time Prime numbers ?
 
@NeelBasu Yeah, see here.
 
@StackedCrooked That I know . I surprised to see "as Compiler error"
 
Xeo
@NeelBasu template<unsigned N> struct dump; dump<calc_prime<...>::value>();
 
void print() const { dump(); }
void dump() const;            // Print a mask
Nice one
 
12:19 PM
@NeelBasu There are not many ways to print something at compile time.
 
@StackedCrooked struct {}_ = something
 
Not if something is {}!
:P
 
Xeo
or convertible_to_anything_that_is_default_constructible()
 
what if convertible_to_anything_that_is_default_constructible ?
 
Xeo
A class that is "convertible to anything that is default constructible" through a templated conversion operator
struct X{
  template<class T>
  operator T() const{ return T(); }
};
 
12:22 PM
There are special places in hell for that.
 
Xeo
I heard hell was warm and fuzzy
 
@NeelBasu How does that print at compile time?
 
is #pragma once more preferred to regular include guards?
 
@StackedCrooked It prints its type that I often do to check template parameters
 
@StackedCrooked Most things are not convertible to a random anonymous struct defined on the spot.
@TonyTheLion I doubt it's much less portable.
 
12:25 PM
I sometimes use: template<class T> void print(const T &, typename T::BLAH);
To get the type of T.
But it doesn't work if T::BLAH exists. At least not until link time.
 
That would SFINAE in some contexts.
 
Lol, I didn't consider that.
 
I have an ambiguous specialization match and that makes me sad.
 
@NeelBasu Makes sense. Aks a question, leave promptly. Makes sense
 
12:31 PM
Apparently <U&> is ambiguous with either <U, typename some_trait<T>::type> or <U&, typename some_trait<T>::type>. Didn't expect that.
 
sbi
> This thread post contains detailed information on how to view a hidden watermark which has been verified to exist embeded in JPG screenshots produced by the WoW client. The watermark itself includes, encoded in unencrypted bytes, the user's account name an HH:MM timestamp and the IP address of the server.
 
@sehe I'll not get upvote lol
 
@NeelBasu Huh. I wasn't going to give upvotes. I wasn't even going to give fucks
 
@sehe you cannot give a fuck here. cause nobody will suck that.
 
@NeelBasu I let them such anyway
 
12:34 PM
@sehe such them.
 
One TYPO can ruin your entire conversation
 
pahllloooonck
 
It's typocal.
 
lol
I'm so tired today
 
Xeo
@LucDanton How come that's ambiguous?
Shouldn't it partial ordering make the U& specialization more specialized?
 
12:40 PM
Let me check again.
 
Xeo
Also, where does T come from?
 
Sorry, that should be U. Only one parameter in the specializations.
 
Xeo
that makes more sense
@sbi How come you're browsing ownedcore?
 
I'm getting sidetracked by strange stuff. Like declaring (but not defining) a type early changes everything.
 
sbi
Steganography in the Wild: Steganographic information is embedded in World of Warcraft screen shots.... http://bit.ly/UNPuZf
 
Xeo
12:46 PM
oh, I see
 
0
Q: Point to specific value of an array

Floriki have an array, int* array, with more than 10.000 int values, but i want to point to each 100 position, it means that i will have int ** matrix, where: matrix[i][j], i want i from my matrix to point to array[i * 100], how can y substitute the adress ? here is what i ve done: u_int8_t **matrix =...

Is it just me or he making this needlessly complicated?
 
Yeah! Pirates of the Caribbean OST will make this day go with a lot more YAR!
 
@Xeo I can't say I'm anxious to understand what's going on, I've worked around it by sacrificing some decoupling.
 
@LucDanton ¬_¬ is that a buzzword you be using?
 
12:55 PM
No.
 
Xeo
That error is so cryptic..
 
@Neil his English is somewhat lacking. Which makes it seem very unintelligeble
 
@Xeo Is it? The two specialisations are ambiguous. What about it?
 
It's cyptic.
 
Xeo
Meh, with the template-parameter-1-1 thingy
 
12:56 PM
@TonyTheLion I think he wants to get the 100th pointer out of an array of 10,000 pointers from what it sounds like
 
It's T... for some pack T.... Should be (int, recursive_variant). Probably. They appear or can be deduced from the complete stack of errors since it shows instantiations and the like, at least some of the time.
 
I'll probably get shot for saying this, but can't you just use union and reinterpret the array as a two-dimensional array of pointers instead?
 
@Neil int *p = array[100];
should do it
::P
@Neil you got shot
 
@TonyTheLion Smartass :P
 
Ah crap, I had an answer for the prime number guy.
 
12:58 PM
was it prime?
 
#define i int
#define r return
i p(i o, i d){r !(d-1)||!(o%d&&!p(o,--d));}i p(i o) {r o&&p(o,o-1)?p(&o):0,p(o-1);}i main(){p(100);}
@TonyTheLion What ?
 
@kbok Holy crap
 
@kbok dafuq?
talk about unreadable
 

« first day (698 days earlier)      last day (4241 days later) »