« first day (1448 days earlier)      last day (3490 days later) » 

1:00 PM
I don't think domain names with hyphens in them look very good. Thoughts?
 
Xeo
@AlexM. I like the interactions between the three already.
(first half of e2)
 
I'm removing my downvote because, although the OP deserves one (<3), the question arguably doesn't. Also, whoever thinks this is "unclear what you're asking" should not be contributing to a programming Q&A website. — Lightness Races in Orbit 29 secs ago
burn
 
Mornin
@LightnessRacesinOrbit +1 on the comment, I don't understand why that has 4 downvotes btw.
 
user1804599
ØMQ is so nice. Can just restart the server without explicitly reconnecting the client.
 
@rightfold I haven't worked with it since we moved to Azure which was a while ago - I love it though.
(They provide their own thing which is sorta the same)
 
Xeo
1:10 PM
 
I'll order pizza tonight
no more sandwiches before leaving work
 
user3010322
@Borgleader I just remembered to look for this. You're just sick. D:
 
StackOverflow should ban documentation questions
Unless the OP is asking about: I don't understand the docs, please explain this technicality.
Has this been raised on Meta?
I'm feeling lucky today :-P
 
13 mins ago, by Lightness Races in Orbit
I don't think domain names with hyphens in them look very good. Thoughts?
 
@rubenvb I think it’s been one raging storm or two. ‘Lack of research’ used to be a close reason, but now it’s not as a result. Hope I’m not mistaken.
 
user3010322
1:14 PM
I searched for C++ on meetups.
 
user3010322
"Intermediate Longsword, Dagger, and Grappling."
 
user3010322
.... Wat.
 
user3010322
Is this "How to defend yourself from the code, intermediate"?
 
My intuition is that domain names with hyphens invoke images of phishing/scam sites. Is it just me?
 
1:15 PM
Yes
@StackedCrooked Branches are literally hitler
 
@LightnessRacesinOrbit it was a message in chat
 
@sehe Eh? No it wasn't; we were discussing OP's comments on answers.
 
I should learn some pentesting with all those crazy bugs around
 
@LightnessRacesinOrbit Domains with hyphens are penalized by google as a result they do badly in SEO.
 
@LokiAstari Aha!
 
1:18 PM
CatPlusPlus the Grey.
Put on your robe and wizard hat, too.
 
@LightnessRacesinOrbit I know right. I just got the feeling you dismissed my chat messages, because you only responded to what was already known to you
 
@sehe Sorry but I don't know what you're talking about right now :/
I didn't dismiss anything??!
 
??!?!?!?! helps
 
Oh god you're in one of those moods again, aren't you
 
1:21 PM
@rubenvb yes, and was decided against.
 
@CatPlusPlus It's a static if :)
 
@LightnessRacesinOrbit never not play at the player :S
 
So it's a static hitler.
 
@BenjaminGruenbaum Well, that sucks. There have been quite a lot of RTFM questions lately.
 
@sehe what the hell are you talking about!?
sehe's on drugs
@LokiAstari Thanks; verified
 
1:25 PM
What do you guys do when you're really stuck on something?
 
> The power of great engineering: India's space program has put a satellite into Mars orbit - on its first try, and for only $75 million. Of the 51 attempts to reach Mars, only 21 have succeeded, and never before on a first attempt. nytimes.com/2014/09/25/world/asia/…
 
@TonyTheLion Smoke. Walk. Masturbate. Not at the same time
 
@LightnessRacesinOrbit oh man, ciggy sounds sooooo good
 
@AlexM. It was bound to go well with all the SO questions that went into the project
 
Ell
@TonyTheLion have some coke
 
1:25 PM
@rubenvb the manual of lots of things sucks
 
Ell
go away from the problem
 
Thats why it was decided against.
 
@LightnessRacesinOrbit I was going to say that it was built on oDesk
buuut... you said it better
 
@StackedCrooked Literally stitler
 
