« first day (329 days earlier)      last day (3820 days later) » 

12:00 PM
mhmm I think that I understand... experimenting around.
 
@Billdr sooo if I have a Code First EF model, can I put an XDocument in as a property? I'm asking you because you seem to know your shit ;)
and as always give me the wrong answer which nods me in the right direction
 
You mean store xml in the database?
Just use strings :P.
 
erm, yes
Is that the way? I did so the last time I needed to save XML to the Database
was just wondering if I could save an XDocument as is
 
Yes unless you're using NoSQL db which serializes to XML
 
Well I haven't heard of an xml data type for ef...
 
12:05 PM
So I have the dll referenced in my project, and if I make <ResourceDictionary Source="pack://application:,,,/Selen.Wpf.SystemStyles.dll;component/Styles.xaml"/> I get a Assembly 'Sel...les.dll' is not referenced by this project. But if I don't have the .dll` in the Source An error occurred while finding dictionary... so, with or without the dll?
 
@ActionHank I don't see why not, assuming your database knows how to store that type of file. Otherwise, use strings like a normal person.
 
no no nosql
 
I dunno what an xdocument is.
 
I will try and act as a normal person then ;)
Linq to XML, never heard of it?
 
lol, Billdr.
 
12:07 PM
So... you want to store your query in a database? I never understood why people do that.
 
Huh?
:S
 
linq to <whatever> is a query, no?
 
(This is why no one assumes I know my shit)
context.UserProfiles.Include("Company").First(c => c.UserName == User.Identity.Name).Company; <--this is a linq statement.
 
sorry, too busy lmao atm
 
12:08 PM
@Markus Without the .dll, you're referencing the assembly not the file
 
Noo it's like this: var doc = new XDocument(
new XDeclaration("1.0", "utf-8", "yes"),
new XElement("message", CreateMessageHeader(message)));
 
Stop it, you guys are killing me...
 
I'm glad my ignorance is amusing.
 
Or my assumed stupidity
 
12:10 PM
Okay, so... you're building an xml document.
and you want to store... what? Not the document?
 
id just have a xdocument wrapper property to the underlying string as far as I know a string will save to a xml column
 
String it up Hulk
GOING TO PUB
Cya l8r
 
Later Rudi.
 
hey what, WHAT
 
12:12 PM
Wow, have fun, Rudi ^_^.
 
Stefan... that's not really productive.
 
You don't say.
 
Apparently we're both missing something so fundamental that it'd take all the knowledge of a topic there is to understand what?
 
You could try serializing the xdocument object as binary or... xml, Hank... Then store it in the database using the appropriate type (string or whatever the byte[] was called in ef)...
But idk if it's serializable so anyway...
As I said there is no xml data type for ef as far as I know, but that's hardly relevant since there is none for sql anyway...
Who's "we", Billdr?
 
there is a xml data type for sql
 
12:16 PM
what does the pack://application:,,, mean?
 
There is?
 
yupp
 
Oh, indeed... Interesting...
 
Wonder why ef hasn't implemented it...
 
12:17 PM
I can post MS links too!
 
Indeed you can, thank you, Billdr.
 
I think it would be a major pain in the bot to implement query trees for, but as I said grab it as a string and just wrap an xdocument property around it with a notmapped attribute in your model
 
as far as why EF doesn't have it, EF is supposed to be platform agnostic - so if whatever db it connects to doesn't have the xml type, it'd have to have some other way to serialize/deserialize it. My guess is that'd add a ton of overhead. Therefore they stick to relatively common data types: msdn.microsoft.com/en-us/library/ee382832.aspx
 
mornins
 
12:21 PM
read that as morons at first lol
 
I'm not sure EF doesn't serialize/deserialize it. I haven't tried. I'm going off your assertion.
Hey Dirt.
 
In this case it really doesn't make sense to serialize it(xdocument) of course, it's not an image or anything as complex...
Hello dirt.
 
Hello BetaSystems-RodrigoDuarte
 
For real?
 
You are so incredulous Stefan.
 
12:28 PM
I smell brazilians..
 
Well, it is summer down there.
 
Winter still ._.
 
Isn't this spring/fall (depending on which side of the planet you're on)?
 
It's not that I don't believe you, Billdr, I just can't tell whether you're joking or not sometimes...
I thought so too...
 
12:30 PM
I get that a lot. The problem is I'm dumb, and my sense of humor is triggered by dumb things. So sometimes I say dumb stuff because I'm dumb, and other times I say it for a joke.
 
