« first day (1725 days earlier)      last day (3209 days later) » 

12:00 AM
what the actual fuck...
 
lol
 
I have a solution open, I double click a file to open it in VS... and the tab opens, but no editor appears
 
Just found this in some Stack Overflow code =/
if (1 == 1) {
Literally, in the exchange written code, not by a user
 
@TravisJ somebody has been writing too much legacy sql/legacy-like C#
 
12:01 AM
Anyway, I gotsta go
 
while(1 == 1){/*heat computer*/}
 
 
5 hours later…
4:51 AM
Hello . I need help in integrationg paypal.
Please see this thread
http://stackoverflow.com/questions/31179657/the-remote-server-returned-an-error-400-bad-request-in-paypal
 
5:16 AM
morning
 
5:49 AM
any sharepoint devs here?I am hoping someone can help set me on the right path.I have no previous experience in it.I have worked with ASP MVC mainly and have the most basic understanding of webforms.A link to some proper beginner tuts would be greatly appreciated.Also feel free to share any tips on it.
 
aww yeah, tuesday morning
 
hi Benjy
 
6:10 AM
Yawns Morning
 
 
2 hours later…
7:40 AM
I published my code, and got a setup-file and a consoleApplication-clickonce-file
when I press them exactly the same happens. What is the difference between them? and which once should I use?
 
8:07 AM
mhrnng
 
ur hungry?
 
i think he's still hungover
 
8:24 AM
hi everyone
 
I forgot how to vowel
wh nds vwls nywy
 
@Squiggle yr mm
 
So, is the first y in anyway a vowel, or does it count as a consonant?
 
kai
depends on the language
 
We are talking English here :)
 
8:32 AM
y is a hybrid of two letters
two sounds*
 
Yes, so it is nwy
;)
 
The Great Vowel Shift was a major change in the pronunciation of the English language that took place in England between 1350 and 1700. Through the Great Vowel Shift, all Middle English long vowels changed their pronunciation. Because English spelling was becoming standardized in the 15th and 16th centuries, the Great Vowel Shift is responsible for many of the peculiarities of English spelling. == History of analysis == The Great Vowel Shift was first studied by Otto Jespersen (1860–1943), a Danish linguist and Anglicist, who coined the term. == Overall changes == The main difference between the...
Y stems from both the latin "Greek I" and the Danish "thorn"
(thorn-y was mostly replaced by "th")
 
Any UK based devs here attend ProgNET15 conference last week?
 
Nope. Was it good?
 
Good conference! The guys from Akka.NET were there - nice little introduction to that.
JustEat were there showing their deployment, production methods
Some emphasis on functional programming with F#
That was... different.
 
8:47 AM
I still gotta get round to learning F#.
Functional programming is awesome, but it's never quite clicked for me
 
@Squiggle it's pretty cool, there are a couple of really useful language-level features
Complex stuff like monads and combinators...haven't understood what they help you do, yet
 
Takes a bit of getting used to.
We were told to forget everything we know about OOP
One good thing about F# is you spend less time making unit tests
 
why is that?
just because everything is cleanly encapsulated?
 
9:06 AM
in HTML / CSS / WebDesign, 52 secs ago, by Sippy
Just rolled back a whole feature release because spec was wrong
in HTML / CSS / WebDesign, 51 secs ago, by Sippy
Just found this in the code we rolled back to: if ('False'.toLowerCase() !== 'true') {
 
roffles
 
Wonderful, we have an account used for services in production. And nobody is here who knows the password, and we have no documentation. Great day, would cry again!
 
@Squiggle It's strongly typed - if your code compiles it usually works. I can't articulate it better than that.
From codeproject:
Inherent Testability and Good Design

Modern object oriented design principles known as SOLID can be easily violated in C#; that’s why it is important to know them and follow them closely. However, the very same principles are in the nature of the functional programming. So the F# language encourages you to code the right way from the start and it takes some deliberate effort to mess things up in F#.
 
:)
 
kai
does it hold up well in practice though?
 
9:17 AM
I don't know. I haven't used it enough.
 
9:27 AM
is there any way to change : enumerable.Where(lamba1).Where(lambda2) to something like : enumerable.Where(lambda1 && lambda2) ?
 
enumerable.Where(o => lambda1(o) && lambda2(o))
 
list.Where(o => o.Name == "Dave").Where(o => o.Surname == "Smith");
can just become list.Where(o => o.Name == "Dave" && o.Surname == "Smith");
 
I was hoping to be able to avoid the "o =>"
 
you can write a method that wraps lambda1 and lambda2
which is essentially what the compiler does when you use "o =>" notation
 
