« first day (787 days earlier)      last day (4155 days later) » 

lulz
so Java programmers around like XML
 
ugly, but funny
 
I guess, that says enough
 
@FredOverflow I might want that T-shirt.
 
user142019
I want a Node.js T-shirt.
 
1:15 PM
> Despite its name, U+2118 SCRIPT CAPITAL P is neither script nor capital
FFS
Those people were all drunk when they named these things.
 
Xeo
oh lol
 
baumwolle is neither baum nor wolle
 
user142019
I wish I had std::bound_function.
 
user142019
libuv is a pain without lambdas.
 
@Zoidberg'-- Why not std::function?
 
Xeo
1:20 PM
@StackedCrooked C API, I guess?
 
@Xeo Seriously, if I use these names to tag the text, and a screen reader comes along and reads "script capital p", it's just a giant fucking lie.
 
user142019
@StackedCrooked libuv has a C API.
 
Xeo
@R.MartinhoFernandes hrhr
 
user142019
I need to explicitly set data, which is a void*. I just set it to this but it’s still annoying.
 
Xeo
Is the callback only used inside the function call, or is it saved somewhere?
 
user142019
1:29 PM
It’s saved somewhere.
 
Xeo
Too bad.
 
user142019
uv_listen((uv_stream_t *)&server, 128, &on_connect);
 
user142019
on_connect is called every time somebody connects.
 
user142019
And I need access to variables outside of on_connect, so I assign those to server.data, which I can access in on_connect.
 
Xeo
Otherwise you could still get away with lambdas.
 
user142019
1:30 PM
I can use a lambda that converts to a function pointer. A non-capturing lambda.
 
Xeo
I meant more like
 
user142019
The function that calls uv_listen never returns, so lifetime is not an issue.
 
Xeo
auto x = [&](...){...}; // stateful lambda
c_api(..., [](..., void* p){ (*static_cast<decltype(x)*>(p))(...); }, &x);
 
user142019
Here is my code: stacked-crooked.com/view?id=0c86d432074c9fad530ef28ad742ac9b. I need to access loop from on_connect. It’s in C, but if there were std::bound_function I would use C++. :P
 
user142019
But using a C API in C++ is a pain in the ass without wrapping everything because of exception-safety.
 
user142019
1:33 PM
I’ll probably use C++ for the parsing and handling of requests.
 
Don't let C++ exceptions pass through C code ever
 
user142019
With a single function that handles every exception and exit(1)s on std::bad_alloc.
 
I'm using voice recognition software to write this tweed. No. tweed. Know. Undo. Fondue that. Fondue hat. Erase. Duck. Duck you computer.
10
 
Xeo
The problem with current voice recoginition software? Seperating commands from speech.
 
"Fondue" is not a command.
 
Xeo
1:43 PM
But whatever he said might have been interpreted as the "undo" command if he was in command mode.
 
@Xeo Duck you.
 
Xeo
18
Q: What are the advantages of using nullptr?

Mark GarciaThis piece of code conceptually does the same thing for the three pointers (safe pointer initialization): int* p1 = nullptr; int* p2 = NULL; int* p3 = 0; And so, what are the advantages of assigning pointers nullptr over assigning them the values NULL or 0?

 
@Xeo The good old code vs data.
 