I don't know if there is a difference in east/west like it is with north/south
 
It would be the equivalent of march/april I think...
 
Probably
 
My point is it's hot down there, and they charge you too much for water.
 
I think we all got your point ages ago, Billdr :P...
 
12:32 PM
And yet we're still debating the finer points of seasonal variance two minutes later.
 
Today it is ok..
Not warm like other days
And not cold like some weeks ago
23C now
It isn't really sunny
Clean sky
 
But apparently it's still too cold for that...
Oh, should have scrolled down first...
 
Sao Paulo and Rio are 23C
While Macapa ( extreme north ) is 31C
 
Right, straight to the point, then: is it too cold to sweat?
 
12:36 PM
Yeah
 
"Sofia, Bulgaria
19 °C Light Showers Rain" got that right, ugh...
See, Billdr.
You just wait a few weeks, Andre :P.
 
Yeah Summer is coming
 
Arghhh I can't get it working, and it seem so close....
 
I'm looking at places to retire in Brazil. I'm thinking I can probably survive the climate down by Uruguay. One town is currently 65F, the next town over is 80f. I don't know how much to trust these numbers.
 
Still on the reference thing, Markus?
 
12:39 PM
it seems like it's found the assembly, but that the path is wrong or something
mhmm
 
Hmm...
 
as far as I can understand the xaml is not located in any subfolder or anything (codeproject.com/script/Articles/ViewDownloads.aspx?aid=442856), so it should just be ;components/Style.xaml
 
The future is great. I wanted to learn more about a town, and seconds later I'm watching a video of a drive through. youtube.com/watch?v=8idSRNP8u20
 
I can't seem to find Style.xaml Markus...
 
fourth from the bottom
 
12:48 PM
Styles.xaml?
 
Styles
 
it has an s? you sure you didn't typo it in the reference as well?
 
sorry that was a misstype in to here
I'm sure :)
 
Inspirational, Billdr...
 
has it something to do with where I have located their .dll file?
 
12:52 PM
Yeah. I learned I still don't want to live in Brazil because every neighborhood seems to pride itself on being an eyesore.
 
hmm the dll isn't actually inserted into the out folder, eventhough it's marked with copy to local
 
1:06 PM
Ha got it working,, had to have the other dll's form that assembly included as well... Thanks @Rudi
 
high five yeah!!!
 
@gregory.bmclub!
 
Yayyyyy good job @Markus
HOLY CRAP IT'S @gregory.bmclub BMT CLUB SANDWICH
 
1:17 PM
Hey ;)
 
@Billdr I can't find that version of "Take on me"...
 
Brazil had a habit of rerecording songs with national talent to bypass embargos on cultural products during the military regime of the 80s.
 
Interesting. Any idea where to find that version?
 
I don't. My wife might, @AndréSilva may also know.
 
1:45 PM
i hate doing research... all in aid for doing a wpf app ^^.
 
2:10 PM
Wow...
 
Hulking out, Hank? :P
 
Hank smash!
 
yes, sort of
I can't wait until the weekend starts
but so far it hasnt
 
She has very good lives...
 
2:15 PM
I keep forgetting to fill a growler for the weekend. Doh.
 
wat's a growler
 
A jug of beer.
 
@StefanDenchev Errr, no - Yatta!
 
Growler may refer to: * Growler (electrical device), for testing electric motors. * Growler (calypsonian), pseudonym of singer Errol Duke. * Growler (vehicle), a military vehicle * Clarence (carriage), also called a growlerf * EA-18 Growler, an electronic warfare jet fighter. * USS Growler, one of four ships. * Officer Growler, a character from The Getalong Gang animated TV series. * Nickname for the Avro Shackleton aircraft. Growler may also be: * A sound-powered telephone used on U.S. Navy ships. * A house robot in Robot Wars. * A character type in David Weber's Honorverse. * A size of...
'slang for a vagina' ROFL
 
Pretty sure it says that on most things
 
2:17 PM
@RudiVisser.....................................................................‌​.................................................................................‌​.......................................................................
 
sup Stefanie?
 
le sigh
 
@StefanDenchev Who who who whoooooooo - us us us usssssss everybody sayyyy........ Yattaaaa!
 
'let me fill up the growler' "I'm not sure I'm ready for that honey"
 
2:39 PM
morning guys
 
Heyyas
 
Hey Julien.
 
o/
 
elo julien
 
