« first day (1078 days earlier)      last day (3861 days later) » 

11:00 PM
Yes Java is so baaad we get it
 
@not-rightfold Put enough Kanji or Hanzi or whatever in there and good luck trying to follow what's what at all :p
 
See even I'm bored of this shit
@chris I don't think you've seen IOCCC ever
 
user1804599
@chris More readable than crap full of singleton factory proxies.
 
Xeo
@chris I know what the inner part of the Kanji means (jewel), but what is it with the square around it?
 
11:01 PM
@CatPlusPlus I like the Dear Charlotte one.
 
user1804599
@alw
 
@Xeo くに = country
 
user1804599
@Xeo Kanji on paper!
 
Why did the braces fix it, though?
 
Xeo
@chris ah
 
11:01 PM
@Pawnguy7 Are you writing tetris?
 
@StackedCrooked Nope.
 
user1804599
@Pawnguy7 Because the compiler couldn't read your code because it was unreadable.
 
@StackedCrooked No, you're projecting
 
@chris That's quite a big strawman.
 
user1804599
logical falafel
 
11:02 PM
@StackedCrooked 凸
 
@not-rightfold you still use css/html to dress up the user experince? would you advise gainst using jquery?
 
But Unicode identifiers are the only thing that can make code hard to follow!
 
user1804599
@alwayslearning Yes.
 
Xeo
@chris Also, shouldn't that "o" after "country" in the text be "wo"? Or am I misreading it?
 
user1804599
DOM API is good enough. Screw jQuery and IE.
 
Xeo
11:03 PM
@chris I love that + concave.
 
Anybody know?
 
@Xeo Oops, I keep forgetting that when typing.
 
Xeo
You can see exactly what they mean
 
user1804599
For animations use CSS.
 
Also y'all just jealous that Java has Maven and you don't
 
user1804599
11:03 PM
For AJAX write a simple wrapper function once and use it forever and ever and ever.
 
@Xeo I laughed when I saw those.
 
Xeo
Yea
 
Ahahahahahahaha someone unironically just called DOM API good
 
user1804599
Better than jQuery.
 
11:04 PM
I have 134 on BL2, but that's only the logged hours. Steam doesn't log them in offline mode. I don't want to know the truth.
 
user1804599
Hey at least it doesn't fucking cache data attributes.
 
@R.MartinhoFernandes That's pretty evil.
 
:laffo:
 
user1804599
jQuery is a horrible clusterfuck.
 
Xeo
@R.MartinhoFernandes Heh. The 129 is probably a bit too high, since sometimes let it sit open in the background while I do other stuff.
 
11:05 PM
thank you
 
user1804599
It's obsolete.
 
No, it's not
 
yeah for real have not enjoyed playing with it but you can do some cool things with it
 
room topic changed to Lounge<C++>: Don't listen to anything not-rightfold says. [c++] [c++11] [c++-faq] [no-questions]
3
 
user1804599
11:06 PM
I don't see a reason to use it.
 
@R.MartinhoFernandes ideone.com/oGQG24
 
i dont know of anything better that can manipulate doms, css, tables etc
 
@chris What's your point?
 
@chris Seriously what the fuck are you trying to prove here
 
