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

12:03 AM
Hello
I'm trying to understand this error:
An entity object cannot be referenced by multiple instances of IEntityChangeTracker.
 
12:33 AM
Where is codemaster.
 
very busy
 
Codeman :O
 
!!google An entity object cannot be referenced by multiple instances of IEntityChangeTracker.
 
@Codeman That didn't make much sense. Use the !!/help command to learn more.
 
hey look, answers
 
12:35 AM
Lol
Look at you abusing Caprica
She'll remember this
 
user47589
huh, did i hear something about abuse?
 
@amy - are you coming to whiteknight for Caprica
 
user47589
nah i wanted to join in :}
 
lmao
My wallet is 250 bucks lighter -_-
The irony. I only got about 1.5 mb/s the whole time. But I guess I got to do it from home. So that's a win I guess. 200 odd bucks for home comfort. Worth?
 
user47589
why does it cost you so much to download something?
 
12:39 AM
Cell data in Aus is extremely overpriced. 4/4 on/off peak for 50 bucks a pop
gb*
 
user47589
oh, you're downloading via cellphone?
 
Ya. Home net is down for another two days
 
user47589
oh wow i get it now
 
Figured I would be lazy/forgetful and not download this before the outage
But it's whatever.
 
it's really frustrating working with a team member on the same page when he doesn't tell me what he's working on and doesn't respond when I ask...
 
user47589
12:41 AM
ugh
 
user47589
communication skills
 
yep
non existent...
 
@Codeman Hi - What you working on?
 
software
 
Oh cool, using a programming language?
 
12:43 AM
no, CSS
 
user47589
lol
 
Are you working on what I'm working on?
 
user47589
that sounds frustrating
 
not really in the mood
 
Aww codeman
 
user47589
12:44 AM
you should squirt him with a squirt bottle
 
^for you
Nobody can be upset when eating a cookie
 
thanks, I'm already too full of indian food
 
Welp. Those two will not mix well.
Well - i give up. Tried. At least indian food tastes good
 
it did taste good
 
What you have?
Chicken korma?
 
12:46 AM
I'm just frustrated that I'm having to rewrite fucking Bootstrap.js
 
user47589
what do you mean, rewrite it?
 
I mean that my coworker has a hacky assed custom implementation of bootstrap features like columns and I'm trying to debug it because he keeps breaking the CSS of our page that we're both working on
I have asked him half a dozen times not to check in code breaks other code
 
user47589
damn
 
user47589
bring it up with your supervisor?
 
I will
I don't wanna fucking tattle but it's not okay to cause regressions like that when you're sharing a feature with someone
don't check in your code if it's so incomplete that it causes things to break
if it's your own personal branch, do what you want
but don't pull it into master
 
12:49 AM
Is he a junior ?
 
he's older than me, but yes, I'm a level above him
 
user47589
its not tattling. there's an issue of communication and a problem of committing broken code that affects your ability to do your work.
 
user47589
imo
 
I know
I have just been trying to solve it myself
 
Seems like you're going through what I was going through with my junior at my last job that I did the all nighter for
 
1:02 AM
Hi guys, I searched in Google but it's really weird.
The same code was working in the morning for almost 5 months and then suddenly it throws that error.
var user = new ApplicationUser
{
UserName = userViewModel.UserName,
Email = userViewModel.Email,

UserProfile =new [] {new UserProfile
{
//UserProfileID = Guid.NewGuid(),
FirstName = userViewModel.FirstName,
MiddleName = userViewModel.MiddleName,
LastName = userViewModel.LastName,
Gender = db.GenderDD.Single(x => x.Code == userViewModel.Gender), /// I believe it's coming from here and
Main_Site = db.OfficeSiteDD.Single(s => s.Code == userViewModel.MainOffice), /// here
Phone_Work = userViewModel.Phone,
 
user47589
something else must have changed that affects it
 
user47589
something that changed recently
 
I made changes in Gender and Main_Site, they are now FK to another table.
 
user47589
what are those changes?
 
user47589
did anything else change recently?
 
1:07 AM
Previously I was saving the value like (M or F) but now it saves the Id of GenderDD (which holds all my Gender types).
now it should save, 1 or 2 or even 3.
1)Female
2)Male
3)Unknown
I've used the same approach in other models and it's working just fine but in this case where I create a New User with User Profile throws that error.
 
user47589
is ApplicationUser going into the same dbcontext?
 
user47589
db
 
