« first day (1040 days earlier)      last day (3916 days later) » 

12:00 PM
One problem with discussing terrorism here is that none of us are experts, (I assume). To find out more, it would be best to talk to actual terrorists or the police/services trying to stop them. The former will probably shoot you, the latter will not discuss operations.
 
@MartinJames So we stick to what we know and can observe.
 
@TonyTheLion ..which is the tip of the zoidberg.
Sorry 'iceberg'.
 
I wonder how many 'terrorists' or murderers I have brushed pass without knowing them being one ...
 
Why not zoidberg?
 
there are so many decent looking perverts, you can never tell
 
12:03 PM
pervert != terrorist
 
@Telkitty猫咪咪: Really? How do you know? :)
 
they both have something going on, but its not the same thing
 
@Telkitty猫咪咪 If you are performing brush passes with terrorists, you may be getting an early-morning knock yourself:)
 
aaand my coffee is cold :(
 
@wilx PM's questions - on TV.
Coffee...
 
user1804599
12:04 PM
wtf D.
 
user1804599
Oh wait. This is cool.
 
@wilx what do you think of her ... and how about her ... do you know who they are?
 
@TonyTheLion do as I do - get a fresh one. #caffeinedrivendevelopment
 
yea, but :effort:
 
@Telkitty猫咪咪 That the first one has jumped out of the screen from the Alien Nation movie
 
12:09 PM
Diet Coke is my coffee.
 
@Telkitty猫咪咪 The second one is pretty hot.
 
Your coffee just adopted the cold. My diet coke was born in it.
 
@TonyTheLion Then you are correct!
 
@Telkitty猫咪咪: Now is your turn to tell me they are both some kind of pervert in the USA law sense.
 
@LightnessRacesinOrbit Yay!
 
12:10 PM
You people still talk to Telkitty? Even I've plonked her by now.
 
@wilx those two are convicted sexual predators
 
@LightnessRacesinOrbit I've had her on/off my plonklist for a long time, now I just leave her unplonked. She seems to be ok most of the time.
 
@LightnessRacesinOrbit don't be ashamed of yourself ... your room was only inactive for 6 consective days >_<
 
@Telkitty猫咪咪 Which ones from the list are the two from your links?
 
12:12 PM
the top 2
 
@Telkitty猫咪咪 I find it sad that the USA law prosecutes them for having sex with 17 year old boys, assuming it was consensual.
 
Debra Lafave & Pamela Rogers Turner
 
There you go, done. Fresh coffee! On the down side, I noted from the kitchen that our dog has exploded all over the lawn. He really should have learned by now to leave my tabasco and chilli loaded pizza remains alone. Maybe I should call for an anti-terrorist K9 unit.
@LightnessRacesinOrbit Some trolls are funnier than others.
2
 
@TonyTheLion seems you should enhance your strategy to access vital substances
 
How (and why) do implicit casts between different shared_ptr work? For example shared_ptr<B> is impliclty casted to shared_ptr<A> when passed to a function which takes shared_ptr<A>, assuming that B is a subtype of A.
 
12:18 PM
@ArneMertz heh, coffee here is actually pretty terrible
 
What about the implict cast from shared_ptr<A> to shared_ptr<const A>?
 
@TonyTheLion Means you have not invested in the quality of the pure essence of code? ;)
 
@LightnessRacesinOrbit lol, I remember when you kept complaining people were being unfair with her.
 
@ArneMertz true, which is why I'm leaving this job.
 
@Nils There is a conversion constructor, taking any shared_ptr
 
12:20 PM
@Nils There's a templated constructor.
 
ah..
 
Good coffee should be a fundamental right for a developer
4
 
@TonyTheLion What hinders you to get yourself good coffee?
 
Leaving the job just because they don't provide coffee that suits your taste is the wrong decision ;)
 
12:22 PM
You mean this: shared_ptr(shared_ptr const & r); // never throws
Why is the const after the shared_ptr and not before?
 
@Nils No, the next one: template<class Y> shared_ptr(shared_ptr<Y> const & r); // never throws
 
Is that the same as const shared_ptr& r.
 
@Nils const foo& and foo const& are the same thing.
 
oops
 