I have a little problem with Binding.
i have a usercontrol and a view model
 
2:45 PM
You don't say :P.
 
i set datacontext for the user control
 
how can I bind to ContenteTemplate of a ContentenPresenter
binding to content works
 
in a custom controls works, but in a usercontrol no
how do I post code?
format it?
 
2:49 PM
Dispatcher.CurrentDispatcher.Invoke(DispatcherPriority.DataBind, Action(..)) : An exception of type 'System.NotSupportedException' occurred in PresentationFramework.dll but was not handled in user code

Additional information: This type of CollectionView does not support changes to its SourceCollection from a thread different from the Dispatcher thread.
like wtf!
John use gist.github.com
 
Makes no sense, Mav.
 
ahhh good old days of threading problems :P
 
i'm always in threaded environment and I know what that exception is
except.. i'm on the freakin dispatcher!
 
precisely...
 
ain't that what CurrentDispatcher.Invoke supposed to do?
 
2:55 PM
What i'd assume :).
 
things are coming together boyz
and gals
 
i want to bind to ContentTemplate and i dont know how
 
What things, @NETscape?
Did you see my link, John?
 
3:10 PM
stefan, binding a static resource works (i know how to do it)
bindind a property from the viewmodel to the contenttemplate doesnt work or i dont know to do it
 
I see no staticresource?
 
ContentTemplate="{StaticResource Red}"
 
Where is that?
It's not in the link I posted for sure...
 
but I want To bind from the viewModel a property to the contenttemplate of the contentpresenter
 
I understand, where did you see ContentTemplate="{StaticResource Red}"? Confused...
 
3:15 PM
ContentTemplate="{Binding NodeType, Converter={StaticResource  NodeTypeToDataTemplateConverter}}"
dowsnt work, in a custom control it works
 
Where did you take that from? Here's my link again... I see nothing like that there...
 
<UserControl x:Class="ionWpfUserControlLibrary.Node"
             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:ionWpfUserControlLibrary"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300"
 
Look at the link, please...
 
Ive looked already, It doesnt bind property from a viewmodel there
 
What do you mean? Alright, what is the property you want to bind to?
 
3:18 PM
How do you bind a Property from the viewmodel to the contenttemplate??
 
You make a datatemplate and bind it to something inside that...
 
Magic
 
3
Q: Binding in Label.ContentTemplate

Mark BostlemanIn the Xaml below, the first control (the TextBlock by itself) has no problem binding and rendering the value of RecordCount. But in the second control (the Label with the ContentTemplate), the value of RecordCount is not rendered. However, the literal "Cars" is rendered fine. So I know the Co...

ahhhh whre did you come from rudi
 
He was hiding...
 
lol
 
3:21 PM
For a moment there I thought I was totally dumb or something...
 
right im off home, but ill be back on in a bit just incase anyone misses me
why Stefan?
 
Bye, Ed.
Ah, never mind...
 
3:40 PM
@StefanDenchev No im not Maharashtan.
Or even indian. I was like "wth is this room"
 
guys, I'm off
its weekend!
 
joined and learned some stuff about indian languages then left ;)
 
so i have a form that is bound to a VM...the form has a cancel button. My fields update their sources on PropertyChange. How can I revert the VM back to its original state if they click cancel?
 
back
 
Good to know, Drew ^_^. Didn't gather your were so inquisitive :P...
wb Ed
Have a nice weekend, Hank.
wb Billdr... When did you leave...
 
3:51 PM
bit ago. computer issues. They still aren't fixed. brb again
 
hb
@Julien preserve it.
 
how?
 
Simplest way is to serialize it I guess, somebody pitch in ^_^...
 
there we go
 
Fixed?
 
3:56 PM
we'll see in a moment
 
bleh. never thought making a nice form would be so ridiculous.
 
yes, working
 
Well done.
Think I just bought yesteryear's donut... Yuck...
If you want to just revert it to the initial state (i.e. empty) you could just re-create the object of course, @Julien.
 
its not empty though. its an edit page
 
Serialize, then.
You need to have a copy.
 
4:02 PM
i pass in my VM via constructor to the window. I serialize the VM, then assign it to a private var. On the cancel event, I reassign the private var to the deserialize. But my VM is still being updated incorrectly
how do i replace the VM with the serialized copy
 
Why are you serializing the vm? Serialize the model.
 
? the VM holds the values that I want
what model are you talking about
 
You're editing something, correct? So you have a model?
 
