« first day (1502 days earlier)      last day (3446 days later) » 

10:02 AM
@sehe the red
o_0 my 'downloads' folder seems to have eaten itself
 
user1804599
No IntelliJ, I don't want to rename _LEVENSHTEIN_THRESHOLD to _LIECHTENSTEIN_THRESHOLD.
9
 
user1804599
Refactoring like a boss: sed 's/fetchone/first/g' -i'' ./**/*.py
 
10:17 AM
uh damnit signed inegers
 
wait
Loungr?
wat
 
19 hours ago, by Bartek Banachewicz
From now on it's called Loungr
 
hahaha. talk to lrio
It's contagious
 
What the fuckety fuck.
 
10:25 AM
But the spillchucker was so _ad rem_ with this pun!
The Levenshtein distance with Liechtenstein was too good to pass up
 
I have throw 1; as the first statement in main, and this thing just keeps running.
 
C++ described in operational semantics
gives me the creepies
 
@R.MartinhoFernandes Static initialization fiasco gets a whole 'nuther meaning
 
How does that even make any sense?
Can you make exceptions... not except?
 
> Nobody sits at the keyboard saying, “Oh, I’ll just throw a few lines of code and see what happens.”
 
10:25 AM
@R.MartinhoFernandes Static initializers, running before main? (libraries do bad things too)
 
Ahahaahahah
 
@sehe Doing what?
 
That's where you're wrong Bartosz.
 
@R.MartinhoFernandes Hang
 
There's no std::pretend_exceptions_do_not_happen_from_now_on()
@sehe I keeps running the rest of the code in main.
 
10:26 AM
@R.MartinhoFernandes Maybe it's a different main :v
 
@R.MartinhoFernandes Don't forget there's std::undefined_behaviour_makes_me_giddy()
@R.MartinhoFernandes ^
inb4 "Full rebuild fixes it"
 
It does get thrown, though, because it stops me in the debugger.
 
Wow.
 
And then I can step through past that.
 
That is strong shit
 
10:27 AM
Yeah do full rebuild
 
@R.MartinhoFernandes maybe the debugger fucks it up
"set next statement" is a powahful thing (IOW direct EBP modifications)
 
Inb4 it's MSVC
 
Compiler knows you shouldn't throw ints so it helpfully optimises it out
 
trolololol try throw 42; instead (or throw "solongandthanksforallthefish";)
 
I threw an actual exception as well.
Same thing.
Let's see what full rebuild does.
Pity it will destroy the evidence.
 
10:30 AM
backup the evidence
 
zip,tar,cpio,tarsnap are patient
 
of what hospital?
 
I have to buy a rubber duck
 
The evidence is likely haunted, so I'd rather destroy it.
 
Mental hospital
 
10:30 AM
@BartekBanachewicz A ribber duck.
 
@sehe We've all been there :)
 
Hmmm.
Full rebuild didn't help/
 
Disable optimizations and LTO. Start divide and conquer
 
It's a debug build.
 
@R.MartinhoFernandes So?
 
10:32 AM
Then enable optimisations and LTO
 
Don't tell me people still only debug in unoptimized builds
 
Turn C++ off and on again.
 
@sehe This debugger barely works in unoptimized builds.
 
Do you have a PCH?
 
that's not a full rebuild then
 
10:33 AM
A full rebuild includes that, no?
 
It rebuilds the PCH, but the PCH might result in a miscompilation :v
Turn it off if you have one
 
Haha, wait, this gets better.
 
I had a situation once when MSVC linked in both debug and release CRT because PCH had some Boost thing included
Why, how, no fucking clue
 
I have two throwing statements, one further down from the first one. It throws the first one, then if I continue it jumps to the second one, throws it, and continues running the rest.
 
But I don't trust PCHs since then
I'd rather wait half an hour more
(Also I discovered then that GCC crashes when PCH is used under PaX)
So yeah fuck PCH
 
10:37 AM
user image
2
The compiler actually complained about unreachable code because of the unconditional throw (warning 4702), which is even weirder.
 
Check the assembly?
Also run it outside of the debugger
 
@R.MartinhoFernandes looks like one throw statement to me
 
:msvc:
 
@LightnessRacesinOrbit The other one is after that.
Also, see where the current line indicator (yellow arrow) is.
 
user1804599
10:40 AM
@LightnessRacesinOrbit Should've said "gifts for girls" instead, otherwise it's sexist.
 
@CatPlusPlus I get the Abort, Retry, Ignore dialog, twice, even if I choose "Abort".
"Retry" aka "Debug" does nothing.
This is thoroughly fucked.
 
@R.MartinhoFernandes Well that means the throw code is okay
 
Nothing is ok!
 
Relatively
 
Also, lol, I misclicked that breakpoint in the screenshot.
 
