« first day (1048 days earlier)      last day (3101 days later) » 
02:00 - 15:0015:00 - 22:00

3:00 PM
Task refuses to wait for Quota.. as soon as Dfs is set, it's done waiting >.<
 
not to sure about cont. options
 
even if it's not there, result is same
 
but would you want to call await x.Result.SetQuotaInformationAsync()?
 
nah.. Task.WaitAll does that (along with quite a few other async tasks)
i don't need to get the result .. i just need it finished
(the async operations support fluent api which I'm not using so the result is irrelevant, they've already modified the flags they're supposed to on the source object)
7
A: Task.ContinueWith not working how I expected

Daniel HilgarthThe reason is simple: You wait on the task that is already finished. What you really want is to wait for the ten tasks you created in the loop: var tasks = new List<Task>(); for (int i = 0; i < 10; ++i) { tasks.Add(task.ContinueWith(_=> increment())); } Task.WaitAll(tasks.ToArray());

I'm following that example.. I pass the continuation in for waiting.. so in theory it should work O.o
eff it .. i've worked around :)
 
how ? :)
 
3:11 PM
organisation = organisation.SetDfsPathAndStorageServerAsync().Result;

                Task.WaitAll(organisation.SetQuotaInformationAsync(),
I can afford to take a bit of hit there
 
I was thinking organisation.SetDfsPathAndStorageServerAsync().ContinueWith(... returns the same as organisation.SetDfsPathAndStorageServerAsync()
 
ok, explain master
i no understand
 
so... it's expected that WaitAll on this result only waits organisation.SetDfsPathAndStorageServerAsync()
 
how do you guys approach making sure that database calls aren't attempted in the designer? It seems to be working ok as long as I make them after InitializeComponent();
 
why are you calling db stuff in constructor?
if you must do the calls, do them in Loaded
 
3:13 PM
not organisation.SetDfsPathAndStorageServerAsync() + whatevery was inside ContinueWith
 
well, it would be lovely to be able to use readonly but I guess that's wishful thinking
 
yea franssu: that's what happening
but according to the answer i linked, if i pass in the result of continuation, it should wait on continuation
 
mmh ok
 
which is the odd part
the answer makes complete sense to me - and i did the right thing from the start but i'm missing something
so for now i'll leave it at workaround
 
if I install VS2015 onto the build controller machine, I should be able to use C# 6.0 while targeting .net 4.5 I think, or perhaps I could just install the VS2015 SDK and it still work. Anyone have knowledge here?
 
3:24 PM
nope but vs2015 should let you do that
one way to be sure: install SDK and see if it works :)
doesn't have to be on controller
 
well, no, but short of creating a VM just for that purpose, I'm not sure how else I would test the theory
 
0
Q: Using MSBuild to compile for ToolsVersion 3.5

mabichaI need to compile for visual studio project using MSBuild for .Net version 3.5. I have downloaded Visual studio 2013 which comes with a tool chain 12.0 which uses .Net version 4.5. I can't install Visual Studio 2008(which comes with .NET version 3.5) because that is not supported on my Windows 7 ...

this may help
version is different, but the idea is same
 
btw, it's Tfs2010, so I'm already pushing my luck with .net 4.5 + Fsharp + type providers
 
i dont think it matters
at the end of the day if your tool can handle it..
 
that's what she said
 
3:26 PM
i was waiting for that ;P
see you'll fit right in!!
 
that's what she said
 
right.. so seems Windows SDK is ..
lol
 
. happy to oblige
 
key
 
windows sdk is.. happy to see you?
oh, is key
you mean, I might get away with windows SDK, instead of having to install VS on the build server?
 
3:28 PM
that's what I'm thinking, yes
C:\Program Files (x86)\Microsoft Visual Studio 14.0>where csc
C:\Program Files (x86)\MSBuild\14.0\Bin\csc.exe
C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe
 
oh, and the server appears to be windows server 2008, I don't know where to look to confirm/deny R2
 
so, clearly when you have .net 4.5 installed.. you'll have the compiler you need
 
where csc -> is that a special command that's not built into windows? or is on newer windows? I've never seen it before
 
where is windows command to tell you where in path did it find the argument
 
well, the .targets files are what are missing from the build process I think
 
3:29 PM
csc is CSharp Compiler
 
otherwise the c# 6 features would already be able to compile on the build server, like they do locally
 
msbuild itself is in same location
 
I know csc =)
 
