« first day (2208 days earlier)      last day (2755 days later) » 

7:00 PM
I assume it's a bug then
so strange
 
Xeo
and only with -std=c++14
something is fucky there
@AlexM. Something is fucked with the cached version on Coliru: coliru.stacked-crooked.com/a/949ee037b40a5dfd
Adding an empty line (thus forcing a new entry instead of the cache) is fine. cc @StackedCrooked
 
oooh TIL
though it's strange
because I did the failing version first
then added << a << b in the same file, it worked
then went back to old and it did not work anymore
 
Xeo
caching
 
I assume it caches by content though
 
Xeo
coliru caches by content + commandline
 
7:03 PM
so it sees the content is the same and reloads that
 
Xeo
ye
 
yea makes sense
 
nwp
I got so used to screen tearing that it looks weird now that it is gone.
 
I like the comment on that question with the performance
 
@nwp How come?
 
7:07 PM
You can't imagine how powerful are compiler today. — Stargateur 13 hours ago
lol
 
Ven
Do you want to build a compiler~? You don't want to build a compiler.~
 
you cannot handle
THE POWER
 
nwp
@wilx How come what?
I'm not even sure anymore if it is actually gone
 
@nwp The tearing, how come it stopped?
 
nwp
@wilx using the nvidia card instead of the intel chip
 
7:08 PM
@AlexM. 178 in 12 hours. That thing's probably on track for 500 in a month.
Been a while since I've seen any worthy SO question (let alone ) go viral like that.
 
nwp
Sometimes it is there, sometimes it is gone. Oh well, the price for using linux.
 
Morning.
 
Ell
Hi
 
Not working 4 days in a row was cool. I should do that more often.
 
@Morwenn Don’t you have like regular vacation?
Especially in France.
 
7:15 PM
Nope.
 
@Morwenn O_O
 
I have at least 25 days of vacation a year, but I decide when those are.
 
No 20 days of vacation mandated by law and 5 extra from employer?
 
I don't know.
 
@Morwenn Oh dude, you should know your rights and stuff.
 
7:18 PM
Also I've actually more than 25 since I work more than the required 7 hours a day, so I accumulate extra hours, and I can either sell them at a good price or use them to take vacation.
@wilx I'll know them when I actually need to know them.
Until then it's pretty much been « Hey, let's take a day! » and I always had enough days left to take.
 
Ven
I wish I accumulated extra hours.
But as a co-op student I'm "not allowed" to work extra
 
I accumulate half an hour a day. That's not much, but it's better than nothing.
 
Ven
I work at least an hour extra, every single work day. Usually two.
 
I don't
if I HAVE to
I pick an arbitrary friday
and leave earlier
if it's paid OT then I'm ok
 
@Ven Paid?
 
Ven
7:31 PM
I'm not legally allowed to work OT so it can't possibly be paid ;-)
 
yep OT here is illegal too
 
@Ven Dude. Why are you doing it?
 
especially working weekends
if there's a checkup by the authorities and they find out that your company does it
you're in deep trouble
I assume companies that do it pay off the authorities
I've seen both companies that "recommend" working weekends and companies that don't want to hear about it
or allow it but remotely
 
I could work extra hours if I were working on my own because I would know it had benefits. But working for corporations extra hours unpaid is IMHO stupid.
 
generally though
I really REALLY avoid doing OT
I already work 8 hours/day to survive
it's a huge chunk of my life I give in exchange for material goods
I don't want to give even more
 
7:34 PM
@wilx I guess that you can be coerced into doing it, even though I mostly agree with your statement.
 
Xeo
24
A: Achieve same random number sequence on different OS with same seed

NathanOliverYes there is, but you need a different or to put it exactly, the same PRNG on each platform. std::default_random_engine engine is a implementation defined PRNG. That means you may not get the same PRNG on every platform. If you do not have the same one then your chances of getting the same seq...

 
putting a price no matter what it is on time (which you never get back btw) is a bit...
 
