« first day (914 days earlier)      last day (4036 days later) » 

6:00 PM
or what was it called again? Droidophone?
 
@EtiennedeMartel Yeah I don't even know how well the voice component works, because we mostly use it as a text IM
 
@melak47 that's fancy name for that sweet nexus 4 heading my way.
 
And for sending files
 
@CatPlusPlus ugh
 
@CatPlusPlus Oh, as text IM, it sucks ass.
 
6:00 PM
Googled Robophone was not disappointed.
 
Also for sending files.
 
I KNOW
 
@EtiennedeMartel why I don't have you in contacts yet?
 
But for voice, it's probably the best thing on the market.
 
@BartekBanachewicz ordered mine today!
 
6:00 PM
@rlemon high 5
 
@BartekBanachewicz Good question.
 
I'd rather use Mumble for voice
 
also one of the guys in the JS room ordered one today as well. :/
 
@EtiennedeMartel I'm foundable by "Bajtek"
@rlemon nailed it
 
6:01 PM
@BartekBanachewicz It's only 300$ !?!?!?
or is there some hidden must have contract clause that i missed
 
@Borgleader a tad more, because I got 16GB version
 
what is the price in Poland.
in Candaa $359+tax+sh for 16gb
 
I paid 1345 PLN to not be bugged with USA shipping
 
@BartekBanachewicz Damn.... I might upgrade my Nexus One to that....
 
If it's more than 300$ then above 1kPLN
For a phone
Mkay
 
6:02 PM
@rlemon apparently like $420
 
$440.02 CND - after tax and shipping I payed $422 :P
so very close
 
apparently Canada is also a developing country
 
@CatPlusPlus Skype is much better at noise cancellation.
 
I know in some places they are almost double that
@BartekBanachewicz we're $10 more than the states for price :/
 
@EtiennedeMartel Maybe
 
6:03 PM
I mean, I can leave it on continuous and not bother anyone. Mumble requires PTT otherwise background noise fucks up the conversation.
 
which makes no sense to me as our dollar is pretty well par
 
@CatPlusPlus we already had that discussion, I believe
@EtiennedeMartel teamspeak handles that nicely too
 
@BartekBanachewicz He's an old geezer.
 
@BartekBanachewicz I'm just laughing at you at this point
 
@rlemon it's not about the currency
@CatPlusPlus and feel free to do so!
 
6:04 PM
@BartekBanachewicz That's the codec we use for Mumble, I think, and it sucks.
 
@EtiennedeMartel We use GSM on our TS3 :)
 
It's not really a codec-level feature
 
I know. but for Canada/US you would think that they would keep the price point the same (but i'm just the hopeful Canadian)
 
@BartekBanachewicz Too much work.
 
@EtiennedeMartel are you from Orford or Montreal?
 
6:05 PM
I'm ~2 hours from the border. if I were closer I would drive over. but ~2 hours is much more than $10 in gas or the $16 to ship it
 
@EtiennedeMartel Apparently Dolby Axon is pretty good for that too.
 
@BartekBanachewicz Montreal.
 
yay more canucks!
 
user142019
Can I move a char* into an std::string?
 
@EtiennedeMartel I've sent ya an im.
 
user142019
6:06 PM
As in, no copy.
 
@Zoidberg that would require rvalue ref for char*
but I am not sure if string has that constructor
 
@Zoidberg Probably not
 
user142019
Ah okay. :P
 
Unless you do it a lot or it's a very large bytestring then it doesn't matter anyway
 
user142019
I was just wondering.
 
6:08 PM
Are live updates working?
 
You shouldn't have any standalone char* shit in the first place :v:
 
Anyone mind checking program for completion?
 
user142019
I do.
 
Yes we probably mind
 
Oh right, I should go to the actuall c++ help room :P
 
6:09 PM
@Drise the Real room
 
lol
 
@Drise also I always forget, are you the Lil Wayne guy?
 
Hows this then: who would want to critique my program?
 
@Zoidberg You could start with an empty string and then hack the char* in there with casts and knowledge of the internal layout :)
 
