« first day (566 days earlier)      last day (4384 days later) » 

12:03 AM
@Spitfire apperently nobody knows
 
@Spitfire you want to convert to subversion?
I'm gonna shoot a cannon in here. It's not like it'll hurt anyone
sorry
 
-22
Q: How many times a for loop will execute?

user960567Let say I have a for loop statement? for(intialization; condition; increment) How many times this loop may execute? I need to find the counter before loop start. Edit: The intialization, condtion and increment are known. I need a general formula. Interesting about down-vote system of stackov...

lol
 
12:20 AM
LOL.
> If these kinds of questions do not make sense then what kind of question makes sense.
 
any of you guys do game development and know a fair bit about path finding algorithms
 
One of these days I need to pick a very bad question to answer to get that reversal badge...
Or a question where the OP is complete idiot. That works too...
 
@Dave A*
 
yeh thats the one im testing
i.imgur.com/kVfCj.jpg see here @MooingDuck
it works fine except in that rare setup^
use manhatten hueristic
so i dunno why its found the longer path for that set up not any others
(it goes from red to pruple)
 
12:36 AM
Oh wow, I was out of town when this was asked, lol
21
Q: C++ won't let me make friends

LegionI have two classes, Mesh and MeshList. I want MeshList to have a function that can change the private members of Mesh. But it won't compile and I don't know why. Here's my code. Mesh.h #ifndef _MESH_H #define _MESH_H #include "MeshList.h" #include <iostream> class Mesh { private: ...

 
@Dave Manhatten distance is not admissible, that's why it's failing.
A* requires the heuristic be admissible (i.e., not overestimate the cost).
Er, but looking at the picture you seem to be working on a grid. So nevermind.
 
@Dave I don't actually see that it has.
 
@DeadMG Looks like it's one step longer.
 
12:57 AM
@GManNickG If all the purple squares are goal nodes, than he probably just forgot to adapt his heuristic as such.
but since he hasn't shown the code, I can merely speculate
speaking of which, I'm about to go and rip out my pathfinding
 
 
1 hour later…
2:23 AM
ping
 
Anyone know where this got linked from?
25
Q: Getting the closest string match

Dade LamkinsI need a way to compare multiple strings to a test string and return the string that closely resembles it: TEST STRING: THE BROWN FOX JUMPED OVER THE RED COW CHOICE A : THE RED COW JUMPED OVER THE GREEN CHICKEN CHOICE B : THE RED COW JUMPED OVER THE RED COW CHOICE C : THE RED FOX JUMPED O...

It's gotten 100 votes in one hour.
nevermind, found it
 
@DeadMG sadly my code is javascript not C++, but as C++ is a popular game developing language thought some one might know the logical reason for the mistake
 
Man I should post cool answers that get linked to from places.
 
@Dave: Not all C++ programmers work predominantly in games
 
i know but as its popular langauge for games it was a good place to ask about it
 
2:37 AM
@Dave: What's wrong with GameDev.stackexchange.com?
 
the chat has been empty for a while this one was populated :P
 
No I meant post a question on GameDev.stackexchange.com
 
i probably will have to :P
:(
 
@Dave If you don't show the code, I can't possibly help you
but more relevantly, I believe that you simply failed to adjust your heuristic to take into account the fact that you have multiple goal nodes
 
3:01 AM
Can anyone explain to me what CYGWIN has got to do with Mingw-w64?
^--- Some of those files contain "CYGWIN" in their filename.
 
They're built on Cygwin.
 
The actual Mingw-w64 compiler?
I won't need the CYGWIN runtime though to use the toolchain, will I?
 
Depends on how they're built. Maybe not, maybe yes.
 
Hmm... decides to try and find out...
 
user457812
3:17 AM
What kind of C++ class was it that he managed to get only a C+?
 
3:51 AM
Anyone here have experience with a gameboy emulator project called gnuboy?
 
4:21 AM
@GManNickG lol, even the guy who answered got confused at all the incoming votes!
3
Q: How did this answer get so many upvotes in only an hour?

AlainI just noticed that this answer received an impossible number of upvotes over the past hour or so. I've seen popular answers before, but this just doesn't seem likely because: The question was answered exactly one year ago today, which just seems like too much of a coincidence. The topic has h...

 
@Mysticial List number 4 made me chuckle.
Shameless link to a question I asked on another site: metaoptimize.com/qa/questions/10087/…
 
list 4?
 
@Mysticial Item 4 in his list, I mean.
 
@GManNickG I know, but which is item #4. The 4th image? Paragraph?
 
@Mysticial The John Carmack comment. :)
 
