« first day (1756 days earlier)      last day (3184 days later) » 

6:00 PM
@juanvan I thought it was on Fox?
 
not the ones they have schedule yet
and facebook
but the rest are on fox news not fox I guess
 
Those are only the gop ones
They will move to a more unbiased source as the campaigns progress
We still have 15 months left.
 
lol, Donald Trump's campaign.
 
@kendal yes it will do
do I need to decorate it with a ForeignKey attribute?
@KendallFrey heres the classes pastie.org/10335932
 
@user3545438 What is the error you get when deserializing?
 
6:06 PM
you mean when ignoring the self referencing error?
hold on i'll run it again
 
Hi all ;)
 
@user3545438 - You have a cyclical issue there that the deserializer is going to get hung up on
@user3545438 - What are you using to deserialize?
 
any one with MVC exp?
 
yes
ah, JSS @user3545438 you can use the ScriptIgnore attribute
 
cool.
I am new in mvc
 
6:10 PM
@user3545438 -
[ScriptIgnore]
public virtual Survey Survey { get; set; }
 
@TravisJ Yes, we've covered that :)
 
i m building a search form
 
@KendallFrey - You covered it, I solved it :P
 
@TravisJ Has that solved it? I mean, I'd expect ignoring the loop would do the same thing.
 
@TravisJ ok
here the error anyway
 
6:12 PM
@KendallFrey - That cuts out the cyclical dependency. After that as long as the structure matches it should work just fine.
 
{"Cannot convert object of type 'System.String' to type 'System.Collections.Generic.List`1[.Survey]'"}
 
posted on August 07, 2015 by Visual Studio Blog

Since we released Visual Studio 2015 on July 20th we’ve been busily answering questions on our forums, here on the blog, on Connect, and on StackOverflow. Here are some of the common questions. Install / Setup Why is my setup taking so long / hanging partway through. What’s going on? Where are the ISO Images for VS 2015? Can I create a custom ISO image that includes all the third

 
  JavaScriptSerializer oJS = new JavaScriptSerializer();
                           // json = await response.Content.ReadAsStringAsync();

                            List<Survey> surveyListObject = new List<Survey>();
                            surveyListObject = oJS.Deserialize<List<Survey>>(json);
                          //surveyListObject = JsonConvert.DeserializeObject<List<Survey>>(json);
                            dvm.CurrentSurvey = surveyListObject;
excuse the comments
 
@user3545438 Oh, that sounds like a funky serializer. Did Travis's code fix it?
 
