« first day (703 days earlier)      last day (3446 days later) » 

8:16 AM
My WPF window loads and appears blank till i move it. Anybody ever had this? its like WM_PAINT isn't being called
 
9:13 AM
I haven't, sorry
 
 
1 hour later…
10:25 AM
Morning
 
Morning
 
Morning.
Ow, afternoon.
Can I change the size of chat textbox?
 
No. It's really annoying
Well, you can in Chrome
But it's useless because the grey bar it's in doesn't resize or scroll
 
I can change the size of textbox, but...
Yeah, grey bar does not resize.
 
Hahaha, I like that one Mav :D
 
you could modify #input-area via inspect element and fix the height?
 
You could, that's a PITA every time you load chrome though
 
well that goes for the drag resize too
disappears
 
It's me! I'm here!
 
11:02 AM
NEVER FEAR, FOR BILLDR IS HERE!!!!
 
listens to his fanfare
 
hai
 
do do-do-doooooo
 
Haunting. Truly a performance that will stay with me for a lifetime.
This is your daily reminder to give me money to give to sick children. Won't someone please think of them? extra-life.org/…
 
It's so cringey it's amazing
 
11:09 AM
O i noticed i linked page 2 of collegehumor post
should check 2nd post on page 1 xD
 
It's OK, I removed the /page:2 thing and read through then re-posted
JJ appreciated it
Rudi has yet to see it
 
I'm nonplussed by the stupidity of humanity. I've done input validation, after all.
No you twit, "Friday" is not a valid date.
 
xD
 
Hahahaha
 
Whats the date today? Emma!
 
11:12 AM
Twit, what a great word
 
provided you're gonna need a little broken english to go that far :)
 
I'm pretty sure they just drool on the keyboard to provide data.
 
xD
 
11:26 AM
Have any of you had code review done on your applications by a security firm?
 
Nope
 
I'm going to perform one in a few months. Problem is I have no idea what this type of audit looks like.
I guess I'll shape the deliverable, but like... are there automated tools for this sort of thing? Do I just read the source for obvious screw ups and poke all exposed interfaces with a sharp stick?
 
I've no idea, sorry
Poking it with a sharp stick sounds good
 
I want to get one of those 'black boxes' that norton has.
Where they asplode the code a few thousand different ways and it magically gives you a writeup on how it works. At least, that's how the one article I saw written on it said it works.
 
That does sound awesome
 
12:09 PM
Wow, came back from Spain and now, with all the shit going between russian and europian+american goverments, it seems that visiting Europe countries will be forbidden for me.
This shit really sucks.
I am used to go to Finland to buy some tasty fresh fish (150 km from my city to border with Finland), won't I be able to do even that?
Stop the World - I want to get off. :\
 
I don't have a good solution for you. It looks like Russia is bent on a war no one else is interested in.
As an American, this is a topic I know something about.
 
this is probably the only war i'll support americans on if they choose to bombard russia into senses! (sorry denver!)
 
You can stay and protest, while still suffering the ire of your contemporaries in the global community. You can defect/gain another citizenship and ride the storm out somewhere else, or you can fall pray to nationalism and tout the party line.
I protested. It was not very effective.
 
you really should just hang that excuse of a president me thinks
(yes zero punctuation rules!)
 
WPF gets really hard as soon as one strays from simple stuff.
 
12:17 PM
Well I do not even understand what does our goverment do that others hates us. Like there are dozens of versions about what is going on around Ukraine. And none of them seem to be true.
 
if entire world appears to be against you, chances are the entire world isn't wrong
 
That's a lot like how the Iraq invasion seemed here.
"Al Queda might be there, but even if they're not they totally have these weapons of mass destruction. No, we'll not provide a clear definition of what that term means."
 
I do not know, it can also be a huge American propaganda.
I really do not know.
 
We are hugely invested in picking a fight with you guys.
 
And I do not really care actually.
 
12:20 PM
I mean, we clearly don't have enough on our plate.
 
@JohanLarsson What're you doing?
 
> In war, truth is the first casualty.
 
well it probably does have propaganda in there - i wont rule that out
 
@Sean Same thing, playing with the flipview
 
but i really feel russia has a bullying mentality that needs fixing
also, bully vs bully war is good!!
 
