« first day (319 days earlier)      last day (4630 days later) » 

1:00 PM
Hey wait a second. Its acting normally if I remove delete _ptr.
this is confusing...
 
Huh.
Why are you deleting a function pointer?
 
@wilx can't you delete any pointer?
 
Also, use ctor-initializer instead of the ctor body.
@IntermediateHacker: No.
 
Can you explain the ctor-initializer part?
 
Function() : _ptr (0) { }
 
1:10 PM
@IntermediateHacker you don't really delete the pointer. You delete the object it points to. And in order for an object to be deleted with delete, it must have been allocated with new
2
@IntermediateHacker use the syntax @wilx showed to initialize member variables in the constructor
 
@IntermediateHacker why don't you use std::function for simulating function pointers?
guessing that's what you are trying to do
 
once you enter the constructor body, all members have been initialized, so when you do _ptr = 0, it's not an initialization, but an assignment to an already-initialized variable
 
@jalf I see.
 
which means that the variable must be of a default-constructible type, and it's less efficient (becuase you're doing initialization followed by assignment, instead of just initializing)
 
@jalf you know, that's funny, cause this syntax for init doesn't exist in .NET languages, so I wondered if then in .NET variables are only initialized when the ctor has completed?
 
1:13 PM
Okay. I just got a new error when using references...
 
@TonyTheTiger yeah, exactly. That's why you can initialize a readonly variable in the constructor body
 
uninitialized reference member _cargs
 
until the end of the ctor body, you're still in the initialization phase
 
@IntermediateHacker refs must be initialized
@jalf oh ok
 
but what should I initialize _cargs to?
 
1:14 PM
@IntermediateHacker what should they reference?
 
@IntermediateHacker to something you pass in the ctor or to something inside the class
 
the point in a reference is that it is a reference to something
if you don't have the "something", you can't create references to it
 
refs can't be NULL, if you want NULL then use a pointer
 
hi
 
1:16 PM
sup?
 
not much
 
Als
ola
 
Okay I think I've got the hang of it. the problem now was _cargs , and void operator () (void) { if (_ptr!=0) (*_ptr)(_cargs); }
 
out of curiosity. why does the dotted line come up after every few entries?
I am talking about the chat page
 
1:19 PM
I'm not completely sure wht it is
but it's some kind of time break, I believe
 
stackoverflow is made in C# and ASP.NET right?
 
@IntermediateHacker yep
 
Can this be considered a version control system ?
 
@IntermediateHacker its supposed to be a line indicating to where the system thinks you've last seen the chat messages, so I guess it's based on when your window was last in focus or something
 
Hey is anyone interested in contributing to my library? I'm not asking you to code day and night for me. Just .. you know. correct a few design flaws and bugs?
 
1:23 PM
@IntermediateHacker oh I have time
 
@TonyTheTiger Great! I'll upload it to code.google.com
 
sbi
@IntermediateHacker The chat makes that whenever it thinks you have missed something, IIRC. I suppose it does this by watching the focus on the browser tab/window.
 
@sbi oh, you just repeated what I just said, lol
 
sbi
@kbok If nothing else, it might be a manual one. :)
 
@IntermediateHacker kewl
 
1:24 PM
@IntermediateHacker What is the library about?
 
sbi
@TonyTheTiger I'm sorry. I was just skimming over what I had missed due to that stupid meeting, and apparently I overlooked yours.
 
@sbi lol, no worries
meeting stupid? Guess it wasn't interesting then
 
sbi
@IntermediateHacker You can format code inline here in the chat, just like in comments. (Did I point out the newbie hints?)
 
@kbok Why don't you just use a real one?
 
@sbi ok ok. i am reading them
 
1:27 PM
@jalf Man. I wouldn't do that. Ever. This is the code I have to refactor.
These CGI are Korn Shell, BTW.
 
@IntermediateHacker What's the code about?
 
@DeadMG seems to be another Win API wrapper
 
sbi
@TonyTheTiger YAWAPIW?
 
I fail to parse that?
 
1:34 PM
lol
Yet Another Windows API Wrapper
 
sbi
@TonyTheTiger Do you know yacc?
 
It's hard to pronounce.
Or YAML.
 
@sbi I know of yacc but I've never used it
 
