« first day (1724 days earlier)      last day (3227 days later) » 

3:03 PM
Has anyone used a Custom Validation Attribute?
 
Aye. They're fairly easy to implement.
 
@Squiggle What does Aye means?
 
the attributes?
 
!!define aye
 
@KendallFrey aye (archaic) ever, always
 
3:13 PM
A simple 'yes' would have sufficed
 
@sq
@Squiggle, have you done custom validation attribute for the whole model or just individual property?
 
3
Q: how to validate a property according to another property in DataAnnotation

KerezoConsider I have a these two properties: public class Test { [Required(ErrorMessage = "Please Enetr Age")] public System.Int32 Age { get; set; } [Required(ErrorMessage = "Choose an option")] public System.Boolean IsOld { get; set; } } When the user enters for example 15 for Age ...

it's simple to do it either way :)
 
Hopefully, I'm trying to follow an example now from Pro ASP.NET MVC 5 book.
 
Can you exclude a filed from checking in permanently?
I have web configs that i do not want to check in
and I have to exclude them every time I check in
 
So just to confirm, if I want to validation several fields against each other in my model, I should just a single custom validation attribute for my whole model
 
3:21 PM
@Obviously .gitignore
or the equivalent for your SCM
 
even though my model contains some properties that I don't want involved in the whole validation
 
I use TFS
 
@Obviously My sympathies
.tfignore IIRC
 
@KalaJ All validation attributes will be evaluated when your model is validated. Just don't put validation attributes against the properties you don't want to validate.
 
@Squiggle, for example, I have a model like this: pastebin.com/kU9fzt9K and I only want to validate all the answers with each other. Should I add a custom validation attribute to the whole class or only the individual properties?
 
3:35 PM
anyone know the command for the NuGet Packamanger console to recreate the packages folder
 
doesn't it do it automatically when you re-build with package restore enabled?
 
* how do i enable package restore
 
@KalaJ I'm not sure if this is "best practice" but in the past I've just written a method on the model called "Validate" and stuck the validation logic in there
using the same ValidationContext / ValidationResult stuff
you could write a specific class validation attribute to do that as well
you might end up with a lot of if...else if etc code
just so long as the ugly is consigned to a single place
 
@Squiggle, yup okay but I'm not sure if I should apply [UniqueAnswersOnly] to the whole model or just the individual properties...
 
3:51 PM
I'd say the whole model, but your custom attribute implementation will need to know the type of the model you're validating
so it won't be portable, but will be clean and simple
 
Okay, I'll give it a try. Thank you :)
 
4:20 PM
What do you think would be the ideal way for performance and clarity, to see if a string contains any character within a List.
 
regex maybe
 
You think that would be ideal @KendallFrey?
@KendallFrey Just do a normal alphanumeric regex, detect the match?
 
@Greg reverse the match
list.Any(x => string.contains(x))
 
@CharlieBrown Thank you. That would be a bit more clear I believe.
 
@CharlieBrown requires enumerating the string N times, rather than once. Dunno if that would be slower or not
 
4:35 PM
certainly, as with everything, profile for performance
 
4:52 PM
whoo, my boss gave me $25 for being the first to update my profile
 
@Pheonixblade9 Work going alright now?
(sure sounds like it)
 
@Jeremy no, pretty much the same. but yay money!
 
i prefer a dozen of beer
 
lol
its been 90F and over the past 2 weeks, that doesn't help stress levels
 
Had a dozen beers this weekend. I'm done for a while.
 
4:54 PM
this is seattle, a dozen decent beers is probably more than $25, lol
 
Wisconsin is the place to be
6-pack of good pale ale for $7 B)
 
Nothing better than working when it's BBQ time..
 
I don't understand the love of pale ale. it's just bitter
 
o/
 
Hoppie like a Hippie
 
4:56 PM
give me a good doppelbock or lager or something instead
 
even half a dozen works, that means i can drink in office for like 6 days
 
@Pheonixblade9 I agree that it's bitter, but certainly not that it's "just" bitter... ;)
I suppose coffee is bitter, too.
 
that just make the day much much much shorter
 
@Jeremy heck, even chocolate is bitter
 
@KendallFrey your mom is bitter
 
5:03 PM
your mom is butter
 
his mom is butler
 
@KendallFrey Oh, so it turns out that Zalgo text is basically just adding combining characters to whatever you put in.
 
his mom is buffer
 
5:07 PM
his mom is bugger
 
@Jeremy yup
 
his mom is buzzer
his mom is butcher
 
