« first day (921 days earlier)      last day (3228 days later) » 

12:00 AM
@Nolski Use Snoop :)
@KyleHumfeld you'll usually do a scale transform instead
I believe Height can be animated, you just usually don't
 
Guess I could give that a shot. I saw an example or two for that floating around out there. But it's weird that it's neither crashing nor doing anything
 
yeah, that is a bit odd
 
I generally expect one of those, or some squawking in the Output
 
What container is it in? And did you manually set a height before?
 
I manually set a height on the Button, and the Button and VSM are in the same Grid. And the Foreground color of the TextBlock that's a sibling to the Button is changing properly due to other animations in the same VSM
 
12:07 AM
And presumably, if you change the height manually, it shows an effect?
 
I'll give that a shot when I get back into a working state =)
I feel like with a UserControl with a DP of 'UCText', there's some way for me in pure xaml to say 'put the value of that string into this TextBlock's Text property'. That's true, isn't it?
Or do I have to do it in code?
Guess I could set the VM of the UC to 'this' and then Bind to the DP, right?
That did work
BTW, MyButton.Height = 200 did work
(in code-behind)
 
12:22 AM
@BradleyDotNET This looks awesome
 
@KyleHumfeld Not really
Remember to be careful when setting the data context with DPs
 
Yes, definitely
 
I would like that feature, but haven't figured it out yet :*(
 
It looks like I can't have my VSMs affect any of the elements inside my UCs... have you found that to be true?
 
12:37 AM
Yeah, that makes sense
The UCs would have their own VSM
 
12:53 AM
I set up a VSM in my UC, but can't find a way to call it. Instead, in my change delegate for my Color DP, I programmatically create a storyboard and an animation and run it. Works, but it yanks the animation out of the XAML, which is somewhat nonideal
 
1:10 AM
Any reason you can think of that element.FindName("nameOfMyStoryboard") would be unable to find the storyboard?
 
Yeah, you aren't searching in resources
so here is my VSM code in a UC, I'll gist it all in a second
 
Oh, okay, cool, thanks
I'm working to try and call my xaml'd storyboard when my enum value changes in my uc
 
... btw, how do I search in resources? And my storyboards aren't in resources per se
at least not explictly so
 
Well, they probably should be
where are they?
And to answer your question, its just Resources[key]
I have to get going, but feel free to look through that code
 
1:14 AM
Oooh, dur. Need to just call VisualStateManager.GoToState() instead of trying to Begin() the storyboard after finding it
 
It does work (and is a WinStore app)
so it might help you find any errors
 
Awesome, thanks for your help (and code!), I'll dig through them and see how much I can grok
 
Heya
 
No problem. Good luck! I'll talk to you all tomorrow
 
1:15 AM
In my application I used UUID to generate a licence
but I notic that UUID is the same in 2 machine :( :(
I get the UUID by type wmic csproduct get uuid
Any one can help please ?
 
Sorry, @AbdusalamElsharif, I'm a newbie at this stuff, and I think all the seasoned pros are gone for the day. I'd love to help you, but unfortunately I think you're way beyond me in this stuff. =)
 
Thanks @KyleHumfeld, I hope some one else have any idea !
 
Thanks @BradleyDotNET, it worked like a charm once I corrected the name strings between xaml and c-b and followed your example. You're the man!
 
Hey hey, any chance I can find someone with Kinect experience here? :)
I was wondering if its possible to extract the skeletal data from kinect and insert it in to a 3d model (so the model has a bone structure you can play with)
 
1:33 AM
@Bono I happen to be working on a kinect project right now :) which version 1 or 2?
 
@Nolski Hey! Im working with the 2 :)
 
you can just connect all of the joints in x, y, z and use that data to render a 3d model
 
Hmm, what kind of model would roll out though? Probably something looking like a skeleton itself, correct?
 
Yup it's just the bones
You might be able to render the depth pixel data but it wouldn't be a full 3d model
 
Alright
 
1:37 AM
Oh also @Bono I saw this the other day, never used it but it might be of interest nuget.org/packages/Microsoft.Kinect.Fusion.x64
 
What ive currently got is a system that scans a persons body and generates a 3d model from it (works quite well). Now I was thinking, if I scan the skeleton data afterwards and try to insert that into the model I might be able to animate it
Haha, yeah thats what Im currently using :)
 
That might be possible. Rigging a model like that probably won't be easy though
 
Exactly, but Im kind of having trouble thinking where to start off
I was just wondering if its possible to extract skeleton data in a raw formot
 
Yeah that seems like a pretty tough issue to solve. My roommate 3d models and they used software that costs hundereds of dollars to rig models
 