i dunno when did they include where
 
so it should be a matter of teaching the tfs build template to use the right csc then, via .targets
 
3:30 PM
but its definitely in 2008 r2
yea probably
i've never used TFS to build
 
know how to determine if the 2008 is r2 or not?
 
or used TFS at all for that matter
 
I'd love to move to F# Fake but I'm not sure how
 
sure, it'll say in system properties
 
3:32 PM
I wish i could switch over to f# to begin with
but its syntax .. i have trouble getting past that
oh btw: where csc.exe worked in developer console
it wont work in regular cmd since the path will not have vs stuff in
 
ah, so where is part of devenv, good to know
 
eh no
where is built-in to cmd
 
I'm the only developer here. I have a greenlight to move things as I see fit =)
 
C:\Users\xxx>where cmd.exe
 
oh
I see what you mean
 
3:35 PM
anything that you can execute in shell.. where can tell you where it found it from
and the order in which it found it
(this last bit can save you some real headache)
in linux I have which and I had this one time where openssl just wouldn't connect to my https site even though i installed the same version as linux box
that's where i found where and i got to know that the ancient version of git includes an openssl client and has precedence over the installed version
and that openssl was the reason i was failing
 
cool
 
I'm not sure how new you are to WPF.. but just to be safe i'm gonna say this: if you haven't gotten full grasp of MVVM, you should do that on priority
(just recalled something randomly)
 
which is primarily about moving things out of code behinds into ViewModels, right? SoC and testability.
 
yup yup
but that's just a start
ViewModels are what will then let you move into how we do things normally that you're doing with Modal Windows: view swapping
 
k, I'm good on the ideals, it's figuring out how to do them in Wpf, especially with a messy complex legacy code base that I'm struggling with. would love to move to IoC while I'm at it
 
3:43 PM
normally it's best to start fresh on wpf and import stuff in
 
depends on how big the complex legacy code is ?
 
bigger the legacy code base, worse the idea of coaxing it into wpf world
imho of course :)
 
it's already wpf, but poorly written wpf
 
winform code with a wpf window? :D
 
the codebase I'm currently in is at least as old as Jan of 2012
seems to strongly suggest I could install a much smaller surface area to the build controller
 
3:47 PM
that's exactly what i had in mind
 
cool
why did winforms come up? oh.. the age is before wpf?
 
yea badly written wpf
it's generally because a winforms dev decided to create a wpf window
and paste all legacy code in code behind and declare it wpf app
 
right, that's one of the reasons I never learned wpf. back when I was originally curious. I couldn't find decent tutorials that were idomatic wpf, and I knew that without knowing wpf
build tools says it won't install on windows server 2008 when I try to launch it, I think I just confirmed the build server is not R2
 
well you're in luck, our legendary resident Reed Copsey has created a series just for that!
 
by looking at ver from the command line
just for what, idomatic wpf?
 
3:52 PM
moving from winforms to wpf :)
 
ah
 
it's a good read for anybody starting doing wpf
 
damn, I hate that I hit a brick wall with being able to use C# 6. I want my primary constructors
 
maverick did you check there's no exception thrown after dfs is set
 
yea franssu .. everything works fine if i simply do a manual wait
Maslow: our starbar is a pretty good resource list (i clean out irrelevant stuff pretty regularly)
on the first page, you'll find Reed's Blog link - give it a read when you have time (it's got very few but very helpful series)
 
3:55 PM
even vs2015 says it won't install on server 2008, bah!
 
then you probably have an actual 2008 server
2008 = xp
 
hah, bumhug.
 
2008 R2 is from same era as 7
 
but we can't stay in the dark maverik :(
 
i'd love to obsess over it, but i'm already eating up time from my actual project
(that I'm not doing, and i'm being obsessive about fixing this other project)
 
3:57 PM
:(
I'm out of this world !!!
bye
 
bbye
 
4:24 PM
Anybody using Gestures in WPF?
(swipe, namely)
I'm seeing GestureRecognizer...
Not seeing a lot of xaml here...
 
4:40 PM
sorry no
 
@LynnCrumbling a little
rolled my own
 
5:26 PM
@JohanLarsson Oh yeah? Does it support Win7 or just 8 and up?
 
@LynnCrumbling Yup
@LynnCrumbling now working :)
 
Excellent :)
 