So that's really easy to write. neat-o.
 
your mom is a bummer
my phone's battery is weird
the rate at which it decreases seem to be inversely proportional to how much is left
1 day: 85% 2 days: 60% 2.5 days: 0%
 
@KendallFrey Background processes?
 
5:12 PM
no
It's just the battery shows like 75% when it's half gone
 
@KendallFrey That's similar to my car's mileage
 
@KendallFrey Common problem. Get a new battery
 
mine is fine that way
 
~650km / tank. I can do 400km in 1/4 of a tank. 250km for the remaining 3/4
 
5:13 PM
@MoonOwlPrince nah, I'm long overdue for a new phone
Should I get a Windows Phone? No one I know has one.
 
@KendallFrey Yes. Get at least a Lumia 920
 
why?
 
Because I use a Lumia 920 and I have never felt like complaining
 
When I was in high school my car ran out of gas when the gauge said it was still a quarter full
Cars: not even once
 
but why Windows?
 
5:16 PM
Because it is simple, efficient and coming from a company that cares about your utility
 
@KendallFrey I currently have all three (due to work / legal obligations :( ) I have to say:
Windows - Love this phone. Great productivity, and it just WORKS. I love the cortana integration.
Android - They have good games. IT pisses me off too much
Apple - WTF. WHy is it so hard to use
 
Apple isn't an option for me, fortunately
 
I'm not a monogamous clicker. I need more than 1 BUTTON. DAMMIT APPLE!
 
Cortana > Siri by far
 
hello1 sorry for the question but using webdriver, to sleectframe I must switch?
 
5:18 PM
@MoonOwlPrince That's not even relevant for me
 
@KendallFrey I'm very happy with the WP8.1, and moderatly happy with WP10
 
The blue tooth integration with Cortana by far is the best i've seen
 
I hate how Android handles apps and their updates
Windows Phone apps from my observation also tend to be smaller in terms of download size
 
"Hey Cortana" [phone wakes up] "Yes, Ryan" "Send babesname a message" [ok] "Message: hi babe how are you". [message sent]
i can write an email while driving, or while playing leage of legends.
without leaving the game / car
 
@RyanTernier and that is only useful for america or the uk. Stupid voice recognition isn't available for me :(
 
5:20 PM
@BenjaminDiele Yet. Microsofts Skype translator service is still being tested. that should roll out soon hopefully :\
 
voice recognition isn't even a useful feature for most people
 
@BenjaminDiele Change your region and language to English (US) or English (UK)
 
@MoonOwlPrince I did, but Cortana doesn't understand my english dialect :)
 
You from boston?

English: Send Mark an email
in "Bastan": Sen muk an emyl
I went to Boston last week on business, damn i could hardly understand them. Almost as bad as Newfoundland
 
@RyanTernier dont you mean maahk?
 
5:22 PM
it's either maahk or Muuk
last name: Ternier. Turn-yay It was funny listening to them say it
 
Tuhnay was the best they could get
 
@RyanTernier That'll teach you, having a french surname
 
I know, it's like I walk around with a "I surrender" sign on my head :(
Every party I host people think it's an invasion party
 
Is it the right way to concat strings in sql server?
SELECT CONCAT([FirstName], ' ',[MiddleName], ' ', [LastName])
or does it looks amateurishhhhhhhhh
I am trying to get the full name
 
5:26 PM
@Obviously Do what you need to do. First step of developing is:
1) Get it working
1.5) Make sure it's readable.
2) Do other stuff
....{other stuff}
99) micro-optimize it
 
Yeah but sometimes you have architects who are bullies
 
If you have requirement to reutrn the full name, then that works for most of the cases
 
@Obviously unfortunately yes
 
@RyanTernier sometimes, Windows Phone's bluetooth in general blows in my car
 
@Obviously if you're worried about read performance, a calculated column is probably better. If you're worried about write performance, on-the-fly calculations are probably better
 
5:27 PM
@CuddleBunny Yea, i've had issues with my lumia 920's BT connectivity - especially if I turn the car off while in a call
 