(so my question was badly asked, I think I meant predicates, not lambdas)
 
9:35 AM
enumerable.Where(MyPredicates);

static bool MyPredicates(obj o)
{
    return lambda1(o) && lambda2(o);
}
 
I'm trying to avoid "o =>" for conciseness
 
well I just showed you one way to avoid it
maybe the only way
 
is there any person here who would like to help me ?
 
umm whats the problem?
 
i'am zooming on an image where the mouse is, and what i need to do is to follow the position of a point in this image when i zoom, but the deplacementof the point depends on the position of the mouse... so i don't know how to do.... i know i'am not really clear :/
 
9:47 AM
you mean like zooming in on Google Maps, where the zoom is pinned to the location your mouse is hovering?
 
yes
 
is this in WPF?
 
yes
the picture is composed by circles and depending on where i zoom the deplacement of the circle is different, that's this deplacemetn that i'am trying to follow
do you see what i mean ?
 
is this an image you're zooming in on?
like, a PNG?
 
yew
yes
 
9:56 AM
I'm not so familiar with WPF. Anyone else around who can advise?
 
actually i don't think it's wpf problem, it's just math
deplacement of points...
 
if you're not able to describe the problem clearly, we can't help
and it might be the reason you're not able to solve it
 
@Json You have two coordinate sets, if I understand correctly. The Viewport, where the x/y is pixels on screen, and your physical coordinates, which is where you are in the image's bitmap, right?
 
10:13 AM
o/
 
o/
 
  o/
 /|
 / \
Aha
 
bots gonna bot
 
whistles
What evidence?
 
10:26 AM
crickets
 
10:58 AM
OK chaps I've been tasked with writing a few days worth of documentation.
I may be a little distractable this afternoon.
 
@AvnerShahar-Kashtan yes but it's more Canvas< - > Image relation
 
11:10 AM
@Squiggle documentation measured in days and not pages. lawl.
 
Lol
 
@TomW I have a deadline and no requirements. Days seems like the best measure.
 
@Squiggle hug
No reqs is like my fav thing
 
it's both a curse and a blessing
 
</sarcasm>
 
11:20 AM
"Just write something!"
 
web services
 
@PleaseTeach uh.. hi?
 
scuse meeh...i r not gugle
 
@Sippy read whole line, it says Please Teach web services
 
not in chat - it says 'Please [icon] web services'
 
11:25 AM
We have a joker here ladies and gentlemen.
 
@Squiggle Oh, i have been cheated by SO chat then, i see it says please teach
 
I'm using a small window.
767 pixels wide
 
at least you're not using a small widow
also, mediocre morning to you all
 
@Squiggle stretch it
 
bop it
 
11:28 AM
Kill your parents!
O_.
 
that escalated quickly
just like my fucking dream last night
I was going to jail
 
Nooooooooooobody wants to know.
Oh ok.
 
did it involve Bill Cosby?
 
Continue... possibly.
 
11:29 AM
anyway - someone knows much about web services, they pinch me when i look at something else !!
 
that was about it
 
Hey hahaha I wonder what Canadian prisons are like
"Sorry, eh."
"Okay you're free to go!"
 
@Sippy TreeHouse
 
!!youtube family guy escaping from canadian prison
 
11:30 AM
:o
 
lololol
@PleaseTeach What are you on about?
 
0
Q: Duplicate web services

Please TeachI am in situation I have two projects in a solution, myCompany.Utilities myCompany.InternalWebSerivces (accessible by any authenticated domain users) Now we are adding another product-B to our company, which going to be integrated with current product-A but COULD be hosted on a diffe...

 
Jesus shitting christ. I just made myself jump out of my skin. Trying to figure out which type of spider we saw on holiday, looking at images of spiders, my smartwatch buzzed with a message and I almost fell out of my chair.
 
You have buzzing spiders over there?
 
good morning!
 
11:33 AM
nope we have almost no spiders, which is why looking at photos of Golden Orb Weavers was creeping me out
 
Those are big, right?
Or just the web?
 
I think I understood something wrong, why doesn't this code call the setter: gist.github.com/FINDarkside/3897d866db7548984188
It only calls getter
I thought it would call setter when datacontext is changed
 
Noo
@FINDarkside You should use the changed event
Those getters/setters are there when you want to use them in the class itself
The dp system doesn't use them
 
Well the binding thing should use setters
Thats what I read
 
@Loetn one of the biggest :-/
 
11:36 AM
If I recall correctly, the binding system doesn't use those set/get. You'll have to work with the changed event of that dp
 
