« first day (1706 days earlier)      last day (3257 days later) » 

3:00 AM
@CatPlusPlus Fixed. How ever could I have forgotten to end sentences with "nerd", nerd.
 
The best way to post on HN or reddit is to not post on HN or reddit
 
My alts say hi, nerd
I should count them some day
 
I'm going to draw a butt now.
 
Draw me instead.
 
This butt has wings.
 
3:02 AM
Is it buttiful?
 
Yer
 
Is it Limpopo?
 
Its of the Fan-kaka variety
 
what now
 
@Rapptz omg thanks!
Have a gittcoin
Message could be more explicit though
 
3:04 AM
I'm not reinventing reflection :v
 
> Orders must be checked against the limit. If the limit is breached, it should be recorded and retained for 10 years.
lol what the fuck
 
filesystem seemed fun to implement
until char16_t and char32_t came along
 
is char32_t even used anywhere
 
in this proposal
 
In the Real World®
 
3:10 AM
there's char16_t <-> char, char32_t <-> char in linux land and the same thing for windows except <-> wchar_t.
there's also [generic_]u8string which returns a UTF-8 string
conversions everywhere
 
Actually cancel that - we hit an issue with deployment which means we’re saving SQL shenanigans until tomorrow.
 
@Vermillion That's not closures, that's currying.
 
3:31 AM
@buttifulbuttefly meh, one step away
function(x) { return (function(y) {return x + y})}
yay, closures
 
... no ...
std::bind does not introduce a closure
 
Cicada!
 
megasmurf!
 
I have a butterfly as a profile picture too
 
Nooble!
 
3:36 AM
we should flap our collective wings together and share a brief moment of happiness
 
@minitech I request a blue name.
 
butteflies are ephemeral creatures
 
@buttifulbuttefly Sounds good.
 
can my name be red?
 
also I must admit I'm surprised a smurf that comes here only once in a while is able to keep track of my nick changes when even some of the regulars can't
 
3:37 AM
He has magic powers.
I would like some too.
 
You probably have a giant warning tag on you
 
@buttifulbuttefly I had you bookmarked about four years ago for some reason on an old laptop (not mine) that I just found
 
btw, SO should totally introduce a nick-change pass for 5$ or something.
 
Now give me a blue name or perish!
 
you better do what @Nooble says
 
3:38 AM
@minitech that's extremely reassuring!
 
things could get ugly otherwise
 
Mhmm!
 
@buttifulbuttefly You probably did something bad and were on my “suspend when I become a moderator” list.
 
not surprising
 
(Haha. I don’t have a list like that. Really.)
 
3:40 AM
My name isn't blue yet...
Looks like someone's gonna get hurt.
 
@Nooble I can’t make your name blue, but I can kick you. Would that work?
 
@Nooble your dignity
 
closures
 
@VermillionAzure lambdas introduce a closure, std::bind doesn't
 
3:41 AM
@minitech That's tempting...
Sure!
 
@buttifulbuttefly i suppose
 
@minitech well I still am doing bad things and not getting suspended nearly enough for my tastes
 
This project is going to kill me
 
but I'm guessing you can wrap a std::bind to create a closure or no?
 
don't kick innocent baby koalas
 
3:41 AM
@buttifulbuttefly Wow! You have quite the chat history.
@CatPlusPlus Prevent it from doing so
 
Years of work!
 
@nick He wouldn't. He knows the extent of my power.
 
hmmm
I guess so
lambdas seem superior to bind
 
Sadly I've been told there is no global suspension counter so I'll never know my score
@VermillionAzure std::bind is essentially obsolete
@CatPlusPlus go to bread
 
Also SQLAlchemy's count() uses subquery by default
 
3:43 AM
@buttifulbuttefly There's some edge case, if I remember...
 
Why
why
 
@VermillionAzure In C++11 you couldn't move into a lambda but could with bind. C++14 solves this.
 
