« first day (1377 days earlier)      last day (3573 days later) » 

7:00 AM
I don't know the details though.
 
is it = 0?
 
But he's been sighing for over two days now :)
 
I'd solve it the same as (ax + b)
then add c as many times as I want
 
wot
 
(if that's stupid, blame the late hour)
but just like that it would seem to me that the solution will be the (solution of ax + b) + N*c, for any integer N
 
7:02 AM
@StackedCrooked Well.. I guess the first step is rather simple.
which is definining modulo :v
 
What needs to be defined about it?
(probably a stupid question..)
 
there are at least three different ways of doing modulo
that's why sometimes a % -1 gives a positive or negative number
 
I think the C++ rules should be applied?
Anyway, not my problem :)
 
Hmm
 
zneak's way sounds right
 
7:09 AM
there's no real way to solve it
tbh
 
@zneak so x = -b/a?
 
@sehe I'm watching a boost tutorial, hope I will never have to use it :)
 
@StackedCrooked no
 
assuming it's ax+b=0
that would be like, err
 
y intercepts
 
7:10 AM
yeah, -b/a
 
he just wants the first x from the solution space
 
+-n*c or something
 
sounds like -b/a
 
sounds testable
afk beach
 
user1804599
7:16 AM
What a splendid day.
 
it's sunny here, finally
 
It didn't rain here this morning. So yes.
 
it stopped raining this evening
 
the sims had some good music to code on
 
Anyone got SSD on raid?
 
7:29 AM
> Britain just decriminalised online game piracy
The British government has decriminalised online video game, music and movie piracy, scrapping fuller punishment plans after branding them unworkable.

Starting in 2015, persistent file-sharers will be sent four warning letters explaining their actions are illegal, but if the notes are ignored no further action will be taken.
 
And... he edited to something so remote...
 
it feels weird to have a copy constructor but not a destructor
 
=default! If that makes you feel more comfortable.
 
@R.MartinhoFernandes oh no, you can use it for soo much more... like erm... you know... erm...
 
@BenjaminGruenbaum I have got two SSDs on raid
 
user1804599
7:33 AM
I want a copy destructor.
 
user1804599
And a move destructor.
 
I want a deconstructor.
 
user1804599
I want a conductor.
 
@fritzone worth it?
 
I want to invent a drug that prevents people from going retarded from time to time
I wonder if it is possible for people who normally have an IQ of 125+ to occasionally drop their IQ to 25 or below occasionally
 
7:42 AM
@chmod711telkitty without actually killing them, you mean? Because that's been invented already
 
this reminds me
technically anyone could kill you if they wanted
so we should be thankful to each other for being kept alive
 
@chmod711telkitty 25 is very low, maybe 70
 
what the fuck am I thinking about
 
0
Q: Requested Survey for VC++ regarding insert and emplace

Howard HinnantI am doing a survey of how many special member functions get executed during the following member functions of vector: insert emplace push_back emplace_back under various run time conditions. My intent is to publish a paper that will compare these member functions with each other, and on each...

not a real question
 
@BenjaminGruenbaum What are you aiming at, redundancy or speed? I would guess (no experience) that if you can miss the capacity, it is always worth it. Software RAIDs rather than HW RAIDs though.
@BenjaminGruenbaum Maybe you should ask at serverfault.SE?
 
7:45 AM
@VáclavZeman speed, I already have backups.
 
user1804599
Parametric polymorphism is great.
 
It's for my work computer. I want stuff to load faster
 
@jalf err, but if they are dead, wouldn't their IQ drop to zero permenantly?
@BenjaminGruenbaum now that's the detail ... think abstract :x
 
@chmod711telkitty That drug already exists. It's called sex.
 
Xeo
and mornin
 
7:50 AM
First time to see that.
@Puppy Something's really weird in that question.
 
It's an over-achiever
 
@MarkGarcia You mean, apart from the fact where it isn't one.
 
@Puppy Suppose the whole story is removed, and all that is left is ‘how many times should I expect the special members of a vector value type to be called in a typical implementation?’, would that work?
 
