« first day (366 days earlier)      last day (4574 days later) » 

10:00 PM
1146? =)
 
And the hierarchy goes the other way.
 
In computer networking, reverse DNS lookup or reverse DNS resolution (rDNS) is the determination of a domain name that is associated with a given IP address using the Domain Name System (DNS) of the Internet. Computer networks use the Domain Name System to determine the IP address associated with a domain name. This process is also known as forward DNS resolution. Reverse DNS lookup is the inverse process, the resolution of an IP address to its designated domain name. The reverse DNS database of the Internet is rooted in the Address and Routing Parameter Area (arpa) top-level domain...
 
You start with querying the root server.
 
ok, it's reverse DNS lookup
 
@CaptainGiraffe yeah it's painful as fuck. Yeah I just want to understand what's happening before I do anything else
 
10:00 PM
And then go down to the most specific one.
It's still a DNS lookup.
 
@LucDanton Did you see the blog about the swiss guys actually doing this in the alps? Lot's of pigeons.
 
@CatPlusPlus what's your point?
 
That reverse DNS isn't any different than regular DNS lookup, it just involves different input.
 
if you know it better, then explain it yourself instead of making me wrong on everything I say
 
@CaptainGiraffe No, I read the RFC.
 
10:02 PM
@LewsTherin The protocols are actually written to be simple, but you need to have a tool (maybe wireshark idk) to inspect them live to get a fair understanding of it.
 
Well, okay, fine, I won't be correcting.
 
@CaptainGiraffe Yeah, I'm getting wireshark. Sniff out some passwords.
lol only joking :)
 
for good measures, I'll leave this here
The Domain Name System (DNS) is a hierarchical distributed naming system for computers, services, or any resource connected to the Internet or a private network. It associates various information with domain names assigned to each of the participating entities. Most importantly, it translates domain names meaningful to humans into the numerical identifiers associated with networking equipment for the purpose of locating and addressing these devices worldwide. An often-used analogy to explain the Domain Name System is that it serves as a phone book for the Internet by allowing the looking-u...
 
@LucDanton 1149 not 1146, my memory is deteriorating everything I have in there :/ RAID please stand up.
@LewsTherin Wireshark is not a good password sniffing tool =) It's a good tool for inspecting what happens on your network wire though.
 
there's other tools that are better suited for password sniffing, like Cain & Abel for example
 
10:06 PM
@CaptainGiraffe oh bummer :( I was going to email some folks to get their own broadband!
 
lol
i could explain most of the process, but it'd take a day to go through the whole process step by step...lol
 
and I'd probably have to be with you to understand :)
 
generally, though, unless you're writing a network stack, you don't have to worry about layers below the network layer -- the os will handle that stuff for you automagically
that's part of the point of layers...to abstract away the low-level details
 
@LucDanton I do believe it is the dead link that contained all the awesomeness of a fully implemented rfc1149.
 
@cHao yeah, but some theory helps I guess
 
10:11 PM
My google fu is not enough to retrieve it either, It might sadly enough be dead. It was a university effort though so it might still be out there.
 
@CaptainGiraffe blug.linux.no/rfc1149
 
@LewsTherin cHaos point is that what we need is an endpoint IP, and maybe a port on our end. Thats a very good way to start.
 
I understand, but what is this port? :S
when they say port 80
what does that mean
 
@cHao This is the awesomeness =) Bookmarked again.
 
0x80?
 
10:13 PM
The inner circle of the C++ lounge is pretty small I think.
 
the "port" is a transport-layer concept. lets programs communicate without trampling on each other's i/o
 
@LewsTherin 0x80 is not the same as 80, they quite likely mean the normal number 80. Its like and address to a recipient to your home.
 
:S don't get that at all
 
You designate every reciever of an envelope a number in your home, (you yourself can have several numbers) 80 would be your resident web-server.
 
10:15 PM
Blah?
 
