« first day (698 days earlier)      last day (3451 days later) » 

5:54 AM
Guys!
Sup?
Wanna ask a thing
Say I have these classes :
public class A { public List<B> Bs {get; set;} }
public class B { public List<C> Cs {get; set;} }
public class C { }
Umm,
public class C { public void IsSelected {get; set;} }
Say I want to delete C from List<C> Cs
..which is IsSelected = true.
then
So, I query : List<C> selectedCs = A.Bs.SelectMany(x=>x.Cs).Where(x=>x.IsSelected).ToList();
So, after getting those selected Cs, what's the best way to delete them?
Is it :
A. Query each B, which contains selected Cs, then call Cs.Remove()?
b. Add a "Parent Reference" to C, so, `public class C { public bool IsSelected {get;set;} public IParent B {get;set;} }` Then call the remove method from within the C?
In short sentence : A. Requery the containers B. Double reference
The delete method inside C will look like this :
public void DeleteThis()
{
    B.Cs.Remove(this);
}
Which one looks better?
 
 
2 hours later…
8:16 AM
Hoy
 
8:59 AM
2
Q: Get rid of White background in progressbar

VishalI am following this tutorial to give a custom look to the progress bar. I have got the exact same look of the ProgressBar as shown in the tutorial. Still I post the image: Can you see those white vertical bars in Indicator part of ProgressBar? I would like to get rid of them. In short I want a...

 
@NETscape Hey. 2 days latency. Not bad.
@JohanLarsson Whoa whoa whoa... 10 minutes?!
Are you checking in your C: drive?
I don't even get 10 minutes to VS Online
 
9:54 AM
ten minutes?
 
11 hours ago, by Johan Larsson
TFS is slow, checking in takes >10 minutes on average
 
yeah, it builds and runs tests though
The solution is pretty huge but still slow.
 
Oh, you have CI
Building and test running
I couldn't comment on the speed of that then, I don't have that on any of my projects
 
Hey guys quick question!

In this article http://msdn.microsoft.com/en-us/library/aa983326(v=vs.90).aspx it says: "Because your development computer has the SqlServerCe DLLs in the global assembly cache, you must configure the application to use the DLLs in the output directory."
How do i do that?
 
yeah so-fancy
@RoXaS no idea
 
10:03 AM
@RoXaS Have you tried setting "copy local" to true in the properties of the reference?
 
@Sean Yes, and it's copying them
Just not using them
 
Copy them out of the output directory, put them in a folder in your solution and reference them from there instead
 
That's a start
Then you need to change the reference to look at those files instead of the GAC
So remove the CE references under your project's references and re-add them but instead of choosing from the "Assemblies" list, browse for them and choose them from your solution folder
1 message moved to recycle bin
 
Ah thanks
 
10:12 AM
Did you try deploying/running the application on a machine that didn't have the SQL CE assemblies?
They should have been used just from having "Copy local: true" in there if there were no CE assemblies in the GAC.
 
