« first day (1313 days earlier)      last day (3629 days later) » 

12:00 AM
I'm owning everything in this game because it came bundled with some DLCs which gave me OP items
the power of real world money is huge
 
Hulu keeps giving me viagra ads ._.
 
2AM of course.
 
@Rapptz don't they base those ads off search history?
 
LOL
 
Doubt it.
 
12:02 AM
Wooo scheduler works finally
Now I only have to make API and then coerce Bluetooth stack to work
 
I turn off targeted advertisement anyway. And those are for Google ads.
k well, no more Hulu.
Back to pirating.
 
@Rapptz Why?
 
@Jefffrey Why not?
 
Because they provide ads that might interest you instead of viagra ads.
Unless of course...
 
I use Adblock.
 
12:06 AM
Touchè.
 
@Rapptz adblock doesn't work on Hulu?
 
Apparently.
 
(I don't have access to Hulu in my country so I wouldn't know)
 
It used to.
It used to display a "An ad is being blocked" message but now it just plays an ad.
 
12:26 AM
> They have included ideas such as filling the wreck (of the Titanic) with ping-pong balls, injecting her with 180,000 tons of Vaseline, or using half a million tons of liquid nitrogen to turn her into a giant iceberg that would float back to the surface.
I lol'd at the ping-pong balls bit
 
They should let it lie, gees.
It's a fucking gravesite for goodness's sake.
 
I'd like to be able to explore it somehow
 
Very instructive answer. As an aside, pity that @Cheersandhth.-Alf whose answers are usually insightful apparently had a bad day. — Peter Schneider 48 mins ago
He stirred it up again
 
sites of disasters caused by humans are awesome
like, you see things like these
> A gentleman’s pocket watch in a sterling silver case may have been set to New York time in anticipation of a safe arrival.
and think about how it was about people going on about their lives normally like I'd also do
or maybe it's just me
 
@0x499602D2: Don't abuse the insta-close powers. This is clearly not a "typical" undefined reference problem. — Lightness Races in Orbit 30 secs ago
It begins sigh
 
12:35 AM
"abuse"
 
Glad you can read
let's get this deleted shall we?
mods removed all the comments informing passers-by of its failings
0
Q: C++ IOS extra characters

sedona2222Can anyone please tell me why the following (admittedly useless) code results in a file with ascii 64 in it? #include <ostream> #include <fstream> #include <iomanip> int main() { std::ofstream qFile("test"); qFile << std::ios::left; qFile << std::setw(20); }

wtf
+1: Yes, that's it. Compare std::left with std::ios::leftLightness Races in Orbit 4 mins ago
whoops
 
12:52 AM
@LightnessRacesinOrbit D’you want me to put them back
 
@minitech I think there's definitely value in them, but tbh I don't remember what other shit was in the thread. I'll let you decide whether it's worthwhile, but with this new information that I do think pointing out the problem with the post is useful. Thanks :)
(But, if it can just be deleted, then problem solved.)
@minitech <3
can't wait for Alf to come out the other side of his period
Night kids =)
 
Okay, I think that’s about as far as it can go without leaving awkward spaces
 
@minitech looks good; much appreciated
 
1:16 AM
@FredOverflow Do you use the iOS app for SE? meta.stackexchange.com/q/231958/155739
 
1:53 AM
@LightnessRacesinOrbit it's been several years, how much more will we have to wait?
 
user3010322
Aha
 
user3010322
AHA
 
user3010322
AHAHAHAHAA THE CONVOLUTION IS GETTING PROGRESSIVELY WORSE
 
user3010322
Nice.
 
user3010322
 
user3010322
1:58 AM
Looks like hell in a handbasket.
 
user3010322
Think I'm just going to rewrite the whole thing...
 
scary ... looks like someone is instantly burnt to ashes while using a keyboard
 
 
2 hours later…
4:00 AM
Can't sleep
Terrible
 
user3010322
4:15 AM
Sucks.
 
I ate burger #4 instead
 
user3010322
See?
 
user3010322
Those extra burgers came in handy.
 
user3010322
4:43 AM
Is there a completely generic modulus function that works with double/floats as well as integers?
 
user3010322
I see fmod, but... I need one that works on integers too.
 
Write it yourself.
Easy with SFINAE.
 
@CatPlusPlus Can't fall asleep or can't sleep long enough?
 
user3010322
@Rapptz Yeah, that's what I've decided on.
 
user3010322
Not sure why C++ sl doesn't include it though.
 
user3010322
4:49 AM
C++11 adds an overload to fmod that takes 2 arithmetic types, but it casts the result to double or long double
 
@VáclavZeman Yes
 
@CatPlusPlus Yes which one? :)
 
Ah.
Well, with the first one, you can do a breathing exercise which should help, after few days of trying.
Focus your thoughts only on your breathing. It is hard, your thoughts will wander. But it does help.
 
user3010322
Hm.
 