yes
I even used using (db) and ... but yet it's the same
Today before 13:00, I was saving Gender like this:
Gender = userViewModel.Gender
after I changed the UserProfile model to this:
public virtual GenderDD Gender { get; set; }
I used:
Gender = db.GenderDD.Single(x => x.Code == userViewModel.Gender)
This line and the next line (Main_Site) are my recent changes.
 
user47589
its the same instance of the db context?
 
yes
I bypassed both properties and tried, it worked just fine. So that's why I'm sure it's those two properties.
 
user47589
1:13 AM
i'm not sure.
 
user47589
i've encountered this myself but its been a while
 
Does EF looks for similar name in other dbcontexts? Because I've got Areas, and I also have GenderDD in other database and context.
 
user47589
as long as you're using the same instance of the db context, it should work fine.
 
this is what I have in this controller:
private ApplicationDbContext db = new ApplicationDbContext();
 
user47589
does the GenderDD constructor set any properties/fields?
 
user47589
1:15 AM
what does the GenderDD class look like?
 
hmmm
 
public class GenderDD
    {

        public int Id  { get; set; }

        [MaxLength(1)]
        [Column(TypeName = "nvarchar")]
        public string Code { get; set; }

        [MaxLength(15)]
        [Column(TypeName = "nvarchar")]
        public string Definition { get; set; }

        public int OrderIndex { get; set; }

        [Column(TypeName = "datetime")]
        public DateTime? CreateDate { get; set; }

        [MaxLength(100)]
        [Column(TypeName = "nvarchar")]
        public string CreatedBy { get; set; }
 
how do I keep my content max-width small enough that a scroll bar doesn't cause my responsive items to move around
 
basically, the UserProfile table saves the Id of this table.
 
user47589
sorry @NoMore_CodeMaster, i have no idea.
 
1:20 AM
@Amy Oh no problem and thanks for your time.
 
user47589
this sort of thing happened to me when i took an entity out of one dbcontext, and tried to use it with another instance of the context.
 
user47589
but i dont see that here
 
user47589
when you figure it out, i'm interested in the solution
 
user47589
let me know?
 
1:22 AM
This is the first time that I see this.
@Amy sure, I will.
 
user47589
thanks
 
I just ran step debug mode
it's weird, every property has value, even those 2 fields have the correct values.
It throws the error here:
var adminresult = await UserManager.CreateAsync(user, passwordGenAdMx);
It's even more weird, this time it saved everything but again it showed that message.
 
1:58 AM
> [The Expanse] was the best and most important piece of science fiction to appear on the small screen in a decade.
 
 
1 hour later…
3:08 AM
@Amy I'm back with a solution
@Amy
var user = new ApplicationUser
{
UserName = userViewModel.UserName,
Email = userViewModel.Email,
};

var passwordGenAdMx = PasswordGenAdMx();
var adminresult = await UserManager.CreateAsync(user, passwordGenAdMx);

var userid = db.Users.Find(user.Id);

var userprofile = new UserProfile
{
FirstName = userViewModel.FirstName,
MiddleName = userViewModel.MiddleName,
LastName = userViewModel.LastName,
Gender = db.GenderDD.Single(x => x.Code == userViewModel.Gender),
Main_Site = db.OfficeSiteDD.Single(s => s.Code == userViewModel.MainOffice),
@Amy thanks again.
 
Jesus loves me this I know. For the bible tells me so. Fapping is a sin so let it go... something something
 
 
1 hour later…
user47589
4:45 AM
@NoMore_CodeMaster glad its solved!
 
5:05 AM
 
A small issue

I have a html.labelfor control and a jquery code to monitor its value.

@Html.Label("a", new { @class = "text-danger",id="quantvalidation" })

$('#txtQuantity').on('input',function(){
$.ajax({
type:"POST",
url: '@Url.Action("Validate", "Invoice")',
data: { 'quantity': $('#txtQuantity').val(), 'pid': $('#ddProduct').val(), 'maxLimit': 500 },
success: function (response) {
if (response == "Limit Exceeded.")
$('#quantvalidation').text('The limit is exceeded');
else (response == "Limit Not Exceeded.")
Chuck it, I found out the issue.
 
DOM
5:44 AM
Hi all..
I have created webservice and deploy it on test server.
In webservice there is static host name given in wsdl and other files. Now i want to migrate my web service to production server. So i need to change those static name in web services?
 
 
1 hour later…
6:55 AM
@DOM: You mean in an application that consumes that service?
You can update the service references for all those applications after you have deployed it to the production server.
this makes me sad:
2
Q: Angular JS and ASP Server Side Control Validation

aadeshI am using angular JS for asp.net server side controls <div class="gridpage mb40" name="myForm" ng-model="myForm" ng-form <div class="form-group"> <label class="">Name of the Supplier:</label> <asp:TextBox ID="txtSupName" CssClass="form-control" runat="server" ng-model="txtSupNa...

 
7:38 AM
morning everyone
 
Friday all!
 
@Feeds I'm going to use that...
 
8:14 AM
MORNING SUNSHINES
 
@mikeTheLiar wat?
 
morning
msdn.microsoft.com/en-us/library/… the Pets code example on this page looks like it entirely misses the point of the text above it
 
I'm doing something wrong when it comes to the stackexchange network
 
@StevenLiekens it looks a little confusing, tbh
 
What do you mean @SteffenWinkler?
 
8:29 AM
I'm most active on SO, yet my ratio of upvotes/action is pretty low here, at least when I compare it to other Stackexchange sites where I posted questions or answers.
 
it says If the underlying value of flag is zero, the method returns true. If this behavior is not desirable, you can use the Equals method to test for equality with zero and call HasFlag only if the underlying value of flag is non-zero, as the following example illustrates.
but then in the code example they do this
 // Count families that have no pets.
 if (petsInFamily.Equals(Pets.None))
    familiesWithoutPets++;
 // Of families with pets, count families that have a dog.
 else if (petsInFamily.HasFlag(Pets.Dog))
    familiesWithDog++;
 
I don't really get why that is. Best guess is the other communities are smaller, so more stuff is upvoted.
 
@SteffenWinkler Could it be the user base? SO has lots and lots of users. Not sure how it is on the other SE sites though
 
but if you ask me then familiesWithDog would have the same value as if the first if() wasn't there at all
 
@scheien maybe, but ServerFault isn't that small either.
 
8:31 AM
@StevenLiekens uhmm that's not how I read it
 
@scheien not sure about the other two (programmers and unix).
 
if no pets
   noPetsCounter++
else if one of their pets is a dog
   dogCounter++
 
@SteffenWinkler and you get more upvotes there? Might be that there are a lot of leeches on SO. Who just come around for quick answers, and don't want to do anything else.
 
yeah but what if you change it to
if one of their pets is nothing or a dog
   dogCounter+
wouldn't dogCounter still be 2 out of 3?
 
erm. No. because then families with no pets would still be considered to have a dog.
it's a poor example, but the logic holds true AFAICT
 
8:35 AM
no I just ran it in dotnetfiddle
it's 2 out of 3
I don't understand the point of the code example that they give
 
the 'else' in the 'else if' is redundant
in their example
but it's an optimisation
 
it seems to me that the text above the sample is a lie
 
@scheien yup. You can check my Stackexchange profile. Unix and Programmers -> each a question with > 10 upvotes. On Serverfault I've a question with > 10k views (which interstingly isn't really upvoted). In comparison my highest voted question on SO has 5 upvotes and has been viewed barely 700 times.
 
> If the underlying value of flag is zero, the method returns true.
 
and the question on unix SE is 24 hours old...
 
8:39 AM
oh wait I get it
the point they're making is that HasFlag(Pets.None) would result in "3 out of 3 families have no pets"
okay that was way too difficult
 
aha I can see why that threw you :) sorry - I was having trouble understanding your issue
 
I need to generate more questions on SO.
 
.Equals vs. .HasFlag
 
@SteffenWinkler hehe, only good ones I hope
 
well based on probability one would need to be upvoted like one of the others, right? ;)
@scheien uh...sure
 
8:42 AM
@SteffenWinkler Find new programming language, translate high-voted C# questions into new language, post.
 
ohh got an idea: I'll flag the most upvoted questions as spam so they get deleted and then post those questions myself
 
that's why
 
@Squiggle or that. That would be the grey-hat variant of my idea.
 
I only had 1 coffee this morning
 
Why does the upvotes / rep matter?
 
8:44 AM
@scheien because you get more power the higher you get
teh virtual points... THEY'VE A MEANING HERE!
 
squiggle.CoffeeCount.Equals(Coffees.NoCoffee); // true
 
@SteffenWinkler Needs more rep!
 
REP FOR EVERYONE!
 
@Squiggle sum ting wong
 
@scheien Erry Ting Wong
 
8:45 AM
@Squiggle That would throw a NoCaffeineException
 
In reality I want to help with the 'Close Vote' review queue. That thing has over 9k pending flags.
And I've had a few too many of my flags go away without being acted upon.
 
!!youtube 1988 world aerobics championships
 
^ this. I have this music stuck in my head.
halp
 
!!youtube friday programmer
 
no idea what it is
 
I stopped answering questions, because of A) OP doesnt approve any answers, B) questions are malformed, C) OP doesn't read comments, D) They don't know what Google is.
I don't mind investing ~30mins in debugging and help when it's appreciated.
 
I sometimes help with the review queue now (over 500 rep yay!) and I end up flagging about 70% of new questions
 
@scheien A) is so annoying. It's not even about reputation, but also other users that may stumble over that question, see 2 not-upvoted answers, no comment, no nothing. They'd have no clue if one of those answers fixed the problem.
 
