« first day (1631 days earlier)      last day (3333 days later) » 

user1804599
10:00 PM
Spawning fibers works very well.
 
@sehe btw I used your any example are you okay with that
 
@Cinch of course; if you got it from SO it's automatically CC/SA I think
 
@StackedCrooked At least offhand it seems like @sehe is right--the lambda expression {} doesn't return anything, so it has a void return type (well, if you want to get pedantic, the operator() of its closure type will have a void return type, but whatever).
 
which means your tutorial needs to be CC/SA, I believe
 
10:04 PM
@Jefffrey :(
 
@Blob No
 
Am I left alone doing this snake thing?
 
@sehe really?
 
Is the jam on?
 
Interesting.
 
10:05 PM
is @Mr.kbok participating?
 
@sehe what jam
 
...
He does it again
 
@CatPlusPlus hm? what's the big issue because of which some people put stuff like "My code is free yadda yadda" on their profile?
 
@sehe In theory, yes
 
If you copy a code snippet, the license applies to that code snippet
 
10:05 PM
@AndyProwl o.O
 
That doesn't mean you have to publish the entire thing on that license
 
In practice, I'm afraid nobody else is taking part
 
@AndyProwl There were 2 other people. And Blob said something about doing a snake game.
 
Tutorial using a code snippet is not a derivative work of that snippet
 
could even be fair use, whatever the license?
 
10:06 PM
@JerryCoffin I know. I just meant that it can be implemented to return something to make it work.
 
Oh wait the koala was doing that too
 
@Jefffrey i will try. there are like 10 kids over and they're not letting me get any work done, but i'll try c:
 
You do have to tag the snippet with attribution and you can't change the license of the snippet
 
haven't started yet, though
 
user1804599
What happens when you dynamically load a library (using dlopen) and it defines symbols with the same names as symbols in other libraries you load that way?
 
10:06 PM
@sehe Might go under quoting? Dunno, even for quoting you need attribution so vOv
 
@CatPlusPlus sehe doesn't have a code license on his snippet...
 
@StackedCrooked Certainly if it was something like { return X(); } instead of {}, then yes, you could make that work.
 
SE has a license for all of the content
 
But anyways I think all of us kind of already know our code has been stolen for #homeworks
@CatPlusPlus really?
what kind?
 
Yeah. It was a horrible misunderstanding.
 
10:07 PM
> user contributions licensed under cc by-sa 3.0 with attribution required
> You agree that all Subscriber Content that You contribute to the Network is perpetually and irrevocably licensed to Stack Exchange under the Creative Commons Attribution Share Alike license.
 
@Cinch ^
 
@CatPlusPlus Attribution...
 
"..."?
 
Sigh... okay but I already have a shout out to sehe
 
:)
 
10:09 PM
gods forbid you'd have to credit him for his work
 
I don't that's the problem. It's probably more about "what is (enough) attribution?".
 
But the question is do I need to link to the page, the license or do I need the whole shebang?
 
I usually link to where I got the snippet. Even in my code base, I'll link to the SO answer.
 
user1804599
Time to sleep.
 
user1804599
Bye.
 
10:11 PM
@райтфолд Later.
 
@Cinch It says "attribute". It doesn't say "reproduce these license terms verbatim" etc.
 
You should state the license and you should state the author, linking is common courtesy
 
with "appropriate credit"
which implies the whole shebang
 
how
just FUD mate
 
> If supplied, you must provide the name of the creator and attribution parties, a copyright notice, a license notice, a disclaimer notice, and a link to the material. CC licenses prior to Version 4.0 also require you to provide the title of the material if supplied, and may have other slight differences.
 
10:12 PM
@CatPlusPlus QQ
Alright better do that now
 
