« first day (2029 days earlier)      last day (2960 days later) » 

12:20 AM
Aug 23 I post an answer
Aug 25 I get 10th upvote for "nice answer"
March 23 I get accept checkmark
wat.
 
@durron597 what's wrong?
 
@BarryTheHatchet nothing's wrong
 
@durron597 ok
 
it's just a surprise to see an 18 rep OP come back and accept me 7 months later
 
12:23 AM
most people forget about their questions 7 months later
 
probably hadn't been back since just after asking it. saw the notifications...
working as expected
also this probably doesn't apply for a low-rep, inactive user but I periodically go back to my old questions to see whether I now want to accept any answers. sometimes an answer wasn't quite what I wanted at the time but having seen that nothing happened in the months since, "it'll do"
or maybe I only discovered that it was really what I wanted in the interim
(I would hope that this is not unusual)
 
12:55 AM
@durron597 I've forgotten about that before
@BarryTheHatchet hehe I just went to a networking event about docker and AWS
 
 
1 hour later…
1:55 AM
@DeliriousSyntax Waitin' on my blu-ray of it. :/
 
user15026
@DeliriousSyntax What's that?
 
@AshleyNunn The latest Charlie Kaufman film.
It's a stop-motion animated film from a few months ago.
 
this is so loud and annoying
wouldn't be so bad if it just stayed constant for a while
still can't believe this could be normal
need to try a new fan as Jimmy said
 
 
1 hour later…
3:31 AM
TIL I've got practically no idea what bearings are
andddd it's 3.30am -.-
 
 
3 hours later…
6:26 AM
I'm voting to close this question as off-topic because it belongs on programmers.stackexchange.com — xaxxon 13 secs ago
 
 
4 hours later…
10:26 AM
morning again sigh
 
 
1 hour later…
11:31 AM
where is everyone
 
This is one of the dumbest things I've ever read.
 
and coming from a Whiteboard regular that's really saying something
 
Some of the stuff here may not be very deep or necessarily requiring vast amounts of intelligence to handle. But I'm pretty sure that article may have killed parts of my brain.
 
only skimmed it but it seems fairly reasonable to me
 
11:47 AM
The idea of a commitment is important. Each sprint is supposed to result in a potentially deliverable product. I admit that it's hard early on in a project, before you have a history of velocity to use. But you should be able to, within a few iterations, make reasonable commitments to deliver regularly.
A lot of times, it's hard enough to get buy in from people not familiar with Agile.
But now you're telling them you are going to forecast your deliveries and not commit to anything? Yeah, good luck.
 
It seems to me that you didn't quite understand the article
But if you want to go "business" on it, you've surely heard of business/growth/profit forecasts? How is this any different?
 
I've heard of forecasts. And I'm saying that's the wrong approach. You should commit - make a promise - to deliver certain functionality on a regular basis. It helps the customer maintain confidence in the team and helps motivate the team to be reasonable in crafting their estimates.
 
And it's a complete lie, by definition.
"Agile."
 
A forecast is not a promise. When you create your sprint backlog and get buy in from the product owner or customer, you should be promising to deliver that functionality.
 
No, you shouldn't. That's the point.
That's how sprint breakages turn into mandatory overtime and no personal life, whereas in fact they should be absorbed and learnt from as part of the Agile process.
That's the entire purpose of an Agile methodology.
 
11:53 AM
That's a separate issue.
 
It's the exact issue.
 
The difference is from the perspective of the team. "I made a promise to the customer - I better make sure I deliver this." versus "I made a forecast - oops, I was wrong, no big deal."
No, it is a big deal.
 
Sorry, no.
Agile does not mean "have a meeting every day to discuss progress".
It means the latter is true (as long as you learn from it and correct in the next sprint), not the former.
 
I'm not expecting a team to actually hit their commitment 100% of the time.
No one should. Especially, like I said, early in the project.
 
Then it's a forecast.
 
11:55 AM
It's still a promise.
 
Other people have work to do that are built around your commitments.
You can see this when you scale Scrum.
 
I give up.
Have a nice day.
 
You too.
 
12:23 PM
seems like we got hacked, can we find all password resets dates in AD ? not just the last one
 
Why constrain it so much? Aren't password reset dates from 1BC and earlier also of interest?
 
ok let me be honest then, one colleague was complaining about password not working and I joked that I changed it and he believed me when I actually didn't...
Even though we changed it back I want to see when was his password changed in last month or so without looking at event viewer...
 
you sure it was a chatbot ?
 
