« first day (831 days earlier)      last day (3318 days later) » 

12:41 AM
mmm - in my eyes, the question is flawed
you shouldn't be asking "how shoudl I store that information in the model" as much as "what does the model require?"
then "how do I create a VM that makes working with this model simple/effective/correct?"
ie: the model design should not be based on how you'll work with it in this application
(thats' kind of the definition of the model layer ;) )
 
 
7 hours later…
7:23 AM
@Maverik Well, the thing was that in the DockPanel the TextBox and Button got very high. So I wanted to make them smaller and center them. So first try was to place them in a StackPanel to center them, and all of a sudden they were better in size as well... After that I didn't think much more about it :)
and Morning by the way
 
8:14 AM
Anybody know how to keep a highlight while right click is on?
 
 
2 hours later…
9:50 AM
0
Q: MVVMLight: Ask information/confirmation in a command?

J4NI've created my first MVVMLight project, and I've a question: I've a button, on which is bound a command. When the command execute, in different use cases, I've to get/give information to the enduser, like: Ask where the project should be saved if the project is new Give a confirmation that ev...

 
 
3 hours later…
12:51 PM
Afternoon guys
 
Hello, boy!
 
:D
how are you
 
Cool, cool. Found some useful guides on the codeacademy site, learnt basics of HTML, CSS and JS+JQ there.
Being actually around the chat all the time, just not talking. :p
And you, how is your 'whatever you want me to ask you about'?
 
i has no idea what you means bros
but i've been super busy
:) haven't really been around much (though i don't feel too guilty.. the channel is well established now :) )
 
:)
Since I am talking to mighty Maverik, have you ever used Doxygen or LaTeX? I am willing to automate the process of documentation creation.
Or how do you create documentation?
 
1:07 PM
6 messages moved to recycle bin
Nah sorry buddy
i know of the two from linux world... but never actually used them
 
So you never create doc for your apps?
 
nope, cos i dont write apps
i pretty much do autonomous services exclusively
 
I see.
 
1:22 PM
Hey Mav
 
1:41 PM
hey!
 
 
1 hour later…
2:45 PM
hey yous
@ReedCopsey well the model requires a connection... which would be serial or tcp. So does that mean I would have two models, SerialPortProfile and SocketProfile?
long time no talk @Maverik. how are ya
 
I is good ma man
and i don't know the background of your question.. so i'll attempt to give you a generic answer :)
will enums cut it? if you only need to distinguish between two, that's what I'd do (or even a bool flag)
if they actually have different properties, then different class is what i'd go with
 
okeee
 
so how have you been?
I've been consumed in world of linux for most part
making move from going .net to mono compatible :)
 
you liking linux?
and its going good
trying to learn a lot still
 
i actually started my IT stuff from linux world :)
 
2:59 PM
couple people gave me app ideas. trying to finish project, self managing at work now. pretty busy and it sucks
down 15lbs
 
i was taught network management on a headless terminal where we used to guess the prompts judging by beeps of system and floppy disk movements :D
aahh.. those were the days!!
but yea it still rocks... biggest reason for move .. well besides being able to run on more things once .net 5 comes out
 
hi @Maverik
 
when are you going to allow sean to come visit
 
hey franssu
 
hi to you too franssu :p
 
3:00 PM
hi NETscape
 
my linux boxes are idling at 24mhz & 30mb ram xD
which lets me scale them out massively for my services
 
what distro?
 
gentoo
 
:)
 
they're running rabbitmq as our core communication service & nginx for some light web serving (basically all the stuff that sean is doing right now)
 
3:02 PM
I moved my girlfriend and my stepmother to linux mint recently :)
 
going to make postgresql cluster next and start coding EF with ngsql
 
is that easy to setup?
 
linux is cool if you're not a gamer
linux mint is super easy
just as easy as ubuntu distros
well most distros are pretty easy these days if you're not going to build from source
 
I'll move to linux too I guess..
and run windows from a VM
 
but you gotta love the compiled from source, optimized to ESX host linux in VM environment
 
3:04 PM
i'm talking gentoo
 
oh gentoo is fair bit of effort
its pretty barebones, but you do have a handbook with you
they walk you through to a complete booting system.. so in that sense its not too difficult, but time consuming
and the first rebuild i did for my server lasted a few hours with upto 12ghz computing power at its disposal
 
12 G Hz?
as in giga?!
 
but once i had base build optimized, i dropped the processors down to 1 3ghz and ram down to 256mb and its humming along prety nicely
umm yea
i have 48x 3ghz on one host
 