i have a ServerInfoVm that holds all the properties of a server and is used to populate my form
i dont have anything else
 
It won't work, then... You need the properties that are to be serialized in a separate object that you can replace. Otherwise, maybe copy the vm instance in some other way...
 
4:08 PM
public ServerInfoWindow(ServerInfoVm serverInfoVM)
{
InitializeComponent();

_serializedVm = Helper.JSS.Serialize(serverInfoVM);
_serverInfoVm = serverInfoVM;

DataContext = _serverInfoVm;
}
 
There were other methods but i'm afraid my mind is on a completely different area atm...
 
    private void BtnCancel_OnClick(object sender, RoutedEventArgs e)
    {
        _serverInfoVm = Helper.JSS.Deserialize<ServerInfoVm>(_serializedVm);
        Close();
    }
 
That looks alright... What's the problem?
 
when i click cancel my VM still has the updated values
 
Raising propertychanged?
on set on vm
 
4:11 PM
errr, no
where would i implement that
 
public vm {set {_vm = value; propchanged()}}
 
i declare my VM in my window:
private ServerInfoVm _serverInfoVm = new ServerInfoVm();
i dont want to implement INotifyPropChanged on my window do i
 
You could wrap it in another vm :P...
 
that can't possibly be right
 
OK.
As I said I wouldn't serialize the whole vm in the first place.
 
4:15 PM
i tried to make a ShallowCopy
same thing
 
I don't think a ShallowCopy would work...
And it wouldn't update without propchanged anyways (I think)... Try setting it to a new instance (to test), i'm really not that experienced in changing vms on the fly(wait a minute)... Gonna check some code brb.
 
heres what i got so far
please be gentle with me :)
looking for tips !!
 
set
        {
            if (currentvm != value)
            {
                currentvm = value;
                OnPropertyChanged("CurrentViewModel");
                CurrentViewModel.IsCurrent = true;
            }
        }
That's it, i'm afraid...
 
but that goes back to implementing propchange on my window
 
Well that's in my main vm...
That's all I can offer i'm afraid, sorry...
It works though, that project has like 50 vms changing all the time.
 
4:23 PM
so you have a window that has a vm that holds the windows vm?
im lost on the structure
 
I can't see the items in my collections while debugging. I get the count, but nothing else. anyone get that before?
 
yeah netscape
it says operation timed out for the items themselves?
thats what i get
 
no, I am looking at a dictionary. I can see the keys count and values count, but not what they actually are
 
There's a windows that has <ContentControl Content="{Binding CurrentViewModel}" /> and datatemplates for all views with datatype the corresponding vm... Not saying it's the best (or proper) way to do things though...
And the datacontext is the mainvm.
Which has the vm collection and CurrentViewModel property.
 
right. i can see that. but in my case...do I really need a VM that holds a VM
that seems bonkers
i only have one. no collection
 
4:26 PM
@Julien I asked the same question before
the answer is yes
and no
 
.....
 
As I said, I don't think you should be changing the whole vm, Julien...
 
what should i be changing then?
 
i think you should when you have a treeview
 
:S
Oh, you should have an object inside you vm... Wait, that's pretty much the same thing... Oh well...
Chat broke, sorry...
 
4:31 PM
i guess i could serialize my vm, pass it to my window, and set dialogresult = to the serialzied version if they press cancel, or the Vm if they click save
 
Sure.
 
but i guess i still need a stupid prop change?
 
Mhm...
It won't update without it imo...
Either that or update all the props...
Which is even nastier...
It all comes down to basic binding principles in the end...
Sorry, i'm not much help, Julien... Perhaps Reed will show up (fingers crossed).
 
ill put in inotify in my window and see if that works at least
>< nope. i am missing something
 
4:46 PM
I just almost typed my password in the chat window...
It doesn't work, Julien?
 
nope
 
Weird...
 
second wave of beta. OMGOMGOMGOMGOMG so scary.
 
Crush them, Billdr, we believe in you! ^_^
 
Spamming chats with my website, tipbitco.in, feels unethcial @JohanLarsson.
Thanks Stefan.
 
5:00 PM
@Billdr yeah it is a gross thing to do
 
heh
 
MY BEAUTIFUL SCHEDULING INTERFACE LIIIIIIIIIIIIIVES
 
Yeah, I haven't even blogged about the new site yet. I'm such a bad steward of my made up brand.
 