10:43 AM
@rightføld sactly
 
There's only one thread running at that point...
 
But hey, you don't need tools for the language to be great!
 
damn, I miss my numeric_range
but I'm not going to introduce that in this codebase
I hate repeating code.
 
Visual C++: How is this still a thing?
:<
 
I don't have any real problems with it except it crashes sometimes randomly.
 
10:48 AM
I thought you didn't use C++.
 
@R.MartinhoFernandes Not for hobby projects; I use it at work.
 
I'm all out of ideas :/
 
ergh... new laptop hasn't got chat extensions yet
 
@thecoshman how do you install chat extensions on a laptop? Do you plug them into USB?
 
@BartekBanachewicz ah, you trying to be funny?
 
11:01 AM
are*
 
damn
can't sleep
 
user1804599
fritzlbox is so bad
 
user1804599
what is good router?
 
@rightføld I use E3200 and it's p okay
 
#include <stdexcept>
#include <iostream>

int main()
{
    throw std::runtime_error("");

    std::cout << "Fuck you Visual Studio\n";

    std::cout << "Freaking piece of shit\n";

    while (true) {}
}
REPRO
WTF
JUST WTF
Is this one hell of an elaborate prank?
 
11:04 AM
@BartekBanachewicz that's marketing. says nothing about performance/reliability
@R.MartinhoFernandes while (true) {} is UB so your program is UB and anything can happen. c'mon you should know this.
 
 
@LightnessRacesinOrbit yes, this complements my previous statement
 
@BartekBanachewicz ok
 
4
Q: Why does do-while require a semicolon?

FredOverflowSemicolons are required after struct definitions, because you might want to define variables as you go: struct Foo { }; struct Bar { } x, y, z; Is there a similar syntactic reason for requiring semicolons after do-while loops? do { // ... whatever ... } while (condition); ...

OMG I'm rich, 4 upvotes already!
 
I think "complement" and "compliment" might have different meaning after all
 
11:05 AM
there we go, all fixed up :D
 
@LightnessRacesinOrbit Pretty sure that's just while(true);.
Not while(true) {}
 
user1804599
@FredOverflow because it's insanely ugly otherwise.
 
user1804599
Why does = delete require semicolon?
 
@LightnessRacesinOrbit Well, repro without that too.
@Rapptz No. Same thing.
 
@Rapptz And the difference is...?
 
11:07 AM
@R.MartinhoFernandes ic
 
@rightføld cos end of statement
 
lol wat FU SO
 
user1804599
As usual, workaround is easy.
 
-34
Q: Should we discourage leading +/-1 on comments?

Shog9I'm getting really sick of finding folks arguing about votes, only to see that the bickering started with a comment of the form, -1, because [some perfectly reasonable criticism] As has been discussed many times, voting is anonymous for a reason; folks who give up that anonymity do so at th...

 
user1804599
Shog9 is an asshole.
 
11:10 AM
@FredOverflow 🅳🅾🆆🅽🆅🅾🆃🅴🅳
 
@rightføld Steady
 
user1804599
>>> list(map(unicodedata.name, '🅳🅾🆆🅽🆅🅾🆃🅴🅳'))
['NEGATIVE SQUARED LATIN CAPITAL LETTER D', 'NEGATIVE SQUARED LATIN CAPITAL LETTER O', 'NEGATIVE SQUARED LATIN CAPITAL LETTER W', 'NEGATIVE SQUARED LATIN CAPITAL LETTER N', 'NEGATIVE SQUARED LATIN CAPITAL LETTER V', 'NEGATIVE SQUARED LATIN CAPITAL LETTER O', 'NEGATIVE SQUARED LATIN CAPITAL LETTER T', 'NEGATIVE SQUARED LATIN CAPITAL LETTER E', 'NEGATIVE SQUARED LATIN CAPITAL LETTER D']
 
user1804599
Nice.
 
O being different for no reason reminds me of DF
 
Don't care that it's easy to work around. Do care that I have to keep explaining to folks why their stuff is getting downvoted. — Shog9 ♦ Nov 19 at 19:29
I think mods should stop going full retard.
 
11:14 AM
¬_¬ who put that typo in the room name?
 
It's not a typo, dummy.
 
user1804599
It was the idea of Bartek Bukkakewitch.
3
 
Ell
@LightnessRacesinOrbit haha
 
11:29 AM
@Griwes Its a side effect of SO
 
do Yes/No/Cancel message boxes have a name?
 
No
they are messageboxes like any others
 
@LightnessRacesinOrbit ah, makes perfect sense
 
@Rapptz Confirmation prompts
 
Ell
confirmation dialogue box? :3
 
11:31 AM
I'll go with confirmation prompt
 
meh, my code don't work
 
Hm..
I think confirmation prompts would be Ok/Cancel no?
man this is stupid
 
user1804599
Depends on the message.
 
naming be hard
 
user1804599
"Do you want to save before closing?" would have "Don't Save," "Cancel" and "Save."
 
user1804599
11:33 AM
Preferably with "Don't Save" on the other side of the window because it's dangerous.
 
@Rapptz same thing
 
user1804599
"OK" requires reading the message.
 
user1804599
Nobody wants to read messages.
 
@Rapptz Not looking for modal dialog I presume?
 
shittiest dialog windows known to man but whatever
 
11:47 AM
> Hello
lol
 
I'd go with No
 
at least it's polite
 
So if the user chooses 'cancel', then it didn’t happen right?
 
No = nothing happened, stay cool and move on
 
Yes = I accept my fate
No = I revolt
Cancel = I'm god
 
11:48 AM
@LucDanton Yup.
I'm actually not sure why I have Cancel there.
It's just Yes/No right?
 
@Rapptz depends on what you want to ask from the user, duh
 
Ell
@Rapptz what are you writing?
 
@Rapptz Sometimes 'cancel' is useful. Typical example is a save dialog: yes for saving and then proceeding, no for not saving (and proceed with quitting or whatever was attempted), and cancel for neither saving nor proceeding.
 
tip: don't let your user be god
 
I guess I'll leave in cancel.
 
11:52 AM
seriously just use "OK" and no other button
> something happened
it's in the past
 
that already exists
 
what can you do about the past
 
Writing this from an MS tablet
 
I just made another function for these dialogs.
 
Recommendable
 
Xeo
11:52 AM
sigh
 
@AlexM. Rewind to it!
 
hey man
 
@Columbo :)
 