@buttifulbuttefly so
it IS obsolete...
wow that's sad.
 
@CatPlusPlus Why shouldn’t it?
 
hey all, I'm kinda new to c++ but have been working on some huge number functions for awhile and need to generate a random number between two huge double numbers but when I run `rand() % high_num + low_num` I get:

invalid operands to binary expression ('double' and 'double')
is there a way I can pass type double into the rand() function?
 
@sadmicrowave Don't use rand
 
@buttifulbuttefly which instead?
 
oh nice, I'll read through it, thanks guys
 
Namely you probably want std::default_random_engine with std::std::uniform_real_distribution
 
4:07 AM
> How to Become a Great JavaScript Developer
This question left as an exercise for the reader
 
@buttifulbuttefly using uniform_real_dist and in a recursive loop for n times, my generated number between x,y range ends up being the same every single time...
 
You're not reusing the same engine instance across calls
 
so I need to define my engine before the loop starts?
 
good call boss
 
4:21 AM
ahahahaha if you enable /Za on VS (disable language extensions) then some of the standard headers don't compile anymore
 
4:47 AM
That's mildly horrifying.
 
 
1 hour later…
6:04 AM
Wow, these mangoes are so good!
 
Gonna keep you craving.
:D
 
I still have a bag of dried mangoes I brought back from Philippines :w
 
You get tired of those pretty easily. These fresh mangoes though, I can everyday.
 
6:14 AM
Dried mangoes ... emm
Haven't had them for ages
 
6:29 AM
 
Would you buy a property in which a murder or a suicide has taken place?
 
Ell
as long as it wasn't some kind of ritual
 
@chmod711telkitty As long as the murder is arson or the man who commited suicide have done so by setting fire on his house.
 
6:53 AM
morning boys
 
@chmod711telkitty I wouldn't put that in my choice criteria
For me that's totally irrelevant
 
@MarkGarcia The reason for that might be that nobody cares about notepad
 
morning
 
Good morning.
 
7:03 AM
@TonyTheLion I want to be a cow just for that.
 
why do I always hate the code I write
 
@khajvah because it makes you learn better ways
 
user1804599
Hello.
 
user1804599
 
7:08 AM
wow
PgSQL getting event-based stuff?
 
user1804599
No.
 
user1804599
It already has it.
 
I just got up and I'm tired
 
7:10 AM
go back to bread
 
@rightfold I don't think your applications should rely on database notifications
 
user1804599
Ugh, vacuum cleaner got stuck on a mousetrap.
 
user1804599
code y u no work
 
user1804599
oh race condition ;p
 
user1804599
 
user1804599
it's nice that Publish blocks until all subscribers received the value.
 
7:40 AM
what if SO introduced a timeout before answers be posted?
like 2 minutes?
that would mitigate the fastest gun in the west
 
user1804599
No, it wouldn't.
 
user1804599
Everyone would just wait two minutes before shooting.
 
I mean: you can submit immediately
 
@MarcoA. Nope, it would generate a shitload more answers though
 
but they won't be visible until 2 minutes have elapsed
 
user1804599
7:41 AM
And as a result you will get a lot of duplicate answers posted at the same time.
 
user1804599
And then OP has to choose one of them.
 
@rightfold that might be true
 
user1804599
Since you can't accept multiple answers (god knows why) this is a problem.
 
user1804599
At least now you can choose the one that was posted first. :P
 
e.g.
7
Q: Why C++ is allowing semicolon to be start of line?

Prakash Kumar#include <iostream> using namespace std; int main() { ;;;;int i = 90;;;;; ; ;;;;cout<<"Hello"; return 0; } The above program perfectly compiled and ran successfully. From my understanding ; semicolon operator is telling compiler that "End of statement"; Then why single semicolon(;) is allowed ...

the best answer has been edited after being accepted
and it basically said: "when you insert ; in a C++ program, the compiler generates a 0x90 NOP instruction"
wtf no
nope nope nope
 