user1804599
Damn.
 
12:23 PM
ok
I always write const first.
 
@ArneMertz No shops close by. I have good coffee at home, however.
 
Its a matter of preference but there is no syntactic differences
 
Alright, PEM formatted certificates, can the base64 encoded certificate data in the -----BEGIN CERTIFICATE----- block be all on one line or is the wrapping I see in OpenSSL produced ones mandatory?
 
@TonyTheLion Buy a machine?
 
@ArneMertz I'm not really leaving for that.
 
12:25 PM
@R.MartinhoFernandes They were.
 
@TonyTheLion And I didn't thik so ;)
 
Stop talking about coffee.
 
Ah.. and if I pass it to a class with an explicity constructor I get warning C4042: 'a' : has bad storage class.
Humm what?
Wow just realized that I wrote explicit in a function declaration.. that's not allowed byt the standard.. right?
 
user1804599
I have no idea how to parse expressions with right-associative operators.
 
12:30 PM
@Nils Wait what?
@Nils Oh, lol.
 
Wrote: void doSomething(explicit shared_ptr<A> a) {}
Nonsense of course, but it still compiled.
 
It what?
Ugh.
WTF.
 
hehe
 
@Nils What is this, I don't even...
 
I answer your question by referring to the infinite monkey theorem: Everything which compiles will eventually be entered.
 
12:38 PM
It compiles, therefore it must be valid.
 
@Nils Rephrase that: Everything will eventually be entered, and everything which compiles will eventually be checked in.
 
exactly
 
I fixed a problem, but I don't know how. Sigh.
 
welcome to C++
 
Man I am becomming a fanboy of golang, just 50 pages of spec.
If I would read it for half an hour every other morning, I would get this language in my head very quickly.
 
12:42 PM
Hmm, isn't this wrong? coliru.stacked-crooked.com/…
@Xeo? @Lightness? any other language lawyers?
 
Can I file a bug to msdn if something which is not supposed to compile compiles.
 
@Nils Yea, use Connect
 
why is it not supposed to compile?
 
void doSomething(explicit shared_ptr<A> a){}
 
@Nils Ask on SO first or search MSDN. It's probably an extension.
 
12:44 PM
there is compilation error and there is run time error
 
I don't know what the standard says about it, but explicit should only be allowed in front of ctors
a warning
at least with VS2012
 
You know those pictures with your ip, for example?
 
user1804599
Ask on /g/.
 
user1804599
Hmm fish with garlic sauce.
 
Btw did anybody try the experimental modules support in clang?
 
12:52 PM
I tried the experimental concepts lite in GCC, but not the modules in clang.
 
@R.MartinhoFernandes its right, actually. String literals are l-values, and decltype(l-value) gives typeof(l-value)&
§5.1.1,1 and §7.1.6.2,4
 
And what is your impression about concepts lite?
 
@ArneMertz Does it? int a; decltype(a) is int, not int&.
@ArneMertz Ugh, FFS.
Why am I still finding exceptions.
 
because a is an id-expression
The type denoted by decltype(e) is defined as follows:
— if e is an unparenthesized id-expression or an unparenthesized class member access (5.2.5), decltype(e)
is the type of the entity named by e. If there is no such entity, or if e names a set of overloaded functions,
the program is ill-formed;
— otherwise, if e is an xvalue, decltype(e) is T&&, where T is the type of e;
— otherwise, if e is an lvalue, decltype(e) is T&, where T is the type of e;
— otherwise, decltype(e) is the type of e.
 
Yeah, I get that.
 
12:57 PM
I'm struggling to find an lvalue that can be passed to decltype and that is not an id-expression, besides string literals
 
@ArneMertz the result of int& f();
 
@ArneMertz x += y; where x and y are primitives or the vast majority of user-defined types. *p for any pointer type.
 
ok :)
 
user1804599
Damn.
 
user1804599
1:14 PM
Not sure if I should have a keyword named post.
 
No.
Definite no.
 
user1804599
Is there a synonym of pre that is four letters or a synonym of post that is three letters in length? :)
 
Is this Zoidlang v.32?
 
user1804599
lol ja
 
user1804599
I could use enter and leave. They're both five characters so they align nicely.
 
