« first day (1727 days earlier)      last day (3218 days later) » 

12:40 AM
@FaheemMitha Just Do It™
 
 
5 hours later…
5:30 AM
@FaheemMitha Wouldn't that indicate you are not human, and get you blocked being a dolphin?
 
6:07 AM
@Anthon Only if they have read the Hitchhiker's Guide. Also, I doubt dolphins can manage keyboards.
 
 
1 hour later…
7:32 AM
$ echo foo | mksh -c 'echo $(<&0)'
mksh: funny $() command: <&0
@mirabilos what's so funny about duplicating fd 0 to itself?
 
7:57 AM
I voted for this one to go to SO
0
Q: Using log4cxx API in C?

Master YodaI correctly installed i386 .deb package of log4cxx, and I want to know what are next steps to use this API. I'm new to this, still learning, I understand that log4cxx is an C++ API, but why we need it installed, instead of just using C++ examples of log4cxx . I would like someone to explain me th...

 
 
3 hours later…
11:08 AM
@Gilles why is this off topic?
-1
Q: HDIO_GETGEO and HDIO_GET_IDENTITY in Linux using C++

JackzCan anyone explain the core difference between HDIO_GETGEO and HDIO_GET_IDENTITY. From Linux documentation I know that the former is for getting device geometry and the latter for getting IDE identification info. Which HDIO_ ioctl call should I use to get the no. of sectors and bytes per sector ...

Aren't those kernel calls or whatever? I thought we had decided that kind of thing is on topic.
 
11:58 AM
@terdon programming questions are off-topic
this was decided back in August 2010
the guy is writing a C++ program, he should ask on SO
discussion of system calls and ioctl values can be on-topic in a user/sysadmin context, e.g. “what does this strace output mean?”
when someone is writing a program that isn't a simple automation script, it's off-topic
 
12:13 PM
@terdon This is still pretty much a grey area, I think. Apparently @Gilles disagrees.
 
12:54 PM
@Gilles I don't really know what HDIO_GETGEO and HDIO_GET_IDENTITY are but he seems to be asking for their meaning rather than how to use them in a program. I can easily imagine an answer with no code at all. If those are part of the UNIX API and he's asking for an explanation of what they do, that sounds like it should be on topic.
 
 
1 hour later…
2:02 PM
> Also which HDIO_ ioctl call should I use to get the number of sectors and bytes per sector of my hard disk in Linux?
@terdon ^^ he wands documentation/explanation but for the purpose of writing a program
so its a programming question, imho.
 
 
2 hours later…
4:14 PM
@casey @Gilles OK, if you both think so. As I said, I don't really know enough about the subject to judge it. I'll let it be then.
 
its amazing how many downloads a package in pypi gets when I'm sure no one is actually downloading it except things that mirror packages in pypi
 
 
2 hours later…
6:02 PM
lovely ancient kernel on one box
 
@derobert were you bit by a leaping second?
 
6:28 PM
@FaheemMitha indeed. Or at least that machine was.
 
@derobert Is an missing/extra second such a big deal? I didn't read the post carefully.
 
@FaheemMitha There was a bug in the kernel, where it broke futex, causing all kinds of breakage. Since that's a commonly used syscall.
 
@derobert And this was triggered by the leap second?
 
6:46 PM
could someone please help me with a bash script?
 
7:37 PM
@FaheemMitha yep, by the leap second.
 
@derobert Hmm, weird bug.
 
Most notable breakage on that machine was Java GC going from <1s to >1000s.
@FaheemMitha it broke some timekeeping thing. Details are in that thread, I think.
And since futex has a timeout, it was broken.
 
@derobert Yes, I was too lazy to read it. And might not have followed it anyway.
 
That's just what happens to complicated code that only runs once every few years, it gets bugs.
 
@derobert Yes, the second law of thermodynamics
 

« first day (1727 days earlier)      last day (3218 days later) »