*format, so I can basically already tell where all joints etc are located
It neednt be pretty or anything, it can look botched up :P
 
1:39 AM
The skeleton points (in x,y, z) should be given in the same unit as whatever point is given to you in the 3d model from fusion I'd guess
I gotta head home for now though. Best of luck!
 
Cheers mate!
 
 
10 hours later…
11:13 AM
Afternoon here peeps :)
 
11:27 AM
going to build!
 
11:46 AM
VLogging it! Today I fly to San Francisco. We're going to cruise over to Google HQ to play a bit of ingress, then check out the computer museum. Exciting! I'll be doing nightly wrapups here: youtube.com/c/BillStrait
 
sweet
@NETscape found this:
Multiple sinks can be active at the same time. Adding additional sinks is a simple as chaining WriteTo blocks:

Log.Logger = new LoggerConfiguration()
    .WriteTo.ColoredConsole()
    .WriteTo.RollingFile(@"C:\Log-{Date}.txt")
    .CreateLogger();
for your scenario you'll just need to create a sink :) should be easy enough :D
 
12:15 PM
packing. Laters.
 
have a nice time :)
 
 
2 hours later…
2:14 PM
@RolandPheasant havent had a chance yet, will update you when i do
@Maverik you here?
 
2:44 PM
oi
 
so i have this code first project running in my dev environment
i never specified any connection strings
i tried to copy and paste my project out of the bin directory
and change the app.config to point at the db
but i cant seem to get it to work. i guess my question is, should it?
 
3:11 PM
@Julien It's working under dev?
@Julien Where's dev getting the connstr from?
 
i am noob i figured it out
i thought i had to provide an app.config
but it generates an exename.exe.config
which is where it genereates the connection string
 
 
1 hour later…
4:33 PM
@KyleHumfeld Glad it helped you :)
@Julien Note that the file "app.config" in your project becomes the exename.config file at build time.
 
5:29 PM
directed at Bill The Lizard by some user :D (first ever mod of SO along with Marc Gravell)
 
lol
woah
that guy has a chip on his shoulder
I will help the peoples!
Lizard, you hateful beast you... be as good as me!
 
771
Q: April 2015 Community Moderator Election Results

Shog9Stack Overflow's 6th moderator election has come to a close, the votes have been tallied, and the 3 new moderators are: They'll be joining the existing crew shortly — please thank them for volunteering, and share your assistance and advice with them as they learn the ropes! For details on ...

 
5:52 PM
I have to imagine that's a joke... right?
(The Bill Woo Upgrade thing, not the Mod election results)
 
6:04 PM
no that question was a serious "question" posed by some user who was banned originally
the question got deleted, but no before somebody screenshotted it to save it for future generations xD
 
@KyleHumfeld you would be surprised at the rants Meta gets
They get downvoted to hell, closed, and deleted fairly quickly, so unless you are monitoring Meta, you don't see them
 
Warning taken: stay away from Meta =)
(jk)
 
More like, stay away from any posts that start with "I hate Stack Overflow" as the title
unless you really feel like dealing with an angry user
 
Haters gonna hate, right? =)
 
pretty much
 
6:13 PM
It's like democracy: the worst system except for all the others
 
I'd be more tempted to do something about the rants if the users posting them actually had quality content
 
Weird question: I just downloaded a Solution from a repo and when I double-clicked on it, it opened in VS Express, which I've never even opened before. Any reason you can think of that it would have done that, and any reason why I shouldn't be able to manually point 'real' VS at the Solution instead?
I did open just fine in 'real' VS (all kinds of errors popped up in Express)... weird that it would have chosen to use Express by default. Maybe the previous dev was using that version?
 
Maybe
Was it an old solution?
like from VS 2008?
 
No, they were working on it like 8 months ago, so I assume they were using VS 2013. One was on a Mac, with a Windows 8 VM running, though, so maybe he only had Express or something. Not important, I just found it curious.
 
6:37 PM
Never had to deal with an express solution. It could be different
 
6:51 PM
I'm importing code from the other project into the 'real' project, including some of the UCs and whatnot. For many of the instances where I'm calling the UCs, VS says that the UC type name can't be found. I did change the x:name and xmlns:local in the xaml of the UC and the namespace declaration in the code-behind... any other tricks I should be aware of to get VS to see my UC in the namespace? I did Clean and Build, but no dice.
 
is it just xaml thats complaining?
 
Did you add the other project as a reference?
Or just copy the files?
 