@BenjaminGruenbaum Welcome to programming, I'd say. If it really sucks, ask about the particular contents. Don't ask for the contents.
 
Ell
1:27 PM
Stalif
 
@CatPlusPlus I've been thinking that for years, and I even attempted to learn it, and its fucking hard.
 
I started a course in professional pentesting a few years ago
I never managed to finish it.
too much assembly
 
@rubenvb the fact OP is an idiot is frustrating, and it's frustrating to answer questions asked by people who are dumb and lazy - but forbidding them on SO is bad.
 
1:30 PM
Basically I started the old version of this course: offensive-security.com/information-security-training/…
 
@LightnessRacesinOrbit Unless you are in Germany! domainate.com/2012/11/hyphenated-domain-names
 
@TonyTheLion Metasploitin'
 
I wanted to go a bit further than merely metasploit
metasploit was fun to use
 
@ThePhD You're welcome.
 
@BenjaminGruenbaum Please explain how telling lazy bums to ask decent questions is bad for Stackoverflow.
 
1:32 PM
@LokiAstari Ironic, really - the one country that has seemingly no problem with infinitely long words, and they're the only ones who want to inject hyphens into domain names
 
user3010322
@Borgleader :C
 
user3010322
All my frowns upon your shenanigans.
 
@rubenvb thanks for putting words in my mouth. That's always constructive. The question itself isn't bad the bad thing about it is that we feel we're "losing" because we're entertaining lazy people.
 
ahaha just found ex's sex toy cleaning lotion after one year
 
1:35 PM
@LightnessRacesinOrbit mail it to her
 
I have found this interesting site: langref.org
 
@BenjaminGruenbaum I'm sorry you feel I have put words in your mouth. I was merely asking for elaboration. I would argue the question itself is bad because the distinction (in the aforementioned case that sparked this discussion) is clear in the documentation. Thus, the question is asking for the documentation, which does not contribute to the quality of SO. Instead it just generates more entropy.
 
@LightnessRacesinOrbit Sex toy cleaning lotion? Is that not soap?
 
user1646075
@BenjaminGruenbaum or mail it to her father
 
1:38 PM
@rubenvb the problem is we can't be sure the documentation is good, or will always be good. Documentation breaks. I know I'll have a hard time arguing this with boost given how popular it is but it's the case for many frameworks/languages. It's not uncommon to see a documentation question get very highly upvoted because documentations have a lot of issues - the biggest one is that they're not as good as SE or other sites at SEO.
MSDN for example used to be pretty accurate but also a nightmare.
 
@VáclavZeman usually they contain disinfectants
 
They didn't believe SEO was important, so you'd find (still do sometimes) what you were looking for on the 4th page, with 3 pages of irrelevant stuff (some of which also on MSDN) first.
 
@LightnessRacesinOrbit or I'm drunk. Or maybe I've chosen to be a jack-ass today. Or maybe you're just bored.
 
user1804599
lol root operator in PostgreSQL is |/ :v
 
what is a root operator? (cue: Sade)
 
1:41 PM
@VáclavZeman no
@sehe I swear I'm not trolling you
 
@BenjaminGruenbaum Well, the most common doc questions come in Boost, Qt, and similar well-documented things. I understand the decision that was made, but I feel actively answering the "about documentation" questions and closing the "for documentation" questions will improve the average quality of questions and happy "customers" on SO.
 
I'm surprisingly unbored today actually. weird :/
 
@rubenvb I wish there was a way to vote these questions into CW - that'd be interesting.
 
user1804599
@sehe square root
 
Instead of closing it - it's voted into CW, where you can quote the real documentation and add more details about use cases, versions etc.
 
user1804599
1:43 PM
@sehe crue: sade
 
@BenjaminGruenbaum That would turn SO into metadocumentation.com. Exactly what I'd like to prevent.
 
my boss is completely unspooling. it's kinda fun to watch but could you lend me some senior assistance from communications?
 