12:21 PM
:(
 
(Pst, the UK is practically an American state when it comes to war. You guys are coming with us.)
 
We have China. :o
 
Now that is a fight we're itching to have.
 
Fucking idiots, the lot of you
 
@Billdr that's fine - but it will be good for the rest of the world!
 
12:23 PM
Don't fight guys
 
make love?
denver won't come over!
 
> Make love, not war.
 
i also have sean to deal with !
 
I don't think Denver has anymore to do with the Ukraine thing than I do.
 
Try the flipview and find some bugs instead.
 
12:24 PM
xD
 
And I seriously hope both of us escape any violence.
 
Hahaha. Yes Johan, yes xD
 
I'd do that once i come back in wpf world
 
Well, anyway, whatever is going on, people in Russia are not that bad, it is just our government or American government trying to set up a confrontation for own purposes. While people just want to live in peace.
 
right now i'm still in saml world
 
12:24 PM
The events thing is really nice in the testproject #brag
 
isn't it always the government that screws people over denver?
 
It is. :(
 
also, i've never understood this one thing: why do russians insist on rest of the world speaking russian?
 
People screw themselves over by not demanding the government changes
 
For the same reason we do, Mav.
 
12:25 PM
"OUR GOVERNMENT IS SHIT OMFG WHY ARE THEY EVEN?!?!"
'You gonna do something about that?'
"No don't be stupid."
 
I've learned the word for MdA / Bepx .. but they can't learn a few words for us?
yes i'm judging based on my exposure to russian player base!
 
Maverik, do you judge by a computer game?
 
YESS lol i just said that!
 
Yeah, I noticed. :)
 
How're those Sharia neighborhoods going, Sean?
 
12:26 PM
Well, it is mostly kids.
 
you're the only russian i've come across that speaks ze lingo
and is nice too!
 
@Billdr I don't even
 
there's no tool in there xD
 
Probably lots of bullshit
 
Haha, well, I guess nice russians do not play the game you do. :D
 
12:27 PM
Fucking stupid religious fanatical bullshit
But I don't know
 
@Billdr yea but at least in our case, rest of the world has accepted it and its the norm now
 
Word. Thanks for that, btw.
 
when you come on "international" server - you have to live by international standards
 
However, every russian seem to be born with a little troll inside that can grow up.
 
@Billdr Thanks for what?
 
12:28 PM
Colonizing enough of the world to make English a viable global language.
 
xD
 
On behalf of the Queen, you're very welcome.
 
I mean... Spanish is probably a better choice, but who wants to learn that?
 
one doesn't realise the blessing of an internationally accepted language, until one's stuck with people who refuse to even attempt to understand
and i've been sucked into off topic stuff
must go back to saml!
 
Cackles
 
12:39 PM
> MAHATMA GANDHI, AS YOU KNOW, WALKED BAREFOOT MOST OF THE TIME, WHICH PRODUCED AN IMPRESSIVE SET OF CALLUSES ON HIS FEET. HE ALSO ATE VERY LITTLE, WHICH MADE HIM RATHER FRAIL AND, WITH HIS ODD DIET, HE SUFFERED FROM BAD BREATH.... THIS MADE HIM A SUPER CALLOUSED FRAGILE MYSTIC HEXED BY HALITOSIS.
It was in all caps at source
 
Can confirm, it was in all caps when my grandma forwarded it to me a few years ago.
 
Gonna go home. bzzt
 
Later
 
1:33 PM
I thought since vmware is such dick to MS developers, may be I'll go with java version and have better luck
then i see this:
* Create a self-signed X.509 Certificate using the undocumented APIs inside
* the sun.security.x509 package used by keytool utility.
conveniently JDK team replies:
Sean Coffey added a comment - 2014-04-17 06:21
This behavioural change was introduced as a result of JDK-7198416. Application code should not call on internal JDK implementation classes found in the sun.* package.

Closing as not a bug.
yup, now their goddamn java shit is broken too
 
1:53 PM
hi
sounds like operator error @Maverik ;)
 
"Operator"
'I need an exit!"
OMFG NETSCAPE
STOP BEING A GOODY-TWO-SHOES
 
TADAY I IZ PERFECT
 
Got your moisturiser, concealer, foundation, blusher, eyeliner, eyeshadow, mascara AND lipstick on? Good man.
 
just for you Seany
 
Oh stop... blushes
 
2:04 PM
sleeping on the ground is not recommended
 
Where did you get that gem from?
 
alright, now it is time for you to tell me how to implement licensing into my application
1 installer, 3 different license levels, different features per license. how do, ready go.
 
