« first day (2081 days earlier)      last day (2869 days later) » 

11:00 AM
@AdrianK. Well, those sure are the best ones! :P
@LikeIfYouCaredAboutMyName I love those tables!
 
@JakobMillah no you don't, you may think you do but you actually don't. It's just your mind tricking you so you don't suffer when you find out the truth xD
 
@JakobMillah yeah, Diablo 3 is running fast as hell <3
 
ok. it looks like the duplicates are solved
 
as well as Arma3
 
@AdrianK. Doing things. :P
 
11:02 AM
@VictoriaS. awesome. what was it?
 
now to see what happens with my 1000 records pf 3 GB. I expect an outofmemory
it was the db.savechanges per record
 
@LikeIfYouCaredAboutMyName Just kidding :P I am working with one that is pretty much hell.. Where the foreign keys are not called the same as in the primary etc..
 
@RoelvanUden I've been there LOL :D
 
I'm terrified of the outofmemory though...
 
@AdrianK. You install dat shit on z laptop? :| rip laptop
 
11:02 AM
@JakobMillah :O what the gr8 hell??
 
Yep.. You get used to it, but it sure is confusing sometimes
 
@VictoriaS. yeah you only save in the end XDD, like you just commit in the end of a transaction, it's the same
@JakobMillah it seems hard to get used to xD
 
Yea, I didn't know that
 
I got my gf a little bunny for our 1 year anniversary
she loves that hing
*thing
hahahahha
downloading 22Mb at ~9Kb/s -_- it just downloaded 3Mb in whole 15 min
da hell
 
@JakobMillah oh stop it you, still better than Tibia XD
 
C4u
11:07 AM
Congrat.
@LikeIfYouCaredAboutMyName Issue solved?
 
@C4u yup :D she was saving per record and not it the end
that was the problem
 
@AdrianK. I love ARMA 3, BR. but it's not a game that your laptop appreciates, that's for sure :P
 
C4u
Ah ok nice.
 
@LikeIfYouCaredAboutMyName is it called Magic Rabbit or something similar? Kappa
 
C4u
11:09 AM
Wait... saving per existing record in database?
 
@JakobMillah I agree. But it's a great game
 
wait.
what if I need the id of a saved record
 
@C4u she was adding the records inside a for and after adding she would save i instead of saving in the end after adding all the records
 
like

db.Status.Add(status)
but right after I need the saved, new id.
 
@VictoriaS. that's easy, I searched for it as well a few days ago, you can find it easily
 
11:11 AM
only things I find is after a db.savechanges()
 
you can use the status object itself
 
even when it's not saved?
wouldn't that be id 0 ?
 
you can't use the ID property
but you can use the object
does that make sense?
 
but I nééd the id
I can't save the object somewhere.
 
what are you trying to do
 
11:14 AM
I have old data
which needs to be in the new database, so the id's change

I'm keeping dictionaries with the old and new ids, so I can link the objects later on
but if I can't db.SaveChanges in between, that doesn't work
 
if you're migrating data why do you care about what's left on the other DB?
does it need to have the sime ID in the new one?
*same
 
because I cannot throw that data away
and the things need to be linked
I've tried seeding the old Ids, but that didn't work
 
it should work if you have identity insert on
 
I couldn't figure it out back then, lost 3 days on it
if not more
thing is I got that part working with the savechanges in between
because I could get the new ids
 
okay then you should be able to wrap the whole thing in a transaction
 
11:18 AM
identity will auto increment
not a good use for your problem imo
 
never having worked with transactions, I'd rather eat my shoes
I've been at this db seed for too long
 
better long and good than quick and bad
or at least that was what she said
 
true, but three weeks?
 
XD
@VictoriaS. no matter how long if in the end you end up with something well coded
 
suck that debugging a seed is so damn hard too
 
11:25 AM
people should spend more time designing and normalizing the DB than coding
or at least the same time
it would avoid so much trouble
normalized DB's are heaven to work with
 
