« first day (1070 days earlier)      last day (3079 days later) » 

5:22 AM
is it a necessity to learn core wpf these days.
 
5:55 AM
Hi
 
 
5 hours later…
11:10 AM
Morning
@MelvinS nearly so. WPF by itself may not be the future, but Xaml + C# combo certainly isn't going away anytime soon (as proven by newer Windows Store Apps)
 
11:24 AM
'morning
 
12:10 PM
Morning sir
I'm doing something stupid that I can't see
Expression<Func<Snapshot, bool>> predicate;
context.Snapshots.Where(predicate) <-- it says I can't do that
insists that I use <Snapshot, int, bool> version -- and even then it doesn't work
nvm.. i figured it out .. it was looking at Model version of Snapshot and context is from the Data version of Snapshot :)
 
user4433485
oO
 
Model version = the stuff being exposed to client -- Data version = backend details that aren't exposed but are needed for system :)
yes it can cause confusion sometimes when i'm half asleep :D
 
[reading]
 
Why use Expression<> ?
 
user4433485
I've got a better chance to learn japanese instead of C# lol rly
 
12:22 PM
Nah, basic c# is pretty simple.
Generics are part of that, but there are simpler generics to learn.
Like List<T>
 
@NovitchiS Queryable.Where() takes an expression
Enumerable.Where() takes a func
if i use a Func, i'll pull query to client side
 
Because of that bug?
 
no that's how the overloads are
 
Expression = parsed by linq provider and then translated to whatever
Func = do whatever is asked in delegate
 
12:29 PM
@Maverik Got it, never had the chance to play with queryables.
 
Expressions are really powerful but i barely understand them
 
@Maverik That... actually makes a ton of sense. How could EF possibly hope to turn a Func into sql.
 
Expressions are i think basic building block of roslyn
it parses strings into expressions and then it knows what's an operator and what's being operated on by what
thus the Expression Tree
I get the feeling i've found another bug
An item with the same key has already been added. <-- that sounds like the same bug i hit two days back in order by
(i actually have an order by in query right now)
4
A: Entity Framework Filter "Expression<Func<T, bool>>"

Tim S.It's useful to understand the difference between Expression<Func<>> and Func<>. An Expression e => e.ID < 500 stores the info about that expression: that there's a T e, that you're accessing the property ID, calling the < operator with the int value 500. When EF looks at that, it might turn it i...

^ that answer explains it better
 
@Maverik Did you look at the generated sql yet?
 
I can't - it never gets that far
but it's definitely EF7 bug
 
12:41 PM
:(
 
because the exact query works in EF6
another workaround query.. it actually achieves what I was trying to do all along.. improve query response time
gone from 0.4 to 0.08 ms
sorry that wasn't ms - that was in seconds
production is actually clocking at 0.9 seconds right now
 
Hi to all, I have problem with code first?
Is anybody here?
 
12:59 PM
@OmidNasri I am here, but sadly I don't know the answer to that question. Only you do.
 
I have an answer to every question: if you know know the magic key to find it from my dictionary!
Also: please don't ask to ask
just shoot your question.. if somebody can answer.. when they can answer, they will
we all have our jobs to take care of
 
The best way to manage project with code first, i'm new to wpf mvvm!
 
code first has nothing to do with wpf or mvvm
find Entity Framework Tutorial in our star bar (you'll need to use Show All)
follow it along
it should cover all the normal things you'd need to get up and running
 
wait
I can't type good english
but I can read
i create new project with WPF MVVM, now i want manage CURD in Other solution
Sample: Repository pattern!
 
Yes, Follow the tutorial from star bar -->
Entity Framework Tutorial - Search for it in Starbar
press Show All --->
 
1:06 PM
i can work with code first, but i want found best way to work
code first in mvvm
 
...
Code First = Database
MVVM = Model View ViewModel for WPF
they have nothing in common
Create your database however you like, then make calls to create Model from your ViewModel
 
ok I guess I'm not equipped to help you
I'm sorry
 
so sorry
wait
 
There is the code first approach in MVVM
 
1:11 PM
i problem with don't best solution curd
 
it means you work with VMs and the Views are resolved for each VM dynamically
 
This is problem for me that can't write english
 
It's ok Omid, I can't speak arabic at all - at least you can speak english enough for us to understand most of the time
@NovitchiS you wanna take over then? I've no idea how to answer then
still he's talking about CRUD .. so wouldn't that imply Entity Framework stuff?
 
@Maverik it can be :)
@Maverik you could be right, i guess in MVVM it is called View first and ViewModel first.
 
1:31 PM
Ok, ask again! Best way to manage CURD in project with pattern?
?
 
sorry but i have no answer
 
Why?
 
because i'm learning too?
 
What's your method?
if you want answer
 
I just create them from VM
VM -> SaveToDatabaseCommand -> call database and save entities
VM -> LoadDataCommand -> call database, load entities into view model
 
1:39 PM
ok, I want use repository pattern! What is your opinion؟
 
MVVM
 
@NETscape ???
 
Sorry I dont use Repository Pattern
mixing all patterns in a small application is not going to benefit you
and if you're in a big team, your analyst should be doing this stuff
 
@Maverik Thx you for answer
 
no problem
 
1:47 PM
I can't write en, but I can read, I love en and write an
 
:)
practice.. that's all it takes
 