@Drise depends on the answer to previous question
@FredOverflow grrrr
 
user142019
6:11 PM
@FredOverflow I'd rather write my own string class. :v
 
@BartekBanachewicz Bitches Love Me - Lil Wayne ft Drake & Future
 
@Drise oh god yes it's you.
 
It's walys always been me
 
Reeeeinnfffooooorceeemeents!!
 
6:12 PM
@BartekBanachewicz What? :D
 
user142019
NSString has initWithCharactersNoCopy:length:freeWhenDone: but the characters have to be unichars.
 
oh thank god @Jerry is here hides behind Jerry
 
fuck me
 
Oh geez... I don't know what's better: Code that benchmarks the console, or no code at all... — Mysticial 11 secs ago
 
@Drise newfags can't striketrough
 
6:13 PM
@BartekBanachewicz I'm not newfag, just oldfag who left because he couldnt handle himself appropriately in the room
 
@Drise that's not yours to decide :P
> I heard that java and C# where faster than native languages C/C++, but these results shows exactly the opposite
 
I've heard that for C#, never for Java
 
@Drise It sucks
 
@Mysticial I heard that Windows is fazter then Iphone can you confirm ugrent PLZ??!?!!?!
 
java is interpreted language and c++ is compiler language — Tamil Selvan 9 mins ago
 
6:14 PM
@Mysticial No code at all. At least then it's obvious that it's all BS.
 
so much fail ITT
 
or rather the story about the guy who took like 2 weeks to optimize the C++ so it could beat C#
 
@CatPlusPlus Yea, it does :/
 
@kbok I lol'd irl
 
Nooo not idiots talking about languages and performance
 
@CatPlusPlus yes yes yes
 
Reloading chat makes Firefox almost hang itself
 
@EtiennedeMartel I betcha it was only to make CodeRev run, ya know, basic posts
 
Time for a restart
Fuck all browsers
 
@Borgleader In Java, substring is O(1), but in C++, substring is O(n). Hence, Java is faster :D
 
6:16 PM
@FredOverflow Yes... Of course...
 
Well, C# has some performance problems in an Unix environment though.
 
Well duh...
 
@Borgleader On the other hand, appending a character to a string is O(n) in Java, so...
 
@Morwenn mmm?
It does
 
Stop talking stop talking stop talking
 
6:17 PM
That's what we call "irony" guys.
 
@ScottW :)
 
No, it's not
 
@Morwenn :|
 
Also, which Firefox version was supposed to have this new JS engine
 
@CatPlusPlus Yes. Aaaaaaaaaand the rest of the bloat
 
user142019
6:18 PM
Somewhere between version 18 and version 30.
 
user142019
:lol:
 
@ScottW wrong room
@Morwenn no, that's what we call bullshit FYI
 

Java Sucks!

JavaScript Sucks!
 
@Bartek xD
 
@ScottW I wouldn't fuck that.
 
@BartekBanachewicz Fun!
 
@StackedCrooked kudos to Kate G. for retweeting that
We now log all answers given by users, correct or not. This will enable us to run some interesting statistics. Give us data! :)
 
I just gave them a lot of bad answers. Cuz I'm an idiot (and can't read)
 
what I did too
> The templated function will be instantiated as void f(int&), which is a better match than f(const int&).
:/
 
on the first question I never saw the first call ( foo("bar"); ) so i was confused and tried all the possible dropdown options -.-;
 
6:30 PM
@Borgleader order is random fyi
 
Oh, well you'll see what I mean when you get to it
 
Guys, is LWS down for you as well, or is it just my problem?
 
aha!
> The initialization order of member variables is determined by their order of declaration, not their order in the initialization list.
I knew it! :3
 
@StackedCrooked Yeah I'm looking at that one too.
 
6:32 PM
@AndyProwl it's your problem because I don't care :D
 
@BartekBanachewicz I got that wrong because I put compiler error.
 
@BartekBanachewicz I find that to be intuitive oddly enough.
 
@melak47 lol, thanks a lot
 
