« first day (709 days earlier)      last day (4248 days later) » 

3:00 PM
// TODO: reintroduce actual test when GCC properly SFINAEs on narrowing conversions
template<typename From, typename To>
struct is_narrowly_convertible: std::false_type {
From my own stuff.
 
@Xeo I added a note about this being only theoretical right now :(
 
@kbok Perhaps your observation increased the count ;)
 
Do you think nec was impartial about that study?
 
Xeo
Hmm, and I can't think of a case where @Prætorian's answer won't work.
 
@Xeo That's always good to hear :)
 
Xeo
3:10 PM
@Prætorian I'd probably add an std::is_arithmetic test to both types, though
And rename the struct to is_narrowing_conversion and invert the bool
 
Yeah, I did neglect additional checks. My colleagues were waiting on me to go get coffee
 
@StackedCrooked I don't see anything there saying productivity dropped for larger monitors -- only that above 24", the price starts to rise faster than productivity. That depends on what you're doing though -- they were basically testing with word processing and spreadsheets. I doubt they tested with photo-editing, because the larger monitors are already in wide use.
 
Xeo
Heh, Steve found a problem. I thought in that direction, but didn't think of complete integral promotion.
 
@Xeo Yep, can_cast<char, short>::value returns false
And can_cast<std::int64_t, double>::value returns true Crap!
 
@JerryCoffin That would be good news since I have a 27" :)
130
Q: Do bigger or more monitors increase productivity?

SklivvzThere is a ton of anecdotal evidence that adding more screen estate (more or larger monitors) leads to an increase in productivity, especially for programmers. For example, where I work, all programmers have either two 20" screens or a single 24" screen. There is no agreement on which is the opt...

^ I just found more information here.
I want a second monitor dedicated to this chat window.
 
3:26 PM
I have three 23" monitors (just bragging)
 
I'm awesome (just bragging).
 
I'm awesome (not bragging).
 
I'm very awesomesauce
 
I'm so awesome I could get actual work done, even on a single ten inch, text-only screen (in Fortran, no less).
 
I'm awesomer
 
user784668
3:28 PM
Y'all're losers.
6
 
@JerryCoffin now that's easy, you had no interwebs to distract you :P
 
@JerryCoffin Poor thing.
 
don't you hate that when you forget a word, although you clearly had that word in mind when you typed your sentence. Somehow it never ends up on the screen :/
 
@TonyTheLion yup, I just that
 
you a word
 
3:30 PM
const double* hilight = new const double {1.0, 0, 0};
I know this is wrong.
I hate initializer lists
 
@TonyTheLion That's for sure. When I was in college, I got in some trouble for doing some hacking that let students actually send each other messages (and, horrors, files) on the college's mainframe.
 
@Drise I hate - FTFY
 
@R.MartinhoFernandes In re:
(Somehow I doubt that the number of results for "'sucks' said by anyone in any room" (which works) is less than for all the times I mentioned in the C++ lounge that chat search sucks (which fails).
It's not the displaying that's the issue, it's the search itself.
 
I only have one 28-incher, but I have a Eee laptop on the desk as well to run browser on, build legacy firmware etc.
 
@TonyTheLion How do I do this properly though? I need a const double *.
 
3:32 PM
@jornak What do you mean?
It can't possibly be an issue with the number of results.
 
It's the number of things it has to search through.
 
@jornak Which one do you think has more things to search through?
 
@Drise I don't think you can do it with initializer lists. You have to just initialize the array and then for loop your way to set all values
 
user784668
@Drise double x = 5.0; &x;
 
@R.MartinhoFernandes Do a search with the less active members, it works fine. With the guys who have been here a long time... it fails.
 
3:34 PM
@Fanael It needs to be an array of doubles.
 
@Drise You're missing a []. Also, WTF man, std::vector.
 
user784668
@Drise double x[2]{5.0, 4.2}; x;
 
@R.MartinhoFernandes Library.
 
@R.MartinhoFernandes It's just doing query looking for strings that contain your search terms where userid = ####
 
@Fanael const double*?
 
user784668
3:35 PM
@Drise double (&)[2], which decays to double*, which is almost what you want.
 
And how does that explain failure?
 
@Drise std::vector<double> data{1.0, 0.0, 0.0}; double const *hilight = data.data();
 
And that's why it's failing. It's looking through every single record where userid = #### and is timing out
 
@jornak Nope.
 
Yes. I can guarantee it.
 
3:35 PM
@JerryCoffin That sounds the most complex, yet the most simple. I like.
 
Any search on DeadMG or Tony fails
Even with a phrase you know will have zero results.
 
@jornak You do know that "sucks" (no user, no room) is looking through every single record ever, right?
 
everytime I see data() I think about Star Trek
 
How can that explain anything?
 
@Drise Of course, unless you honestly need a variable named hilight, chances are you can just use your_vector.data() (or &your_vector[0]).
 
3:37 PM
It's probably just a bad index.
 
@R.MartinhoFernandes Bad index! Go sit in the corner and face the wall!
 
Xeo
Hm, I have a feeling the can_cast<char,short> issue can be solved through size comparisions
static bool const value = is_same<To,common_type> || (sizeof(common_type) > sizeof(To) && sizeof(from) < sizeof(To)); ... something like that
 
what's the best language to create build scripts to run by a continues integration server for C++?
currently using Batch files, but urgh
 
@TonyTheLion I use python for that.
 
user784668
@TonyTheLion Haskell.
 
3:49 PM
@kbok and that works well?
 
@TonyTheLion Well, I'm very happy with python, but still, some people are very happy with PHP. So I guess it depends on whether you think I have good tastes or not :)
 
I like Python much better than Batch files
 
@Xeo isn't that still a problem for can_cast<int64_t, double>? The sizes are equal and common_type returns double
 
that's for sure
 
Xeo
For integral promotion, the fix seems to work
 
3:50 PM
It's very easy to open subprocesses in python.
 
Ell
http://www.youtube.com/watch?v=KUDjRZ30SNo&feature=share
ha ha this is so funny
I <3 autotune songs
 
well, yea I need to open quite a few things to get this thing to build
 
Xeo
Screw signed conversion. :<
 
3:52 PM
@R.MartinhoFernandes User-based and non-user-based searches appear to act differently. It would seem that user-based searches run through all records and then paginates based on what's returned. Non-user-based ones get the total number of records, and query page by page.
 
Xeo
@Prætorian You could check whether To is floating, and be false if From and To are the same size
 
@Xeo You're sure that's enough?
 
Xeo
Or you could mess with numeric_limits<T>::digits10 I guess
Something like that
 
@Xeo It would fail for can_cast<double,double> then
 
Xeo
3:54 PM
@Prætorian Okay, and if the other is integral.. grml
 
And this is turning out to be as long as all the checks the OP had in the question
 
Xeo
:/
Working list-initialization checking would be nice
 
[Class InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter](‌​http://javadoc.bugaco.com/com/sun/java/swing/plaf/nimbus/InternalFrameInternalFra‌​meTitlePaneInternalFrameTitlePaneMaximizeButtonPainter.html)
fucking markdown, what did I do wrong?
 
user784668
@Prætorian Fial.
 
Xeo
Maybe it's simply too long of an URL
 
3:59 PM
I think so, cause it makes it into a link for a second
 
@Prætorian In a word, Java.
 
user784668
@JerryCoffin Thou shalt not use the J-word!
 
@Prætorian 404s.
@Xeo Not a problem.
 
@Fanael Java is Japanese now?
 
Sep 19 at 21:18, by R. Martinho Fernandes
TIL about hugeURL:
http://hugeurl.com/?MjkzNTdmNDFkZGYzZGRiZWRjMjlmZDQ2N2Q3MmQwNDImMTMmVm0wd2QyUXlVWGxWV0d4WFlUSm9WMVl3Wkc5V1ZsbDNXa2M1YWxKc1dqQlVWbHBQVjBaYWMySkVUbGhoTVVwVVZtcEdZV015U2tWVWJHaG9UV3N3ZUZacVFtRlRNazE1VTJ0V1ZXSkhhRzlVVm1oRFZWWmFkR1ZHV214U2JHdzFWa2QwYzJGc1NuUmhSemxWVmpOT00xcFZXbUZrUjA1R1pFWlNUbFpVVmtwV2JURXdZVEZrU0ZOclpHcFRSVXBZVkZWYWQxTkdVbFZTYlVacVZtdGFNRlZ0ZUZOVWJVWTJVbFJHVjFaRmIzZFdha1poVjBaT2NtSkdTbWxTTW1oWlYxZDRiMkl3TUhoWGJHUllZbFZhY2xWc1VrZFhiR3QzV2tSU1ZrMXJjRWxhU0hCSFZqSkZlVlZZWkZwV1JWcHlWVEJhVDJOc2NFaGpSbEpUVmxoQ1dsWnJXbGRoTVZWNVZXNU9hbEp0VWxsWmJGWmhZMVpzY2xkdFJteFdiVk
Dammit, the oneboxing borks it.
 
4:01 PM
@Fanael I'm old enough to use any word I feel like.
 
No, wait, seems hugeurl is borken. Noooooes!
 
Xeo
There's a %E2%80%8B in the URL for some reason.
 
user784668
@JerryCoffin You're not 200, so you're not old enough to use this particular word.
 
Xeo
Can somebody tell what I did wrong in this snippet?
 
@Xeo FFS, zero width spaces?
Fuck you chat.
 
4:04 PM
@Fanael You're not old enough to decide what age I need to be. Besides, in ternary I'm way over 200.
 
Woah.
Wait, that's 18.
 
Ternary?
Base 3?
 
Xeo
aye
 
user784668
@Drise Yes.
 
Ok.
(Here's proof that URL length is not an issue)[http://www.hugeurl.com/?MjJlY2IyNDQzYjFjODYxOWQyY2RkMWE1ZTNhODkwMWImMTMmVm0wd2QyUXlVWGxWV0d4WFlUSm9WMVl3Wkc5V1ZsbDNXa2M1YWxKc1dqQlVWbHBQVjBaYWMySkVUbGhoTVVwVVZtcEdZV015U2tWVWJHaG9UV3N3ZUZacVFtRlRNazE1VTJ0V1ZXSkhhRzlVVm1oRFZWWmFkR1ZHV214U2JHdzFWa2QwYzJGc1NuUmhSemxWVmpOT00xcFZXbUZrUjA1R1pFWlNUbFpVVmtwV2JURXdZVEZrU0ZOclpHcFRSVXBZVkZWYWQxTkdVbFZTYlVacVZtdGFNRlZ0ZUZOVWJVWTJVbFJHVjFaRmIzZFdha1poVjBaT2NtSkdTbWxTTW1oWlYxZDRiMkl3TUhoWGJHUllZbFZhY2xWc1VrZFhiR3QzV2tSU1ZrMXJjRWxhU0hCSFZqSkZlVlZZWkZwV1JWcHlWVEJhVDJOc2NFaGpSbEpUVmxoQ1dsWnJXbGRoTVZWNVZXNU
 
4:06 PM
@R.MartinhoFernandes 27?
 
Xeo
parens wrong
[text](link)
 
user784668
@Drise 27 would be 1000.
 
@Fanael Just realized, yea
 
Xeo
haha
 
4:07 PM
@Xeo Nevermind. Wouldn't work anyway. I need to make it multiline to shove that monster into a message, and multiline sucks.
 
Provided to you by: Rick Astley!
 
Ah, you need to click "see full text" for the link to work.
 
@R.MartinhoFernandes ...though (in yet another markdown fail) when you do click "see full text", it actually shows less of the URL than it did before.
 
Not for me. The only difference I see is that it doesn't put the damn zero width space in it.
 
Ugh, mailing list archives.
 
Xeo
4:12 PM
I'm eagerly waiting for the next C++ mailings to be uploaded
The deadline was Friday
 
So am I.
 
Seems MongDB is webscale only for 64-bit processes (diegobasch.com/ill-give-mongodb-another-try-in-ten-years).
 
WideURL is funnier
 
Xeo
4:21 PM
@kbok oh lol
 
@kbok awesome
 
> W-i-d-e-U-R-L can be used together with TinyURL.com to create a short representation of a wide URL. Click here to create a TinyURL of the WideURL above.
 
GNU Make is impossible to build from version control.
 
lol
 
Xeo
So, std::lock avoids deadlocks... does std::try_lock do that too?
 
4:24 PM
hihi
@Xeo Wait, how can std::lock avoid deadlocks?
 
@kbok Urlception
 
Xeo
> using a deadlock avoidance algorithm to avoid deadlock
 
@DeadMG Magic.
By imposing a total order on the locks, duh.
 
@R.MartinhoFernandes Because nobody could just do lock(lock2); lock(lock1); and still get a deadlock?
 
@DeadMG Of course you can, but why would you do that?
 
4:29 PM
Because you're not supposed to do that.
 
Don't acquire locks in a non-atomic operation.
 
@R.MartinhoFernandes Well, think more about lock(lock2); f(); where f happens to use lock1.
 
You don't acquire all your locks in a single point in your code.
 
That sounds like a meme... ACQUIRE ALL THE LOCKS
 
Xeo
Hey robot, does Clock::now() >= timeout_time test if I'm past the timeout timepoint?
 
4:31 PM
Yes.
Assuming timeout_time came from the same clock. And assuming a steady clock.
 
It can be used to make a slower stack overflow
 
@DeadMG Oh well.
 
 
Xeo
@R.MartinhoFernandes Well, Clock is the template parameter for the timeout_time time point
 
4:34 PM
A common deadlock pattern is when a lower-layer callback invokes higher layer code which in turn calls lower-layer code.
 
You don't call foreign code from within a lock scope!
 
Xeo
So, does anyone know if try_lock also avoids deadlocks?
 
@R.MartinhoFernandes Indeed. I usually prevent this by using async callback (assumes some sort of message loop).
 
@Xeo cppreference says it aquires locks in the order given
 
*cough*stm doesn't much up the lock order, problem solved*cough* ;)
 
4:35 PM
6
Q: What would happen if you portalled the TARDIS inside itself?

bitmaskThe TARDIS is one of the few fictional objects that could contain themselves. Firstly, because "it's bigger on the inside" but secondly because the TARDIS has some means of sustaining paradoxes (which have their bounds, but it is capable to allow some paradoxes if you don't overdo it). So if you...

Awesome
 
@jalf Much up?
 
@jalf That too :)
 
Xeo
@MooingDuck Damn. :/
 
woo, xcom demo
 
Xeo
In mathematics, the Klein bottle () is a non-orientable surface, informally, a surface (a two-dimensional manifold) in which notions of left and right cannot be consistently defined. Other related non-orientable objects include the Möbius strip and the real projective plane. Whereas a Möbius strip is a surface with boundary, a Klein bottle has no boundary. (For comparison, a sphere is an orientable surface with no boundary.) The Klein bottle was first described in 1882 by the German mathematician Felix Klein. It may have been originally named the Kleinsche Fläche ("Klein surface") and th...
4D always hurts my brain. :|
 
4:42 PM
@Xeo and you haven't even used a non-euclidean metric :P
 
Xeo
I can understand the analogy from 2D to 3D being like 3D to 4D, but still
I think I'll need to accept that It Just Works™.
 
Same for me. I can reason it but not visualize it.
 
user784668
> tune2fs -O '^has_journal' /dev/sda5
tune2fs 1.42.5 (29-Jul-2012)
The has_journal feature may only be cleared when the filesystem is
unmounted or mounted read-only.
 
user784668
:(
 
@Ryan: Nah, video feedback-loop is kindergarten compared to this. This is wibbly-wobbly. — bitmask 4 hours ago
 
4:51 PM
by the way
did I mention that every railway line in this part of the country was flooded and unusable?
so I got up super early to truck off to the passport office, but couldn't get there by any means, and the passport office are dicks
so now I'mma have to delay my trip to Linz
a lot
 
That's a crappy situation.
 
yep
 
The Gods are not favoring you.
Or perhaps they are guiding you to a better place.
 
@DeadMG what drives you to linz?
 
4:53 PM
Muahaha, religion!
 
Oh, the UK are dicks and not part of Schengen.
At least not completely...
 
YIL Mount Athos is part of Schengen but has special treatment to prevent women from visiting. WTF.
 
user784668
@R.MartinhoFernandes What the fuck.
 
Has Linz moved?
 
@R.MartinhoFernandes dafuq
 
4:56 PM
@R.MartinhoFernandes YIL =? Yamanouchi Iguana Laboratory
 
@rubenvb Yesterday I Learned.
 
user784668
@rubenvb Yesterday I learned.
 
it's not on the acronym list.
jerks.
 
user784668
Your acronym list sucks.
 
me thinking some lab denied access with a EU ID.
@Fanael it's the room's list
 
user784668
5:00 PM
@rubenvb Patch it.
 
@Fanael I have no account nor want for one.
 
user784668
@rubenvb You heard that?
 
Seriously, YIL is not commonly used. I think it's the first time someone used it here.
 
@R.MartinhoFernandes YIL acronyms?
 
@Fanael heard what?
 
5:02 PM
@R.MartinhoFernandes Given it's similarity to TIL and the context, it didn't take me long to piece it together
 
Ok, second.
 
user784668
@rubenvb The sound of me not giving a flying fuck.
2
 
Oct 8 '11 at 17:41, by StackedCrooked
YIL I learned that concepts are about more than just improving the quality of error messages. They enable function overloading for groups of types.
 
@DeadMG ah
 
@Cheersandhth.-Alf Wait. Was that autobiographical?
 
5:04 PM
@R.MartinhoFernandes Yesterday I learned I learned...
So he forgot he had learned before.
 
@rubenvb priceless /c @Fanael
 
btw, robot
did you have any criticisms for mah tutorial thingies?
 
@DeadMG You have written a lot more since I last checked them out. I need to find some time to read them.
 
k
 
Can I delete a parent class's functions in a base class?
 
5:07 PM
nope
you can only delete your own functions
 
@DeadMG if you delete them in the derived class, does that "overload" the base class' and makes those functions uncallable in the base class? (sans casting to a base class before the function call)
 
@kbok lol
 
@MooingDuck no, only in the subclass. I guess I'd need virtual for this to work...
 
If I understand what you're trying to do, then no. You cannot break the base class interface in a derived class (WTF do you want a base class for then?)
 
right stupid stupid
 
5:10 PM
why is my Java project no longer a java project? (I hate netbeans)
Pandora is playing "star-wars-episode-6-return-of-jedi-film-score/star-wars-episode-6-return-of-jedi/emperor-arrives-death-of-yoda-obi-wans-revelation", and it's an 11 minute song!
 
@MooingDuck It evolved.
 
How is everyone today? Are we all on schedule? :D
 
also the cd art for "lord-of-rings-film-score/lord-of-rings-fellowship-of-ring/breaking-of-fellowship" is all German
"Herr der Ringe - Die Gefahrten"
@AmadoMartinez my code is rebelling
 
@MooingDuck Wait, what? This is not according to plan! We're not ready, yet.
Tell your code to stand down immediately.
 
woot, my library really has a copy of the "the c++ stanard library". unfortunately it's already reserved
 
5:18 PM
fjghglwehwlherkler . FFS they still make Flash sites? Now I can't fucking use Google Translate to understand this crap. The hell with Flash amfklhgalkewgakhwg.
 
@bamboon: I also have a copy of the C++ STL
 
@MooingDuck better bitch slap that code. show it who's boss
 
in fact, I think everybody in this room has one
 
If only the English version of the site was all in English.
 
5:20 PM
I have a strong urge to punch someone.
 
@netcoder Really? Cause the STL is so 1995.
 
@DeadMG STandard Library :P
 
@R.MartinhoFernandes lol
 
StandarT Library
 
Ew.
Ok, German folks, what does "PLZ, Ort" mean?
 
5:22 PM
STepanov and Lee :p
 
Google says it means "plz place,". Somehow I doubt it.
 
@R.MartinhoFernandes PLZ = postal code; Ort = city
 
@NikiC Thanks.
 
Hello World!
 
Apparently we are the world.
 
5:33 PM
Yep
I am reading the "10 Rules", when I finish form them I'll get back to hear we need to talk :P
 
Amazing new bug: if you press '4', it deletes the player and crashes the game. I'll be goddamn intrigued to learn how I'm causing that.
 
Oh.
Did VS2012 fix the issue of automatically moving stuff from returns?
 
sbi
I sent you a mail, @R.Martinho, which you had better acted on soon.
 
@sbi This morning?
I'm working on it.
 
sbi
@R.MartinhoFernandes Ah, Ok.
 
5:37 PM
@R.MartinhoFernandes I think so.
 
One minor detail that could probably be added to the rules (by somebody who can edit them): along with ideone, it probably wouldn't add a mention of live workspace.
 
@MooingDuck My code is revolting
 
sbi
> If anybody out there finds themselves sued because of violation of patents regarding streaming video and payment systems then here is a standing offer to give you a full packet of data with a detailed timeline documenting the first use of streaming video on the world-wide-web [...], the first use of pay-per-view and subscription based access to streaming video and audio and many more such milestones. — Jacques Mattheij
3
 
5:58 PM
What is a good resource to learn linear programming problems in C or C++?
 
What is linear programming?
 

« first day (709 days earlier)      last day (4248 days later) »