7:43 AM
@rightfold (because accepting answers involves a reputation bonus which has to be limited to avoid abuse; also because SO encourages posting a single complete answer, rather than multiple split part of an answer, which is basically 40% of the whole idea behind it)
 
user1804599
You can offer the bonus once per question.
 
user1804599
Then it must add a feature to merge answers and split the rep across the authors.
 
select 1 as x, 2 as y, x * y as z; is not valid SQL syntax :c
 
It's valid SQL syntax alright
 
> The simplest possible statement in C/C++
yikes
 
7:49 AM
@sehe How so?
 
@TonyTheLion as jefffrey noted, it is a delicious copypasta from wikipedia
 
@Jefffrey It adheres to the grammar.
 
sure, link-only answers are frowned upon. But verbatim copypasta answers aren't that better.
 
user1804599
ugh, got a PEBKAC today
 
did you wipe?
 
user1804599
7:51 AM
@Jefffrey syntax is fine.
 
user1804599
You're just referring to names that aren't in scope.
 
user1804599
SQL's grammar is context-free for as far as I know.
 
That answer really ruined my day
I can feel evil running through my veins
 
@sehe I see /cc @rightfold
 
:D
We correct you lest you be talking like an indian developer soon
 
7:58 AM
You can just "simply" have select *, x * y as z from (select 1 as x, 2 as y) as tmp;
 
user1804599
select x, y, x * y as z from (select 1 as x, 2 as y) as t;
 
user1804599
It's horrible.
 
user1804599
SQL should definitely have let.
 
Yeah
 
user1804599
Like LINQ.
 
8:00 AM
What is my_basic_string? We can't answer this if you don't specify that. I can assuming a boost::container::basic_string<char, std::char_traits<char>, boost::interprocess::allocator<boost::interprocess::managed_shared_memory::segme‌​nt_manager> > or similar, but if e.g. char doesn't match, there's gonna be much more conversion logic — sehe 1 min ago
The OP is in over his head. Look at his (deleted) self-answer
And the drivel answers for that matter
 
user1804599
You can do this: WITH xy AS (SELECT 1 AS x, 2 AS y) SELECT x, y, x * y AS z FROM xy;.
 
user1804599
:P More readable IMO.
 
@rightfold Maybe you should just not try to actually program in SQL vOv
That's the simple solution.
 
user1804599
Maybe I should stop unplonking you.
 
lol
Sure, plonk your voice of sanity.
 
8:03 AM
@sehe wow that deleted answer
 
@Griwes Now, there's a nice stretch
 
@sehe admin/password ofc
@rightfold There is
 
user1804599
@Jefffrey do this:
 
user1804599
BEGIN;
    CREATE FUNCTION pg_temp.f(OUT x int, OUT y int, OUT z int) AS $$
        BEGIN
            x := 1;
            y := 2;
            z := x * y;
        END;
    $$ LANGUAGE plpgsql;

    SELECT (pg_temp.f()).*;
COMMIT;
 
user1804599
8:09 AM
pg_temp schema is transaction-local so this is effectively a temporary function.
 
user1804599
Oh, it's connection-local.
 
user1804599
You can rollback though.
 
Wow, deterministic functions can represent tables?
 
user1804599
You can add IMMUTABLE to help the optimiser if the function is pure.
 
But shouldn't this be a procedure?
 
8:12 AM
The content is blocked due to the following condition: The URL you have requested is blocked by Surf Protection. If you think this is wrong, please contact your administrator.
Report: Blocked Category (Social Networking)
 
AFAIK functions must return a value.
 
user1804599
PostgreSQL makes no distinction between functions and procedures.
 
Nice
 
user1804599
It calls all subroutines functions.
 
user1804599
Also this function does return a value.
 
user1804599
8:13 AM
OUT is syntactic sugar for returning a value of type record.
 