As an aside, check out this quality BBC journalism:
> It's official account @TayandYOu described it as "Microsoft's AI fam from the internet that's got zero chill".
 
BBC is just soo political
 
is that what we pay tv license fee for ?
 
1:13 PM
Yes
 
complete waste of time
 
I thought it was amusing and informative.
 
soon they want everyone to pay license fee, regardless of having tv or not :|
 
Which makes sense because, as you just pointed out, TV is only a fraction of the BBC output we consume on a daily basis.
 
I don't
 
1:20 PM
Almost every country has a state-run media organisation. It must be funded. Whether it's funded through a "licence fee" or taken from the general tax pot makes essentially no difference.
 
Why would I pay for something I don't need
 
You do. I bet you just read at least one of those articles.
@Mathematics Have you ever required dialysis at hospital?
 
Nope
 
Ever called the fire brigade?
 
Nope as well
 
1:21 PM
You're paying for all those things. It's called living in a society.
If you like you can go to a deserted island somewhere with zero services and zero taxation. Good luck surviving, though.
 
Necessity is different then amusements
 
News is not "amusements"; it is a critical part of society's infrastructure.
As for entertainment programmes, that's a little harder to justify, but I contend that progress in society is linked to progress in the arts.
 
I love it when people compare oranges with bananas and on top of that they feel happy about winning the argument :/
 
That's the best strawman I've ever seen.
 
Trust me you would find me serving community more then average, but I don't like wasting money on things that benefit less, and did you not heard about scandals about bbc;s management ?
Also I believe in globalization, would be happier then ever giving my £50 to someone dying of hunger then to executives of BBC who travel in expensive cars...
 
1:34 PM
The majority of the BBC's revenue comes from international merchandising and sponsorship. You may relax.
 