(I just say "I found this on SO". Link to it, and be done. Probably not right for a company website, but eh, I don't have it)
 
@sehe I already created a full license.txt for the purpose
It is attributed directly to you and Stack Overflow
> Code under any.hpp is a derivative work of code attributed to user "sehe" of the website

Stack Overflow.
All Stack Overflow user-contributed code is licensed under the Creative Commons

Attribution-ShareAlike 2.5 license, reproduced below:
 
Likely the RightThingTodo (looks-like overkill to me though, IANAL)
 
@AndyProwl ILL MAKE ONE RIGHT NOW
 
@CatPlusPlus YOU ROCK
 
10:19 PM
@AndyProwl Wait snake?
 
IN JABBASCRIPT
 
Mar 27 at 1:20, by Jefffrey
Pawnguy's Jam: the themes are "snake" and the deadline is 2015-04-05T12:00:00.
 
@AndyProwl um UTC+-0?
And if so don't you have only 2 hours left?
 
@Cinch In ~20 hours
 
@AndyProwl Ohhhhh...
 
lol
how can that be right
should be 13h40m left
 
no idea, I haven't really checked when the deadline is exactly
I know it's meant to be tomorrow at some point
 
4 mins ago, by Andy Prowl
Mar 27 at 1:20, by Jefffrey
Pawnguy's Jam: the themes are "snake" and the deadline is 2015-04-05T12:00:00.
 
@LightningRacisinObrit I thought 12:00 is noon
 
Mar 27 at 1:17, by Jefffrey
Let's say by 1200UTC of Sunday 5
@AndyProwl It is.
Noon tomorrow UTC is 13 hours away, not 20.
 
10:25 PM
All right
 
@LightningRacisinObrit oh that's 24 hours
Also who is that woman on ye profile
Looks like Emilia Clarke
 
Xeo
Hey @Mysticial, did you know that F/SN: UBW Season 2 started today?
 
@Xeo Fate/Stay Night?
 
Xeo
ye
 
10:28 PM
ah
I've heard of it and read its plot and it seems weird
 
Xeo
it's plain awesome
 
@Cinch only morons use 12-hour clock in timestamps
@Cinch Looks like but isn't!
 
@LightningRacisinObrit brain fart
 
@Cinch It's me cosplaying as Dany Targaryen
 
@LightningRacisinObrit Where's the beard?
 
10:29 PM
@Cinch Don't know what you're talking about
 
Actually my snake still doesn't have a head
I should giv... no I'm not gonna write that
 
@AndyProwl That's suggestive.
@LightningRacisinObrit I thought you're a GIRL
 
@R.MartinhoFernandes hi
 
I spent the last few days tour guiding my friends. It was fun but exhausting.
 
10:35 PM
@R.MartinhoFernandes Where
 
Anyone else feel sad when coming across old abandoned software projects
looks so cool
 
@Cinch Berlin.
 
@R.MartinhoFernandes Oh right you're that professor dude.
 
10:38 PM
@R.MartinhoFernandes Right?
 
I'm not a professor.
 
@R.MartinhoFernandes oh.
 
user3010322
FredOverflow is a professr.
 
He's Hamburger.
 
@ThePhD Oh
@ThePhD And you're ThePhD
 
user3010322
10:39 PM
(Which does not mean what you think it means.)
 
@ThePhD The Physical Dermotologist
 
Xeo
wrong
@R.MartinhoFernandes mmmm, Hamburger. Although I prefer Cheeseburger.
 
anybody knowledgeable of Boost::Graph?
 
@LightningRacisinObrit I just offered a bounty on this question
 
10:47 PM
@Agostino why are you telling me?
 
@LightningRacisinObrit because I'd like to share
 
@Agostino ok well I don't know anything about Boost.Graph so I can't help
 
@LightningRacisinObrit OK, I misunderstood your earlier "yes"
oh well, anybody else?
 
@R.MartinhoFernandes I tried compiling ogonek on linux with clang, it fails there too but with different errors than the ones I was getting on windows.
(I removed -Werror and -Wfatal-errors temporarily from bootstrap.py)
 
@Borgleader Thanks. I'll check that when I finish setting up my Linux dev machine.
 
10:56 PM
One thing I had already fixed on windows is in wheels/optional.h++, line 32 needs to be } constexpr none {};
otherwise you get:
> deps/wheels/include/wheels/optional.h++:32:17: fatal error: default initialization of an object of const type 'const struct none_t' requires a user-provided default constructor
} constexpr none;
 
@AndyProwl What do you need head for
 
@CatPlusPlus that was funnier out of context
 
@CatPlusPlus To make it appear more like a snake and less like a line
 
Solid line snake
 
Xeo
lol
 
10:59 PM
You convinced me fuck it
 
did he?
or did you want to have that all along?
 
I wanted to have eyes and a tongue but I suck at graphics
head is read, body is purple, problem solved
 
@Agostino ;p
you made the mistake of asking an imprecise question. or, at least, not the question you meant to ask.
 
@LightningRacisinObrit I made the mistake? Com'on! :)
 
