« first day (1973 days earlier)      last day (2969 days later) » 

2:00 PM
@SteveG There is an Index view which has a list of employees and their salaries. The view also has a field total where the sum of salaries of all employees are calculated. It also consists of a textbox called maximum limit which the user enters.
The next view is the create view where a new employee can be entered into the table only if the total salasy sum is less than the maximum limit
 
@The_Outsider yeah, you store it somewhere, then retrieve it in your other view.
 
So I need a way to pass the value of the max limit in the textbox, so that I can use it for validation in the create view
@scheien What do you mean by store it somewhere? How do you define somewhere?
 
Would it be nasty to stash it in the user's session?
 
Somewhere can be a database, session, cache, or a file for that matter.
 
@TomW I was gonna say this
but there is probably a better way
 
2:02 PM
You probably don't want to hit a database
 
yeah, do it on a session, if you have multiple steps
 
@TomW yeah possible way to go, but how does session work in MVC, Similar to asp.net webforms?
 
yes.
 
you could also just post to the next step and throw it in a hidden html anchor
 
Oh well, then should not be a problem. Will look into it. Thanks lads
 
2:03 PM
so when you post from step 2, you have the values from step 1
 
Or write an SPA and keep it all on the client :)
 
or that
lol
 
Making sure to validate everything when they do eventually post you something.
 
Don't need an SPA to store data no a client btw
session/localstorage is still available.
and cookies
 
don't need to, it's just another option
 
2:05 PM
yeah i get it.thanks
 
and i wouldn't store it on disk at all
 
the possibilities are literally limited
 
lol
 
@scheien well yeah but the notion of running through a sequence of data entry forms and not doing any additional page loads sort of ties up with the idea of SPA
 
2:06 PM
@TomW true
 
Some great friday music, since you need it
 
nah I don't need it thx
 
yes you do
 
no I don't
!!wololo
 
@Squiggle That didn't make much sense. Use the !!/help command to learn more.
 
2:06 PM
Oh kurwa..
 
:P
 
wolololololo
 
Your loss, great music :D
 
I'm still listening to Air.
 
user47589
good morning.
 
2:10 PM
And one small thing,do i need to use JS to access the html.textfor value or is there something like Session["Key"] =html.textboxfor.val() ;
 
@JakobMillah love the rythm
 
Hi, Guys Please have a look at this question... stackoverflow.com/questions/35928039/…
 
Ye, great rythm. Love his voice as well @scheien
 
@scheien And one small thing,do i need to use JS to access the html.textfor value or is there something like <% HttpContext.Current.Session["Name"] = namebox; %>
 
set the session values in the controller
when you post from step 1
 
2:15 PM
0
Q: Create / Update windows phone store app throw an error "Are you missing assembly refernce"

ArsalI have an application on store with the name of Sher o Shayari. Now I want to update that app with bit structure change. I add category screen and comment out code that is not related to new things. When I debug then application works correctly while when try to create store build then Error di...

 
@Arsal not really enough information to go on there. Something to do with references. Update the question with the complete error you get.
 
@SteveG Currently I do not post it anywhere. The view is only a list of employee names and salaries. So right now it is only a get
 
I'm trying to create an Email template in VS. I created a basic HTML file, and inserted all the Bootstrap CSS in between the <style></style> tags.
When I click "View in Browser" It shows the HTML but with no styling
 
you have multiple steps. When you go from step 1 to step 2, you post to a controller, save the step 1 info in the session, then redirect to the step 2 action method
 
@Squiggle I just update question bro.
 
2:18 PM
Think I get what you are trying to explain. Will check.
 
@Arsal you did? I can't see any more info...
 
when you go from step 2 to step 3, you post info from step to 2 to the controller, set step 2 values in the session, and redirect to step 3. when you're done entering info on step 3, you post to your controller, read the values from the session for all the steps, save, and redirect to a confirmation page
 
@Squiggle I'm doing
 
any idea on how to seperate the busniess layer from the data access layer in asp.net web api
 
don't create them together at first
 
2:23 PM
^
 
for sure
but where to put the database, and where to put the models and the controllers?
 
What do you mean by 'where'?
 
@Kob_24 i like to separate them by project
 
i supposed to create to folders BBL and DAL
 
well, if it's a larger app
if it's smaller, by folder will be fine
 
2:26 PM
okej, and i just want to understand between the DAL and BLL, i know that databse should be inside the DAL but what should i have in the BLL ? is is the controller
 
no, thats the presentation layer
 