I did add->existing file, and I verify in my Properties that it did the copy for me
Interesting thing, when I use the UC in my Phone xaml, no errors. The BigWin xaml? errors.
Even when I made a new xaml file on the BigWin side and copied the UC call into it? error.
 
xaml lies
 
It may lie, but when it won't compile, I believe it
And yes I've definitely seen that
 
7:01 PM
again just try to do it in code behind
 
Like you have a bunch of errors, but it runs just fine
 
if you cant find the namespace.item in code behind, the reference is incorrect
 
What I'm doing here I can't do in code-behind
Aha, I see what you're saying
like myUC = new namespace.myUC()?
 
yeah
 
will try that, thanks
 
7:03 PM
so i have my trusty little laptop here.
i installed sql server 2014 express
i installed localdb (i think)
i installed sql management studio
but i cant connect to anything !!!
i want to copy my app over and try it
 
Weird, works fine on Phone but not BigWin. (DynamicButton2 b = new DynamicButton2();)
 
one project has a good ref the other doesnt
 
the only way I know to do the ref is to set up xmlns's. Is there another way, because those are the same between the 2 projects
 
well going back you say you used "Add existing file"
so you manually added the code files to both projects?
 
Yes, and then changed the namespace calls to match my local solution
And I added the code to the Shared area
(winRT solution)
 
7:06 PM
well in my mind thats not any different then creating a new class file and trying to create one from a different file
should be pretty basic...
 
But the BigWin side does seem completely unable to see anything in the Shared area for some reason...
 
sounds like an issue with your project setup
 
Yeah, I tried that next. Same results
I'll take to the searchenginesphere to see if anyone else has come across this behavior before. Figured someone here might know off the top of their head
 
Does a shared reference appear in the BigWin reference list?
 
but he didnt add a reference
he just included the file
 
7:12 PM
right, but he said nothing in the shared area was working
and shared gets a special type of reference
and IIRC he did something weird with his BigWin project
 
Everything referenced in the shared area seems to be findable by the Phone project, but none of it seems to be findable by the BigWin project
And I think I'm referencing them in exactly the same way (did some copy/pasting from the Phone project xaml into a new xaml file in the BigWin project just to make sure)
 
Right, so in the BigWin project, does it have a reference to the shared project?
 
For example, in my MainPage.xaml.cs, I have this line:
 
it will look different than the others, with a double diamond icon
 
using MyCalc.ViewModels;
And that is not found in the BigWin one and it IS found in the Phone one
 
7:16 PM
Ok, then you are almost definitely missing the shared reference
 
Not sure, let me look
No, it does not
 
Well there's your problem
 
Thought it was supposed to do that automatically when I set up the project as universal
How do I get a ref in there?
 
Not sure to be honest
 
Cool, well at least now I have something specific to search for. Thanks!
 
Yes, that's how I originally took it from BigWin-only to Universal.
And looks like I'm the only one on the Internet to whom this has happened... haven't been able to find any instructions on how to add a reference to the Shared project, and copy/pasting the Ref from the Phone project gave a 'catastrophic failure'
Maybe I have to make a new Solution (again) to get this to work.
Yeah, looks like something in the process of setting up the Universal project screwed up and the reference it says it'll add to the original project didn't happen. I'm not sure if I can get that ref to set up by adding WinPhone again, but I'll do the experiment (on a copy of the solution, in case it goes wrong) and report back
Unfortunately, that didn't work. It didn't link to the existing 'Shared' project, instead it made a Shared1 project under the BigWin project (not sure how a project-within-a-project works), and referenced that instead.
 
