« first day (710 days earlier)      last day (3439 days later) » 
07:00 - 16:0016:00 - 00:00

7:55 AM
Morning all =]
 
8:06 AM
Hey!
 
Hey Denver, how's it going?
 
All cool and fine. :)
A bit cold tho.
Outside.
 
Yeah, it's getting a bit colder now
 
How about you?
 
Yeah I'm good thanks =]
 
8:25 AM
How to move DataGrid header to left?
 
Try one of the alignment properties?
 
It will move only the text inside headers.
And I want to move all headers line from top of the grid to the ride side.
 
I'm not sure I know what you mean... Can you draw a quick-n-dirty mock-up in paint or something?
 
Well, I can. But I think it is hard to do what I want. Like it would require creating own DataGrid.
 
Even if that's the case, a sketch would go a long way to helping someone help you
 
8:35 AM
 
I totally know what you mean now.... There are a few examples away
 
That's a classic problem with WPF
DataGrid rotation
 
And the master returns!
 
it's not as easy as it seems
Hey Sean
 
Hey Sisyphe, how's it going?
 
8:42 AM
pretty bad actually :D Totally sick
how about you ?
 
Oh no! Hahaha it seems to be that time of year. I'm still getting over this cold/fresher's flu
 
yeah
fuckin season
 
But my immune system is pretty beast, it didn't hit me that hard to be honest
 
Yeah, I know it is not simple. Using layout rotations causes a lot of problems with scrollbards and headers/cells orientation.
 
@Denver : you don't need to create your own dataGrid, but you can play with the dataTemplate
exactly
If i remember correctly (it was a pretty long time ago) it also causes issues with resizing, virtualization and a few other things
@Sean you're a god
 
8:45 AM
I have bought like 5 cartons of pure orange juice
EAT VITAMIN C, PATHOGENS!!!
 
all in all, the DataGrid is not a very good control when you want to use it in other scenarios thant the very basic ones.
not polished at all
I think it was not even a part of the original framework, it's been developped by other folks and included in the framework afterward
Sean: I should totally do that
but it's a bit too late I'm dying here
 
It's never too late to stick it to the nasties
 
^^
 
I see, Sisyphe, thanks for explanation.
 
you're welcome
@Sean : is Maverick not around anymore or what ? :(
 
8:52 AM
He usually doesn't get in until after 10
And he has contracted some form of deadly disease too
 
yay for us !
\o/
all the best are sick
 
Hahaha
 
9:54 AM
help me plzz :(
0
Q: Why run chart increasingly slow

hoainam1902First time I insert 100 point to chart, and it take about 25000 miliseconds to done load all point, But,next time the point from 101 to 200 take 71000 milisecons. I do not know why diffirent of time taked between 0 to 100 and 101 to 200. To slow for the next 100 point, please help me know the pr...

 
10:04 AM
looks like a quadratic issue
(even if the numbers doesnt look like so)
25k ms is the time to update the datastructure or the overall time (with display etc...)
 
Was just going to say that time could be rendering time
 
first thing to do would be to run a profiler to know what exactly is happening
but there I can already see some issues with the code
chart1.Series[0] <= acces to array done 3 times while it could be done once
call to the method Next ("rd.Next(40, 50)") which I dont know the complexity of is done 3 times too
Don't know the kind of dataStructure "Points.Add"
but it could cost more to add objects to it based on its size
depends on the datastructure
fianlly
if the rendering time is the issue
it could be recalculating/redrawing everything with each add
while it would be better to only redraw/reprocess once the datastructure is fully updated
that's pure conjuectures however as I don't know that framework (niether the classes nor the data structures used)
 
10:20 AM
Morning guys
 
Hey Mav :)
 
Hey :) you changed avatar!
 
yeap 2 weeks ago :)
^^
 
10:45 AM
:) nice i couldn't tell from the small version
 
11:07 AM
5 messages moved to recycle bin
 
Hahahaha, welcome back Mav xD
 
thanks
NDatabase looks cool.. thanks @JohanLarsson
 