Is it a MSI-based installer?
Well fuck it
So you have a step in your installer that accepts a license key
That goes and calls custom code to figure out what type of license it is
Then you set some variables in your installer with true/false
And then only display the features available to that license
 
no its not
 
Right well fuck that ^ idea then
 
2:11 PM
but okay... and there is different looks per license level
 
What kind of installer is it?
 
just an .exe
 
That's not helpful lol
 
i have control over everything during install process
 
And so you should
 
2:12 PM
its 3rd party... actually pretty nice
 
Well you've got one simple path really, haven't you
You accept a license, check it, set some variables and decide what to install based on that
Edit some config for themes/look 'n' feel and you're done
 
install everything in case they upgrade at some point...
 
There you go see, you have it all figured out
 
2:25 PM
mhmmm,, okay
you ever snoop visual studio?
the datacontext for everything never changes, but they have bindings that don't seems to exist in the datacontext... tis interesting
<StackPanel HorizontalAlignment="Right">
    <TextBlock Text="Seany Sean" />
    <TextBlock Text="Mavy" />
</StackPanel>
why isn't text aligned right?
that not a prop that gets inherited?
aka TextBlock HoizontalAlignment != TemplateBinding HorizontalAlignment
 
2:49 PM
@NETscape i'd imagine not, i'd apply implicit style
actually before that, see if you have HorizontalContentAlignment
 
right... don't think stackpanel has that
 
HorizontalAlignment is for the control itself, controls with children should be exposing the Content variation
well then just apply implicit style :)
 
ay captain
 
3:18 PM
ayy
Anyway to add a flyout to each listview item?
 
not sure, @Julien might know, but doesn't appear to be here
sounds googleable though
 
It says to use FlyoutBase.AttachedFlyout but that doesn't do anything.
I mean, all I am looking for is that little popout menu in the left image:
that says "pin to start" and "add to kid's corner"
 
ahh, is that what a flyout is?
i thought it would be the animation when removing an item... yeah, definitely not sure then
 
idk, I am guessing that's a flyout.
 
is that the context menu in Windows 8?
 
3:27 PM
maybe
 
i would look for official documentation for this, just to be sure
 
3:43 PM
I have perhaps the most weird problem ever.
When I add a OnHolding event to the textblock, the text foreground color changes to white, but without the event, it remains black.
what the heck
 
interesting. can you find the reasoning in source code?
 
nope, no where in the code am I actually using the white color for foreground. At least in not any code that has anything to do with the listview.
 
I wonder if there's a visual state manager or somethig
That does it
Just a wild stab in the dark
 
Maybe, I tested it with other events and it happens with all of them.
 
3:58 PM
what does "Holding" mean?
 
when an item is tapped and holded on.
 
Touch screen: long press
 
you tap it and keep your finger on it for like 2-3 seconds
 
Quick 'n' dirty way of doing context menus on touch devices
 
what's the clean way then?
I mean, flyout comes from Microsoft's website.
 
4:00 PM
Oh no that wasn't a "ur doin it rong, il rek u"
I was just saying, that's how it's done on pretty much all touch devices. It could be better IMO
 
They do it on the Windows Phone app list, that can be seen in the image above, yet in their examples, MSFT only shows how to do it via a button.
 
So I take it you're using this bit then "Using a MenuFlyout with other UI elements
You can attach a MenuFlyout control to any FrameworkElement object by using the FlyoutBase.AttachedFlyout attached property. If you do so, you must respond to an interaction on the FrameworkElement, such as the Tapped event, and open the MenuFlyout in your code."
Anyway that doesn't explain why the foreground colour on the textblock goes white
 
Yes, the entire listview's color changes to white as soon as I add a holding event to the textblock.
 
Can you show some XAML?
 
<DataTemplate x:Key="GroupTemplate">
            <Grid Grid.Column="1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <StackPanel Grid.Column="1">
                    <TextBlock x:Name="SongTitle" Text="{Binding DisplayName}"
                               Style="{ThemeResource ListViewItemTextBlockStyle}" Holding="onHolding">
                        <FlyoutBase.AttachedFlyout>
                            <MenuFlyout>
<ListView
                                Margin="0,-31,0,0"
                                Background="White"
                                Foreground="Black"
                                HorizontalAlignment="Stretch"
                                HorizontalContentAlignment="Stretch"
                                VerticalAlignment="Stretch"
                                ItemTemplate="{StaticResource GroupTemplate}"
                                ItemsSource="{Binding Source={StaticResource MusicSource}}"