@Agostino Yes. You asked whether anybody is knowledgeable about Boost.Graph. The answer is obviously 'yes'.
For example, whoever created it.
 
11:11 PM
@LightningRacisinObrit OK...
 
@Agostino what is the question
 
Unless they have amnesia
 
@MichaelSimbirsky I added a bounty. You may have a go at it. — Agostino 41 mins ago
I guess.
 
you would be very welcome to add some working code and turn your answer into a tutorial
because Boost::Graph would benefit for something like this, IMHO
 
haha. a 50 point bounty.
 
11:14 PM
@sehe well, yes, I can see why you are laughing
 
No thanks. I have shown this so many times over. Why don't you go over my boost graph answers and lift an example from there? You're free to upvote on if you feel compelled
 
@sehe pity, I upvoted answers here and there. Now I'm trying to stitch together a working solution.
No luck up to now
adding vertices - ok
adding vertices with properties - ok(ish)
 
Well. The exact "worry" that you have is answered at least 4 times explicitly in my answers over the last ~2 months. Do you want me to find one?
I'm a little worried that I could incur in problems using listS when calculating connected components, as described here. I would really appreciate a code example showing it work with listS, connected components, and a vertex_index_t map. That's pretty much what I need. — Agostino Mar 17 at 22:52
 
Does Android even have C++14 support yet?
 
^ assuming that's the "worry". Simbirsky linked a direct solution (adding vertex_index maps)
If you want more consolation, it seems you're just looking for someone to write the code for you. In that case, 50 imaginary reputation points is underpayment
@Cinch Android is an OS
 
11:17 PM
@sehe OK, thanks for the attitude
 
@sehe It is also a platform
 
@Agostino Hrmm. I'm not sure whether you are upset. The goal is to help. See this excellent conversation that happened yesterday, which exemplifies this same idea:
@sehe Ok, using firebug I see what you mean, the cookies are included in the request headers. As for libcurl, I was thinking curl, the executable itself, and I wasn't aware of libcurl, the library it uses, as being available. Thanks for the help and patience @sehe! You should compile these comments as an answer so I may mark it for you. Including the RFC, how cookies are part of the headers, and libcurl. — Francisco Aguilera 23 hours ago
@Cinch whatever that means
 
@sehe no, really, I just spent hours on what you may think is a nice documentation
guess I have to spend days on it? Not really worth it.
 
So, you really are looking for free code. (Slightly prodding you now :))
 
Free decent documentation
I wouldn't even know who to pay, even if I wanted
 
11:22 PM
Ok. Here's the low-down: use and pass a vertex_index as per the documentation.
 
is it the same as vertex_index_t?
 
Related. vertex_index_t is the property tag used to characterize an interior property as the vertex_index property.
Interior properties are a bit old fashioned. But the nice thing is that algorithms can pick up the property maps by their "builtin" tag (vertex_index_t) so you don't have to pass it in on calling certain algorithms
 
More than half the questions are "old fashioned". Googling is of little help in this scenario.
 
I'm not sure what you're trying to say. I'm just mentioning a fact. The pros and cons of interior propreties if you will.
 
Does this vertex_index survive the deletion of previous nodes if mapped to a vertex_index_t?
 
11:27 PM
Depends on how you set it up. With listS and an external (as opposed to bundled or interior) property, yes you can make this work.
Let me find my most recent example though...
3
A: Boost Undirected Graph Merging Vertices

seheI don't know what you're actually trying to achieve with the algorithm shown in the OP. Here's, however, one that simplifies the code considerably, so that at least it works safely: uses Vertex bundled property type for vertex (id, name) uses ranged for loops where possible (see mir, shorthand...

 
Hm...
 
@Agostino This one I refactored to use bundled properties. The OP had the vertex_index_t tagged interior property and I rewrote using a bundled vertex property type (that contains both the id and name for a vertex)
Using the Bundled properties you get the convenience that the graph does manage the lifetime of properties with the graph element they correspond too.
 
@sehe I'm looking at it.
man, Boost::Graph is teaching me I've yet to know how terrible C++ can be
every time I look at a new piece of its "example" code
 
So... LLVM
 
@Agostino Yeah. I don't disagree. But then again, remind yourself why you're using c++? And why are you using boost graph? Precisely...
 
11:37 PM
@sehe C++ because I have to, in the environment I'm using (network simulation)
Boost because I'm a masochist, apparently
 