48x3GHz?
neat
 
yes
 
3:06 PM
oh, is this a server rack?
 
it makes sense once you recall that i work for a cloud hosting company
 
or whatever it is
 
yea, but this is just one box
 
do you often run brute force on it?
 
in that rack :)
nah not at all
 
3:07 PM
yea right :P
 
mm i never actually checked esx host spec.. brb!
also, sean.. i never stopped him from coming here but hes super busy with the new stuff
he's ba**s deep in SPA stuff
making some neat shit with AngularJS
he's naturally gifted at learning new things and I'm super lucky i think that he decided to join me over here
 
well tell him to visit us one of these days, geez
doesn't even slack
with the EU market value dying, you'd be lucky to have me too, but they don't pay you guys enough
 
3:41 PM
hey guys
 
heyy!!!! everyone is coming out of the woodwork today eh
 
HIYO
 
4:01 PM
Ohhi.
See? Just needed me talking a few days in a row to revitalize this place.
Now I just need to figure out how much prattling will bring Stephan back to us.
 
continue
and sean
 
Mav, what happened to Sean? He quit the social club, so I can only assume he hates us now.
 
he's "busy"
and ba**s deep
according to mav
 
Oh, a relationship.
I'm watching the video on ASP.NET 5. Man, I'm kind of scared by the stuff they're talking about.
 
4:34 PM
xD
i've relayed your message kevin
 
5:29 PM
@Billdr It was popping up every 20 seconds and I only had one screen connected at that point. It was super annoying and I couldn't ignore it so leaving was my next best option, sorry
Well it was never "every 20 seconds" but one day it seemed like that and it was doing my head in and I left the group
I've been "ba**s deep" as Mav puts it in learning new stuff. Super confusion
This will do for the obligatory "I'm not dead yet" I think
 
Glad to hear you are not dead
 
@Sean You can totallly snooze notifications.
Grats on not being tied up in mav's basement.
 
@Billdr Snoozing sounds like my alarm, not gonna stop it going off
 
5:44 PM
You can turn them off all together (as I think Mav does) or dismiss them for n hours.
 
Then other peoples' notifications would stop coming up xD
 
yea i've disabled notifications on group.. there's way too much chatter
 
Oh you can do it per-group
 
i just read randomly.. catch up and then continue ignoring :)
 
That would work
 
5:48 PM
Yes.
 
6:09 PM
oh hey @Sean ! you come in here because i request your presence and you don't even ping me
@Sean you can change settings so it only shows up in gmail/G+ tab in chrome
rather than docking
on desktop/taskbar etc
hey Bradley
 
Bill Gates is doing an AMA on reddit in a few minutes. reddit.com/r/IAmA
 
Hi @NETscape
 
@BradleyDotNET so i'm thinking about my communication profile design and what reed had said yesterday
and Mav, today.
We have multiple configurations for profiles
basically it will either be Socket or Serial Port as the "hardware" connection
and then there is a Protocol
there are like 4 different protocols there can be
So, should I create SerialPortProtocolOne, SerialPortProtocolTwo, SerialPortProtocolThree, ..., SocketProtocolOne, ..., SocketProtocolFour?
Thinking of it, I would define a Profile to have 1. a connection medium 2. a specified protocol 3. all other "properties"
i'll ping @ReedCopsey on this one too
 
6:27 PM
If its actually that polymorphic. That said, It seems you would have a "ProtocolStrategy" and a "ConnectionStrategy"
And then by passing various combinations in, you get your various behaviors
 
well the thing is, is that a third party library provides the connection and protocol.
so I can either do Master.Create(Socket sock) or Master.Create(SerialPort port) and it returns a IMaster
 
