« first day (1946 days earlier)      last day (3019 days later) » 

12:04 AM
Can we try to step through it in debug mode?
 
12:30 AM
Blake
 
 
10 hours later…
10:53 AM
@CodeMaster what is m? if m is an object with no properties then that is the correct behaviour .. m is defined by the controller when you do "return View(m);" ... if you don't pass anything to the view how can you expect it to render anything?
 
11:13 AM
Morning
 
11:46 AM
mornin
 
working on anything good today?
 
12:10 PM
@Wardy Hello, you're right, I know that I'm doing something wrong.
but I've few questions because I'm little-bit confused.
 
12:35 PM
Anyone familiar with OWIN?
stackoverflow.com/questions/24437260/… the answer to this question sounds dodgy. I'm trying to make a basic SPA
basically just want to make the default route "/" to redirect to index.html. What's the common-sense way to do this?
Or is that something I should only care about once hosted?
 
@Squiggle yup ... whats up?
 
ehyup @Wardy
 
looking now
this isn't an owin issue ... looks like a routing one
can't you setup a root route
for static content if you point the browser at the static file it shouldn't get interrupted
but for routes that don't point to file routing comes in to play
you should still have access within the owin startup to the route map using ...
erm hang on let me see what I did here ...
 
indeed
I've got that all set up, so routes /* return the corresponding static file
but right now I go to localhost:8080/index.html
I just want to navigate straight to localhost:8080/
 
ok in my case stuff got really complex because i replaced the default controller selector and factory
 
12:46 PM
haha
 