@FINDarkside Setters and getters are wrappers for the underlying DP mechanism, for your own code.
 
^
 
DataBinding accesses the internal storage directly.
 
And I didn't need property changes with any other control, they update when i change datacontext for some reason.
 
when it comes to reality no one helps
 
11:37 AM
@Squiggle Yuk!
 
So... I'm just trying to pass a property to the user control, is this the right way to do it?
Easier way for me would have been to create whole user control in code and take the property as argument, but I guess this would be the "right" way?
And yeah my bad, the getter call was from my own code.
 
@FINDarkside Yes
 
I'm not entirely sure what you're trying to do. What does InitializeInventoryView do? It takes the item that was passed to it and initializes other fields based on it?
 
Well it actually creates most of the usercontrol.
I had wrong name, it take inventory as argument.
Which has multiple items
 
In so, you could either add an event handler for the itemProperty's DependencyPropertyValueChanged event, or just have various other sun-controls in the UC bind to inventory.
 
11:56 AM
How about if I just create the usercontrol from the code and pass the inventory to the constructor? Even if it would be "the wrong way" I don't really see any downsides.
This binding thing seem so unefficient, I have to write like 20 lines of code to pass one property from xaml. If i do it all in code it's one line. new IntentoryView(inventory);
 
@FINDarkside Do it however you like. There's no style police.
None of us are here to sell the concept of MVVM.
I believe it's better. You can either try to work with it until you grok it and its benefits, or not. Your call.
 
But can't it be MVVM if I do it in the code?
And that's one thing i needed to ask. usercontrol.xaml is part of the view right? But what about usercontrol.xaml, is that view or viewmodel or what?
 
you mean .xaml.cs ?
it's the view too
 
@franssu Yes
But I don't understand, does that mean that is should parse absolutely everything to some format that you can just bind it to the view?
 
why would you have to parse anything ?
 
12:06 PM
In the end, your control comprises a set of subcontrols - textboxes, buttons, etc - that display data that's contained in the Inventory object, right?
 
@franssu Well then i create the usercontrol in the code of the usercontrol?
Or where
 
you mean instantiate ?
 
I mean that can't just bind InventorySaveData to usercontrol and make it do everything magically.
 
Ignore for a second the fact that it's a usercontrol. Treat it as a collection of standard controls. Each would be bound to something in the viewmodel, right?
Effectively, to an InventorySaveData in the VM.
 
Someone said that I'f im creating controls in code I'm doing something wrong :P
But let's say that you have a text file and you want to create one textbox for every line, how the heck do you do that without creating them in the code?
Well currently I haven't been trying to follow MVVM but i was thinking about changing it now, the project is not too big to do that and I probably need to learn it anyway.
 
12:22 PM
you have a long way to go
but there's a ton of resources about MVVM online
 
And to clarify it's not a control like button, It's a new panel that has lots of stuff
 
@FINDarkside I'll have my VM read the file and split it into a List<string>, and then have an ItemsControl bind to the List<string>, with an ItemTemplate that defines a TextBox for each item in the StringList.
XAML is about composition. A list of textboxes is simply a repeating control with a template.
 
So you can do that without doing any loops manually? If you add a line to text file you will have one control more?
 
yes, by binding an ObservableCollection to the ItemSource property of an ItemsControl
 
@FINDarkside Yup.
Assuming you use an ObservableCollection<string>, of course. It's an IList<T> that automatically updates the UI whenever an item is added or removed.
 
12:33 PM
(it's a bit oversimplified, ObservableCollection does nothing more than raising an event when it's changed)
 
@franssu Yes, indeed. It's the underlying binding mechanism, on both ends, that's responsible for representing those collection changes in the UI.
 
Hi everyone, I'd like to learn about pros and cons of using var keyword. Can anyone give a link or just say their thoughts?
I'm a newbie myself but I find it ugly
However my workmate is using it a lot
 
the only cons I see is that you could not by eye see the type of what you are manipulating
so my rule is, if the type is elsewhere on the line, I use var
otherwise not
 
As in "var a = new A()"? Sounds reasonable
 
yep
 
12:42 PM
@franssu That's a good and common practice. I have to say, though that I often don't really care about the types I'm manipulating.
 
but "var a = someMethod()" just burns my eyes
 
@Dunno I found it ugly for the first day or so, but it's actually fine. I much prefer it now.
 
