« first day (839 days earlier)      last day (4095 days later) » 

12:00 AM
I really seem to program with a lot of nested for loops and if statements... that's no good.
 
user142019
Huh? What?
 
user142019
In any sane jurisdiction a doctor is not allowed to share any confidential patient information with others.
 
@Rapptz yes
 
user142019
Just like traveling with a speed higher than the speed of light—it’s against the law.
 
@DeadMG what about a static array of vectors/list/etc?
 
12:03 AM
@MooingDuck eh this?
template<typename T, size_t N>
size_t size_of(const T(&)[N]) {
    return N;
}
 
@Rapptz doesn't work on vector
 
@MooingDuck Add overload for container.
 
@Ell obviously not. A parent has totally different obligations/responsibilities. Also, they never swore an oath (and they don't get an "out" as long as they don't let you die unnecessarily)
 
@DeadMG oh, yeah, two parts. Makes sense.
@Ell doctor not telling parents or parents not telling others?
 
@Ell That was legally. Morally... you decide (I guess nice parents would respect your wishes)
 
12:06 AM
Goddamn. There has to be a way to optomize finding primes. This is unbearable...
 
@Crowz lots of ways
 
?_? did you look up the prime sieves I mentioned hours ago
 
hai
 
Ell
Doctors not telling parents
 
user142019
They’re not allowed to.
 
Ell
12:08 AM
until what age?
 
@Zoidberg that probably depends on how old you are and what it's about
 
Ell
Ahh oopa
At what age are they not Allowed to?
 
somewhere between 14 and 21 I suppose? :p
 
user142019
Hey guys tell me a number between 0 and 999 inclusive. Any number will do, please don’t intentionally pick a magical number like 42 or 666.
 
47 :)
 
user142019
12:11 AM
Okay, thanks.
Now, time to sleep.
 
user142019
Farewell.
 
wait
whatcha gonna do with my number
 
user142019
Eat it!
 
do you realize you need a browser to get firefox? dumbasses hide the download url behind a redirect
 
@doug65536: both curl and wget understand redirects
 
12:13 AM
unless you tell them not to understand them :)
 
they parse them regardless. They just ignore the data if you tell them to :)
 
@Zoidberg Whoa this npm thing you mentioned, you may be right.
Installing gcc-explorer was extremely easy here:
 
yeah, trying to use a 3-liner c# program - messing with bad machine trying to get a browser back up (hard drive is failing)
a friends comp
 
WTF do you want a browser for then?!
So he can tweet "Hard drive failing"?!
 
@Zoidberg 42 + 666
 
12:18 AM
@doug65536: curl.haxx.se/gknw.net/7.28.1/dist-w32/… in case it's useful
 
@rici from a hacker tool repo... I'd scan it :)
 
@rici it is thanks
 
@sehe haxx.se is the longtime home of cUrl
 
Oh yeah. You told me. Windows victim.
 
I'll bootstrap with the c# prog :)
 
12:19 AM
@rici Oh. Foot in mouth. Anyways, the url is reason to raise suspicion, even if it was false alarm.
 
i guess that depends how long you've been around the intertubes :)
 
lol
 
do you know who cr.yp.to belongs to?
 
don't worry about the bottles marked "poison", worry about the other ones
 
yeah, the ones labelled "Drink Me"
 
12:21 AM
@rici Not at all. Obviously. I've been using (lib)curl(pp) for... forever and I need not now a random qualified domain used to host the "official" binary versions of this
@rici down the rabbit hole
 
Today I got out of class and randomly hi5'd the first 3 people. Fun day
</random>
 
</needs-more-seeding>
 
@sehe: good catch
 
Hello, World!
 
Ell
Hello, World!
 
12:34 AM
This problem is difficult...
 
Ell
Brute force it :D
 
That's what I am going for haha
I forgot exactly how to print out 2d arrays nicely
 
hey guys, look at this spritesheet: http://ompldr.org/vZ3p1cA/megamanbig.png
do you think treating animations such as the last one's hitbox as the full hitbox versus having a perfect rectangle for each frame would be very faulty?
The first row's 2nd sprite and such: ones where there's clearly alot of "wiggling"
 
Hm, didn't notice Megaman X had such weird hit boxes.
 
it doesn't, I just boxed in all of the sprites of a single animation into squares of equal dimensions, to avoid having to do measures 1 by 1
 