4:26 AM
? I can't find any comment about John Carmack?
 
Oh... on the meta post... I was looking at SO post that's being massively upvoted. :)
 
@Mysticial Haha, sorry.
 
Yeah, it's pretty crazy. Looking back at my graphs, even that my answer to that denormal float question peaked at only 37 votes/hour.
 
@Mysticial: You don't happen to know much about mathematical optimization do you?
 
4:32 AM
@GManNickG I know some, probably not an expert though.
 
@Mysticial Ah. Suddenly I find myself deep in the field without a clue what's going on.
 
user457812
@ScottW I'm an English major, but I care quite a lot about programming
 
user457812
It's a pretty dang useful skill >_>
 
posted on May 03, 2012

One of the comments on my article last week noted that argument-dependent lookup in C++ is often called "Koenig lookup". I didn't invent it, but unfortunately, I don't know who did, so I don't know where the credit — or blame — is really due.

 
user457812
Methinks he should strive to know more, but not everyone is as obsessive when it comes to learning as I am
 
user457812
4:46 AM
Which is fine, he doesn't actually have to do more than he needs to
 
@nil Wait, so do you notice subtle errors, like how there's two in this sentence?
 
user457812
No, I ignore them because I have beer and don't care about grading your sentences
 
@nil Period at end!
:P
 
user457812
Period can eat me
 
user457812
It is an awesome gif.
 
user457812
4:51 AM
Anyway, this is chat, it's not what I've been submitting to journals and magazines for the past few days, I don't care much about grammar unless you start confusing "too" and "to"
 
user457812
Indeed. I've had classmates who speak English as a second language but try to write nonetheless. They don't need me pointing out their grammar problems unless it's a consistent pattern, what they need is comments on content and style.
 
user457812
Seems like those patterns usually revolve around determiners though
 
5:28 AM
@GManNickG Didn't you have a math optimization question for me? :D
 
oh that one
 
@nil (Check out the preposition in the title. :P)
 
Is that an SE 1.0 site?
It looks the same as SO?
Eh... that looks way beyond my level. If it's pure math I might be able to do it... :(
 
@Mysticial I think so, it's an unupdated StackExchange platform. But it seems to be the site best-suited for the question, and has people answering questions, so I went with it. If nobody answers I'll ask elsewhere.
@Mysticial You can model it as math if you want. :P
 
5:36 AM
@GManNickG Indeed, just read that.
 
Xeo
5:49 AM
0
Q: Is metaoptimize.com part of the Stack Exchange?

matcheekHave been using metaoptimize for a while now and didn't even notice that there are some subtle differences, so does it belong to the SE family or it's just clone of the stackoverflow idea?

 
@Xeo :O!
 
6:07 AM
> BEHOLD THE RAW UNMITIGATED POWER OF JAVA 1.0.2
8
A: "Core" packages of Java 1.0

Jeff AtwoodPer Wikipedia, the first formally released version of Java was 1.0.2, on Jan 23 1996. The first stable version was the JDK 1.0.2. is called Java 1 There's an archive of Java 1.0.2 and all related documentation here: JDK 1.0.2 API reference (book format) JDK 1.0.2 API reference (jav...

 
6:20 AM
Visual J++!
 
posted on May 04, 2012 by Anders Schau Knatten

With C++11 out, I think we should see an uptake in use of the good old std <algorithm>. Why? A common thing to do in a program is to iterate over a container of objects, producing another container of other objects. Imagine for instance you have a vector of domain objects: Now you want to [...]

 
7:10 AM
heloo
everybody
am I alone here
?
 