@LynnCrumbling How would I go about doing some image animations?
 
What kind of animation do you want?
@BradleyDotNET is probably the right person for this, but others may jump in as well. If it's as simple as a rotation, I might even be of help.
 
Well, I have about 6 logos that I want it to play through on the login page
like fade, fly in/out,
etc...
 
5:38 PM
learning about transforms, storyboards, basic animation tutorials is a good stepping stone
 
Any good places in particular?
 
MSDN has some good docs on what-is-what. you can probably find good tutorials by searching specific effects you want.
you can use Blend if you want, but I think some of us would recommend against it depends on what you want to do.
where is Bradley :(
 
lol
the thing is that this is the 2nd version of the software
and it's being planned for an anniversary release
so we are also planning a little bit of a makeover
hence new logos
so I was thinking it would be cool to do something with animations and text, almost like a video but animation based
 
thats fine. animation is animation. you can bend, stretch, turn, skew anything and everything in WPF (i think ha)
 
5:47 PM
of course there's bradley :)
 
is it correct to say that attributes on a property are Trivia in Roslyn-speak ?
 
Of course :)
@NETscape What happened with Slashy earlier?
I was surprised to see Rene jumped in here...
 
not really sure. got his question answered and went silent
 
rene said something about flagging things?
@JoshMenzel Is that question helping at all?
 
basically one user kept posting mostly irrelevant questions/answers in reply to Slashy's question. Slashy didn't want to hear it. Someone flagged someone.
 
5:57 PM
I noticed there was no code one it...
Ha.
 
@LynnCrumbling yeah, I will keep it for future reference
@LynnCrumbling also, got the passwordboxassistant in place
 
Excellent.
 
<Window.Triggers>
    <EventTrigger RoutedEvent="Window.Loaded" >
        <EventTrigger.Actions>
            <BeginStoryboard>
                <Storyboard TargetProperty="Left">
                    <DoubleAnimation From="500" To="515" Duration="0:0:0.050"
                                 AutoReverse="True" RepeatBehavior="Forever"
                                 FillBehavior="Stop"/>
                </Storyboard>
            </BeginStoryboard>
        </EventTrigger.Actions>
    </EventTrigger>
 
@Slashy ^ control-k that for us
thanks :)
 
@LynnCrumbling haha i should thank you
alright now i dont always know the from and to properties
is there any way to change them in the c# code behind?
 
6:00 PM
Can you bind them to a viewmodel property, then just change the property in the vm?
 
@LynnCrumbling ?
@LynnCrumbling im not sure i actually know what youre talking about haha
 
<DoubleAnimation From="{Binding StartAmount}" To="{Binding EndAmount}" ....
Does your application use mvvm?
 
are there application types that work on both Win desktop and Win Phone devices?
 
@NETscape no
@LynnCrumbling yea it does
 
UWP?
 
6:07 PM
i just tried it
 
but on the c# code i need to declare 2 var StartAmount and EndAmount and assign a value for that right? @LynnCrumbling
 
@NETscape I was just going to say -- universal.
MSDN Magazine has a good article on universal apps this month.
 
@LynnCrumbling again this is what i use
<Window.Triggers>
    <EventTrigger RoutedEvent="Window.Loaded" >
        <EventTrigger.Actions>
            <BeginStoryboard>
                <Storyboard TargetProperty="Left">
                    <DoubleAnimation  From="{Binding StartAmount}" To="{Binding EndAmount}" Duration="0:0:0.050"
                                 AutoReverse="True" RepeatBehavior="Forever"
                                 FillBehavior="Stop"/>
                </Storyboard>
            </BeginStoryboard>
        </EventTrigger.Actions>