I'm actually deving on a dual boot
the boot im running doesnt have it installed
But i can browse the other boot who has it installed so i have the dlls from there
@Sean The application still complains that windows sqlserver ce 3.5 is not installed :(
 
You've removed it from the prerequisites?
Basically, you have followed that article to the letter, yes?
Beyond what it says in that article, I haven't a clue about SQL CE
 
10:29 AM
What I did:
Cleared the SQL Server compact prerequisites
Found the dll's mentions and copies them to the prject folder
Also added them to the solution
and selected copy always
I Also copies the System.Data.SQLServerCe.dll file to the project folder (because I don't actually have it installed.
References > Add > Browse > Selected the local System.Data.SQLServerCe.dll file
Made sure the properties to copy local was set true.
I'm having lunch
So ill be back in 30 minutes.. Any help is greatly appreciated
 
10:58 AM
@RoXaS when you're back, open your CSProj file up in notepad or something - find the references section in there and see if under your dlls reference it has a <hint>...</hint> element ?
woops double ping O.O
 
11:11 AM
wow, anybody seen this?
 
@Maverik gonna try that now
<Reference Include="System.Data.SqlServerCe, Version=3.5.1.50, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>.\System.Data.SqlServerCe.dll</HintPath>
</Reference>
 
I'd use specific version yes - and yes its not referring GAC anymore at least
(you can set specific version from properties of dll in ide)
mm this is nice too: modern.ie you web peeps have nice stuff going for you
 
@Maverik Well here is the situation
I have to create a piece of software on a pc with as low rights as humanly possible
So I can't install frameworks or anything
 
11:29 AM
is that thing even portable?
you can't just randomly throw dlls in and expect them to work
why use that specific version too?
 
@Maverik Because My application has to be framework 3.5 which doesnt support 4.0
 
also you dont need to ping me for everything when i'm already here >.<
 
my bad xD
 
are you on xp too?!
 
Native windows 7
 
Well my dev laptop is windows 8.1
 
this tells me localdb is supported in 3.5.1 -- so use that
localdb is portable and still runs in process
 
Can you hit me with a quick setup?
 
no
thats what google is for
 
But I can't use any server.... and localdb makes a server right?
 
11:33 AM
what is a server?!
how is sql ce not a server by your definition?
 
@Maverik Your right it is...
 
thank you for the ping again
 
I'll figure something out
OOps
 
(i really strongly dislike the beeps in my ear that ping makes fyi)
i dunno why the eff SO couldn't use a friendly beep like facebook or something (one of the few things they did right from start)
 
Idk either
 
11:43 AM
its even more annoying that i can't selectively turn off beeps
so i end up turning entire notification system off
ok on to my exciting new coding adventures in land of Saml and.. now... java!
 
11:57 AM
Gl with your adventures
 
cheers
 
12:41 PM
@Maverik eeeww, Java? My condolences man. I'd rather have the skin on my shins taken off with a cheese grater.
and morning all
 
Yes i accept defeat from vmware
continuing from last conversation... they have documentation including sequence diagrams and much less cryptic code in their java samples
so I'm gonna join the enemy, learn their secrets, and then build my own
 
k. just don't get brain washed.
 
nah!!
i doubt anything can really move me away from VS
 
if you start answering questions in here with "You need an AbstractFactoryFactoryGeneratorFactory", we will be dissapointed
 
1:25 PM
Mav, this project sounds like a winner.
 
1:53 PM
Hey Bill - which project?
AbstractFactoryFactoryGeneratorFactory <-- lets not forget the implementation class of that AbstractFactoryFactoryGeneratorFactoryImpl
(I finally know what Impl suffix meant in .net samples!)
 
2:14 PM
Your SAML/Java project.
 
3:06 PM
hey punks
 
I'm doing Extra-Life again this year: If you can donate, please do. extra-life.org/…
Hey scape.
 
@Billdr the community thanks you! i'll have to throw something in this time around, even though no one in wisconsin sees that money ;) (kidding)
 
I think Gillette services a good chunk of North Western Wisconsin.
 
the razors/toiletries?!
if anything you inspire me to do something to raise money for charities in wisconsin, which is good enough for me. i just need to actually do it, like the 4000 other things on my list
okay so which one of you brits did it, @Maverik or @Sean?
(star board)
@Maverik I think I'm going to create a new sound to use for my ping
it's going to be me whispering "hey"
"hey, hey you, pst!"
 
@Billdr remind me on 1st and I'll see what i can do
 
3:16 PM
I'll be annoying every week, at least. :)
 
that won't help until my boss pays into my account ;)
and even then this year won't probably be as good as last as I'm in debt :(
(but i'm sure i can pull together something)
@NETscape if its sexy enough, i might even ask for pings ;)
BUT i dont want to reload javascript hack every single time i reload the page
 
No worries man.
if anon was from here, thanks anon.
 
:)
problem with anon - they can't say welcome xD
 
Very true. But I can say thanks.
 
3:32 PM
definitely :)
 
@Maverik in that case i'll use @Sean 's voice
 
:)
 
Mav do any brits have low pitched voices?
I bet @Billdr knows this one
 
Hmm?
David Bowie.
Brian May's voice is fairly low.
Roger Waters too.
so... yeah. There are baritones in England.
Oh hey... is it still going to be the UK if Scotland succeeds?
At that point it's a piece of Ireland and England, right?
Not very united.
 
i just imagine sean and mav having soprano voices
 
3:45 PM
I remember Sean being a tenor when I spoke with him, close to an alto though.
 
i remember his story of shooting a shotgun and how they gave him a 20 gauge cause he was small lol
you'd say bowie is a baritone?
 
and they loaded it for jellyfish.
Old Bowie? He gets down there. He's probably in the tenor range somewhere though.
 
Discovering...
I hit Cancel
 
old bowie being David Bowie who is also old.
 
Finishing the discovery process...
 
3:49 PM
Discovering what?
 
a modem
listening to david bowie. chill.
his latest album
 
Bowie is an awesome song writer. I don't think he's a particularly good musician.
 
i like the instrumentals
 
posted on September 17, 2014 by ericlippert

Today on the Coverity Development Testing Blog’s continuing series Ask The Bug Guys I’m turning it around and asking you to figure out why a seemingly correct and totally awesome implementation of random.Next has a serious bug. That’s right, it’s … Continue reading →

 
hey reed, kinda early for you aint it?!
 
4:12 PM
it's okay
 
anyone know whats happening when you drag a window to the top border of the screen (y = 0)
 
had a meeting this morning ;)
 
my custom window doesn't maximize (using borderstyle = none)
and i'm not sure how to implement it
 
you have to grab the window size and resize it, IIRC
 
what i tried:
previewleftmouseup
if mouse position.Y <= 0
state = maximized
but doesn't seem to work :(
 
4:19 PM
you may need to just resize it
 