there you go ;)
 
4:08 PM
i would say the foreground color changing is a visual state that is used if an event, X, is attached
 
What happens if you take the theme style off?
 
i.e. If user attached a long press event, add visual state to change foreground when long pressed is fired, else don't add the visual state
could also show up as a trigger
 
There are the visual states for the listview in WinRT apps
scroll down to "Default Style"
^ click on that
 
Pressed CommonStates The item is pressed.
PointerOverPressed CommonStates The pointer is over the item and the item is pressed.
change one of those brushes
<SolidColorBrush x:Key="ListViewItemOverlayForegroundThemeBrush" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="ListViewItemSelectedForegroundThemeBrush" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="ListViewItemOverlaySecondaryForegroundThemeBrush" Color="#99FFFFFF" />
<SolidColorBrush x:Key="ListViewItemOverlayForegroundThemeBrush" Color="#FFFFFFFF" />
AKA one of the brushes with #__FFFFFF is getting applied
 
I changed all of those brushes to black and the foreground is still white
<SolidColorBrush x:Key="ListViewItemOverlayForegroundThemeBrush" Color="#00000000" />
        <SolidColorBrush x:Key="ListViewItemSelectedForegroundThemeBrush" Color="#00000000" />
        <SolidColorBrush x:Key="ListViewItemOverlaySecondaryForegroundThemeBrush" Color="#00000000" />
 
4:27 PM
well you're changing opacity too
thats basically transparent
so if the background color is white, you'll see white.
 
Well, not exactly because when the flyout menu opens, and the background becomes darker (to show focus on the flyout menu), you can read the listview item text. It's just white in color.
 
isn't that normal, like shown in the image above
 
Foreground - text colour
 
your point?
if the foreground is transparent, you'll see your text color as whatever is the color of the element behind the text
 
That I am a retard
 
4:31 PM
I changed the background of the listview to black and I can see the text color, because you can see on white on black
 
What's the theme?
 
problem is why the listviewitem color changes from black to white when an event is added.
light theme.
 
@DemCodeLines this image shows the non selected items foreground turn grey. The selected item with flyout open is white...
 
I changed the requestedtheme on textblock to light and now it shows black color like it should.
I still don't understand why it didn't work like that before, but oh well.
 
 
1 hour later…
5:41 PM
@DemCodeLines I saw your ping... you figure out your issue?
 
5:53 PM
Reed, we decided to extend the offer for you to come and write code in Sweden.
 
hehehe
make the offer big enough, and I might consider it ;)
 
I can offer long hours.
 
hehehe
 
6:08 PM
the control turned out ok
Rolled my own gesture code, nothing advanced
 
congrats
 
might re-write the animations in directx just cos it would be so dumb
 
6:24 PM
morning Reed
 
@JohanLarsson ugh sorry I've slept yesterday
 