Xeo
And nobody mentions perfect forwarding as the prime motivation. :(
 
@Xeo Can't load the question :(
 
1:46 PM
Ahahahaha Unity
If I do
if (condition) {
   // something
   condition = false;
}
 
Xeo
@DeadMG SO is being a bit funky right now, just refresh until it works.
 
In OnEnable
The game breaks
Literally stops working
That variable is not used anywhere else
 
Your code base sucks, it seems.
 
It seems like a UB symptom.
 
Xeo
@CatPlusPlus Or so it seems.
 
1:48 PM
@Xeo No, it's not.
 
Xeo
SO should automatically focus the search field when I move messages...
 
That's C# on Mono on Unity, not C++ btw
I have no idea what happens there
 
Xeo
Stop it, will you?
 
@CatPlusPlus The "something" might be responsible.
 
In case you didn't take the hint, we don't care or want that damn wall of text here
@StackedCrooked No
Well, it shouldn't in any case
 
1:49 PM
Weird. Chat is automatically generating homework for us.
 
It works fine when that variable is not set to false in there
I'm too lazy to figure out how to attach debugger to Unity
 
Xeo
What happens if you rename it, just to be sure?
 
Rename what?
 
Xeo
The condition variable, what else.
 
What difference does it make
(There are two variables involved btw)
 
1:51 PM
Maybe reflection.
 
@CatPlusPlus That's what he asked.
 
I already renamed stuff there, there's no difference
There shouldn't be any difference
 
Maybe there is part of the logic that branches on the size of the binary.
 
Anyway, that's easy to work around, so I don't really care. I'm sharing because it's ridiculous and hilarious
~quality software~
 
Xeo
Man, SO sure is unstable today.
 
1:52 PM
@CatPlusPlus your software
 
Oh wait a second
Apparently OnEnable is called more than once ahaha
I love the design here
 
ITT Cat learns to read the docs instead of blaming the tools.
4
 
There's nothing about that in the docs
 
@CatPlusPlus What. The docs don't mention blaming the tools?
 
I noticed because I put code that writes to registry there and the game speed dropped by 90%
:v
 
Xeo
1:55 PM
lol
 
It's probably NGUI nonsense rather than Unity nonsense but still
 
Nonsense everywhere
 
nunsense
 
user142019
@TonyTheLion the topic is getting old. (Hint! Hint!)
 
Tony was high?
 
1:57 PM
Heloo all
i have some problem
reagrding C++ SFML
 
user142019
@HaseebKhan We too.
 
Get a number, we'll call you
Your number is 12487102471
 
room topic changed to Lounge<C++>: If you come to annoy us with your homework, duck you. [c++] [c++11] [c++-faq]
 
Good day
 
user142019
@HaseebKhan C++ FML FTFY
 
1:58 PM
Now serving number 1
 
right
 
That's me.
 
user142019
left
 
hey
gtfo I'm #1
 
Ahahaha you both crazy
 
user142019
1:59 PM
12487102471 overflows, you're out of luck.
 
It probably fails to load images
 
Ah we have customers
 
sofudown :)
 
Because it's unable to open files
 
I'm King, so I'm always number 1!
 
1:59 PM
hth
You're high
 
SFML = So Fuck My Life, right
 
user142019
I'm number 0 because everything is 0-based!
 
Your mom is 0-based
 
@CatPlusPlus high on XML then
 
2:00 PM
@CatPlusPlus It was Ell.
 
anyone can help
 
No, we can't.
 
Plonk!
 
@R.MartinhoFernandes What ahaha
When
 
user142019
STOP IT NOT POST IT
 
2:00 PM
@CatPlusPlus Yesterday. And the time before when he was drunk
 
@R.MartinhoFernandes Just FWY, the code worked (both with {upper,lower}_bound and equal_range) once I inverted the conditionals in the comparer function.
 
is this room only for enjoyment
 
15 hours ago, by Ell
its strange, I associate people in.pairs in this lounge
 
It’s a bit unintuitive at first but it actually makes sense
 
or some serious work
 
2:01 PM
@HaseebKhan Yes
Never serious work every day
 
ok then
 
user142019
@sehe I'm sitting next to a guy and he is Skyping with a Swedish guy who has your avatar. Dat pik je toch niet?!
 
@HaseebKhan Serious questions go on stackoverflow.com/questions/ask
Ooops.
 
So creating VS2012 project templates should be simple, reality is, it's a fucking joke and doesn't work.
 
2:01 PM
"We are Offline".
WTF
 
I hope it's creator burns in Hell.
 
They don't want that question either
Sorry bud
 
@Zoidberg'-- He has my avatar?! Is he demanding ransom?
 
@TonyTheLion Like everything about VS
 
I'm actually starting to believe you...
which is scary
 
2:03 PM
Behehehe
 
user142019
> Do you want to leave bin?
 