Yep
 
8:55 AM
IMHO SO should prevent someone from having a question open like that. Either you need to comment on the answers, or provide some kind of reason (that would be checked by users with higher rep) as to why no answers was marked.
 
and in some cases the answer clearly answers the questions right on the spot. Still not accepted.
 
If you've a question open with one or more answers and no reaction from you, you shouldn't be allowed to post more questions until you fixed that.
 
@SteffenWinkler if you're on low rep, yes I agree.
 
by 'reaction' I mean anything, post a comment under the answer describing why it doesn't work, edit your question to add more details or point something out or solve your question.
@Squiggle to be frank, no. This happens far too often and it should be equal for all
 
A comment goes a long way
 
8:58 AM
@Squiggle I've managed to go through triage and flag 20 questions numerous times before now
 
I myself found an older question that I completely forgot about. It had two answers, and I didn't mark one even though one worked. I marked it then, but that was half a year later.
It's completely inexcusable. If I had the time to implement the answer, I should've had the time to upvote&solve my question with that answer.
 
6
Q: Load ASP.NET MVC partial view on JQueryUI tab selection

SippyI've been searching for the last day and can't find anything on this specific topic asked within the last year or two, and as JQuery appears to deprecate things quite a lot, it seems fair to ask this question with regard to the current JQuery API. Bit new to JQuery, I'd like to know this; If I...

