« first day (2030 days earlier)      last day (2934 days later) » 
00:00 - 19:0019:00 - 23:00

7:00 PM
I don't think that Enum.GetName was right. for example

var mrus = Enum.GetName(typeof(AutoCompleteSource), AutoCompleteSource.RecentlyUsedList);

List<string> mrusb = new[] { mrus }.ToList<string>(); <-- looking at mrusb.Count() it returns 1, that's not all the recently used list so the Enum.GetName wasn't right
 
Err
You want the contents of the recently used list?
Why didn't you say so? We've been banging on at this topic for ages
 
yeah
a textbox can produce it as suggestions
 
But this is just an enum
 
but it can also make custom suggestions.. and I want to make my custom suggestions include that list
 
How would it know?
 
7:03 PM
I don't really know much about enums.
 
@TomW is that the correct way of using your code?
var powerVals = new double[DataOfExerciseSession.Count];

powerVals[0] = 1;
for (int i = 1; i < DataOfExerciseSession.Count; i++)
{

powerVals[i] = powerVals[i - 1] * 1.0001;
}

var normalisedPower = Math.Pow(MovingAverage(powerVals, 30).Select(avg => Math.Pow(avg, 4)).Sum(), 1.0 / 4.0);
richTextBox1.Text = normalisedPower.ToString();

It calculated the NP of 9.92326619521754
 
I might not just want the enums.. A textbox can also give suggestions including all the directories.
I want to combine that with MRUs
rather like what the run dialog box does
 
@Beda I'd ignore the aggregation stuff after, the point was to demonstrate a method for moving averages
I'm pretty sure the stuff outside the MovingAverage method is wrong
@barlop ok, that's a completely different question, and I have no idea
 
@TomW so it is wrong then, dammit haha I feel like taking the reassessment after the deadline, as this is one of the few parts from the assignment that I cannot do either
 
@Beda I just haven't read the method carefully enough
there's a factor missing in there somewhere that's all
 
7:13 PM
@TomW no worries, you have helped a lot already
 
@Beda oh I made a change, pay attention to this
the MovingAverage method starts returning values too early, the queue has to be full to the size of the period before a result is valid
and similarly it'll keep emitting values as it empties the queue, so you have to stop early
 
@TomW I am not sure if I understand correctly, so I have to move the yield return mov; line somewhere else?
 
No, just wrap it in an extra condition that ensures that the queue it is calculated from contains enough elements for the result to be valid
That should be exactly 30 (i.e. the period of the average)
One final thing. If I know academics at all, they might well whine about the presence of any of the good features in C# because they're not the same as what they were doing 20 years ago. That includes yield return, it's a "clever" feature. Things they don't understand they tend to criticise
 
so do I have to put it in an if statement or a loop? sorry I am just completely drained
 
if should be fine
 
7:24 PM
I can agree, most of this stuff seems pretty old-school, I have written a 2D game using C# and it has been completely diferent to all of this
 
But hey, I'm not doing this for you. It's your university degree
 
I know, I know :) However you are a life saver trust me
 
I should charge for this stuff
 
@TomW good idea, easy money I guess
 
Contracting is basically that
 
7:34 PM
is there any way I can upvote your profile or something?
 
I don't think so, but thanks for the thought
 
There isn't, and you shouldn't vote up a bunch of his answers either, that kind of is frowned upon. Just say thanks :)
 
Uhoh, the Serious Brigade are here
:P
 
a HUGE thanks to @TomW then :D
 
Yup, that's me. A whole brigade. Just me. :)
 
7:38 PM
Classic.
1 message moved to Trash can
Anyone here cook BBQ regularly?
 
@TomW I do over the summer sometimes, why?
 
Doing my first real 'low n slow' BBQ attempt tomorrow. When Brits say BBQ usually what they mean is cooking flabby sausages fast on the grill
muricans win at this one
 
how slow?
 
@Beda You can upvote his most upvoted answers if you want to.
No harm in that.
 
17 mins ago, by Lasse V. Karlsen
There isn't, and you shouldn't vote up a bunch of his answers either, that kind of is frowned upon. Just say thanks :)
It's right there
 
