« first day (712 days earlier)      last day (3437 days later) » 

6:32 AM
Morning!
 
 
1 hour later…
7:37 AM
Morning.
 
7:57 AM
Morning
 
Back on the cryengine today
:[
 
What do you actually do?
 
Im a games programmer
(Hence my lack of knowledge of WPF)
Im not really a tools programmer, more of an Ad-Hoc one at the moment
 
I am your best friend. I have known you for years. I am an amazing programmer and you are going to get me a job.
Just repeat that to yourself a few times
 
Well, seriously. We need a tools programmer...
What's your experience?
Any MFC? :D
 
8:04 AM
No MFC, that's C++ with the Windows API, right?
Like, a wrapper around the windows API, IIRC
I've never done any real C++ though
 
Ah :( Shame!
MFC is written around the WindowsAPI and its horrible
But CryEngine uses it.
 
Of course
 
Luckily I convinced people we should be using WPF for our internal tools. Although I have had to write a C++/Interpop DLL
So my WPF application works off the back of that
 
I really should finish my course
 
So you did want to be a games programmer? Why not? :)
 
8:08 AM
I still do, I just lack motivation in my free time
 
Yeah happens
 
I got up to the part of the course where it had me doing simple SIMPLE debugging and wanted to kill myself
 
Well if I can do anything to help, just let me know you've done enough for me :)
What course?
 
The Train2Game games developer course
Here, you're in the industry. Are they any use?
 
Train2Game?
Load of shit lol
 
8:09 AM
YAY :D
 
If you came here and said Ive done the train2game
they would ask you, what he hell are you talking about, can you code games or not?
 
Well I probably should have known when they wanted me to install VS2005...
 
Show me your code, what have you "actually" done
 
Oh I would never say that
 
LOL SERIOUSLY
 
8:10 AM
I would have a portfolio
 
Yep
Portfolio and basically this is what code I have written. You know, things from scratch (no unity business).
Specialisation is good, full games are good
 
Are studios likely to hire programmers that may not know C++ amazingly well if they've got successful games?
Well, I guess not tbh
 
Depends on the studio really
 
You kind of need to know the language
 
Like here, the CryEngine uses C++ extensively
Although I consider myself about a 6/10 in terms of C++ programming.
 
8:12 AM
Is CryEngine OpenGL or DirectX?
Or does it do both?
 
I think the rendering engine does both
 
Right, CryEngine is a whole big thing isn't it
With physics, sound, graphics, etc. etc.
 
Its what made FarCry
Not sure how much of a gamer you are :D
 
Yeah, and Crysis
 
Yepo
 
8:13 AM
Company is Crytek
 
Thats them (not me)
 
I don't game loads but I remember things
 
We just use the engine
 
Do you have Skype?
 
Yep
pm me your skype
 
8:14 AM
Are you able to use that in work?
 
yes
 
There are no PMs :D
Tell me when you've got it
 
I have added you
 
Awesome
 
8:29 AM
Morning Moses
 
8:46 AM
hey sean
sup?
 
Not much, improving application logging. Fun times
You?
 
9:04 AM
headache.. debugging weird behavior to no end :/
 
Breakpoints. Breakpoints everywhere
 
should be simple, since another similar function works fine. but amazingly, this one is weird
Command and bindings can't be breakpointed lol
and that's the problem lies imo..
 
The methods on the commands can be breakpointed
 
it's just this :
EditDotIncreaseCommand = new RelayCommand(_ => Dot++, _ => IsSelected);
EditDotDecreaseCommand = new RelayCommand(_ => Dot--, _ => IsSelected);
nothing fancy
 
What's the problem?
 
9:13 AM
the command doesn't work via the keybinding.
but
 
Have you looked at the focus with snoop to make sure the correct control/element has focus?
 
Yes
other command at that focus works
so, that's on the focus
 
Define "works" does Dot get incremented and decremented?
 
EditDotIncreaseCommand = new RelayCommand(_ => Dot++, _ => IsSelected);
EditDotDecreaseCommand = new RelayCommand(_ => Dot--, _ => IsSelected);

EditOctaveIncreaseCommand = new RelayCommand(_ => Octave++, _ => IsSelected);
EditOctaveDecreaseCommand = new RelayCommand(_ => Octave--, _ => IsSelected);
so, the Octave works, but the Dot isn't
yes, it get incremented and decremented
 
What's your XAML?
 
9:17 AM
<UserControl x:Class="NumberedMusicalScoresWriter.V.NotationV"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:local="clr-namespace:NumberedMusicalScoresWriter.VM"
        xmlns:c="clr-namespace:NumberedMusicalScoresWriter.V">
    <UserControl.Resources>
So, actually, Octave and Dot are actually nearly identical
Octave works fine, but Dot isn't
        public List<DotMockup> RightDotSign
        {
            get
            {
                List<DotMockup> dots = new List<DotMockup>();

                for (int i = 0; i < Math.Abs(Dot); i++)
                {
                    dots.Add(new DotMockup(2, Brushes.Black, new Thickness(4, 0, 0, 0)));
                }

                return dots;
            }
        }
        public List<DotMockup> TopOctaveSign
        {
            get
            {
                List<DotMockup> dots = new List<DotMockup>();

                if (Octave > 0)
                {
                    for (int i = 0; i < Math.Abs(Octave); i++)
                    {
                        dots.Add(new DotMockup(3, Brushes.Black, new Thickness(0.5)));
                    }
                }

                return dots;
            }
        }
DotMockup is just a struct to virtualize a dot
 
I don't have a clue..
 
well lol
I am stupid
 
I don't understand how it can't be firing that key event
 
I somehow forgot to change W and Q back to it's "should-be" keybinding
well, somehow everytime I paste my code here, I mostly always find the problem
so, the problem is, W and Q should be OemPeriod and OemComma, and I tried pressing the Oem keys
@Maverik you can delete above code once you come here
The rubber duck debugging really works wonder
 
I am also a room owner btw, I won't move those messages
They're actually on-topic
 
9:30 AM
oh well alright then sean
Btw @Sean
Does flow document can be filled with user controls?
My apps, doesn't use text, it use usercontrols in wrap panel
does flow document can handle this automatically? (the paging thing, especially)
 
A wrap panel is different
 
so, is it anything fancy to automatically handle paging?
Say my apps is 720x1080
(each page)
i fill each page with wrap panel, which consists of usercontrols
 
OK...
 
if the usercontrol reached the bottom, is there any way to move it to the next page?
page is just a user control with grid
 
The wrap panel doesn't do paging
You will probably have to do something manually
It's a muscial score application, right?
 
9:39 AM
yes
 
So you'll have a set range depending on the instruments you choose
 
it's designed for tablet view, so literally there's no "page"
 
Like, you're probably not going to go more than a few octaves above and below a Middle C
 
it's just piano scores
 
Right then, that makes it dead easy
 
9:40 AM
@Sean that's not possible to limit
 
Of course it is
 
literally musician can do anything they want
 
Not if it's for a piano they can't
 
okay, now, elaborate "dead easy"
 
Pianos only have so many keys
 
9:41 AM
oh, the limit of the piano button right?
 
Just decide on how many staves you're going to allow on one page and split them up like that
 
can you play music?
 
I can play a bit of guitar. I did music GCSE at school
 
well immensely cool
 
Is staves even the right word? A staff is the collection of lines where you put your notes but I dunno if it only counts for one "line" of lines or the whole sheet
Anyway
 
9:43 AM
it's octaves
 
Decide how many octaves above and below you're going (shouldn't be too hard to find the range of a piano) and then decide how many of those you're going to allow on one page
Plural is staves =]
 