The core members seem to SBI, Cat, DeadMG, Martinho, Luc Danton, Alf, FredOverflow, Tony, Johannes. Am I forgetting anyone? (There used to be GMan, Xeo, ...)
 
Google translates that to "Bleh!" in my native tounge.
 
lol
 
I feel like enumerating tonight.
 
@StackedCrooked ME, damn you
 
10:16 PM
@LewsTherin It's something I use as a greeting when I'm bored.
 
@LewsTherin Who the hell are you? :p Ok, I've seen you a few times.
 
@RMartinhoFernandes or depressed :(
 
@LewsTherin We're still just hangarounds, we need to do decent kills before we are accepted.
 
@StackedCrooked I'm offended :( Squeezed my heart :'( I hang out here often :)
 
@StackedCrooked You're missing Jerry Coffin, perhaps. He's not as vocal as the rest, but he hangs around.
 
10:17 PM
@CaptainGiraffe oh really? dang
 
@LewsTherin Hey, I didn't even count myself.
@RMartinhoFernandes Ah, yes.
 
Als, I forgot.
 
And Xaade.
 
And me
 
10:18 PM
KerrekSB?
 
There's a lot of people.
 
Lews Therin? :P
 
It really depends on what you mean by "core member".
 
He is still just a hangaround too?
 
Yes, Xaade.
Indeed there's more than I thought.
@RMartinhoFernandes I really have no strict definition for that. I guess it would be "the usual crowd".
I'm counting 12 already. It's a little bigger than I thought.
 
10:20 PM
@LewsTherin The people he listed have been around for several months. I've been here since March, I think.
 
Oh, I forgot jalf.
Sorry jalf.
 
@RMartinhoFernandes xD I know, I'm just trolling ;) March, wow... not that long?
 
The chat doesn't exist very long.
 
@LewsTherin Since I started learning C++. It's been 7 months now.
I'm not regretting it :)
 
@RMartinhoFernandes you're a fast learner I must say
 
10:22 PM
You started learning C++ 7mths ago? Wow, wtf.
 
I had a lot of background. That helps.
It's not like I started learning programming.
 
That's still mighty impressive :)
 
After some time, learning a language is about the syntax and the idioms, not learning programming.
 
@LucDanton Yeah I guess.
 
yeah...the second hardest language you learn is your first one
the hardest, is your second. :)
 
10:24 PM
> For a novice programmer, a year and a half seems appropriate; for a programmer who is a novice to C++ and the techniques it supports half a year seems more likely. Clearly, I'm talking of the time needed to really use the facilities of the language in a significant application. - Bjarne
 
after that, it gets easy
 
@LucDanton Even though scheme / php is quite a leap =)
 
@CaptainGiraffe Then perhaps that's not enough of 'some time'.
 
See, even Bjarne agrees it's not that much of an achievement.
 
@RMartinhoFernandes he is highly optimistic IMO
 
10:26 PM
I was always the type of guy that wanted to create stuff and only learn the minimal of a language that enabled me to do what I want to do.
 
bjarne is biased. c++ comes a bit easier to you when you created it. :)
 
I've been programming for about twelve years. Learning a new programming language is not hard now.
 
@cHao lol
@RMartinhoFernandes Wow. Very nice :)
 
@LewsTherin Really depends, there are a lot of "hireable" people having done certifications / short university programs but they are usually extremely niched.
 
@RMartinhoFernandes Programming language.
 
10:27 PM
@StackedCrooked That's what I said :P
 
lol
 
(Also, context!)
 
@RMartinhoFernandes Sneaky. And sneaky context. Wait, no.
 
programming languages are for the most part easy -- it's the underlying concepts that can get hard
 
Well, when I say programming language, I don't mean syntax.
I mean language as a tool.
 
10:29 PM
@StackedCrooked "I was always the type of guy that wanted to create stuff and only learn the minimal of a language that enabled me to do what I want to do." Funny sentence, you'd never end up with a minimal knowledge by that strategy.
 