I love bike sheddy code reviews. :(
 
damn straight
hehehe this is addictive
 
2:02 PM
Rant over
 
Another reason why C++ is bad. There's no good way to iterate over an enum. And it gets even harder if the values are non-sequential. I just want to make a map to count the incoming data based on the types in the enum, but want to guarantee that there will be an entry for every type.
 
@ThomasOwens do any languages support this well?
 
@enderland Actually, Java does.
 
then C# do as well
 
There's a method in every enum that returns an array of values. I think Scala supports this as well. I've never used C#, but my guess is yes, too.
The answers on SO are pretty terrible. None are DRY, and all lead to code bloat.
I don't want to change my code in two or three places if an element is added or removed from the enum, which is rather likely.
 
2:06 PM
ah, I see what you mean
 
If the enum was rarely going to change, I'd be slightly more OK with some of the answers on SO. But this enum has already had items added and removed several times this calendar year, and it's going to continue. Mostly additions, I think. And I really don't want to rely on someone remembering to change the code in multiple places.
This sounds stupid...but there is a range for valid entries in this enum. At most, there can be 256.
And there's a defined constant for the maximum size...I could go through everything from 0 to MAX_VALUE, see if it's defined in the enum, and do something if it is. But that's rather wasteful since there are only like 96 defined right now.
 
Enums are usually used for constant data, are you sure you are using right datatype ?
 
@Mathematics They are constants. But the valid values change over time. So the set of valid constants today may change in the next iteration of the system, so the enum also has to change.
Hmm. Don't think my terrible idea would work. I don't see a way to see if a specific value is actually defined in an enum.
 
An array of what, exactly?
The usefulness of this enum is that it lets me map a name to a numeric value and use that name in places.
So I can say DATA_TYPE_X and DATA_TYPE_Y instead of 0x20 and 0x21, for example.
 
2:19 PM
@ThomasOwens could you just wrap your enum in a class that returns a list of all the enums? or map? or whatever you want to use it for?
 
@enderland I suppose I could write a class with static consts all over the place and functions to get arrays and such. Still, that function to return a data structure would be obnoxious. It would put everything into one source file, though.
 
you could make a global function you put there, which isn't really ideal, but something like ENUMNAME_MAPPED_VALUES that you define there?
that feels a lot better than hardcoding the enum values everywhere, at least
 
What it boils down to is that, even in C++11, a basic language feature isn't there with no real good workarounds.
How are people productive in this language?
 
151
Q: How can I iterate over an enum?

AdamI just noticed that you can not use standard math operators on an enum such as ++ or += So what is the best way to iterate through all of the values in a C++ enum?

it looks like there isn't a good practice
 
Exactly my point. Every "solution" sucks.
 
2:33 PM
frankly I feel like a global method of some sort returning a map might be the best bet, especially since you could simultaneously kill the "enum to string" problem there
 
It's probably the best, but it still would require changing code in two places. That's never a good thing.
 
yeah, but they will at least be in the same file
 
Yeah.
 
and you could pretty easily write a test to ensure something fails too
 
But then wouldn't the test need to be updated, too?
It may work for removals, but not additions.
It still bothers me that C++ is supposed to be a modern language, but it is terrible for productivity. Although Java also has problems, like the lack of unsigned data types.
Even D has enum.min and enum.max.
 
2:37 PM
@ThomasOwens you could do a check of something like asserting the max value in the enum equals the length of the array or something
 
@enderland But it's non-sequential. That is false right now.
 
@ThomasOwens is it nonsequential but still a 0-100 thing? or random values?
you could write the test to go through the full 256 value range and trying to cast, and recording the number of successful casts, and then compare that against the size of your array/map/whatever?
 
@enderland The valid range is 0-256. However, the max value right now is 231.
 
@ThomasOwens so you could do that then to write the test
 
If this is more suitable for programmers.stackexchange.com feel free to migrate. — John 37 secs ago
 
2:42 PM
iterate over the whole range, trying a cast, and counting how many successful casts you get -- then compare that to the number in your array
 
I'm almost wondering if I shouldn't just go through the full 256 value range and try casting.
Right now, I'd get something like 97 successes or something and the rest fails.
Although I don't know how to cast from int into my enum and detect if it fails.
It's more of that second part. I can use static_cast. But I don't know what happens if I do something like static_cast<myEnum>(0) and 0 isn't defined in my enum.
 
@ThomasOwens I have no idea, presumably it should error and you should be able to catch the error?
 
I think I need to write a test. I can't find documentation on what happens.
But I've got a meeting now.
 
if you can get that to work that would be a hacky but good test
 
Less hacky than some of these other terrible solutions.
And no code duplication/.
 
3:10 PM
Happy Coffee Day!
@DeliriousSyntax 3.7 is good for a ton of scholarships
 
Team success: Marketing business owner is delighted with dev's new site usage reports.
Yay!
 
@ThomasOwens Why do you always blame the lack of solutions, never considering that perhaps what you're trying to do is fundamentally flawed? I've noticed it's a pattern.
> edited Jun 21 '13 at 10:04 BarryTheHatchet
lol
 
@BarryTheHatchet because C++ is bad and you should feel bad
 
uhhuh
do you want some kind of ... renumeration?
 
How is my room doing?
 
3:25 PM
I am gleefully preparing to attend a lunch presentation entitled "The Operational Release in a Validated Environment".
Woo!
 
@KitZ.Fox Sounds synergetic
 
I want to join
 
We might could leverage some cross-functional synergy.
 
Grocery stores and pet stores never have "presentations" or "business meetings"
 
After we break down silos and before we manage up the 2016 leadership initiatives.
I'll suggest that we add it to the agenda.
 
3:28 PM
"might could"?
 
@BarryTheHatchet you need to open your mind to the marketing-think
you no longer have wants, only want-needs, and there aren't things you should do, just things you should-will do
now you should want to go buy a new iPhone.
 
boo iPhone
Android Enthusiast all the way
 
I'm poking fun at Apples marketing - I have a note 5
although I will say my 5s was a little more stable than the note is
Steps back and laughs
 
I'm getting note 3 in a few days going to put the Note 5 ROM on it though
 
3:33 PM
Huh. I just realized that this query is written in Old SQL.
cracks knuckles Let's see if I can translate my query into this dialect.
 
@DeliriousSyntax careful with that - the note 5 has a ton of stuff baked into the OS that probably won't be applicable
I would probably go for Cyanogen personally
 
I really want the s-pen features that come with the note 5 that's why I'm choosing it over CM13 if it was any other phone I would go with CM
 
@KitZ.Fox as opposed to new SQL?
 
Yeah. Like Middle English v. Modern English.
Not to be confused with the band.
 
@DeliriousSyntax I just know that things like samsung pay and NFC support are embedded into the OS, so I don't know how those will react if you don't have the matching hardware
 
3:36 PM
It's got old style joins, where you list the tables and put the join conditions in the where clause.
 
My guess is the dev never updated his style.
All the columns and tables are aliased as well.
 
looks like they changed the name of the thread to S7 edge rom recently title was note 5 a few days ago
They said you won't have any features that require hardware such as the fingerprint scanner. I think they said pay works though
 
Interesting. I had my fair share of fun doing that stuff when I had more time, but now I just want my phone to work.
 
yeah....
 
3:40 PM
Haven't even thought about touching the ROM on my note 5 in the... 6 months I've had it?
@enderland It was tons of fun til I started missing work-related calls because my ROMs cell driver was f'ed up. Said screw that and upgraded to a 5s
 
CReators look to be german
ROM Kernel: Linux 3.4.x
I'm going to sound dumb, but I thought linux was a PC OS
 
Linux is a kernel actually. there's a highly modified version that runs android, and just about everything else in the world.
 
Linux is awesome.
 
@KitZ.Fox depends on what you're doing.
 
is Unix an OS?
 
3:48 PM
@DeliriousSyntax This looks heavily modified from stock.
 
Well, there is a reason I gave up on dual booting.
Mostly that I didn't have time to figure out how to make things work all the time.
 
@Ampt You can download custom themes on it. I think he clicked avengers or something
 
@DeliriousSyntax Unix was an OS made by Bell labs back in the day
modern linux and Mac OS's are based off of that system
 
Maybe Unix is what I was mistaking linux for
 
you're going back to a time where there weren't clear lines like there are today between kernel and OS
 
3:51 PM
I can't wait to try out this ROM when I get my phone Tuesday
 
@KitZ.Fox which is why many people still use OSX and Windows
 
I liked playing Map.
And it was fun until I started dreading doing anything. I learned a lot about how drivers work.
And also how they don't work.
 
or kinda-sorta-work with this particular featureset
it's getting better but still no where near as good as Windows
that's what happens when one OS almost wipes out everything else.
but now that MSFT is eating dirt and losing ground... things are changing
 
The best OS out right now is Windows 3.1
Windows NT 3.1
 
til you want to get anything done, anyways.
 
3:58 PM
I just went here and picked a random old OS
 
@BarryTheHatchet There's no fundamental flaw to iterating over an enumeration. If it's so flawed, why do Java, Scala, and C# all support exactly what I'm trying to do? Even D, to a lesser extent, supports it.
 
The oldest OS I've ever really used was Windows ME
 
No true C++ programmer?
@DeliriousSyntax Win '95 for life
which is also why they skipped windows 9 and went to windows 10
backwards compatibility is a bitch.
 
I still use XP
 
Ew.
 
4:00 PM
@ThomasOwens Because they have different notions of what an enumeration is?
 
but it isn't compatible with newer versions of Java :/
 
You appear to be attempting to use C++ enums in a way for which they are not intended. No wonder you're having trouble!
 
@DeliriousSyntax that's what happens when you are on an EOL product :(
 
@BarryTheHatchet Someone else made the enum many years ago.
 
quit C++ing wrong
duh.
 
4:02 PM
Did you notice how all the languages you just named run on a VM? We're talking about a completely different level of abstraction! C++, despite appearances, is a low-level language. e.g. no reflection
Trying to expect C++ to be C# is your problem not C++'s ;)
 
reflection implies you have some level of abstraction you need to break down - C++ offers no such abstraction.
#itsafeature
 
All the OS's I use are on a VM
My laptop runs Vista which makes me vommit
 
@DeliriousSyntax well at least one of them isn't
buy a cheap copy of 7 and upgrade to 10
get that free upgrade while the getting is good free
 
Maybe I am approaching this wrong. But it seems like it's not uncommon to want to make a map from EnumType to int. If you want to ensure that the map includes all EnumType that are valid, I don't see a way to do it other than (1) manually adding every EnumType to the map, which may be over 250 or (2) iterating over a collection of enums. The only way to achieve (2) in C++ (as far as I can tell) is a violation of some of the most fundamental good design practices.
 
The VM trials last forever as long as you never restart the VM and just save it's state every time
 
4:06 PM
@Ampt exactly
 
0
Q: Code smell in angularJS custom directive

overexchangeIn the below code. <!DOCTYPE html> <html ng-app="app10" ng-cloak> <head> <title>Custom directives</title> <style> [ng\:cloak], [ng-cloak], .ng-cloak{ display: none; } </style> </head> <body> <div ng-controller="...

 
@Ampt oh shit yeah maybe I ought to start considering that upgrade
@overexchange Spamming your question in rooms you've never visited before ... hmm not good form
 
no, he's been here before
 
@Ampt Didn't say he hadn't
 
> in rooms you've never visited before
 
4:08 PM
ducks
 
he's not quite a regular, but he's a familiar face at the very least.
 
@Ampt Right, so then that doesn't relate to this room, because it does not meet the criteria of the predicate.
 
@BarryTheHatchet spamming depends on previous visit
 
I merely stated a general fact
 
I think he's complimenting your form. I think you really stuck the landing myself.
 
4:09 PM
upvoted the question anyway
 
Without reading? Please read the question before upvote
 
I think the question needs work
what is the problem here?
that you're not sure of the state of a variable?
 
@overexchange What makes you think I didn't read it?
I've never been told off by someone for upvoting their question before
 
@Ampt 1) If I say, <div ng-controller="mainCtrl"> then custom directive should fetch data as data = scope[attrs["bbPlayerList"]];. 2) If I say, <div ng-controller="mainCtrl as o"> then custom directive should fetch data as data = scope["o"][attrs["bbPlayerList"]];.
So, Custom directive is getting influenced by the way mainCtrl is instantiated, which is bad design
 