7:53 PM
it isn't frowned upon.
I am disagreeing.
 
You will be frowned upon.
 
I'll frown upon you m8.
 
@JohanLarsson recipes I've found suggest 7-9 hours
 
you can only upvote a couple
 
At a time.
If you get helped by someone on chat, giving them an upvote on an already upvoted answer isn't a bad thing.
 
7:54 PM
the algo detects serial voting and reverts them
 
So don't upvote 20 of their answers like a pleb
I am not suggesting that lol
 
I'd prefer a good answer to an upvoted but fine
 
hahah I already said huge thanks to @TomW so :)
 
@JohanLarsson minimum 4
Thanks don't pay the bills yo
 
stop it tom
 
7:55 PM
@JohanLarsson Are you gonna disagree with me when I say that generally, upvoted answers on SO are good answers?
Cos a lot of people would probably have something to say about that ..
 
@JohanLarsson no u
 
@Sippy there is perhaps a correlation :)
 
..
 
@LasseV.Karlsen Serious Brigade reinforcements have arrived
 
but speed is what gets votes
 
7:56 PM
Yeah in the jquery tag
Where every answer is correct
 
which is ironic
 
say there is one quick vote with just a link
and then three months later someone adds a really good answer
the late answer will probably go unnoticed
 
I've seen loads of questions with highly voted late answers.
Where's Kendall's mom
 
oh noes offensive
 
OH NOEZ
Wtf is happening to this room
 
7:57 PM
they flagged it?
 
Do we need to vacate Stackoverflow Chat as well?
 
@JohanLarsson no, I removed it
 
JS room regulars left for a while and then came back
HTML/CSS/Design room regulars have been gone for months
They're on Slack now
 
they should close all meta sites
 
@JohanLarsson they do seem to function mainly as butthurt-concentrators
 
7:59 PM
or at least put a max of 15 minutes per week
also there should be max 60 minutes per day on main sites
 
Internet communities can go to shit pretty quick without oversight though, seriously
 
@TomW yeah, the sjws gravitate to places like that
 
My university used to have forums, when I started.
 
roflmao
When you say go to shit
Do you mean via safespacing
Or via 4channing
 
They were closed when someone was found to be promoting a banned organisation. Neo-Nazi honest to god terrorists, German counterterrorist police pick them up every few years
Police involved.
 
8:01 PM
Doesn't that shit happen on campus anyway
 
You mean 'in the world'? Yeah.
 
Pretty sure one of my lecturers went out on a student night literally dressed as an SS guard once
You know cos tasteful
He probably fucked an 18 year old that night too
 
cough Harry 'Hewitt' Wales cough
@Sippy union also pants-on-head retarded about anything to do with technology
And anything, really
They run a technically-competent student radio station
That's basically the only thing done well
The ones who've got time to put into union stuff are the thickoes on stupid degrees who don't do any real work
Having said that I have two mates who were union officers, one physics, one chemistry. They gave up on being able to do anything pretty quickly
 
does anyone here use vs team services?
 
@Codeman wrote parts of it
I believe. Product differentiation confusion aside
 
8:19 PM
nobody using vs team services?
 
Just ask the question
 
what's a fetch/pull/sync request?
 
That is related to git, correct?
 
well it is related to git, but i dont want to use it
no, vsteam services using agile
 
8:25 PM
fetch/pull/sync doesn't resonate with TFS source control, but it does with git tooling for Visual Studio, please clarify exactly what you're asking about.
 
do i need git extension to do proper source control, or can team services do everything on it's own?
 
has anyone ever seen nuget restore hang?
 
@AdanRamirez team services is just the online part, if you want to use git with team services you need to install the git tooling into visual studio
@StevenLiekens Only once, network went down in the middle of a restore, had to kill Visual Studio.
 
my builds are failing because nuget restore freezes
 
@LasseV.Karlsen no ima just use tfvc, thanks
 
8:37 PM
Bugs in nuget don't surprise me in the slightest
@AdanRamirez TFVC sucks, use git
 
why does it suck? still setting things up, not sure what's good/bad about either
 