That's gonna end up getting me a damn "Great Question" badge
 
select isnumeric('$')
-> true
microsoft ;_;
 
duh
dollars have numbers m8
 
@StevenLiekens does it return true for '€', as well?
 
9:02 AM
yes
 
awesome
 
select isnumeric('²')
-> false
 
that's excusable because you can't insert values like 5²
I want to go home
 
gaah
presumably by 'isnumeric' what they mean is.....no, fuck it, I have no idea what they mean
 
9:05 AM
I think by isnumeric they mean can be parsed as a numeric sql data type
but then
yes
select CONVERT(money, '$')
-> 0.00
man, you'd have to be crazy to become a DBA
 
@Sippy woho!
 
@scheien not woho
 
new question. Tags used: c#, excel. Me: NOPE NOOOOPE NOPE NOPE
@Sippy !!youtube Wololo
 
(if you've to click the video to find out what it is about, you're too young or too old)
 
9:14 AM
@Sippy Why not?
 
cos great question badges r for noobz
 
questions are for noobs.
:)
 
@CapricaSix hmm, someone should edit that video so that the priest has a C#/.NET logo instead of that blue thing and then post that video into the Java channel
 
@SteffenWinkler do eeeeet
 
@Squiggle I do not have the skillset required for that
 
9:17 AM
Nor do I, but I'll give it a go.
 
ookay @Squiggle, tell us how it goes ;)
 
Record sound, edit image, then render into some videothing
 
ohh, he isn't moving in that video
damn it
 
nah, should be easy
 
yup, that seems doable
even with my limited skillset
maybe I'll have a go at it in the evening or on Sunday.
 
9:21 AM
Where did you want to have the C# text?
like across his chest?
 
Any specific logo you were thinking about?
like that?
 
that should work, yeah
 
I was thinking of something a little more generic
LOL wot a pun
 
I C# what you did there @Squiggle
 
9:32 AM
1 message moved to Orphan GIFs
!!friday
 
morning all... friday at last
jeez I never noticed before but I can see the chat from another room on right...thats kool
 
you... use other rooms?
Traitor!
 
9:47 AM
i looked at the ASP.Net room... sorry!!!
I have a Microsoft top....dont mess!
 
What could be the reason to a code simply breaking when having more than one record in a database?
Probably quite a vague thing to ask
 
when you use single instead of first in ef?
 
Not a bad idea, gonna test that
 
a unique field key..ie next new doesnt conform to numbering or relationships
 
@Squiggle nerd!
 
9:56 AM
@Xariez it means either your code is bad or your database is bad and you should feel bad.
but yes, cardinality.
 
@Squiggle lol -- Back to the possessed-computer theories eh
 
@Sippy You're the nerd, nerd.
 