and c#
 
@Slashy Right - in the viewmodel, add a StartAmount and EndAmount that's a System.Nullable<Double>
 
6:10 PM
public partial class Call : Window
{

Socket sck;
int StartAmount = 50;
int EndAmount = 10;
@LynnCrumbling still not working..
wait wha'ts actualy the viewmodel? i added in the c#
isnt it good enough?
 
Your window is your view or the "v" in (m-v-vm ... model-view-viewmodel)
You've added the code to your view.
If your application uses mvvm, you've got a viewmodel that your view is instantiating and setting as the datacontext, and you can bind to properties in it.
 
so...how do I do button commands again
?
put the relays in vm right?
 
@LynnCrumbling now im getting an excpetion
Cannot animate the 'Left' property on a 'WpfApplication4.MainWindow' using a 'System.Windows.Media.Animation.DoubleAnimation'. For details see the inner exception.
 
@JoshMenzel Yep, add a RelayCommand (RC)
then, in your XAML, set Command="{Binding YourRelayCommand}"
 
Okay.
@LynnCrumbling So then what is CurrentObject?
private void Login(object CurrentObject)
    {

    }
 
6:25 PM
@Slashy What are you actually trying to do? Slide something?
 
yep
 
@JoshMenzel If use supply one, the CommandParameter. For this case, you may not need one. It'll be null, and that's fine.
If you need to pass an item into the RelayCommand, you can do it with CommandParameter.
Login() doesn't need to pass anything. You've got access to the user and pass in the vm.
 
@LynnCrumbling That
@LynnCrumbling That is what I thought..
 
Yep, you're backing those fields with vm properties, so no worries.
 
0
Q: Wpf Bind animation values rrror

SlashyI'm trying to bind my DoubleAnimation properties to a c# variables in the code-behind. This is my xaml: <Window.Triggers> <EventTrigger RoutedEvent="Window.Loaded" > <EventTrigger.Actions> <BeginStoryboard> <Storyboard TargetProperty="Left " Name ="PlayA...

 
6:28 PM
@LynnCrumbling but now I get a build error: Argument 1: cannot convert from 'method group' to 'Action<object>'
 
@JoshMenzel If using something that holds items (listbox, etc), it's common to pass the currently selected item as the CommandParameter. Say that you want to have a button that gives you an editor for the current item. Now you have a reference to it.
 
@LynnCrumbling Is CurrentObject the object that is firing the event?
 
@JoshMenzel No, it's completely arbitary and unused unless you specify CommandParameter.
Paste your button code.
 
Command="{Binding LoginCommand}"
 
The whole button..
 
6:30 PM
<Button Content="Login" Grid.Column="2" HorizontalAlignment="Right" Grid.Row="4" VerticalAlignment="Center" Width="50" Height="23" Margin="0,0,15,0" Padding="0,-3,0,0" Command="{Binding LoginCommand}"/>
 
<Button Content="Login" Grid.Column="2" HorizontalAlignment="Right" Grid.Row="4" VerticalAlignment="Center" Width="50" Height="23" Margin="0,0,15,0" Padding="0,-3,0,0" Command="{Binding LoginCommand}" CommandParameter="1"/>
^ this will make it pass "1" to CurrentObject
<Button Content="Login" Grid.Column="2" HorizontalAlignment="Right" Grid.Row="4" VerticalAlignment="Center" Width="50" Height="23" Margin="0,0,15,0" Padding="0,-3,0,0" Command="{Binding LoginCommand}" CommandParameter="{Binding}"/>
^ this will make it pass the ENTIRE current binding to CurrentObject
You don't need to pass anything, so don't add the CommandParameter to your button :)
 
okay.
Thanks,
With websockets and network data, do I need to worry about memory leaks?
 
That's not really my forte. It'll come down to what classes you are using. If they are correctly disposing themselves, I wouldn't expect any memory leaks.
 
I was reading some previous issues with SocketIOClientDotNet that mentioned memory leaking and thread-safe issues
 