1:17 PM
They're also something that people will want to use as identifiers.
enum keys { ..., enter_, ... } incoming.
 
user1804599
Hmm.
 
user1804599
enter' is an identifier.
 
user1804599
:P
 
Too many damn chan's
 
1:18 PM
Is it ever possible to speed up a recursive function using threads? I highly doubt it would work, but it is too slow as is.
 
user1804599
@R.MartinhoFernandes They can call it "return". Oh wait.
 
@Pawnguy7 I doubt that recursive functions are good candidates. If you had the iterative version and you could do each iteration without depending on other iterations, then it may be worth parallellizing, however, that can be quite hard to analyze.
also depends on what your function is actually doing
 
@Pawnguy7 Maybe.
 
@R.MartinhoFernandes Best answer yet.
 
user1804599
@Pawnguy7 Yes.
 
1:21 PM
Quicksort is an example of an easily parallelisable recursive algorithm.
 
user1804599
> ever
 
Also mergesort.
 
user1804599
Distributed quicksort!
 
Man, I feel very ignorant at times in this chat.
 
8
A: What does this line of C++ code do?

Fabio A. CorreaThe comma is a way to composite statements; that line is equivalent to: d1 = A[i][j]; d0 = d2 + fabs(d1) * 0.01;

I want this answer above the +15 one.
 
With all the knowledge I do have, I realize every day I only have a very small amount
 
Btw, why does that even compile?
 
(No, it's not particularly awesome; feel free to upvote another one further down as well)
 
@R.MartinhoFernandes Oh, I've already seen that shite, (and your comment:).
 
That is currently what it does.
And it is too slow for my liking.
 
1:24 PM
draw enlarged pixels?
use GPU
 
The drawing isn't the issue, it is the calculations.
This took like a third of a second.
 
36 secs ago, by Tony The Lion
use GPU
 
@StackedCrooked Because optional has op< and implicit conversions.
 
Oh. I see. In that case, I don't really know how.
 
2 Across: A garbage-collected OO language, specifically designed for cross-platform malware, (4).
3
 
1:25 PM
@R.MartinhoFernandes Crap.
 
Seriously, implicit conversions are the source of soooooooooooooooooo much crap in C++.
 
user1804599
Wait. This doesn't need to be a language feature.
 
user1804599
I can use decorators instead.
 
My question is more of how to fix it as is, because I wouldn't be surprised if you could optimize it.
 
This caused a subtle bug in code base. I typed a < b and should be typed a < b.get().
 
1:26 PM
Implicit conversions are just fucked up and if you ever design a language don't fucking support them.
4
 
@Pawnguy7 Without code that's hard to tell.
 
@Pawnguy7 what the hell are you calculating that it takes ~333ms for 25x25 "pixels"? :p
 
Apparently you can go std::cout << somefloat < '\n'. I was confused about my results for a moment.
 
@Pawnguy7 Am I crazy or did you create an optical illusion?
 
1:28 PM
@R.MartinhoFernandes what do you see?
 
You need to reboot.
 
If I look at the bright corner and move my mouse from the opposite corner to that one, it seems the shadow area is growing.
 
If I did, it was unintentional.
 
yep, you're crazy
 
I think I broke it by explaining it.
It doesn't work anymore.
 
1:28 PM
@R.MartinhoFernandes I thought it was some clever JS action ;)
 
@R.MartinhoFernandes what happened there? Copy&Paste and then got the accept or what?
 
@R.MartinhoFernandes I think I sort of see what you're getting at.
 
user1804599
@R.MartinhoFernandes Doesn't work for me, although my cursor is black.
 
user1804599
Doesn't work in the opposite direction either.
 
Anyway, I wanted light to... well, wrap around walls, sort of. Basically, at every square, it can move in any direction where there isn't a solid, and its strength decreases by that amount.
 
1:30 PM
@ArneMertz I think claiming copy&paste is not fair as the answers were posted mere seconds apart.
 
@R.MartinhoFernandes Exactly, it happens sometimes that people come up with nearly identical code.
And the answer part should obviously be about the same anyway.
 
@chris In 'Multithreaded', it's normally identically bad.
 