metaldocumentation
metal.stackoverflow.com
 
user1804599
hmm.
 
user1646075
@rightfold hah - that's cute. Hope it doesn't catch on
 
1:45 PM
no i came from java and i have problem to learn c. Sorry. Can u help me? — luigi 3 mins ago
sigh
 
@rubenvb it's already that anyway :P
 
@FredOverflow ooh
 
> I have a question for this little code. I have this, that is a little function that doesn't make anything. (or almost produce a little code of error)
@TonyTheLion wat
 
Sometimes I wish there was someone round here who actually knew the rules, and could be considered "right", rather than discussions over and over. That said, I'm with @Servy on almost everything said here (from my past experience on meta, that means Servy is probably wrong) — Richard Le Mesurier Sep 17 at 19:38
 
ask OP
 
1:47 PM
looool
:D
 
Ell
@VáclavZeman looks terrible to me :S
the first solution I clicked on for the cpp section was not even c++! langref.org/cpp/networking
 
@ThePhD If you want to frown, watch James McNellis' Cppcon talk if you havent already.
 
@BenjaminGruenbaum Unfortunately. I came here for the great answers I got on my problem-specific questions in the beginning.
 
@Ell Well, I have found it when searching for something related to Groovy, not C++.
 
user3010322
@Borgleader How did you get to him. D:
 
1:51 PM
@ThePhD oh its not puns, its bad code
 
user1646075
@Ell looks like a poor-mans Rosetta Code.
 
user3010322
@Borgleader Wow, that fucking output function.
 
user3010322
Holy fucking shit.
 
@ThePhD made me literally lol xD
 
2:10 PM
@Borgleader particular timepoint?
 
god I need to download old code for a project via fucking FTP and it disconnects every 10 seconds
 
manually disconnect every 9 seconds and teach that fucker who's the boss
 
Ell
I was thinking of going to cppcon next year then I saw it costs $695 :P
 
@CatPlusPlus o_0
how... how can shit be so shit?
 
@Ell Did you consider travel costs ?
 
Ell
2:18 PM
@StackedCrooked Nope
but just the ticket price puts me off enough :P
 
Conferences are always expensive like that.
 
Ell
I'll just go to the next standard meeting :L
 
@sehe 2:25
 
@thecoshman It's also unencrypted
But super seeekret
 
@Ell joining the standards working group costs $2500 last I heard
 
2:21 PM
@CatPlusPlus well why would you encrypt it, that just makes it slower to read.
 
Ell
@Mgetz I wouldn't join the group, just go to the meeting
I thought that was free, or minimal costs just to hold the event
 
@Ell don't know the protocols on that... the meetings may not be open to the public
 
@puppy went
 
Ell
I thought the point of it being an open standard was that they are
 
'open' can mean many things.
 
user3010322
2:26 PM
I wish std::unique_ptr<T[]> had a size on it.
 
the word is, most fittingly, open to interpretation.
@ThePhD ... wtf?
 
user3010322
What? It's meant to be an array and it uses delete[]
 
user3010322
It'd be nice if I could give it a size and it'd call the new for me.
 
user3010322
But it's too late now. :(
 
Ell
wat
how about std::unique_ptr<std::array<T, N>>?
 
user3010322
2:27 PM
Because that's a compile-time size.
 
user3010322
This is a run-time size.
 
user3010322
unique_ptr<T[]> is sized. I feel like it should keep that size on itself.
 
what on earth are you doing
unique_ptr is the size it is, regardless of what it is pointing too...
 
Ell
how about a std::vector?
unique_ptr<std::vector<T>> has size :P
 
0
A: Error in C simple program

HuStmpHrrrthat's because nobody accepts '\n'. call scanf like this scanf("%c%*c", &sen). %*c means you want to omit one character, which is '\n'. btw, void main() is allowed. main function is not the real entry point of executable, so it's ok to do that. but it seems not everybody likes it.

 
2:29 PM
or do you mean you get the number of elements that the array has that the unique_ptr is pointing to?
 