12:45 AM
> Do the math just like you would do if you did it by hand on paper. Adding numbers together is relatively easy, so is subtracting. Doing multiplication and division is a little harder.
lol "a little harder"
 
does wget or curl follow meta refreshes?
 
in HTML? no
 
and on that note, anyone know why they do that idiotic "your download will start in 20 seconds" crap?
 
methinks that's enough programming for tonight... CAAAARTOOOONS! :D
 
12:55 AM
@GigaBass Well, what I remember about Megaman was that they always had clear and well defined hitboxes.
You never felt like you got hurt without being touched.
 
but how "clear and defined" they actually ARE and how they FEEL is often very different... read up in alot of places and hitboxes are often just rectangles but feel perfect (read: mortal combat, etc)
 
this chat has no nickname completion?
 
first letter, tab.
 
Focuses the send button
latest Chrome beta here
 
user406009
Type the @ character first.
 
user406009
12:57 AM
Like @sssilver
 
kk thanks
@Lalaland thanks :)
 
user406009
There is more information on the chat interface at loungecpp.wikidot.com/owners:newbie-hints
 
 
@doug65536: does it set a cooket?
otherwise, you should be able to just extract the meta tag and refetch
 
@sssilver Press the arrow on the right to reply to a specific message. It's usually preferred to @person
 
1:04 AM
@doug65536 no clue. perhaps a question for programmers.SE/skeptics.SE
 
@rici would be nice if it were just a meta. it's some multilingual convoluted mess of javascript
I bootstrapped it though, past that, thanks
 
@doug65536, cool.
 
@Rapptz "press" as in, "click with a mouse"?
 
@sssilver Yes.
 
@Rapptz never!
 
1:08 AM
If you like your keyboard that much you can manually type it.
:messageid reply text here
 
how do I find out the messageID?
 
@doug65536: I suppose it's too late to share this url: mozilla.cs.utah.edu/pub/mozilla.org/firefox/releases/18.0.1/…
 
hover over the message and it'll be in the url.
 
@Rapptz "hover", as in, with a mouse?
 
Do you not own a mouse?
?_?
 
1:10 AM
I don't use it when chatting
I put two hands on the home row and type
 
@rici appreciated though
 
@rici I go to that school
 
@Crowz: then you might know why it has the moz repoz. I just found the list by scanning the moz zite.
 
@rici They're crazy
 
@doug65536: apparently chrom{e,ium} is even worse. I found the following complaint in a comment: "I need to download windows chrome version from my linux box, because I do pc maintenance. Please stop choosing versions for me."
classic bit of google oneboxism. It's really cool except when it isn't.
 
1:20 AM
@sssilver: Also, yes, it has nickname completion.
 