yes, practice.
 
2:10 PM
Any chess players around here ?
 
<-- MMO Player
 
user4433485
<-- mmorpg player
 
user4433485
@Maverik World of Warcraft? :p
 
ages ago
 
@Maverik i read that as MMA player :)
 
2:11 PM
i've jumped several MMOs since
most recent were Warframe
and right now I'm in skyforge
what's an MMA Player?
 
user4433485
MMA => Martial Mixed Art
 
user4433485
Salut @franssu
 
salut
@NovitchiS I can play chess but I'm very bad
why ?
 
Aaa nah i must rest my hands :P
 
@NovitchiS i used to frequently play, but that was years ago
haven't played a serious game of chess in awhile.
 
2:17 PM
my brother was 2200+
FIDE
 
I'm just frustrated that it take too much time to master the game, and don't know how ppl have time for this
 
he had to stop
 
why ? 2200 it's Candidate Master isn't it ?
 
for his studies
he has beaten a grandmaster :p
regularly
(not in a blitz)
 
great master :) you mean grand master, i'm getting owned by a few 2200 CMs at our gatherings and it's pissing me off...
 
user4433485
2:21 PM
I never understood chess
 
don't try Go then :p
 
lol @NovitchiS patience!
same thing would probably happen to me
 
i don't have fide rating, never played in tournaments, but i love the game :)
 
i used to play on (MSN) Zone game back in the day.
 
it takes time, my brother was playing (studying) maybe 15 hours a week (EACH week)
 
user4433485
2:24 PM
o.O
 
for maybe 3 or 4 years
 
what was his course of study? math?
 
user4433485
he could have been multi rank 1 on wow as well
 
he has a PHD in applied physics
 
ahh, what's he do now?
hadron collider?!
 
2:26 PM
he graduated from a french "grande ecole", maybe the third in france
which means top 400 student in france Oo
ITER :p
he runs plasma simulations on japanese supercomputer
 
to learn more about plasma?
 
to manage to keep the plasma inside the magnetic shell inside the reactor
so it doesnt touch the structure
which makes the whole building shake when it happen :)
 
ahh, does it change over time or something?
 
the plasma ?
 
very sci fi..
gets his popcorn
 
2:31 PM
@Maverik if you've seen spiderman 2
it's how the vilain dies if I remember
 
user4433485
@Maverik This. not even sure what I'm reading
 
nah not a fan
 
@franssu do you have a link of how they reactors work, or look. maybe like a diagram?
 
its plasma hits the structure
 
well i know what he's talking about
but still .. :)
netscape i doubt anybody can give you that
its classified stuff
 
