« first day (1599 days earlier)      last day (3349 days later) » 

1:07 AM
Hi everyone. Anyone here with knowledge about BindingLists? :)
 
A little. You normally don't use that class
 
I want to sort headers from a DataGridView. Everyone on the internet uses the BindingList class so.. but this is my case:
Instead of typing the whole idea here.. i created it on PasteBin: pastebin.com/irV9UhgL
Probably just a small problem, but I don't have much knowledge about BindingLists :P
 
That whole thing is pretty scary
 
And in combination with an ObservableCollection. It doesn't use a reference but creates a new list. So making changes to the list, won't happen to my original ObservableCollection, but only in the newly created list by my BindingList
 
I would bind to your OC through a CollectionViewSource
That will let you do sorting, filtering, etc
and you shouldn't be sublcassing GridView
more than likely anyways
 
1:16 AM
But I want the same functionalities for my DataGridView's, but with different types of information. So I can't see the problem really :P
 
Sounds like templates
 
Is CollectionViewModel ASP.NET only? Cause I can't find any plain C# examples
 
Subclassing is rarely correct
CollectionViewSource is WPF only
if this is ASP, then maybe we are just talking two different languages :)
 
Ye im using Winforms :P
 
Ah, thats very different
got nothing for you there :(
 
1:18 AM
Sorry, should've mentioned it.
 
Go to WPF, its bettter!
 
Thats what I was about to ask. :D
WPF isnt just for ASP.NET, right? or is it?
 
No, its for desktop
its the replacement for WinForms
 
Thanks. I'm just a student, so looking for some more "professional" ways to develop. Will look into WPF for sure! :D
 
No problem
Anyways, I have to go. Come by tomorrow and we'll chat about it! Consider coming by the WPF room as well.
See you then!
 
1:22 AM
Great, thanks!
 
I think the reason that this is so much harder than it should be is that even though the problem merits a complicated solution, the schema/DM is a total piece of shit.
 
Huh, was that regarding my question? :P
 
@ErwinOkken No... just venting
Talking about something I'm working on
 
1:39 AM
k :)
 
1:56 AM
@CharlieBrown You still there?
 
Why isn't this media query working.
 
So I have a bug in my code and I don't know how to recreate it to figure it out. What do.
 
??
 
2:17 AM
here we go, question you were looking for
0
Q: Windows Store Apps GetFilesAsync by paging/filtering

Teoman shipahiFor my Windows Store App, I am using following function to retrieve user music collection. Since this is a Windows Store App project user may have hundreds of music in their library in their PC other than phone. And It might not be a good idea to wait fetch all list at once and keep it in memory....

:)
 
2:43 AM
Evening peeps
can anyone explain what the hell System.ComponentModel is supposed to be for?
is it ACTUALLY for COM interop, or is it some...other thing?
I've been having trouble linking all the different available things into a coherent conceptual model
 
@ginkner no, it has nothing to do with COM
 
ok, so step one complete
I kind of figured it wasn't, but the naming is similar enough that it was a possibility
 
It seems to be sort of for things that are for UI applications, but aren't UI components.
 
It SEEMS like a library that helps extend the basic object class to provide data binding and some other stuff
 
I can't really find a specific purpose, like System.Reflection or System.Windows.Forms
 
2:54 AM
yeah, that's what I got too, but I haven't found a really good explination for it
 
I think it's not for WPF
 
It's certainly essentail for WPF because it has the ObservableCollection<T> class and the INotifyPropertyChanged interface. it also seems to be linked to some sort of...extensibility framework.
 
not according to the page I'm on
It has BindingList, which is related, I think
 
yeah. I've never used BindingList before.
I know SerialPort is one
 
We have it in our code
 
2:58 AM
a component, not a binding list.
 
I think because our ORM uses it
 
ORM?
ah
type converter thingy
 
not really
ORM basically writes database queries so you don't have to
 
right. it converts a POCO object into a database object. or vice versa
kinda
it seems more complicated than that, but that seems to be what wiki is saying
anyway
 
pretty much
 
3:01 AM
so essentialy what ADO and entity framework are doing
 
EF is an ORM
ADO is just the database adapter, right?
e.g. you pass objects to EF, but SQL to ADO
 
You would be the authority here
I'm just learning about database stuff now
hell, I JUST figured out the DataSet class is kind of amazing
 
I'm not an authority on ORMs, at all
 
even if you're not using a database
 
I don't use DataSet
 
3:03 AM
though...I'm still worried about the 2GB memory limit
I'm using it as a stand-alone XML table parser
 
just the mention of XML makes me nauseous
 
I haven't found a better way to store the data I need to store yet. I tried using a massive JSON object, but it was kinda messy
 
Yeah, I'm not thrilled with it.
 