@LucDanton that's an operation that you do in the present or the future
 
that's just example text
 
user1804599
11:53 AM
@AlexM. eww not modal plix
 
I'm not writing a story there
 
user1804599
Notification in corner.
 
use Steam-like notifications
with sound
 
well
 
@BartekBanachewicz Why do you appreciate that? :)
 
11:53 AM
if a game crashes
 
user1804599
Or highlight something in green.
 
you're gonna need to use a modal dialog
 
Xeo
So, I called the cat lady again, just to ask some questions. And she added another reason for me no getting the cats - my flat is too small, "they're young and need space", etc etc. Of course she couldn't have told me that when she first came over to talk about the cats, three weeks ago...
fuck's sake.
 
@Xeo lol
you still insist on that idealistic bitch
 
@Rapptz /xyzzy
 
11:54 AM
I'd have ended it with "so it seems you don't want my money, goodbye" ages ago
 
Do you have a cat fetish or something
 
Xeo
@AlexM. Yes, because I liked the cats and really wanted them.
@AlexM. The money is not for "buying" the cats.
it's a token charge
 
Maybe she just found someone better m8
It can happen.
 
what's a token charge?
 
"Thanks for taking care of these cats"?
 
Xeo
11:55 AM
(and to cover their costs of neutering, vaccinating, deworming, chipping, etc)
 
@Rapptz shouldn't she pay Xeo then?
 
Ell
@Xeo have you voiced this with her?
 
this is nice
 
Ell
I think you should
just tell her to tell the next person earlier on to save them the trouble
 
11:56 AM
@AlexM. it's there for appearances or for the principle, rather than actually to cover costs or to give someone profit
 
Xeo
@Ell I did. She had nothing to say.
 
she's selling an animal
Xeo wants to buy an animal
why so complicated
 
Xeo
She's not selling it.
 
I just don't
 
@AlexM. that's what I said. though there's no contract presumably so no liability per se
 
11:56 AM
She's not selling it
 
Ell
@Xeo Shame on her, she's just taken advantage really :/
 
@Xeo She basically is. You can mince it any which way you like, but she's exchanging money for a cat.
 
I bought 2 dogs and both situations were like "here's the money; here's the dog; thanks"
 
If it's not-for-profit then that's her business model's business
But I'm language-lawyering
 
slowpoke.gif
 
11:58 AM
Believe it or not some people actually care about the conditions the animals live in.
 
@AlexM. Decent sellers make sure they are sending the animals to a good home
 
we need a deeper connection to things
not just money
 
She deemed Xeo's place unacceptable for whatever reason.
 
So all the checks make sense. Xeo failing them doesn't. Well, what do I know - I've never met him or seen his place. Perhaps the used needles rang up a red flag?
 
@LightnessRacesinOrbit yes, because appearances can't deceive
 
11:58 AM
lol
 
@AlexM. It's a best-effort check. Short of time travel and telepathy, what else do you want? Surely doing no checks at all is not a valid way around that.
 
meh
just buy a pet from someone who doesn't care about that I guess
it's impossible to not find one
 
Those are pretty awful people.
 

« first day (1502 days earlier)      last day (3446 days later) »