« first day (692 days earlier)      last day (4261 days later) » 

10:00 PM
@Drise yeah I checked that too, I can't even tell what subjects they are dealing with
 
@MooingDuck site design / logo © 2012 stack exchange inc;
 
@Drise Reminds me of Java code.
 
@Rapptz most people prefer to write void instead of just three letter. thus, e.g., google.void
why can't people understand that this is just a bad fun
 
are there any 3d benchmarks that weigh less than 3dmark?
 
@MooingDuck In that aspect (site design), they are in obvious violation.
 
Ell
10:03 PM
I wonder why people dislike GIMPs GUI
 
I'd really say report it. They are blatently copying SO design
 
@Rapptz Did StackExchange open source it's engine? That looks exactly like StackExchange sites
 
@Ell It's ambiguous. You can even find a fucking line tool.
 
@Chimera I don't think so. I didn't find this, @Bartek did.
 
@MooingDuck This site seems to use OSQA, which has already been discussed on meta.
2
Q: Are there better Stack Exchange alternatives/clones than OSQA?

HedgeI did some research to find suitable alternatives/clones to Stack Exchange because I want to create my own self-hosted Q&A site. The best one I found was OSQA. Are there better ones, preferably coded in PHP (as I already got some knowledge there).

 
> Lockergnome.net is a collaboratively edited Q&A site for just about anything to do with technology. Lockergnome.net is powered by OSQA, the open source question and answer platform.
 
This site is a joke
 
@Drise well, the guy has 0 rep and 4 gold badges
 
it's like I'm really on Yahoo Answers
 
He has more badges than me
 
@James thanks, deleted my entry
 
TIL lots of stuff about SO clones
 
@BartekBanachewicz Sure thing :) If I recall correctly, there is an entire meta post dedicated to listing clones
 
whoa
0
Q: I'm trying to make my word counter for C++, but I can't seem to get somethings right

Mysteryman MysterymanI've been working on a program to count specific letters of the alphabet and return them as numbers to show how many there are within a text document. I have most of the work done already and I am allowed to seek general help from others. I have searched the site and saw some people doing relat...

2
talk about code repetition.
 
int A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z;
fuck yea.
 
10:10 PM
then he went down the list and made them all 0
 
like a bawz.
 
@Rapptz std::map<char, unsigned> mymap; // for each character: mymap[char]++;
 
@StackedCrooked you are not in PHP room. just in case.
 
Don't know much about PHP.
 
10:12 PM
well, the solution to word counting is pretty much obvious to anyone here'
 
What the fuck
 
@Rapptz Some people aren't nearly lazy enough to have any hope of ever being programmers.
 
@Drise wtf indeed
rep: -43
 
if (oneLetter = 'a' || oneLetter = 'A')
            { A++;
            }
 
@Chimera Wow. So wrong
 
10:14 PM
oops.... guess he doesn't know difference between == and = either
 
ya'll acting like you've never seen bad code before
Jaws all on the floor like Pam, like Tommy just burst in the door
 
Well
 
@lezebulon Just leave. I have no patience for you.
 
at least he can format his code properly on SO.. people seem to have a hard time with that.
 
@Drise lol whut
 
10:16 PM
Jul 13 at 14:37, by Drise
@RMartinhoFernandes I got suspended for telling that dude who wanted to make a bot to "go masturbate into a sock or something"
I have. And I will.
 
I don't understand at all what you're saying
 
@lezebulon I'll clarify then. Go masturbate into a sock or something.
 
why u mad tho?
 
0
A: Static const integer class member in header-only file - the proper way?

Cheers and hth. - AlfFirst of all, using the unsigned size_t type for numbers, you're likely to run into implicit promotion problems. So, good idea to use its corresponding signed type, which is called ptrdiff_t. Which, as it happens, is the result type of a pointer difference expression. Also, due to changes in C++...

^ Yay! I answered a question first! Been a long time since I did that.
 
@Drise calm down, this is a lounge
@BartekBanachewicz ideone.com/GNq2r
 
10:22 PM
@Drise u now, that was NSFW
 
Ell
Speaking of semen filled socks
 
@MooingDuck are 'a' through 'z' guaranteed to be always the same value?
 
@lezebulon i wonder too. sometimes there are side-chats in different forums. like mumble or reddit or whatever. curiously few here seem to use slashdot.
 
@lezebulon what?
 
@Cheersandhth.-Alf You got a leftover std:: in there :)
 
10:24 PM
oh clang
i also initially forgot a double colon
 
@lezebulon long story. but he's been angry lately.
 
it's not good to be missing a colon, could be deadly
 
@MooingDuck like, is the value for 'a' compiler-specific? I feel this question is retarded
 
but anyway, THANKS
 
@lezebulon ASCII character
 
10:25 PM
me fix
 
@lezebulon yes it is, but his answer is compiler-agnostic
 