nope
 
8:00 AM
@Puppy errr.. wth?
I'm not sure how to make a copy constructor for my class.
 
the only possible answer would be "Measure it on the implementations you care about".
 
Guess that means I shouldn't make one.
 
@Puppy And the consistent downvotes. :P
 
user1804599
This question appears to be off-topic because it is a survey. — rightfold 5 secs ago
 
@MarkGarcia Me.
 
8:01 AM
@Puppy The OP is looking for those measurements, yes.
 
@FredOverflow well, only for you ... sex will fix everything for you ...
 
@LucDanton Then he should spin up some VMs and download some images.
he's just crowdsourcing his job in the guise of an SO question.
 
wtb movable initializer_list
:<
 
Is that a close reason on its own?
 
initializer_list becomes shittier every day for me
 
8:05 AM
@Rapptz That is perhaps the most non-sensical C++11 design decision. (making elements of initializer_list unable to be moved)
 
which I thought wasn't possible considering I already have such low expectations for it
 
user1804599
@Rapptz Why not?
 
@rightfold I store a raw pointer that acts like a reference.
Not sure what to do when it's copied.
 
user1804599
Copy the pointer.
 
copy the value of the pointer directly
 
user1804599
8:07 AM
If it acts like a reference you want to copy the reference.
 
meh
all I wanted was stuff x = { ... }; syntax where the elements are moved
 
I can’t think of or retrieve one of those (presumably good) questions which answers involve the implementation no matter what. In my mind it has already happened that someone asked ‘what happens to my user-defined type in conjunction with this Standard template’ and the answer is ‘the Standard says this, so practically speaking this happens — and here’s an example’.
I think HH’s not-quite-a-question isn’t too far off.
List splice perhaps? That thing with size?
 
fuck you Microsoft and your lame backwards compiler
 
YOU'RE a backwards compiler
 
I'm an uncompiler
 
8:14 AM
Weren’t there questions about the details of std::tuple, too?
14
A: Does type order in std::tuple arguments have any effects?

R. Martinho FernandesThe standard doesn't place any restrictions on the actual layout of the types. The only things the order influences are the results of std::get<N>, std::tuple_element<N, T> and so on. I know that libstdc++ and Visual C++ lay out the types in reverse order of the order given; libc++ lays out the ...

@Puppy Here you go. Implementation details.
 