It doesn't even take any real time to design a DB well.
 
yea it doesn't take too long
just gather what you need
 
yea well you don't want to see the db I'm working with
the old one, that is
 
get some tables
 
NO relations
NONE.
 
11:27 AM
think in the relations
and normalize it
done
 
everything is double or triple per record, things are messed up because of that
 
@VictoriaS. really? :o but that's like a terror attack with dirty bombs
 
which is the only reason I got permission to try start over in MVC.
yes.
 
@ntohl Congratulations!
 
well, there are a few lthings 'linked' I guess
 
11:29 AM
 
by use of a column 'stuff_id'
but no actual relationship, so lots of data is corrupted
 
I would jump off of the closest window
what's your company called?
Fasty McFastFace?
 
(before a colleage or boss sees it)
 
too late
 
srsly tho
How can I get the new ids?
 
11:32 AM
Oh, you work for my company? Luckily I can see deleted messages.
I'LL BE WATCHING YOU
 
it was just a stupid joke anyway
 
So was mine ;P I don't live in fucking Belgium
 
At least you still live in the EU
 
shhh, stop triggering the brits
 
They triggered themselves
 
11:34 AM
i know it's funny to do so
 
C4u
xD
 
#Triggered
 
I hope they'll panic now and don't actually leave. It's bad for all of EU, worst of all for UK.
 
how can they not leave if they voted to leave lol
well they can but
 
C4u
They can prevent it.
 
11:35 AM
well, dice has been cast
 
@RoelvanUden Oh my god that would be priceless
 
they can but it was the majority of people who voted for it
 
C4u
They just need to collect 100k signatures within a petition.
 
for what
 
@C4u They technically don't need anything
the vote doesn't "mean anything"
 
11:37 AM
hi
 
@RoelvanUden I'm waiting for that as well.
 
how come? i'm a bit lost so i may missed something
 
That they don't obey the vote result, and just try go forget it all
 
yeah, government has the right to respect or not respect the referendum
 
that is very stupid as well
 
C4u
11:38 AM
@Proxy It is the govs duty to check it again if a count of 100k will be exceeded.
 
If you look at the disgust now, everything the supporters of brexit were claiming wasn't true or won't change. It all just becomes worse. There is no real upside. So yeah, people that didn't realize don't like that. Obviously.
 
well then the politican/media that was releasing those claims should be charged
but in the end its politics. bullshiting is the main selling factor there
 
Then every politician should be charged for all the lies they've come up with ever.
 
@C4u yeah but what will that get them? another referendum
 
I have a class (it is a classifier) this classifier has a method which is called recursively, at each invocation I pass a list. This list is then modified in various ways during the recursion. So the problem rises when the recursion call returns and I find my list messed up by the recursions calls. Can I use struct lists so at each time I pass it as an argument the whole list is copied?
 
11:40 AM
@scheien someone will have to
 
And, is there a struct list implementation? or Do I have to write my own implementation?
 
Vast majority of MPs are against it. There are never that many that agree on anything
 
Doubtful
 
#csharpbrexit
 
C4u
@Proxy I dont know. But doesnt matter atm. In europe its currently about "if they wanna leave, they will as fast as they can." European politicans dont want to change their mind afterwards to prevent imitators. So if any petition could collect 100k signs, at least that would break this leave for a moment.
 
11:42 AM
@francescop just use any generic collection, and do deep clone before you do anything about the collection
 
regardless whatever comes out of it they should change the referendum system then
@C4u but what will that cause? there were over 10 milion people against leaving so of course they will get 100k signatures. But what does that change?
 
since it's 52% win, i thought the government should have the gut the reject it
 
@tweray do you know only this option? because I was thinking that maybe a struct is more elegant since the copy is performed automatically at runtime
 
apparently the UK government don't have the gut
 
doubtful, they should change the system first.
 