sbi
@TonyTheTiger I mean: Do you know what the name stands for?
 
1:35 PM
Or yafray.
 
sbi
@kbok I'm yafrayed I don't know that one.
 
@sbi now I do
 
@DeadMG it was a winapi wrapper
 
The computer program yacc is a parser generator developed by Stephen C. Johnson at AT&T for the Unix operating system. The name is an acronym for "Yet Another Compiler Compiler." It generates a parser (the part of a compiler that tries to make syntactic sense of the source code) based on an analytic grammar written in a notation similar to BNF. Yacc used to be available as the default parser generator on most Unix systems. It has since been supplanted as the default by more recent, largely compatible, programs such as Berkeley Yacc, GNU bison, MKS yacc and Abraxas pcyacc. An updated versi...
 
sbi
And there used to be YASLI. (I think it's dead now, no?)
 
1:36 PM
@sbi It's a raytracer. Produces very nice synthetic images :)
 
now the new version is a lot changed
i'll upoad it tomorrow
bye for now
 
Oh, it's yafaray now.
 
ugh, fountain pens
 
sbi
@kbok You should clean your desk.
 
He's fired?
 
Als
1:41 PM
okay so just in, a little confused
 
fired before he was hired :P
 
Als
how to explain the difference between a qualified id and a qualified name?
 
sbi
@RMartinhoFernandes No, but his desk isn't orderly.
 
@Als oh I saw that question
not sure
 
Als
@TonyTheTiger: Yes, I know what qualified lookup
but phew, qualified id vs qualified name?
 
Als
@TonyTheTiger: Oh they ignore litb's questions as too geeky there too :P
 
@Als seems like it :P
I think only Herb Sutter or someone like that could cope with litb's questions, lol
 
Als
@TonyTheTiger: Hehe
okay hope someone picks up that doubt of ours
I suspect it is going to be very silly but i dont know
 
0
Q: php & so error: class not found

sunsetI have the following test.php file: <html> <head> <title>Personalized Hello World</title> </head> <body> <?php include "/home/test.hpp"; $s= new example(); ?> </body> </html> the test.hpp file is: #ifndef TEST_ #define ...

 
oh god, they put ads on msdn now?
 
1:52 PM
wtf lol
 
 
Als
I did
 
Bottom, and bottom right.
@kbok Definitely genius.
 
@kbok Lol.
Ads? What ads?
 
sbi
I thought I'd advertise AdBlock for FF, but I don't see ads in IE either.
 
Als
1:55 PM
What is the difference between Qualified name and Qualified Id, Anyone?
 
What's ad?
 
sbi
 
That's not the same page I see.
Is that the old MSDN style?
Yeah, reads "Classic" in the corner.
 
sbi
@RMartinhoFernandes It's set to classic. Note the boxed "classic" on the top right.
 
How do you get that?
 
sbi
1:58 PM
Which one do you have?
 
I'm using Lightweight.
 
Found it, there was a gear icon there that did it.
 
Als
I just used the internet version
 
sbi
I've just checked all versions and none had an ad for me. @jalf?
 
Als
Okay
 
1:59 PM
Maybe they've been chosen for ad-ing.
 
Als
It has a preference choice you can set
Classic does not show ads
 
I consistently get two ads on Lightweight. One on the footer, and another on the bottom of the side bar.
 
Als
me too
 
sbi
@Als Which one does?
 
Classic is slow as hell, at least was.
 
sbi
2:00 PM
None for me.
 
Feel free to add more emphasis and repetition in my answer. I have work to do.
 
Als
@sbi: Lightweight
 
sbi
@Als No ad for me in Lightweight either.
 
Als
@sbi: Shows two ads for me, eight hand bottom page and centre bottom
 
sbi
2:02 PM
@RMartinhoFernandes Strange, I don't see that.
 
Als
@sbi: Robot posted it, Which is your browser?
 
I'm consistently answering @sbi's messages before he posts.
I'm the best.
 
Do we have a FAQ that explains why singletons are bad or at least provides a couple of links?
 
I have chrome and I get ads like @RMartinhoFernandes
 
sbi
@Als I'm using FF, and IETab in FF. Lemme check IE standalone.
 
2:03 PM
@FredOverflow there's a question where @jalf has a singleton rant, donno if it's part of the faq though
 
sbi
@FredOverflow That's not a C++ question.
 
Als
@FredOverflow: No we don't, jalf has a nice page on his blog but i doubt he will make a faq entry :P
 
@Als link please. I need to bookmark that link and keep it handy for future reference.
 
we should have a
fuck markdown
 
@TonyTheTiger Just get rid of the space?
 
2:04 PM
See that was easy.
 
sbi
@TonyTheTiger Remove the space.
 
ugh, fuck spaces
ugh fuck everything, why the heck not
lol
 
sbi
Ah. Wow. Problem solved. I do have ads, too - in the standalone version. IETab in FF doesn't show them. Presumably AdBlock filters even stuff that's passed to IETab?
 
I thought you were a bit more selective w.r.t that (you mentioned not being into guys, for example).
 
haters gonna hate
 
2:05 PM
@sbi "Problem solved" lol
 
lol
@sbi not having ads was a problem for you?
woah
 
> Good programmers plan before they write code, especially when there are pointers involved. For example, if you ask them to reverse a linked list, good candidates will always make a little drawing on the side and draw all the pointers and where they go. They have to. It is humanly impossible to write code to reverse a linked list without drawing little boxes with arrows between them. Bad programmers will start writing code right away.
I like that quote. I see too many beginners jumping straight into writing code and getting utterly lost.
 
So, I'm not a good candidate because I can reverse linked lists with my eyes closed?
 
Als
@FredOverflow: Geez, I cant seem to find it, @sbi: Remember you(or someone else perhaps) posted a link here some long time ago, about singletons from Jalf's blog i think, can you repost it?
 
(I got tired of solving that in class)
 
2:08 PM
@FredOverflow I agree with that :)
 