yup building on brads suggestion and what i said earlier.. if your connection medium + protocol strategy combinations are finite.. you could just set flags to indicate what you're dealing with
and your properties could be simple a bag of strings or something (i imagine they're simple settings)
 
So maybe have ProtocolProfile, then ProtocolOneProfile, ProtocolTwoProfile
 
how about just use hex masks?
0x0101 -> 1st Medium + 1st Protocol
hex masks = enum flags btw
 
right, thats fine
but I would need separate view models for each combination I think
 
6:33 PM
but its very usage dependent thing
 
unless I do Visibility bindings on all the controls or something
 
heh in that case i normally just go with models cos they're easy to target in datatemplates
eww visibility bindings suck
 
@Maverik right, I agree
but couldn't I do the hex flags thing, and just have a different viewmodel for each type rather than a different model for each?
 
Sorry, had to step away.
So you have your Master piece, and then why couldn't you have a Protocol strategy?
 
6:48 PM
@BradleyDotNET because all the protocol details are in the third party lib
 
@NETscape are the properties the same? is the main difference what's displayed?
 
after I have IMaster, all I have to do is call master.GetValue and that would send and receive
the main difference is mainly Protocol.
so I'm thinking different models for different protocols
and different view models for combinations , possibly
 
what changes, in the UI, based on the protocol selection?
 
7:09 PM
whether or not you need to choose a device address.
so the biggest UI changer is the Connection medium I think
Socket and SerialPort are quite different
a connection will send packets that follow a protocol. a protocol does not specify the connection it has to use
 
7:42 PM
@ReedCopsey that sounds like a question i should ask myself often, but what does the answer tell me?
 
posted on January 28, 2015 by Immo Landwerth [MSFT]

Wow. Just wow. I don’t know of a better way to describe my feelings right now. Open source is probably one of the most energizing projects our team has been working on. It’s been a blast so far and the stream of enthusiastic contributors and interactions don’t seem to stop any time soon. In this post, I want to give you a long overdue update on where we are, interesting chang

 
@NETscape If the UI doesn't change, then you don't need multiple VMs
 
@ReedCopsey right, and UI will change, so I need multiple VMs, but not necessarily multiple models, right?
 
not necessariyl
what changes in the View?
 
between Connection mediums? visibility on a bunch of comboboxes
 
7:57 PM
well, this is the protocol, right?
it's just turning on/off comboboxes?
 
also, SerialProfiles would have something like public static List<int> BaudRates
the UI would be as follows, you type in a profile name
then you select your Communication Medium basically. Serial / Socket / USB
 
can you prototype/sketch the UI you want? maybe with 2 different protocols chosen?
 
yeah, I think I might have one. one sec
 
there's enough there that it looks like you'd want at least 2 VMs
but you might be able to get by with just 2, and one visibility switch
 
actually that might change... the UI in itself
 
8:08 PM
I'd just go for least code duplication ;)
 
For the Opt Card > EIP screen, there would probably be a "use native EIP" which would use a different protocol
how about that show advanced feature... should that be some sort of expander or VM props or ...
 
that's really "pure view"
 
okay
 
because the advanced props are still part of the vm
you can do it completely in xaml
just make it a checkbox/toggle (probably themed) and bind the visibility to it
 
lastly, for now... how would you deal with a "2-tier" tree structure
 
8:11 PM
or even an expander ;)
I typically avoid trees if there's a fixed depth
and just use collections of collections
but that's my personal preference ;)
 
meaning, there will be root, and then there will either be files, or folders--and files can be in folders, but folders can't be in folders
I was thinking, save OwnerName in File, then when loading the file from a file, if OwnerName != null, create FolderVM
that way the saved structure would just be
Project
   File
   File1
   File2
   File3
but when loaded, the view would be
Project
   File
   Folder1
      File1
      File2
   File3
that would make deleting/searching/etc. faster, easier
I think.
 
8:37 PM
@ReedCopsey any input on ^ ?
or am i even making sense?
 
it doesn't really say where "Folder1" comes from
 
basically make folders just a view concept
 
so not really ;)
 
the treeview
would look like that
however, when its persisted to like a .xml, it would look like the first structure in the xml structure
so ProjectModel would have List<File> Files
eh, nevermind, that might end up taking more work that i thought
cause then projectviewmodel would have to restructure everything
 
9:30 PM
hey Reed
sorry, meetings
 
np - I'm going to get going here in a bit, too :)
 
got time for that question?
well ill ask here, even thought its not a WPF question.... maybe I can explain it better
so I have three projects
lets call them, MyApp, MyWebService, and MyApi
 
I have a class defined in MyApi with the namespace MyApi.SomeFolder.ImportantClass
MyWebService has a dependency on MyApi
and uses ImportantClass
MyApp has a dependency on MyWebService
in MyApp, when I do a using MyWebService;
the ImportantClass becomes visible to MyApp
with the namespace (according to VS) MyWebService.ImportantClass
but no such class is defined in the source
the actual name is MyApi.SomeFolder.ImportantClass
why?
 
Good question.
 
9:37 PM
it may be important to note that some public methods of MyWebService, are parameterized with ImportantClass
 
Right, which would normally force a dependency on MyApi from anything that uses MyWebService
And then it all makes sense
 