If I have a var id = entity.Id, I'm fine with not caring if it's an int or long, or sometimes even a Guid.
To clarify: in a situation where I would be fine with using a property directly (say, GetEntityById(request.EntityId), I wouldn't mind using var there either (var entityId = request.EntityId; GetEntityById(entityId);).
 
var is used only when you know the type when you declare the variable, which is almost always inside a method. Methods are normally small, so you shouldn't really get confused about types for local variables.
 
@Squiggle right, that's a good point
still, I think I'm going to keep typing full types
especially since I'm working in a team
 
12:47 PM
The diving bell spider or water spider, Argyroneta aquatica, is the only species of spider known to live entirely under water. Argyroneta aquatica is found in northern and central Europe and northern Asia up to latitude 62°N. It is the only spider known to spend its whole life under water. As with other spiders, it breathes air, which it traps in a bubble held by hairs on its abdomen and legs. This gives it a silvery appearance, despite it being velvet-grey. The spider inhabits ponds in Europe and northern Asia, and lives for approximately two years. The appearance of the diving bell gave rise...
 
the only time when I don't use var is when I want to use a base type of an object on the right side of the equals sign
 
kai
I always use var, no exception (except for when it's impossible, such as when I do implicit conversion in a for loop head or when I split declaration and initialization.
 
@Dunno You'll rethink that after the next time you instantiate a Dictionary<Tuple<int,string>, List<DateTime>> :)
 
ICollection baseList = new List<Entity>();
 
Phoneutria, commonly known as Brazilian wandering spiders, armed spiders ("armadeiras", as they are known in Brazilian Portuguese), are a genus of aggressive and venomous spiders of potential medical significance to humans. They are mainly found in tropical South America, with one species in Central America. These spiders are members of the Ctenidae family of wandering spiders. The Brazilian wandering spiders appear in Guinness World Records from 2010 as the world's most venomous spider. Guinness World Records states that although the Brazilian wandering spider venom is the most toxic, an effective...
 
kai
12:48 PM
I feel like if you have no idea what a variable is or what it's used for, then you have other issues, such as poor variable names, bad scoping, too long methods etc
 
@Sippy see the part about what it does to humans
 
it's funny how the first line of the helpful info for new chat users is "be on topic"
 
@KendallFrey whats it do
@franssu ha, yeah
 
C# better than Java since 1995, thats a good one
 
lol
1++++ for that
 
12:53 PM
@SteveG unstoppable boner
 
So is stuff like ItemTemplate the modelView?
 
^ that's the one I encountered. When slightly drunk, walking down a forest-covered path.
I noped the hell outta there
My apologies to arachnophobes in the room.
 
@Squiggle it looks like a killer robot disguised as a spider
 
That might explain the glowing red eyes
 
what is this, Minecraft
 
1:01 PM
fire
kill it with that
 
punch spiders to get wool
 
no, punch spiders to get string, put 4 strings beside each other to get wool
or something
punch sheep to get wool
 
does not work on me, can confirm
 
@KendallFrey of course. My bad.
 
@FINDarkside you should check the WPF chatroom
 
1:04 PM
@franssu ok
 
What's up with all the spiders? I do not like :(
 
Has Minecraft been rewritten in yet, then?
 
Gimme some kittens instead
 
for all your kitten placeholder image needs
 
@Squiggle Whooooow
 
1:06 PM
@Squiggle English, do you speak it?
 
@KendallFrey Is ok, I no speak English very good, I understand
 
@KendallFrey yes but no I'm tired leave me alone
 
Yes, but no, but yes, but no?
 
ya but no but ya but no but what happened was
 
Is he gay?
Or is he not?
 
1:08 PM
Is it relevant
 
What the fuck are you lot smoking ...
 
ya but no but ya but no but ya but
 
But but but
 
@KendallFrey wow lol
 
oh shit not again
your file has conflicts
ok
loljk
let me break all the things for u
 
1:23 PM
Hey everyone.
 
hi greg
 
@SteveG What's going on dude?
 
Yeah Steve
What's going on?
Huh!?
 
You got me running, going out of my mind. You got me thinking I'm wasting my time, don't bring me down.
 
Hall & Oats?
ELO?
 
user1804599
1:26 PM
Does dotnetfiddle.net support unsafe code? I can't find an option to enable it anywhere.
 
ah, wrong.
 
@tmutton So, so wrong.
@rightfold It should work if you make the proper decelerations.
 
yeah, slow down in the correct way
 
user1804599
???
 
lol
> decelerations
 
1:32 PM
@rightfold I'm not seeing anywhere to change compiler configuration.
So no.
 
user1804599
:(
 
user1804599
> We couldn't submit your vote at this time.
 
@rightfold I can run something for you if you want
 
@rightfold I would think hosting a platform that could execute unsafe code would be dangerous, no?
 
user1804599
1:33 PM
@Jeremy Nah, I'll install Mono. :p
 
@rightfold k
 
user1804599
@CuddleBunny Why would it be any more dangerous than running any other code?
 
user1804599
Nobody in their right mind would not have arbitrary code run in a fully isolated VM.
 
@rightfold msdn.microsoft.com/en-us/library/t2yzs44b.aspx : "Using unsafe code introduces security and stability risks."
 
@CuddleBunny I think rightfold's saying he expects dotnetfiddle to run code in fully isolated VMs under the hood - so why not let users execute whatever code they want?
 
1:35 PM
@KendallFrey Declaration, since you had to correct me.
 
@rightfold I am sure it does but I doubt every fiddle gets it's own vm.
 
@CuddleBunny IIRC that's how coliru does it
 
user1804599
@CuddleBunny So does starting a process that wipes your hard drive.
 
Community 2015 RC
> This license will expire in 117 days
That seems arbitrary. Was a VS 2015 release date announced?
 
@Jeremy 20th
 
1:37 PM
@CuddleBunny of this month?
 
@Jeremy yeah
 
Hm
 
user1804599
lol, Coliru has Mono C# compiler installed but no /proc mounted.
 
user1804599
So you can't use Mono.
 
@rightfold Nobody in their right mind would use a browser with javascript support.
 
1:38 PM
@rightfold That's cool if they do really make it work that way. If that is the case, I would say not enabling unsafe code at that point would be laziness in the face of rare use case.
 
// ReSharper disable EmptyGeneralCatchClause
 
silly question guys if I "Enable NuGet Package Restore"
i dont need to check anything in from my packages folder?
nuget will download all those dlls on build each time?
 
If your build server supports it, yes
 
and how does nuget know where to get these from the packages.config file?
assuming I am building locally in visual studio 2013
 
The packages file is checked into your projects
Yes, VS2013 does this automatically
 
1:42 PM
any good suggestion on linq profiler?
 
object linq? or ef linq?
for both, VS2013 works well for me
 
object linq
VS2012 :(
 
@tweray Can you get 2013 community?
 
@CharlieBrown thank you!
 
@CuddleBunny well, guess i can, there is a built-in profiler for linq in vs2013?
 
1:46 PM
@BobSinclar you shouldn't enable nuget restore for your projects, the package manager in visual studio restores missing packages anyhow
 
@tweray ignore that, I misread Charlie's messages
@tweray I don't see any tools for object linq, tons of ef linq though
 
Uggghga;sgsdkdshk
Why can't I stay home and work on projects
 
@StevenLiekens I just acidently checked in a bunch of DLLs under my packages folder. In order to test that this is working should i just delete the dlls, or can i delete all the sub folders under the packages folder and see if it builds them back for me again?
 
Oh yeah. Money.
 
yeah, i am suffering from that, i got some stupid linq here that i don't want to rewrite, but i need to figure out which guy is making it slow
 
1:48 PM
delete the packages folder in its entirety
 
thanks charlie
 
@BobSinclar I've been using this: github.com/github/gitignore Visual Studio .gitignore template that has most anything under the sun that you shouldn't check in listed, even if you use a different vcs it is worth a look.
 
I always use githubs ignore templates
 
@CharlieBrown so i deleted the packages folder and for some reason they dont build again
 
What's your error?
 
1:54 PM
i have 201
 
you might have to update your package manager
i know that sounds like a paradox
 
the type or namespace name 'aspnet' does not exist in the namespace 'microsoft' are you missing an assembly reference?
 
use the extension manager to update the package manager extension
 
@BobSinclar for me, it usually offers to restore the packages when I open the solution. Maybe try closing it and opening it again?
 
ok trying that and i have nuget 2.8.5
and do i need to have allow nuget to download missing packages checked?
 
1:55 PM
is nuget set to get from nuget.org?
It should attempt to download the missing packages yes
 
yes it is
nuget.org
and i should just clean the solution
then build it and it should work right
 
yes
 
@BobSinclar package restore on build enabled?
 
I just enabled it
it seems to be fetching them now
 
i believe you can set this on a per project basis
 
1:57 PM
mind you I came from a Rails background only started .net a short time ago
thanks tmutton
 
This should be easier for you in theory.
But this is Microsoft.
I will say no more.
 
"A person with 10 years experience is quite different than someone who has experienced the same year 10 times"
3
 
yeah Gemfiles seemed like a similar concept just slightly less reliable at times
 
love that quote
 
But there is hope.
 
1:59 PM
definitely agree charlie
 

« first day (1725 days earlier)      last day (3209 days later) »