« first day (1563 days earlier)      last day (3374 days later) » 

3:00 PM
it could back a bit
 
^ It is nice to hear that Java sucks. :)
 
@Rerito noisli.com
 
@BartekBanachewicz Misfires can cause damage all over. Common victims are catalytic converters.
 
3:15 PM
Hello all, I have a question. Is there any way to capture the value of std::queue:pop
 
std::queue::front
 
user1804599
No, because there is no value.
 
@sehe Funny stuff :)
 
thanks, so is there a way to copy the front value
 
@AMostMajestuousCapybara c/v food stackoverflow.com/q/28153007/85371
@Rerito what's more funny is how many sites exist with this "functionality"
 
3:18 PM
Never tried to look this up I have to admit
 
white noise helped me a lot when studying at school libraries. helps a lot when you need absolute concentration
i also had this track of a rain storm
 
@R.MartinhoFernandes my queue is contains a structure. So is there a way to look at the value
 
@user2532296 He just told you how
 
@user2532296 I don't want to be that guy, but if you know C++ enough to be using a std::queue, you probably know how to copy a structure.
(I'm that guy, now, aren't I?)
 
@user2532296 You know it's bad etiquette to barge in here and ask help with the questions you just asked on SO
@EtiennedeMartel He's using a boost::circular_buffer. And he was confusing types and variables earlier today. So, I'd one-up both sides of your equasion, making it... squared?
 
3:27 PM
The talk is interesting. But then you spot void main() in one of his slides... sigh
 
@sehe How square.
 
> sigh
 
@sehe sorry
 
:/
 
> Too late to apologize
 
3:31 PM
Never too late (as long as you drop it :))
 
I come from a HW world looking at mainly logic gates. Queues in verilog are a lot different from C++. considering the short time I have, I am trying to give all what I have. Happy to learn at any cost.
 
user1804599
@wilx maybe he's writing D code!
 
> Too laaate
 
See? Andy gets it.
 
@EtiennedeMartel What's the reference? :)
 
3:35 PM
@рытфолд Well, they did Java to C++11/14 conversion, I guess it could be a muscle memory then. :)
 
Wait.
I got it wrong.
It's a Timbaland song?
 
Self censorship
 
Featuring OneRepublic?
The fuck.
 
Too much shame?
 
Timbaland just does YEAH YEAH YEAH the whole time
Maybe he produced and wrote the thing
Anyway, it's a shit song
 
3:37 PM
Indeed it is
 
Howard Hinnant posted an answer on the ape's question:
2
A: How to make a multiple-read/single-write lock from more basic synchronization primitives?

Howard HinnantAt first glance I thought I recognized this answer as the same algorithm that Alexander Terekhov introduced. But after studying it I believe that it is flawed. It is possible for two writers to simultaneously wait on m_exclusive_cond. When one of those writers wakes and obtains the exclusive l...

Studied it. I do not believe this is the Terekhov two-gait algorithm. Adding an answer... — Howard Hinnant 20 hours ago
 
That's awesome
@EtiennedeMartel It's not even Yeah it's some undefined mumbling like "Eeeeeehhhh"
 
I implemented that in university IIRC.
 
Hmmm the use of static members troubles me here. What if we want to use several locks (unrelated to each other)? I guess we would remove the static and work with pointers to the lock?
 
Those are constants.
 
3:51 PM
Oh fuck I missed the const -_-"
2
 
It said "do not enter" (but I entered).
How cool am I now?
 
You're a true rebel
 
you're still a koala
 
Cooloala.
 
I'm remote desktopped to a server that's remote desktopped to another server that's remote desktopped to another server that's remote desktopped to the final destination
 
4:04 PM
> (because I am using windows 2007)
@sehe Is it me or has Howard been more active lately?
 
@Puppy lol, similar here.
But there are also VMs involved.
 
oh all of these are VMs except my machine, I think
 
@Borgleader the sample rate is too low to say something at the timeframe of months?
 
4:29 PM
@Puppy How long did it take you to log/log/log/log on?
 
not that long, most of them had saved credentials
 
I'M HUNGRYYYYYY
 
purchase food
 