> btw, void main() is allowed. main function is not the real entry point of executable
what does he mean by that?
 
@AlexM. AFAIK, that he is confused.
 
@ThePhD that's why we have vector
why do you need unique_ptr for that?
 
user3010322
The last time I used std::vector to just keep track of the size, I got dogpiled on. ._.
 
user3010322
And was told to keep std::unique_ptr
 
Ell
2:31 PM
wut
a free store allocated T[] is the perfect candidate for std::vector<T> :S
 
sigh... go back to your root problem you are trying solve.
 
Ell
@ThePhD by who?
 
@Ell How bout std::array<std::unique_ptr<T>, N>?
 
@ThePhD what are you trying to do?
 
user3010322
I'm not doing anything
 
user3010322
2:32 PM
It was a thought.
 
You did!
 
ok then....
 
@ThePhD good, problem solved :D
 
Ell
@StackedCrooked how about unique_ptr::std<T>::N>::array::std<
 
@ThePhD If T is trivially copyable then you store the size in the first element :)
GCC's std::string is implemented like that
 
Ell
2:34 PM
how about std::tuple<size_t, std::unique_ptr<T[]>>?
 
Now, don't be reasonable all of a sudden.
 
how about you stop throwing random suggestions at him and he explains what his problem actually is?
 
vector is not cool enough
unique_ptr is new kid in town
And vector is like 24 bytes man.
 
Ell
how about std::unique_vector<T>?
 
You can also use a tagged pointer. GNU only uses 48-bits of the 64-bit pointer. You can use the remaining 16 bit as a length field.
 
Ell
2:37 PM
@StackedCrooked lol this is so hacky
I like it
 
huh... so Germans can't differentiate between a living room and a lounge?
 
@StackedCrooked smells like UB
 
@Ell Folly and boost both make use of it.
 
Ell
@Abyx I guess it's not UB if it's documented by the compiler?
 
@Ell not portable then
 
@Ell no that's still UB from a standards perspective, it just happens to be that the compiler documents what it does
 
Ell
@Mgetz From the standards perspective yes. But it's defined behaviour by the compiler
 
@Abyx They use uintptr_t. I think this allows them to bypass the UB issue.
 
@StackedCrooked so hacky
@Ell that's still UB.
 
2:41 PM
@StackedCrooked and then an address sanitizer will try to use those bits
or some custom malloc implementation
 
Ell
@thecoshman why?
it's well defined by the compiler
 
@thecoshman IIRC UB means "no requirements for the compiler". So if the compiler manual allows it then that would effectively override the UB.
 
I have to ask an admin in the developer group to add this fucking iphone to the development device list so I can run shit on it
what the fucking fuck apple
I can't believe how much work you have to do to finally run something on a device
 
it's still UB from the standards point of view. A compiler can do what it wants and still claim to be C++.
 
Ell
> From the standards perspective yes.
 
2:49 PM
@thecoshman I claim to be C++.
 
@StackedCrooked ew, why?
 
Ell
2:59 PM
Hmm. What is the inverse of division?
or rather, what are the inverses of division?
 
like, the inverse of a / b?
 
multiplication?
 
for a function f that does division, f^-1?
 
Ell
Yeah
 
@Borgleader omg - why?!?! there's so many ways to do that better
 
Ell
3:02 PM
Let's say f(a, b) = a/b
 
user3010322
@sehe I know, right?
 
Ell
What are the inverses of f?
 
user3010322
Even in C, that's horrific.
 
Ell
I was thinking its just a*b
But division is not commutative so f is a bad definition of division
Hmm
 
wut
 
3:03 PM
f(x) = 2x + 1
y = 2x + 1
x = 2y + 1
x - 1 = 2y
y = (x - 1)/2
that's how you find inverses
(x-1)/2 is the inverse of 2x + 1
 