sbi
@TonyTheTiger The problem was that we had an unexplained difference. As a programmer I have learned to nut to underestimate that. (For example, now I know that FF alters the HTML stream it passes to IETab. That's very good to know.)
 
@sbi oh yea, we're programmers, we care about fiddly little differences
 
sbi
@FredOverflow I see to many beginners. Period.
 
Als
@sbi: Thanks
 
2:09 PM
every cute girl
 
@sbi I don't understand. Are you implying that too many beginners is a bad thing?
 
Als
@jalf: here you go
1 min ago, by sbi
@Als http://jalf.dk/blog/2010/03/singletons-solving-problems-you-didnt-know-you-never-had-since-1995/
 
sbi
room topic changed to Lounge<C++>: It is humanly impossible to write code to reverse a linked list without drawing little boxes with arrows between them. [c++] [c++11] [c++-faq]
 
@sbi I guess I should use an url shortener to make some short catchy url for it
 
2:10 PM
yeah, something like that might be better
 
@RMartinhoFernandes YES YES!!
 
I hate when people post some shortened url and expect me to click on it
 
sbi
@RMartinhoFernandes @Fred is teaching programming. That's why he sees too many beginners. I know the feeling very well.
 
I bet there's some browser extension out there that unrolls shortened URLs.
 
sbi
Ha, maybe singleton.org is still available? :) No. :( In the hand of one of those domain hunters.
 
2:12 PM
> This domain is part of an exclusive collection of "shared" personal names that allows multiple users to have simple, memorable email addresses, such as you@singleton.org, all sharing the same domain name.
:(
 
singleton.com isn't available either
 
Stupid business, domains.
 
:(
ihatesingleton.com this is still not used :)
 
sbi
So lets register java-singleton.org and put a website there that bashes Java and Singletons!
 
with the new unrestricted top level domains, I could go for jalf.singleton too ;)
 
2:14 PM
Those are pricey.
 
sbi
Haha, Debbie is funny again today:
If you love something, set it on fire. What's that? Free? Set it free? But I just....... Crap! ! ! Hand me that extinguisher. Quickly......
@jalf What's that?
 
@sbi You can pick whatever TLD you want now.
 
A top-level domain (TLD) is one of the domains at the highest level in the hierarchical Domain Name System of the Internet. The top-level domain names are installed in the root zone of the name space. For all domains in lower levels, it is the last part of the domain name, that is, the last label of a fully qualified domain name. For example, in the domain name www.example.com, the top-level domain is .com, or .COM, as domain names are not case-sensitive. Management of most top-level domains is delegated to responsible organizations by the Internet Corporation for Assigned Names and Number...
 
sbi
@RMartinhoFernandes I can? Where would I do that? What would it cost?
 
I think .xxx is taken for pr0n though :P
 
2:15 PM
I'm not sure if you need to go to ICANN directly, or if they delegated that.
 
ok, made a redirect from jalf.dk/singleton
easier than setting up a new subdomain ;)
@sbi I'd imagine it's pricey
but don't know if it's a flat rate, or if it depends on the attractiveness of the domain
thinking about grabbing .sbi? ;)
 