daft question ... why not just rename the file static.cshtml and put it in the views folder under ~/Views/Static/* or something
then create a static controller
and put a [RoutePrefix[""] on the controller then the file name on each action
[Route("static1.html")]
public ActionResult static1() { return View(); }
potentially you could create this as a single action that has a param
 
I could do that - but isn't it more work than necessary? All I need is that one rewrite
 
public ActionResult GetStatic(string fileName) { return View(fileName, null); }
then put a route attrib on that of [Route("")]
that would use the routing engine without you doing anything special
 
I'll give that a go :) ta
 
np
jeez my init code is ... compact
thats how I setup all my apps
includes single sign on, webapi configuration, routing, custom controller selector, controllerfactory, DI, owin based, ....
signalr
i seriously compacted the crap out of that
 
12:54 PM
I love how clean OWIN can make things now
ah sweet. Carnival starts in 2 days and there's a Gugge band doing practice marching past my flat right now.
 
Hello @Wardy
 
Mornin
 
How are you?
 
Deep in hlsl code atm
Programming on a gpu is hard
 
I can imagine, since I'm stuck with something simple like MVC Templates :D
can I ask you few questions?
 
1:00 PM
I'm trying to generate virtual worlds
 
wow
Are you trying to create another Machine? imdb.com/title/tt1839578
 
I love that show
 
yea, me too :)
 
Seriously hope they do another season of it
 
exactly
 
1:03 PM
My problem is much simpler ... Think Minecraft but on a larger scale
But each voxel is not just a cube it's smooth
 
it sounds interesting
since yesterday I'm thinking that you might be a univ. professor, am I right?
 
I'm trying to build a toolkit for unity that makes this possible for anyone
Lol no ... I never went to uni
 
same here :D
 
I have an mcsd though
 
that says all...
 
1:05 PM
I just love the Ms stack vs and .net
And me and c# just get on!
Once I got that far I started learning about patterns and practises
From there it was frameworks that implement those patterns and practises
 
so uni is below your current level of knowledge
 
Then I started bolting them together in to solutions
I would say that uni teaches you how to learn rather than teaches you anything concrete
But that's an outside view from what I know uni based colleagues
 
I totally agree with you.
 
I figured out how to learn myself ... So felt it wasn't a needed expense
 
great solution
 
1:09 PM
That said .... I probably could have done that in 4 years at uni instead of the many years it took me
And I am missing some math knowledge that would be really helpful right now
But I will get there
 
I'm sure you will.
 
I always do in the end
 
you should be proud of yourself.
can I take your time on my issue from yesterday?
 
I tend to take pride in what I achieve rather than who I am ... Sure chat is for questions right?
 
@Wardy it's a lot easier to learn most things informally now than it's ever been before, and especially IT
 
1:12 PM
Completely agree tom
 
@Wardy 1) What should I expect to see when I use your method? Is this for Displaying retrieved data from db or it's also useful for Create data?
 
For things like, where would you learn to operate a mass spectrometer...yeah, go to uni
 
Because I'm currently testing on a view where I would like to have blank form for user to enter data.
 
@TomW i found people that can run rings round me with a complex "scientific question" but then i sat them in front VS and said "build me X ..." hours later they are still scratching their head
there's something to be said for solving real world problems instead of textbook based ones
but the smarter solutions do come from deep knowledge of a subject
and uni is good at that
a smart person knows how / when to apply a piece of knowledge not someone who has a lot of knowledge
@CodeMaster my method???
@CodeMaster you should take the time to understand MVC
 
hi
access modifier question:
 
1:17 PM
@Wardy I mean the method was your way of doing something
 
If I want to make a member variable in a base class only available in that class and not in the derived classes
 
it sound condescending I know ... sorry about that ... but we have a guy at work that says stuff like "why isn't this working" and I say "did you step through it and see what the problem actually is?" and ~I get back ... uh no that won't help because the code is wrong
 
should I use protected or private?
 
and i'm like ... **facepalm
@BrianJ private
@CodeMaster by default if you have controller like this ...
 
@Wardy I think a CS or IT degree is a surprisingly bad measure of code competence
A lot of those guys can't code for beans. Sure some of them can
 
1:19 PM
@Wardy that's what I thought :) someone answered protected and I started to doubt myself
 
class MyController
{
      public ActionResult Foo()
     {
            var model = new Something();
            return View(model);
     }
}
that will get the view at "~/Views/My/Foo.cshtml" and pass it a "Something" object
 
My first lead dev wrote an operating system, and a shader compiler. His forms code though was a mess
 
@Wardy Can it be ViewModel as well?
 
in that view you can then do @html.EditorFor(m => m)
@CodeMaster that is the view model
m == and instance of Something AKA the ViewModel
 
@Wardy aha ok, so it's not model itself.
 
1:21 PM
@TomW yeh like i was saying earlier ... it seems to me they don't teach you real world stuff other than "this is how you learn"
@CodeMaster i'm not sure what you mean?
define the following ...
model
viewmodel
 
@Wardy I have Areas in my project, and that particular view is inside Areas, should I put the DisplayTemplates inside Areas/Views or the root?
 
in my example they are the same thing
@CodeMaster hard to say without understanding your solution better ... I have never found a reaonable usage for areas
I tend to break out my apps in to smaller apps and then deploy a site with many apps in it
so i use IIS apps as areas instead of making mvc do it
means my apps are dead simple
 
hmm, it's really good to know.
Next question: Should I also create EditorTemplates for object.cshtml?
 
@Wardy depends. If your real world is a lab
For example
 
@TomW i guess that comes down to your solution architecture ... this works for me and always has ... not found a scenario where it doesn't yet
 
1:28 PM
@Wardy something that confuses me is that even I delete the object.cshtml, my page renders all of the fields. So when should I see the real result of object.cshtml? Because editorfor by default will render all of them.
 
@CodeMaster the template I gave you is a slightly tweaked version of something that already exists in MVC
 
@Wardy this is what I see currently:
http://i.imgur.com/hmQdvZs.jpg
 
I don't render ID properties as editable fields that's the key difference
@CodeMaster fair enough
 
is this correct?
 
probably ... how would I know ... I know what html it produces but I don't know how your css is setup
 
1:32 PM
I should setup the css inside object.cshtml, correct?
 
dude I don't want to offend you but there does come a time when you should really just take the time to read up on things
I can't help but feel you lack some fundamental knowledge areas about the structure of an MVC based application
 
I did believe me, others are using templates for DateTime and etc.
 
why don't you start by looking at the getting started stuff on the mvc website and create a brand new mvc project to experiment in
then apply what you learn to your main solution
break the problem down first in to its component parts that you don't understand and understand each part
then put the parts together
that's how I do it
I've never been formally trained on MVC
I don't even know if you can be
maybe I should consider passing a few mcp exams
put my quals up to date lol
i gotta go guys ... its my GF's birthday
 
Thanks Wardy.
 
just slow right down ok
start by just getting to grips with the most basic MVC examples
then build a knowledgebase in your head
over time you'll get everything
I know so many people who come to me like "how do i do these hundred things all at once?" and i'm do each each one in turn and bolt them together ... then they go ... but how do i do them?
just take your time ... crawl > walk > run (but not with scissors)
 
 
4 hours later…
6:07 PM
@TravisJ I did refresh the page, and also tried to restart the browser. No error in console. Aren't blocking anything, unless I explictly have to allow it. Tried with both the work computer and home computer. Here's a screenshot: imgur.com/cz52rEi Chrome version: 48.0.2564.109 m
 
6:33 PM
testing out the plugin? @scheien
 
yeah, couldn't get it to work though :(
 
 
5 hours later…
11:21 PM
Any use JIRA?
 
11:34 PM
hello guys
:D
 

« first day (1946 days earlier)      last day (3019 days later) »