I am a shitty event organizer ... for a long event, involves long driving, multiple meals and a small-medium sized group
 
@chmod711telkitty most of us are
 
hopefully I will improve
 
you won't
 
@Ell for functions with two variables it's probably harder to work
 
3:06 PM
not everything can be fixed with training
 
Ell
@AlexM. my thoughts were, exponentiation has two inverses
 
experience != training
 
the domain of the variable that says by what you divide must exclude 0 for example
where division is not defined
 
Ell
the inverse of x^2 is sqrt(x)
and also 2log x
 
@chmod711telkitty you will always experience failures. If it's not your thing
 
3:07 PM
@Ell have you read this?
1
Q: How do we find the inverse of a function with $2$ variables?

Gladstone Asder$$f(m,n) = (2m+n, m+2n)$$ What do we have to do to find the inverse of this function? I don't even know where to begin.

 
Ell
@AlexM. ahh thank you
 
I used to organize a lot of lunch gatherings for uni friends
they were okay & missed by many because I don't organize them any more
 
> I dont understand the answer, all you have shown is the inverse f(u,v) but the question is asking for the inverse of f(m,n).
5
lol
 
@Abyx I apparently rock at it. #Unconferenc2014
 
@thecoshman well you're not the kitty
 
3:12 PM
no, I'm not suckage.
 
Ell
are a/b and b/a considered different functions in the way that a*b and b*a wouldn't be? ie are there functions left quotient and right quotient versus product?
 
There’s no name. It’s customary to write out the function of interest to avoid any ambiguity, e.g. f(b) = a / b (you could use f with subscript a, too).
 
@Ell I think a * b != b * a as functions even if * is commutative
 
Ell
it's the second line on this answer that has be questioning the inverse of division: math.stackexchange.com/a/956883/6451
 
a function f is equal to a function g if domain(f) == domain(g) and for any X in domain, f(X) == g(X)
 
Ell
3:20 PM
so a*b does == b*a
 
can you even get the inverse of a function f : R^2 -> R
like, you would have to get f^-1 : R -> R^2
I tried this now
 