7:37 PM
Huh, thats werid
never run into this myself :(
 
might be noobish, but can you do, public enum MyEnum { None = 0, Zero = 0 }...
it seems to compile
 
Or, to be more accurate, it added the Phone1 and Shared1 projects in the same directory as the BigWin one (tree made the Shared look like it was indented, but it's not), which is somehow not the same as the existing Phone and Shared ones. That may be my clue there
 
@NETscape You shouldn't be able to I would think
Testing...
 
Unfortunately, moving the other projects to the BigWin directory in the Solution Explorer doesn't seem to make the Shared project reference-able
 
Huh, guess it works
@KyleHumfeld You might be better off with a new solution, as you said, then copy everything over
you just need the projects set up correctly
 
7:42 PM
Yep, that's the next step once I've tried every other less-PITA option =)
 
8:13 PM
Okay, did that, all my references are set up, all my files are Add->Existing Item'd and their namespaces changed to match the namespace of the new project.
... and I get the same error as before; the name [myUCName] does not exist in the namespace [using:myNamespace]
I've checked all the xmlns:local defintions, and they're all as they should be, near as I can tell
 
And the shared references are now correct?
Do you have the same error, that phone works and BigWin doesn't
even though the UC is in the shared library
 
However, progress: DynamicButton2 db2 = new DynamicButton2(); now works in the code-behind
 
Thats a start
 
And, infuriatingly, yes, when I copy the xaml over from BigWin to WinPhone, WinPhone does not squawk about the UCs not existing
That was actually kinda a surprise when I did it just now...
Just to be double-sure, this is right for BigWin projects, right?
xmlns:local="using:FinCalc"
Like proper syntax for non-Phone
 
It looks right
any intellisense when using local?
 
8:21 PM
Let me check
Yes, including the one that it subsequently says is not defined in the namespace
(or, ones, rather)
Yeah, it doesn't seem to be able to find any of the UCs that Intellisense is finding under local
need to step out for a bit, be back in a while. Thanks for helping me with this, I have no idea why this isn't working
 
And you did build the new project, right?
 
I did build and the errors persisted, Cleaned, same, ran, same but the project actually compiled and ran... Now I need to grab all the code-behind to get my new project to where my old project was, then see if it still works
But before that, blood sugar needs seeing to
 
lol, enjoy your lunch
 
 
2 hours later…
10:16 PM
@BradleyDotNET yeah wondering what kinda side effects there are besides maybe readability
 
Well, two enum members map to the same value
which is kind of weird
So those values would probably be "equal"
Could cause issues if Type.Zero is supposed to not be equal to Type.None
 
10:31 PM
hi guys I am working on an application which has a radio button and uses a command to perform the respective operation
<RadioButton Name="SendToGen" Content="Send To Generator" Command="{Binding Path=SendToCommand}" Margin="4" VerticalAlignment="Center"/>
<RadioButton Name="SendToDet" Content="Send To Detector" Command="{Binding Path=SendToCommand}" Margin="4" VerticalAlignment="Center"/>
<RadioButton Name="SendToBoth" Content="Send To Gen and Det" Command="{Binding Path=SendToCommand}" Margin="4" VerticalAlignment="Center"/>
SendToCommand is a relay command
how do I know which radio button was selected?
 
10:47 PM
You don't
you need to use seperate commands, or use the command parameter to add additional data
 
how do I use command parameter?
@BradleyDotNET please give me an example with command parameter
 
Could you be a bit more specific as to what is confusing you?
On the XAML side you would set CommandParameter="Something"
in the command, use the passed parameter
 
11:04 PM
yes I did figure my issue
thanks
 
no problem
 
Is there any problem with converting an ICommand to a PointerEventHandler?
I previously had my Commands attached to a Button, but my new UC only acts like a Button but doesn't contain one
 
not even sure what a "PointerEventHandler" is
so there might be...
 
Apparently, there are things like PointerPressed and PointerReleased events on UserControls (I'm seeing it in the code I got from another guy on my team)
 
never had to use those...
 
11:13 PM
However, in reviewing my other code, I never attached my ICommand to the Click event, rather to the Command of the Button, so I think I briefly went down the wrong path with that one.
 
11:33 PM
Ah yes, in a UC, go off the Click event
 
Like this.Click = this.Command?
the UC doesn't seem to have a Click event, nor does the Grid inside it
I'm not quite sure how to make an element that does have one that doesn't jack up the UI that's already been developed and resides in the UC
Can I call this.Command() explicitly, or is Command more of a reference to a method rather than the function itself?
 
No, thats not what I meant :)
Your UC is pretending to be a button, right?
In fact, it is a button IIRC
or at least it holds one?
 
The prototype did have one, but the new one does not
It just has a Grid
I could probably add one if absolutely necessary, but I'd prefer not to if I can avoid it
 
11:48 PM
I see
 
And I do have event handlers that are attached to PointerPressed and PointerReleased events
So I could call this.Command in that PointerPressed handler if that's a thing that can be done
 
You'd have to handle the mouse events of the grid, then check to see if this.Command exists, and if so, do if (this.Command.CanExecute) this.Command.Execute();
 
yeah
or the "tapped" event
 
Ah, so this.Grid.Click += this.RunMyCommand
and in RunMyCommand(), your Command.CanExecute line?
 
right
Or MouseDown, or Tapped, or whatever you have available.
 
11:52 PM
Looks like Tapped does exist
I'll give that a shot, thanks!
Man, my VS is taking 20+ seconds to save my file when I make a one-line change...
It's constantly freezing, but hasn't crashed yet today (yet)
 

« first day (921 days earlier)      last day (3228 days later) »