@JoshMenzel It's possible. Especially if it's 3rd party.
 
6:51 PM
I just realized how much binding I need to do on the login form....
:D :D
 
It's just the 4 items, right?
 
5
2 textboxes, progress bar, button and checkbox
10 items bound
 
welcome to wpf hehe
you are just on the tip of the iceberg
 
imagine what the admincontrol has to do..... :s
the number of bindings with that is easily going to go over 100
 
in the grand scheme of things, 100 is nothing
 
7:03 PM
probably looking at 200-300
maybe even more
basically it's a database editor with a Socket.IO controller to pass information to all connected clients
also
@LynnCrumbling My notifcation message handler is not working
I don't know if it is because I am resizing the window or what
    <Mahapps:MetroWindow.Flyouts>
    <Mahapps:FlyoutsControl>
        <Mahapps:Flyout Position="Top"
                Name="AB_NOTIFICATION"
                CloseButtonVisibility="Collapsed"
                TitleVisibility="Collapsed"
                IsPinned="False"
                IsOpen="{Binding IsOpenNotification, Converter={StaticResource BooleanToVisibilityConverter}}"
                Height="75"
                Background="{DynamicResource AccentColorBrush}"
            >
            <TextBlock VerticalAlignment="Center" Name="TO" Text="{Binding NotificationText}" />
 
do you see any errors in the output window
 
Nvm
I was using the booleantovisibilityconverter
 
ah. yes.
 
I wish Mahapps.metro had some graphs or charts
there is a lot of statistical data I wish I could display
 
7:39 PM
I couldn't make sense out of how to use them myself, will look at it again now that I know how to do some mvvm
any thanks for the link be back iin 2 hrs(called into work)
 
8:08 PM
@LynnCrumbling supports win 7
 
@JohanLarsson Any interest in sharing?
 
@Julien Does modernuicharts support win 7?
 
if your wpf app will run on windows 7 then so will any wpf addons you use
 
then why does it say for win8
that's retarded
 
@Julien Why does the nuget page specifically say Win8?
@JoshMenzel I suspect there is a reason.
@Julien See the title for this modernuicharts.codeplex.com
 
8:22 PM
@LynnCrumbling My guess is that it's because he embedded some silverlight and windows 8 storeapps in it
@LynnCrumbling I would like to include this on my project but I have no idea how to create and edit these elements
maybe I should just get the login handling done first anyway...
 
"Windows 8 applications"
windows 8 applications do not exist
i'm pretty sure it should just say windows
 
@Josh take a look at the docs: modernuicharts.codeplex.com/documentation
@JoshMenzel Probably not a bad idea :) I can't wait until you have a fully functional login.
 
@LynnCrumbling It makes it easier without having all the old code in it
@LynnCrumbling I am finally just beginning to understand mvvm and it's beauty
 
8:37 PM
@JoshMenzel The real fun will start once you begin the admin console.
 
8:53 PM
@LynnCrumbling of course
Maybe the demo is broken, don't remeber if I fixed the animation issue
I'm on vacation this week so might be a couple of days before i respond to pings
 
@JohanLarsson Nice! Enjoy! ..And thanks for the link :)
 
9:26 PM
@LynnCrumbling The only downside tot he flyouts is that they auto-close when the window is clicked
(Since the flyout is technically overlaying the entire window)
 
IsPinned = "true"
 
Is that from the mahapps frameowrk?
 
@JoshMenzel Found it in this discussion : github.com/MahApps/MahApps.Metro/pull/965
By default, IsPinned is false.
If you set it to true, I think it'll do what you expect prefer.
 
ah
why do I suck at figuring these things out...
 
Here's how I found it:
Google for: mahapps flyout autoclose
Scroll to bottom, where it was marked as dup: github.com/MahApps/MahApps.Metro/pull/965
 
9:33 PM
lolz
okay, thanks
I think I am all set
to script the login
or I could integrate the notifications into the windows 10 action center
which would be really cool
 
02:00 - 15:0015:00 - 22:00

« first day (1048 days earlier)      last day (3101 days later) »