« first day (1110 days earlier)      last day (3840 days later) » 

2:00 PM
also I've just moved my desk
 
user784668
@BartekBanachewicz you're Bartek you don't count
 
@BartekBanachewicz sorry, didn't notice you here : P
 
@DavidKron so you want to use regex to match something, what exactly do you want to match. (trying to help you rubber duck this one)
@BartekBanachewicz 10cm to the east?
 
@sbi I'll say up front I'm not looking to apply, but I am curious about that embedded/limited resources/C++ thing. How does a real (and I assume not completely incompetent) company handle C++ in embedded situations, wrt template usage, exceptions and what kind of C++11 support do you generally have? I know, a bunch of uninteresting questions, as I said I was curious ;-)
 
@thecoshman actually it now faces the door
which saves me from turning around every damn time
 
2:01 PM
@BartekBanachewicz oh, brave change
 
@BartekBanachewicz now you're The Man
 
one of our mates from here got promoted and left us
 
@DavidKron What do you want to do with the empty lines? Drop them?
 
@BartoszKP sure I am.
 
@rubenvb They use C++03 with tr1 and boost I think.
 
2:01 PM
@rubenvb IIRC it's C++03 he is stuck with for some reason
 
@thecoshman I'm pretty sure you got hot and cool confused
 
@thecoshman I want it to match newlines and whitespace, greedy. However when i do, lines only containing \n are returned.
 
string.split("\\s+");
"asdasd
\n
asdads" should give "asdasd" and "asdads"
I get, "asdasd", "\n", "asdads"
 
@DavidKron just split strings. any decent api allows you to disregard any empty tokens anyway. Anyways, question probably asked 723 times on SO
 
2:04 PM
why do you not just split by newlines.
 
$(\s*$)* in multiline mode?
 
why are you using regex
 
hfdashjfgdafa
 
@DavidKron is this a Java-style method called on a C# style built-in ? ;0
 
oh wait we're not typing random shit, that's regex
 
2:06 PM
We, fuck this im going find
 
@DavidKron Wut. Now, find is a substitute for regex? What is this? Bash programming?
 
@sehe it's called erratic programming
 
@R.MartinhoFernandes Way too helpful
 
UK Govt. civil service ineptness story #1089324546:
Four of my family members snail-mailed, (they needed real signatures), 'urgent' forms in to 'Dept. X'. The forms were provided by X and had the postal address printed on the last page. A week later, they have all come back 'unable to deliver'. Telecon: "Oh - we've moved, the form must be old-we'll email the new address". The forms are also available for download, but the pdf's also have the old address:( When did X move offices? 2012. Fuck me....
 
Whats up with the spam today?
 
2:08 PM
Did David plonk me?
 
@sehe yes, you bash the computer until it works.
 
@R.MartinhoFernandes erratic programming usually comes in pair with erratic reading
 
@R.MartinhoFernandes No:
3 mins ago, by sehe
@R.MartinhoFernandes Way too helpful
Oh wait, it's about C# even. This question is really too simple and asked 723² times at SO
 
user1804599
Gmail puts invoices in my spamfolder. I like the way it thinks.
 
@rightfold I like your new avatar
 
user1804599
2:12 PM
@BartekBanachewicz I like your new avatar
 
circle jerks
 
@rightfold you do? Everyone complained how it's a dark blob
 
get a room
 
I like my new avatar
 
user1804599
Squarejerking.
 
2:13 PM
@sehe maturity
 
user1804599
@BartekBanachewicz I like dark blobs.
 
user1804599
@sehe You have that avatar since I discovered std::istream keeps track of what input to read. :|
 
user1804599
That’s about, over two years ago.
 
user784668
@rightfold thatsthepoint.bmp
 
oooh, so this is why @sehe is grumpy :P
 
2:14 PM
Also the light effect is supposingly called counter light
 
@rightfold Yup! Glad you noticed! It's new
 
@rubenvb I gave up at 'no debugger'. Every embedded board I've ever designed has a JTAG debugger port. No debuggee, no workee.
 
user1804599
I liked your old red identicon better.
 
not-sehe?
 
@BartekBanachewicz Prior to polar
 
user1804599
2:15 PM
No. sehe.
 
@sehe god I'm not that old
though I came here when Cicada still was a girl so
heh funny times.
 
user1804599
> came
2
 
user1804599
Dat unintentional pun.
 
I don't even. You're terriblestest.
 
: d
 
rad
2:17 PM
hi people is it ok interrupt with a c++ best practice question?
 
oh yeah, the bug, has it given up altogether, or does it still pop in every so often?
 