XML is a great language, but most people use it wrong
 
3:05 AM
but it's not terrible, and it's quite human readable, which is nice
I'm using it to serialize descriptions of data packet types
I'm still not quite clear why attributes aren't used more...
 
using elements for fields/properties seems to be the more popular approach
it wouldn't have to be that way
 
anyway, I'm not dealing with it as xml most of the time anyway
 
wise choice
 
I just needed some sort of persistant storage format, and since the DataSet class has that built in, I just used it
I still need to find a good way to use SQLite
 
@KendallFrey how do they use it wrong?
and most people? that seems like a bold statement
 
3:15 AM
they use clumsy parsers, even third-party libraries for building XML or whatever
When was the last time you saw XML used cleanly and efficiently?
 
5 hours ago lol
well
yeah
 
well don't rub it in
 
i guess that subjective, because our billing provider sends us bloated xml
but we handle it cleanly :p
 
why wouldn't you use microsofts parser?
I mean...it seems to work ok for most things
it's their JSON parser that's absolute crap
I mean...it seems to work ok for most things
 
@ginkner aha, but which one?
 
3:19 AM
uh....
Whicever one XMLSerializer is?
 
XmlSerializer, not even once
 
lol
too late
All the times, for way, WAY too much data.
 
XmlSerializer does some super weird shit
 
clarify
 
Ever since the last time I used XmlSerializer, I prefer LINQ to XML
@ginkner I forget the details, but something about generating assemblies at runtime
just to parse XML
 
3:22 AM
I'm pretty sure those are optional
 
I never opted in
 
I THINK you can esseintailly....serialize the serializer?
I haven't either.
 
That reminds me of the language called Snowflake
 
but I think it creates an optimized serializer for a specific class.
 
When you run the program, it changes both the program and the interpreter
 
3:23 AM
that's interesting
fucking eltima
they're the only virtual serial port worth a damn, and for the life of me I can't find the registration key email
 
> the ultimate goal of a Snowflake programmer is to produce a program that will eventually (given enough time and luck) optimise itself down to a single command, that has the same effect that the original program did.
I love this so much
 
lol. That sounds kind of amazing
I DON'T WANT TO BUY THIS AGAIN D:
I'd be careful with that though
 
soft kitty, warm kitty, little ball of fur, happy kitty, sleepy kitty, purr purr purr
 
meow?
 
@Steve stupid kitty, dumb kitty, let me get my gun. red kitty, dead kitty, no more kitty.
cats are the most annoying animals in the world, except possibly certain mosquitoes.
 
3:35 AM
D:
Anyway....my company wants me to do serial port auto detect on a device that doesn't respond without like...a minute of pinging
scratch that...5
 
@KendallFrey lol
 
I never got why people hated cats.
 
3:53 AM
lol
 
@ton.yeung
whats up
 
not much
 
Phew, just got done providing a long answer. I hope the OP at least reads it lol.
@KendallFrey I love animals, but I hate taking care of any.
 
4:20 AM
@JasonAusborn nice answer, i'd upvote it if i understood it ;)
 
4:38 AM
@steve thx, it was at least some good practice for my writing.
Sometimes when I have to explain things to someone, it helps me get an even better understanding myself.
 
haha right?
 
Yea, I should have got on SO all those years ago, and I would probably know a lot more from the interactions.
 
this chat room taught me so much, it's unbelievable
 
I have one site that is older than SO. I originally had a plan to do something similar to SO (a couple of months before SO came to be), but I gave up on being the one man army.
 
if it wasn't for this room, i'd make half as much
 
4:44 AM
At least you have a job then :)
 
yep :)
 
Not so lucky here, but the interaction here might help me with the socializing aspect that I need to land a good one.
I'm considering pulling from the SO Api to populate one of my old sites(older than SO), but I have a bit of reading to do on the Terms of Agreement etc.
Have you messed with the SO Api at all? Just wondering.
 
nope, but you're going to have trouble competing with SO
 
It wouldn't be for competing really, just to consolidate code and organize it different.
 
ah
 
4:53 AM
I wish that I could use it as a sister/brother type site for SO, just to get use out of the name.
I would think that codecopy.com might be useful, but it is not useful at the moment since I use it for trash experiment projects because I don't care.
It might become something one day, or I can just pass it down to my son.
 
5:11 AM
lol nice pic
 
haha
 
So long, and thanks for all the fish.
 
 
1 hour later…
6:39 AM
Morning all!
 
Morning!
 
Penguin!
 
sup all?
 
6:57 AM
@scheien morning!
 
morning
 
7:11 AM
morning
 
Interesting - hello European C# crowd
 
7:29 AM
Hi @Jeremy!
 
@Jeremy whats so interesting ?
 
