« first day (2160 days earlier)      last day (2802 days later) » 

7:00 PM
@KendallFrey how should i mention the property
 
The normal way
 
posted on September 14, 2016 by Scott Hanselman

I noticed today that Evernote was in the Windows Store. I went to the store, installed Evernote, and it ran. No nextnextnextfinish-style install, it just worked and it worked nicely. It's a Win32 app and it appears to use NodeWebKit for part of it's UI. But it's a Windows app, just like VB6 apps and just like .NET apps and just like UWP (Universal Windows Platform) apps, so I found this to be

 
JSF
@Obviously iI dont think you can compose a composite key from different entities. I.e. you cant have the key contain a column from school and a column from teacher
@Obviously can you explain the goal of you're query?
 
@TravisJ I have a favor.
@TravisJ Do you have an outline or a example that utilizes a login with identity, via OAuth, without Entity Framework?
 
@Greg - No, sorry. I am not a fan of identity nor OAuth in general and as a result do not use it anywhere.
 
7:12 PM
@JSF, Still does not change anything. There is an extra parameter getting added still
 
I think SO just ripped me off :-/ I had 784 rep, and I just refreshed the page, and it's now only 780 rep. But there is no indication in my 'reputation' section that I have actually lost any rep :( Weird. Anyone had this problem before?
 
Check "show deleted posts"
 
@Jase - Rep recalc based on Docs. Everyone had it
 
@mikeTheLiar Yeah, it's already checked. :) Thanks though
 
@Jase - Good job only losing 4, some of the worst case users lost 4000
 
JSF
7:14 PM
Lolol oh noooo -4 rep!
 
Docs. I haven't really looked at that yet but from what I've heard it's kinda a mess so far
 