Back to work!
 
What is it about
 
Un quidenapingue, dixit l’url.
c’est une histoire drôle
 
Un quidenapingue vous dites ! Voilà qui semble fort divertissant, aussi l'ajoute-je à ma liste des choses que je dois les lires plus tarre
 
STOP BUTCHERING FRENCH
 
8:17 AM
Hey, have to keep French bashing alive and well
Or is it a different thing
 
"que je dois lire plus tard"
 
non ça c'est fait exprès
 
but it's not french ;_;
 
(je suis pas débile non plus !)
 
8:23 AM
@Mr.kbok dayum. hunter2 worked as well. So, now that we know what hash collision exists, can we guess what the hash function is (hint: yes we can)
 
Xeo
return 0;
 
user1804599
int rand() { }
 
@sehe No, but we can create a hash function that has this property
@buttifulbuttefly Bonjour est-ce ici le salon de cé plus plus
 
user1804599
keskusse
 
@Mr.kbok you're absolutely right. I propose template <typename T> int128_t hash(T const& obj) { return 42; }
 
8:27 AM
Come on you can do better
 
@Mr.kbok baaaanjûûûre vouie toutafée ici nous discutaillons de çay plusse plusse et autres langages de scripte, prendez doncques un ticket et faites la queue svp
 
@sehe return 4, please.
@buttifulbuttefly my eyes
 
rip Florian Margarine
OH NO THIS R ACCIDENTALLY SLIPPED
 
@buttifulbuttefly may say supaire sa ou ke sé kil ai le bitogno ki krach lé tiket
 
8:30 AM
mdrrrrrrrr
 
kikoo lol
We did it guys the French overran stackoverflow and @LucDanton is actually internet-napoleon
 
woohoo!
maintenant je peux remettre mon clavier en layout fr
 
StackOverflow sera désormais plus connu sous le sobriquet de PileDébordement
 
Je nous ai compris.
 
applaudissements
 
8:34 AM
one advantage of having french discussion: @BartekBanachewicz can't come in.
no haskell in french!
 
Pas d'asquelle
 
@FlorianMargaine Don't underestimate le Bartek.
 
pas d'aisselle
 
@buttifulbuttefly I've been reading it like that all along
@buttifulbuttefly Moi C non-plus 17
 
Je ne sais plus-plus.
 
8:38 AM
Salon<Cé Non Plus>
@buttifulbuttefly Arrêtez avec vos anglicismes, s'il vous plaît. La grammaire correcte est DébordementDePile.
 
Le Haskelle
 
I like bartek (no homo)
2
 
@Mr.kbok l'orthographe*
 
@buttifulbuttefly [citation nécessaire]
@khajvah It's easier to spell than Hallsek, don't you think
 
8:47 AM
@khajvah Bartek is generally nice, except when he gets into argument mode.
 
more collisions than in an asteroid camp
 
@MarcoA. The goal kind of was to make it non obvious
 
@Mr.kbok Okay. Then I failed.
 
Try harder next time okay thanks
This could be a challenge
Like we'd set up a metric, which is the collision rate for two random strings. The algorithm with the lowest collision rate wins
 
uh-oh
didn't see @MarcoA.'s.
4 is a better number though.
 
8:51 AM
guys ;_;
27 mins ago, by Xeo
return 0;
 
@TonyTheLion did this inspire a rage quit by any chance?
 
@Marco If you have 2 minutes tell me if you see any gross errors / inaccuracies
 
@buttifulbuttefly yes!
 
@thecoshman I don't think so
 
9:07 AM
@TonyTheLion me neither
 
@buttifulbuttefly seems good at a first glance
have a +1
 
nooo! not the +1; now all caches are invalidated
 
@MarcoA. Thanks, I now await the judgement of talonmies and Robert :p
 
@buttifulbuttefly I think talon doesn't work at NVIDIA
not sure
or at least he didn't write it
 