@LightnessRacesinOrbit You are doing that to mess with me. :(
 
@Rapptz ?
am I?
 
Or not. I don't know anymore!
nominating this for ugliest formatted code ever stackoverflow.com/posts/14638160/revisions
 
I've seen worse
Not, like, y'know, a lot, but..
 
@Rapptz That's nothing.
There are far worse...
 
1:26 AM
I want to see far worse :D
 
I'm seeing this "closing brace on same line" quite a lot lately. Maybe there's a new Indian programming book out.
 
^ another bad one I fixed today
 
there you go
makes you wonder wtf people are thinking
angers me, actually, that such people even exist!
I find that it helps if I recall that there are many people who will steal a car without a moment's hesitation if you leave it on the drive with the key in the ignition for just half a minute. And that, as such, the problem of there being ridiculously stupid twats in the world is not limited to the sphere of programming.
It seems somehow less of a problem after that realisation.
 
@LightnessRacesinOrbit a quick glance at what's going on in, say, Syria should drive that point home
just to take one of a sadly large number of examples.
 
don't be silly
Syrians don't edit SO posts
 
1:41 AM
0
Q: Can't get out of the do{}while(); loop (C++)

NoobacodeFor some odd reason I just can't get out of that loop that asks to enter the answers, any help would be awesome: #include <iostream> using namespace std; int main(){ const int TEST=20; char crctAnswrs[TEST]={'B', 'D', 'A', 'A', 'C', 'A', 'B', 'A', 'C', '...

?_? man
 
:D
 
hi
 
Hiiiyo.
 
@Rapptz: I believe paddy found the problem there.
 
@ThePhD .oyiiiH
 
1:50 AM
@JesseEmond Yeah I guess so.
@LightnessRacesinOrbit no. his code has &&
 
@Rapptz He has (A != B && C != D). You suggest (!(A == B || C == D)). The two are equivalent.
Please reply on the answer itself so that everybody can see
 
I don't see that -- I see this.
while(stdntAnswer[index]!='A' && stdntAnswer[index]!='B' &&
stdntAnswer[index]!='C' && stdntAnswer[index]!='D');
Oh never mind
man I'm blind today too
 
How is that not exactly what I just said?
 
@Lightness but it wasn't like that before
 
1:52 AM
because at the time I had answered it was something completely different
 
When this sort of thing happens, is it better to just delete my answer?
To avoid any further confusion
 
man
that Glee episode was SO FUNNY
Abed sabotaged it in the most hilarious fashion
amusing because the actress who plays Britta really can sing
 
meh I edited my answer anyway
not my fault OP is shitty
 
But you said "Use || instead of &&" which, since the OP is using && now, implies that your "edited" argument does not hold!
 
or good enough
 
1:55 AM
who the fuck upvoted that question???
 
I copy pasted and then realised the mistake.
?_?
I downvoted.
Now you downvoted a probable correct answer. :(
In a delicious twist of irony.
 
Delicious?
Or.. ... BITTER?!
 
@Rapptz This is why we are able to change votes after edits.
.. and why we should be notified of posts we've voted on that get edited :/
 
@ThePhD Delicious.
Irony is never bitter.
 
Love the people that instead of answering the question will complain about other people's answers. Thanks. — Noobacode 1 min ago
Obviously not getting it.
 
1:58 AM
lol
 
for the record, my response:
@Noobacode: It's called peer review, and it's one of this community's greatest strengths. Otherwise how do you know that the answer you are getting is correct? — Lightness Races in Orbit 55 secs ago
 
Good response.
 
Thanks @JesseEmond.
 
The newbie concept that the only polite response of any form to any post on a question is a fully-formed answer to the question is short-sighted and erroneously selfish.
 
2:01 AM
So I think I figured out how to fully cheat the dropbox referral system.
 
Ubuntu Live CDs?
 
Pretty much.
 
really?
 
Well, Ubuntu Virtual Boxes
 
I was joking
 
2:02 AM
I just need to figure out how to save a Snapshot or whatever these things are called in VirtualBox
 
0
A: Can't get out of the do{}while(); loop (C++)

Yasin Mehmet Baltacfirst remember that it's case sensetive, and why ignore? delete cin.ignore(); line, and change this line "cin.get(input);" as "cin>>input;" this will work...

 
So I can constantly reset.
 
Power has gone off in class 5 times
 
@Rapptz lol
 
2:04 AM
Lol.
It has to be an audit, that was the worst edit I've ever seen.
 
This is nothing compared to the garbage in the suggested edit queue.
 
@Rapptz lol
nice
yeah, the edit reason has nothing to do with the edit
that user has posted some shitty questions too
are we sure that this is an audit???
 
I think audits are based on real shitty edits.
Question.
long is required to be a minimum of 4 bytes right?
 
Uh... i think it's only required to be at least as long as int?
I'm probably wrong though
 
I thought int was required to be a minimum of 2 bytes, and long was required to be at least 4.
 
2:15 AM
16 useful bits
not the same as 2 bytes
 
Ah.
 
if CHAR_BIT were 16 or something larger (of which there are many examples, unfortunately), then there's no guarantee at all that sizeof(int) != 1.
 
I read yet another one of the robot's blog post. I'm officially a 2bit processor compared to that guy.
 
linkage?
 
2:20 AM
@rapptz long is required to be able to represent 2^32 distinct integers
 
Its not new, I just happened to read it just now
 
@rapptz, i mean, 2^32-1 :)
 
Yeah I understood. :P
 
that might or might not be 4 bytes.
 
Yeah it doesn't actually standardise 1 byte to be 8 bits.
but it's common.
 
2:22 AM
yeah
 
so's 2's complement, but it doesn't standardise that, either
 
Mhm.
 
probably 2's complement is even more common than 8-bit bytes.
 
it doesn't say anything about bytes, really, except that char is one, and you can find out the size with CHAR_BIT.
all the integer types are expressed as "minimum bit width"- i.e., long long minimum 64 useful bits
 
where?
the c standard just defines INT_MIN and INT_MAX (for different values of INT)
of course, you can derive a minimum bit width from that
 
2:26 AM
actually, I believe that minimum bit width is used for bitwise ops
 
@DeadMG That's sort of open to question. Definitely some parts of the standard try to give that flexibility. At the same time, EOF is supposed to be a value distinguishable from any possible char or unsigned char.
 
@JerryCoffin Clever!
 
@JerryCoffin Ah, the C and C++ I/O libraries and designs are so broken that I just ignore them now.
 
@JerryCoffin: fortunately, -INT_MIN is allowed to == INT_MAX
 
Not sure what your problem is. — Noobacode 7 mins ago
 
2:34 AM
@DeadMG I can't find anything in the c++ standard which prescribes anything other than the sizes prescribed by the c standard, which afaics only defines the _MIN and _MAX values.
but i could easily have missed it. i'm not as good at speed reading as i used to be.
 
2:50 AM
@rici Mostly correct. The only exception is that it does specify directly that CHAR_BIT must be at least 8.
 
@jerrycoffin, yes, but it still allows for the possibility that there are only 255 valid bit codes in a signed char (and possibly a char, if char is a signed type).
 
@Rapptz So far so good. 4 GB of space. :D
 
Use my referral code next pls.
:D
 
Eff yo couch. D:
 
@rici True. Pretty much unavoidable unless they want to prohibit one's complement and sign/magnitude -- i.e., decree 2's complement only.
 
2:58 AM
@JerryCoffin and allow for the possibility that -0 is a trap value
hard-to-justify requirements imho, but times have changed.
 
AWW DAMNIT
Dropbox got smart.
 
it's interesting that padding bits are prohibited for char (but allowed for any other integer type). So if CHAR_BIT > 8, all those extra bits need to be usable.
 
My VM snapshot isn't triggering more space anymore.
q_q , curse you dropbox.
 
I think I have to completely re-nuke my VM, and set it up again, so I get a new MAC address and new computer information to fool the Dropbox servers with.
On the bright side, fuck yeah, 4 GB~
 
3:01 AM
@rici Yup...
 
Or why don't you just get an account with enough space?
 
@LightnessRacesinOrbit And pay money? Pah!
 
63 replies... wat?
 
Then you don't have to fool anybody
@ThePhD Oh geez you're one of those people
 
You're damn right I am. :D
 
3:03 AM
You seem proud of it, too. How sad.
 
Nothing wrong with being frugal.
What the hell dude?
 
There's a 16 GB limit on Dropbox for doing various things for them.
 
Frugal is not the same as thinking you're entitled to everything for free
 
So if I can hit 16 GB...
 
Frugal is when you say "shit, I can't afford Dropbox. So I won't use it."
 
3:03 AM
Hey, it's not like I'm hacking their paid 100 GB+ services.
 
Where'd he give the indication that he's "entitled" to it for free?
 
16 GB is their max free limit.
 
He's basically trying to get free space albeit in a shitty way.
 
@Rapptz Heey it's not that shitty. :c
 
@Rapptz If he needs to "fool" the system to get what he wants, that's a fairly decent indication that he's attempting to bypass the user agreement. Further, the indication that he acquire an account with sufficient space for his needs elicited the response that paying for it would be ludicrous
 
3:04 AM
You're "cheating" the system.
 
A typical attitude in children and young adults these days
 
@LightnessRacesinOrbit: elicited, I think.
 
I'm not cheating the system. I'm gaming it. For fun~
 
@rici you're right
 
freudian slip, i suppose
 
3:05 AM
@rici :P
yes it was cos I was about to say "paying for it"
bbl
 
3:29 AM
this punk is so crusty, a pizza shop should sell their records
 
3:52 AM
Did you guys see this? cppgm.org/index.html
 
yeah
 
Do I get a grandmaster title if I do it?
 
Heh, looks nice but I doubt I have time for it
 
you guys it's supposed to be horrible
 
@Rapptz what do you mean?
 
3:55 AM
6 hours ago, by R. Martinho Fernandes
Prerequisites: 2+ years experience working on a C++ codebase or similar language (Java, C#, C)
 
@Rapptz You people really like to hate on other languages
 
?_?
They chose the worst 3 languages to compare C++ to.
Java and C# are "pure" OOP languages and good valid C code isn't good valid C++ code
 
@Rapptz Java certainly is not a "pure" OO language (e.g., it has things like int which are not objects). I'm pretty sure C# has some of the same (e.g., value types).
 
I put it in quotes for that reason
 
Isn't the point that they're procedural?
 
4:00 AM
It's mainly OOP with some procedural bits.
 
And there are other kinds of programming, like that weird one with the recursion?
Well C isn't really Object-Oriented but it certainly seems close to C++ in many ways
 
@Crowz Yes. I'm guessing you mean "functional".
@Crowz Yes and no -- they definitely share a lot, but well written C++ and well written C are usually quite a lot different from each other.
@Rapptz Fair enough.
 
@JerryCoffin yeah, I kinda notice that there's a lot of difference in how individuals write C++ and not as much with different individuals writing C
 
Well, what do you call a language where everything is an object?
I've always wondered
 
The Crowz object. Instantiate a crowz
Have double annoyance in chat room
 
4:05 AM
@Rapptz That would be a pure OO language. It doesn't apply to Java because it still has some things that aren't objects. In Smalltalk (for example) it's really true that everything is an object. Every variable is an instance of some class. Every class is an instance of some class (its metaclass). The only way to do anything is by sending a message to some existing object -- you can't even allocate memory except by sending a message to an object.
 
I know it's true for C#.. or at least thought it was
Isn't everything in C# a .NET object?
 
I'm a .NET object .-.
 
Hi,is there anyone here who can help with a persisting problem in opencv and visual studio2010?
 
@Rapptz No, not in the usual sense anyway. For example, you can't derive from a value type.
 
@JerryCoffin So everything that isnt a float, int, char, ... derives from object?
 
4:10 AM
in C# int is an alias to System.Int32
 
@Borgleader float, int, char, etc., are really aliases for things like System.Int, System.Char, etc., but value types in general still don't really act like anything you'd call a normal class (i.e., they don't act much like reference types). By contrast, in SmallTalk you can (for example) derive directly from its integer type, send it messages like any other class, etc.
 
I see
 
Is there a chat room or somebody to contact who can provide some information on OpenCV issue?
 
The OpenCV forums?
 
I meant in Stack Exchange, here
 
4:18 AM
I doubt there is.
 
Did you read this?
And then do this?
 
Oh yes, I have read and asked a question to which there is no reply :( There is an issue with Visual Studio and OpenCV. Is there a way here that I can directly email a user who is expert in that area?
 
That is perfection
 
Well if it's an issue with OpenCV you really should be going to the OpenCV forums not here.
 
umm, but there are questions asked based on code using OpenCV, in the same manner as being discussed here regarding C++ and therefore I thought that if there is a chat room which handles Opencv related problems.
 
4:27 AM
There are usually rooms for each popular languages, there arent really for libraries (aside from really popular ones like jQuery I guess)
 
ok
 
4:43 AM
Chat rooms are not for "handling problems"
 
Chat rooms are for "generating problems"
 
I think you mean "coughing furballs"
 
0
Q: Enum return type not working C [Error C2440]

MuadDib42Consider the following: class Specimen { public: enum Gender getGender(); private: enum Gender { MALE=1, FEMALE=2, ALIEN=3, HYBRID=4}; } This part as well: Gender gender; under private enum Gender Specimen::getGender() { return gender; } that's a member function the compiler says "er...

what is this
 
Why would you declare the enum private if you have a public interface that returns it's value >.>
 
@Rapptz Gender discrimination.
 
4:56 AM
Also, it compiles for me lol....
 
?_? why is it even allowed
 
@Rapptz why is what allowed?
 
enum Gender Specimen::getGender()
{
    return gender;
}
 
I asssumed Gender gender was a private member of Specimen
 
@Borgleader you lied to me. :(
class Specimen
{
public:
enum Gender getGender();
private:
enum Gender { MALE=1, FEMALE=2, ALIEN=3, HYBRID=4};
Gender gender;
};

enum Gender Specimen::getGender()
{
    return gender;
}

int main() {}
fails to compile for me
 
4:58 AM
class Specimen
{
public:
	enum Gender getGender()
	{
		return gender;
	}
private:
	Gender gender;
	enum Gender { MALE=1, FEMALE=2, ALIEN=3, HYBRID=4};
};

int main(int argc, char* argv[])
{
	Specimen s;
	s.getGender();

	return 0;
}
 
If you mean enum Gender then it's leftover from C
 
Compiles for me in VS2012
 
hnng. bad copy paste
 
The problem is scoping
 

« first day (839 days earlier)      last day (4095 days later) »