my Subaru's bluetooth doesn't work well with my HTC One M8 :(
 
The biggest annoyance I have with WP is that it takes so fucking long to get connected to my car's bluetooth.
 
@Obviously You will learn as you go through your career little things to help with these questions. Right now, the caculated column will be good, however if you're returning a LOT of these rows, you might want to create a column for it, or cache it. What version of SQL Server are you running?
 
2012
 
@RyanTernier the connectivity is fine, I don't remember if it was gddr 1 or 2 that they added support for a different protocol and made it default. But that specific protocol is seemingly not implemented right on my dash system so it causes her to "call" the car to talk through it instead of just talking through the regular bluetooth audio connection the music uses
GPS apps do the same
 
5:29 PM
In 2014 you get more options to pin data to memory, so you could create a view that contains that data, and cache it to memory
 
same issue also causes Xbox Music's shuffle button not to work in my car D:
 
Well, then get a new car!
Anyone ever have issues in VS where it holds onto an older version of a DLL rather than the one you just built - after cleaning?
 
Imagine you have two classes with the same identifier and a static method i. Suppose that the classes do not implement any interface and both inherit from the System.Object class. Method i's parameter is a variable of type Company.Types.Example. Suppose the users of a library that contains i but not Example decide to write up their own class Company.Types.Example independently and add their respective custom Company.Types as a reference to their projects.

Person A's Company.Types.Example has the same number and signatures of methods, properties and field members. as the intended type of th
 
@RyanTernier Is it getting ref'd in from elsewhere?
 
@Jeremy Nah, it's not getting removed from the c:\windows\microosft\.net 4 frameowkr\temporary file location
 
5:36 PM
Sometimes I wish the IronRuby projects were not abandoned
 
Oh, weird. Haven't run into that yet.
 
Can't wait for VS 2015 to be done
All binaries are stored in RAM not on the Hard disk
so it saves IO writes for SSD drives, and it fixes shit like this :(
 
I need to get an SSD for my laptop...
 
^ just go get a new laptop
 
Get a Chromebook
 
5:44 PM
nah, it's still a good laptop
i7-4770k, SLI'd 750m GT's, 8GB DDR3, 1920x1080 screen
 
What is its mass?
 
idk, about 5 pounds?
 
That is a workstation
 
it's a desktop replacement, my work laptop is a maxed out MBP 15", I don't care about the weight
 
General question for you all. We are looking into implementing continuous integration along with TFS (we are already using TFS for project tracking and change sets). Anyone have any experience with that?
 
5:53 PM
mass is not measured in pounds
 
@BradleyDotNET in kilogrammes?
 
in metric, yes
 
@BradleyDotNET And empirically?
 
Its a weird one, and not always consitent
looks like the base unit is a grain
I thought there was another one though
 
sigh ignoring is such a nice thing to do
 
6:03 PM
posted on July 06, 2015 by Visual Studio Blog

In a recent post on Extending Visual Studio 2015 we shared how easy it is to create Visual Studio extensions. We also shared links to our improved docs and to our presence on GitHub. Continuing in this vein of improvements to make it super easy to write and share extensions, I’d like to share the improved integration with GitHub in the Visual Studio Gallery. Today there are thousands of

 
Reddit is so cute, thinking it can into politics. Cat pictures now, please.
@Pheonixblade9 My only plonk...
 
@Jeremy plonk?
 
!!urban plonk
 
@Jeremy plonk Cheap wine
 
booooo
!!wiki plonk
 
6:10 PM
Plonk may refer to: Plonk (wine), poor quality wine Plonk (Usenet), adding a particular Usenet poster to one's kill file (or, by extension, adding a user to one's filter or blacklist in other online media). Ronnie Lane or Plonk, British musician and member of Small Faces Dr Plonk, a 2007 Australian film, directed by Rolf de Heer Plonk (TV series), a 2014 Australian TV series...
 
yeah, the usenet one
 
!!urban plonk 2
 
@Pheonixblade9 plonk The sound a user makes as it hits the bottom of another user's killfile bin
 
!!wiki plonk (usenet)
 
@Jeremy No definition found for plonk (usenet)
 
6:10 PM
yeah I guess you could say I plonked moonowl, lol
 
Plonk is a Usenet jargon term for adding a particular poster to one's kill file so that that poster's future postings are completely ignored. It was first used in 1989, and by 1994 was a commonly used term on Usenet. To publicly repudiate a poster, it is added to one's reply or is simply used as the entire, one-word reply. It is also used as a verb, as in: "I plonked that idiot". The word is an example of onomatopoeia, intended to humorously represent the metaphorical sound of the plonked user hitting the bottom of the kill file (imagined perhaps as a bit bucket). Folk etymology sometimes gives...
 
!!google plonk usenet
 
This is the time Facebook could hide likes
 
Delicious reuben
Wonder how many pounds I've put on since I graduated.
> The first known use was in 1989 by a Richard Sexton in the alt.flame newsgroup.
>
>>>Please refrain from posting to talk.bizarre until such time as you
>>>cease to be an asshole and become at least one of: bizarre, creative,
>>>or entertaining. You are welcome to dump your rotting ordure in rec.humor
>>>or some similar group where your fellow mental defectives congregate.
>>
>>>Make me.
>
>*plonk*
 
6:16 PM
Apparently plonk is also Australian slang for cheap wine.
 
yep, I've heard that
 
couldn't find the plonk button before. Much easier to resist feeding now
 
6:35 PM
Hi someone here who can help me out with updating a html page on my c# webserver?
 
Thats highly dependent on where the problem lies
usually to update a page you just copy it over :)
 