I don't think he does but he's very good at CUDA
 
9:14 AM
@buttifulbuttefly weren't you doing CUDA a while ago?
 
Yeah I was and I'd like to continue doing more but jobs in that field are kinda rare
 
Ven
try out the v2, CUDDLE
 
@buttifulbuttefly it's not exactly a... core technology
 
For the moment...
 
Ven
why are people speaking french here
 
9:18 AM
how very dare you just gloss over that pun
I worked for seconds thinking of that pun!
@Ven because you don't know what English is?
 
Ven
@thecoshman And you're the one saying that?
5
 
user1804599
@Ven omdat ze verrekte mongols zijn.
 
@buttifulbuttefly (he doesn't realise it's the longest [and arguably most boring] troll ever)
 
@Ven awww
 
9:36 AM
@Ven who the bloody hell are you even?
 
Don't take it too hard cosh
 
I just don't recognise him
 
you wouldn't recognize function composition when rubbed in your face either
 
I'd ask what it was too though... what's your point?
 
grabs popcorns again
 
9:43 AM
I haven't had popcorn in a while...
 
@Ven Aparrently, it's an anti-Bartek measure.
 
so um
axis sucks
everyone agrees
 
@MartinJames Voilà une brillante idée... sauf que je ne parle pas la grenouille soit.
 
@Mr.kbok Easy implemented based on SHA-2 see en.wikipedia.org/wiki/SHA-2 /cc @MarcoA. @FlorianMargaine
2
 
9:51 AM
lol
 
> We've got a new version of Spotify ready for you
 
Kudos if you can retrace which implementation I nicked :)
 
god please not again
what did you break this time
 
Spotify is the new Adobe. Complete with crashing flash plugins on their "premium" signup page
3
 
9:52 AM
@BartekBanachewicz time for a new music service then :P
 
@sehe oh wtf bear, you so verbose
 
@MarcoA. That's what you get for cryptographically strong, industry standard hash algorithms
 
@thecoshman there's Deezer but it doesn't have a DT client at all
 
@sehe whoa
 
there's also Wimp but that one has much less music
 
9:53 AM
@BartekBanachewicz DT client?
 
o.O
Oh no you didn't!
 
user1804599
præmature optimisation
 
vOv browser works just fine for me, and so does the ad-block plugins... not that I would dream of using ad-block...
 
user1804599
 
9:56 AM
@sehe if it was industry standard it would be using a single JEE annotation to do all that for you
 
@rightfold that's scandalous. Who rapes at 7 o'clock. That's way too early to be enjoyable, or you're supposed to watch the evening news then
@thecoshman I cannot afford the license for this joke
 
@sehe How did you manage the collision? Not obvious from the code
 
@Mr.kbok :D I'll wait a bit
 
user1804599
@sehe PRAGMATIST: Should be using a 24-hour clock.
 
@sehe just get a, bah fuck the tedious java jokes, they take too long
4
 
9:57 AM
1 hour ago, by Mr. kbok
@MarcoA. The goal kind of was to make it non obvious
@thecoshman Indeed
 
@rightfold 12 hour clocks gives you twice the raping!
 
@sehe Needless to say, you won
 
user1804599
rape fruit
 
so two news I got today
 
@rightfold OCCULTIST: maybe the clock is haunted and it rapes anyone who looks at it at precisely 7 o'clock
 
9:58 AM
the first was an interview decline because of my job history
 
they said that?
 
??
 
the second was an FB message with "you were right all along!" and a link to WebAssembly post
the contrast is so amusing
 
> EVALUATION LICENSE Are you enjoying Confluence? Please consider purchasing it today. - very good job work
 
TIL "we don't need no friggin' former Intel employees"
How does that work
 
9:59 AM
"not fit for long term employment"
 
Too many short contracts
 

« first day (1706 days earlier)      last day (3257 days later) »