8:25 AM
Don't just claim "The eh(error_handle) is right", show it! It's essential to the error (and, one might say, it's obviously not right :)) — sehe 7 secs ago
@LucDanton Whoa. Long time no seen! How are you
@MarkGarcia 32 bytes of 28KB
 
auto a = someFunc(); //returns unsigned int
for (auto i = 0; i < a; ++i) //signed/unsigned mismatch
 
@sehe Hiya.
 
why is i not considered unsigned here?
 
use 0u
 
@AlexM. why would it be?
 
8:27 AM
24
A: Can I list-initialize a vector of move-only type?

XeoEdit: Since @Johannes doesn't seem to want to post the best solution as an answer, I'll just do it. #include <iterator> #include <vector> #include <memory> int main(){ using move_only = std::unique_ptr<int>; move_only init[] = { move_only(), move_only(), move_only() }; std::vector<move_only>

=[
 
@sehe Hm. Makes sense, considering how Windows handles units.
 
@jalf it looks to me that in that particular case since i is compared to an unsigned it could default to unsigned
 
the compiler only looks at the expression that initializes the variable when deducing its type. It doesn't look at how it is later on used. You initialize it to 0, which has type int.
 
I know it doesn't have to
it seemed natural to me
yeah that makes sense
@Rapptz yeah that did it
didn't know about that
 
keep in mind it has to offer predictable behavior. It's no good for some compilers to be smart and go "i think an unsigned int would be more suitable here"
 
8:29 AM
I'm wondering if I should keep using 0u or go for unsigned i
 
I use auto practically everywhere nowadays
 
@MarkGarcia also makes sense given average it's throughput rates
 
inb4 signed–unsigned flamefest
 
hopefully not
stupid initializer_list
god damn it
 
0L is a signed long
 
8:32 AM
@AlexM. decltype(a) i
 
haha didn't know about this
 
@AlexM. I like 0u for this kind of thing
@AlexM. you would like Haskell, I guess
In my experience, Haskell does this magic thing; A kind of "pattern matching" when deducing types; I think it boils down to it using constraints from the surrounding context to narrow down sets of possibilities. Of course, with too few constraints, you have to clarify the :: type
 
and I thought C++'s inference must be complicated
 
@sehe It seems that a suffix for std::size_t would become useful. (I don't know if it exists)
 
@MarkGarcia true enough. I don't mind writing size_t too much
 
8:37 AM
@sehe ‘Sets of possibilities’ is down the right alley. The process is called ‘unification’.
 
@AlexM. It's... just more versatile, not necessarily more complicated IYAM. I think C++'s approach is only complicated because it's limited, and works in one direction only. It's hard to "mimic" intuitive deduction that way.
 
I taught that haskell types deduction is dual to C++ concetps
 
can't wait for C++17 and explicit return
 
Q: "Implement using boost" A: implementation using boost OP: "I can't use Boost Phoenix". WAAAT? — sehe 6 secs ago
 
@BenjaminGruenbaum I needed a BIG partition for my /home directory, so from two 250GB ssds I've got a 500 GB raid with 400GB for /home and 100GB for the /. This would have been very difficult without raid. Not considering the initial hassle with the installation (I'm on Ubuntu 14.04), for me it was worth since I have no more problems with space since then
 
8:41 AM
@LukaRahne whatever that means... I think it's orthogonal, for that matter.
 
@sehe :logic:
 
@ParkYoung-Bae It physically hurts
@LukaRahne The fact that concepts add constraints to possibilities, doesn't change anything about the process in which those possibilities are generated
 
@LucDanton Those questions involve people reasoning about the Standard and showing (and reasoning about) an example. They're not just "Run this code on your computer and provide output".
 
I was not talking about the question in its original state.
In-between ‘this question is not a good fit for SO’ and ‘this question is not appropriate for SO’ there is ‘we can edit this to fit SO’. I was wondering if the latter was possible at all (and attempted it in the end).
 
I like how soundcloud keeps the music playing while you're browsing
 
8:50 AM
@fritzone oh, I don't have a space issue, thanks for sharing your experience.
 
and wherever you go and see the song you're playing, the seekbar is updated in real time
I wonder how hard it was to code this
the end result is certainly awesome
 
maybe they keep it in the background
and when you browse other things they hide it
 
something is always playing in the background, see here
 
@LucDanton The revised question is a better fit, but won't yield the results the questioner actually wants.
 
8:54 AM
Well this is about as much effort as I’m willing to put out on SO today :)
 
I started playing the track in the search results, then switched to the track's page, the seekbar was autoupdated on the new page
then went back to the main channel page, and the seekbar autoupdated again
the thing that's always there must be queried on each new page to see if the track playing isn't there
and if it is, it gets updated
 
I think soundcloud is written in C++.
or maybe it's something else
I remember they had repositories on github
definitely thinking of something else
 
Feb 13 at 5:56, by Mark Garcia
> Why not?

> The OkCupid dating site is created with C++. There are probably other examples. (source: http://programmers.stackexchange.com/a/53626/100344)
 
@AlexM. I think they share data between tabs locally; SO does this with notifications too AFAIK
I'll see whether I can find the article I once read
 
WebStorage and sockets are likely.
 
9:08 AM
yeah
 
for streaming?
 
Most of the websites are eventually reflected in HTML, most of the websites ...
so become a html developer now?
 
@StackedCrooked why is the output on Coliru not interleaved with the echoed commands?
 
21 mins ago, by Alex M.
and wherever you go and see the song you're playing, the seekbar is updated in real time
 
If you run more than one, it's hard to tell which output belongs to which.
 
9:13 AM
@R.MartinhoFernandes where?
 
I like emplace
to insert stuff w/o copying
 
Are you referring to stderr and stdout interleaving?
 
g++ -std=c++11 -O2 -Wall -pedantic -pthread main.cpp # first command
./a.out e 7329342 < /Archive2/c9/f3d8d761f626dc/main.cpp # second command
./a.out d "absentment ungreased" < /Archive2/c9/f3d8d761f626dc/main.cpp # third command
absentment ungreased # output from second one
7329342  # output from third one
 
Wait, so you disabled echoing of the commands in order to echo them before anything else?
 
user1804599
9:22 AM
ugh PHP WTF ideone.com/iNl1hF
 
@R.MartinhoFernandes :D was easy maths
 
@sehe I'm missing the point.
I also can't help but notice that the quotes were changed and the redirects lost.
 
I hate passing newly constructed variables between threads
 
@rightfold Seems totally reasonable to me.
 
user1804599
9:26 AM
Why?
 
@rightfold because A is not B
 
user1804599
C::f accepts any B.
 
And any D (class D extends A), too.
I::f doesn't accept Ds, though.
 
^ that
 
user1804599
Ohhhh right.
 
user1804599
9:27 AM
Thanks.
 
Oh wait, I is not a class.
No, you're right.
 
Xeo
Contravariance, no?
 
user1804599
Wait.
 
I still think it's reasonable to require a matching signature, but there's no technical reason not to work.
 
dunno what interface is in php, but in other languages it shouldn't work
 
9:28 AM
@Abyx Why not?
You can't craft a program that does the wrong thing.
 
Xeo
Contravariance makes it a perfectly fine thing to do
 
@Xeo For some reason I assumed C::f would call I::f.
 
Xeo
heh
 
user1804599
I::f is abstract. :P
 
user1804599
I suspect it's a parser limitation of the PHP implementation.
 
9:32 AM
@R.MartinhoFernandes But there's no reason why C::f shouldn't.
 
user1804599
(I'm serious; it wouldn't surprise me at all.)
 
@R.MartinhoFernandes the output with set -x might be considered ugly/un user friendly. IIRC there's a "prettier" debug setting in bashes
 
@R.MartinhoFernandes welp it could backfire with multiple inheritance, probably
 
@R.MartinhoFernandes G::f wants the D
 
@Abyx I dare you.
 
Xeo
9:33 AM
4 mins ago, by Xeo
Contravariance makes it a perfectly fine thing to do
 
@sehe At least it keeps the relations between the commands and the outputs :(
 
Xeo
Oh, wait. inheriting A twice, non-virtually?
 
user1804599
You can only subclass one class in PHP, and many interfaces (which cannot inherit from classes). Trait mixins don't create a subtype relationship.
 
Fuck losing information for prettiness. That's not user-friendly.
 
user1804599
At least they didn't get this one wrong. :P ideone.com/f3YY6E
 
user1804599
9:37 AM
Arguably LSP would apply, since passing the wrong type is a runtime error that could be considered as part of the interface.
 
user1804599
Although I consider that kinda silly.
 
I consider you kinda silly.
 
> why a question that could help programmers should be closed? SO is not just about coding it's about opinions either. – Amirreza 12 hours ago
 
user1804599
> either
 
The Internet at large is not ready for SO.
 
9:43 AM
0
Q: Cut a certain part of an image in android

officebrainI want to cut image part and past same size image into cut area. I want to try using canvas but i am not getting solution. class MyCanvas extends View { Bitmap mImage; Bitmap mFrame; private Paint mPaint; public MyCanvas(Context context) { super(context); mImag...

 
user1804599
@Puppy I consider you harmful.
 
> Cut my photo and past into another photo.

Please help me.
I'm tempted to cut his photo in paint and paste it as an answer
 
user1804599
Paste it in another photo and insert that into your answer. :P
 
@R.MartinhoFernandes just saying. I was happy to just add set -x myself
@AlexM. DO EET
 
I thought disabling echoing was to have just pure output. Apparently not :S
 
9:46 AM
It should be the user's choice, anyway /cc @StackedCrooked
 
user1804599
Slack y u no onebox Wikipedia.
 
0
A: Cut a certain part of an image in android

Alex M.Lucky you, I happen to be an expert in photo cutting! I have cut your photo to size, sir.

 
Computer science spent a decade or more in the 1960s working out how to write compilers in one pass. You won't find any support whatsoever to reversing that. Legend has it that IBM had 36 people on a compiler project that ended up with - guess what - 36 passes? We really don't want to go back there. — EJP 4 hours ago
Did someone miss the memo that single pass compilers are a rarity?
 
user1804599
Rarity Best Pony
 
user1804599
AFAIK Python compiler is single-pass.
 
user1804599
9:53 AM
As is PHP compiler.
 
> German politicians question Russia’s suitability to host 2018 World Cup
“Fifa should think about whether Moscow is an appropriate host if it can’t even guarantee safe airways,” Fuchs told Handelsblatt Online, adding that Germany and France could take over the tournament if needed.
a war is going on
people care about fifa 2018
 
user1804599
Russia will host World Cup.
 
@AlexM. A football war!
 
user1804599
They paid the most money.
 
@rightfold let's hope the next world cup won't actually be
russia vs the us
 
9:54 AM
@AlexM. ahahahahahahahhahaha
lol
 
user1804599
I'm more worried about World Cup in Qatar.
 
user1804599
I wonder if they allow male and female supporters in the same stadium.
 
@rightfold Qatar is nice to tourists in touristic areas if I'm not mistaken...
 
@R.MartinhoFernandes Heck, my assembler is multi-pass.
 
hi guys
 
9:56 AM
@rightfold They allow everything in Qatar as long as you pay.
 
got a simple and general question not related to C++ :-)
 
why is sky blue?
 
@milleniumbug you people always do this? :-)
@milleniumbug its just that i want to create batch file that will run an .msi package.
 
@raforanz Yes. You have now ran out of allotted questions.
 
:-)
@LucDanton then I got the 2nd question :-)
 
9:59 AM
Alright, alright.
 
> Russia's Kremlin stated in a press conference that a Ukrainian Su-25 was seen following flight MH17. The Su-25 has a combat ceiling much lower that of MH17's last recorded altitude, and as a ground attack aircraft it does not have radar systems to intercept other aircraft.
Why can't people even fabricate proper lies?
 
Russia should use more money
 
@R.MartinhoFernandes which lies?
 
the US downed an Iranian passenger plane a long time ago, didn't even apologize
Iran tried to go to the international court of justice
 
No one is listening me :-(
 
10:00 AM
the US paid them $118 million or sth to shut up
and they shut up
 
Xeo
@Abyx That a Su-25 was following the MH17, I guess
 
@AlexM. source?
 
one sec
 
@Xeo welp it was on radars
 
Iran Air Flight 655 was an Iran Air civilian passenger flight from Tehran to Dubai that was shot down by the United States Navy guided missile cruiser USS Vincennes on 3 July 1988. The incident took place in Iranian airspace, over Iran's territorial waters in the Persian Gulf, and on the flight's usual flight path. The aircraft, an Airbus A300 B2-203, was destroyed by SM-2MR surface-to-air missiles fired from the Vincennes. All 290 on board, including 66 children and 16 crew, died. This event ranks seventh among the deadliest disasters in aviation history, tenth if including the 9/11 attacks, which...
 
10:02 AM
@R.MartinhoFernandes oh yawn yawn yawn russia is lying putin is a monster you can't possibly know any of these things stop being a sheep
 
jco
jesus christ what is going on
pls no
 
@AlexM. Thanks. Interesting read.
 
@LightnessRacesinOrbit Wait, I thought Putin was dead in the crash.
 
well yeah, bloody Putin changed flight path of MH17 to lure it into war zone, and then hit it with a missile launched from Kremlin.
and then "Moscow can’t even guarantee safe airways".
above Ukraine, duh
 
10:07 AM
@Abyx But why would he if he was on the plane?
 
no no, on the plane there was just a shallow copy of Putin
man Putin must be the person of the year
Russia now basically points at him
 
@R.MartinhoFernandes anyways, the fact is that all previous days MH17 had a different flight path, it was flying above Ukraine, and was guided by Ukrainian air traffic control.
 
> GOG.com Now Supports Linux! gog.com/news/gogcom_now_supports_linux
 
Is it sensible to target Ubuntu flavours and not Debian-based as a whole?
 
no
those things always bug me
 
10:16 AM
@LucDanton not really. Sure Ubuntu is one of the more well known, but it is still Debian
if you support Debian, you support so much
especially when you consider that to go from supporting just Ubuntu, to Debian is not that much work.
 
Welp, I’ve spent all my morning trying to figure out this library and all I’m getting is Prelude.undefined. Amazing. Time for something else.
 
anyways, screw the plane. Ukrainian army is shelling cities and killing civilians right fucking know. It's more important than past victims and even elephants.
 
did you guys draw these when you were younger?
 
@Rapptz nope
 
nope
 
10:20 AM
you mean, badly-deformed symbols of another nation's currency?
gonna have to roll with nope on that one.
 
interesting
 
user1804599
@Rapptz nope
 
I've asked people all over the world and my first nopes come from here.
Cool.
 
user1804599
Only these:
 
user1804599
 
10:21 AM
@Rapptz we're special
 
Well, apparently kids from all over the world have been drawing these since at least the 1960s.
Not sure why.
 
From my own Internet spelunking this didn’t happen in non-English speaking countries.
 
user1804599
@Rapptz because they were extremely bored during classes.
 
@LucDanton I wasn't from an English speaking country.
In fact, two of the three countries I did schooling in weren't but we all drew that symbol.
 
whenever I was getting bored I always started drawing irregular shapes like this one
 
10:23 AM
Biased samples on my end then :( (aka English speaking Internet)
 
always composed of straight lines
 
@LucDanton I'm from an English-speaking country.
 
That’s nice.
 
user1804599
When I got bored I started playing Doom or Snake on my calculator.
 
Ell
@rapptz I did
 
10:24 AM
wtf even is it
 
iunno
 
Ell
When I was in primary school, everyone used to draw these everywhere when doodling
 
an S.
 
Ell
I always wondered it's origin
 
No one really knows its origins but it's been happening for apparently 50ish years.
 
user1804599
10:24 AM
If you put two of them next to eachother you get SS.
 
@rightfold I wouldn't have figured....
 
@Abyx nothing is more important than elephants
 
@LightnessRacesinOrbit yeah I guess so. And football probably
 
> Microsoft has changed as a company and is becoming more open in the way that we collaborate with others.
wot
 
Ell
Lol
 
10:45 AM
So, we have started using Mercurial at $JOB.
I like the change set phase feature.
 
@Rapptz I smell a troll
 
user1804599
It's the official account.
 
user1804599
typescriptlang.org links to it.
 
Xeo
@Rapptz Some of my class mates did
 
won't know till it's found.
 
good answer
 
Xeo
@TonyTheLion Stuff
 
user1804599
@TonyTheLion fail
 
in other news, I'm melting
 
10:56 AM
@TonyTheLion I just got into my ACed room
 
@TonyTheLion Drip... drip... drip...
 
@TonyTheLion you know maybe I won't fly to berlin next time
OTOH our airspace is still pretty safe, I suppose
 
you hope
 
well there are really no terrorist attacks in Poland
 
its a little bit scary to think about planes just dissappearing
 
10:58 AM
nobody cares about terrorizing Poland
even natural disasters
 
user1804599
Cat does.
 
like the worst natural disaster we have here is cat
okey so changing the topic a bit
 
user1804599
inb4 haskell
 
Is any You Sirs expert in SQL queries?? I have a code quest plz..
 

« first day (1377 days earlier)      last day (3573 days later) »