So I've been testing out Splashtop as a remote desktop client, and it's actually pretty good.
It's a streamer, so every graphical app works.
And latency is small.
Noticeable, but small.
250ms maybe.
Compared to other programs anyway.
 
@Nooble not clear to me whether linux is supported (as the remoted party)
 
4:35 PM
@sehe It is.
Both parties, streamer and client.
Client is called "personal"
 
how da fuck do they make that unclear. The penguin isn't even in their logo "bay"
 
I don't know, but this thing is absolutely amazing.
 
 
Scroll to the bottom.
 
@Nooble so what do they call the server thingy - or is it that part that's not free?
Ah
 
4:36 PM
Streamer.
 
> (Beta)
splains the lack of visibility
@Nooble They can really learn to be a bit more consistent:
 
Now, the only problem is the mouse. I don't think it supports the way FPS's do mouse control (where they reset your mouse to the middle of the screen). It behaves kind of erratic in this situation. I'm going to try using a seperate keyboard/mouse remote application.
 
I will have to give this a go
 
@sehe Lol.
 
@Nooble FPS? Why on earth would you be remoting mice? And games? On linux? :)
 
4:39 PM
@sehe I mean on windows.
 
ah phew
 
I want to be able to play my games on the go, without buying a ridiculously expensive laptop.
 
> on the go
out of the window flies your low latency
 
@Nooble You'll have to buy a ridiculously expensive network connection instead.
 
@MartinJames I already have 100mbps up.
But even then, I need to compress this thing as much as possible.
 
4:43 PM
@Nooble What? From your laptop?
 
@MartinJames From my desktop.
My internet speed is 300/100
 
@Nooble Ah... I see a flaw in your mobile gaming plan.
 
So do I.
Laptop connection.
Is undetermined.
 