@SebastianL Just amused - I don't know if I've been in C# chat this late before.
 
8:20 AM
@Jeremy Somewhere it's late, somewhere it's a beginning of a workday...
 
@OlegKuznetsov but everywhere people are still miserable!
 
9:04 AM
Morning
I just installed Windows 2012 Server and added Web Deploy 3.5. For some reason the users WDeployAdmin and WDeployConfigWriter were not created. Any ideas why ?
 
posted on March 03, 2015 by Scott Hanselman

Hanselminutes and CodeNewbie are teaming up to produce two new podcast episodes a week for the month of March, featuring incredible makers in the hardware space. There will be new content every weekday in March, so bookmark http://www.marchisformakers.com and join us! CodeNewbie is the most supportive community of programmers and people learning to code. Tune in every week for stories

 
9:46 AM
"Pair programming"
 
9:58 AM
hehe
 
10:32 AM
@RoelvanUden You were looking for a Windows VPS right? Found this one: softsyshosting.com/windows-vps
 
@BenjaminDiele Hm. Interesting. Tho 400GB traffic is a bit low. And it's american based :p
 
@RoelvanUden Yeah, USA USA USA! And what, 400GB traffic is low :D How much do you move each month?
 
Around ~1TB
 
I'm well within my limits on my current 2TB plan
 
10:42 AM
I pay EUR4.50 for 1TB bandwidth and 1gbit line on my linux vps
Windows VPS ain't gonna come close :D
 
I pay 10EU for 2TB bandwidth, 100GB HDD, 1GB RAM, 1CPU :-P
I don't mind paying a little extra to get rid of Linux.
 
What line?
 
Not sure actually!
I'd have to look. I'd imagine it's 100mbps
Where do you get 1gbit for that price?
 
10EU isn't bad at all. That's 1.5 beers!
 
Expensive beer!
 
10:50 AM
yeah :(
 
@Squiggle where are you from? Beer shouldn't be that expensive
 
Ich wohne in der Schweiss
 
ah, that's just all around expensive
 
Yeah. I pay about as much in rent per month here than my take-home wage in the UK.
but hey! At least I get to paid to write AngularJS :)
 
11:12 AM
:D
 
(still recruiting consultants, if anyone is interested - must know .Net and JavaScript)
 
Yay, I'm a candidate! But I'm happy where I am :-D
 
@RoelvanUden allyourvps
 
:)
 
It's usually more expensive but I bought mine with a permanent voucher code a few years ago :D
I think it's still only 10 EUR for a 1gbit line though
 
11:15 AM
@RoelvanUden you'd be a shoe-in. It's good money...
 
@Squiggle If you teach me .NET and JavaScript, I'm in!
 
@Squiggle Money is irrelevant. I just got a permanent job contract anyway :p
 
congrats :)
 
Thanks :-)
 
@Sippy I'll see if we're still looking for a junior...
 
11:17 AM
@RoelvanUden Get rid? lol
 
@Squiggle Don't worry I need a job in Birmingham anyway T_T
 
@Sippy my condolances
 
I blame the missus.
 
@Squiggle: Would be awesome to even apply, but with family and all it's not possible :(
 
@OlegKuznetsov Wat?
 
11:28 AM
@RoelvanUden exactly
 
@Roel Linux fanboy ^
 
11:57 AM
Oh. Linux fanboy. BWHAHAHAH.
Windows > Linux
THERE. I SAID IT.
 
We will see who will laugh the last after DDoS ;)
 
Yeah, because Windows can't deal with that at all. Waitwutareyouonabout?
 
uh ....
 
12:18 PM
How do you guys keep up motivation for a paying side project? I've been at it for a few months now, but motivation is slipping :(
 
@BenjaminDiele Not. I work on and off on those projects. Sometimes I don't do anything for weeks, and then get back into it. :P
 
@RoelvanUden Yeah, but the problem is I have customers who are waiting for features / releases.
 
Did they pay for them?
 
Well, work on it then :-/ You were already paid, it's the least you can do.
I don't take payment before something is finished. I just release it after.
 
12:21 PM
I will, but I'm wondering how to keep the motivation, y'know. Or perhaps it's because I'm out of greenfield territory.
 
Make it fun. If you're working on something just for the money, it's work, not something fun. A not-fun side-project is not going to make you any happier. Take fun things to do. Even free ones are better than paid as long as it's fun.
 
Sure, but it's extra income + something to put on my CV
 
Is it the meterthingy?
 
ya
Haven't really felt like programming for 2 or 3 weeks now.
 
I work mostly on free tools in my off-time. They are extremely fun, hence I actually do it in my free time. I also work on semi-paid projects once in a while, but nothing people are waiting for. I can abandon it any time I want.
 
