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

user47589
5:00 PM
is GetProperty returning a PropertyInfo object?
 
I think it might.
 
user47589
is it an indexed property?
 
user47589
you think? make sure.
 
user47589
if it isn't an indexed property, you're using the wrong overload
 
user47589
5:01 PM
@Sippy page not found
 
No it isn't indexed.
 
gj stack overflow
 
user47589
then remove the last argument
 
user47589
5:02 PM
page still not found
 
user47589
someone get @sippy a user manual for the internet.
 
        if(matchColumnToAttribute != null)
            if (!reader.IsDBNull(reader.GetOrdinal(matchColumnToAttribute)))
                typeof(TEntity).GetProperty(matchColumnToAttribute).SetValue(model, reader.GetOrdinal(matchColumnToAttribute), null);
 
@Amy StackOverflow broke it
in HTML / CSS / WebDesign, 4 mins ago, by PeeHaa
It worked, but after refresh twas gone
 
@mikeTheLiar I put a label into a panel and set panel to Auto-Scroll to try to create a sort of Non-selectable textbox control.

The panel refuses to do vertical scrolling, and will only scroll horizontally. Ever come across this shit?
 
user47589
Sure, blame everyone else. We all know who's really at fault (Zoidberg)
 
5:03 PM
Anyway
Survey results was about 95% male 4% female and 1% undisclosed
In reality it's more like 90-10
But that's still annoying as shit and let me tell you why
In most professions it's a much more equal balance
Up to a third of people meet their SO at work during their life
Cos you know, similar interests
TL;DR nerds have to be social outside work to meet people they have something in common with
Which is like
Not what nerds do
 
user47589
huh, did SO take the page down for some reason? can anyone else access the survey results link?
 
They botched it
 
On the other hand, if you do meet your SO and they're not from work, it's more likely to be because you like them and not because they're convenient
 
user47589
ok
 
Oh
@bluefeet why you taunt us like dis
 
5:06 PM
@Amy we call that an Eiffel Tower
 
0
A: Why does the losing tech graph require scrolling? (2016 Survey)

bluefeetErr, we made a mistake and this was released before it was ready. It's been pulled and we're hoping to have it available next week for actual perusal. Sorry about that!

 
user47589
people on reddit discussed the results at the same link you gave
 
tl;dr bluefeet is a noob :D
 
user47589
ah
 
@Michael what's the scrollbar property set to?
 
user47589
5:07 PM
i think i missed the survey. i'm not on meta much
 
@TomW ehhhhhh
 
@Amy I get: An unhandled exception of type 'System.NullReferenceException' occurred in Report Downloader.exe

Additional information: Object reference not set to an instance of an object.
 
Most people in the chat rarely venture onto main lol
 
@mikeTheLiar Auto-Scroll, I've tried just about every combination of property setting possible.
 
user47589
@greg ok. debug it?
 
5:09 PM
Oh you said that. Hmm.
 
@mikeTheLiar I think it has to do with the fact that labels want to display text horizontally, you cant make them word-wrap unless you set them to Auto-size: false. Which I have done. but then Auto-Scrolling cant really work right, because the Label has a fixed size
 
While it turns out that it is indeed true that you never forget how to ride a bike, it does become fing scary
 
@Amy Well, the ordinal returns zero. Which seems wrong.
 
Fucking Winforms
 
@TomW You can forget how to ride a bike, Destin Sandlin proved it
 
5:12 PM
@Michael And if you set the scollbars to Vertical?
 
@Amy ahahaha
@Amy I forgot to actually get the value to use the ordinal, haha
 
user47589
figure it out?
 
user47589
cool
 
Hello
 
user47589
consumes a third cup of joe
 
5:16 PM
Yeah, I also forgot another important thing.
 
user47589
hello @jeuxjeux20
 
@mikeTheLiar label still wants to be displayed horizontally
 
@TomW I didn't ride a bike for about 6 years, then I started doing downhill mountainbiking
 
user47589
@greg my birthday?
 
That was fucking scary.
 
5:16 PM
@Amy hi
 
@Amy ponies don't have birthdays.
 
no way around it. I'll try a different control than a panel, maybe a richtextbox or something
 
user47589
@greg you forgot panini?
 
I am a little bit newbie too
But a little bit,
 
@Amy Isn't that illegal by now?
 
5:17 PM
@Sippy snap. Gentle 5 minute ride home from the shop just now
 
@Michael fucking Winforms
 
I'm of a mind to start doing some trails but that might never happen
 
@TomW snap - yeah, bits of me made that sound a lot
 
@mikeTheLiar absolutely sucks
 
WPF > WinForms ?
i say yes
 
5:17 PM
Good news, we are going to start venturing into WPF for future projects though
 
Are you genuinely intent on coming in here and rallying us against Winforms?
 
in fact idk
It is an opinion
 
@Sippy are you a fan?
 
Everyone knows VB6 is the best java framework.
 
!!xkcd not a huge fan
 
5:19 PM
 
hehe
 
quiz night with work tonight
Free pizzaaaaaa
 
user47589
lucky ducky
 
I swear Yahoo have been vulnerable to every major security bug ever
 
@Sippy who uses yahoo anymore?
 
5:21 PM
4 messages moved to Sandbox
@mikeTheLiar me errday
#bestsearchengine
 
@Sippy watch it, my blue feet can be dangerous when provoked
 
@bluefeet I'm an experienced pokémon trainer.
@Boltclock I choose you!
That's how this works right
 
okay so i can't :v
 