Xeo
It really is a shame that the distribution types are not required to produce the same output across implementations.
 
yes, it is
 
@Morwenn I? Hardly. The Czech labour law is fairly protective and I believe I have to consent to extra hours in my ordinary job, unlike people like Police of Firefighters.
 
7:35 PM
I guess this means you got to use Boost.Random instead
 
@wilx It was a general « you », not a personal one.
 
@Morwenn Oh.
 
there's sth weird about the politics in the US
I heard from my colleagues about working there
where if you're asked to do OT and refuse you can get fired and have no way to fight it
or sth
but it was not specific and never cared to research
@Mysticial can provide more insight I think
 
@wilx I guess some companies manage to play on the fact that you should have done the job faster and succeed into making you feel guilty that you couldn't be better at the task, so you work a bit overtime and don't want to ak extra money for it because you feel a bit guilty at first. Not that it's always conscious, be it from your point of view or that of the company.
 
not sure how much OT he had to do at Google
 
7:38 PM
@Morwenn I guess some people can fall for that.
 
Xeo
@AlexM. "at will employment" would be the keyword to search for
 
why are college books all so expensive lmao
some of them are expensive and then some are comically overpriced
what student can afford all these it makes no sense
 
Xeo
cr1tikal has a good segment on college book prices in the US
 
@wilx Also, when people start falling for that, companies might want to keep employees that are willing to silently do unpaid overtime over employees who don't.
I mean, it's more subtle than legal or not.
 
@Xeo TIL
 
7:40 PM
I remember a story about EA, I think it was. Where people/programmers were basically forced to work 10-12 hours a day.
 
there's a story about Rockstar
 
where the wives of the developers went to the company to complain
about the OT
 
@AlexM. "at will" means either side can terminate for any reason whatsoever. But there are court precedences that set limits to protect the employee. For example, if you get terminated just before your bonus payout without any obvious wrongdoing, you're gonna have a very decent chance of recovering part of that + punitive damages in court.
 
in TeX, LaTeX and Friends on The Stack Exchange Network Chat, 49 mins ago, by Canageek
@DavidCarlisle If I ever write a computer virus it will be a very sneaky one that will sit in memory and convert all Imperial measurements to metric and refuse to let you change them back.
 
7:44 PM
So in a lot of terminations, the company gives the employee a severance package under the condition that the employee signs away some rights such as the right to sue.
For the US at least. I have no idea about other jurisdictions.
 
Xeo
we don't have BS like that in Germany, AFAIK
 
here you just notify and get notified 20 days in advance
 
Xeo
depends on the company here
 
@Mysticial Can you even legally waive that?
 
Xeo
for my current one, it's 3 months on both sides.
 
7:46 PM
@wilx yes
 
@wilx I can legally wave the company bye bye
ba dum
TSCH
 
:)
 
@wilx I was terminated in December and while they were promising a bonus in January. I can't give the details since it's "confidential", but they did give me a severance to "make up" for it under the condition that I sign a waiver.
For a while I wondered why the company (or companies in general) would do that. Then I found out about the court precedences where the employer tried to "screw over" the employee. And that reputation is a big deal. If you terminate someone in a manner that the person deems it unjust, it can easily lead to extremely bad PR - which, depending on the nature of the company, can be very damaging.
 