@TravisJ Oh, wow. That must suck ;-( What's the recalc about?
 
JSF
@Obviously what does the query string look like with the updated code?
@Obviously (the url)
 
@mikeTheLiar A lot of people trying to contribute and put in effore to help out, but some really messy code samples are starting to creep in.
 
7:15 PM
@Jase - Basically minor edits on popular documentation examples was awarding too much rep
@mikeTheLiar - I've been following it pretty closely. They are getting close to having the management polished and I think that will help with the rough edge perception. It is beta after all (and not even released to google crawling)
 
@TravisJ Oh, but I never edited anything. Weird. Reading link
 
JSF
I submitted a few doc examples recently but received the feedback: "This example is a variation of a less documented example and should be removed". I guess im wondering is SO really just supposed to copy other sources and not even attempt to provide expanded or different examples or otherwise examples which might introduce greater understanding?
 
Meta.SO says I have 784 rep now. Lol. While SO still says 780. Oh well. It's only 4 rep.
 
JSF
Isn't this the point of peer review here?
 
@JSF I think in your case it was maybe just somebody's misunderstanding?
 
7:22 PM
@TravisJ What do you do for login / role based?
 
@Greg - SimpleMembership
 
I'll take a look at it.
 
7:41 PM
Hi..
 
Best approach to parse csv and split the data to save into columns it pertains to?
Currently, I am saving it to one string
but will need to parse it by header and split it. Does that seem like a good approach?
 
@KalaJ - Some csv's are arranged differently than others.
Can you peek the header, then split by newline and comma?
 
0
Q: WPF -- Expander when collapsed does not resize other grid columns

PSDebuggerI am trying to collapse expander when when it collapse the other grid columns doesnot take up space. I tried this in expander_collapsed, the grids are taking the whole space but then I am not able access expander only to make it expand. private void Expander_Expanded(object sender, RoutedEvent...

 
What do you mean by peek? I can split by newline and comma most likely
 
@KalaJ do you know it always has column headers?
 
7:44 PM
@PSDebugger - Don't spam in here please.
 
I'm expecting it to remain the same currently but who knows
 
@KalaJ are you saving this to a SQL table?
 
M not spamming.. just need some help
 
Yes I'm getting data from api, it should always have column headers
 
You shared the same link twice in two messages, generally considered spamming.
 
7:44 PM
and yes I will eventually need to save this to sql table
 
@KalaJ - Peek was just a term to grab the header
 
Because as much as it pains me to say this, that's exactly was SSIS is designed for
 
SSIS? lol
 
@mikeTheLiar you're turning blue, you need help?
 
da ba dee da ba di
 
7:45 PM
oxygen, cocaine, maybe a gallon of scotch?
 
@TomW yes
 
coming right up
I call this an "Honest Mike"...
 
lol
 
ok cool, thanks guys. Travis, I'll do just that
 
@TomW - Nobody is afraid of a Jeffrey!
 
7:47 PM
You guys get that feeling too, right? The one where you're coding and coding, and you suddenly realize you've finished your project.
 
> finish
> project
what is this nonsensery
 
"project" can be any scope
anything down to a single method
 
We can be done whenever we want!
 
fuck you guys
 
I was literally employed to implement the Trials of Ulysses, so
 
7:49 PM
lol
 
it's a secure job, put it that way
 
This room is salty as fuck these days
lol
 
NOW YOU KNOW HOW IT FEELS KENDALL
 
@KendallFrey - I feel like the small features I blaze through and the large features have a lot of scope creep that makes them hard to consider finished.
 
To quote my team lead, "Sisyphus only had to push the rock for a day, that's only a two point story"
 
7:50 PM
I just mean when you're not paying attention to how much work remains, you just write one thing after another until suddenly you run out of things to write.
it's a weird feeling
 
@KendallFrey that just means that prod dev isn't grooming the backlog like they should be
 
Clearly you have no idea what I'm talking about
 
8:25 PM
Wow, I just found a minor mistake on this page http://stackoverflow.com/help/documentation-topic-requests. Read what the first paragraph says, and tell me why I find the instruction scary (and also kinda funny):

"Topic requests are for users who do not have the the knowledge necessary to create the topic they are looking for. To create a topic request, use the widget on every page of a tag’s documentation."
Basically, what they said is, "To create a topic, use the widget on every page of a tag's documentation." I hope nobody actually decides to follow that instruction lol.
We'd have duplicates galore.
 
8:58 PM
@Jase That doesn't look like a mistake, just poor wording. It still makes sense.
 
9:14 PM
@TravisJ Why Simple Membership over Identity?
 
@Greg - I trust the security more, and I think that outsourcing authentication is a fad.
 
So you think OAuth is a fad?
 
9:33 PM
I do
 
Travissssssss
 
can any one help with this
private void Submit(object sender, RoutedEventArgs e)
{
for (int i = 0; i < listBox1.Items.Count; i++) {
if (radioButton1.IsChecked == true && textBox1.Text == "A" && listBox1.SelectedItems.ToString() == "American")
{
label3.Content = "male name";
}
else if (radioButton2.IsChecked == true && textBox1.Text == "A" && listBox1.SelectedItems.ToString() == "American")
{
label3.Content = "feamale name";
}
}
}
oops forgot to get rid of the for loop
everything worked until i added the listBox1.SelectedItems.ToString() == "American"
 
Can you edit your code and press Ctrl+K please?
 
private void Submit(object sender, RoutedEventArgs e)
        {
            for (int i = 0; i < listBox1.Items.Count; i++) {
                if (radioButton1.IsChecked == true && textBox1.Text == "A" && listBox1.SelectedItems.ToString() == "American")
                {
                    label3.Content = "male name";
                }
                else if (radioButton2.IsChecked == true && textBox1.Text == "A" && listBox1.SelectedItems.ToString() == "American")
                {
                    label3.Content = "feamale name";
 
> everything worked until i added the listBox1.SelectedItems.ToString() == "American"
Can you elaborate on this?
What is "worked"? What is "not working" now?
 
9:41 PM
SelectedItems.ToString() returns the type's tostring result
 
when i added that it doesn't work any more like the label3.Content = "male" did not work any more no bugs just no label.Content
 
Yeah I think you want SelectedValue
 
doesn't that only get the first value ?
oh oh
i see
 
You should use .SelectedItems.FindString("American") > -1 instead of your tostring comparison
 
OK well the SelectedValue is not working maybe the FindString() will help
FindString() isn't showing up in my ide
 
9:46 PM
@june1992 - Ah, yes, omit the .SelectedItems
listBox1.FindString("American") > -1
 
k
FindString is still not there
 
This is odd i went to the 2010 version of vs and i see . but only thing showing in ide is FindName() and a few other no FindString()
 
10:10 PM
Are you sure you have this reference?
System.Windows.Forms
?
 
10:22 PM
Is it bad practice in MVC to use a business class as a ViewModel - even if all properties are the same?
 
What do you mean? ViewModels are for models that are exposed to the View. Are you models exposed to the view? Then it's fine.
If they're not, they should do just be models
 
ViewModel is a model that's exposed to the view - yes. But if the properties of the VM are 100% the same as say the entity, is it bad form to Inherit the entity, or should I just copy/paste the properties and then use AutoMapper :P
 
@RyanTernier - So long as you don't mind the user sending erroneous entries for any of the properties, use whatever you want.
@RyanTernier - Typical gotchas are temporal, foreign key, and logical division (tenant) modifications. If none of those are available to the exposed business model, then you should be fine.
 
10:50 PM
Is there an easier way to get out of auto properties when VS automatically adds the ending brace?
Ie:
I type "public string foo {"
And .NET will add the ending }
So i finish typing:
"public string Foo{get;set;"
and then if I do "}" it messes up the braces.
 
Sometimes you just gotta accept Visual Studio's auto insertions.
 
is it bad that it's faster for me to create a view model in excel than in visual studio?
 
Yes, it shows you lack vs skill :P
 
Ha
VS has no easy way to create classes with 50+ properties
 
11:05 PM
lies
 
do tell
 
You has a html page with 50 props on it?
 
with excel I just do
Public | <blank> | <blank> | {get;set;}

fill in a few pieces of data, drag values down and done
@TravisJ Unfortunately yea, data entry forms
 
serialize teh form into json, and then import the class from your json.
 
eh?
Oh, yea i could do that
never thought of that. I'm not creating DB crap for this, it's all going into the DB as XML in a single cell
i'd have to write out the code at some point to get it from the HTML to my back end object
doing it in the model allows me to auto-mapper + Nhibernate
 
11:08 PM
just use edit -> paste special -> paste json as classes
 
"then import the class from your json."? lol, wait what?
I had to do the same thing as Ryan today for my entities
I had 40 entities to type in VS
 
lol runs
 
Wish there was an easier way --but remember, I'm using CSV not json :(
 
simple javascript could have csv->json for you
 
what do you mean @travis?
 
11:10 PM
Damn, that's a nice feature
you can do XML as class to
 
yeah :D
 
@KalaJ Select some XML / Json
then go to a editor and click EDIT (menu)->Paste Special-> paste as..
 
@KalaJ - I mean you could have converted your csv into json (perhaps using JavaScript)
 
What if I have CSV (not XML/Json) @Ryan
 
@kala, no idea, you might be sol :(
 
11:11 PM
Parse it into json using JS
 
And my markup for each field is... ugly
  <div class="row">
                            <span class="field-label">
                                Fax Line
                            </span>
                            <div class="col-md-5" id="idverification-faxline-input-container">
                                <input class="form-control"
                                       id="FaxLine"
                                       name="FaxLine"
                                       data-parsley-maxlength="20"
                                       placeholder="1+"
 
Sounds like more work than needed @TravisJ or should I do it? lol
 
I don't know, I suppose it depends on how long it takes you to do the convert route versus just manually typing things in
 
@RyanTernier - $("#FaxLine").closest("form").serialize(); ?
 
11:13 PM
Yeah I'll just have to do that for now until my team looks into possibly getting the response in Json (from the get go) from the api.
 
@KalaJ - There you go :)
 
@TravisJ I've been out of the HTML loop for 5 years, back to it now at my new startup.. so go easy on me ;)
 
@RyanTernier - Sowwy, I have a soft spot for JavaScript
 
Ah, your script is just serizling the form to send to my back end
how would that work with submiting to my controller? Would the controller just take the json in? Versus the View Model?
 
Oh, I just meant as a one time thing to get the form into json so you could paste into the program and create a view model
 
11:15 PM
Ah, i haven't made the view yet ;)
I did: Data structure, back end code + tests, view model then view
 
With posting though, you can serialize a form and post it to the controller and the controller will take the json in if it matches the view model and autobind to it (although I think you knew that)
 
I didn't know that ;)
 
ah, well yeah :D
 
There's a lot of things with this app that were not done the way I would've designed them
I used to have developers to do things the way I designed them, now I have to do what I told them to do... they were better at it than I was
(Always hire smarter peeps than yourself)
crap, gota go. fiance works nights today
Adios - thanks for the help @TravisJ
 
I think one massive gotcha to keep in mind (if you weren't already aware) is that the model binder can only work with what is sent, and the only information sent from a form in a classic submit are the input elements with a name property.
@RyanTernier o/
 

« first day (2160 days earlier)      last day (2802 days later) »