@BarryTheHatchet We're even fanatical about quality on our own posts.
 
4:13 PM
@Ampt Using ngModel attribute, Custom directive is knowing, how controller is instantiated, it is like bad design, right?
Did you get my question?
 
Kind of, let me look at the code again
 
@BarryTheHatchet When did you become regular user in this room?
 
@overexchange perhaps the controller should always be instantiated?
I'm not an angular guy, so maybe that doesn't make sense for the given code
but if you always have it instantiated, whether the client requests it or not, you always access it the same way?
 
yes it should, because you are accessing bbPlayers from controller instance
 
if it's always instantiated, why the need to check for null?
er... empty string?
if ngModel is always instantiated, why do you need
if(attrs["ngModel"] === "")
 
4:20 PM
mainCtrl is always instantiated
Since mar 16 MichaelT is away from here?
@BarryTheHatchet Any solution on the problem you understood? Understanding the problem is half way to solution, right?
 
@BarryTheHatchet You better not upvote my questions XD
14 mins ago, by overexchange
Without reading? Please read the question before upvote
 
alright primarily opinion based question voting time. I am naming a class and it will control test cases, but... I don't want to start it with "Test" - what should I name it? "TestCaseManager" would be natural, but...
 
@overexchange
Mar 15 at 21:44, by gnat
^^^ MichaelT has left Stack Exchange
SO probably the 13th
@enderland was it @BarryTheHatchet who got mad didn't like it when I stole your name?
 