Not really.
 
I want to get the system time in c++ without using boost
@GManNickG up to microseconds
 
Your best bet is to use the high-resolution timer (nanoseconds) and multiply by 1000.
 
any example?
 
@lakshmikant Not off-hand, it's quite Googleable though. You might also crack open Boost's high resolution timer from Chrono and see how it works.
 
7:21 AM
no..I have got the required time using boost microsecond clock.but I am getting a weird debug error in visual studio since I am writing it alongside c++/cli code
so..now looking for other options..
yeah..I googled and thanks for your information..
and guidance
 
If you're using C++/CLI, why not System::DateTime::get_Now()?
Or just ::Now, if it supports properties.
 
@RMartinhoFernandes Pretty sure DateTime only goes to millisecond accuracy.
 
I am trying it now..
 
csharp> Tuple.Create(DateTime.Now.Ticks, DateTime.Now.Ticks);
(634717166611238160, 634717166611238210)
csharp>
@GManNickG Not on my machine.
 
@RMartinhoFernandes Oh I missed the Ticks field. This should be the simplest solution then.
 
7:29 AM
wow..
it works..
DateTime now = DateTime::Now;
DateTime date = now.Date;
TimeSpan time = now.TimeOfDay;
so i can take the first 5 digits for microseconds..
in DateTime.Now.Ticks
correct?
 
A tick is 100 nanoseconds.
So you want everything except the last digit (which seems to be always zero on my machine).
 
I want to print like this...2012-05-04 15:35:18.209185....sorry If I annoy you.. I am a begineer..
 
7:48 AM
@RMartinhoFernandes where is that deffined?
morning all :D
 
8:44 AM
9 hours ago, by sehe
I'm gonna shoot a cannon in here. It's not like it'll hurt anyone
 
o_0
 
9:01 AM
¡_!
 
¿_?
 
Randomness level ScottW ... :)
 
All of SO is devoid of activity. My two, splendid :), answers are gathering dust
 
9:18 AM
Dammit why hasn't Boost.Optional been updated to use move-semantics.
 
@GManNickG Perhaps @LucDanton has it
 
@sehe: What do you mean?
 
:D
That uses real C++11 though, I'm on VS10. :(
 
real C+11, lol
 
9:26 AM
@GManNickG poor chap
 
It's not that hard to implement moveable_optional on top of boost::optional, anyway.
 
Have you done that too?
 
Optional itself is too hard, I just wish it was available out of the box. :\
 
@sehe Actually, I don't think I ever implemented it on top of the boost one.
 
@RMartinhoFernandes Did you just upvote my anwers ?
 
9:29 AM
Nope.
 
ok
 
I did.
 
@RMartinhoFernandes So, if you have a 'reference implementation' available, where would it be? I keep forgetting about hg/github repos
@GManNickG Hah. I thought it was funny that both answers would get noticed at roughly the same time, so I figured it was someone from the chat :) Thx
 
@sehe I don't have one online right now. I threw it out when I rewrote all my reinvented wheels, a few weeks ago.
 
@RMartinhoFernandes Isn't Hg supposed to, like, you know, retain old revisions?
 
9:32 AM
@sehe I still have it, but just on a local repo.
 
Ok. I won't ask for it - I don't need it right now. But I sure would be curious
 
404.
 
Hmm, Dropbox Y U no work?
Oh, because I am dumb.
Warning, code may be laughable, there's a reason I didn't put it up yet.
 
sbi
During the (European, of course) day yesterday, the starboard messages got replaced about two or three times. Now, after a whole night's sleep, nothing has changed at all.
What have you been doing all night, Merkins?
 
9:38 AM
Patiently waiting for Europeans to wake up, I suppose.
@thecoshman In the docs.
 