The colon is the last part of the digestive system in most vertebrates; it extracts water and salt from solid wastes before they are eliminated from the body, and is the site in which flora-aided (largely bacterial) fermentation of unabsorbed material occurs. Unlike the small intestine, the colon does not play a major role in absorption of foods and nutrients. However, the colon does absorb water, sodium and some fat soluble vitamins. In mammals, the colon consists of four sections: the ascending colon, the transverse colon, the descending colon, and the sigmoid colon (the proximal colon...
 
@Rapptz not alwayas
 
@MooingDuck Example otherwise?
 
@Rapptz IBM System/360 , Fujitsu-Siemens' BS2000/OSD, HP MPE/iX, and Unisys MCP.
 
10:26 PM
@MooingDuck are 'a' through 'z' guaranteed to go through all the alphabets letters in order?
 
@lezebulon No.
 
@lezebulon in ASCII, yes. Though that's not guaranteed in C, it's usually a safe bet.
 
Only guarantee in that spirit is that '0'through '9' are in order.
 
@MooingDuck oh wow. i used MPE/IV, and now it's up to MPE/IX! time flies!
 
@Cheersandhth.-Alf " The discontinuance of the product line was announced in late 2001"
 
10:27 PM
Weren't there those strange EBCDIC systems with strange char order?
 
@NikiC yup
 
well, but at least the HP terminals were ascii based
 
so basically the code posted wouldn't work if 'a' through 'z' isn't in order right?
 
also the VT terminals
 
@lezebulon it doesn't work with any encoding, but if it did, then the OP's code would correctly handle all encodings
 
10:30 PM
ok
 
@lezebulon if (oneLetter = 'a' || oneLetter = 'A') { A++;} is safe on all encodings ever.
@lezebulon OTOH, mine only handles ASCII (and any other single-byte encoding where a-z are consecutive in order)
 
ok that's what I was getting at, thanks
 
@MooingDuck std::array<int, 26> letters {}; would save you the call to fill. Although it tends to trigger annoying warnings with GCC.
 
Did ideone update their C++0x compiler or was it always gcc4.5.1
 
10:37 PM
@MooingDuck alias<char[15]>()!
 
@LucDanton not familiar with alias. There's a few other ways too IIRC
 
@MooingDuck "safe" to the extent that it misbehaves the same on all of them anyway.
 
@JerryCoffin heh, right. =.
 
11:03 PM
@JerryCoffin If I failed a test I felt less worried if it turned out that all my class mates failed as well.
 
@StackedCrooked Why is that?
 
I don't know. Ask a psychologist :P
 
@CaptainGiraffe Because it gives you reassurance that you aren't the only one.
 
Jeff Atwood's book on programming is interesting at times.
 
flump
 
11:11 PM
shlugglewuggle
 
@Rapptz Sure, but If I grab a student from that class, that student will actually read the material and pass.
 
@CaptainGiraffe What?
 
@Rapptz It is a collective laziness
 
lmao
0
Q: Ran into another mistake while making my Letter counter

Mysteryman MysterymanMy last question did not turn out so good. I am making a program in C++ to count the number of letters in a text document. I need to know what I am doing wrong, I am getting crazy numbers for results. I had some good help last time and I put my "frequency[?]" counting. Something is wrong with...

if ( 'm' || 'M')
{ M++;
}
 
@Rapptz True grit.
 
11:14 PM
@CaptainGiraffe He said "If I failed a test and everyone else failed I would feel less bad" (paraphrased)
 
@Rapptz Yes
 
How would "grabbing a student" make him read the material and pass?
The reason everyone might have failed the test might have not been due to laziness, it could have been the professor's fault for implementing bad questions.
 
@Rapptz In my experience there is an air of expectation in each class.
@Rapptz For sure.
Is it your turn or mine?
 
That was pretty much the last thing I had to say o.o
 
I have had this course for a few (7) years now, so I know what to expect. And the initial ambition makes a huge deal for the final grades.
There can be one person poisoning the entire class the first lecture.
 
11:21 PM
@CaptainGiraffe or, a hard teacher
 
@MooingDuck I'm one of those swell guys trying to counteract this stuff.
 
Why is the student always at fault? Is the professor a magnificent perfect creature who makes no mistakes? If everyone in the class fails then there are some obvious issues with the way you are teaching the course.
 
@Rapptz I'd prefer it the other way around. How can I improve.
 
Wut?
 
11:24 PM
@CaptainGiraffe Yeah, exactly. Look over the exam that everyone failed and do an analysis of each question and see what you can do better next time.
That's what my professors did if we all bombed something.
 
@Rapptz I do that on every exam.
 
Then there's nothing else to say :P
 
What I have found is that the exams are a very good test. It is extremely rare that they are not representing the actual ability, or reflecting the skill set by the course plan.
 
Sleep well puppy
 
nothing to see here.
ok, back to reality
 
11:31 PM
scuba gear off
also, Tony, FYI, this doesn't exactly qualify as reality
 
close enough for me
@sehe lol
 
So if looping through chars doesn't always mean it'll be ASCII how do you force it to be ASCII?
 
if ( c > 127 ) discard;
 
@Rapptz Force what? If you want to store an ASCII code, you can do just that.
If you want ASCII literals you can abuse UTF-8 literals.
 
@LucDanton Everyone is telling me I can't do that.
that for(char k = 'A'; k <= 'Z'; k++) doesn't loop through A-Z
because it might not be in order
 
11:40 PM
@Rapptz I doubt they're telling that, no.
 
Are you looking for printable ascii?
 
I've never had a problem with it but now I'm confused
 
Using u8'A' and u8'Z' will do what you want. C++11 only.
 
does GCC support it
 
11:41 PM
@Rapptz on every modern desktop computer you can loop A-Z safely. but C++ doesn't guarantee that it works on all processors.
 
I know VS2012 doesn't
 
@Rapptz you can translate from whatever encoding to ASCII
 
@MohamedAhmedNabil hey
 
u8 isn't compiling
 
11:45 PM
In any case, 65 - 90 is the ASCII range if I got that right.
 
:Should we feel sorry for the windows dudes or just hope for their demise?
 
@LucDanton looks wrong to me
 
@MooingDuck Reading tabulated data easily confuses me.
 
@LucDanton oh, depends on how you define it too.
 
@MooingDuck yesterday you gave me this ideone.com/1YgSd . While i was checking it, It always worked, except when the user enter " 4" or " 4" it accepts it
 
11:46 PM
@LucDanton ASCII is officially 0x00-0x7F
 
I'm just going to do 'A' to 'Z'
 
@MohamedAhmedNabil yeah, it ignores leading spaces
 
@StackedCrooked [sorry, had to deal with fussing baby for a while] Hmm...now that I think about it, I don't remember ever failing a test. I must be getting old and losing my memory.
 
because that seems like a small thing for me to care about
 
@MooingDuck How can i stop that?
 
11:47 PM
@MohamedAhmedNabil it's harder
 
@MooingDuck Let me ask another question, why does it skip leading spaces
 
@MohamedAhmedNabil all formatted reads >> ignore leading spaces.
 
@MohamedAhmedNabil I thought of an easy way
 
11:48 PM
@MooingDuck mee too
 
@LucDanton Thanks
 
@MooingDuck that seemed to work, what was your way
 
user406009
cppreference.com >> cplusplus.com
 
Still using cplusplus.com?
 
@MohamedAhmedNabil does it? alright
 
11:50 PM
I'm sort of annoyed that I recently installed Boost 1.50 on my machine and they released 1.51 right after that. Too lazy to bother doing that again. Hopefully I'm not missing on anything (can't say I'm enthused about Boost.Context).
 
@Rapptz sigh
 
@LucDanton That happened to me too. I installed 1.50 2 days before 1.51 came out
 
@MooingDuck What was your way?
 
@LucDanton On my machine, installing boost is the download + 10 minutes compilation. That isn't too much effort
 
user406009
Does Boost.Context finally allow multithreaded c++ coroutines?
 
11:52 PM
@EthanSteinberg ? multithreaded coroutines?
 
user406009
Coroutines that can be passed between threads. The other solutions fail once you call on a thread that was not the original.
 
@EthanSteinberg You mean, stackful coroutines?
 
@sehe I do remember the b2 invocations this time, true. But I could be coding instead! Which I am!
 
Well they need to be stackful for that, but the point isn't as much that can be passed to another thread, although they probably can
 
OMG ideone is slow right now :(
 
11:54 PM
Double free while (auto-)destroying am empty unordered_set of pointers. What the hell?
 
@bitmask UB. Memory corruption
 
@bitmask heap corruption/stack corruption, or it previously had data that you double deleted.
@MohamedAhmedNabil ideone.com/7wJ5G
 
@MooingDuck No, it's a local variable, and the loop that populates it does zero iterations. There was never data in it, but I can see two calls to the dtor.
 
@bitmask stack corruption then
 
11:56 PM
@sehe Reproducibly?
 
@StackedCrooked No.
 
the stack is pretty full from a recursion ...
 
@bitmask Yeah. It's your program. You programmed it :) That's not an accident
 
@bitmask sometimes
 
@LucDanton That's good news :)
 
11:57 PM
You don't say.
 
@bitmask ? what. You delete it at the bottom of a deeply nested recursive call?
 
@MooingDuck Why did noskipws work?
 
@sehe no, the stack looks like: fun1 -> fun1 -> fun1 -> ... -> fun1 -> fun2
 
@MohamedAhmedNabil Because the words say "No - Skip - Whitespace"
 
fun2 has a local variable, which is an unordered_set
 
11:58 PM
@bitmask Nah, variadics are funtastic!
 
@MohamedAhmedNabil because noskipws makes it not skip whitespace when reading in stuff.
 
@bitmask Ok, so you're perhaps just bottoming out of stack space. Run it under valgrind?
 
@bitmask if you write past the end of array, anything can happen, including causing double deletes.
 
@MohamedAhmedNabil IOW: read the documentation. It's the only thing that'll work
 

« first day (692 days earlier)      last day (4261 days later) »