sbi
@TonyTheTiger I can't find "unrestricted" in that.
 
@sbi I heard you could expect about 10k$.
 
{| class="wikitable" align="right" width="30%" style="margin: 0px 0px 10px 10px" ! gTLD ! intended use |- | aero | the air transport industry. |- | asia | companies, organizations and individuals in the Asia-Pacific region |- | biz | business use |- | cat | Catalan language/culture |- | com | commercial organizations, but unrestricted |- | coop | cooperatives |- | edu | U.S. post-secondary educational establishments |- | gov | U.S. government entities at the federal, state, and local levels |- | info | informational sites, but unrestricted |- | int | international organizations established ...
oh wait
that's something else
 
2:19 PM
also pretty bad inline link there
 
This was oneboxed beautifully.
 
ah, "The initial price to apply for a new gTLD will be $185,000, with an annual fee of $25,000"
 
I heard wrong, lol.
I'd rather buy a house than a gTLD.
 
When will we have search.google ?
 
perhaps, those big companies will be the first to acquire those things
 
Als
2:23 PM
geez i dont have my own domain name
and you talk of popular ones
 
@sbi I see people who struggle with understanding the difference between an array of strings and an array of lists of strings... so yeah, sometimes it's discouraging. But most of the times, it's gratifying.
 
sbi
@FredOverflow Yeah, and the difference depends mainly on the students. Trying to teach some is very satisfying, with others it's humiliating.
@Als You can get that for $0.99, per month, I think. If you want it, as a programmer you should be able to afford it.
 
I depends on the TLD.
 
Als
2:31 PM
@sbi: Yeah, but then if i take it, I would feel guilty of not utilizing it meaningfully.
 
.pt domains are freaking expensive.
About 2.5 times the price of a .com domain.
 
@sbi What I also see quite commonly is students confusing int list indexes with the int elements of the list. That is, the difference between i and a[i].
 
sbi
@jalf Yeah, it's at en.wikipedia.org/wiki/…. <sigh/> I'd have registered .sbi in a heartbeat.
 
Some dick took kbok.com and made an ugly website.
 
Als
2:33 PM
@kbok: how do we know that dick is not you?
:P
 
@Als Because I'm french, and that guy is from indiana.
 
Als
if i try www.als.com it redirects to alssports.com
 
Also, he's a java guy :(
 
sbi
@kbok Haha. "I started KBOK Software LLC earlier this year..." and no date on the page. (No, I will not dig through the page's code to find a meta date entry.) For all we know it's been like this for ten years.
 
2:35 PM
I hate websites without dates. No, not the social interaction, and no, not the dried fruit :)
 
sbi
@kbok How do we know you're French? And not living in Indiana?
 
@FredOverflow Yummy.
 
@sbi Why did you have to bring that up?
I couldn't resist.
The domain was registered in 1995.
 
Eating dates is a good trick to be able to say "I have dates, regularly" without lying.
 
2:38 PM
@sbi I have no way to prove it, except maybe show my ID card, and I'm not feeling like uploading that on a public chat.
 
And the guy used a Portuguese domain registration privacy service.
 
@kbok How could we be certain that that would be your ID card?
 
Als
@kbok: if you can't prove it how would we know?
 
@FredOverflow Lol, you got me :) Well, you could just trust me on this point.
Also, I own kbok.org.
 
Als
@kbok: How do we know that you own kbok.org and not some dick?
 
2:40 PM
@Als You don't. This is the Internet. Let's not try to be too cartesian.
 
@Als Are those mutually exclusive?
 
Uh, I don't own it anymore. Crap.
 
Als
Cartesian
:P
 
$10.95 a year! I'm taking it!
 