My external hard drive died (it doesn't start spinning), a quick google search revealed that it can be temporarily repaired by putting the drive in the freezer for twenty minutes. I tried it and it works :D
 
11:07 PM
If you write gibberish, your code looks like gibberish?
 
I can do emergency backup now.
 
Ell
@stacked enough time to copy stuff?
 
It's actually been working for over two hours now.
 
user1804599
@Ell Not when using Windows. :P
 
Xeo
11:08 PM
@StackedCrooked water in the drive?
 
@R.MartinhoFernandes I never really had one tbh.
 
I but it in a plastic bag before putting it in the freezer.
 
Can anybody explain the braces to me?
 
Apparently the cold makes stuff shrink which reduces the friction.
 
user1804599
 
11:09 PM
Sep 25 at 0:19, by R. Martinho Fernandes
found this baby again https://ideone.com/vF6eSg Had almost forgotten.
 
user1804599
This is the kind of question that would receive a thousand upvotes.
 
I would upvote it a thousand times but the captchas are annoying.
 
user1804599
@StackedCrooked Use a CAPTCHA-solving service!
 
@chris Or maybe ideone.com/dTt9G3 is better.
 
Xeo
... WAT
 
11:11 PM
I like mine better. ideone.com/U3U2Jg
 
user1804599
@Xeo Silly Unicode crap.
 
@R.MartinhoFernandes Heh heh heh.
 
@not-rightfold It's ASCII.
 
user1804599
Oh.
 
Yours breaks when copied :v
 
user1804599
11:12 PM
Well, in that case I don't get it.
 
@Xeo Yeah, I can't believe the robot wrote Java.
 
@CatPlusPlus That's the same thing.
 
YEAH BUT IT'S MINE
 
user1804599
 
It's like how you can build a URL that looks like google, but doesn't go to google.
 
11:13 PM
@CatPlusPlus Oh, Cyrillic. That's boring.
@not-rightfold Java is retarded. Quite simple.
 
www.ɡoogle.com
 
Given two absolute paths (strings like "/A/B/C/etc") how would you check if the second path is a subdirectory of the first?
 
Xeo
one is prefix of the other?
 
I find it awkward to implement with std:string.
 
user1804599
@StackedCrooked By using a library that tells you that.
 
user1804599
11:15 PM
Beware of .. and ..
 
Poco::Path didn't have it.
 
Normalise first, then see if the first is a prefix of the other.
 
Xeo
^ that
@StackedCrooked Don't use std::string for paths.
 
@CatPlusPlus Normalize?
 
Xeo
normalize = remove . and ..
 
user1804599
11:16 PM
1 min ago, by not-rightfold
Beware of .. and ..
 
user1804599
Also capitalization on case-insensitive file systems.
 
Ok. That's already taken care of.
 
user1804599
And double slashes.
 
Actually, I'm lying, but hey.
 
user1804599
How about links?
 
11:17 PM
links?
 
user1804599
See ln(1).
 
You don't want to resolve links here.
Well, probably.
Maybe you do.
 
I refuse to think about it.
 
user1804599
Go to sleep.
 
user1804599
Work on Mondays, not Sundays.
 
11:18 PM
There's a difference between checking if a path is an ancestor of another and checking if one represents the same file as a descendant of the other.
Don't attempt the latter.
 
Xeo
the second part doesn't parse for me
 
Don't resolve links
 
Xeo
@CatPlusPlus Boost.Filesystem's canonical function for one also resolves links.
 
Fuck file systems.
 
I made a minimal test case and it works :\
 
user1804599
11:21 PM
Flat file systems ftw.
 
user1804599
@Pawnguy7 Put it on Stack Overflow and mine upvotes!
 
I did. They want a minimal test case.
 
This is weirdest fucking way to do a substring I've ever seen
 
user1804599
lol
 
11:23 PM
You're all weird..
 
I was surprised that I had so much trouble with this trivial thing. That's why I mention it here.
 
user1804599
Get drunk and jump out of the window.
 
@Pawnguy7 Add braces.
 
If your minimal test case doesn't reproduce the problem, then it's not a test case
 
11:25 PM
@StackedCrooked it works without them.
 
user1804599
Maybe you have some UB elsewhere. :D
 
@Pawnguy7 very well then, go on.
 
Step through the stupid loop, and verify every condition.
Also add braces regardless.
 
@Pawnguy7 Try to figure out the bug in your original code.
You fixed your code. So apparently the changes you made contain the answer to your question.
 
user1804599
11:26 PM
This is the first time I’m going to sleep after I installed Firefox. I’m so excited. :>
 
Xeo
Hm, I could swear there was a way in Boost.FS to make an absolute path into a relative one in relation to another path. Can't find it though.
 
which pasta do I buy if I don't want to support capitalist exploitation of laborers of any sexual orientation?
 
@CatPlusPlus the cheapest one
 
@StackedCrooked All I did was add braces around the y loop. I don't know how it is related to the contents in it.
 
If they call you a cheap-ass then at least they are not calling you a misogynist.
 
user1804599
11:28 PM
@Pawnguy7 Do you have any weird macros or backslashes in your code?
 
@Pawnguy7 Then keep looking.
 
@not-rightfold Not there, anyway.
 
Keep rearranging things and try.
Until you see it.
This is your daily bread and butter as a developer.
Unless you always add braces, of course.
 
@Pawnguy7 did you try setting a breakpoint and look at what is actually going on?
 
11:31 PM
@nhgrif That is what I started with an hour ago, yes.
 
You haven't even shown us a self-contained reproduction.
 
user1804599
@Pawnguy7 What if you try a different compiler?
 
@StackedCrooked The one I made worked.
 
Please record your debugging session and put it on youtube dot com
 
The if is terminated by either a closing brace or a semicolon. It has to be one of those two.
@not-rightfold Yeah, this problem requires that kind of inspection.
An automated formatter might reveal some brace mismatches.
 
11:34 PM
Strange.
Now it will not do it anymore :\
 
Stale build case closed
Always rebuild all in case of a bug
 
It sometimes happens when using print debugging I get very close to discovering the source of the error and then it suddenly starts working as expected. Even after cleaning up the print statements.
It's like the bug escaped.
 
Ell
But that means its still alive :o
Lay down some bug powder
The best thing to do is just completely destroy its habitat
 
Just drive it into a corner. Either it disappears or you discover it.
I remember mysterious bugs when using Ideone. Turned out I wrote x; instead of return x;. (And Ideone didn't use -Wall.)
Missing return statement is not an error for some reason.
 
@Pawnguy7 I've tried running the code you presented I your newest question (+ mock-ups of Vector2i and Grid of course) with and without those braces and I get the same results.
 
11:44 PM
The warning for unused function arguments has saved me many times.
Which is funny because it's one of those warnings that is considered annoying by many people.
 
@StackedCrooked I can vouch for that.
 
Your Language is a Piece of Shit
 
Can changing solutions in VS do this?
 
Maybe you ran the debugger with outdated object code.
If you change your code and save your changes during build this can happen.
 
Ah.
 
11:45 PM
10 mins ago, by Cat Plus Plus
Stale build case closed
 
Shall I delete the question, then?
 
I don't care :D
 
@Pawnguy7 You can provide a self-answer saying "I'm an idiot and just rebuilt the entire solution" :-P
 
My build script always deletes the executable before starting make so that it must re-link.
and automake sucks.
 
@Insilico Could. Though besides explaining at that time, it isn't really useful in the future.
 
11:48 PM
@Insilico Many nods will be given.
 
@Pawnguy7 It does show that if you get weird "impossible" errors, then it might be because of stale builds.
 
Indirectly, yes. Good lesson to learn, I suppose :D
 
IMO questions should be deleted only if they're like this.
 
Mystery error? => Rebuild from scratch.
If the error still occurs then at least you know something more.
 
How do I answer it?
 
11:51 PM
4 mins ago, by In silico
@Pawnguy7 You can provide a self-answer saying "I'm an idiot and just rebuilt the entire solution" :-P
 
Like, how do I enter an answer?
 
@Pawnguy7 You need to become more self-dependent.
 
HOW TO LIVE
 
StackCrooked will tell you.
My avatar is always smiling. Which proves my success at life.
 
You need a good touch up.
 
11:53 PM
Eew, that's gay.
 
@Pawnguy7 You've already provided answers to three other questions. Surely it's the same process to answer your own question.
 
Uh maybe press butan
maybe
 
I don't know how to respond :(
Attention blindness is so cruel.
 
Why press butan? It's an inoffensive little country.
 
11:57 PM
Damn butans.
stealing our jobs
 
@Pawnguy7 You know I stared at that picture for 30 seconds thinking "I don't see anything wrong, just press the button to answer the question"
 
ITT Pawnguy7 needs a break.
 
@Insilico I was looking for the box outline :(
@StackedCrooked I will get right on that.
 
Pressing the butan causes a civil war..
 

« first day (1078 days earlier)      last day (3861 days later) »