@R.MartinhoFernandes just seen it. Well, the code in the question makes it very likely that anybody would come up with the same answer...
 
Anyway, need more coffee.
 
1:32 PM
As I recall, last time that happened to me, where someone else and I had really close answers off by seconds, we laughed and UVed each other.
 
@MartinJames haha, I wondered for a couple of seconds if it was some sort of game before I realised it was a screenshot.
 
So anyway, it is basically brute force, except it passes a reference to the light list, so if it is lighter in an area, it doesn't go there (because it it is brighter there, it would also be brighter in all adjoining squares).
 
@chris You irradiated each other?
2
 
@MartinJames Yes, that's exactly the word I was going for.
 
@Pawnguy7 give us teh codez
 
1:33 PM
@MartinJames SO is getting way too hostile for my taste.
 
@chris Wow! You had good bandwidth!
 
Its a rep contest more than a Q&A site.
 
@R.MartinhoFernandes There's always me :3 I lack the ability to be hostile.
 
@thecoshman I see.
 
@chris Don't worry - it's easy to learn.
 
1:34 PM
@Pawnguy7 so basically..you're doing an A* to find the length of the path to each pixel?
 
@thecoshman What happened? No Cananananananada for you?
 
@melak47 Not certain, never done pathfinding before.
 
@Pawnguy7 Not hard. Go outside, look at the street. Good, you found a path.
 
@Pawnguy7 how does the light flow into the rest of the "map", anyway? seems like the light source is completely blocked by walls
 
@melak47 In theory, the light source will be at the players location, and they can move. If that is what you mean.
 
1:39 PM
@Pawnguy7 nah, I mean..does light travel through diagonals? because the top left corner is completely walled off
but looking at your code, it seems it does
 
Ah. Yes. I noticed the same thing. I planned to make it not go diagonally when blocked it such a fashion, but I haven't gotten to it yet.
 
TIL that it's not possible to do struct S {template<typename> S(){}}; and pass a template argument to that constructor.
auto s = S::S<int>(); seemed logical enough, but I guess not.
 
@Pawnguy7 how do you currently deal with pixels that could go in multiple directions? just choose one, and the other directions will be taken care of in another pass?
 
I think so.
Well. How do you define another pass?
 
does your thing revisit pixels?
nvm
after the recursive call completes, you continue through your directions
 
1:46 PM
In theory no pixels are ever revisited.
Note it is faster there because it is much smaller.
I had been hoping to have a flicker effect of sorts, by varying the light level of the player by a small amount.
 
I suppose you could shoot off a thread in each travel direction for each pixel
 
But it would cause input lag.
I considered that, but I don't know what would happen with the list.
 
the list?
 
Um, lightmap, sorry.
That reminds me. I should pass the solidmap with const.
 
user1804599
Fück.
 
1:50 PM
you'd probably have to guard your lightmap with a mutex, or even individual pixels
but apart from that, what's the harm? :D
@not-rightfold gööd däy tö yöü töö
 
@Pawnguy7 Are you making a roguelike?
This is sort of hilarious pjmedia.com/instapundit/174562
 
@melak47 Yes. I figured, though, whatever I would gain with threads, I would lose with locking/unlocking. Is that assumption incorrect?
 
@Pawnguy7 really depends on how often the threads will be trying to access the same pixel
 
@R.MartinhoFernandes nothing, hence, no. :(
 
@R.MartinhoFernandes Nope. Not really sure what I am making, to be honest. A while back, I made this:
Back then, I wanted to do it like it is now, but I didn't know how. Never really used recursion.
 
1:54 PM
0
Q: TELNET: Pasting a carriage return into the console

user2146441I want to issue then following requests to a telnet session: telnet www.example.com 80 GET / HTTP/1.1\r\nHost: www.example.com\r\nConnection: close\r\n\r\n Telnet doesn't seem to recognise the '\r\n' as a carriage return and just sends the lot on to the remote host. What should I put in place...

 
Then, in making the screensaver, I used it to flood the lakes, and it kind of clicked.
 
So, I wanted to see if it would work - which, it did, just slowly.
Maybe it can generate mazes of some sort you navigate through, I don't know.
 

« first day (1040 days earlier)      last day (3916 days later) »