@Nooble I would hazard a guess of 'nowhere near fast enough':(
 
@Borgleader Here's a graph of his posts over the last 13 months.
 
4:46 PM
@MartinJames Let me check this thing's network usage.
 
@Nooble Do it with a video running.
 
Perhaps all posts since he joined SO would be more interesting though:
 
@MartinJames So with a video running, I'm doing a little bit in excess 10mbps upload.
 
@R.MartinhoFernandes Check this shit out.
 
Xeo
@JerryCoffin Oh oh oh, do that for my posts please!
 
4:53 PM
@Nooble ..and a typical action game has higher demands than video:(
 
@MartinJames I tried Just Cause 2 and it goes to about 15.
 
Xeo
ehehehe
Wait, 35 months only?
 
@Nooble :(
 
@MartinJames To be honest, latency is a bit more of a problem.
250ms is okay I guess.
 
4:59 PM
@Nooble Sure.
 
At my school, the WiFi is 30/10.
So it's feasible, by hogging 1/3 of my school's bandwidth.
Or more.
 
@Nooble Go to school at night.
 
@Xeo I'm not sure quite sure what's going on there. Your profile says you've been a user for longer, when when I run the query on SEDE, it only shows dates since December of 2010.
 
Xeo
Since December would be about right, posts-wise
 
@MartinJames :)
 
Xeo
5:01 PM
but that's over 48 months
 
@MartinJames Also, I can use it for more than just gaming. I can program remotely, since my desktop is the only computer I have with decent OpenGL support (3.3+)
 
@Xeo Looking at things, it's apparently only showing results for months where you had at least one post.
 
Xeo
@JerryCoffin Yeah, seems like it
I only had one post in 2014?
fun stuff
 
@Xeo Good year
 
@Xeo When I think about it, based on how I wrote the query, that's exactly what I should have expected--it's counting posts and grouping them by month, so any month without a post just won't show up at all. I could probably get it to fill in the blanks, but it'd be quite a bit more work.
 
Xeo
5:05 PM
@JerryCoffin union with a set of 0 for all months?
 
@JerryCoffin Interesting
 
@Xeo That might work. The SQL-fu is weak with this one (me).
 
Xeo
@CatPlusPlus Hey, you also had one!
@JerryCoffin Same
 
I regret it very much
 
Just for reference, Jon Skeet's posts:
 
Xeo
5:07 PM
> 800 in a month
 
@JerryCoffin What are you guys doing?
 
@Xeo ...and after dropping steadily for the last few years, he's all the way down to only ~200/month!
So my highest ever just barely overlap with his lowest ever...
@Nooble Counting the rate at which various people post to SO. You can get raw data here:
 
@JerryCoffin Ahh okay.
That's pretty cool.
 
I'm downloading the data and generating the graphs in Excel, since SEDE generates stupid graphs for this data.
 
Jerry obviously has lots of important matters to attend to today :P
 
5:16 PM
@TonyTheLion Actually, I do--but I have a conference call coming up in a few minutes, and don't want to start anything else before it.
 
@JerryCoffin heh, interesting
 
'evening
 
5:42 PM
@JerryCoffin hmmm did you modify the query?
Seems to be by year for me
 
It's time for the daily workout
 
user1804599
Guys.
 
user1804599
> Though initial calculations showed it to be on a direct collision course with Earth, a pansy-ass asteroid approximately the size of Rhode Island has instead altered its trajectory to avoid the planet by more than 40,000 miles, astronomers at the University of Arizona reported Monday.
 
How does a rock alter its trajectory?
Maybe Skeet programmed a force field around earth?
 
With a little help from Excel LibreOffice Calc (the month back-calculations are a bit off, I q&d-ed it with (week*7/30))
 
user1804599
5:52 PM
@JohanLarsson Onions.
 
@sehe No unit on the ordinata, what are we economists?
 
@JohanLarsson Worse. We're programmers
 
Not sure, I think programmers are pretty high on the OCD spectrum. At least > semi-decent ones.
 
Really cool answer. I have one short question. Is there any way to make it resilient towards an unknown key appearing? If it's on the end it's ok, it will simply remain unparsed, but if it appears on the beginning it blocks the parsing. — Let_Me_Be 5 mins ago
To be honest. The coolest thing there is not the Spirit wankery, but the fact that qi::stream+posix_time::ptime gives timestamp parsing basically for free.
The number of times I've done this much less elegantly...
 
user1804599
6:18 PM
lol amazon
 
user1804599
why are there wristwatches in the pocket watch category
 
They fit in your pocket.
 
Oh, fuck.
I just got hit by "when it looks like a function declaration it is a function declaration" again: NDCContextCreator c2 (std::string(CONTEXT2));
Now, this expands from a macro #define LOG4CPLUS_C_STR_TO_TSTRING(STRING) std::string(STRING)
How the hell do I make it so that this does not happen again?
 
6:33 PM
yay for intermittent crash that occurs maybe 1/20 runs that i cant duplicate with gdb. thank you programming gods
 
Or do I need to abandon the macro and make it a function to fix this?
 
user1804599
Of course.
 
user1804599
Never use macros.
 
@Pris There are no gods.
 
user1804599
Macros are cancer.
 
user1804599
6:33 PM
@wilx You can't tell.
 
@рытфолд Well, OK, depends...but whatever. You win.
As far as I am concerned, there are no gods or God.
 
@wilx c2{std::string(...)} should work
Unless a million reasons related to C++ being a terrible language
 
@CatPlusPlus Oooo, shiny. Let me try.
 
(Actually probably just initializer_list related)
 
@рытфолд Maybe they're convertible.
 
6:37 PM
Maybe your keyboard is broken
 
It is.
 
user1804599
@CatPlusPlus (std::string(…)) works fine.
 
user1804599
Types cannot be parenthesised.
 
@wilx idunno man, i just prayed pretty hard to the god of debugging and finally got a stacktrace out of gdb
 
@рытфолд Not if the argument is an identifer
 
6:43 PM
1 hour ago, by Jerry Coffin
I'm downloading the data and generating the graphs in Excel, since SEDE generates stupid graphs for this data.
 
It seems that using #define LOG4CPLUS_C_STR_TO_TSTRING(STRING) std::string{STRING} should work as well with the universal initialization.
 
Why does Visual Studio insist on making a .pdb file when I specifically told it not to.
 
@Nooble Obviously you did a poor job of telling it not to (since we all know that VS is 100% perfect and bug free).
 
:P
 
@Nooble VS nassively failed on legalyption :)
 
6:48 PM
@πάνταῥεῖ Truly.
 
@Nooble Gettin' serions: What did you do, tell it to perform a release build?
 
@πάνταῥεῖ "legalyption" being the leg of an Egyptian Eagle, apparently?
 
template<typename T, typename... Args>
T make(Args&&... args)
{
	return T(std::forward<Args>(args)...);
}

 #define LOG4CPLUS_C_STR_TO_TSTRING(STRING) make<std::string>(STRING)
 
@πάνταῥεῖ Yes.
I even explicitly turned of the /Debug switch.
 
@JerryCoffin No that's an internal joke :D
 
6:50 PM
It no longer generates the .pdb in the binaries folder, but it still makes one in the folder with the .logs (Don't know what folder this is called).
 
@πάνταῥεῖ ...until it comes out, when it turns into a fart joke.
 
Why does Visual Studio generate two .pdb files anyway?
 
@JerryCoffin I'll try to find that pic, unless @Nooble is willing to post it again.
 
@πάνταῥεῖ It's pretty hard to find.
 
@Nooble Did recently :P
 
6:58 PM
lol
Why is std::to_string('a') not "a"?
Because char is really an integral type.
 
Totally unreasonable expectation.
 
How so?
 
</sarcasm> needed.
 
Probably, yes.
 
@JerryCoffin And here it is:
 
7:01 PM
std::string::operator= has an overload taking a char. Such design mistake, wow.
 
@πάνταῥεῖ Ah, now that you post the reminder, I do remember that. Why did you have to ruin my day this way?
 
@JerryCoffin Pull my finger?
 
hi from hotel
you've got me all night i'm afraid
 
date dumped you?
it's ok
 
Dates are good
 
7:12 PM
the work day dumped me
jesus, wifi is a bit slow
 
@JerryCoffin You only like responsible and non-drug-using koalas?
 
I'm going to eat this
A vienna sausage (German: Wiener Würstchen, Wiener, Viennese/Austrian German: Frankfurter Würstel or Würstl, Swiss German Wienerli, Swabian: Wienerle or Saitenwurst) is a kind of sausage. The word Wiener means Viennese in German; in Austria the term Wiener is uncommon for this food item, as it identifies a type of cold cut. As with any sausage, the ingredients, preparation, size and taste can vary widely by both manufacturer and region of sale. == Other uses in Europe == In some European countries, cooked and often smoked wieners bought fresh from supermarkets, delicatessens and butcher shops may...
they're good with mustard and ketchup
 
that actual one? off by now surely
 
@Nooble A koala without drugs? That's sounds even worse than they usually are!
 
@JerryCoffin Hey!
 
7:15 PM
@Nooble Straw! (I love free association. Can we do more?)
 
@JerryCoffin Liquid Transfer Device!
 
@Nooble Soda!
 
@JerryCoffin Carbon!
 
@AlexM. The common term in vienna is Frankfurter BTW. Funny, isn't it?
 
the common term in Romania is cremwurst
nobody else seems to call it that
funny, ain't it
 
7:26 PM
@πάνταῥεῖ Nobody expects the Spanish Inquisition wants to take responsibility for them.
@Nooble nanotubes.
 
@JerryCoffin Multi Walled!
 
I think I'll buy some vodka and rum aside from wine
and some more shit
and put together some cocktails
because why not
 
@Nooble Whitewall tires.
 
@AlexM. Because you could buy more wine instead.
 
7:28 PM
@JerryCoffin yes but, look at this picture for ants
you don't get that with just wine
 
Need advice: is it time to swing the dupe hammer? New question: stackoverflow.com/q/28157088/179910, old question: stackoverflow.com/q/14176776/179910
@AlexM. My point exactly.
Oops--the old question in this case would be: stackoverflow.com/q/563198/179910
 
@JerryCoffin Whitewall walls!
 
@JerryCoffin I've got nothing.
 
7:43 PM
has any of you ever programmed MIDI?
 
sure
like 90 years ago
@Griwes s/glorious/very, very old/
 
@LightnessRacesinOrbit who the fuck cares, I haven't seen it before
 
nice rock :P
 
@JerryCoffin Wow, Cream! You're experienced man, respect!
 
Well, if its happy hour now, here's one of my very fav prog rock antiques:
 

« first day (1563 days earlier)      last day (3374 days later) »