Lol
You got a mean streak today? :P
 
lol
 
Okay, So I am doing ToList(); methods and printing out things with foreach, how the fuck can it only handle one DB record
 
9:58 AM
ugh this database is so complicated
 
sorry. Still on my first coffee. I got the grump.
 
ok so if you had to have a database to last you the rest of your career...how many tables would you need
 
@Xariez what is it meant to do? Which bit of your thing is wrong?
 
@Xariez what's the exception and where is it coming from?
 
^
also are you sure there is a reason you are using ToList() at all?
 
9:59 AM
@Ggalla1779 MongoDb. Why use tables?
 
Thats the thing, im not getting any error code, message, or exception, I have this Google Map API which some of you know already, when things dont go well together it just disappears as thus not working, and thats exactly what happens.
aaand this also worked yesterday. I am so confused
 
is it open source?
 
@Xariez break your problem down into the smallest bits. Somewhere you're making a bad assumption about data.
 
git clone and debug it maybe (but I might be over complicating)
 
Yeah, i am on that already :D @Squiggle
 
10:00 AM
@Ggalla1779 Do you keep asking this question every week or am I experiencing a massive deja vu here?
 
i.e. your code thinks that there should always be only one of X, but your database has 3
is your code wrong or your db wrong?
 
@RoelvanUden its my friday question
 
Well its IQueryable that converts to a List, right?
 
Has anyone ever used gmap?
 
As far as i can see, its IEnumerable
 
10:02 AM
So you already have all the data in there?
 
But i cant say i am much into C# yet, so not sure if thats even in the same book, so to speak
I feel like when I add more than one record, the foreach loops additional times, and breaks something from that point
 
Well then step through it with the debugger and find out what's wrong
 
user image
3
 
Lol
Loooooooool
 
@SteffenWinkler: there you go, you make the sound / render it.
 
10:06 AM
lol
AHA
Somewhere in these 20 lines
Well atleast now i got a "scope"
 
Getting really lucky atm
Every time I go to the pub I get free drinks
\o/
 
Oh wow \o/
 
s/lucky/fat
 
@scheien will take a look at it when I'm at home.
 
@Sippy that's how grooming starts...
 
10:09 AM
@Squiggle woo
 
next thing you know they slip you a roofie and you're never seen again
 
haha
 
@Sippy !!youtube wololo
 
Right so if i have 3 rows in my database, 1 row has all fields filled in but the other 2 rows only have half the columns filled in, could this conflict when trying to select things from the database?
 
10:09 AM
@Xariez you'll have to be a lot more specific than that
 
until 2 years down the line when an old friend bumps into you in the street. You have no memory of your past life and you're somehow employed as an IT Recruiter.
 
@Squiggle shudders
 
BEWAAAARE
 
@TomW Say I have a table with the columns, "Name, Phone Number, Adress, Email"
Two entries contain Name, Phone number, adress, and the email, however, the third entry does not have a Adress submitted
 
If this is entity framework, it should be able to represent nulls absolutely fine
 
10:11 AM
Now if you got a list with all these things on a website, kind of like a logging book instead of just peeking in the database, could it break since one of the entries does not have all fields submitted?
Yes it is, and Okay!
 
The only problem is likely to be if you join on it
 
Oh hold on! Got it
I think
In the EF Select I had to do a "where [fieldname] != null"
 
But why was there no address there in the first place? Do you want to hide entries in the UI that have no address?
 
Rubber ducking eh?
 
Quack.
 
10:20 AM
Attack
 
quack
 
Quack.
 
le quack
 
that's Doctor le quack
 
@scheien Rubber vamping ahem
 
10:30 AM
"rubber vamping" sounds kinda kinky
 
That thought did cross my mind
Purple Turtle in Reading on a Thursday kind of deal.
 
Morning
 
@TomW is that code for something
 
@Sippy not really, you just have to know that Purtle (bar) in Reading (place) has a 'burlesque' night on a Thursday. Where 'burlesque' is quite loosely interpreted.
 
In which case it is code for something :D
 
10:35 AM
Well, what I meant was what I said :)
 
Lol@loosely interpreted
 
@TomW is that a full-on fet night? Or just a bit of a liberal burlesque show?
 
The latter
 
ah. Meh.
 
Chunky birds strolling around in corsets mainly tbh
 
10:37 AM
XD
a bit Rocky-Horror-meets-Primark?
 
If you say so.
 
So. C#. How about that, then, huh?
 
@TomW eek
 
zMittag bbl o>
 
shakes head at squiggle
 
10:53 AM
hello
 

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