« first day (1311 days earlier)      last day (3640 days later) » 

3:00 PM
do these blobs of letters look familiar to anyone else?
"gnzlbg"
 
user3010322
Phtagn?
 
It's valid Perl, probably
 
and therefore there's absolutely no traits required?
er, you know they all have operator[] you can use, right?
 
Xeo
@ThePhD Err?
 
@Rapptz It's a semi-regular user.
 
3:00 PM
Oh yeah.
This guy.
 
user3010322
 
user3010322
 
Was wondering where I've seen it.
 
user3010322
@Xeo Well, think about it. I can return the begin/end iterator for bounds. Which is fine. But then, when I use a std:: algorithm that works over iterators, how do I take the result of the internal iteration of the function -- an index value -- and apply it meaningfully to a container?
 
3:02 PM
with operator[].
or cont.begin() + index.
 
@ThePhD That's... explained in the paper.
 
user3010322
@R.MartinhoFernandes You have to get the index value from it, though, and then apply it yourself with operator[] to what you want.
 
Why are you answering your own question?
 
user3010322
Rubs face.
 
user3010322
You know what, nevermind.
 
user3010322
3:06 PM
I'm dumb, and wasting my time and can't read obviously.
2
 
starbait not taken
 
@WilliamAndrewMontgomery Your loss; I found it cathartic!
 
@LightnessRacesinOrbit stop using words
 