user3010322
4:57 AM
This is called division. I need sleep.
 
@ThePhD I'm glad I saw this, in real time.
 
user3010322
u.u
 
user3010322
0 -> -1
1 -> 1
 
user3010322
There's a function that does this
 
user3010322
Without any conditionals
 
user3010322
5:04 AM
I swear there is.
 
you mean without?
 
user3010322
I really do need some sleep
 
user3010322
@FilipRoséen-refp Never happens
 
-1 + (2 * value)
 
user3010322
5:05 AM
THAT WAS IT
 
user3010322
I need to make that an actual function or something
 
Christ dude, that's like an algebra I problem.
:<
 
user3010322
Listen
 
user3010322
I'm tired. ;~;
 
rip
 
user3010322
This is what I was doing it for
 
I hope I get mentioned in the credits
 
user3010322
I just want this kernel convolutor
 
user3010322
not to output heaping piles of shit.
 
user3010322
5:25 AM
....
 
user3010322
I just deleted 337 lines.
 
user3010322
All hail abstractions!
 
user3010322
... At least, I'll hail them if this works.
 
Reducing LOC is good.
It's sure sign of progress :)
 
user3010322
auto auto everywhere~
 
5:28 AM
"I just deleted 337 lines. All hail abstractions!" now all we have to do is wait five minutes.. and then we will have a beautiful "FUCK GUYS, IT BRÖKEN"
 
5:39 AM
now now
 
does static string foo = "bar"; double up on memory or is it just like const char * = "bar";
?
I couldn't see 'bar' twice in the exe
only once
 
First one does heap allocation.
The difference is at runtime.
 
user3010322
GCC 4.9 has make_unique, right?
 
@StackedCrooked oh I thought static variables (with a value) were only in the data segment in the exe
 
std::string performs the allocation in it's constructor.
The data member inside std::string will probably be placed in the data segment of the exe.
But that data member is a pointer which points to the actual string on the heap.
 
5:46 AM
@StackedCrooked love you compiler website btw :)
 
Good :P
 
yes silly me it it a class not just a primitive .. forgetting
 
There's gonna be a Sailor Moon anime this summer.
And Sword Art Online II.
New season for Kuroshisuji also.
 
My wife is an hobbyist anime artist I will tell her you do anime when I'm hogging her computer for your website :P!
 
you should get your own computer :)
sharing leads to contention
 
5:53 AM
oh yeah its just the one in lounge so
 
j/k :)
 
:)
 
@sabgenton ambiguous here :)
 
lol
 
Xeo
@StackedCrooked GGO <3
mornin
 
6:01 AM
morning
 
morning guys!
@luffy! Hai! :D
 
Xeo
I haven't watched SAO I, since I read the Novel, but I think I'll watch S2
Because Sinon
 
@Xeo Have you watched log horizon?
 
Xeo
nope
planning to read the Novel, though :P
 
6:04 AM
hehehe, well if you prefer books then go ahead.
Recently, I've been reading "Promise of Blood", so thats pretty neat.
@thecoshman Hows java 8 treatin ya?
 
@GamesBrainiac Are people already using Java 8 in practice?
 
@FredOverflow A company that a friend works at here in my country have already started replacing java 6 with 8, they're skipping 7.
They make healthcare software.
 
6:25 AM
@GamesBrainiac I'll let you know in a couple years when we [work] finally realise upgrading isn't something to put off.
 
@StackedCrooked so im guessing any sort of array initialized with a string literal is resulting in a second copy of the string opposed to const char * which does not copy the string?
None of the guides out there seem to say arrays waste space const char * doesn't
 
6:37 AM
Recently, some exoplanet astronomers have managed to use careful analysis of reflected light to discover Earth during the day.
2
 
mmm; are the cppnow talks watchable somewhere?
 
@ScarletAmaranth Should be uploaded on YT soon.
 
http://stackoverflow.com/a/5078516
ok arrays are always copies duh *noobness exposed*
 
what?
 
xkcd got trolled by google. lol
 
Xeo
6:52 AM
@FredOverflow IIRC a coworker of mine will have talk there
@user2799037: er, I didn't say it's a useless keyword. It's there because it has a use. What I said was that there was no need to add it to the language to begin with; they could have achieved it differently. They could have instead just stated that every function call be evaluated at compile-time if possible (i.e. if the result would be the same as it would be at runtime), making it unnecessary to have a keyword just for that purpose. — Mehrdad 4 mins ago
hahaha
 
user3010322
7:26 AM
So constexpr by default?
 
user3010322
(Until something prevented it?)
 
user1804599
@ScottW ?
 
user1804599
@FredOverflow Coool DConf.
 
user1804599
 
@FredOverflow Why is this pinned?
 
7:35 AM
@rightfold idgi
 
user1804599
> binder
 
@Rapptz why not :) maximum troll informative
 
user1804599
> gives up full control
 
@rightfold really. that all?
oh well. I thought there must be a funny thing hidden
 