I wonder what the deal with that avatar is. "LOL Boo-" BAN
 
what
 
5:26 PM
I've a question
what is Visual Studio Blend ?
 
a thing
for html and stuff
 
user47589
Google knows the answer.
 
user47589
!!google visual studio blend
 
5:27 PM
ok
 
Welcome to Stack Overflow chat. Please read the rules.
3
wish we could permasticky
 
!!help googļe
 
@mikeTheLiar googļe: User-taught command: <>[$1](https://www.youtube.com/watch?v=kfVsfOSbJY0)
 
!!google google
 
hmm.. so Visual Studio Blend is a window designer + animations ? very great !
 
Do stickies decay?
 
i don"t know
 
yeah like a month
 
And on fucking Thursday no less
 
5:32 PM
For a game : Should I create a List<Miner> of "miners"(they'll increase the score by 1 each second), or just do new Miner(); Which will execute this action every second through the constructor (using unity coroutines) ?
 
Hey guys, I'm doing a project using Code First and we have a requirement to create "Work In Progress" tables of all of our entites (so basicly every entity would have 2 tables). I was thinking the best approach would be to create 2 DbContext's with 1 inheriting off the other and adding a rule to the OnModelCrating to prefix the tables with "wip."
.. Migrations only catches the first dbcontext though, has anyone done something like this before?
 
define "work in progress"
 
so each entity will have 2 tables. Its normal table and a cloned "wip" prefixed table
most work gets done to the wip version of the entity and then there is a "publish" process that moves the wip version to the actual table making it the new source of truth
 
That part is understood, i'm asking what you mean by work in progress. There are industry patterns for doing something similar
Ah, ok. That's what I figured
 
all reads are typically done to the source of truth tables but editors can see and play with the wip. verisons
 
5:35 PM
Typically, this is handled with 2 extra columns on the entity table, [parent, state]
states are published, unpublished (or whatever). and you track the id of the parent it was cloned from
 
@Sippy ♪ yesterday was wednesday (wednesday) ♪
 
i think i have some plugin code for ef somewhere on github that magically does this for you. let me see...
 
Sorry, but i am very newbie to generics functions/classes , so ; how to get the infos(ex type) of "T" WITHOUT an argument
 
@CharlieBrown the problem is we need a true version of the entity in the DB, then admin users can mess around with a clone version of it (might be multiple users, over multiple days so the cloned entity needs to persist)
 
@Mikeb yep, thats how it works
 
5:38 PM
@jeuxjeux20 typeof(T)
 
your table has both the true entity and the clone in the same table
 
@Jeremy thanks !
 
this is a industry std pattern for handling this, i forget the name of the pattern though
 
I was hoping there'd be a way to make this transparent. Like if you used the WipDBContext you get all the wip items and the DbContext gives you the normal items
no changes to the structure of the entitles and they're not aware that this WIP magic exists
 
Sounds like exactly what CB is offering
 
5:40 PM
I think I can get this by adding a table prefix rule like this: stackoverflow.com/questions/12633015/…
 
you can split it, its just a maintenance problem
 
so then if I had 2 contexts, maybe bother inherited from a base that has all the ICollections
1 doesn't use the Table Prefix rule and one does and the both point to the same DB. I was hoping entity framework would create 2 version of the tables
 
ef is going to have issues if 2 contexts point at the same db
 
I can do this with an attribute though no?
just give them both the same connection string
 
both contexts will compile the db fingerprint differently, so they will both think the db is not correct
 
5:42 PM
they don't need to know there are other tables in the DB
hmmm.... maybe I can hide them in separate schema's in Sql Server?
so 1 connection string can't see the others tables?
 
@Amy Was it your birthday?
 
it will work as long as you have diff collections
 
user47589
@greg hehe no
 
if you do the inhertence, it will complain
of course, you can override some of that too now that i think about it
 
@Amy Was going to say, I would wish you a happy birthday otherwise.
 
5:44 PM
I'm wondering how you would code this
 
:D yeah.. same here. I feel like its possible but maybe not
In theory, I think its doable
 
var original = context1.Set<Employee>()
// copy to new database
// edit object
// copy back to original
 
yeah
I think I could do:
 
you will have to turn off proxy gen and LL (i think)
 
yeah that's fine
could I do:
 
5:47 PM
lol, devs are always like "Yeah, I know jquery is for querying the dom, but i want it to make a rover that can drive on the moon"
 
Drat, The Riddler strikes again!
 
coding would be no fun if we didn't make jQuery try to get to the moon
using (DbContext db = new DbContext()) {
using (WIPDbContext wipdb = new WIPDbContext()) {
var thing = db.someTable.First(x => x.something == "something");
// Do some editing to thing
wipdb.someTable.Attach(thing);
wipdb.SaveChanges();
}
}
 
again a noob WPF question sorry ; how to use correctly Grid's rows and columns ?
 
@Mikeb you will have to do a deep copy, you cant have an entity attached to 2 contexts
 
yes
 
5:50 PM
hmm
 
maybe Automapper can just do that for me
 
@CharlieBrown I'll see that !
 
@CharlieBrown I think I have an idea to get this to work, thanks for talking it out.
 
@Mikeb any thoughts on handling concurrency? 2 users edit the same one?
 
5:54 PM
Does a delegate can be used like a "code fragment" to execute in a function ?
 
great
thanks you @CharlieBrown
 
if you met some consulting "engineer" call http response "answers", you know you fucked up
 
Great, with Blend i can do colorful programs xD
 
I have a question on telerik upload with ie11 on a load balalncer
 

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