user142019
No I want to stay in a stinky bin forever.
 
You're Zoidberg after all
 
So @Cat, have you read Ell's crazy diatribe about pairing people off in the Lounge?
 
2:04 PM
Ahahaha moping duck
 
linky?
 
oh gawd, that was hilarious
 
@DeadMG Scroll up a bit.
 
I would pair the cat with the dog, not the duck.
 
I died in an a fit of laughter from which I have barely recovered
 
2:04 PM
15 hours ago, by Ell
fredoverflow and deadmg are paired. I don't really know where the pairs come from, I just see them
 
lol
 
15 hours ago, by Ell
tony pairs with...who's the guy who left?
 
Zoidberg
 
erm no, I don't stash shit under my armpits
 
user142019
2:06 PM
what's up motherfuckers
 
zoidberg was with raptz
 
@TonyTheLion What, you stash non-shit instead?
@StackedCrooked Then Ell paired him up twice
 
user142019
I stash uncommitted changes.
 
std::pair<gravatar, gravatar> pair(chimera, raptz);
or something
 
@CatPlusPlus wtf
I thought I was with Zoidberg ;)
 
2:07 PM
I'd pair FredOverflow with StackOverflow :)
 
@CatPlusPlus It's a compression algorithm.
 
@TonyTheLion That's a short love, it'll die at the semicolon.
 
user142019
FredOverflow and StackFlintstone
 
FredOverflow and YoMomma
 
@TonyTheLion YoMommaOverflow.
 
user142019
2:10 PM
Tony the Hawk
 
Tony The Shark
 
Xeo
@R.MartinhoFernandes YoMomm -- Overflow Error.
 
user142019
@R.MartinhoFernandes yo momma’s stomach overflows
 
@Zoidberg'-- with poisonous acids
 
user142019
2:11 PM
@StackedCrooked with instances of Fred
 
overflowception
 
user142019
struct foo : public std::exception() {
    foo() { throw std::exception{}; } // exceptionception
}
 
@Zoidberg'-- Ah, she's a factory?
 
user142019
@StackedCrooked FredFactory
 
user142019
Imagine a thousand Freds in this room, all the same.
 
user142019
2:13 PM
They all reply to the same messages with the same text.
 
I think you'd DoS this room then
 
Fredbomb
 
Whoa Stack Overflow down for you too?
 
user142019
You know what time it is? 15:15.
 
2:15 PM
That's not leet
 
user142019
@sehe Well, al least the maintenance page isn’t down.
 
it's down
maintenance
 