The Masturbate-a-thon is an event in which participants masturbate in order to raise money for charity and increase the public awareness and dispel the shame and taboos that exist about this form of sexual activity. During the past six years, the Masturbate-a-thon has raised over $25,000 for women’s health initiatives and HIV prevention, education and treatment organizations, and has contributed to debates about safer sex and alternative safe methods of sexual expression. The event awards several honors for those who raise the most money as well as for multiple orgasms and endurance. ...
 
Their motto should be something silly like, "We invite all people to come!"
 
sbi
I can't help but love that logo.
 
I think it is in mirror image, actually (flip horiz)
@GManNickG Instead their competition has a rule: "Coming is losing"
 
@GManNickG It's "Come for a Cause".
 
sbi
9:41 AM
@RMartinhoFernandes Yeah, seems like it.
And, in case you wonder whether you should go to bed now that I appeared, @GMan, you should know that I was 4hrs late today.
 
> // TODO: ask if above are copy/move ctors
 
I have the day off! :)
 
@RMartinhoFernandes ^ I think I remember seeing that answered on SO. Was that your Q?
 
@RMartinhoFernandes I guess there's a reason I don't make many mottos.
 
@jalf Sounds awesome.
 
9:43 AM
I have an off-day
 
sbi
 
@sbi I know. :( It's 3AM and I a have graduation ceremony tomorrow, yet I don't want to sleep.
 
sbi
@GManNickG You have what tomorrow?!
@jalf Participating, are you? :)
 
@sbi I'm grajiatin'!
 
9:44 AM
@GManNickG oh wow, I think a congrats is in order then! :)
 
:D
 
sbi
@jalf Not until afterwards!
 
room topic changed to Lounge<C++>: Hurrah! GManNickG is graduating! Remember to tell him he's awesome and stuff [c++] [c++11] [c++-faq]
4
 
:D :D
 
@GManNickG Nice. You're awesome and stuff.
 
sbi
9:45 AM
@GManNickG Hoho! I suppose sleep is of minor importance then tonight. You gonna survive the day on adrenaline anyway.
 
@sbi nah, it's just a silly national day off
 
@GManNickG You're awesome and stuffed stuff
 
sbi
He's awesome and stuff.
 
@GManNickG well, I guess congratulations are in order :p
 
@sbi Pretty much what I'm thinking. The hardest part will be resisting the urge to pretty much die of boredom sitting there.
 
9:46 AM
@GManNickG You're so damn awesome too... and stuff.
 
@sbi I considered doing that too :) Hey, @GManNickG, he's awesome and stuff!
 
I could get used to this.
 
sbi
@GManNickG Uh, that's gonna be hard with too little sleep! You wouldn't want to annoy the other participants by snoring, would you?
 
You better get used to this
 
sbi
@GManNickG You better not get used to this. Tomorrow it's over.
 