12:24 PM
I can abandon it any time I want. The problem I have with that is that I never finish anything then. That's why I thought a paying customer would be a good motivator.
 
Does it matter if you don't finish it? You learned, didn't ya? You had fun, right?
That's all that matters to me anyway.
 
parallelised like a baws this morning
let my porridge cook while I was in the shower
 
@RoelvanUden Yeah, but I made some promises which I won't break like that :D Oh well, I'll power through it.
 
@BenjaminDiele: How much work is it? 100hours? 500 hours?
 
@scheien About 100 - 150 right now, but there's more coming.
 
12:28 PM
Hello every one, does any one have idea about wpf chart controls? I am having one error thrown when I binding ItemsSource to my PieSeries. It works fine for the first time, but when I select some section in the pieseries and try to load the data into Pieseries, it throws me Object reference not set to an instance of an object
Any idea why this exception is causing?? Or else does I need to paste my code?
 
How can I erase ending 0's without rounding? Having number 0.8000 need to format to 0.8 but the number can be also 0.8450 so I cannot round or use exact decimal precisions.
 
@Marek ?
 
Is there any function for that or I should write helper? EDIT: it is called trailing zeroes
 
@Marek Just.. ToString?
There won't be any trailing zeros unless you explicitly tell it to.
 
N0?
or 1
 
12:47 PM
@RoelvanUden That's assuming he's not using decimal
 
@KendallFrey Decimal doesn't do that either.
 
@Marek Are you using float, double, or decimal?
@RoelvanUden it does
 
Never heard of; sounds interesting, looks nice.
 
@KendallFrey it doesn't
@KendallFrey wait, is this a culture thing perhaps?
 
0.00M.ToString() in LINQPad
Output: 0.00
 
12:49 PM
Damnit, I hate microsoft time. I've been watching a progress bar being stuck at "40 seconds remaining" for more than 5 minutes now.
 
@TomW Looks kewl
 
@TomW: Looks promising. Though the font on the website is almost unreadable
 
Yeah the copy doesn't really flow either. Their translator doesn't have 'verve' with English unfortunately
it's not 'wrong', just...inelegant
 
@KendallFrey That's because it's a literal then. >_<
((decimal)(0 + 0.10)).ToString();
 
@KendallFrey numeric in SQL, so decimal from LINQ. Trying to write it in ReportViewer extension.
 
12:52 PM
That's more realistic.
 
@TomW is it what plants crave?
 
@RoelvanUden it doesn't result in 0.10 though. It results in 0.1.
 
@KendallFrey Exactly my point, because now it's not a literal as your example was.
 
I wouldn't call that realistic, because nobody sensible does math with doubles and casts the result to a decimal
 
Then do something with two decimals.
Don't do 0.00M.ToString() because that's not realistic at all.
(And it's a literal, not a result of something)
 
12:55 PM
(0.85M + 0.15M).ToString()
1.00
 
Stop using fixed literals. Srsly.
 
why does it matter here?
those could come from a database
@Marek Here's your question with awesome answers: stackoverflow.com/questions/4525854/remove-trailing-zeros
@RoelvanUden (decimal.Parse("0.85") + decimal.Parse("0.15")).ToString() Happy now?
 
@KendallFrey It prints 1. :/
 
not for me
 
Like I said earlier, a culture thing?
 
12:58 PM
seems unlikely, but maybe
 
Yeah, you need to pass a culture for decimal parsing
 
@RoelvanUden What culture are you using?
 
It should be on US.
But honestly, this is an office PC so hell if I know.
 
en-US is still 1.00
I want to know how you get 1
 
No idea. If I use "G" I get the same thing. # is similar to nl-NL
But if I force culture to en-US and do it without args, I still get 1 and not 1.00
unless I do "G" ofc.
 
1:10 PM
Running in LINQPad?
Or something else?
 
Just a console app
.NET4.5 console app
 
could you possibly have done anything that would change the code?
 
That seems.. unlikely. Well, I do have Code Contracts enabled but that's just validation.
Lemme test.
 
Thankfully, I needed to skip the trailing zeroes in ReportViewer Expression so the only thing that worked was CDbl(0.8000) results in 0.8
 
It's not contracts at least.
/me giveup
Fuck this shit. One more thing to rage about against .NET. :P
 
1:54 PM
you guys know spacex has offices in seattle
some day, i will work on space craft
 
I have a friend who has code in spaaaace
 
@Steve Kerbal Space Program doesn't count though.
 
that's, like, almost as good as actually being in space
 
no i'm legit
going to happen
 
1:57 PM
Lol
Crazy space dog
 
lol
 
SpaceX uses .Net?
 

« first day (1599 days earlier)      last day (3349 days later) »