Ven
How can I print like %es:(%rdi) in lldb... :(
 
DRY is not free. You pay with a deeper abstraction stack and a higher price for changing individual cases later. I love boring code now.
the entire chain of tweets is worth reading
(there's a chain)
you don't really see how much it hurts until you work in a codebase where everyone follows it like The Law and then even minor things require large changes
 
7:55 PM
These sorts of things are one of the many economic things that separate Democrats from Republicans with the whole "bigger vs. smaller" government. The business owners tend to lean Republican since without the law, they can do whatever they want. Working-class people lean Democratic because they impose such laws to help protect the individual at the cost of adding friction to running a business.
 
the cost of changes in that context can get huge because it invalidates entire Ideas, not just plain chunks of code in particular cases
if you have one Idea that covers N cases and suddenly it doesn't work anymore, you have to come up with something new otherwise the code becomes misleading and hard to understand
 
Ven
I googled for repe and I found a youtube chain "repe sex" - WTF.
 
gret
 
another thing that really annoys me is people who are always eager to fragment their code at the quickest occasion
 
the Internet is WTF I'd suggest
 
7:57 PM
function now has 20 lines instead of 10? better extract a method
if a chunk of code is only used in one place
 
@AlexM. Also. No notice for me. My manager came to my desk saying he wanted to speak to me. Some 20 minutes later, I was in the elevator and out the door.
 
it's goddamn easier to read it if you put a new line before it in the same method than in a separate method
 
Xeo
@AlexM. I do that all the time.
 
because I don't have to navigate and wonder why the hell you pollute a scope with things it does not use
@Mysticial LOL
that sounds harsh
 
The reasoning behind that is that people tend to lose it when they get fired. So they might do into the office and wreck things.
 
7:59 PM
sounds impractical
every teammember has things that only they know
 
Ven
I think I understand the segfault. repe cmpsb will keep comparing so long they're equal. So if both strings are equal, the nulbytes at the end will be as well, and thus BOOM
 
So involuntary terminations in the US usually are without notice. They kick you out of the office and pull your access immediately.
The "notice period" is usually just keeping you on payroll for some time. But you aren't physically working anymore.
 
@Mysticial I experienced the same. I was asked to come for a meeting with my boss and was escorted out of the building 15-20 min later. During the meeting the IT guy was deleting all my accounts.
 
@StackedCrooked Oh. Sorry to hear that. When was this?
 
why do they escort you tho lol
 
8:02 PM
That was back in 2009.
 
jesus it sounds like you're going to jail
 
I loved that job though.
 
@AlexM. So you don't wreck the place.
 
I just give my access card and sign a few papers and then leave on my own
 
@AlexM. It is the US of A. People tend to shoot people for smaller things. :)
 
8:03 PM
everyone does this (the card and papers)
I will also treat my team to donuts tomorrow :\
I can't do that if I get escorted
 
@AlexM. Ever heard of going postal?
 
@Mysticial I can imagine the average after-firing scene in the US is like this lol
 
@AlexM. Haha.
 
Ven
So I've been trying to use assembly-related words to try and pique the interest of Mysticial but it hasn't worked out much
 
are you hitting on Mysticial by chance?
 
Xeo
8:06 PM
Hint: He's not a hot animu babe
Whatever his avatar may suggest.
 
he def seems to be material for intelligent offspring tho
@Mysticial pretty sure that question will get to 500 in way less than a month
it's already at 200
I'd say... one week tops
*answer
 
@AlexM. It slows down exponentially after the initial wave.
 
I can believe that but...
it has that catchy first line
no way you don't get caught by it when browsing
that on its own will cause upvotes
 
My 0 vs. 0.1f answer hit 200 after about 12 hours. It barely crossed 500 at the end of the month - after both Reddit and HN got on it.
 
I'll keep an eye on it and go on with my claim based on absolutely 0 XP and only intuition :D
> If you think a 64-bit DIV instruction is a good way to divide by two, then no wonder the compiler's asm output beat your hand-written code
that's such a diplomatic "git gud nub"
 
8:16 PM
@AlexM. This one got to 200 without any help. If it does get on reddit and/or HN, I see the potential for it to go 1000+.
 
My #VAR answer got < 5 votes in the first week and now has 59 votes.
Ok, it's still far from 200 .____.
One day.
 
Ven
@Xeo no I'm just looking for some x86 help really
 
@Morwenn The dynamics vary heavily depending on the type of question and the what kind of attention it happens to get.
 
I'm not surprised :)
 
The whole topic of Type A vs. Type B massively upvoted posts comes in.
32
A: How do some questions get so many votes?

MysticialThe vast majority of the popular questions on Stack Overflow (and the entire network) generally fall into one (or both) of two categories: "Hot" questions, that are linked on Reddit or Hacker News. "Extremely useful" questions, that are the target of search engine hits. In your example, it is...

 
8:28 PM
Two-line answer, mine was clearly a Type B.
 
I got myself an SSD for my laptop yay
no more 5400rpm sadness
(the hdd is also malfunctioning at times)
I don't use my laptop often but this should give it a new breath of life when needed
the rest of the components still do their job
after some 6 years
it's this CPU
 
user406009
How large of an SSD though?
 
user406009
I recently switched from a HDD to SSD and the main thing I miss is being able to store terabytes of junk.
 
large enough for me
 
8:35 PM
@AlexM. For a second, I thought you were talking about pizza.
 
no the SSD
 
> An often heard example of the harmonic seventh chord is the last word of the modern addition to the song "Happy Birthday to You", with the lyrics, "and many more!" The harmony on the word "more" is typically sung as a harmonic seventh chord.
TIL
 
I'd upgrade the RAM but at this point it's so old
just buying a new laptop feels like a better investment
the price of DDR2 notebook RAM is thru the roof
 
user406009
Eh, RAM's usually a not very useful upgrade in my experience. Once you hit 4 GB you sorta hit the useful limit.
 
user406009
I find that the best "upgrade" for a laptop (if you don't have a desktop) is a decent external monitor and keyboard.
 
8:42 PM
2 x 4GB here == 300 usd
low end laptop that is better than mine already == 350 usd
 
@Lalaland I think you're missing a couple zeros off of that.
 
nah the 4GB makes my laptop be unusable in a few contexts
 
40GB is the minimum usable. 400GB is the useful limit until the next version of iTunes.
 
e.g. running Gazebo for robot simulations
 
Ell
@Lalaland IMO a good ssd makes a world of difference
 
8:43 PM
or running Cartographer
 
Ell
I think 8GiB is the limit of useful RAM for me
 
I'd be comfy with 16 atm
I have 8 on my desktop
also I remember the last time I searched for laptops with SSDs built in
it was only a thing for high end laptops
now even the very low end laptops have a 128gb ssd
SSDs at all price points
 
8:58 PM
gonna install ubuntu mate on the laptop
I want that lucid lynx look (when I first used linux)
 
Ell
use MATE then I think
 
yea that's what I said I was gonna install :P
3 mins ago, by Alex M.
gonna install ubuntu mate on the laptop
two things I met in linuxland and carried over to windows: x-moto the most fun motorcycle game ever
and sauerbraten not the most fun FPS ever but I spent lots of time instagibbing on dm_venice
that's the stuff
 
Ell
@AlexM. oops sorry
@AlexM. sauer is FPS boiled down absolutely to the raw
 
@AlexM. oh, this looks like free elastomania remake
 
yea it's an elastomania clone with less gummy physics
 
Ell
9:06 PM
If you want a fun simple FPS, play The Lovely Planet :D
 
it looks interesting but it doesn't seem to be played on steam by ppl :<
so I think I'd have trouble finding matches
 
Ell
the lovely planet? it's SP :3
it's so cute <3
I guess it's puzzle/fps
well no. like a muscle memory game
 
9:28 PM
What is the board for asking stupid programming questions? I have a stupid programming question to ask.
 
9:56 PM
> Want to help us?
Please fill out this short survey. It will only take a few minutes and we would really appreciate it. If not, don't worry we still love you.
meeeeh
> As a token of our gratitude (bribe) we're giving away 5 Codewars t-shirts! Just fill out the survey to enter to win.
NOW WE'RE TALKING
 
10:21 PM
I thought we were chatting
 
10:36 PM
tchatteur
 
The Ku Klux Klan makes it official, endorses Donald Trump saying 'Make America Great Again' http://www.dailykos.com/story/2016/11/01/1589543/-The-Ku-Klux-Klan-makes-it-official-endorses-Donald-Trump-saying-Make-America-Great-Again
 
Not unexpected
 
> That compared quantities must have identical dimensions is a necessary
condition for making valid comparisons, but it is not sufficient. A costly
illustration is the 1999 Mars Climate Orbiter (MCO), which crashed into
the surface of Mars rather than slipping into orbit around it.
this example always makes its way into books
we need new catastrophes dammit
someone go carefully introduce a bug in the next mars rover or sth
 
someone already did
Europe lost their latest Mars lander again
 
aaa I've read about that
good point
last I checked HN the cause was speculated
 
10:47 PM
@Puppy We lost Europa a long time ago. I apologize.
 
11:04 PM
@CaptainGiraffe Ouch! :D
 
Thank you for writing so much. It helps me a lot. Thank you so much. — NeoLiu 19 hours ago
That's the most flattering thing about that answer. He wrote that much
 
This headline doe
 
> #if !defined(SOL_LUAJIT) || ((SOL_LUAJIT_VERSION - 020100) <= 0)
> 020100
Octal constants are teh bane of my existence.
"Have a leading zero? HOPE YOU DON'T MIND US CHANGING THE MEANING OF THE REST OF THE NUMBER THEN HUEHUEHUE."
Couldn't just pick 0c or something.
No, they had to make octal constants feel like shell. :I
 
11:20 PM
seems to be consistent with C(++)
 
Consistently terrible. :I
Sometimes I smack digits into places to just have an equal number of digits between constants.
 
Also, it is really weird that bans don't expire. For murder you get 10-15 years, for bad answer on Stack Overflow you get life! That's a bit harsh! — user2758686 49 mins ago
^^ ahahaha
 
How would you guys explain O (N log N) in the simplest of terms?
 
"like quicksort"
 
@AlexM. Uh, quicksort is O(n^2) worst case.
 
11:33 PM
that implies someone will write it so the worst case will occur
randomised pivot yay
...but sure, I guess that analogy isn't perfect
 
I just remembered quicksort is nlogn on average
so if I ever needed an example implementation that's nlogn
I'd look there
make of that what you will
 
I'm finally ending my long career as a professional gamer.
RIP :(
/cc @Puppy
 
I read complexities as
O(n) = goes through the things once
 
Heapsort, mergesort are both O(n log n), IIRC.
 
O(n^2) = goes to the things once for each thing
etc.
if I see a log then I assume there's some divide et impera going on in there
cause the things halve
like binary search
that's about all for explanations
 
11:39 PM
That is no explanation at all.
 
ok, I'll refrain from polluting further
 
nwp
@Borgleader oh noes
I have an autograph from him hanging in my room :(
 
This is pretty cool /cc @Luc
 
@AlexM. O(N) can mean (more or less) the same. E.g., Hoare's Select algorithm.
 
Hey, how would I go around finding the length of a two dimensional array (the arrays that holds the other arrays) ?
 
11:54 PM
@nwp nice
 
so for example: char words[1500][50]
how can I find the length of how many words this array contains?
 
@JerryCoffin TIL
 
I am not interested in the second dimensions length
 
nwp
@tomSurge This is not the place for those sort of questions. Try here.
 
@nwp I wanted to post there, but it is so inactive :/
Thought there would be a straight-forward answer, thats why I asked here
 
nwp
11:57 PM
in C++ Questions and Answers, Aug 30 at 7:36, by milleniumbug
You don't ask a question because room is empty? Well, it's empty because you haven't asked the question!
@tomSurge Trust me, you will not get a useful answer here.
 
So it is not as straight-forward as I thought?
Damn, back to using an incrementing count variable then :/
I have asked there before, waited 3 days and nobody even answered. Its ok
 

« first day (2208 days earlier)      last day (2755 days later) »