Copy make a backup and screw with it till it comes out look like Obamacare.com
 
What i want to do is change text in the page while its opened without refreshing.
Is that possible?
 
On a live page?
without any additional changing/refreshes before then?
 
Yes like pushing new information to the client
 
6:40 PM
Yep Ajax
 
so... push technology
 
Sorry, to be more clear, you want to do this right now, or you can update a page to support that
 
:S What do you mean by that
 
well, you can't take an existing page and session, and just randomly change it and expect broswers to pick up the change
however, if you modify your page to use AJAX, or a web socket or some push technology, then you can change content on future sessions
 
Hm. @Creysys you specified an html page. Do you mean a static file that exists on disk, or a page rendered by asp.net?
 
6:44 PM
The page is just one line of text
 
That doesn't answer my question
 
Its generated dynamically
Without any asp.net
 
!!google Creysys signalr
 
@Pheonixblade9 That didn't make much sense. Use the !!/help command to learn more.
 
Err...
 
6:45 PM
@Pheonixblade9 There are no search results. Run.
 
What's it generated dynamically by?
 
@Creysys I think you need to think through what you're trying to do. You're spouting nonsense at the moment.
 
How do you need to change it? Can you just use javascript?
 
Alright soo
 
Go write it down. Think about it. Delete what you wrote. Write it again. Delete it again. Now write it a third time. Then show us what you wrote
 
6:46 PM
Just a sec
My program reads information from a server. It also accepts incoming connections and sends them the information in form of a html document.
Whenever the information for the server changes the html page should update automatically at the client side
 
Oh, a DIY webserver. Fair enough.
Yeah, sounds like a job for signalR
 
Isnt there anyting in the http protocol to make the client refresh?
 
I think that's usually done on the client side via some JS
 
................
 
!!tell Creysys google signalr self host
 
im feeling like a retard now
 
There are a couple of different mechanisms, which I had to look up
 
thanks everyone
I guess i can make the client refresh every 10 seconds or so
 
Push, or server push, describes a style of Internet-based communication where the request for a given transaction is initiated by the publisher or central server. It is contrasted with pull/get, where the request for the transmission of information is initiated by the receiver or client. == General useEdit == Push services are often based on information preferences expressed in advance. This is called a publish/subscribe model. A client "subscribes" to various information "channels" provided by a server; whenever new content is available on one of those channels, the server pushes that information...
 
6:53 PM
SignalR is better
full refreshes suck
 
SignalR wraps websockets and falls back so...something else, possibly long polling, when the client doesn't support websockets
IIRC
 
Last time I did something like that, I used a version number and the JS just checked that. If the version it polled was newer, then it did a full refresh.
That was a long time ago though, and very much ad-hoc.
Not a lot of research went into more common methods of doing stuff like push
 
@Creysys it's not an unreasonable question but took a while to grasp what you were trying to do, because most of the available ways of doing that are fraught with compatibility pain
 
ASP.net and signalR look pretty nice but the project is pretty small. I think i might use js and if everything works maybe i can try to improve it.
For now thanks you are awesome :)
 
@Creysys trust us, use SignalR or feel the compatibility pain
 
6:58 PM
I trusted these guys once. My dog will never be the same.
 
@Creysys no sir, you use asp.net or other framework BECAUSE they fit small things and you want to keep it simple, self host is more for complicated requirement, and it definitely take more time to figure out concrete solution
 
But the dog was improved, right? ;)
 
SOME aspects of the dog were improved.
 
hi
been a while since I've been on here
 
hajememashite
Recently, this room has agreed that all greetings should be non-English, to help improve our cultural reach.
 
7:03 PM
lol
 
guten tag
 
interview on Wednesday, haven't been programming in a month. Not looking forward :/ although its a grad role
hopefully they go easy on me lol
 
Do you have an idea of what technologies you will be asked about at least?
 