@WilliamAndrewMontgomery :(
 
holy shit drugs so great.
I'm just thinking about what I'm writing on my CV, and man, I was sick as a dog.
 
3:10 PM
32 secs ago, by DeadMG
holy shit drugs so great.
Write this.
 
just say "hire me because i'm smart" or something
 
oh look Enumerator again
Is that you @Lightnes going through the bin again
 
you should also think about making it clear you only started looking for a job now
 
@WilliamAndrewMontgomery What the hell are you going on about?
 
3:11 PM
some might think you were unable to get a job all these years, and this might raise some red flags
 
:D Almost forgot about that one :D
 
Not even a full moon today
 
Someone went through the bin flagging old posts...
 
I see
I only have half an eye on the Lounge today so didn't see 'em
 
Now a user that isn't even around is suspended.
 
which user?
 
When they come back, they won't even know they were suspended.
 
@DeadMG Enuminator
 
ah
 
@R.MartinhoFernandes Effective
 
> This user has been automatically suspended for posting inappropriate content and cannot chat for 2 hours 27 minutes.
 
@SecondRikudo hah, nice
 
> I was at university when I developed IBS at the beginning of 2011- it's like a food allergy but to everything instead of just one food group and there's no clinical diagnostic test. Unfortunately eating is mandatory for survival so I've been quite sick since then until very recently, I got a new treatment which is super effective.
wat u guise fink
 
@Rapptz lol, 2:30 hours :D
 
@DeadMG What language did you develop it in?
Should be added
 
3:13 PM
lol
when medical science figures it out, I'll let you know.
but it's probably chemical.
 
I see is still the most popular tag on Anime & Manga 1.5 years later.
 
@AlexM. As usual, I wouldn't bother.
 
@Rapptz 1.5 years later than what?
 
Well honestly I don't think putting your medical condition on a CV is a good idea
 
private beta
 
3:15 PM
@R.MartinhoFernandes yeah in his case it might not be as ugly as a long pause between jobs
 
It might scare employers away (yeah it's stupid, but that's what happens :( )
 
Why is a long pause between jobs ugly?
 
@WilliamAndrewMontgomery Well, people are quite accurately gonna ask what I've been doing since I left university.
 
@WilliamAndrewMontgomery Good.
I don't want to work for those.
 
@DeadMG Wanking and binning stuff
 
3:15 PM
lol
and working on Wide.
 
@R.MartinhoFernandes here
17
Q: Why is a gap in employment dates considered bad?

Travis WilsonIt is common wisdom that a person who has gone for months or years without a job is at a disadvantage in the hiring process. Such a gap in employment dates is considered to be a red flag. Why? There are some answers to this question nestled in existing questions, e.g. How long is too long o...

 
@DeadMG "super effective" sounds childish. Try "extremely effective".
 
I'd like to write more about that but I'm a shit website designer.
 
> It is generally assumed that your career will be a progression of increasing productivity, responsibility, and authority. You would leave one job in order to "move up" to another position in another company.
 
@R.MartinhoFernandes I kind of agree. But yeah, it's not that simple I think.
 
3:16 PM
Ah, fuck it.
 
@JerryCoffin Super effective is, I'm pretty sure, a cultural reference, but I can't for the life of me remember what to. Pokemon?
 
Vertical progression is bullshit.
@DeadMG Yes.
 
@DeadMG answer them at an interview
don't mention it in the CV, it's redundant
 
@DeadMG He's too old, I think
 
you don't get an interview if you don't answer these questions in your CV.
especially when it's basically all there is to be written about you.
 
3:17 PM
@DeadMG yes--and pokemon references aren't likely to impress most employers.
 
There are only two meaningful vertical positions to hold as a programmer: guy that assigns tasks, and guy that gets tasks assigned.
 
yeah, I'm not gonna leave it as "super effective".
 
@DeadMG wait, what questions?
 
Xeo
I'd rather get tasks assigned, I'm more effective that way
 
it's just the first thing that comes to mind.
 
3:17 PM
@DeadMG I've been quite sick since then until very recently: I got a new treatment which is extremely effective.
 
2
Q: Does goku become the dragon itself at the end of dragon ball gt?

AneeshmgAt the end of the last episode in dragon ball gt, before we see junior goku fighting junior vegeta at the martial arts tournament, we see goku going for a ride with the dragon bidding farewell to all of his friends and after he does so, the dragon balls merge with his body. Does this mean he beco...

 
in your CV you're supposed to write about yourself
 
Anything else is bullshit..
 
lol
 
not answer questions
 
3:18 PM
@AlexM. The things you write should answer questions your employer wants to ask.
 
With your skills in C++ I don't think it would be hard for you to get a job
 
yeah, but I didn't get along too well with my university and it seems like a lot of companies can't or don't want to think about that.
 
@DeadMG the things you write should only list relevant info about your skills and at most be detailed enough to potentially start a discussion at an interview; no recruiter has the time to read long CVs
 
Xeo
"Hire me, I'm awesome"
 
@AlexM. Yes, they have.
 
Xeo
3:19 PM
Worked for me so far
:D
 
It's all they do and everyone else's CVs are quick to read.
 
lol
 
Do you guys ever update your resume when you're employed?
 
@DeadMG I think the part that starts with "Unfortunately eating is mandatory for survival so [...]" should be rephrased. It does not sound very professional IMO
 
the gap is there, and that's enough; if your skills are desirable the recruiter will ask you to come to an interview and most definitely ask you "why did you stay without a job for so long?"
 
3:20 PM
Cause I haven't updated mine in like a year.
 
Xeo
@Rapptz I'm not
 
@AlexM. Yeah - if it was me, I would prolly put the sickness issue in a cover letter.
 
@Rapptz all the time
 
hm.
the problem I have fundamentally is that there's not a great deal else to write about on the CV.
 
I don't job hop. Or well, not really plan on doing so.
 
Xeo
3:20 PM
Then just don't write much vOv
 
Point to your website
 
if I strip this stuff out then there's just "I went to university, it didn't work out, I did some personal stuff, hire me".
@AndyProwl My website design is terrible.
 
@AndyProwl he actually has that in his CV?
 
Xeo
My CV wasn't very interesting either - "School, pause, now".
 
@DeadMG They don't care. The content is what matters
 
3:21 PM
@DeadMG Got my first job that way.
 
I have no idea how you can't build up a proper entry-level CV with your SO profile and Wide
 
@ScarletAmaranth Unless I misread
8 mins ago, by DeadMG
> I was at university when I developed IBS at the beginning of 2011- it's like a food allergy but to everything instead of just one food group and there's no clinical diagnostic test. Unfortunately eating is mandatory for survival so I've been quite sick since then until very recently, I got a new treatment which is super effective.
 
sbi
I have an enum type and I need a map of enum values as keys and a set as the values. However, there is only 4 possible values for that enum, and they are unlikely to change. On top of that, rarely ever will there be more than half a dozen entries in the set.
So I don't want to use a dynamic data structure and think of using something that has for slots and a reserve()'s std::vector<> instead of a set. Can you come up with a neat data structure for this?
 
well, actually, I don't have that in my CV, I'm thinking about putting something like that in my CV.
 
@AndyProwl that's cover letter material, as martin said too
 
3:22 PM
@AndyProwl the whole thing is rather out of place for a CV xD
 
I didn't write an interesting CV either.
 
Xeo
@sbi boost::array<T, N>?
If the 4 values are consecutive
 
@ScarletAmaranth Even in a cover letter, I would not phrase it that way
 
@DeadMG what are you using to write your CV?
 
Word 2007
 
3:23 PM
I find that careers.so's profile structure is fine
it should give you a starting point
 
Point to SO profile and your website, that's a lot of information about you as a professional I think
 
sbi
@Xeo They are indeed. They even are explicitly numbered.
What has boost::array<> over std::vector<>?
 
Xeo
static array
it's a T[N] under the hood
 
@DeadMG Put up a Careers profile?
 
the most important bit is the projects tab
 
Xeo
3:24 PM
with a proper container interface
 
careers.so will have you list the years during which you worked on Wide
 
@WilliamAndrewMontgomery I have one. I'm updating it and such now.
 
what you worked on exactly
 
sbi
@Xeo Like std::array<> or like the common static_vector<> types out there?
 
and any extra stuff
 
Xeo
3:24 PM
@sbi Former
 
careers.so exports to PDF too
 
Xeo
I said boost:: since you're in C++03 land
 
besides
 
speaking of the sad thing - the 5 years when I had decent paid jobs, my asset value went up from 0k to maybe 90k max ... then the 2 years when I don't (I am not going to lament how horrible my app biz returns in monetary value), my total asset value tripled (thanks to the low interest rate and property bubble ... same goes to the share market)! Nowadays I just don't seem to believe in things we are told any more ... I just don't ...
 
Xeo
Or was std::array in TR1?
 
3:24 PM
it's sort of limited so I always point people to my full profile, but still
 
what I really need to do is fix my website.
it's pretty weak
 
@Xeo it was tr1
 
Xeo
Oh, then std::tr1::array<T, N> :D
 
sbi
@Xeo We do have std::tr1::array<>.
 
there's not much there about what state Wide is in, how it's implemented, and I wrote a bunch of tutorials that I never moved over.
 
3:25 PM
@Rapptz Really?!
oh I didn't know that
 
Xeo
So yeah, you could use that for mapping the enum values
 
Btw, I have about three zillion Careers invites.
Anyone?
PLEASE
 
I am aligning my career goal with my investment strategy ... because ... f*ck humanity
 
@R.MartinhoFernandes dang, I only have 3 or something
 
Xeo
0 :D
 
sbi
3:25 PM
Well, I thought std::array<4, std::vector<T> >, too. Nothing better?
 
Gotta get rid of that huge number.
 
Xeo
Oh wait, for inviting people to Careers.
 
Why do you need invites for Careers?
 
sbi
@R.MartinhoFernandes I wonder. I am not sure I ever got a single one.
 
Xeo
@sbi You could obviously go with one of those static_vectors for the "set", since you said it's unlikely to be more than 6 elements large
 
3:26 PM
@sbi java.util.HashMap
 
It sits there, taunting me.
 
sbi
@WilliamAndrewMontgomery I am tempted to flag that.
 
@sbi flag away, flaggot
 
Xeo
@R.MartinhoFernandes Hm, 5
 
sbi
> A template a day keeps java away. – Christophe Henry
 
3:27 PM
@Rapptz They want it to have some sort of barrier to entry to keep the chaff away.
 
@DeadMG yeah, perhaps you need some more content from what I see
but the design is good imo
it says "programmer", not "webdesigner"
 
Did I mention I have 53 to give away?
 
which is good
 
@R.MartinhoFernandes I made an account there without an invite. Didn't know you needed one.
 
sbi
@Xeo It's not impossible, so I have to use a dynamic container for that.
 
3:28 PM
> Munich, Germany
I hate that City, ObviousCountry syndrome
also fu markdown
 
@Rapptz IIRC you can also do it if you have some rep.
 
Nevermind apparently there's also a Munich in North Dakota
 
Xeo
@sbi static_vector generally has a static component until a certain size, and switches to dynamic after that
 
Silly muricans
 
my site is one page long with links to other stuff; white background, black text and that's about it
 
3:29 PM
is it web scale
 
Xeo
Or do you know all possible values assigned to the enums in advance too?
 
black text is not webscale
 
sbi
@WilliamAndrewMontgomery I have no idea how that is related to what I said. (Also: Do I know you under some other name?)
 
@Xeo I don't think I've seen an implementation do that
 
@WilliamAndrewMontgomery I have no idea what that is
 
3:29 PM
@sbi Why do I keep answering this question by yes (and I just followed the link in your quote)
 
@sbi Cicada.
 
Xeo
@Rapptz Hm, that's at least how I have it in mind. Maybe twas a different name.
 
sbi
@Xeo Nope. It's a statically limited vector implementation.
 
Xeo
Oh, then I was thinking of something else.
 
sbi
@R.MartinhoFernandes Oh. Damn that boy. Why would one keep changing one's name?
 
3:30 PM
some implementations by that name switch to dynamic after their size is exceeded; others treat it as an error.
 
sbi
@WilliamAndrewMontgomery I have seen what it is a reply to, and I have no idea what that reply has to do with what it replied to.
 
but typically, if you switch to dynamic, then it's known as "small"- e.g. llvm::SmallVector.
 
How do you guys manage to only have 5 invites?
I've given out a bunch and am still stuck with ten times more.
 
@sbi The Christophe Henry page. Anyway, hi there!
 
sbi
@DeadMG That's the small string optimization applied to vector then.
 
3:31 PM
It's like Dropbox all over again.
 
sbi
@R.MartinhoFernandes Where's that? (I haven't been on Careers in ages.)
 
@R.MartinhoFernandes I don't know, I got 5 and that's it
 
@sbi Top right.
 
or Google Wave
@TylerH: Well, actually, my name is Tom... — Lightness Races in Orbit 9 secs ago
sucker
 
@sbi Yup, same principle.
 
sbi
3:34 PM
@DeadMG Well, you'd still calla SSO'd string a "string", albeit an optimized one so I'd call such a beast an "optimized vector".
 
@sbi The difference is that an SSO'd string still meets the std::string interface. The same is not true of vector.
 
I kind of wanna cook fagitas tonight
._.
But lazy to go buy stuff
 
@WilliamAndrewMontgomery Isn't it "fajitas"?
(Also, I thought you were a Spanish-speaker)
 
Not in my case
It's a pun
I'm not telling on what
subtle subtle
 
sbi
@DeadMG ???
@R.MartinhoFernandes Nothing for me, then.
 
3:36 PM
@sbi If you apply SBO to a vector-like class, the result does not meet the Standard vector interface- iterator invalidation rules and such.
but std::string has special iterator invalidation rules that make it legal to SBO it.
so it's really not the same thing as just "Vector but faster".
 
@sbi Oh well. If you know someone that would like an invitation for Careers.SO, you know where to find me.
 
sbi
@DeadMG I fail to understand why SSO would invalidate vector iterators other than on resize, when they are invalidated anyway. Care to explain.
 
@sbi Swaps, I think.
 
sbi
@R.MartinhoFernandes The Lion used to want one, but back then I just mailed the SE team and they invited him.
@R.MartinhoFernandes Ah, I see. Just as with std::array<>, then.
 
can someone use their gold tag powers to close this dupe?
0
Q: C++ - vector<type>& name - what does this mean

Łukasz BaranJust like title says what does construction like this means: vector<type>& name Is it reference of single element of vector ?

 
3:38 PM
Dupe of what?
 
Hmm.
 
or something similar
 
sbi
Nope.
 
3:39 PM
@sbi Swaps and moves can't behave the same way.
 
sbi
@R.MartinhoFernandes Really, "Is it reference of single element of vector?" is not the same question as "What's a reference."
 
The answers there are a lot more useful than "No".
 
If use AsyncTask and send out a bunch of requests to some servers which I have no control of, how do I know which return is from which request?
 
sbi
@DeadMG Yup, the robot already explained. I was only thinking in terms of switching from automatic to dynamic memory, and forgot that using a fixed array already is a fyl in the ointment.
 
@chmod711telkitty is this android?
 
3:41 PM
yeah
 
-1
A: What is a reference variable in C++?

DeadMGA reference is, pretty literally, *ptr, with the behaviours you'd expect from such a thing.

lol
 
lol
 
I could suppose to start a different instance for a different request ...
but are there any more elegant ways?
 
are you using the same instance for multiple requests?
 
3:44 PM
it's been a while since I had to do anything asynctask but from what I can remember you could set some sort of extra info in onPreExecute and depending on that info, do something else in onPostExecute
 
I wish I had gold tag powers.
:(
gotta work for it
 
you have to write a class to encapsulate the asynctask behavior anyway, so you can go wild with the state you store
 
what's drawback with using different instances then ... performance wise?
 
sbi
Ha, someone upvoted an old meta question of mine. If that goes on with the current speed, I'll have 10k on meta by about 2020 already. :)
 
@AlexM. I was looking into this, but there is nothing in the results returned (using the original class) to indicate any extra info was stored
 
3:46 PM
@R.MartinhoFernandes You've been changing a lot of titles today eh
 
@Rapptz They're all horrible.
 
@chmod711telkitty but you can return a result of any type, no?
so instead of getting a result of type... say, string
 
> ObservableCollectionEx issue
 
lol
 
3:47 PM
Random class name + "issue"
ATHRGLHSGKFHghjs
 
most results are json based
 
you can instead return Pair<URL, string> or something
 
worse come to worse I can parse json to see what's returned
 
They should be happy I just edit the titles instead of downvoting or nuking the questions.
 
the first says where you sent the request and the 2nd is the actual result
 
3:48 PM
@AlexM. thanks for the suggestion, will look into this
 
omg they ruined Firefox
no longer possible to move the address bar to its own line
ffs
 
@chmod711telkitty I have no idea about the drawbacks of running multiple tasks at once but there should be some automated scheduler or something
best I found is this link
11
Q: Android AsyncTask - avoid multiple instances running

katitI have AsyncTask that processes some background HTTP stuff. AsyncTask runs on schedule (Alarms/service) and sometime user executes it manually. I process records from SQLite and I noticed double-posts on server which tells me that sometime scheduled task runs and at the same time user runs it ma...

 
1
Q: Fastest way to copy one dimension of 2D vector in c++

AraxnidI have a 2D vector which im using for complex numbers. Just for example: vector<vector<double>> Complex; vector<double> ComplexNumber; ComplexNumber.push_back(5); // real part ComplexNumber.push_back(-4); // imag part Complex.push_back(ComplexNumber); // Complex[i][0] - real part, [i][1] - imag...

wtf?
 
(at least, not since I moved it around to another toolbar in the previous version)
 
finally, I can go the fuck home, yay
 
3:52 PM
@Rapptz It's already tiresome, though.
But I hope someone else will notice the pattern and join me.
 
Do people forget std::complex exists?
 
> Recursive function definition
 
Is it in some very deep place in the standard library or something? :v
 
@Rapptz "forget" assumes they once knew, which is probably where you're going wrong.
 
Good point.
 
3:56 PM
You know what, I'm pulling out the downvotes in the ones I can't figure out a title easily. If there isn't an easy descriptive title the question is highly likely crap anyway.
 
0
Q: C++ File handling: writing data to file in append mode; what am i doing wrong?

user3653322![This is my code (there's a curly bracket(}) after 'return 0', not seen in the screenshot) Also, input.txt does exist in the root folder.]1

 
user1804599
@Rapptz lmao
 
How do I catch when there's a return value in the IO action I'm trying?
 
user1804599
Eh, just use catch.
 
user1804599
catch :: Exception e => IO a -> (e -> IO a) -> IO a
 
3:59 PM
@Jefffrey Provide an actual result, or use ioError to propagate it.
 

« first day (1311 days earlier)      last day (3640 days later) »