@Agostino That doesn't follow.
@Agostino Me too :)
You're using C++ because you want absolute control and maximum performance/flexibility in design. You use Boost Graph because you don't want to implement graph theory and algorithms in all their gory detail and account for testing all that.
 
@sehe it does follow, if the netork simulator you are using forces you on C++
I'm actually more knowledgeable about the gory details of the algorithms than I am on the seemingly undebuggable mess of templates
 
@Agostino Ah. Say that then :)
@Agostino It seems to me you have an escape route then
 
@sehe the point is, if I write some code, other people should be able to understand it
 
That can always be achieved. Just design well and write cleanly
 
11:39 PM
with this library, I need to be explained first
 
@Agostino Well. You have had to be explained C++ first too. And the network simulator toolkit thingies. Not surprising
 
@sehe I built 2 simulators by myself before using this one
threaded and distributed
learned C++03
 
See. My point exactly.
 
use templates
I know about iterators, reverse iterators
learned about auto
 
Don't discredit BGL because it's something you have to learn first. Hell yes. You have learned all the other things too, with significant effort
 
11:42 PM
@sehe that's the point, if I had time to learn it, I would suggest it to my colleagues
at this point, I cannot understand without spending days on it
 
@Agostino for the record, you're naming quite superficial topics here. I'm willing to guess that you're more expert in the networking domain than c++, right
 
@LightningRacisinObrit I don't have another computer I can test this on. Also, if I were to give you all information I would be giving you a bunch of totally useless info. I just think if you really knew what you were talking about you'd be more specific and less rude. — Christopher Thomas 15 mins ago
lol
 
@sehe yes, I guess
 
@Agostino Okay. Seems like a clearcut deal then (a) talk this over with the coworkers (b) agree to write your own graph algorithms
 
11:44 PM
@sehe in case you want to add some more details to the answer you linked
this line could benefit from some
std::cout << graph[self].name << (boost::empty(mir(out_edges(self, graph)))? " has no children " : " is the parent of ");
how many statements can you cram into a line of code?
 
@Agostino okay. :) that's pretty dense indeed. It's equivalent to:
auto out_edges = boost::out_edges(self, graph);
auto range = boost::make_iterator_range(out_edges);
if (boost::empty(range))
    std::cout << graph[self].name << " has no children ";
else
    std::cout << graph[self].name << " is the parent of ";
@Agostino as many as needed to maintain the highlevel expressiveness... I agree this line was pushing things a little
 
@sehe some security environments force 1 per line :D
 
I bet they do
And it would be a tad arbitrary, but I guess it's worth the trade-off
I bet you would never write std::cout << "hello world" << std::endl; either :S
 
@sehe sometimes it is, at least the code is boringly readable
you would break it over multiple lines with a StringBuilder in Java
 
I think it's a false sense of security. All the "familiarity" just induces sleep and causes people to not see the issues (remember heartbleed?)
 
11:50 PM
@sehe oh, that's just the start
 
@Agostino haha. That's funny. Because "hello" + " " + "world" literally uses a stringbuilder under the hood in Java
@Agostino Precisely.
2 mins ago, by sehe
And it would be a tad arbitrary, but I guess it's worth the trade-off
 
@sehe that's the reason to break it
@sehe if you want boring, coverage for "test every line"
that's one of the reasons for forcing 1 statement per line
anyway, that's another thing
 
I'm not sure that's necessarily boring. If I were writing code to the mars rover I'd be in favour. Or manned ISS missions. Or medical equipment that applies radiation doses to live patients
 
@sehe it's a boring necessity :D
 
And the fact that it's a necessity (if it really is) makes it not-boring
It becomes a challenge. (Get readable code, satisfy testing needs, still have expressive code)
 
11:53 PM
@sehe if you get a kick out of it, suit yourself
 
Nope :)
 
thought so :D
 
I don't have the project that requires it.
 
@sehe me neither, for the moment
any up to date introduction tutorial to Boos::Graph?
 
My snakey
 
11:56 PM
p. cool
 
thank you
it's not the most enjoyable game ever but I'm glad I managed to do something
 
@Agostino It's the BGL book for me. I know it's bad. It took me a year of actively trying to answer every question to get anywhere near confident. So, there's an approach you might use o.O
 
@AndyProwl ... that's minecraft :P
 
@sehe I'm tempted to pay someone to write a decent one
seriously, I would offer them more than a good beer
 

« first day (1631 days earlier)      last day (3333 days later) »