4:30 PM
@NETscape I used to have higher pitch till early 20s, now its.. less high pitched though I guess its still a possibility to get confused if I pick up the phone and you don't know whom to expect on other end
early teens to late teens, nobody would believe they were talking to a guy on phone :D
i did use that towards some fun calls - mostly for my mates
but mostly it was annoying!
I can hit tenor ranges intentionally now (and requires a lot more effort than it used to), but its not my normal voice anymore
As for baritones, we have a lot more of them than the tenors :)
back to saml den :)
 
4:53 PM
Guys, did double referencing recommended?
E.g. Child has parent reference
The parent has a list of child
so, with child having reference to parent, I can call from parent : Parent.ListOfChild(this)
?
Ugh, I mean Parent.ListOfChild.Remove(this)
Because Parent is accessable via Grandparent.ListOfParent
 
5:18 PM
Is there no way to write unit tests for a control?
 
@JohanLarsson can you elaborate?
 
It is hard :) or ugly with automationpeer
 
@MosesAprico depends on the application
and that you're managing it correctly.
 
5:36 PM
@NETscape got it!
 
Moses that's basically Double linked list concept - nothing's wrong with it at conceptual level, until you screw it up :)
you can even have a reference to child itself (alias this) and there's still nothing wrong until you screw it up :P
 
@MosesAprico in what way were you thinking of using it?
realize it might make readability difficult. and i suggest using this when assigning properties/fields
 
public class A { public List<B> Bs {get; set;} }
public class B { public List<C> Cs {get; set;} }
public class C { public bool IsSelected {get;set;} }
I want to get each C, which IsSelected==true, and remove them from Cs in class B
So rather than I do :
`List<C> selectedCs=A.Bs.SelectMany(x=>x.Cs).Where(x=>x.IsSelected).ToList();`

and then remove all of them from each of their container
I think it's simpler to do :
public class C { public bool IsSelected {get;set;} public IParent {get;set;} public void RemoveThis(){ } }
 
5:52 PM
I'll definitely prefer RemoveThis() over your current ToList()
unless you've implemented IEquatable, you could end up in trouble
 
@Maverik Agreed. Alright I'll remember that
Never used IEquatable before though, just in case I stumbled upon it accidentally haha
 
6:07 PM
IEquatable needs to be implemented if you dont want to rely on referential equality
i.e you want to say if Id1 = Id2 then objects are equal across instances
 
OH, I read it as "If you've implemented...."
 
if you have implemented IEquatable, then you can clone things and not worry.. otherwise .ToArray() sort of things will create new shallow clones and you won't be able to find the objects that you expect to find in original list
(since their references will be different, clr will assume they're different)
 
sorry if this sounds stupid, but, what do you mean by clone things? Is it :
public A _a;
public A _b;
_a=new A();
_b=_a;
?
 
no
say you have an array
and then you do var temp = array.ToList()
does temp == array
no
because array got cloned. even if the objects are the same, they are different in memory
when you implement IEquatable, you can check properties of the object
so you can check your own values to see if two things are the same
at least that is my noob understanding :)
 
6:37 PM
and since I'm a bigger noob than Julien, I'll have to agree with him!
also I'm leaving, you're in good hands :)
see ya guys tomorrow
 
Do you guys think an intel core i5-4202 would be too terrible for visual studio?
 
probably not
personally, I find lack of ram or poor disk access more of a hindrance for VS in most laptops, not the CPU
 
6:52 PM
100% agree
ssd + ram will give you infinitely more performance then i5 to i7
 
@Julien hoo, thank you julien. Really helps.
 
np
 
 
1 hour later…
8:24 PM
What does a salmon coloured row in snoop mean?
@Reed you know this right?
 
i've never seen that before
is that in a custom control?
@JohanLarsson
 
yes
I'm animating the opacity
 
maybe it means its used in a storyboard
or visual state
 
sometimes the element is not shown and then snoop highlights the row in this colour
 
probably storyboard?
 
8:28 PM
could be
 
so opacity is 1, but visibility = hidden/collapsed?
 
transparent
not touching visibliity
gonna double check visibility now
Visible & opacity 1 but not showing
 
ahh ok
 
so painful to debug
I prefer tests
 
9:19 PM
Anyone have any experience with Drag & Drop in MVVM Light?
 
9:57 PM
@user1296981 I don't but, you can still ask in case someone comes through here that has an answer for you
 
10:39 PM
I actually found a decent articel abot it that I somehow missed when I was doing my research a month ago... codeproject.com/Articles/420545/…
 
 
1 hour later…
11:46 PM
10
A: How to supply a design time value for silverlight textblock that is bound to viewmodel property?

jCoderMaybe you could try <TextBlock x:Name="SomeText" Text="{Binding TheTextProperty, FallbackValue='Some other text'}" /> as documented here.

How ugly is using fallbackvalue for designtime?
dunno if there is a way to do DesignTimeValue?
 

« first day (698 days earlier)      last day (3451 days later) »