@AndyProwl dunno if this worx
 
@Rapptz oh. I remembered that from constant compiler warnings
 
6:33 PM
@JohanLarsson Damn. It's just me :) Thank you
 
Number 15 is annoying.
 
hey @Andy, quiz! :)
 
@BartekBanachewicz Bring it on :)
 
@AndyProwl I meant quiz ! :)
 
Whats the difference between "unspecified" and "undefined" ?
 
6:34 PM
I betcha you can score 100%
It's rather nice one, anyway
 
@BartekBanachewicz Oh! Haven't seen that. No, I wouldn't bet a cent on that ;)
 
@AndyProwl at least give it a shot.
 
@Borgleader unspecified - specification doesn't say, undefined - specification says it's undefined....maybe? idk :D
 
I will
 
@Borgleader f(g(),h()) is unspecified, you never know what order your functions will be evaluated inside f. But it's defined that f will be evaluated after g and h.
Just an example.
 
6:35 PM
Hai Guise! I'm back home, and back to the Lounge. :)
 
ah, void* is lame. I got it correct, but it's fugly
@TonyTheLion nice. Do the harlem shake quiz
 
@BartekBanachewicz tomo maybe, bit too tired today
 
"You've answered 17 of 17 questions correctly.", but it is keeping asking questions
 
@EtiennedeMartel maybe add for random questions try C# room (not joking)
 
That exception question was fun
:)
 
6:42 PM
@Borgleader about static?
 
@EvgenyPanasyuk the one with std::exception in the constructor (its on the starboard)
 
@AndyProwl It was down for me since yesterday
 
@Borgleader yes, that one was interesting
 
@sehe Oh, ok, then I will just wait. Thank you
 
"You've answered 17 of 17 questions correctly." whee.
 
6:46 PM
I'll just leave this here
 
Should make a quiz for order of evaluation and then OoE questions on SO can be autoclosed with a link to the quiz.
 
lol i did really awful mostly because i didnt pay attention. I did learn a few things though.
I didn't know which would be destructed first, global vars or function static vars
 
#include <iostream>
int main()
{
    std::cout << "Is this standard conformant?" << std::endl;
}
 
user142019
@ScottW only litb is able to answer all questions correctly.
 
Oh and on the first question I got I chose "compile error" because I thought it would fail because of no return statement in int main
 
6:52 PM
@Rapptz TBH I flunked the string const& vs. void* overload question. I learned a thing!
@ScottW Never doubted that one. Just think: what other result would have been sane?
@EvgenyPanasyuk Yes. Standards conforming and perhaps even compliant.
 
@sehe As far as I know - it is OK in C++11, but not in C++98/03
 
Wait, what's wrong with it? I must be blind
 
std::endl is in <ostream>
 
@EvgenyPanasyuk I think it's ok in C++, but not in C89/C99 (hope I remember the years)
@EvgenyPanasyuk no freaking way. That's amaizing
No implementation. Ever :)
 
@EvgenyPanasyuk <iostream> is required to include <ostream> and <istream> IIRC.
 
6:55 PM
read bottom of STL's answer
 
@Rapptz Don't think so. Most implementations do
 
@EvgenyPanasyuk And so is cout.
 
@R.MartinhoFernandes ?! Really? I'd have sworn cout is solid inside iostream
 
STL's quote: "This is actually an interesting story. In C++98/03, <iostream> provides cout but not endl, which lives in <ostream>. I followed those rules strictly. In C++11, <iostream> is now required to include (or behave as if it includes) <ostream>"
 
> This is actually an interesting story. In C++98/03, <iostream> provides cout but not endl, which lives in <ostream> quote
hehe. Mine's better :)
 
6:57 PM
:)
So, this one contains "bug".
 
@Shog needs to unlock it so the truth can be made known!
 
needs to unlock what?
 
@Rapptz bit late seeing everybody already quoted STL on the relevant change... Thanks anyway
 
Well he said "or behave as if it includes" so I went to check
 
7:02 PM
@Rapptz Yes, that is what the synopsis you've shown mandates.
 