11:44 AM
@francescop not that i know of, sorry
@Proxy well, question is system reform took years, can you live through that?
 
C4u
@Proxy Would be a last hope. I dont think anything else could cause something. I also think there are lots of people who were voting for the leave without believing that it could even happen. Now, where this is done it could change their minds!?
 
@tweray found! ImmutableCollections ImmutableList :)
 
how to get the index of proprety??
 foreach (PropertyInfo pi in body.palett.GetType().GetProperties())
            {
                if (pi.PropertyType == typeof(object))
                {
                    if(pi.PropertyType == typeof(object))
                    {
                        var value = pi.GetValue(body.palett, );
                        var yellow = pi.GetValue(body.palett, pi.GetIndexParameters());
                        if (value != null)
                        {
                            body.palett.White = (PalettBody)value;
 
okay but would you support that stance if it was the other way around?
@C4u what? so you vote for the other option cause of "funzizes"?
 
nobody has ideas to get id's of unsaved entities?
 
C4u
11:49 AM
What do you mean?
 
@tweray Even if leaving is stupid, not leaving is fundamentally undermining democracy.
 
I have a table Images
and a table Persons

a Person has an Image (id picture)

I seed the Images first, then need to link the new Id's to Person
 
you said people where voting to leave because they thought that will never happen? where do you get that idea and why should anyone do this?
 
but apparently db.SavaChanges() inbetween is not an option
 
C4u
I am not supporting anything. Im not living in the UK so I cant even vote. For my opinion it would be better for the most if they would stay. But Im just a little coding boy without the farsightedness to seriously decide whats better.
 
11:51 AM
@VictoriaS. Are you not using an ORM?
 
@VeronicaDeane declare war to German in WWII is undermining democracy too. as government you sometimes need to do something that's not public favor, otherwise it's simply pet of collective thought, which has been proved to be a wrong and bad system
 
In Visual Studio 2015, how do you select and replace multiple occurrences of a word? Say I want to replace every "counter" with "i"
 
@catgocat Can you not just use the refactor menu?
 
C4u
@catgocat CTRL + H
 
ctrl f
then click the arrow on the left of the search window
 
C4u
11:52 AM
@VictoriaS. CTRL + H is the direct way ^^.
 
rename the variable, then click the light bulb that appears and choose to rename all instances
 
oh.
learned a new shortcut then
 
C4u
^^
 
veronica's way works too
 
Assuming you are renaming a variable, it is the correct way
 
11:53 AM
@C4u thanks
@VeronicaDeane what is that
refactor menu?
 
C4u
@VeronicaDeane But yeah, as @VeronicaDeane said, it can also be done by renaming and going for CTRL + . -> Enter.
 
1 min ago, by Veronica Deane
rename the variable, then click the light bulb that appears and choose to rename all instances
 
C4u
I like staying on keyboard. Switching to mouse slows me down.
 
@VeronicaDeane that works great, thanks!
 
C4u
CTRL + . will also open that menu.
 
11:55 AM
I'm usually using a mouse anyway
 
C4u
If I need to use the mouse, the first step is to look if there is a shortcut for that^^.
 
I've got to switch between files to often
so I need a mouse a lot too :P
 
C4u
CTRL + Tab?
 
I want to get an integer from input
Is this the correct way?
    string input = Console.ReadLine();
    int limit = Int32.Parse(input);
 
11:57 AM
I don't care for type errors for now
 
Then yes.
 
@catgocat Yes you do.
 
never liked having to ctrl tab to get to my file
 
Seeing as it's as easy to care about it as not to, there's no reason not to care.
 
Ok
 
11:58 AM
use int.TryParse(input, out limit)
 
always tryparse, never parse
unless you're absolutely undefinitely certain it can't be anything but an int.
like with Id's or something.
 
and wrap that in a if() if you need to perform some action if the parse fails.
 

« first day (2081 days earlier)      last day (2869 days later) »