in Lounge<Whatever>, 15 secs ago, by Johan Larsson
in WPF, 1 min ago, by Billdr
Spamming chats with my website, http://tipbitco.in, feels unethcial @JohanLarsson.
 
5:01 PM
rofl
 
+ star
 
Nice @RudiVisser, how much will it cost?
 
Now I feel dirty.
Dirty like Rudi at a coffee shop.
 
5:05 PM
Have yourself a cookie.
 
In Sweden we have a thing that is called 'vaska' Champagne, you order a bottle at a nightclub and then you tell the bartender to pour it out. (Pure intentional waste)
 
<a href="/questions/18302673/watch-3m-performance-400-nascar-sprint-cup-series-live-stream" class="question-hyperlink" title="NASCAR FaNz !!!@@@@ Exciting!! 3M Performance 400 NASCAR Sprint Cup Series Live Streaming

Copy this Link >>>>>>> http://tinyurl.com/keepuo9

Click HerE >>>>>>>>>>> http://tinyurl.com/keepuo9

Match ..." dir="ltr">Watch 3M Performance 400 NASCAR Sprint Cup Series Live Stream</a>

That's something to feel dirty about...
 
A guy made this site where you can just send an sms and waste some money
Think it gives a receipt with bragging rights
 
Sorry about that, stupid indent...
Reminds me of dish usage in Greece...
Apparently they banned that so now they use paper towels or sthg...
 
I think the Swedish people have too much money.
 
5:16 PM
Plate smashing, a traditional Greek folk custom involving the smashing of plates or glasses during celebratory occasions. In popular culture, the practice is most typical of foreigners' stereotypical image of Greece, and while it occurs more rarely today, it continues to be seen on certain occasions, such as weddings, although plaster plates are more likely to be used. Plate smashing is also used in the Philippines, but in a different context. History in Greece Ancient and mediaeval The practice may be part of a Greek spirit of joy or kefi. It probably derives from an ancient practice o...
 
@Billdr It is a nouveau riche thing, not sure if many actually do it but many know about it.
 
Yeah, and they can't even keep their country solvent.
I need to come up with something dumb and trendy that rich people will want to waste money on.
Each hair on my head is now worth 35 bitcoins. I will send you a hair for 35 bitcoins, or for 40 bitcoins I'll burn it and send you a picture of the ashtray.
 
What if you make a site that promises to waste money on dumb things?
Then you publish creative dumb things on a blog
 
Funny, I was certain someone pinged me...
 
WASNT ME :)
whoops caps
 
5:26 PM
@StefanDenchev might be someone on my network
 
Good to know, Ed ^_^.
Mhm, Johan...
 
5:39 PM
Got it working @Julien?
 
So i need to pass a list of file names somewhere. The file names are in a ##YYDDMMhhmmss.fileext format, should I parse the file names into DeviceEntry(type, datetime) objects inside my static FileFactory class, or should I pass it off to the VM and parse in the view model?
 
What's FileFactory - service, model?
 
Yeah, sorta. the issue is that when you pass a class via constructor, i was assuming the original gets modified along with the passed in one. it doesn't
 
its got all my file parsing algorithms. its a static class with static methods
so i'll pass the file name to the factory which will parse the file and spit out an object.
 
Parse there then... Mhm.
 
5:43 PM
but I don't necessarily parse all files at that location
I want to show the user the list of files, when they click one, it will go through the file factory
 
Either's fine imo, but since you have a dedicated service i'd use that...
 
6:01 PM
@Billdr I bought a pair of Prada shoes once, got drunk and then walked my dogs in some kind of swamp. Maybe it would qualify.
 
Buy a windows surface and pay someone to get ms Dos to work on it as OS
 
Pay someone? It shouldn't be that hard...
Dos has a "recent" version though, win 1 would be more preferable...
"Why go 8 when you can be/have number 1?"
 
:)
@StefanDenchev all the more reason?
 
For what?
 
6:10 PM
we are wasting remember :D
 
Nice Johan.
 
maybe easier to just buy an iphone?
 
don't say such horrible things lol
 
yeah I was out-of-line, sry
 
6:27 PM
you guys have any experience deploying WPF applications?
 
6:47 PM
:)
 
7:23 PM
everyone gone for the night?
 
still here
 
how goes it johan ?
 
no code but life is good
and you?
 
not bad, glad its the weekend. what you been doing with yourself then
 
7:40 PM
@E.LDunn skype?
 
sure one sec
 

« first day (329 days earlier)      last day (3820 days later) »