Doesn't seem like he's aiming for minimal knowledge. (And I don't see why he would want to do that.)
 
@CaptainGiraffe I was sometimes very creative with minimal constructs. However, I shouldn't be too proud of that.
 
Sometimes it can be a good exercise to artificially handicap yourself. But it's not really something you want to overdo.
 
I remember wanting to make a Tetris game in Java and I hadn't learned about arrays yet. I was so frustrated because variables and ifs and fors didn't get me there. I thought that what I needed was something like a "spreadsheet". A table to represent the data. (Later I discovered that a 2d array would help me achieve this. Much later I realized that a 1D array does the job just as well.)
 
@StackedCrooked That's probably the most effective way known to man (women and kids!) to learn stuff. If you actually got away with a minimum you're a very particular species =) My best guess is that you learned very much during your experience, and a good refresher course at a good learning spot would kick you into the 1%.
 
10:33 PM
Why a single man, but several women and several kids?
 
Maybe not most effective timewise, but your neurons will thank you later.
@RMartinhoFernandes I'll leave that as an exercise to the reader.
 
The easy way out.
 
@RMartinhoFernandes Just recalled reading in TAoP there was this professor who didn't tell which of his exercises were research problems and which were simple questions. Of course one of the students cracked the tough one in the questionnaire.
 
Personally I see no problem with using "Man" to refer to the human race. It's not like you use "dogs and bitches and pups" to refer to the Canis familiaris species as a whole.
 
Not a good example? 'Cattle' seems to work here.
 
10:38 PM
@RMartinhoFernandes Yes I did of course use man as in mankind, but still; When you point it out it becomes obvious, as it would be if I actually wrote in my native language. Please be lenient =)
 
@RMartinhoFernandes Men
 
(Yes, I know dogs are wolves. Gimme some slack)
 
I agree with the live editing of entries =) Dogs are wolves?? I really need to change my inheritance slides!
 
@CaptainGiraffe They realised that genetically there's no significant difference between them. So dogs (Canis lupus familiaris) are a subspecies of wolf (Canis lupus).
 
I've been silly enough to sometimes use an evolutionary model to describe inheritance.
@RMartinhoFernandes instead of lupus lupus
 
10:41 PM
Prototype inheritance might work better for that.
 
So wolves really are for dogs what creationists thinks monkeys are for us?
@StackedCrooked Why do you say that? examples please
 
What do creationists think monkeys are for us?
I don't have much knowledge about creationism theory.
 
I'm ballpark guessing here, we are (not!) monkeys, nor share anything in common.
 
@CaptainGiraffe It seems natural to me. In prototype inheritance the object is cloned and properties are added or modified. Seems to resemble real-world inheritance more.
 
The dna stuff is just by accident.
 
10:43 PM
There's a significant difference.
 
@StackedCrooked Ah didn't realise you were talking JavaScript.
 