11:31 AM
Hi, Mav.
 
Hi!
 
11:47 AM
3 messages moved to recycle bin
 
Oh it is on.
Good morning Andre
NO FLICK ON YOUR E TODAY
THAT'S WHAT YOU GET
 
:D Morning
 
Morning
 
How's it going?
 
that avatar of "Token Coding Newbie" looks so wrong >.<
I've really tried to think of a good thing.. but just can't!
 
11:58 AM
I think it's a pussy (cat)
 
yea may be
but if you have to tell people, its not right
 
morning folks
 
Elmorningo!
 
Morning me hearty!
 
Hello all
 
12:05 PM
Hey =]
How's it going?
 
its going grt
but stuck with a problem in intergating Facebook in Windows phone
I have managed to login with FB
getting access token and all
But i am not abel to close my session
I have used LoginButton from Facebook C# SDK
anybody got something..
 
I'm sorry I haven't worked with the Facebook SDK
 
ohh,
 
I'm popping out for lunch, back in an hour or so
 
12:46 PM
I did too good of a job forgetting about work this weekend.
 
1:04 PM
new playlist happening for everyone who functions better with music: play.google.com/music/playlist/…
Lots of 90s alternative in this one.
 
I'm still working with seans mention from thursday :(
 
Anyone has any idea how to deal with unbuffered IO ?
 
1:21 PM
Unsafe code needs admin permission when using external files ?
 
1:33 PM
:(
 
That sounds like a reasonable restriction to me.
 
@Maverik Sad face cos bad or sad face cos can't stop listening?
 
Still nothing
 
oh sad face cos i can't get to next playlist quick enough
liking yours :)
 
Awesome! :D
 
1:36 PM
Link me
Mine was like an hour long, and it's about over.
stupid soft, forgettable H's.
 
Is this the one Mav? youtube.com/watch?v=xz8kXrNB3Sk
 
yea that one
 
will listen shortly.
Oh shit, dentist!
 
2:03 PM
so i umm tried the alternative one - nah that's hard to code with for me :( sowwy
 
heyoo
 
Listen to what I saaay-oh
 
For f*cking sake, visual studio 2013 color theme is all f*cked up
 
slack @Sean
 
Yes, I am
@AndréSilva What do you mean? Use the dark one
 
2:07 PM
I am using
 
Eww, no. WTF
 
I have no idea
All of the sudden it stuck like that
 
Do something. Rid yourself of that abomination
 
Oh, r#
 
That's not R#....
R# is lovely
 
2:11 PM
12
Q: ReSharper color identifiers screw up with Visual Studio 2012 dark theme

AlbireoWe're experiencing an annoying problem issues with ReSharper's color identifiers feature when Visual Studio 2012 is set to the built-in dark theme. With ReSharper's color identifiers disabled, the code looks fine: Then, we enable ReSharper's color identifiers: And now the code is completly...

 
Try those, see if they work then
R# works lovely in my VS2013
 
It was lovely
Now it is a bit weird
 
Fix it. Fix, fix it. Fix it like a professional fixer
That totally goes to the tune of Hey Ya
 
Yeah I fixed
 
Awesome :D
 
2:14 PM
ReSharper -> Options -> Code Inspection -> Settings -> Uncheck then Check "Color Identifiers"
Yeah it fixed part of it õ.o
It looks like my consts are f*cked up
 
Deeper into the rabbit hole you go!
 
5 seconds to create e 430mb text file with not-so-random texts.. that seems a bit bad
 
That's 80-odd MB/s write speed
That's not slow
 
I think I can make it faster working with bytes instead of strings
 
Potentially. Although it's still the same amount of data being written to disk
The only thing that would be faster is the lack of conversion
But that has to happen somewhere
 
2:20 PM
I think the buffering that the OS does makes it slow down a bit
But since that is too complicated for me, I gave up
Is it possible to start reading a file from a specific place, before opening...
 
andre [bob] the builder can he fix it? andre [bob] the builder, yes he can!
 