right, hmm
 
Anyway that doesn't matter
 
btw, it's numbered musical scores. I haven't make the staved one (I will after this, but not now)
 
Ohhhh
The principle is the same
 
9:47 AM
Yes
but
 
1 message moved to recycle bin
 
i think neither case I should consider the stave height
the problem is
 
Well. You know how tall one staff/stave is going to be
Go on
 
each user control is 1 bar (the section divided by 2 bars | 1 2 3 4 |)
 
Yep
 
9:48 AM
that's what I put inside wrappanel
so, the height is kinda irrelevant imo
after the page has been filled with, say, 10 sections, it automatically moved to the next page
but, actually, in tablet it's quite "easier"
since I don't need to actually make pages
it's just the view area which is scrolled
 
Then why do you need it for the PC?
Well....
 
well actually
PC is the only media to edit the scores
the tablet version is just the viewer
 
Right
I would say the only time you need to know about pages is when printing
 
well, I want it to be printable, if able btw
 
You're going to have to measure it
Basically
 
9:52 AM
if I have spare time before my presentation trial
at least I need to be able to measure each row of the wrappanel
 
I'm not sure how best to do this
You can't measure a row in a wrap panel]
 
well..
 
You can measure an individual user control though
 
i can measure the user control yes
 
And since they should all be the same height
That's not a problem
 
9:53 AM
not really
 
I have never needed to do paging
 
they can have different height
 
They shouldn't, or they will be out of line with each other
 
look at the image you deleted earlier
 
What I mean is that they should all the roughly the same height on one row
 
9:54 AM
4th row
hmmm no?
 
If they're not, it won't line up properly
 
i can just VerticalAlignment=Bottom right?
to make them aligned at the bottom
 
Then what happens when they want to play chords with different amounts of notes on the bottom instrument?
Or the left hand, for piano
 