it's like a donut
 
but i'm sure you can find generic wikipedia stuff
 
because donut shape don't make cob
generic name is tokamak
 
exactly what i was looking for... and so he is preventing the vessel from touching the coils eh?
or is it the donut from touching the inner coils
 
there's no vessel
there's very hot plasma
magnetically confined inside the shell
 
2:38 PM
i think the image in the wiki defines the shell as the vessel
 
oh maybe...
anyways, after a short time, a very tiny disturbance appears..
and soon it's complete chaos
 
i can imagine
so the simulation is trying to predict when the disturbances will appear and how to counteract, so to speak
 
yep
he says they might never make it :(
 
2:54 PM
so their a "startup" ?
they're*
 
it costs around 16 billion euros ;)
a little too much for a startup
ITER (International Thermonuclear Experimental Reactor and Latin for "the way") is an international nuclear fusion research and engineering megaproject, which is currently building the world's largest experimental tokamak nuclear fusion reactor adjacent to the Cadarache facility in the south of France. The ITER project aims to make the long-awaited transition from experimental studies of plasma physics to full-scale electricity-producing fusion power plants. The project is funded and run by seven member entities — the European Union, India, Japan, China, Russia, South Korea and the United States...
 
3:28 PM
Has anybody worked with ConcurrencyToken feature of EntityFramework?
 
4:11 PM
@franssu so is plasma just not where its at they're thinking?
keep it going, still only the 10th of the cost of US's new fighter jet lol
 
the plasma takes the whole space, I think it's rotating, the electromagnetic force keep it rotating inside
but then some disturbance appears and grows bigger and bigger
until the electromagnetic force is not strong enough to deflect it
 
@franssu yeah, i mean why won't they make it?
 
ah
I meant they might never find a solution
 
ohh i gotcha
 
that's just a very specific problem but there's a thousand more
 
4:20 PM
right. well i commend him for his work!
 
@franssu Reminds me of a scene from Spiderman 2...
 
yes :)
 
Guess they got that movie pretty close to the truth about fusion :)
 
@Maverik <- under this message
sorry maverik :p
can't reply to own message
 
Ah, I see.
 
4:27 PM
it's also problem of public opinion (against anything nuclear), and the lack of money because of the crisis
 
The US is so disconnected from anything over there. We have the pope, though. For now :)
@franssu Is the mass-migration impacting France yet?
 
man, i wish all those problems went away in syria and surrounding/impacted countries
 
Sadly, public opinion is that the US shouldn't get involved.
At least, not in an active campaign.
 
i'd agree with that.
 
But even if we do, out typical strategy is to clean house .. then leave...
 
4:32 PM
though something needs to be done about Syria
 
which just leaves the country with a power vacuum so that other factions can come in and set up shop.
 
it's a very tough question
and not only in Syria
 
@franssu I was just wondering if you are actually seeing/meeting incoming migrants.
 
nope
 
it's just hard to imagine living in a dictatorship-esque state
 
4:38 PM
Indeed.
We have a vietnamese intern. It's interesting to listen to those stories...
 
o_O
that'd be fun
 
huh...
 
(very funny, ... and sad)
allright, going to play soccer, hope I don't die
 
Good luck :)
 
4:44 PM
bye!
 
ciao!
 
morning :)
 
5:23 PM
hiya
(watha)
 
 
4 hours later…
9:46 PM
wow, slow day
 
was busy during euro day
 
ironically enough, on the first day in a while I actually did some WPF
 
:D
yeah, I haven't done any recently either
today, so far, has all been C and C++, dealing with some horrid debugging of recursive executions being triggerred in crazy legacy code
 
10:01 PM
What % of the time do you write code?
 
75%, on a good day
on the worst, hardly any time at all
 
I'm somewhere ~140% on average
 
 
1 hour later…
11:15 PM
haha
I'm typically in the 40-50% range on a good day
 

« first day (1070 days earlier)      last day (3079 days later) »