<?xml version="1.0"?>
<!DOCTYPE fredz [
 <!ENTITY fred "fred">
 <!ENTITY fred1 "&fred;&fred;&fred;&fred;&fred;&fred;&fred;&fred;&fred;&fred;">
 <!ENTITY fred2 "&fred1;&fred1;&fred1;&fred1;&fred1;&fred1;&fred1;&fred1;&fred1;&fred1;">
 <!ENTITY fred3 "&fred2;&fred2;&fred2;&fred2;&fred2;&fred2;&fred2;&fred2;&fred2;&fred2;">
 <!ENTITY fred4 "&fred3;&fred3;&fred3;&fred3;&fred3;&fred3;&fred3;&fred3;&fred3;&fred3;">
 <!ENTITY fred5 "&fred4;&fred4;&fred4;&fred4;&fred4;&fred4;&fred4;&fred4;&fred4;&fred4;">
 
user142019
Stack Overflow has down syndrome.
 
@CatPlusPlus This?
 
2:18 PM
@R.MartinhoFernandes a thousand million, also known as a billion?
 
@KonradRudolph Traitor.
 
Ahaha MonoDevelop crapped out
Stopped rendering text
Or anything really
And it's dead
 
user142019
This room is dead.
 
user142019
Nobody but me talks.
 
SO is dead
 
user142019
2:29 PM
If you people don’t talk, then:
 
user142019
 
I'm working
well, at least trying to
 
user142019
Jaja, dat zeggen ze allemaal.
 
shush
ze zeggen dat niet allemaal, want ik alleen heb het maar gezegd
your argument is invalid and I'm an empty container
 
user142019
You’re an empty container?
 
2:33 PM
yes
 
user142019
So fmap is identity?
 
anybody tried [^\\\\]+\.doc with Qt's regex ?
 
user142019
You tried.
 
yes
but doesn't matter how many slashes I give It doesn't work
 
I dunno how somebody managed to upvote me when I can't even load a single page on SO...
 
2:36 PM
I tried anything some.doc
 
@Mysticial ghosts
 
user142019
@Mysticial hackers hacked the hacked database!
 
SO works fine for me
 
What do you want to match with that regex
 
@CatPlusPlus file.doc
 
2:37 PM
Well, then regex is file[.]doc
 
Oh! \\. required
 
user142019
file\.doc
 
Backslashes are ugly
Also should be anchored probably
 
raw string literals ftw
 
user142019
@NeelBasu Any compiler should warn for non-existing escape code. Also use raw string literals.
 
2:38 PM
I am entering the string through textbox
 
user142019
Then you don’t need to escape anything, silly.
 
user142019
Except in-regex things like ..
 
regex is bad and you should feel bad
 
@Zoidberg'-- No Thats because I cannot alter the original regex which is in Java flavour
 
user142019
[^\\\\]+\.doc matches anything.doc but not \.doc.
 
2:40 PM
I've to do alteration as mimimal as possible
@Zoidberg'-- Yes I don't want to match \.doc I want to match anything.doc
 
user142019
Then [^\\]+\.doc is fine.
 
@Zoidberg'-- which is not matching with anything.doc
 
user142019
wat.
 
yes
I am trying with QRegExp::exactMatch
 
user142019
regexpal.com tells otherwise.
 
2:41 PM
and providing value through texrbox
yes its working in regexpal
I've to go by anything_but_slash logic. I've no escape
and anyone test and confirm ?
 
.+\.doc What's with the slashes?
 
user142019
Can’t you just write a parser? Or do you want people to enter a regex themselves?
 
@R.MartinhoFernandes nope. because I've been instructed not do much alteration with original regex
yes I want people to enter a regex.
and the regex will be passed to some other Java app through RPC
 
user142019
FUCK REGULAR EXPRESSIONS
 
user142019
:P
 
2:43 PM
and then it will be applied by the java app. but test button is writen in Qt
thats the problem
I'll try the same with boost regex
 
user142019
Try Perl.
 
I am not going to change language for this simple problem
 
@NeelBasu What kind of crazy is this.
 
one thing I've done I escaped the subject string
 
It always confuses me when people don't want solutions.
 
2:47 PM
So it has become file\.doc
but that should not be a problem
 
Escaped what?
 
the subject string
 
int n=5;
1 * * * *
5 2 * * *
5 5 3 * *
5 5 5 4 *
5 5 5 5 5
how do i do this number pattern?
 
Erm.
WTF. Text has no magic characters.
Text needs no escaping.
You did not escape that, you adulterated it.
 
But What if it has so I used QRegExp::escape()
before matching
 
2:50 PM
"What if it has"?
 
@KexyKathe Try to find the relation between line index and its contents. Then you can write a function that takes the line number and returns the string.
 
What if my subject string have regex like characters ?
so I am escaping it before matching
 
@StackedCrooked using C
 
That makes no sense.
 
@KexyKathe Language doesn't matter.
 
2:52 PM
Escaping is not a harmless operation: it changes the meaning of things. And when those things don't have special meaning there is no escaping.
Adding slashes to plain text is exactly that: adding slashes.
 
I'm not special. There's no escape for me :(
 
You don't want to modify the string you are matching against.
That's... cheating?
 
TIL "Troll" in the Internet meaning is derived from a fishing term.
Trolling (verb): Fish by trailing a baited line along behind a boat: "we trolled for mackerel".
 
I used to do that with my father.
We didn't call it trolling, though.
 
… and back to Boost.Spirit :/
 
2:59 PM
> Invisible Mathematical Operators
...
 

« first day (787 days earlier)      last day (4155 days later) »