TFS is good enough if you're a single developer, anything beyond that I'd switch to a DVCS. git or Mercurial
 
@AdanRamirez really slow, merge algorithm is bad
 
my biggest problem with TFS is how it's folder based
 
sometimes forgets your workspaces exist, sometimes fails to recognise files have been added
 
8:40 PM
kinda like svn
 
@StevenLiekens What do you mean by "folder based"?
 
branches are just folders
and you dont even need to have branches at all
 
@TomW TFS doesn't have anything that handles auto-add of files, it relies on the client to specifically tell it about new files.
 
@LasseV.Karlsen yes, which is visual studio
usually
 
bloop
 
8:42 PM
OK, so that's not specifically to do with TFVC, but I've seen cases where it just forgets files, I haven't recognised a pattern
@SteveG bleep
 
I agree thought, just wanted to make sure we were talking about the same thing
 
profanity leads to heroin addiction
 
I agree that TFS sucks. I've had 2 instances of a problem that even Microsoft couldn't explain. We had changesets disappear. Sort-of.
The changeset information disappeared, but the changes changes was folded into the previous changeset.
 
@SteveG service guarantees citizenship!
 
Example. you add a file, and check in, you get changeset 74. Then you change a file and check in, you get changeset 75. Later on you notice that there is no changeset 75 any more, and changeset 74 consists of a new file and a changed file.
Though we had both ours with merges, which made it hard to track down changesets that was or was not merged into a branch.
 
8:45 PM
@LasseV.Karlsen eh just wipe it out to last known good and start over
 
In the table in SQL server hosting TFS there was no row with changeset number 75 (example)
Which Microsoft said wasn't possible.
On top of that, it is a centralized version control system, which has its own type of problems, such as someone else changed the same files as you did and checked in before you, and now, before you can even check in (and get a persistent backup of) your files, you have to merge. If that merges is botched, say bye-bye to your changes, because you still haven't been able to check in.
Though that last part isn't specific to TFS, that's just how centralized version control systems work.
 
that moment when you commit with comment "fix build" and the build still fails
 
trololo
 
@StevenLiekens That might be more of a problem with your build system than with the checkin. (policy- and environment-wise)
 
actually it was an error in my build script
was trying to use %VAR% instead of $Env:VAR in a powershell command
it's appveyor so I can only test the build script by checking in
which IMO is an antipattern but oh well
 
9:01 PM
yeah barf
 
we're using FinalBuilder for our build system, and TeamCity for CI, I can do a full end-to-end build and deploy to test with my own computer, really pays off when debugging all this stuff
 
that's what I dislike about CI systems
In general they make it 'different' to do a production deployment than you do on your dev machine
not grammar good.
You get the idea
That's a good point. I've been assigned to investigate and report on container services for my company. One of my points may be that a container host on a dev machine and a container host anywhere else are identical so deployment shouldn't be any different to what the dev does 999... times while coding
 
What are "container services" ?
Do you mean service container type of thing, or docker type of thing?
 
that argument breaks down when you have multiple developers
 
@LasseV.Karlsen sorry, should have been clearer
 
9:08 PM
unless I still don't understand how containers work
 
Docker hosts offered as a resource on Azure
 
O_o
Why did it log me out
@TomW what do you mean by this
 
Docker, or similar constructs, looks to be one of the best new things to have come along for solving deployment problems
Ah, a good whiskey and the latest Studio Ghibli movie, not a bad combination :)
 
@Sippy what I mean is, if you were a developer whose stack uses make or some derivative, then you can in principle run any target on your dev machine, you can prove it works locally
Everything about your process is in that file, even if it fails on a dev box, you can still read what it does, there's no magic
TFS....fuck
How do I know whether a TFS build will succeed before I commit?
 
You. Do. Not.
 
9:12 PM
Exactly.
 
We used to have TeamCity set up the same way, due to our (my!) lack of understanding of how things worked.
 
Even if I've compiled the code and run all the tests and they all pass
 
Ah, so you've used a nuget package? Well, did you configure the project for nuget restore the right way? No? Well then screw you.
 