yeah C#, entity framework, wed dev, web services, javascript
just starting to do some prep now.
 
7:08 PM
Hey Guys kinda noob question but it's hard to google for this kind of partial question :D

If i Delete an first item of a list by , myList.RemoveAt(0), will all the items come down by 1 ? i mean after this , next item will be at myList[0] or myList[1] ?
 
they will all shift down
1 will become 0
2 will become 1
 
cool then :D easier for me :D wanna use a listbox as a Queue :D but i just never deleted anything from my listboxes till now :D just input or clear completely :D
Tnx :D
 
@BrianJ, I do question the sanity of your decision to log into this room with so much to review before Wed.
 
yeah good point, outta here
 
@Pedram, there are Queue collections that may work better for you
 
7:11 PM
Yeah, a List is slower than a queue would need to be
 
@BrandenBoucher hmm speaking of which i used to use Stack and Queue back when i was term 2 or 3 in university , i learned coz of one of the lessons ... it had pop and push and stuff already made w'o need of any implementation , but i just never used them again at all lol
ok i guess i google some Queue Collection example and class detail from MSDN :D
 
zzzzzzzzzz ef7 migrations are depressing @.@
 
lol nice , queue so much better :D and this dude already write all the code i wanted to write for binding :D so my up vote to him :D
http://stackoverflow.com/a/4266692/3036033
 
7:19 PM
just saying it might save you time time
 
how do u send links in a way that it will load and show part of the link ? mine never does :D
 
$300 for a year of Pluralsight. Yeeeeesh.
 
my company just bought us all a sub
of course I've been paying for it myself for a year
 
@BrandenBoucher It's a wonderful resource, but it's really tough to throw $300 at it.
 
true. it was a bit of a gamble
 
7:25 PM
Have you tried LearnVisualStudio.NET?
 
not yet
any good?
 
@SeeSharpCode 300 for unlimited videos or 350 for 1 14hr course at the local college
 
@BrandenBoucher Not bad. Content arrives fairly slowly, and there's not a lot of intermediate/advanced content.
 
Guys if i Send 1 obj of a class to datacontent for binding , then i send another ! will it replace the first one or with they both work for binding ?
 
If I understand what you are saying, it would replace it
but the question wasn't super clear
 
7:37 PM
yeh Tnx :D
i should have said like this :
this.DataContext = Obj;
this.DataContext = Obj2;
will Obj2 replace Obj or both work alongside
 
obj2 replaces
 
yeh no problem i just modify and make them all into 1 obj :D Tnx for info :D
 
hi all
 
hi
 
7:44 PM
who wants to hear a funny story
 
@KendallFrey Does it have milk?
 
no milk
 
I'll still take it.
 
ok
so, we had our sprint planning meeting this morning
and we do that over skype and teamviewer
 
starts good
 
7:46 PM
and part way through I went to copy and paste a link
but when I pasted, I got a random snippet of code
looked familiar, like the stuff our other products use
thought maybe I didn't copy, and it was leftover from some work I did the other day
went back, copied again
this time a different snippet of code pasted, just one line
so wtf
and I started messing around
opened up notepad++ and started pasting
sometimes I'd get a blank line
 
some vnc problem maybe?
 
and sometimes a line or 20 or code
 
you can choose to turn off share clipboard somewhere i assume
 
so after about 5 random pastes, I discovered what kind of code it was
 
js (the worst kind)?
 
7:50 PM
and I asked the guys on Skype
and one of them was like yeah I'm copying code
weird
 
crazy
 
so turns out because me and other dude were both connected to the same computer with teamviewer, our clipboards were in sync
even though we had no other interaction
(except skype)
so anyway good story
and I found this
2
Q: TeamViewer remote computer application setting local computer Clipboard text

KDeckerI have a TeamViewer session open to a computer that runs an application that periodically sets the clipboard text programmatically. This application is somehow managing to set my clipboard text too. I suspect that TeamViewer is picking up the clipboard being set on the remote computer and setting...

and lived happily ever after
the end
 
Sounds like you need my Local Desktop application to avoid confusion in the future. Only allows you to remote into your own machine.
From your own machine.
 
@KendallFrey how in the hell is clipboard synchronization the default
 
7:53 PM
Well now that is Screwy
 
@Jeremy iunno
I know how to mess with people now, if we're in a TV session
copy random shit to my clipboard like "Illuminati" or "I am watching you"
or a link to this
show that picture to someone drunk or high and pretend you see something else
 
lol
 

« first day (1724 days earlier)      last day (3227 days later) »