sounds a bit weird but i never worked with BLL i read about it today
 
even if it's an api, it's still considered presentation
i have a great book if you have the time
 
u mean the BLL `
?
ohhh i c
i think i get it
 
web api is the presentation layer
 
2:28 PM
"BLL" I prefer to call "the domain" because it only concerns it's self with describing and solving the problems of your domain.
 
^
 
"Data layer" is just persistence. Nothing more.
 
can i say its the controller ?
i mean the BLL
 
No, the controller is the controller
 
or the domain layer
i mean the controller inside the domain layer is the BLL
 
2:29 PM
All the things being discussed here are different people's interpretations of 'Model'. Really Model isn't a specific enough term
 
MVC - views, controllers etc - is a framework that sit's above the domain and translates domain "stuff" into a user interface
 
ahaaaaaaa!!!
yeah its confusing hehe
 
that's your standard three-tier architecture :)
MVC is a design pattern
 
yeah i know about MVC
 
MVC is a presentation layer pattern
if you're interested, it's a great book
 
2:30 PM
thanks man!
99 pages
not so big :P
 
really?
 
i like small books hehe
yearh
 
that doesn't soud right
maybe who knows
 
@Squiggle I have update in my question. will you please check this now.?
 
2:34 PM
If I publish With TFS and I have pending changes, will it publish my local Pending changes as well or Just whats checked in?
 
@squiggle stackoverflow.com/questions/35928039/… please check now
 
@Arsal did you clean and rebuild?
 
here, have some nice music:
!!youtube steve ray vaughan voodoo chile slight return
 
@Arsal it looks like you've corrupted your XAML by deleting bits of it. There's probably still some namespaces or references floating around. I wouldn't recommend refactoring XAML by hand, really...
 
@Michael Are you publishing from VS?
 
user47589
what do you guys think of redoing the top pinned comment, in bold? i like the way the bolded starred comments stand out
 
sure
 
+1
 
user47589
Welcome to Stack Overflow chat. Please read the rules.
11
 
user47589
2:45 PM
cool
 
I just received a chat notification up top that just said "Timeout"
thats it
 
@SteveG go to time out
 
user47589
feels so bold this morning
 
lol
 
@Amy I think that also Codeman's comment should be bolded out imho
 
user47589
2:45 PM
the one about debugging code?
 
sure
 
if everything has emphasis, then nothing has emphasis
 
^
 
user47589
yeah
 
> feels so bold this morning
> italicizes comment
 
user47589
2:46 PM
maybe people will read the room rules more
 
user47589
lol
 
I'm not saying everything, but only that one. People. Read. Really.
 
user47589
I dun wanna read, you can't make me.
 
pushes the red alert button
 
any EF experts have a moment to spare?
 
2:47 PM
@FranciscoGarcia just ask the question
 
@NickSuperb yes, Publishing from VS
 
well i have a client who wants to be able to show a grid of columns per project whose columns are dependent on that project and can change. I know how to model that at the database level, but i have no idea where to begin mapping that in Entity Framework (we're using EF7)
 
@FranciscoGarcia your EF models should map 1:1 with your database. It's just persistence. You'll want to do the jiggery-pokery at the presentation layer, surely?
 
well there is a good deal of jiggery pokery down below, should I have entities in EF to map to for link tables and such?
i recall those tables being inferred with properties in the mappings when doing work in ef6
 
2:51 PM
if it's just a simple many-to-many link table with left and right key, you don't need EF entities for that
 
25
Q: Is there an Entity Framework 7 Database-First POCO Generator?

Ron PentonI've been playing around with Entity Framework 7 and ASP.NET 5 for a new project I'm working on, but I've hit a road block. The team I'm working on uses a DBA-first approach to development; ie the database is designed by DBA's and then the developers alter the code to compensate for the model cha...

 
what's POCO?
 
Plain Old C# Object
 
ah
 
2:52 PM
@Squiggle I thought that it was Proof Of COncept lol
 
we got it from POJO - Plain Ol' Java Object
aka "DTO" - data transfer object
 
@Michael Then it should publish whatever you see in VS
 
it feels good to have new people in here asking questions
 
thanks @nicksuperb, ill give this a try
 
that i can actually answer
lmao
 
2:53 PM
Yeah there's been a rush of them just lately, wonder why
 
> school
midterms are happening
 
final project approaching
 
user47589
is that like the final boss?
 
@Amy yea
but the loot is shit
 
@TomW Q2 deadlines
 
2:54 PM
all you get is a piece of paper
 
user47589
damn
 
i interviewed 11 guys this week, another 33 next week, all talking about midterms and final project
 
hiring entry level?
 
summer intern
 
ouch
 
user47589
2:57 PM
put them all in a room with a single computer. the first person to solve Fizbuz gets hired.
 
You may end up with the one who can beat up all the other candidates
 
^
 
user47589
... but he can do fizbuz
 
Finally got internet
 
what if some kid beat up all others and turns out can't do fizbuz?
 
2:58 PM
@Sippy THEN HOW WAS CHAT???
 
wat
 
user47589
i guess i didn't consider that.
 
first person to Google Fizzbuzz wins
 
THEN WHO WAS PHONE???
 
!!urban then who was phone?
 
user47589
2:59 PM
lol
 
@TomW No definition found for then who was phone?
 
gdm
 
!!knowyourmemes then who was phone
 
@AdrianK. That didn't make much sense. Use the !!/help command to learn more.
 
someone gets it
 
2:59 PM
!!/halp
 
@NickSuperb That didn't make much sense. Maybe you meant: help
 
lol
!!/halpme
 
@NickSuperb That didn't make much sense. Use the !!/help command to learn more.
 
Hello, yes, this is dog etc etc
 
!!/stahp
 
3:00 PM
HAMMAHTIME!
@NickSuperb That didn't make much sense. Maybe you meant: stop, stat, stats, stars, slap
 
bot is schizophrenic
 
!!stars
 
WTF LMFAO
 
What year is it?
 
3:05 PM
Why would SendTimeout on the client binding cause a timeout when reading the response?
 
No one likes being in time out
 
@KendallFrey there's also a binding.receivetimeout
 
> SendTimeout – used to initialize the OperationTimeout, which governs the whole process of sending a message, including receiving a reply message for a request/reply service operation. This timeout also applies when sending reply messages from a callback contract method.
 
user47589
all of my SO tabs just timed out
 
user47589
that was weird.
 
3:10 PM
maybe some node in the route broke
 
user47589
chrome said the scripts were taking too long to execute, and asked me if i wanted to kill or wait.
 
Does Kendall work for SO?.. hmmm
 
no
 
a timely question is it not
it was probably just a network issue.. I didn't get the same thing
 
Back again!!
Is it possible to use view data of one view in another view? Or should I use temp data?
 
user47589
3:13 PM
you should use view models instead of ViewData
 
^
 
user47589
unless its some one-off thing like a page title
 
always view models
I like to view models
 
user47589
view models have less technical debt
 
3:14 PM
@Amy Everything you write is technical debt you just don't know it yet
 
user47589
:(
 
/s/you/we
 
/g
 
user47589
:/
 
well,then can i use it similar to Viewdata? Like in ViewData["MaxLimit"] = MaxLimit;
Or does it need something extra?
Basically I am using view data from one page to store a value and use it across views
 
3:18 PM
View models! View models!
The web is inherently stateless. Do you mean to use sessions instead?
 
Any link of using a simple store and retrieve using view models?
 
kwbu.org/post/listen-your-ai-assistant-goes-crazy-npr-too arf - A radio show about Amazon's voice-activated home automation service triggered listeners' own thermostats
When I'm a famous musician I'm going to make a song containing the lyrics "OK Google ... call mom" followed by a long line of insults.
 
This is totally off topic
Did anyone actually like the 90's era?
 
I feel like if I had a time machine I would avoid that decade
 
consumerism must've been the worst
 
@Failsafe I did
 
@Failsafe I did
 
what was wrong with the 90s?
 
the internet sucked
 
user47589
3:28 PM
lol
 
@The_Outsider If you can describe further what you want to achieve, perhaps we could suggest the best approach...?
 
user47589
this title
 
Nothing. Everything was better in the old days of course.
 
user47589
43
Q: Does shooting people make them dislike me?

StudokuI just got a new slingshot. It's not very effective against monsters but it's fun to take potshots at Shane when I see him. Hitting Shane makes the grumpy speech bubble appear above his head. Does that mean I lose friendship with people if I shoot them?

 
worth it for the dial up noise
 
3:29 PM
@Squiggle I thnk I know what the issue was. Im setting it right. Will get back with a more detailed question after some analysis. Thanks for the help.
 
@The_Outsider g'luck :)
 
@Amy dat title doe
 
user47589
i saw it in the Hot Questions sidebar and guffawed
 
please tell me that's on the network hot ques... yes
 
i was just reading a reddit thread like that
 
3:31 PM
level?
yep
 
yes "levels"
 
> Holy intentional bait and switch, batman!
> Jailbait and switch.
 
If people click on an obviously clickbait title do they get the right to complain that it's clickbait?
 
well i guess clickbait was just doing its job
 
lol
 
3:34 PM
@Failsafe If a fish is dumb enough to bite your hook should it just allow itself to be reeled in?
 
We just got an ALL STOP from a senior dev cos we were breaking things
rip
setting up load testing is hard on legacy apps
 
@NickSuperb yes
it would make fishing a lot easier
 
@Sippy load testing is hard on WebForms, for sure.
 
It has more to do with the system architecture
 
@Failsafe Then what's the point of the hook
 
3:37 PM
It's so complicated that creating users and all the resources we need for those users manually may not even be possible lol
 
IME, ViewState makes it almost impossible to record and re-play HTTP requests and receive any meaningful results. You gotta do some horrible things to make it work.
@Sippy painful :(
 
user47589
god, viewstate
 
user47589
turn that shit off
 
I did manage to make 100,000 users
 
user47589
thats a lot of babies. you've been busy.
 
3:38 PM
But they all need active subscriptions which are managed by numerous other systems lel
 
@NickSuperb because you have to attach the bait to the line
 
@Amy I wish.
 
@Sippy did you make sure that more than one of them share the same name?
 
@Squiggle As in?
 
like, 5 people called John Sippy
 
3:40 PM
As in both called John Sippy
 
Why?
There are some like that, yeah, not sure why it would be important though
 
You'd be surprised how many systems think names are unique :-]
 
@Sippy the maximum of holidays per year is 7 days after 3 children. It's not effective
 
Oh we already know it "works"
We just wanna see how many people it can carry
 
heh
 
3:41 PM
how utterly retarded does one have to be to design a system like that
 
Cos we're gonna put a huge fucking V12 engine in it, but if it's gonna pop a wheely and fall over backwards then we kinda need to know
 
@TomW We've still got some 3rd-party software here that uses firstname/lastname as the unique key in the API
 
How do I convert view data into decimal using jquery?
I have this, so do I have to use parse?
var _maxLimit= @Html.Raw(Json.Encode(ViewData["MaxLimit"]));
 
note: this place also employs some people who don't have a surname.
 
@Squiggle name it, so I can make sure nobody ever uses it
 
3:42 PM
@TomW I think it was a custom integration.
 
user47589
our homebrew security system wouldn't let me into the building a few days ago because they hired another person who's first/last name is the same as mine
 
done by some H1-B Indian/American dude
 
user47589
the system used first/last as uniqueness test
 
oh for god's sake...
How many people are called Amy Pony anyway
 
@Amy Shit - that's probably the same system as I'm talking about :-/
Security systems are mostly awful
 
3:44 PM
@Squiggle in his defence the product owner probably outright refused to give him any useful information. Work with what you've got until they decide what they want
 
kek
dev environment was configured with a live service
tl;dr we've been hammering a rickety live service hahaha
 
INCOMPETENCE OVERLOAD
EVERYONE EVACUATE THE INTERNET
 
@TomW We sent over detailed specs. You can guess the quality of software that was provided in return.
 
@Squiggle oh well, fair enough, I tend to assume though that bad software is 50:50 bad developer and bad customer
 
@Squiggle@Amy
How do I convert view data into decimal using jquery?
I have this, but it ain't returning any value
var _maxLimit= @Html.Raw(Json.Encode(ViewData["MaxLimit"]));
 
user47589
3:46 PM
I've never received good-quality code delivered by another company. its always, always shit
 
@Amy I have recieved once. I sent a mail with code from the previous company to the new company I was working in...
 
user47589
you sent yourself code? lol
 
yes
vi scripts
and tool stuff
 
ok guys, have a nice one!
Bye
 
@Squiggle did you pay?
 
3:52 PM
TGIF
I need sleep
 
God, I hate automated responses from companies. Like read the damn mail I sent you before you robot me.
 
user47589
yea
 
Ask something about cookies get an answer about pie.
 
Robot as a verb. GG
 
My dictionary exists out of many weird words ;p
 
3:58 PM
@TomW Get robotted
hmm
 
@Failsafe Watch it, before I robot the robots robot!
 
Don't act so robotly
 
@The_Outsider jQuery doesn't have decimals
(JavaScript doesn't either o/)
 

« first day (1973 days earlier)      last day (2969 days later) »