9:48 AM
@sbi I think accidentally a word!
@sbi I know. :(
 
@sbi originated a few hundred years ago, I believe, because people kept taking days off for religious reasons. So they decided to dedicate a single day to "all your miscellaneous praying", basically. So everyone gets that day off :D
 
sbi
@GManNickG Damn!
 
@GManNickG that's one thing I kind of miss. We didn't have a graduation ceremony
 
sbi
@jalf Ah, so it's older than the masturbate-a-thon. Well, don't let that stop you from raising money for charity.
 
/me googles it
originated 1686, apparently
 
9:50 AM
Aha
 
because before then, people in some areas took every wednesday off for fasting and praying
 
sbi
@jalf Your google fu is bad today:
> In 1999, the Masturbate-a-Thon was originated by the collective Open Enterprises — Wikipedia
 
So the bishop at the time instituted a "national extraordinary common praying day"
 
@sbi I think he's talking about the praying, not the wanking.
 
I love getting days off for absurdly contrived and anachronistic reasons
 
9:51 AM
@sbi Oh my, what a.. colorful image.
 
and I'm pretty sure people masturbated before 1999 too
 
@jalf Unbelievable.
 
sbi
@RMartinhoFernandes Tightly sits on his hands trying to not to make the obvious joke.
 
@sbi Ok, there is an obvious joke?
 
sbi
@jalf Yeah, but they hadn't done it for charity!
 
9:52 AM
Would you be surprised if I said I'm not getting it?
 
@RMartinhoFernandes isn't there always?
@RMartinhoFernandes when in doubt, just go "that's what she said" and laugh. That usually works
 
sbi
@RMartinhoFernandes I wouldn't even be surprised would you be surprised at me not being surprised about you not getting it.
 
@jalf Oh, that kind of works there.
 
@RMartinhoFernandes That's what she said!
 
9:54 AM
Is there anyone here with OpenCV experience?
 
depends on how much experience you need
I did a project with OpenCV at uni 6 years ago
 
jalf: I'm getting an odd compiler error that I can't decipher. "1>C:\OpenCV2.3.1\include\opencv2/flann/defines.h(78): error C2143: syntax error : missing ';' before 'namespace'"
 
I don't remember any of it
 
@sbi Now you'll have to explain the joke to me, or I'll be totally unproductive for the rest of the day, and I don't want that.
 
but technically, I guess I do have a small amount of experience
@Pieter so what comes before the namespace it complains about=
Often, that error means you forgot a semicolon after a class declaration
 
9:55 AM
It's something like this:

#undef FLANN_ARRAY_LEN
#define FLANN_ARRAY_LEN(a) (sizeof(a)/sizeof(a[0]))

namespace cvflann {
 
sbi
@Pieter You include some OpenCV header after one of yours that defines a class without the final ;.
 
@sbi yeah, very likely that
 
sbi: Ugh, you're absolutely right.
I normally work in an IDE that auto-completes class definitions, but Visual Studio doesn't.
 
sbi
@Pieter I remember that taking me half a day to discover when I had my first job. In time, it took less and less time to spot the pattern.
@RMartinhoFernandes It will be interesting to see how an unproductive robot procrastinates here all day.
 
@sbi Good to know... you saved me lots of time and frustration. Thanks! :)
 
9:58 AM
@sbi I don't do that!
 
sbi
@Pieter Yeah, I wish I'd have had Internet access back then.
 
I'm working.
 
sbi
@RMartinhoFernandes That'd be something new, then. Didn't you tell us you have half a year to waste and nothing to do?
 
I remember spending hours pulling my hair staring at c++ code trying to figure out why something wasn't compiling due to some obscure error only to find out it was due to a semicolon where one shouldn't be.
Only difference is that now I get someone to pull their hair for me.
 
Apr 11 at 8:58, by R. Martinho Fernandes
So, if you want to be pedantic, I don't have a job right now, but I'll have by the end of the day.
Poor primate memory.
 
sbi
10:01 AM
@RMartinhoFernandes Oh yeah, I totally forgot that one! What are you doing?
@RMartinhoFernandes Well, at least we're still the primates. That leaves you to struggle for the second place.
You just made me type primate bool blahblah;. The compiler was unhelpful.
2
 
@sbi An Android thingy for teachers and students.
My coworkers prefer I don't talk much about it, for some reason, so I'll respect that.
 
a good Friday everybody :)
 
TIL: If new PCs ship with UEFI and Windows 8, it's nearly impossible to downgrade to Windows 7 or upgrade to Linux.
 
sbi
@RMartinhoFernandes Oh, Android. I spent half the night fishing for interesting apps. Now I have a list with dozens of items to work my way down on.
@KonradRudolph Good Friday was a few weeks ago.
 
@sbi you got distracted and completely forgot what you were doing, so you just wrote random nonsense to try and get back to it?
I get that sometimes.
 
10:06 AM
@KonradRudolph good Friday? Nah, it's the last day of my vacation.
 
@sbi Heh, we're still waiting for the tablets to arrive, so I haven't wasted any time app-shopping yet. I'll keep in mind that you have spent that time and bother you with recomendations when they arrive :P
 
sbi
@RMartinhoFernandes Uh oh. I should have kept my mouth shut.
> I suppose that when giraffes are discussing doing the easy parts of a task, they don't talk about "low-hanging fruit". — Thomas Thurman
 