@Borgleader The April Fools' question. All the answers are wrong.
 
I have no idea if constexpr char a {}, b {}, c{}; does what I want it to do. I'll pretend it does.
 
@R.MartinhoFernandes yes :)
 
@LucDanton why wouldn't you respell it? FWIW my 'guess' is a, b, and c will all equal a constexpr char(0)
 
7:06 PM
@EtiennedeMartel LOL
 
Ell
I hope ubuntu native API is nice
I think it will use QML
 
@sehe Line noise. I don't consider constexpr super-vital information for variables.
 
that'd depend on what you're using them for :|
 
No. constexpr is not a guarantee of anything (except for the implied const).
static_assert( a == '\0', "wut?" ); can be rejected by the compiler if it doesn't feel like it can cope with the constant expression.
 
@ScottW Slow, but still the expected response :)
 
7:12 PM
@Borgleader Pretty good, eh.
 
@Borgleader Undefined means anything can happen, including things completely unrelated to whatever you're doing that's undefined. Unspecified means one of a limited number of choices can be selected, and nothing else. (e.g., in f(a, b), the evaluation order might be a then b or vice versa, but that's it. With f(a++, a++), it might format your hard drive.
 
find / -iname "*g++*" shows no GCC 4.8... WTF was installed, then?
 
@R.MartinhoFernandes Install g++-4.8?
 
@EtiennedeMartel Definitely quite good. Especially since the sentence means absolutely nothing. Politics at its finest.
 
(Pretty unlikely I would say, but who knows.)
 
7:13 PM
There is only a gcc package, no g++.
 
@JerryCoffin Let's say I have: void f() { int a; std::cout << a; } is that undefined or unspecified?
or neither?
because i know it prints garbage, i just dont know what category it falls under
 
Can give gcc-4.8 -x c++ a shot :s
Or check output of gcc-4.8 --version for C++. Ya know, that option I suggested.
 
@Zoidberg I answered all correctly (except one where I must have done a typo, because I reentered what I thought I did the first time, and it then said it was correct).
 
(Not interested in the excuse.)
 
user142019
@JerryCoffin on exams, unreadable answers don't count, so on this quiz typos don't count either. :<
 
7:16 PM
@Borgleader lvalue to rvalue conversion on an uninitialized variable -> undefined. (§4.1/1, in case anybody cares).
 
Ah ok, thank you :)
 
gcc has special function, which sole purpose is to trigger undefined behaviour.
 
user142019
clang has that too.
 
user142019
And LLVM has an instruction for it.
 
void __builtin_unreachable (void) - "If control flow reaches the point of the __builtin_unreachable, the program is undefined."
 
7:19 PM
You can write any function for that purpose.
 
it can be used to relax some semantics: int a=foo(); if(a<0) __builtin_unreachable(); /*...*/
 
@R.MartinhoFernandes I just installed gcc-4.7 and g++ also comes with it
 
/usr/include/boost/range/sub_range.hpp:15:21: error: missing binary operator before token "("
 
7:29 PM
anyone have suggestions for books on GUI/HMI design?
 
@R.MartinhoFernandes your beloved ranges :P
 
@R.MartinhoFernandes mmm!?
@LucDanton I'm repurposing the VPS that ran mindcrack :( A latest world snapshot is uploading to downloads.sehe.nl/stackoverflow/minecraft (will be ready in about 5 minutes). I still have the full git repo if you care about it
 
Ell
android is just ugly as fuck.
 
@sehe I still have the last backup I made.
 
Arghhm I hate these sites that cannot be curled.
 
7:38 PM
@LucDanton But but but - people have used it, and it ran till ~15 minutes ago! All those changes (really, not much)
 
I wonder who had the stupid idea of serving blank pages full of JavaScript that load the page afterwards. I already have a browser, thank you very much.
 