There's another level of magic I don't see, ordained by the mythical build engineer
@LasseV.Karlsen yeah I hate that bullshit
People on my project sometimes still mess it up
If you click this menu option in VS it breaks the project, so don't.
 
We've had enough problems with nuget to avoid it. We use nuget to download a package once, pull out the files we need and then remove the nuget package, then reference the files themselves and store them in TFS. NuGet is a nice concept, not as nice an implementation.
 
9:14 PM
Nobody believes me, so I just don't bother
 
The #1 problem we have right now, however, is with ReSharper.
 
lol
 
So you write some code, reference a class you know exists, but you haven't actually added a reference to the library that class is in.
ReSharper suggests hitting Alt+Enter and will help you fix it.
 
In my limited experience with resharper, it's great until it isn't.
 
@LasseV.Karlsen yourformattingasplode!
 
9:16 PM
But instead of doing the right thing, like looking at the other references you have and seeing if the assembly you want can be found in any of the same folders (which in our case is = 1 folder), it will just reference any random assembly on your drive that happen to have that class.
 
j/k, I actually don't know what it does at that point, but I presume it's not helpful
 
Which, surprise surprise, the build system isn't really all that fond of.
 
On your drive?
 
Like "Ah, so you made a new joke console application ConsoleApplication75 with ThatFunkyClass" and now you refer to a method I know is in ThatFunkyClass", let's just reference ConsoleApplication75.
 
roflmao
 
9:17 PM
It remembers where stuff is, unfortunately, instead of having good heuristics finding out where stuff could be, it uses its memory, which almost certainly is wrong.
 
good god
 
not a common problem ime
 
And I thought my resharper problems were annoying. :D
 
We have a fixed system. In the same folder that the .sln file is, we place a folder called Library, and in this we bring in any external dependencies required. You can bet your ass that even if 99/100 references can be found in that folder, if you hit Alt+Enter and ask ReSharper to add a missing reference it will not use that folder.
Obviously it will compile locally for that that developer. After all ReSharper did in fact add a reference to an existing assembly, on that developers machine.
 
Everything is broken and nobody cares
 
9:20 PM
Don't get me wrong, I wouldn't want to develop without ReSharper even for 1 second.
But some of the things it does could still use some work.
 
Isaac Asimov put that down as a bellwether for the collapse of civilization IIRC
(btw if any of you don't know what I'm talking about, read Foundation. It deals with the effect on humanity of the invention of psychohistory, or what I'd call 'computational sociology')
 
jetbrains only recently updated resharper to understand nuget packages
so if your lib is inside a package then it will actually add a reference to $(solutiondir)\packages\whatever\...
instead of bin\debug\whatever.dll
it sucks being the only person on the team who actually understands msbuild and what happens inside csproj files
 
Still waiting on 2016.2 or .1.1 or something like that. ReSharper 2016.1 was horribly broken in terms of null-reference-analysis.
 
yeah I noticed that
I had pessimistic null analysis turned on and suddenly resharper told me that everything was null for sure
 
9:32 PM
some support guy from jetbrains e-mailed me a private build where they fixed it
 
I am the only one on my team that uses pessimistic null analysis, but still, I'm not used to that much red.
 
I can't be bothered to install it but if you want then I'll find the link for you
 
I got a private build as well, it worked nicely for null analysis but it crashed on alt+enter on some other thing so I downgraded. I did tell Jetbrains though, so hopefully they will fix that as well.
 
yea I'm using 2016.1 with optimistic analysis now
 
None of the settings worked for me, there was something completely broken for all of them.
 
10:06 PM
@TomW that helped a bit, I re-added the deferral assignment in the OnSuspending event. At the moment the code fails when the call to register the background task is called..:?
Any idea how I can step into why that line has failed?
Anyways I posted a question if anyone has some suggestions..
0
Q: How to register background task in OnSuspending event?

Brian JI'm following the MSDN guides on registering a background task in a Windows Phone 8.1 application. So far when debugging I trigger the OnSuspending event manually via Visual Studio debug toolbar lifecycle option. When I step through the code in the OnSuspending event the registration code execu...

 
00:00 - 19:0019:00 - 23:00

« first day (2030 days earlier)      last day (2934 days later) »