I also got two adverts on msdn
 
2:42 PM
Hi all
 
Als
@RMartinhoFernandes: Which one? kbok.org?:P
 
@Als What ?
 
Als
haha
 
If i need to replicate bit shift to the right in excel, is this correct? =cell / (2 ^ places) so if I want to bit shift to the right by 4, it would be =A1 / (2 ^ 4) ?
 
Als
2:43 PM
@kbok: @RMartinhoFernandes, intends to be that dick
 
@RMartinhoFernandes Take it, I don't mind, that .org made me sound like I'm some non-profit guy. I'm not.
 
Als
haha
 
@CodeMonkey rounding might be off
 
I'm a non-profit guy.
 
@RMartinhoFernandes But the kbok part could be confusing.
 
2:44 PM
I do not distribute my surplus funds to owners or shareholders, but instead use the funds to help achieve my goals.
Thus, non-profit.
 
hey folks!
evening
 
Als
wow another @teacher
 
Hi.
Though it's not evening.
 
@RMartinhoFernandes You're not. you're a robot.
 
yeahh
 
2:45 PM
@kbok A non-profit robot guy.
We all know Lounge<C++> runs on European time.
 
i just wake up so to my eyes it looks like evening
 
Als
@teacher: sounds like fun :)
 
Tonight I'll explain to my friends that "Some non-profit robot stole my internet domain name". They will be confused.
 
Als
@RMartinhoFernandes: You good be @kbok's sugar daddy and buy it and then gift it to him.
 
nom nom shugar
 
2:47 PM
:)
 
I have way too many dreams about buying Pringles
 
@DeadMG the chips?
 
Als
@DeadMG: Pup just buy them, they are easy to buy
 
I know, I live above a shop that sells them
 
@DeadMG So your dreams make some sense? Wow, you're lucky.
 
2:49 PM
@FredOverflow Those are crisps. Chips are solid, thick slices.
like about nine french fries put together
 
@DeadMG Ah, as in "fish & chips"?
 
yes
 
I don't like fish.
 
My dreams are often about chicks, not chips.
 
me neither
I usually buy a sausage instead
but it's still called fish and chips, even if you don't actually have fish with your chips
 
2:52 PM
That's weird.
What if it's salad?
Is it vegetarian fish & chips?
 
if you can find a place that offers salad with chips
 
I wouldn't want to.
I'm a carnivore.
 
it's also common to offer various kinds of pie like steak and kidney pie or chicken and mushroom pie with chips
 
and that's still fish and chips
 
2:53 PM
@DeadMG Sounds delicious.
 
it is
I prefer Indian curries though
the biggest thing I miss eating from being sick is a good curry
 
Als
@DeadMG: Indian curries like?
 
hmm
the problem is, I always forget which curries are which
so I always am never quite sure what I'm ordering :P
we had a local Indian in Dorset that did korma, roghan josh, a few others that I've forgotten
 
Als
Are they not too hot/spicy for you? Almost all Europeans/Americans i have encountered find them spicy
 
now it's a crappy pizza place :(
hmm
I usually prefer the milder variants, although I have eaten the mediumly spicy variants
 
Als
2:56 PM
@DeadMG: Right :) I love Indian food :D
 
me too
onion bhaji for the win
 
Als
@DeadMG: Ever tried Butter chicken?
 
@Als You're Indian, right?
 
Als
@RMartinhoFernandes: Yes
 
I hate chicken
so you can guarantee that I've never eaten Butter chicken
 
Als
2:57 PM
@DeadMG: Veggie are you?
 
not precisely
but there's something about nearly all meat that sets off my gag reflex
 
Als
@DeadMG: Perhaps you hate plants more than chicken then
 
which I have an extremely strong variant of
I don't eat all forms of chicken, turkey, fish, duck, etc
 
Als
@DeadMG: I see....So veggie indian curries then
 
yeah
 
Als
2:59 PM
good thing about them is You find Indian joints all over places
 
besides, I find vegetables to be perfectly tasty when done correctly, so I don't see why I would want to eat meat
 
Because meat tastes better? :P
 
nah
I think that most people just don't know how to cook vegetables
not that I genuinely do either cause I'm lazy, but my father does :P
 

« first day (319 days earlier)      last day (4630 days later) »