@DeadMG: I just noticed LLD now self-hosts on Windows. Perhaps worth another look for your Wide stuff.
 
user1804599
7:37 AM
 
Even without the explanation :|
 
user1804599
@Rapptz so that I would find it. :P
 
user1804599
I like D.
 
user3010322
typedef int* pointer;
typedef const pointer const_pointer; // What is the type of `const pointer` ?
 
user3010322
My thinking says const int*
 
Xeo
7:42 AM
no
 
user1804599
int* const, duh.
 
user3010322
Well, shit then.
 
lol
 
Xeo
T const, where T == int*
 
user3010322
Is there a way to write that so that it's const int* ?
 
user1804599
7:43 AM
typename std::remove_pointer<T>::type const*.
 
user3010322
.... <_>
 
Xeo
typedef int const* const_pointer; :P
 
user3010322
Well then.
 
why do you even want to specify it in terms of pointer?
 
user1804599
using non_pointer = int;
using pointer = non_pointer*;
using const_pointer = non_pointer const*;
 
user3010322
7:43 AM
typedef shenanigans with containers.
 
idgi
@rightfold value_type
 
user3010322
@rightfold std::add_pointer<non_pointer>::type const ?
 
user3010322
Wait, no, that's after the pointer...
 
user1804599
I don't know what std::add_pointer<T>::type does differently than T*.
 
Xeo
Nothing
 
user3010322
7:44 AM
@rightfold std::add_pointer<const non_pointer>::type ?
 
user1804599
Except you can pass it to higher-order metafunctions.
 
Xeo
^
That's basically the reason. And symmetry
 
user3010322
Ah.
 
user3010322
Sticking const on the inside did the trick.
 
user1804599
@ThePhD uh why would you use that horrible syntax?
 
user3010322
7:45 AM
Lovely.
 
If you don’t have Black Widow in your gif arsenal you need to step your game up.
 
user1804599
Just do non_pointer const*.
 
of course. dat twitter convo
 
what are you doing?
I don't understand
 
user3010322
Eh. It's not important. :D
 
user1804599
7:46 AM
Writing bad code.
 
user3010322
The insides of Image2D are currently storing a std::vector plus other information...
 
user3010322
I don't want it to keep a std::vector anymore. I need it to take any kind of buffer...
 
user1804599
 
@ThePhD contiguous?
 
user3010322
Yeah.
 
user3010322
7:49 AM
I already have buffer_container<T, dims = 1>
 
user3010322
Only problem is, it doesn't have a resize function
 
why the hell does one need a buffer container
 
user3010322
It's just storage.
 
just take a range with random access oh lord; don't put crap over it :D
 
guys
I have an idea
it was probably somewhere already
 
user3010322
7:51 AM
Random access isn't good enough.
 
user3010322
It needs to be a buffer.
 
basically code-aware source control
 
user3010322
Yeah, it's been discussed before.
 
I think read-only stuff could be done as a git plugin
 
user1804599
inb4 semantic merge
 
7:51 AM
to parse the repository and present code changes
 
what are your requirements on a "buffer"?
 
user3010322
@ScarletAmaranth contiguous layout in memory.
 
@rightfold that's more complicated, but yeah... I think we should go in that direction
 
If it's non-owning, just use boost::iterator_range<char *>
 
user1804599
@ThePhD Check if said type has a data member that returns a pointer. :v
 
Xav
7:52 AM
hai
 
user3010322
@rightfold I do that...
 
user1804599
Q/A ratio 11/1 watch out. :v
 
user3010322
I've got the buffer_container written already.
 
@rightfold lol
 
mmm; is it possible to write a trait checking that deref addr + n * sizeof(T_of_*addr) is the n-th element?
 
7:53 AM
do you have a script that shows that? :P
@ScarletAmaranth why would you want to ever do that
 
@BartekBanachewicz it's an "array_without_additional_crap" concept :D
 
user1804599
@ScarletAmaranth no.
 
@ScarletAmaranth I think n3884 is probably relevant
 
user1804599
First of all, that expression may be UB.
 
user3010322
Both computations would be exactly the same...
 
7:55 AM
@ecatmur yeah I know that one
 
@ScarletAmaranth what's the problem with std::array again
 
nothing really
 
user1804599
std::array is not a concept.
 
but it's a particular type
well
a particular class template anyway
 
you know sometimes you C++ programmers really may seem like a bunch of basement dwellers
instead of fucking around with templates you should solve problems like the fact that stdlib doesn't have ranges
 
7:58 AM
boost has ranges
 
you have issues Bartek
 
user3010322
Introduce a range concept, and then have to throw it out when a std implementation comes along.
 
@Rapptz of course I do
@ScarletAmaranth boost basically condemned itself to die with this pace of C++11/14 adoption
 
user1804599
 
user1804599
What a moron.
 

« first day (1313 days earlier)      last day (3629 days later) »