« first day (454 days earlier)      last day (4496 days later) » 

7:00 PM
At least ur younger than my mom.
 
@Xeo you are a night person then, I guess
 
Xeo
@TonyTheLion Because at day time I have to watch my brother. -.-
 
ah, so do you ever sleep?
 
sbi
@IntermediateHacker I am older than that. :(
 
@sbi How do you know how old his mum is?
 
Xeo
7:01 PM
@TonyTheLion from between 4-6am till between 10-12am
usually
 
sbi
@TonyTheLion She's 42. What else?
 
@sbi lulz
 
@TonyTheLion he read the transcript.
 
@Xeo wow, that's not that much
 
sbi
2 hours ago, by IntermediateHacker
anyway, you can't really grow old unless you want to. Look at my mom, she's 42 and she acts like a f*cking teenager.
 
7:02 PM
@sbi ah, that makes sense
 
Xeo
@TonyTheLion 6-8 hours of sleep? I'd say that's pretty normal
 
sbi
@Xeo Actually your times span 4-8hrs.
 
@Xeo ah right
 
Xeo
Although sometimes it's 10+
 
I think @CatPlusPlus must be the longest sleeper of us all
 
7:03 PM
cats can sleep 19+ hours a day.
 
hmmm, my ferret sleeps on average 23hrs a day
 
sbi
@TonyTheLion Yeah, he takes 3hrs just to fall asleep, and it's downhill from there... :)
 
Xeo
@sbi Well, it's usually not less than 6, atleast if I don't get shaken out of my bed to babysit my brother again
 
@Xeo I hate being woken up, esp by parents :(
 
Xeo
7:04 PM
@TonyTheLion Well, welcome to my world.
 
@Xeo your world sucks... :(
 
Xeo
@IntermediateHacker I think my sleeping record lies somewhere between 24-36h
 
jeez
I've never slept that much
 
Xeo
Once you pass the 18h mark, it's pretty easy to just keep on sleeping
Since your body feels tired from all the sleeping
 
7:06 PM
I used to go to bed at 4am and sleep till 4pm, that's about the longest I've slept
 
my dad once slept ~ 29 hours after two days of night duty.
 
Xeo
My sleep record was after a full week of work with at most 2-3hours of sleep per day
room topic changed to Lounge<C++>: Placement new is usually misplaced and should be replaced. [c++] [c++11] [c++-faq]
 
oh, I could understand that
 
@FredOverflow circular references can be just as much as a headache.
 
7:10 PM
@Xaade those things drive me crazy
 
I wonder when these placement new captions will finally end.
 
Xeo
@IntermediateHacker When they are replaced, obviously
 
when the placement new has be found and replaced
would you rather a caption about sex?
 
You know, Lounge<C++> sounds decent. This place should have been Asylum<C++>
 
@IntermediateHacker I missed a day once. So that's 24 hours of sleep.
 
7:11 PM
@IntermediateHacker lol
 
@TonyTheLion no thanks. captions about sex trigger the porn software my damn mom set up on her laptop. So I'd only be able to use SO on my home PC.
 
lol, who needs porn software?
 
sbi
@TonyTheLion It's the world he choses to live in, though. He could just as well get a job and rent his own apartment.
 
I can disable the software in like a second, but still it's annoying to disable them everytime u use SO.
 
@IntermediateHacker and why would your mum have pr0n software on her own PC??
 
sbi
7:13 PM
@Xeo I once worked >100hrs in one week. I had one day off. It was the birthday of my daughter, so I couldn't sleep. I quit that company not much later.
 
@TonyTheLion I have no idea. Maybe it's bec. I tend to use it a lot.
 
@sbi I do the same, however I do work, well, sometimes :P
@IntermediateHacker lol, you need to teach her about the pron mode on the browser....
LOL
 
@TonyTheLion It's a good thing she doesn't know about that. I intend to not tell her till I move out. :D
 
@sbi my father used to work that regularly, but he was CEO/owner, guess that makes it harder.
 
sbi
@TonyTheLion I was just an employee, trying to meet a deadline set by people who had no idea of software development.
 
7:17 PM
@sbi if a company can't do its business in 8 hours a day (per employee), then there's a big problem where someone somewhere is doing things either really inefficient, or actually working against you.
 
Sadly my dad's a surgeon. His job timings are at least 12-16 hours no matter which hospital he joins.
 
IE, if it can't give you off some later day, the time you worked extra on a previous day.
 
sbi
@Xaade Yep. But that was my first job after studying. I had much to learn yet about that. Did I mention I left the company? (And I made them pay me every single hour I worked there.)
 
@sbi well I know how it feels to work for someone ignorant of software dev, and funnily enough, I also know how it feels to work 100hrs a week. Did a month ago, for about for 3 weeks straight. This was fun though, for me. :)
 
@sbi I'm just stating my philosophy.
 
7:20 PM
@sbi how did you make them pay you?
sue them?
 
He probably appealed to the Ministry of Manpower and Labour. That's what people here do.
Then it's the Ministry's job to sue the company and make them pay you. All you have to do is give a little evidence
 
sbi
@IntermediateHacker When I was a teen, I installed a light sensor in the our apartment's hallway that would drive a relay which turned off my reading light when my mother walked by to check whether I'm sleeping. All I had to do was to drop the pillow on the book and pretend I was sleeping. I only told her when she was asking me whether I check each night whether my daughter reads late, and was shocked I had told my daughter to decide for herself.
 
@sbi The only time there's a real world timeframe, is when there's a physical resource that is only available for a limited time (oil shale that will get lost under an obstacle when the plates shift). Other than that, it's only someone's preference.
 
sbi
@TonyTheLion It wasn't fun for me. I had a young family at home.
@Xaade And I'm agreeing to that.
 
@sbi yea I can understand that, I have no family, or girlfriend, so for me it doesn't matter.
 
7:22 PM
@sbi Actually, I'm not meaning to tag you specifically. Sorry.
 
^ Female chinese recruits train in Norwegian uniforms. It's the big news today. Huh.
 
GRAPHIC VIOLENCE!!!
Ah , my eyes!!!
 
@TonyTheLion hit in the face with a glass bottle.....
Third world countries still practice that in boot camp.
 
7:24 PM
@Xaade they don't.
 
@Xaade that's horrid.
 
@FredOverflow Wouldn't that be nice? Alas, it will never happen.
 
sbi
@TonyTheLion We had to log when we come and when we go. (The only company I ever worked at which did that.) When I put in my notice of contract termination, it was for half a year later, but I stayed home for that time. My estimate was pretty good, because they paid me for 5.5 months (after 13 months of working there). And I had a whole summer to get to know my child again.
 
@robjb What are you referring to?
 
27 mins ago, by FredOverflow
@robjb Dear C++, when will you get rid of header files?
 
7:27 PM
Oh yes, that would be nice!
 
I wish C++ would use a decent naming system instead of all those horrid headers.
 
oh my it's too late to buy beer in norway
20:27
 
sbi
@TonyTheLion Since then, when negotiating during an interview, I have always told them the hourly rate I wanted, and made it plain that, while I would work overtime to keep deadlines when it's inevitable and not the fault of management, I would never work for free, and strongly prefer compensation in free time. The current company strongly discourages that. So I simply avoid accumulating overtime.
 
@IntermediateHacker What do you mean, naming system?
 
@FredOverflow the thing Java and C# use.
 
Xeo
7:28 PM
@IntermediateHacker CamelCase? Ewww.
 
sbi
@AlfPSteinbach You poor sods! It's never too late in Berlin, but I'm stuck at home with only two kids, both of which are to small to leave them unattended.
 
@sbi right, makes sense
 
A naming scheme is a plan for naming objects. In computing, naming schemes are often used for objects connected into computer networks. Naming schemes in computing Large networks often use a systematic naming scheme, such as using a location (e.g. a department) plus a purpose to generate a name for a computer. For example, a web server in NY may be called "nyc-www-04.xyz.net". Common Network Naming Convention: (city-function-number.domain.name) City Code IATA link nyc-pdc-201.xyz.net lon-rtr-901.xyz.net hkg-san-541.xyz.net mos-gpc-400.xyz.net If you have many offices in a city...
 
....
 
I'm just too young and unexperienced to demand too much.
I think
 
7:29 PM
@IntermediateHacker That really doesn't help much in the context you used it in.
 
@sbi well we have progressed, from illegal to buy bread on sunday
 
Naming System != Naming Convention.
Some newer languages (such as Java) dispense with header files and instead use a naming scheme
 
sbi
@TonyTheLion I have turned down job offers because they refused to plainly state that they would compensate overtime.
 
@IntermediateHacker you're talking modules
 
It's never too late to buy beer in Belgium. We Have ALL THE BEER!!!
 
7:30 PM
@AlfPSteinbach yeah.
 
That was Niklaus Wirth's first language, Modula, mid-late 1960's
 
@sbi Good you're sticking with your policy and not giving in
 
sbi
@AlfPSteinbach Yeah, Germany used to be pretty strict on shop closing times. It's still stricter than most other countries, but there's a fair amount of exceptions.
 
It's always too late to buy beer in Oman. it's NOT AVAILABLE!!! :'(
 
sbi
@TonyTheLion DRINK ALL THE BEER!
 
7:31 PM
lol
 
to buy beer you have to go all the way to Dubai.
 
Xeo
@sbi You should only capitalize "ALL", y'know
 
@IntermediateHacker Uh, it just happened somewhere. And that's not a European, American, Canadian flag.
 
@sbi If you ever come to Belgium, I will take you to a place in Bruges, which sells over 200 types of beer. It's awesome! :)
 
sbi
@Xeo I think the traditional meme requires the whole thing to be capitalized.
 
7:32 PM
That one will be on me!
meme pedants
 
sbi
@TonyTheLion Wow. I'd like to test those! I suppose we won't be able to plough our way through all of them in a single night?
 
@sbi Probably not, if you want to feel somewhat alive after... :P
 
Xeo
@sbi Dependins on your drinking speed I guess
5 minutes per bottle * 200 bottles = 1000 minute = 16.6... hours. Doable, I'd say
 
sbi
@MooingDuck I think I've only seen it fully capitalized here for months. And old fart that I am, I stick to this room's memes. :)
 
7:35 PM
WHY ARE WE GIVING SUCH IMPORTANCE TO cApItAlIzAtIoN?
 
sbi
@Xeo You know, there's more factors than drinking speed playing into the limit of alcohol you can consume in one night.
 
Xeo
@sbi N'aww, the drunken kids show us that's not the case every day in the news!
 
Drinking Speed + Horniness + Presence of Cute Girl + Poverty = Limit of Alcohol Consumed.
 
Xeo
2
Q: why boost::scoped_ptr is cleared in a singleton implementation

user624060I implemented a simple singleton by using boost::scoped_ptr: template <class T> class Singleton : public boost::noncopyable { public: static T& instance() { boost::call_once(init, flag); return *t; } static void init() { t.reset(...

I'm inclined to rename this to "why [...] singleton implementation"
 
Your liver would NOT be happy with 200 beers in a night, as one point
I'm thinking you'd probably risk dying of alcohol poisening
 
Xeo
7:37 PM
you never said alcoholic beer!
 
lol. @Xeo has got a point there.
 
@Xeo I wouldda thought that this was implied
 
sbi
@Xeo Even if it's non-alcoholic, it would still be a whole bathtub fully of carbonized pops. That's hard to do even absent of alcohol!
@IntermediateHacker Somewhere in that equation your liver is missing.
@IntermediateHacker Except we're talking of Belgium here!1
 
7:53 PM
Hmm, the biggest factor in my drinking is my stomach... half the time I get sick before I'm thoroughly drunk.
 
@sbi What about Belgium?
 
@StackedCrooked That's his location, and Intermediate was referring to Xeo's mention of non-alchoholic beer.
 
@robjb @sbi is in Belgium?
 
Xeo
@StackedCrooked Err, no.
 
@robjb Never mind, I see the reference now. He's just replying to @TonyTheLion's comment.
 
Xeo
7:57 PM
Atleast it would be very surprising
 
Err, oops... he's in Berlin, I think Tony is in Belgium
 
Fat chicks eating cake, Batman. I can't solve a missing method exception.
 
Xeo
Correct.
 
Tony is in Belgium, so is @rubenvb and so am I.
The rest is in Germany.
Except for the robot, the cat, and a whole bunch of others.
 
lol.
I'd take Belgium or Berlin over my current location anyday.
 
8:00 PM
I think Berlin would be a great place to live. My German is really bad though.
 
I wouldn't mind the Netherlands either.
 
sbi
@StackedCrooked Didn't you see the job offer I posted here the other day? The makers of Ableton Live are desperately looking for developers (they'd pay a trip to NY if I referred you to them), and they speak mostly English there anyway. And in the hip cafés in Berlin you will hear just about as much English as German.
 
@robjb where do you live?
 
sbi
@robjb Where are you now?
@StackedCrooked :)
 
Michigan, USA :/
 
8:05 PM
@sbi Is it NY or Berlin?
 
sbi
@robjb So you might be interested in the fact that we currently have an uncommonly mild winter. :b
@StackedCrooked Berlin!
 
@sbi Very much so
 
@sbi Then why would they pay me a trip to NY?
 
Yesterday I could see grass, this morning it was 6 inches of snow, and it's been going all day
Probably will be nearly 30cm by the time I leave the office
 
sbi
@StackedCrooked Read again. They'd pay me, if you told them I pointed them out to you and your employment with them would work out.
I have worked next-door to them, and I know they've been expanding the office space in that building like crazy for about a decade. They must be desperate for developers, but it seems they are picking good ones, only.
 
8:09 PM
@sbi You used to work in NY?
 
sbi
@FredOverflow OMG! What's wrong with you, guys?
 
lack of sleep
 
@FredOverflow No he is buying me a ticket to NY.
 
sbi
Abeleton is in Berlin, and they are so desperate for developers that they give out good prices if you get them in connection with someone who then works at the company for a certain amount of time. One of those prices is a ticket for two to NYC.
Read this if you want to know more. (And don't forget to mention me if you apply.)
 
Okay so sbi gets the tickets and then sells them to @StackedCrooked?
 
sbi
8:12 PM
@FredOverflow Yeah, now you got it. Finally. :(
 
Why so sad?
 
sbi
Why oh why does this happen to me at a Friday night when I don't even have a beer in the house?
 
@sbi They say good things (importance of code quality), but somehow I don't feel compelled to work with these guys..
 
sbi
@StackedCrooked Not into music? :)
TBH, when I told this here back then, I also mentioned that, when I left late at the next-door company I was working at, there were always a couple of late-working Ableton developers hanging out in the court for a smoke. So there might be a lot of pressure at that company. But that's only a guess, and you would have to find out for yourself.
 
@sbi Actually this morning I was thinking about how much I like music but never had any interest in learning to play an instrument. Perhaps programming music software would be a good in-between :D
 
sbi
8:15 PM
@StackedCrooked They say a passion in making music helps, but is not a necessary precondition. Passion in making good software is more important.
 
@sbi I'm not gonna change jobs unless it's really worth it.
 
Xeo
Haa, and I confirm once again - I can't even go to sleep after my little brother has gone to bed when I'm watching him
He has that slightly annoying tendency to come out of his room multiple times per night for various reasons...
 
sbi
BTW, the other notable music software company in Berlin, Native Instruments seems to be desperate for developers, too. I have been repeatedly pinged by head hunters who are looking for developers for them.
 
It's remarkable how few good developers there are. At all companies I worked for they were continuously on the lookout for developers.
2
And then most candidates were sent away.
 
sbi
@Xeo That's not peculiar to him. I suppose 85% of my kids did that. When you are really tired (and you will be, if you have little children of your own), you will learn to cure whether the kid needs to be cured, and fall back to sleep within 5mins.
@StackedCrooked Yep. Any software company worth its salt wouldn't turn away a real good developer unless they are already considering filing for bankruptcy.
 
8:20 PM
@sbi NI are doing good stuff. kontakt is one of the best samplers out there.
 
Xeo
@sbi Well, it isn't so much for the falling asleep again as waking up at all in the first place.
 
@StackedCrooked could be social counts more than just programming skill
 
My current job is centered around network technologies. I applied there because I know nothing about networking and I hoped that I could fill this gap by working there.
 
sbi
@Xeo That's what a baby phone is for. Turn the receiver's volume all the way up, and put the transmitter beside his door. Problem solved.
 
@AlfPSteinbach Usually they were sent away because of lack of knowlegde/skill. I only know of one person who was actually fired because of lack of social-ness.
 
Xeo
8:22 PM
@sbi He doesn't make any noise
Also, my room is right next to his
It's just that he isn't accustomed to waking me up. He just walks straight into the bed room of my parents, and if noone's there, will head for the door that leads to the stairs down to the first floor
So, I can't really fall asleep until one of our parents are back...
 
put the transmitter physically on the bottom of the door
when he opens it, the transmitter will move or scrape against the carpet
 
or lock the door :D
 
lol
 
hey
can anybody explain why this happens...
directory = malloc((strlen(name) + strlen(entry->d_name) + 2) * sizeof(char));
sprintf(directory, "%s/%s", name, entry->d_name);
When i print name it give me the path, however if i run at from / it prints //
 
Because of %s/%s
 
8:34 PM
should it be just %s
 
No, you should fix entry->d_name.
 
entry->d_name is the file name
and name is the path
 
And name is the path?
 
so combined they give path and name so stat can be used
 
Okay, well if name == '/' and d_name is null or empty, what do you expect %s/%s to be?
 
8:36 PM
/
 
Why?
But if you run it from /, it should display the path as / with a following / from the format string.
 
because name would be empty
 
6
Q: Where did all the comments go on "Is `*--p` actually legal(well formed) in C++03"?

Ben VoigtThis answer of mine: http://stackoverflow.com/a/8845623/103167 used to have a lot of relevant comments from multiple users. Now they're gone, and not even a note from a diamond mod saying they were deleted. Any explanation would be nice.

 
Xeo
Oh, yeah, and he currently has a pretty bad case of dry cough, which sometimes leads to him throwing up if he blusters himself into it too much. That usually happens because his throat is pretty sore from all the caughing, which hurts pretty badly.
 
if i run the code from /root then it displays the path as /root and /root/whater and so on
but if i do it from / then it shows //etc //usr/include //root
i think i get what you mean
 
8:39 PM
Because path is equal to '/', and you have another in your format string
 
kind of
is it an easy fix, or a pain in the ass?
 
Just use /%s when path == '/'
 
ok
so
if (cwd == "/")
{
directory = malloc((strlen(name) + strlen(entry->d_name) + 2) * sizeof(char));
sprintf(directory, "/%s", name, entry->d_name);
}
else
{
directory = malloc((strlen(name) + strlen(entry->d_name) + 2) * sizeof(char)); //Initialization of directory passing it the path and file name.
sprintf(directory, "%s/%s", name, entry->d_name);
}
 
Yep, that's the idea.
Or more simply:
const char * format = (name == '/') ? "/%s" : "%s/%s";
sprintf(directory, format, name, entry->d_name);
 
Should probably be const char
 
8:46 PM
Haha nice catch, as I was editing ;)
 
warning comparison between pointer and int
then running the program gives me a mem fault
 
(strcmp(name,"/") == 0)
 
Yea, replace (name == '/') with what Pubby just wrote.
 
mem fault
core dumped
oh Im working in C if that makes a difference
 
@Charlie Maybe you should try a regular SO post with a working code example, it sounds like there's something else going on, and it's difficult to tell what or where from the snippets you've posted.
Unfortunately I have to leave, good luck :)
 
8:55 PM
ok thanks man
 
Yep, hope you find a solution
later
 
you guys have actually halped me more than you realise, i have another work around!
 

« first day (454 days earlier)      last day (4496 days later) »