No :(
The string error is something else
 
6:14 PM
And OOC, what is the generated JSON?
 
@I am building a search form. there is a searchcontroller, in which index action method renders two partialviews.. ist partial view have controls like dropdownlist, date picker and text box for provide search term and one button for search. second partial view display controls like few textboxs and dropdown list. Now when any one clicks the search button i want to display result in second view.
 
@TravisJ Read the earlier conversation, I think that's normal given what he's doing.
 
any one can help me?
 
okay
@coddey - use ajax
 
@TravisJ any reference pls.
as i m new in mvc
i have no idea how to proceed
:(
 
6:16 PM
@user3545438 So what is the JSON that it's creating?
 
asp.net site
@ton.yeung
 
@user3545438 - Are you creating the json that is being deserialized?
 
but i cant find proper partialview things there
i will.
but as of now. i have to finish this
task
 
hey guys what do you say if someone belittles you because you like .NET/C#?
 
@TravisJ @KendallFrey no [ScriptIgnore] didnt work

"message": "An error has occurred.",
"exceptionMessage": "Self referencing loop detected for property 'survey' with type 'Survey'. Path '[0].sections[0]'.",
"exceptionType": "Newtonsoft.Json.JsonSerializationException",
 
6:18 PM
@ton.yeung i will get this book..
 
@KalaJ - haters gonna hate
 
Has anyone experience that? I feel like there's so much microsoft
 
bt for now any soln or reference @ton.yeung
 
@TravisJ if return Ok(results); doesnt work
 
Everyone like JS or Java is the best
 
6:18 PM
@KalaJ - I haven't. But I will say that usually people do that in response to being belittled.
Did they have a Java background?
 
@TravisJ if i
return Ok(
JsonConvert.SerializeObject(
results,
Formatting.None,
new JsonSerializerSettings()
{
ReferenceLoopHandling = ReferenceLoopHandling.Ignore
}));
 
Most of them are JavaScript or Ruby/Python people
 
this works but the serializer bombs out
 
Yeah, well just take that as them venting their Java frustrations
 
@TravisJ hmm :(
@ton.yeung let me write the code.
 
6:19 PM
google asp.net mvc ajax
->
 
@ton.yeung i will share with u
 
@user3545438 - So you can deserialize the input with that code. But then it wont properly serialize?
 
@user3545438 That's the JSON?
 
Some devs even say, what's .NET? Lol
and I explain it's a microsoft framework and they're like ohhhh
I hate windows
><;
 
6:22 PM
@KalaJ - Wow. At that point, just move on to the next conversation.
 
@TravisJ @KendallFrey just returning Ok(reuslt) which i thought woul sort it give the ref error
 
I do try
 
@KalaJ - But they press on?
 
56gb of data on a cell phone how?
 
@KalaJ - Ask them if they have heard of Stack Overflow
 
6:23 PM
they talk about how great mac/linux is
 
i can deserialize using var obj = JsonConvert.DeserializeObject(json);
but it goes to a string not my survey obj
 
Put your json into a linter
see if it is valid
 
Your whole question seems a muddle of various things. Can you clarify everything and make a SSCCE for us?
 
I actually had a recruiter tell me to say I'm a javascript or java developer because there are little jobs in .NET
I felt like... okay......?
 
@user3545438 Really? What's the entire JSON you're getting?
 
6:25 PM
@KalaJ depends very much on the field and country you're looking to work in
 
she said that about NYC!
 
@KalaJ C# .NET less popular in e.g. startups, more popular in finance, less popular for scientific computing etc
 
Incidentally, have you tried using ReferenceLoopHandling.Serialize?
 
She said there is a larger market for javascript devcs
*devs
@Underscore, that's true. Maybe because of a lot of the startups in NYC are starting from people who graduated from those Ruby bootcamps
 
6:27 PM
idk
 
theres the json i assumed the issue was because i was serializing a serialized string?
 
It's like the opposite in NYC, there is a a large demand for ruby, javascript or java ppls
 
@KalaJ and also that C# is perceived as kinda horrible for costs for startups, even with Bizspark/community editions
 
oh wells, I still want to be in .NET
 
@user3545438 Hang on a second
You said you were serializing twice or something, right?
Are you deserializing twice as well?
 
6:28 PM
I used to be but I'm located in NJ. I really like really close the city though
*live really close
 
@KalaJ - It's true, there are more JS jobs than .net jobs. But they pay far less.
 
perhaps
I'm already underpaid so oh wells
 
I was thinking of it but I have family in NYC
 
6:31 PM
Just like there are more car detailer jobs than there are auto engineering jobs.
 
@rlemon not worth that brace
 
5 years is 65k seems low lol
 
@rlemon - If you could afford air conditioning then you wouldn't need to pat your face all the time.
 
@juanvan brace is off now
 
just saying JS have to write a lot more code than .net
 
6:32 PM
no
JS is a lot less
your IDE writes your code
 
@KendallFrey yeah I suppose I am aren't I? As ok() serialises the results so ok(jsnconvert.) will serialise a second time?
 
that doesn't mean there is less code
 
True
IDE = Mom she picks up after me
 
@user3545438 In that case, don't serialize twice
@user3545438 Why don't you try serializing just once, and using Travis's code
 
but if i dont i get the loop error
i have it made no difference?
 
6:34 PM
@rlemon - Visual Studio is writing all of my code?
 
@TravisJ VS is providing a good hunk of boilerplate crap
 
two words: fundamental disconnect
Just because it is available doesn't mean it is widely used.
VS doesn't have anything to do with code usage. Microsoft core libraries are a different story but that isn't the IDE.
It is actually nice to use code which has been extensively tested as opposed to something that a chop shop came up with.
 
@user3545438 Try using JsonIgnore instead of ScriptIgnore
 
Perfectly machined wheel versus hand chiseled wheel.
@KendallFrey - It did seem like he was using newtonsoft in there at some point
 
ok, given I have some Expression which represents the following lambda call:
t => t.Id == 7
and that t1 : t, is it going to be possible to convert that expression to:
t1 => t1.Id == 7
or should I quit while I'm ahead
 
6:37 PM
@Underscore - have them share an interface
t : IHasId {} t1 : IHasId {}
and then use the same expression for both classes.
 
@TravisJ and all of this exists in js as well. maybe not standard libraries, but very well tested and evolved libs.
 
@Underscore If you apply a visitor to the expression, you should be able to do that with no problems
If I understand what you're going for
 
however this is all moot. JS is a viable language and job. haters can hate while I pull up to the 350K house I just bought on a JS dev salary
 
@rlemon - There are well tested and evolved libraries. Just not to the same extent unfortunately. For example, sql generation.
@rlemon - Yes but you aren't the average dev. And you don't primarily work on front end which is the majority of those positions.
 
yea, but that is like saying all .net jobs are ASP
there are a shitload of non front end js jobs
 
6:39 PM
@rlemon Yeah, one can get paid buckets writing JS then go home and write C# if they want to...
 
It's almost like the Jon Skeet scenario. Writes Java but heart becomes to C#
 
Granted, it seems Ruby devs get paid in truckloads.
 
LOl
Yeah I should join one of those bootcamps
and write ruby
 
How many billionaire JavaScript companies are there? I can think of a few .net ones.
Someone pulling up to their island in a private helicopter is going to scoff at a 350k house.
 
@TravisJ it's not like they're mutually exclusive either...
 
6:42 PM
the situation is a bit confused by not having control over the expression, I am able to intercept it before passing to the next method, but it's getting generated like this:
http://hastebin.com/abajivadox.vala
 
@TravisJ, slightly off topic but are you still the sole developer at your company?
(read from bio)
 
@KalaJ - Yes. We don't make software as a company.
 
Also I feel like some languages are popular just because they're more cross platform and available for free
 
@KalaJ I've got a freelance client that demanded I do their project in Rails because it is "cool" so I am learning it now
 
@ton.yeung I know a lot of JS devs (obviously, I'm in the JS room constantly) and most of them are very well paid (higher than I am)
 
6:43 PM
@TravisJ, wow, that is intense, no? How do you deal with it?
 
@TravisJ \o/ another lone dev!
 
@rlemon <3
 
Yeah I feel like Ruby became popular because of the bootcamps
 
@KendallFrey hmm still same loop error even with [JsonIgnore] strange
 
I'm trying to convert the expression such that it calls the shadowed property but I don't think it's going to be possible
 
6:43 PM
@ton.yeung nope, israel, usa (all over), canada, uk.
all over
 
I was lone dev for a couple months. It isn't so bad. You get a lot of freedom.
 
@KalaJ - Well to be honest, I would love to have other devs to delegate to, but we don't have the budget for that. So I get along making stuff as reusable as possible to save myself time.
@CuddleBunny - The nice thing is that I make all the decisions :P
 
@TravisJ hire free interns?
 
@ton.yeung put node on your resume
 
@Underscore You can change the expression, but I have no idea if you can get the new expression to where it needs to be
 
6:45 PM
most people don't associate "javascript" with node on resumes
don't understand that one myself.
but meh
 
@CuddleBunny - Then I would have to get more hardcode with the versioning, give them a test suite to code against, and have deploy scenarios when they integrate stuff. I am not sure interns would be a good fit for the level of stuff I would need done.
@rlemon - I don't know how to node :(
 
learn the module system
then you know how to node
 
Yeah, I use my semi-solitary position as a chance to learn new things. For a while I did every new project with a new language and/or framework.
 
:P
 
I know how to node then I guess.
 
6:46 PM
@KendallFrey ok, thanks, it'll be a good way to learn about expression trees if nothing else
 
Are promises a requirement for node? Or can callback structures still be used
 
@TravisJ, what would make your company grow? In terms of budget, stability, etc..?
 
I learned JavaScript, .NET MVC, Node.js, KendoUI Mobile, and CodeIgniter that way.
 
Nodeschool is good for learning Node or so I heard
 
@KalaJ - Well this software I am making is pretty insane at the moment. So that would probably increase our growth by a large factor on release. In terms of our organic growth, that would come in the form of more efficient methods that can only be accomplished through biotech research into salt balancing and environment control.
 
6:48 PM
@TravisJ Promise isn't actually landed in node yet :(
but BlueBird is better anyhow
 
@rlemon - I am actually not a fan of promise, so that works in my favor :p
Never heard of BlueBird
 
Promises are hella better than callback soup
@TravisJ BlueBird is (probably) the best promise library to date
faster than native in a lot of cases and offers a buttload more options
 
ah okay
Maybe reach out to universities?
 
I like callbacks. Using the dot notation to indicate a task continuation doesn't vibe well with me.
 
@TravisJ Why not?
@TravisJ What about when they implement await?
 
6:50 PM
wonders why rlemon is in C#
sees javascript talk
I can piss him off
@rlemon php is better than javascript
 
sure
but only in the regards that it is better at sucking.
 
damn.
 
@KendallFrey - await in javascript?
 
ohhhhhhhhhhhhhh
 
6:52 PM
rip
 
@TravisJ es6
 
@rlemon 7, right?
 
well then I guess I will have to get used to it
 
I thought 6, but I could be wrong
 
Me too
 
6:53 PM
I thought it landed with generators
 
Yeah, the other thing
You can do await with generators, kinda
 
yield.
 
stahp
 
HAMMAHTIME!
 
;)
 
6:54 PM
halt
 
HAMMERZEIT!
 
Can't you use await already in typescript?
 
SISTITE
 
MALLEUS TEMPUS!
 
even if it is just a placebo
 
6:56 PM
babel --experimental
you can use await
and await is es7
Promise.join(foo(),bar(),(foo_return,bar_return) => {
  // this is where I really enjoy promises. Not your basic example, but when you have many async operations you need to do
});
 
inid2 examine set and take string parse twice into list pairs and then analyze occurrence and relation of pairs
@rlemon - I love the lambda notation
it is basically two asnyc calls that finish with a taskwhenall
 
@ton.yeung yes
@ton.yeung yes, but like mentioned earlier, js isn't all front end today
BlueBird is amazballs
 
I wish I could use promises, but I need to support IE 8 :(
 
Yeah async isn't as useful client side.
 
7:03 PM
ie8?
 
client side
sometimes IE7
 
I abandoned ie8
I used to support it. But then it went out the window.
It still works, it just doesn't look nice.
 
@ton.yeung last link
 
And why should it look nice!? If someone is using ie8 they are used to seeing junk websites.
 
one of my customers has been "evaluating IE9" in their 2 year security verification process... So very soon at least one big customer will drop IE8...
@TravisJ it doesn't look as nice, but it needs to work
and it is interactive e-learning content so if it doesn't work they can't finish it and get credit.
 
7:05 PM
Define irony. A security process trying to evaluate different versions of the most vulnerable web browser for attack vectors.
 
@TravisJ pretty much, I told them even if any software could go 2 years without your IT finding a bug, it sure as hell won't be secure by the time they're done.
 
ie8: heap spray = execute code on underlying system (windows runtime)
ie9: heap spray = execute code on underlying system (windows runtime)
hmm... which one should we go with
 
but I guess there are no promises in IE11 either so D:
 
nope, same thing in 11.
 
I hate that they decided to take the edge document mode out of IE11 in Win10... they're basically guaranteeing the best IE yet will become the next IE6.
 
7:08 PM
Anything that holds legacy IE code will default its code execution to windows runtime.
This is why IE is bad. If it weren't for that it would get more use.
 
It still has half the market share...
And saying any browser is secure is a lie.
 
The legacy code in IE was developed by Mosaic Communications a long time ago. That code base is also in firefox. So the same thing happens. Spray heap -> execute on system runtime
Chrome will not execute code on the system runtime, neither will Opera.
Chrome may be vulnerable to certain read attack vectors where cookie information is stolen or folder structure is examined. But it will not execute runtime code which is a big deal.
 
Is that just because it has no runtime dependencies?
 
Nope, that is because of the way the design was first implemented from Mosaic. It was built on a hypercard setup which automatically drops back to the runtime when things go wrong. It also was built to support every time of protocol because they didn't know which one was going to be a success. At first it seemed like the best use for the internet was going to ftp.
 
Surely you could get runtime access through Chrome's PPAPI stuff?
 
7:13 PM
No one envisioned http being the winner of the set of protocols, as evidenced by the rush to create a scripting language which could be used with it (JavaScript in 10 days) which was funded by Mosaic.
 
@ton.yeung talk to @Esailija
 
If you install third party code as a plugin that code will have access. But installing a plugin requires permissions.
 
he's the author
 
@CuddleBunny Every browser I've written is provably 100% secure.
 
I mean stuff that is default like Pepper.
 
7:16 PM
lol that's provably because it doesn't execute script
 
@KendallFrey Every browser I've written is too. :P
 
I wrote a browser in VB once. and by wrote a browser I mean imported IE and added my own options :D
 
@CuddleBunny - Nah not through there. That is because each page is the entire browser essentially. Once something goes wrong the entire process goes down and there is nothing left in the sandbox. When the underlying sandbox goes down for ie and firefox the system steps in.
 
@TravisJ Every browser I've written also executes script :)
 
I wrote an email to one of the browser devs at microsoft by request once
Last october
 
7:20 PM
I wrote an email by request to Jon Skeet once.
Went straight to spam.
 
lol
@CuddleBunny - pastebin.com/7gpAu9AC
 
Couple months later he pulled it out, and thought I was asking him a question.
 
@TravisJ ever get a response to that?
 
@CuddleBunny - Unfortunately no
@CuddleBunny - And while I cannot claim any credit, I do find it amusing that only 2 months later they spun off the development of a new browser without the legacy code and renamed it.
"In December 2014, writing for ZDNet, technology writer Mary Jo Foley reported that Microsoft was developing a new web browser codenamed "Spartan" for Windows 10."
 
I'm sure Spartan has plenty of legacy code in it, just not legacy document mode stuff.
It shares dlls with IE
 
7:28 PM
@CuddleBunny - It doesn't support legacy tech and it has a new parsing engine.
 
It is my understanding that they took document mode 11, deleted anything non-standard and called it a day. For a while IE11 could use the new dll in TP too.
 
document modes were not security issues so much as semantic nightmares
I have to place this in every page to ensure that old ie plays nice
<meta http-equiv="X-UA-Compatible" content="IE=edge">
because I only use <!doctype html>
 
Yeah but it is hard to imagine them not sharing code for things along those lines. If they wrote brand new code for everything it would be even buggier.
Yeah I put that in my pages too.
 
It is the backend code for the browser that is an issue. Overall IE doesn't do that bad of a job rendering
 
So many customers default their browsers to quirks mode because they have legacy IE7 intranet apps...
 
7:35 PM
the pain :(
 
t pain?
kek
 
2 chainz?
 
why they can't just put <meta http-equiv="X-UA-Compatible" content="IE=7"> in their legacy apps and leave their IE config alone is beyond me.
 
great, now I got the usher yeah song stuck in my head lol
needs more david guetta music
 
7:38 PM
I don't usually get songs stuck in my head but the last week or so has been bad.
 
@CuddleBunny use more lube
 
@KendallFrey doesn't work, what brand do you use? D:
 
@CuddleBunny lemon natural lube.
 
^ aka tears
 
7:49 PM
there is some cheesy Elvis ripoff music in this course I'm making
oh, the next one is like beach boys...
 
I see beatles in your future
 
alcohol company courses are fun, and they send us free booze.
 
@RoelvanUden hey are you there?
 
@TravisJ I'm only 2 courses in out of 31, I'm sure it is in there somewhere.
now if only they would send us some of this $950 tequila...
 
wow, that would be nice tequila
The best tequila I have had was a shot of a $600 bottle
 
7:56 PM
These videos I'm putting in the course for it have people at parties with large cats in cages like wtf...
 

« first day (1756 days earlier)      last day (3184 days later) »