@sehe 'Have used it' as in went on to go sightseeing, or actual gameplay? (Sorry if you don't know.)
 
@R.MartinhoFernandes Define uncurlable :) Do an authenticating proxy and or robots.txt override / UAgent override
@LucDanton I don't actually know. I believe @Zoidberg went on it briefly, perhaps more than once. I did salvage the server logs so I could check it if need be
@R.MartinhoFernandes Programmers are control junkies
 
@sehe Nah, I still consider that the server has been 'officially' shutdown since way back.
 
@LucDanton Good. I'll keep the tarballs around as long as they don't get in the way
 
7:47 PM
@Pawnguy7 :)
oh 9 stars
 
Boost 1.46? What kind of joke is this_
 
<3 you guys
@R.MartinhoFernandes hey, come on. It's apt-getted. That can be changed
 
@Fanael that's not needed anymore. It's been fixed/patched since I added that file.
 
TIL VS2012 has filesystem
 
@R.MartinhoFernandes where?
 
7:50 PM
@Borgleader boost.filesystem v3 is better
 
@ScottW Please, can I get out. NOW?!
Nah. Not the worst
 
@Abyx It's not header only.
 
user142019
@sehe I had my own MindCrack server.
 
@Zoidberg u on crack
 
@Borgleader so what?
 
7:51 PM
I don't want to host a bajillion .libs on my repo
 
user142019
@sehe no.
 
libs in VCS rep? meh that's lame
 
user142019
I don't do drugs, FYI.
 
Wooot. A genuine build failure.
 
user142019
@ScottW IOW, the worst job ever.
 
Ell
7:52 PM
Does anyone know of a really easy to use webserver I can use to test my HTTP requests?
 
@Ell -- you are kidding, right
 
Ell
no :3
I don't know if it's sending POST data or not >.<
 
Python has a builtin webserver thingie
 
Python's webserver is about as easy as it gets
google it
 
@Ell Windows -> fiddler ? Linux? wireshark
 
7:53 PM
-2
Q: Bcc C++ problems

Nermin XawHy guys i have a problem with my progrem /class so hers the code of the classes and program: Class1 #include<iostream.h> #include "Student.h" using namespace std; class BazaStudenata{ public: Student* studenti; int brstudenata; int kapacitet; void pretragaPoImenu(char*); bool operator+(Student&

 
user142019
@Ell match the first line of the request against ^POST.
 
calm.
the fuck.
down.
 
@Ell: Use curl.
 
user142019
@sehe calm up.
 
7:54 PM
oh, server
 
What shall I calm up?
The fuck, perchance?
 
@LightnessRacesinOrbit Downboated
 
@Borgleader wow!
@ScottW source forge -.-
 
 
@BartekBanachewicz Not sure if sarcasm or surprised VS actually has something new
 
7:56 PM
@sehe brings back memories
 
@ScottW oh that was you?
 
@Borgleader is filesystem std already?
 
no it's TR2
 
"The <filesystem> header is not a C++ standard, although it is being proposed for standardization. If it is adopted as a standard, we will investigate the impact on the interface."
 
7:56 PM
In 2013 VS has TR2 features but not all of C++11
"a standard" morons
 
For context, TR2 was abandoned.
 
@LightnessRacesinOrbit I think it's because someone else is implementing their library.
 
Ell
Ubuntu server? :3
 
@R.MartinhoFernandes Really?
 
> operator!= (STL)
> Inequality operator that is used with basic_path, basic_directory_iterator, and basic_recursive_directory_iterator objects.
are you kidding me
what the fuck do these operators have to do with the STL or the standard library?!?!?1?1?1?1?1?1?1
 
7:58 PM
@LightnessRacesinOrbit Damn, must irks you to see that "STL" thing.
 
@Ell Sorry got sidetracked. Yeah. I started a 'real' coliru instance just now /cc @StackedCrooked (from scratch)
 
@EtiennedeMartel They stopped to work on C++11 instead and then the new TS thingy came up.
 
@ScottW No but he was going on about it earlier
@ScottW So I FB stalked you
(where "going on about it" = "posted one small screenshot")
 
Woot, running tests now.
 

« first day (914 days earlier)      last day (4036 days later) »