that's why I said it's numbered musical notation, because, if it's staved, I agreed with you, it should have a same height
 
If in one bar they are playing chords with 2 notes and the next they are playing chords with 3 notes, if you align it to the bottom, a) the bottom notes won't be correctly aligned and b) the top instrument won't be aligned
 
9:59 AM
see the picture
it has jagged top
@Sean Understood, if it's the western musical scores.
 
That picture is lucky
It has similar numbers of notes
But if you align bottom on the entire user control and they are vastly different heights, you're going to have a bad time
And that is entirely possible
And I'm out of my depth
You're going to need to measure the controls and make sure each line/section/whatever for each instrument lines up with itself
 
can you draw what you meant? (please no imgur, my country blocked it)
oh
I know what you meant
 
I don't think there is going to be some magical alignment solution here
 
is it the F and G clef height what bothers you?
 
Uhhh. I think so. Do you mean the treble and bass cleffs?
It doesn't matter what they're called.
 
10:03 AM
RIGHT!!! Duh.. I didn't think about that... :/
Well
@Sean yes
 
But yeah, if they are different heights, it's going to throw everything out
 
I think I have a "space" row in the center of each usercontrol that can be adjusted
 
That will help
But you might need spacers on either side as well. I'm not very familiar with numbered notation
Does it always grow up from the bottom?
 
the problem is, how to get what sections in the same row as a particular section? (for row balancing purposes)
@Sean yes
@Sean that's not necessary.
 
OK, if it grows up from the bottom then VerticalAlignment="Bottom" will work for the bottom instrument
 
10:07 AM
@Sean yes.
 
So what I would do is measure the controls as they are added and keep a variable somewhere that will allow you to adjust the height of the spacer accordingly
 
Sup all
 
got it. I already have one
@AndréSilva sup
 
Hellooo.
 
So if you measure the height of each row for each bar added (a row being one instrument) and then store the highest value, you can work out the height the spacer needs to be
That would keep everything a consistent height across your entire page
And you would have the advantage of then being able to easily measure how many rows fit on a page because you know the height of the sections
Hey André, Denver
Anything past that, and I'm lost
I don't know how you would know if one user control had wrapped on to another line inside a wrap panel
 
10:10 AM
hmm... got it. I think it's easier that way. First, I am going to level the height in each row. (was)
 
How's it going guys?
 
btw @Sean isn't will look weird if it happen one section have exceptionally a lot of chords?
 
Yes, that's where it gets tricky
 
doesn't it will make all other "tiny" sections increased in size as well?
 
Yeah
 
10:13 AM
ugh.. well," there must be at least 1 flawed scenario" right?
haha
 
You should try to eliminate it
 
I just can't think of how to do it right now
 
@Sean yes, well. I will think about that later (if I have spare time before the presentation time)
later guys, got to go now. i'll back in a couple hours later
 
In .NET land, we can copy a file using a Stream and the CopyTo() method. This doesn't however, provide any way to get an update on progress (so I can tell). We used to have to write the method ourselves, passing in chunks of data in a loop. In this manner though, we could report a progress (% complete)
Is there any way of getting a progress using Stream.CopyTo()?
 
10:25 AM
No
 
Good answer! :) Thanks :)
 
Apparently you can use CopyFileEx though
23
Q: Can I show file copy progress using FileInfo.CopyTo() in .NET?

Jason DownI've created a copy utility in c# (.NET 2.0 Framework) that copies files, directories and recursive sub directories etc. The program has a GUI that shows the current file being copied, the current file number (sequence), the total number of files to be copied and the percentage completed for the ...

Do people not google or am I just better at it than everyone else?
I seriously doubt it's the latter
 
10:38 AM
@Sean 3rd option : they feel you are reliable. so, literally, people think you are better than google. isn't that a good thing? ;)
 
Not really
Sure it's a nice "people know I can find things" but past that it's laziness and/or inability to think
 
well, you can make sean.com or seanoverflow.com to ease your work.... right?
 
Hahahaha
I don't think so
 
:P
oh, and, is there any tips on how to time for ActualHeight to returns a correct value?
there's a saying that, "if you get the value quickly, than the control loads, then you'll get a false value"
oh well, right, google.com
:X
 
Hahaha
Sorry. I wasn't ignoring you. You'll want it after it's been drawn.. I'm not sure when that is
 
10:48 AM
hey, about the profiling included in vs2013, how does that work?
I get the PRF0025: No data was collected.
 
I dunno. I've used it maybe once and it worked for me
 
@Sean ah no, it's typed directly, not after I waited for your answer... haha
 
11:08 AM
I shouted so loud at a biker today that my throat is hurting a lot
 
Morning.
 
Morns
 
11:23 AM
@AndréSilva aww baby girl! Morns!
and Morning Mr. Bill (Compton)
 