@rad yeah we're talking about sex
 
@rad doubt it
 
I tried that, but it's strange as VS says, that cout is not a member of std and it forces me to add some strange header file stdafx.h. — Fiodor 13 mins ago
 
@rad read the tags, top right corner
 
2:17 PM
I didn't know trolls had sexes until the Lounge.
 
user784668
@rad of course!
 
user1804599
@rad I am in a very good mood, so go ahead.
 
@thecoshman I figure he's busy in the strange land.
 
user1804599
As long as you don’t post a giant wall of code.
 
@rightfold too late for restrictions
 
rad
2:18 PM
:) thanks, i need to implement security features authentication and authorization in a c++ vlient server application
 
..and return from interrupt quickly.
 
@rad "vlient"
 
rad
client
 
Oh - I see that's not an option.
 
@BartekBanachewicz oh yeah, he feel into that mistake of country didn't he
 
user1804599
2:19 PM
Question about C++ best practices? Avoid new and you’ll be fine.
 
I've had servers become violent before now.
 
rad
i guess i came to the wrong neighborhood :)
 
@rad it's a very nice neighborhood!
 
rad
anybody who did what i asked ?
 
user1804599
But our neighbours are not very nice.
 
2:20 PM
@rubenvb lol accepted answer uses printf, poor guy is already in the C path.
 
@rad It's not a one-liner answer, is it? Ask on SO.
 
@rad use well-known opensource solutions, like OpenSSL
 
user1804599
Nothing wrong with printf per se.
 
rad
openssl
 
user1804599
It only sucks in generic contexts.
 
user1804599
2:21 PM
And in non-generic contexts any decent implementation gives an error if you pass in values of the wrong data types.
 
It sucks everywhere the same.
 
@rad I am not very proficient in that "security" business
@rightfold I second robot, it sucks balls deep
 
@rightfold And then what do you do?
 
rad
direct me to the right people then
 
user1804599
I fix the code.
 
2:22 PM
@BartekBanachewicz S'OK - neither is Adobe, aparrently.
 
user1804599
Duh wtf. :V
 
@rightfold How?
 
user1804599
Eh, by using the correct format specifiers?
 
@rad it's a complicated topic :S
 
@rightfold Good luck with that %ns::foo format specifier.
 
2:23 PM
Hey Guys, Does anyone know if you get an error when your dhcp lease expires and your explicitly bound to an interface ( in c++ on window, or linux )
 
"there is one possible mistake that implementations warn about" => "printf has nothing wrong".
 
@WillemD'haeseleer depends.
 
@rightfold Not far from the truth
 
user1804599
That’s like saying std::sqrt sucks because it doesn’t work with your custom numeric data type.
 
@rightfold that wouldn't be acceptable in say, haskell
 
2:24 PM
@BartekBanachewicz on what does it depend ?
 
Ell
Hi again
 
user1804599
C++ is totally Haskell.
 
@rightfold And... it does?
 
@WillemD'haeseleer a shitload of things
 
all right, time to do something constructive
cya!
 
2:24 PM
@rightfold I thought we weren't bound to a language in this discussion
 
that's great, lets say i call select on windows, will i get a specific error code ?
 
Hrm.
 
setting up a dhcp server to test this seems kind of cumbersome, so if you have any experience with this it would be nice to hear
 
@WillemD'haeseleer That's pretty high-level. The stack should just get a new lease, IIRC.
 
@WillemD'haeseleer why don't you check in documentation?
 
Ell
2:25 PM
What do you guys do when nobody answers your question?
 
Also I requested my first vacation ever
I had 22 days left in this year
 
@BartekBanachewicz Where you gonna go?
 
@MartinJames I think I'll just sit at home and do nothing.
maybe we'll go to Kraków :)
 
@BartekBanachewicz the question pretty much boils down to, will my application keep listing to the old ip, or will the OS handle this
 
2:28 PM
@EtiennedeMartel What about it?
 
@TonyTheLion I just realized that this code sample didn't compile for two years now.
 
@WillemD'haeseleer typically everything breaks
 
And this random stranger went and fixed it.
 
@BartekBanachewicz I think I fixed it.
 
i was sort of thinking that
 