Non-human apes (not monkeys, don't let the Grumpy Old One see you using that word) cannot breed with humans.
Dogs and wolves breed freely, because they are the same species.
 
Donkey and a horse create a mule, which can't reproduce.
 
That's hybridization.
 
@RMartinhoFernandes We couldn't breed with the neanderthal either as far as I can tell from the current research.
 
10:44 PM
Wolf-dog pups are not sterile.
 
On the other hand dogs get wildly different phenotypes depending on breeding yet it's all the same species. So weirdness abounds.
 
@RMartinhoFernandes So we get all the cuteness from pups, with all the ferociousness from a wolf pack! Where does the polar bear fit in here?
 
sbi
@RMartinhoFernandes Unfortunately, I always see them.
 
@sbi hybridizations?
 
@CaptainGiraffe That's why they are Homo neanderthalensis and we are Homo sapiens.
 
sbi
10:47 PM
@CaptainGiraffe Using the word "monkey" for us apes.
 
@RMartinhoFernandes Yes I imagine that is the very reason.
 
sbi
@CaptainGiraffe What research would that be? I mean, they are a sub-species of the species homo sapiens, we are another sub-species. I thought the very definition of sub-species was that they can interbreed?
 
@sbi Well, they are, or they aren't. There's a lot of debate going on.
 
@sbi Well I'm quite liberal in that area. I could be called an "animal", perhaps even "oaf", and not take offense. Well of course considering circumstance
 
@CaptainGiraffe What if someone called you a "plant"?
 
10:50 PM
The Neanderthal (short for Neanderthal man, , or in English; sometimes spelled Neandertal) is an extinct member of the Homo genus known from Pleistocene specimens found in Europe and parts of western and central Asia. Neanderthals are classified either as a subspecies of modern humans (Homo sapiens neanderthalensis) or as a separate human species (Homo neanderthalensis). The first proto-Neanderthal traits appeared in Europe as early as 600,000–350,000 years ago. Proto-Neanderthal traits are occasionally grouped with another phenetic 'species', Homo heidelbergensis, or a migrant form, H...
 
Then my spy organization would disown me
 
apparently they're "both"...depends on who you ask :P
but then, there's apparently some evidence of interbreeding, so.
 
sbi
@RMartinhoFernandes The heads of our babies might not not fit through a female thal's pelvis, but from what I know their current classification is homo sapiens neanderthalensis (please forgive me if I blew the Latin), which makes us of the same species.
 
Under that view yes. I was pointing out that view is controversial.
 
What I understand, recent finds (during 2000- ) has created doubt in the Neanderthal / Sapiens non-breeding status. All from pop-science though, bring you own salt.
 
sbi
10:53 PM
@cHao Ah, yeah, in recent years they have managed to extract thal genes and found some of them in our genes, so interbreeding actually happened.
 
1
A: heap allocation returned from a function

Praetorian Will the heap allocation be returned from myAllo() ? No. The argument myChar is being passed by value to myAllo(), so you're simply modifying a local copy of the pointer, not the value of the pointer in the caller's context. memory pointed by myChar will be deallocated when ...

Could someone take a look at my unique_ptr syntax please?
 
That dna stuff is so compromizing =)
 
And upvote me if you like the answer :)
 
@Praetorian Oh, you're learning.
 
@RMartinhoFernandes I took your advice to the cat from a few days ago and didn't ask for upvotes outright :)
 
10:58 PM
@Praetorian That question has quite a few false premises.
 
Such as ...
 
user457812
Improper response: your face is a false premise
 
user457812
Which it probably would be in that context, actually.
 
And his answer seems to debunk them.
 
0
Q: initialize array passed by pointer

user1000107The function cannot initialize an array because sizeof() returns bytes of an int pointer not the size the memory pointed by myArray. void assignArray(int *myArray) { for(int k = 0; k < sizeof(myArray); ++k) { myArray[k] = k; } } Are there other problems ? Thanks

Funny question
 
11:00 PM
@Praetorian I think you pointed most of them out. But the complete disregard for tha c++ language strikes me (in the face; nil?)
 
@CaptainGiraffe At least he's using new and not malloc.
 
@Praetorian These kind of questions are very hard to answer for me. I'd usually like to start with explaining the concept of a local variable.
@Praetorian well ok thats +1 =)
 
Oh wow, that kinda background is better suited for a book, IMHO
 
Yes for sure, thats quite likely the reason I'd feel very uncomfy answering a question like that.
Considering the probable status he is at right now.
Maybe KerrekSB or maybe sbi will prove me wrong. I'd wager a guess Geret'Kal will show this question no love at all.
 
Haha, yeah that guy makes some of the rudest comments to silly questions
 
11:09 PM
Well, sometimes you see some incredibly silly questions.
 
I don't think he is rude. In my opinion he is precise.
 