maybe RunConfigurationManager
 
Estimated delivery Monday, Mar 28, 2016
Can't wait XD
 
4:42 PM
@DeliriousSyntax MichaelT left permanently?
 
@overexchange Sadly, it looks that way. He has deleted all his SE accounts. Never even gave a reason for leaving.
 
I would really miss him
 
@overexchange Unfortunately :(
 
May be, he took retirement
 
user15026
Yeah, he left. :(
 
4:45 PM
I think he's fed up with the lack of response to more support from CMs and Devs on site quality
 
@overexchange just check out his last words on a meta post I think you might find a reason there
 
Yeah, it's a bummer.
@AshleyNunn I still owe you a story!
 
Anyone remember his blog site?
 
@DeliriousSyntax why?
 
I remember MichaelT before coming to this room
 
4:51 PM
@Ampt Just to check it out (no weird stuff I was saying when he first left)
2 hours ago, by Ampt
Happy Coffee Day!
@Ampt What's you source?
 
Does anybody have his linkedin contact? I want to be in touch with him, nothing technical here
 
@Ampt
International Coffee Day is an occasion that is used to promote and celebrate coffee as a beverage, with events now occurring in places across the world. The first official date will be 1 October 2015, as agreed by the International Coffee Organization and will be launched in Milan. This day is also used to promote fair trade coffee and to raise awareness for the plight of the coffee growers. On this day, many businesses offer free or discounted cups of coffee. Some businesses share coupons and special deals with their loyal followers via social networking. Some greeting card companies sell National...
Thursday, September 29
National Coffee Day 2016
 
There's a difference between Coffee Day, National Coffee Day, and International Coffee Day.
 
user15026
@KitZ.Fox you do!
 
user15026
I forgot about that.
 
user15026
4:57 PM
Also, I think maybe this weekend I should start crocheting a stormtrooper, I have wool for that.
 
@ThomasOwens Let's just make a White Board Coffee Day and it will be Every Morning except Sundays
 

« first day (2029 days earlier)      last day (2960 days later) »