2:29 PM
@WillemD'haeseleer Usually, the stack requests a new lease on the old IP address, which is usually granted. I'm not sure what happens if it is not:(
 
@EtiennedeMartel oh I see
 
Although, I thought SFML fonts failed silently if you drew them without fonts?
 
@MartinJames If it's not i'm pretty sure you ether get a new ip or you end up without ip
 
Anyway, I was passing a Resource around, which had the font.
It was passed as a variadic argument, by value.
 
@MartinJames If it's not i'm pretty sure you ether get a new ip or you end up without ip
 
2:31 PM
@WillemD'haeseleer Yeah - the only time I've looked at that the lease 'extension' was granted.
 
Ell
Why is there no private for namespaces?
 
user1804599
Stack Overflow is down. :<
 
cum_moving_average
 
user1804599
> An exception occurred while processing your request. Additionally, another exception occurred while executing the custom error page for the first exception.
 
@rightfold Yup - here too.
 
2:34 PM
A friend just sent me this
 
@R.MartinhoFernandes Smooth.
 
user1804599
@BartekBanachewicz hmm.
 
@BartekBanachewicz ?
 
SO: 'Server Error in '/' Application' :)
 
2:35 PM
@R.MartinhoFernandes well, why doesn't it compile? Or else, why does inside of parens evaluate to basic_ostream and not stringstream?
 
user1804599
Ugh.
 
@Ell namespace detail :S
 
@Ell like, unnamed namespaces?
 
user1804599
Redirecting to an error page.
 
user1804599
Why can’t people make software.
 
2:36 PM
@BartekBanachewicz It's a well-known issue.
 
@R.MartinhoFernandes excuse me?
 
stringstream doesn't overload op<<
(Do you write only ostream& op<<(ostream&, T const&) for your types, or do you also write stringstream& op<<(stringstream&, T const&) ?)
 
user784668
@BartekBanachewicz cool
 
user1804599
Meh subtype polymorphism.
 
@R.MartinhoFernandes so it sorta "decays" to ostream or what?
 
2:38 PM
Hmm. A crash report.
"So, I gave it invalid data and it crashed."
I guess I'm gonna have to add some validation in there.
 
@BartekBanachewicz It just uses the same op<< that exist for all other streams.
 
user784668
@BartekBanachewicz operator<< returns std::basic_ostream<stuff>&
 
@BartekBanachewicz stringstream::operator<< does not exist, so ostream::operator<< is called, returning an ostream&
 
Well he sent me a "solution", dynamic_cast<stringstream&>, which looks terribad but works
 
2:39 PM
And str() is not part of ostream or istream?
 
@Pawnguy7 nope. What would it return?
 
@Pawnguy7 nope, only of stringstream
 
The contents of the stream?
 
user784668
@BartekBanachewicz static_cast enough
 
@Pawnguy7 what would that be? The content of any stream, that is.
 
2:40 PM
SO down?
 
user784668
@bamboon Bartek is DoSing it
 
e.g. a socketstream where everything you write into it goes out the door immediately.
 
std::ostream out; out << "text"; out.str(); //"text"?
 
@Pawnguy7 ostream is abstract
that's how string stream works, hence str
 
Oh.
I am not very familiar with the streams :\
 
user784668
2:42 PM
@BartekBanachewicz What do you mean by "abstract"?
 
@Fanael you cannot instance it, can you?
 
@Pawnguy7 std::ofstream out("blah"); out << twenty_gigabytes_of_data_I_want_to_write_on_this_file; out.str(); // what?
 
user784668
@BartekBanachewicz Of course you can.
 
SO is down?
 
user1804599
2:43 PM
Heh, stackstatus.net uses Tumblr.
 
user784668
@BartekBanachewicz std::ostream out(some_streambuf);
 
@R.MartinhoFernandes "blah" + twenty_gigabytes?
 
@rightfold Tumblr is more stable than SO.
 
@Fanael OIC
 
user1804599
@EtiennedeMartel nice.
 