Oh his answers always are, I didn't mean to say he doesn't know what he is talking about. But I have seen him make some rude comments.
And @RMartinhoFernandes is right, sometimes the questions want to make you scream "Open a fucking book!"
 
Yes I hear you @Praetorian I would disagree though about the rudeness.
Rudeness would imply unwillingness to help.
 
@CaptainGiraffe Sometimes the line between the two is incredibly blurry.
 
for sure =)
 
11:13 PM
@CaptainGiraffe I didn't mean it in that context either, maybe curt or abrupt would've been a better description. Anyway, that's enough bitching behind someone's back for me :)
 
He might be Pulp Fiction's "The Wolf" at occasion. Still, I'm very happy he is here. And didn't we all appreciate "The Wolf" over John Travolta's shenanigans?
Well heres a fun game for us all: assign a movie character to all the well knowns from here. First up Skeet and Lippert =)
Ok, I'll go first. Lippert is Ray in "In Bruges"(Colin Farell).
What would you consider the raii idiom? The class wrapping a file pointer, implementing a constructor(){ new file here } and a ~destructor(){ close the file } or a class doing class C(stuffs):that(stuffs.a),those(stuff.b){}
with an empty destructor
 
11:35 PM
You can have RAII regardless of whether you implement a destructor or not.
Conversely you can forgo RAII and still do stuff in the destructor.
As an example if a class uses member(new T[n]) in the constructor and delete[] member in the destructor it's following RAII (disregarding the rule of three). So would a class that uses std::vector instead.
If you want a more detailed answer you need a more detailed question.
 
@CaptainGiraffe I'm Robby the Robot!
(That was easy.)
 
In my own modest opinion a new stuff[] in a constructor is not raii, it quite likely needs to be dealt with in both the assignment and the copy.
 
That's why I said 'disregarding the ruel of three'.
 
@RMartinhoFernandes I am Jack Sparrow
 
I might change to R. Daneel Olivaw if/when they finally adapt Foundation to the big screen (apparently it's in the works), and it doesn't suck balls (which I fear).
 
11:43 PM
Also: Robby seems awesome =)
throw safety is of outmost importance in raii is it not?
 
Arguably it's the other way around. RAII is the easiest way to get to basic exception satety or better.
 
Thats one of my reasons for assigning the RAII idiom to not the wrapper, but the class using the wrapper. It's just a language thing but it's not natural to me so I like opinions.
 
(Really though the two are somewhat intertwined.)
 
@LucDanton Yes for sure, am I the struct S{ RAI i; S(stuff a):i(a){}} or the i, in my discussion.
 
11:49 PM
I really hate that for std::unique_ptr the members reset and release both start with re.
@CaptainGiraffe I don't think you're a struct.
 
=)
The point stands on that struct though
 
I don't know what that point is though.
 
For sure you know the point of RAII, but my question is where is RAII implemented, is it in S or i?
 
All your types should use RAII.
There's no good reason to not use RAII.
 
RAII all the things.
 
11:54 PM
'Using RAII' doesn't mean writing special members that handle resource acquisition by the way.
 
yes but i has a lot of pointers and destructors in it. The class wrapping a file pointer, implementing a constructor(){ new file here } and a ~destructor(){ close the file }
@LucDanton No quite the opposite
 
@CaptainGiraffe RAII should not be a factor when deciding where to put that code since all your types will use RAII.
 
Ppl please, I am not trying to argue against RAII. I'm curious as to when RAII is applied.
 
Everytime.
3 mins ago, by Luc Danton
All your types should use RAII.
 
Ok, I'm not getting my question across, thats for sure =) Give me an example of when RAII can't be applied.
 
11:58 PM
There isn't.
 
Try std::string
 
You can decide not to use it but that doesn't mean you can't.
 
@CaptainGiraffe std::string uses RAII.
 
Or why not std::vector
 
@CaptainGiraffe What about it?
 
11:59 PM
then we are at completely different understandings about RAII.
 

« first day (366 days earlier)      last day (4574 days later) »