10:24 AM
@classdaknok_t 'upgrade to linux' - lol
@classdaknok_t In all fairness, not much will change: just select 'Use whole disk' in the installer like before.
I remember constantly typing "Pubic Property Get", "Pubic Function" etc. back in my VB days
(yes, waaaaay back)
 
Ziv
sigh Hi, folks. Can I barge in with a total n00b question?
(I'm trying to install YAP on Cygwin. Supposed to be trivial, but I literally have no idea what I'm doing.)
 
sbi
@sehe I remember virual functions.
 
what does the standard say about the size of a double?
or perhaps a more useful question would be "where does the standard define the minimum sizes for types"?
 
sbi
@jalf I guess you'd have to look into the C standard for the size of built-ins.
 
I'm pretty sure it's in the C++ spec too.
I can never find it though
 
sbi
10:30 AM
@jalf Yeah, but only by reference.
 
@jalf I don't think there's a minimum size for double.
@jalf It's defined indirectly through the UINT_MAX and friends macros.
Which lies in the C standard.
 
bah
I guess I should get a copy of the C standard too then
 
Is accessing a free()-ed memory undefined behavior?
 
yes
 
10:32 AM
I thought so, thanks.
 
using namespace std;
using namespace boost;
using namespace xerces;
Holy tangerines!
0
Q: std::string vs string

GlolitaI'm using in my code many namespaces including the std one , so when I want to declare a string variable in my code should I precise std::string or I can just put string : #include <string.h> using namespace std; using namespace boost; using namespace xerces; int main() { /*! should...

 
@jalf 3.9.1/8
 
@KillianDS It only yaps about relative sizes. I think about 6 other people would have posted the same reference if it said more than that
 
Summary: everything is implementation defined, except that the precision of long double is better than double and that one better than float
 
@KillianDS yeah, but there's more than that
an int has to be at least 16 bits. A long has to be at least 32, and so on
but that might only be spelled out in the C standard
or, more specifically, it specifies the smallest legal values of INT_MAX and similar macros
which constrains the size of the corresponding datatypes
 
10:40 AM
If there's a minimum for std::numeric_limits<double>::radix and friends, that may impose a minimum size.
 
@sehe Yeah, I actually tought 3.9.1 referred to the C standard for other types (like int) and not for double, which would be an indication that there is no actual limit, but I was wrong.
 
I just bought my first hard drive in 5 years, a Seagate 1 TB :)
I've gotten tired of waiting for the prices to drop further, and I think 85 Euro is okay.
My 200 GB and 400 GB drives were even a bit more expensive back in the days.
I was toying with the idea of buying an SSD, but I don't want to spend 100 Euro for 64 GB. Plus, my chipset doesn't support AHCI, which somehow seems to be important.
 
Live-stream for re:publica12 ‌​… quite interesting
 
sbi
@KonradRudolph Don't you have work to do?
 
@sbi I am working (no, really)
and I’m actually going to stop listening soon … but it’s a very interesting discussion actually
 
sbi
10:52 AM
@KonradRudolph They pay you for watching the re:publica live stream?
 
multitasking
 
sbi
@KonradRudolph :)
BTW, @Konrad, have you seen this? In a related note, I found out that Kai Biermann (who, I think, was pointed out to me by you retweeting him) is the father of a kindergarten friend of one of my kids. (Not interesting for non-Germans.)
 
@sbi are they taking the mickey because he spoke out against “piracy” on the internet or is there some other context?
I have no idea who Kai Biermann is
 
sbi
@KonradRudolph Actually, they aren't.
@KonradRudolph Oh, it must have been someone else, then. He started the web department ("Digital") of the ZeitOnline website, and has been quite active in the whole Urherberecht (can't think of the English word) debate.
 
@sbi Ok, I’m impressed :)
@sbi author’s right?
(but usually it’s just copyright)
 
sbi
10:59 AM
Ah, "copyright". Damn.
 

« first day (566 days earlier)      last day (4384 days later) »