2:44 PM
@Pawnguy7 (Wait, why "blah"? That's a filename) You want filestreams to store everything you write to them forever just in case someone might call str() on them?
 
Oh. I missed the f there. I didn't realize the flags had a default parameter.
Well. What is the behavior of stringstream::str()?
I wasn't aware it had a limit, but the only thing I have used it for is string/number conversion.
 
ergh... why can't people turn of the noise for outlook reminders. you get this chrime ring out over the entire office.
 
@Pawnguy7 stringstream is the only one designed to store things in memory.
It's the sole reason it exists.
 
Aahahhahaha
 
user784668
@Pawnguy7 Returns rdbuf()->str().
 
2:46 PM
I have to write GPS-using crap for Windows Phone class
And display it on the map
 
user1804599
Sounds fun.
 
@CatPlusPlus trivial shit is trivial, yay!
 
Ahahaha but get this
GPS class returns Geoposition object that has Geolocation within
But map uses completely unrelated GeoLocation
And yes they differ in casing
:laffo:
 
@Pawnguy7 It's not like there's a limit, but it's not reasonable for an arbitrary stream to store all the data you write to it indefinitely. If you're sending stuff over the network, you don't want to hold it around.
 
user1804599
lolugh
 
2:48 PM
> Converting a Geocoordinate to a GeoCoordinate
This is real, actual thing
 
Can someone give me a valid source of information stating that destructors are not a kind of garbage collection, so i can shove it up my friends face.
 
@R.MartinhoFernandes Sounds almost like an invitation for another of my rants that we should rid ourselves of the distinction between "memory" and "files". We should just map storage to address space, and be able to give arbitrary names to sections of address space.
 
@CatPlusPlus Oh, I'm not opening that, I have enough nightmares of my own.
 
@JerryCoffin That's still not about storage, though.
 
@CatPlusPlus Vat.
 
user1804599
2:49 PM
I liked Core Location API.
 
@CatPlusPlus who the hell is responsible for that?
 
@DavidKron Well. They are much more useful as they is deterministic.
 
@CatPlusPlus Impressive.
 
@DavidKron Garbage collection is a incomplete, non-deterministic form of destructor. Source: me.
 
@CatPlusPlus geocoordinate.Altitude ?? Double.NaN
lol
 
2:50 PM
@rightfold Is it because it's Cocoa stuff and you're determined to suck Apple's dick with all your might at this point?
6
 
user1804599
No. :V
 
@CatPlusPlus Needs more stars.
 
@R.MartinhoFernandes We need a "purely ironic anti-star".
 
@JerryCoffin I know, Ive said about the same, still as its more a question in terminology other than arguments, id need some valid terminology source
 
@R.MartinhoFernandes I'll do my part.
 
2:52 PM
Would someone please let this "expert" know that he is the only C++ programmer who considers the word "assignment" vs "initialization" to be a stylistic choice rather than a matter of correctness?
2
A: Trying to learn C++ constructors, why in this example is there a colon in the constructor?

Paul GriffithsThis: template<class T> Queue<T>::Queue(): frontPtr(NULL), backPtr(NULL), count(0) { } achieves broadly the same end as: template<class T> Queue<T>::Queue() { frontPtr = NULL; backPtr = NULL; count = 0; } with some important differences, including: with an initializer list, yo...

 
@DavidKron Are you saying I'm invalid?
 
@JerryCoffin No, he will
 
@JerryCoffin You definitely need some validation.
 
@BenVoigt Oh gosh, those people.
 
@DavidKron Would a picture of me walking be sufficient proof that I'm not an invalid?
 
2:53 PM
> Interested in world domination and intergalactic travel.
 
@JerryCoffin That would still be a valid programmer tho
 
@BenVoigt Maybe because it's full of shit?
 
user784668
@JerryCoffin Photoshopped.
 
I lured him here.
Let's see how things goes.
room topic changed to Lounge<C++>: In Belgium this message can't be changed. But in Belgium it can. [c++] [c++11] [c++1y] [no-questions]
 
SO: 'Oops! Something Bad Happened!'
 
JBL
2:55 PM
@EtiennedeMartel Dat bait.
 
"Something bad" = "we let users post content"
3
 
I'm so smooth.
 
@BenVoigt I'll start with upvoting your comments vOv starts upvoting comments
 
I still don't understand the fascination with Belgium.
 
Cool thanks Bartek
 
user784668
2:56 PM
@BartekBanachewicz I'll start with upvoting the other guy's comments.
 
@Pawnguy7 Belgium is the land of the brave.
 
user784668
@Pawnguy7 Belgium is the only country exactly one Belgium big.
 
room topic changed to Lounge<C++>: Oh ffs [c++] [c++11] [c++1y] [no-questions]
2
 
@R.MartinhoFernandes :D
 
Noooooo.
 
room topic changed to Lounge<C++>: Where robots are traitors. [c++] [c++11] [c++1y] [no-questions]
 
@BenVoigt "thanks Bartek" sounds almost like "Jar Jar, you're a genius"
 
I knew it was a mistake coming here today. I have to make a short presentation tomorrow, and now I'm worred that questions about Cocoa dick-sucking might come up:(
 
@BartekBanachewicz see what I said a bit back?
 
@Fanael Would a video be better?
 
2:58 PM
@R.MartinhoFernandes It's a bit depressing.
 
user784668
@JerryCoffin Do you really think it's impossible to edit a video?
 
@Fanael Of course it is. I'm sure everything I see in the movies is real!
 

« first day (1110 days earlier)      last day (3840 days later) »