u.u
I think I got a 2 second vantage from writing 3gb file
using (FileStream fs = File.Open(fileName, FileMode.Open))
using (var bs = new BufferedStream(fs))
using (var sr = new StreamReader(bs))
~55 second / 3gb
using (FileStream fs = File.Open(fileName, FileMode.Open))
using (var sr = new StreamReader(fs))
~53 second / 3gb
 
@AndréSilva why you go from buffered to reader?
 
I thought it would give me performance to buffer the stream ;p
 
ew lol
how are you reading it?
sr.ReadAllLines or something?
 
2:28 PM
            using (FileStream fs = File.Open(fileName, FileMode.Open))
            using (var bs = new BufferedStream(fs))
            using (var sr = new StreamReader(bs))
            {
                string s;
                while ((s = sr.ReadLine()) != null)
                {
                    lString.Add(s += text1);

                    if (++l < 10000000) continue;

                    File.AppendAllLines(fileName2, lString);
                    lString.Clear();
                    l = 0;
 
56MB/s seems decent
 
Yeah, but I'll work with 15gb files
 
EWW!
string s;
 
I know, I know, I'm just testing the IO
 
well that's going to slow it down
 
2:29 PM
Alternatives? ._.
 
Oh read, I thought you were writing
Just use Stream.Read
 
File.AppendAllLines...
 
to test reading just do sr.ReadToEnd()
why read a file just to write it?
 
Reading from one to another
 
not sure how that would work with RAM usage though given you're using 15GB files
@AndréSilva definitely use StringBuilder instead of string in this case if you're going to do it that way
 
2:32 PM
I'm writing possible cases
 
are these documents you're reading?
 
What someone, someday, will have to work with is the following
They will read a HUGE text file, and do some hierarchy
Then, insert into SQL
 
a 15GB text file doesn't even seem reasonable anyways haha
 
Well, when you work with fiscal files, it is normal
 
fair point, but it seems like there has got to be better ways to generate the files in the first place
 
2:35 PM
We don't generate those files
That comes from the government
 
i.e. generate reports/file per day rather than per month
right, so consult to the govt. haha
 
Yep
The file comes to our hands in lots of CDs
 
ewww haha
might as well be floppy disks
 
lol u sed flopi
 
So.. should I stick to what I'm doing ?
 
2:39 PM
well depends
are you just copying files?
 
No, I need to read a file, alter its content and write a new one
 
is it all ASCII?
how do you know when you need to add content?
do you have to read a line, then split the line up and look for certain strings @AndréSilva?
 
Well, I'm encoding as UTF8
In the future yes
But for now I'm just reading the line and concatenate with another string and save
 
what is text1?
 
const string text1 = "123\r\n";
const string text2 = "ABC\r\n";
 
2:44 PM
ahh
maybe try to use StringBuilder
and build your entire string first, then after reading, write the stringbuilder to the file
 
Hm, but how will I append ?
while ((sr.ReadLine()) != null)
 
posted on September 29, 2014 by ericlippert

Last time I gave you the challenge to find a case where the same simple name means two different things, without introducing a new local/parameter/range variable into scope, that produces an error. It seems like it ought to be impossible; … Continue reading →

 
Going to lunch, TTYL
 
3:00 PM
Can I save an object's MusicProperties in an app's Application Settings?
 
@AndréSilva pretty sure you can use += with StringBuilder
not sure about WP, but I would think you can
 
Has anybody used anything like AvalonDock?
 
@DemCodeLines If you can serialise the class, yes
 
@Maverik Didn't like my 90s alternative mix?
 
im back!
 
3:05 PM
AND THE CAT CAME BACK, THE VERY NEXT DAY
I'm full of random lyrics today
Hey Moses =]
 
is that a miss lippy...
oh nevermind
"NSFW" at the end, F bomb is dropped
 
Hahaha
I love Adam Sandler
Is that Happy Gilmore?
 
billy madison
 
@Sean hi sean, I just got back from a business trip haha
 
Ooooh, fun times
What was the trip for
 
3:11 PM
Marketing thing.
How's day?
 
Alright thanks, and yours?
 
Good. Exhausting.. The after effect of the trip. Need to go to 2 city, get up at 4am each, and drive for about 5-6 hours. Thank God I was able to tag team driving with my dad, otherwise it'll be much more exhausting
 
5-6 hours of driving... yuck
 
Yeah screw that
 
I am able to drive for 8 hours straight, the problem was getting up at 4am that gave me less sleeping time.
Btw I got a question on this matter : stackoverflow.com/questions/26064128/… (that's my question)
Quite confused about the first answer. Isn't ObservableCollection should have been added CollectionChanged event by default?
Why need to add it again?
Am I missing something here?
 
3:24 PM
WPF will wire that up automagically to give you notifications to the view but if you want to be notified of changes so you can do something, you need to handle it yourself too
The guy in the comment that said about ICollectionView is probably right here though
I had forgotten they existed
 
I mean, isn't the whole point of using ObservableCollection is to be notified of changes?
 
Yes, it is
 
I prefer the ICollectionView-less answer, it's more understandable. haha
 
30
Q: Should I bind to ICollectionView or ObservableCollection

Cartesius00Should one bind DataGrid to the ICollectionView = CollectionViewSource.GetDefaultView(collection) or to the ObservableCollection<T> collection; ??? What is the best practice for MVVM and why?

 
@Sean If so, why should he doing _notationVMs.CollectionChanged += OnNotationVMsCollectionChanged; again?
 
3:26 PM
ICollectionView also implements INotifyCollectionChanged which is what is giving you the view notifications in ObservableCollection
@MosesAprico Because every time the setter is used, you overwrite the collection and you should unsubscribe any events
Otherwise that method may be called twice and your view would be trying to update and bind more often than needed and possibly to a non-existent collection
As it could have been garbage-collected
 
the problem is, without the _notationVMs.CollectionChanged += OnNotationVMsCollectionChanged;, it didn't work at all. I think, judging from your sentence, without the mentioned sentence, my collection will work fine as well. This 1 sentence changed it all. (this statement, I think, is prone to dumb status haha)
 
No, it won't work at all because you'll be subscribed to an event on a collection that no longer exists
But unless you want to make it read-only, you need that line
Goddamnit, I meant to say "unsubscribe and re-subscribe"
So, you have NotationVMs and you decide to replace that collection entirely in code like so NotationVMs = someNewCollectionFromSomewhereElse;
 
RIGHT. Just got it. Thanks sean
 
No problem =]
 
3:46 PM
@Sean Oh, I missed 1 thing sean. In the ICollectionView, it is impossible to sort descending based only on collection index (a.k.a Reverse) without any sort of ID right?
(Unless I save the collection index in each item ofc)
 
Uhhhhh
Yes, probably
 
Is anyone a PROFESSIONAL at MMVM?
 
If anyone is hired exclusively to work as an "MVVM Programmer", them and their company is an idiot
 
Why?
 
i get paid to write code, and my app is written following MVVM pattern. what do you need?
 
3:54 PM
Because who would hire someone for knowledge in one design pattern?
NETscape summed up what I was trying to say very nicely
 
Well, ive already written a bunch of my app, but I am beginning to wonder if I could have followed a more MMVM Pattern
For example, you would design your forms, and bind them to your data
But what if your forms were designed by incoming data?
I have schemas which define the way forms should appear
I couldn't figure out a way for this to adhere to MMVM
e.g. a schema "structure" may have a list of fields, one being a boolean (tick box), one being a string (textbox). But I need to generate this data on the fly and bind it.
But for that to work, I have to program the way the forms generated and set the binding myself in code
i.e. I cant just have an observablecollection of "structures" which contain an observable collection of "fields" that all bind in different ways. Can I?
 
Well yes, you probably could
 
07:00 - 16:0016:00 - 00:00

« first day (710 days earlier)      last day (3439 days later) »