;( why does this graph have linear scale... marking every 5... but non regular spacing of the markings.
 
@thecoshman Hand drawn?
 
f : R^2 -> R
f(x, y) = x / y, y != 0
          0, otherwise
@Ell this is your function I think
 
@JerryCoffin Jira generated
 
3:25 PM
your inverse would have to take a single parameter from R
and output a value in R^2
i.e. a pair (a, b) w/ a, b from R
is this possible?
 
Ell
div: a, b -> a / b
 
I don't know enough math to say for sure
you should ask on mathoverflow tbh
 
Ell
div: a -> b -> a/b or div b: a -> b -> b/a
I only ever studied single variable functions at school. I guess you have to curry to get multiple variable ones?
 
same program, same input, run on two different machines -> output completely different
the fuck?
 
@Ell I don't understand your approach there
 
Ell
3:28 PM
div is a function which maps the input a to the output b
 
one sec
 
Ell
meh, idk
 
@sehe i have absolutely no clue -.-;
 
@TonyTheLion you are not seeing the hidden but clearly there input, the machines themselves.
 
yea I'm seeing it, but the difference is scary
one is running win 7 the other windows server 2003
 
3:31 PM
@AlexM. Yes. In our case though we can’t do that, since e.g. both 4 / 2 and 8 / 4 map to 2, so the would-be inverse is not a function. You can have R -> P(R²) where you map 2 to something like { (x, y) where x / y == 2 }, which is principled but not an inverse.
 
I tried partial application
where f(a) would return g(q) = a / q
but that's essentially the inverse of f(a, b) for a particular value of a
 
E.g. f(x) = (x, x) admits g(x, x) = x as an inverse of sorts, although there is a question of partiality.
 
so for as many values a can have, you have different inverses (?)
 
Ell
@AlexM. I don't think so
because multiplication is commutative, and there is only one inverse no matter how many inputs
 
Ell
3:33 PM
a*b*c*d = c*a*d*b = b*c*d*a = etc...
 
@LucDanton I think I get it
@Ell I don't think that's true
f(a, b) = a * b is defined on R^2 with values in R
your inverse has to be defined on R with values in R^2
so from the result of a * b you'd have to find a and b
it's the same issue with division
suppose you have f(2, 3) = 6
values for the pair (a, b) obtained by the inverse can be:
(2, 3), (3, 2), (-2, -3), (-3, -2)
 
@Ell multiplication on scalars is commutative*
 
fuck me, I never did so much math in my life
Lounge<Math>
 
@TonyTheLion potential a big difference.
@LightnessRacesinOrbit very tasty slow roasted.
 
Ell
@AlexM. hm oh yeah.
 
3:37 PM
Commutativity certainly has nothing to do with there only being one inverse, though
 
Ell
is division a function even?
 
it's a composition law :D
 
Ell
@LightnessRacesinOrbit yes
 
or so we call it in Romania
 
Ell
@LightnessRacesinOrbit I realise this now :/
 
3:38 PM
it has to do with groups
 
You're thinking about injectivity
 
Ell
I have to work now
I'll read later :P
 
actually not even that since injectivity only guarantees a unique one-way mapping
a function for which your property holds is called invertible
 
it has to be bijective, I'm sure
> Stated in concise mathematical notation, a function f: X → Y is bijective if and only if it satisfies the condition
for every y in Y there is a unique x in X with y = f(x).
what if
nah, nvm
 
yep
an invertible function is bijective
point is, none of the "famous" properties (i.e. associativity/commutativity/blah blah) cover this rule
 
3:44 PM
I wanted to try writing down a / b as the composition of two functions f and g
 
inb4 "never heard of that one"
 
(f o g)^-1
 
@AlexM. you can
 
is something that can be found
and is equal to (f^-1) o (g^-1)
 
@thecoshman Oh, Jira. Well, that explains just about anything odd, strange or weird.
 
3:45 PM
@LightnessRacesinOrbit I did not manage to find a way
f o g (x) = f(g(x))
so there's no way to input something from R^2 in there
 
well for a start you need two arguments
f(a,b)=a/b; g(a,b)=(a,b) if your notation allows it
#trollol
 
then you would have to find the inverse of a function with two arguments anyway
so we're back to where we started
 
@AlexM. (f . g)(1, 2) = f(g(1, 2))?
 
@LucDanton I only had one argument
both were defined on R
 
3:48 PM
What division is that?
 
but really I think the definition of an inverse function does not allow for an f : R^2 -> R, f(x,y) = x/y to have an inverse
@LucDanton I already said "nah, nvm"
lightness thought to make me continue
 
and you fell for it
typical male
 
> Not all functions have an inverse. For this rule to be applicable, each element y ∈ Y must correspond to no more than one x ∈ X; a function f with this property is called one-to-one or an injection. If f and f −1 are functions on X and Y respectively, then both are bijections. The inverse of an injection that is not a bijection is a partial function, that means for some y ∈ Y it is undefined.
so yeah
 
@AlexM. Yes. Bringing up two divisions with the same quotient is proof enough (it’s a counter-example).
 
@AlexM. comma abuse detected :(
 
3:51 PM
because for any x in R there can be more than one pair (a,b) from R^2 to which you can get from the inverse, that means the inverse would not be bijective => not an inverse
this was fascinating lol
 
’For some x…’ is sufficient for a proof.
 
@LucDanton yeah
a counter example is enough
 
now I'm wondering if there's any function f : R^n -> !R^n that has an inverse
there has to be something you can define yourself though
 
@AlexM. Good time to read about Cantor and his work.
 
3:58 PM
Cantor sounds familiar
 

« first day (1448 days earlier)      last day (3490 days later) »