o.O
Sukkah
 
xD
 
11:40 AM
very little discussions about windows 10 here....
what do you think about it?
 
It's a stupid name.
That's everything I know about it atm. I think I'll get to a podcast that talks about it this afternoon.
 
To me it seems like it should have been named 8.1.1 or 8.2 at the most. At least from the stuff they have shown. I can't help but wounder what features they had when it was called windows 9
Let's hope there's a lot under the hood that they haven't presented yet
 
@Billdr Sukkah as cyka ? ._.
 
Did the charms bar go away? That thing never comes up when I want it, and is always there when I don't.
No. It's a joke about a tv show.
 
Oh ok
Because cyka means bitch in russian
 
11:53 AM
It's probably supposed to be spelled "Sookah"
 
12:07 PM
@Markus There will be. Windows usually brings stability/performance upgrades in every release
 
always thought it was Sookie ?
As for Windows 10 - i was waiting for 9 .. when did they ditch that?
also we already have 8.1.1 - 8.2 implies smaller changes than they've probably made
 
And probably some kind of more unified API by the way they keep pushing this "runs on any device, build universal apps"
 
may be in 9 or 10 they've finally merged Modern Apps back into desktop mode
 
They have
 
considering they've already made way towards that in 8.1.1
 
12:09 PM
You can now window modern apps instead of that screen-slider thingy
 
umm
but that's already here in 8.1.1
but you can still tell you're not in native windows - i want to see it seemless
 
Is it?
 
my store opens in a window?
 
How would I snap out, for example the mail app, and move it around
uwotm8
 
oh ok i see what you mean by window mode
its a fullscreen window right now
 
12:10 PM
Actual windows
Yeah =]
 
it is an actual windows :) it just doesn't have resize
 
good morning, wpfers
 
morning peter (pan)
 
Oh is it still a windows window? I dunno. I'm not that into how windows works yet
 
yea i think so
 
12:11 PM
Gotcha
 
so they're basically hosting Modern App in a Window host
that makes it ugly integration
it has to be seemless
like.. you know the VS setups - its modern, yet part of desktop
 
Oh you mean borderless?
 
xaml is supposed to be able to scale .. especially in RT world.. i see no reason why they can host it in a window but not scale
doesn't have to be borderless.. just don't give us ugly black border
its especially ugly when you're running on themed desktop
 
It's not great
But it's an improvement
 
yea
 
12:13 PM
OOOOOOOH
I have an actual semi-non-boring thing to do
 
so i hope the merge it back to full desktop experience
 
@Maverik It is, but that's not the word Bill Compton says.
 
i really like winrt at api level
@Billdr considering bill shags her every night, i'm sure there are plenty of things he calls her that we dont :P
 
Mav, you're just pissing all over us now
"I've looked at how windows works in ALL its different forms. Haven't YOU?!"
 
mmm...
 
12:15 PM
@Maverik Like "Gap tooth" or "Orthodontist Wet Dream."
Oh, right... English. Orthodontists are people who realign teeth to make them appealing/alleviate jaw pain later in life.
ZING!
 
So.... Orthodontists, yeah?
 
holy cow!
 
That is amazing.
 
1 message moved to recycle bin
It's minging.
So off it goes
 
Part human, part xenomorph.
 
12:16 PM
1 message moved to recycle bin
 
Oh crud I missed that one earlier
Haha. LET THE MESSAGE MOVING WARS BEGIN
 
i was going to move both together, but you jumped the gun
 
I always jump the gun
It keeps things alive in the bedroom
 
i think its guns fault though - they're so small you don't even see them
 
"That was my eye!! You didn't give me enough time to move!"
 
12:18 PM
you had the apple in your eye?
 
My gun is very visible thank you very much
 
to you may be!
 
I think Mav's asking for dick pics.
 
Mav doesn't ask for dick pics
He just picks the dick he wants to play with and dives right in
 
He demands them?
 
12:26 PM
PICKS THE DICK!!! Did you see what I did there? Huh? HUH?
 
ow.
 
I'm sorry
 
12:40 PM
"That awkward moment at the feminist picnic when they realize no one made any sandwiches." ~Tosh. Am I a terrible person for cracking up at that?
I think I am.
 
I think it's a joke and should be laughed at :D
 
Feminists don't have a sense of humor, and therefore no jokes may be made about the topic.
 
Indeed
 
12:57 PM
okay... so I have these huge datasets. I want to be able to enable users to undo changes they made. Should every change to the dataset be stored in the database as a transaction with a copy of the old data? Is there a better way to do this?
 
If you need auditing/history/rollback, it needs to be stored somewhere. I'm not aware of a better way of doing it other than storing the changes in the DB
 

« first day (712 days earlier)      last day (3437 days later) »