to me, I would expect MyApp to require a reference to both MyApi and MyWebService
and its strange that from MyApp, the namespace given for the type is not whats declared in source
 
Agreed
Every time I've done that dependency (through a WCF service, not web) its worked correctly to my knowledge
With the correct dependency requirements as well
It gets really upset if I forget a reference
 
lol
I noticed it today, for the first time
sorta blew my mind for a moment
like... where in the hell did this mysterious class come from
but I guess if its exposed over the web service in the way it is, you wont have issues with MyApp having a type mismatch when giving instances of the class to the webservice
which is nice I suppose
 
Yeah, thats all I can think of
 
9:42 PM
and thanks Bradley :D
 
did you figure it out @MarkW?
 
the weird class thing?
 
yeah
 
sorta.... I agree with bradley that, if the classes are exposed in that way then it removes the dependency requirement on MyApp to MyApi
so in some sense I get how it 'makes sense'
outside of that I dont know anything
him and I chatting above describe what I asked in the C# channel earlier NETscape
 
does namespace MyWebService.ImportantClass so up in a search solution
 
9:48 PM
no
well sec
let me actually try
I know the source code is defined in MyApi.SomeFolder.ImportantClass
and not MyWebService.ImportantClass
 
is the class marked internal?
eh must not be
 
right
 
is there a duplicate class name in mywebservice
 
no
it has a reference to MyApi
with the only declaration of the class there
but from a project which references MyWebService
 
not really sure why it would expose that when its not explicitly done so
 
9:50 PM
the namespace that VS tells me for ImportantClass is MyWebService.ImportantClass
its weird for sure
but I dont know much about web services and stuff
the internet pisses me off lol
I did mention that some public methods of MyWebService which are exposed to projects that reference it are parameterized with ImportantClass
from the context of MyWebService, the class's namespace is correct
from projects referencing MyWebService, the namespace is MyWebService.ImportantClass
 
ahhh
that may be why
 
I figure thats the deciding factor
 
you could just add a wrapper of sort
MyWebService.ImportantClass calls MyApi functions
 
Well what happened is that a coworker of mine defined these really shitty enum values (the enum is MyImportantClass) that are supposed to reflect a log messages severity level
but they are misleading
and crappy in general
lol, and I ended up writing a new class in MyApp
to represent those levels better
then ran into all of this, and got slightly confused
so long story short, I ended up using the FQN for the class
and when the old junky ones are removed it wont be an issue
 
I think I just made the most complex possible way to do multiple user inputs:
4
A: A way to condense multiple readlines?

BradleyDotNETIn general, you need to just deal with the repetition. Its clear, easy to debug, and its really not that bad. Now, you could do this: public class InputRequest { public String Request {get; set;} public Action InputMethod {get; set;} } Which you would then create like so: List<Inpu...

I'm really hoping anyone that reads that gets the "The current code is better than this" line.
 
10:04 PM
hehe
I went to the same solution while reading the question
youre implementation is better
but its is a bit of overkill
better than what I would have written that is
not better than the OP code
 
So I have SocketProfile and SerialProfile... should I create IMaster inside those classes, or should I pass an IMaster to their constructor
instead of passing IMaster into the constructor, SocketProfile would take like an IPAddress, Port.
SerialProfile would take PortName, BaudRate,Parity, etc.
 
what does IMaster contract?
 
Yeah, massive overkill
but its all I could come up with that was "not repetitive"
 
I mean I suppose this is for some communications layer no? what purpose does the IMaster contract serve if not to encapsulate parameters for the profiles
 
it contracts my GetValueFromDevice(data)
IMaster has all the internals
 
10:11 PM
hum....
 
I need to create either a TcpClient or a SerialPort in order to create a IMaster
FactoryFunction.CreateMaster(socket|serialport) returns IMaster
 
I dont see much of a difference either way really..... but then again, im not the most talented programmer ever :P
I have personally written code of that nature
but took a pretty different approach
we implemented our own communication protocol though, so other stuff needed to be considered beyond just 'read string from stream' or whatever
 
I think the appropriate way would be to pass in a IMaster... keeps the System.IO dependency on the third party lib
 
valid point for sure
 
 
1 hour later…
11:17 PM
ohh damn Im so drunk
 
Ummm.... ok
 
business logic goes in the model, right
so preventing setting a string to null, because a null Name wouldn't be logical
 
11:47 PM
In the model you mean?
 
yeah
 
Yes, that makes sense
WPF supports validation as well if you need to do it before then (say in the view)
 

« first day (831 days earlier)      last day (3318 days later) »