6:39 PM
@ReedCopsey this is what I have
public partial class MyApp : Application
{
    public static void Main() { //startup stuff here }
}

and my startup object is set to MyApp
if I have a private MyApp() will it call MyApp or Main on startup then?
 
mmm - if you don't hcang ethe compilation, I think the entry point gets set to something you can't control
but never tried it that way
I just don't compile the app using the normal app stuff
(or include at all)
 
interesting
 
whats dat Moses?
 
@NETscape tomorrow I asked Johan how to make my UserControl to accept click command, and he told me to sketch so he can figure out what I wanna make
I am using RelayCommand btw
But, since my UserControls are mostly based on grid, I wanna make something like this :
<Grid Command="{Binding ToggleSelected}"/>
(I know it's not possible)
But I wanna make mine clickable, or command bindable
I read somewhere to make something like this :
 
6:51 PM
@MosesAprico The entire control clickable?
 
<Grid x:Name="_grid">
    <Button Command="{Binding ToggleSelected, ElementName="_grid"}"/>
</Grid>
UserControl A, B, C are clickable
 
Sounds a bit strange but make the content a datatemplate in the button?
 
@MosesAprico make UserControl A, B, C be Button A,B,C
 
@JohanLarsson So I need to do this in the xaml.cs : public UserControl A : ButtonBase {}?
@NETscape right?
 
nah, no need for subclassing I think
rarely is when using wpf
 
6:55 PM
@JohanLarsson so, like this then :
<Button>
    <Grid/>
</Button>
?
Sorry if it looks dumb
 
yeah, more like that
 
Oh... I just realized that is possible
 
@MosesAprico looks standard
 
@JohanLarsson neat thanks
 
Button has a Content property
 
7:02 PM
@NETscape Yes I know... But not sure what you refer with that sentence.. Can you elaborate?
<Button Command={Binding ToggleSelected}>
    <Grid/>
</Button>
right?
 
Grid is content in that case
you can also do <Button Content= "{Binding X}"/>
 
Anything with a Content property can hold other UI elements
 
7:21 PM
Oh so it's an optional / another approach I see. And I'm quite sure X is the UserControlVM object in the parent VM.
 
well it depends
I mean, this could all go in one control
you just need to do the right bindings/VMs
 
7:38 PM
I have a question about architecture and design. If I wanted to set up a notifications class, should it be a manager/singleton or can it be a regular class?
 
Regular class and use a IoC container to control singleton imo.
I sometimes do singleton even if I use ioc to protect us from ourselves
Having Notifier.Instance all over the place is ugly though
ctor inject it
 
i think it also can be using Observer Design Pattern
@NETscape that sentence sounds interesting. what do you mean by "all go in one"?
 
Why do I need to use IoC Container?
 
Cos it is nice is the biggest reason
Easy to learn and very convenient to use
But nothing you can't write with manual factories etc
 
@MosesAprico depends on what your setup is, but I think I posted something before, it just looks like an itemscontrol inside itemscontrol inside itemscontrol
 
7:52 PM
@MosesAprico, I don't think I've ever used the Observer design pattern? Can you elaborate?
 
@NETscape If that's what you mean, then, yes, I made it that way. Haha
@KalaJ sure. a moment. I'll take a look at my class notes to see if there's any more comprehensive reference.
 
Also when it comes to patterns: don't look for places to use them.
 
@JohanLarsson, what do you mean?
 
Observer pattern is pretty useless in C#
it's basically just "use events" :p
 
oh lol really?
@MosesAprico, thanks
 
7:56 PM
@KalaJ Enough to know about them and what problem they solve. Don't actively look for places to apply them overarchitected bs lies that way.
Write the code small and simple and refactor as you go
DRY KISS YAGNI and SRP are nice ~patterns~
 
@KalaJ cs.uah.edu/~rcoleman/CS307/Announcements/… . Several design patterns there.
Btw, the design pattern I ever use is factory design pattern. (In real project) The rest just a college subject materials
The linked PDF is the book my lecturer use for my design pattern class.
@JohanLarsson Yeah, sometimes it helps, and sometimes it complicate things. But afaik, even though we rarely use them, it's still interesting to learn
 
yeah, sure nothing wrong with that.
Just seen examples of where people have thought about how to squeeze in the maximum number of patterns in the code. Then try to bend the code in.
I think speculative flexibility is the word for it.
 
I'm all for no design patterns lol
I'm just wondering how to properly structure my code
 
right now my notifications and alerts are all in my view model
I'm not sure if that's okay or if I need to pull them out of my viewmodel
to do something useful with them?
 
8:08 PM
is it a thing showing messageboxes?
Put it behind an interface and have it as a service sounds like an ok idea.
 
yeah messageboxes at different times
what do you mean by a service?
 
just a class grouping notification related stuff together
that gets passed in where needed
 
just curious, is there a reason why it's called a service vs. a regular class xD
and for future reference, where else could I use a service in my app?
 
I call classes services if they don't have state just collect a bunch of verbs
dunno if it is correct lingo
Then you have entities and value objects etc bu the names are not that important
Imutabiity is a nice pattern
 
Alright guys, it's already 3:16am in my local time. So, I'm out. Thanks for today and have a nice day..!
 
8:17 PM
you probably want the notifier behind an interface so you can mock it. No fun with messageboxes in tests
 
What do you use for mock tests?
 
 
1 hour later…
9:41 PM
So apparently you can't access a listview from code that is inside a datatemplate?
 
10:08 PM
not really?
you need to find the visual during runtime, since it could be anything
 
Even though we’ve given the ListView a name, we cannot access it from the code-behind:


This is because the control is inside a DataTemplate. One easy way to get around this limitation is to hook into the ListView’s Loaded-event.
 
yeah...
if you didn't make it a DataTemplate, you can use it
 
10:27 PM
But I have to use datatemplate since I am using a hub
 

« first day (703 days earlier)      last day (3446 days later) »