« first day (1495 days earlier)      last day (3468 days later) » 
00:00 - 17:0017:00 - 00:00

12:46 AM
@BradleyDotNET Hello i got it.. here is the function for that... pastie.org/9729036
 
That code seems longer than necessary
But I'm glad you got it working!
 
...why are you writing string comparator code? Is this for a class or something?
also you need to override GetHashCode or that won't work
also, I suggest looking at the C# source code... referencesource.microsoft.com/#mscorlib/system/globalization/…
 
 
2 hours later…
2:28 AM
some of you are 24/7 online, are you?
;P
 
@SebastianL I am, except for the occasional reboot
 
@KendallFrey online in front of your computer or online sleeping with your keyboard?
 
Online as in sitting in the sidebar
 
 
1 hour later…
3:41 AM
anybody who knows git around?
lol
took me a second
when i rebase, is
<<<<< head
this part my branch?
======
and this is the one i'm rebasing from?
>>.
during conflicts?
yeah
i didn't rebase from master as often as i should have
and we have like 30 people working on this pushing things up all the time lol
okay, maybe not 30, but a lot
oh we don't do merges
thats subjective
it gives you a cleaner history
you can debate me all you want, lol not my decision
will do :)
so if i'm on my feature branch and do git rebase origin/master, that means head is my feature branch code
okay cool, thats what i thought, but i started doing it and theres more specific code in my branch that i didn't write, so i got scared and thought i'd better double check before i bone my branch lol
you ever see the show Californication?
its really funny, and theres titties
 
 
2 hours later…
6:14 AM
Hi guys
0
Q: How to prevent Directory.GetFiles to "check" recycle bin and other "unsafe" places?

Moses ApricoSo guys, I have a function in my application which to search for certain file in certain directory using GetFiles method System.IO.Directory.GetFiles(string path, string searchPattern, System.IO.SearchOption) It works fine, until when I choose drive directory (D:\ or C:\ and such) to be search...

If anyone interested. Thanks...
 
 
1 hour later…
7:43 AM
morning
 
8:35 AM
yo
 
9:05 AM
@Greg You can do that, sure, but ViewBag is not evil at all. Rather, forcing JS on users because you're too lazy to take the appropriate approach is evil :P
 
9:49 AM
Hmm, here's a dilemma. I have a C# project working with remote SOAP services which often change. I want to write an automated test that checks whether the client proxies I have (generated from WSDL via SvcUtil) match the current WSDLs on the server.
The services/WSDL aren't versioned.
 
Yell at their authors.
 
I occasionally do. :)
The system is in development, so changes are normal and acceptable. But they don't always let us know that they're making them, and sometimes they do things like change package names (the server is in Java) which breaks compatibility.
That's what I want it to run as part of the nightly build (or even the continuous one) so we'll have notification if they made a breaking change.
 
I'd rather write something that automatically files a bug report
Every time they make a breaking change without telling consumers, they get an S1 P1 issue raised. That should cause them to stop doing it.
 
@AvnerShahar-Kashtan While this might not be what you're after, can't they make a version API? Someone that returns the client version and they could bump that when they make API changes. If previous !== current, regenerate WCF stuffies.
 
What I'm going to do, once they get their CI story together and have a live and continuously updated server up and running, is call some SOAP methods and see if they crash.
@RoelvanUden Right now I'm trying to see if I can do it without having them make any changes (which, even trivial, tend to cause a cascade of curious bugs).
But if I can't find anything effective, I'll try to get their buy-in for it.
Right now it's like:
Me: I'm having problems accessing the server, I'm not getting any data through.
Them: Ah, just regenerate your client proxies, it'll probably sort itself out.
Once or twice a week.
 
10:05 AM
I don't think you'll readily solve that kind of problem with a technological solution
 
No. *sigh*.
 
That's a project management problem imho. The solution is for the people screwing with the development lifecycle to stop doing that.
I mean, you could write something that would do what you're asking. But it won't solve the problem.
 
There are several other problems that I've accepted that I can't solve, but I can at least alleviate a bit.
 
o/
 
10:30 AM
( ^_^)/
 
10:45 AM
Is there a joke in this site I don't understand? programering.com/a/MDNxATNwATk.html
Why is the English so bad?
 
if i have a question...can i write it here ??
 
if you dont we dont know if we can help ;)
@TomW i dont think so, teh guy whos writing this is just not able to make short sentences ^^
 
also, vurt de furk calling into C# code from Node? Cool.
 
@TomW but i would laugh my ass of if somewhere someone could hack a spooderman pic into it :D
 
how can i make the same button do play/pause in windows media player control ?
 
10:52 AM
@TomW Conceptually cool, but it just seems like a wrong idea. :-P
 
11:12 AM
I've spent the morning doing an overdue task: Finding out what's been invented since the last time I spent the time to find out what's been invented
Turns out: a lot.
 
11:24 AM
@RoelvanUden Seems like a cool idea :D
Why is it wrong?
 
0
Q: Calling webservice method through ajax

Cute ChildI have wcf service method: [WebInvoke(Method = "POST", UriTemplate = "validateLogin", ResponseFormat = WebMessageFormat.Xml,RequestFormat=WebMessageFormat.Xml,BodyStyle=WebMessageBodyStyle.Bare)] [OperationContract] bool validateLogin(Login objLogin); I am calling thi...

plz help
2
 
@Sippy Dependencies on not one, but two managed runtimes. There isn't really any benefit to edge IMHO. Users will need both installed, too.. which sucks.
 
@CuteChild well for a start you're posting json to a service you've defined as accepting XML
 
@TomW yes, at start i defined it json....but just for trial i made it XML
 
@CuteChild http://localhost:95
Don't do that in your url .. please ...
 
11:39 AM
@Sippy then?
@TomW I made all json...then also error is their
[WebInvoke(Method = "POST", UriTemplate = "validateLogin", ResponseFormat = WebMessageFormat.Json,RequestFormat=WebMessageFormat.Json,BodyStyle=WebMessageBodyStyle.Bare)]
[OperationContract]

bool validateLogin(Login objLogin);
 
What is returned from the server?
 
@Sippy nothing is getting returned...service method is not getting called
 
@CuteChild When you preview that failed network action what do you see?
 
@Sippy code goes in error block of ajax
 
Which includes a response from the server which is what.
 
11:54 AM
wait will paste it:
readystate:0 status :0 statusText:error
 
Helpful.
 
@Sippy
ok
 
How do you know that your webserver is running on localhost:95?
Have you set it up to use that explicitly or are you debugging?
 
$.ajax({
url: "http://localhost:95/MobileEcomm/Service1.svc/validateLogin",
data: JSON.stringify(parameters),
contentType: "application/json;charset=utf-8",
dataType: "json",
headers: {
SOAPAction: ''
},
type: 'POST',
processData:false,
cache:false,
success: function (Data) {
alert("asdsad");
},
error: function (response) {
var value = JSON.stringify(response);
alert("Error in Saving.Please try later."+value);
}
});
@Sippy yes
I have set that
 
Okay.
The issue is with the data you're sending, then.
Don't specify contentType or dataType in your AJAX call
 
11:57 AM
Every time I can teach someone, in a code review, to use Path.Combine instead of string concatenation, an Easily Preventable Bug Angel gets its wings.
 
ok...will try in a minute
 
@AvnerShahar-Kashtan Lol
 
@Sippy
$.ajax({
url: "http://localhost:95/MobileEcomm/Service1.svc/validateLogin",
data: JSON.stringify(parameters),
headers: {
SOAPAction: ''
},
type: 'POST',
processData:false,
cache:false,
success: function (Data) {
alert("asdsad");
},
error: function (response) {
var value = JSON.stringify(response);
alert("Error in Saving.Please try later."+value);
}
});
now :
 
Paste that so it is readable, at least..
 
Console was cleared /C:/Users/mitej5/AppData/Local/Intel/XDK/xdk/components/client/emulator/ripple.js:25854
Failed to load resource http://localhost:95/MobileEcomm/Service1.svc/validateLogin
POST http://localhost:95/MobileEcomm/Service1.svc/validateLogin /C:/Users/mitej5/AppData/Local/Intel/XDK/xdk/components/client/emulator/ripple.js:62170
 
12:00 PM
I meant your AJAX.
Use pastie, pastebin, anything
Or just use the fixed font thing on here.
 
What is 'parameters'?
How are you building the parameters object?
Oh nevermind.
var parameters = {
    EmailID: EmailID,
    Password: Password
};
Do that, and in your AJAX pass data as
data: parameters
Don't stringify it.
I'd guess that doesn't work because your web service has a specified param type as well but worth a try.
 
ok...will try in a minute
@Sippy ahh...still is the error
 
hm
 
POST localhost:95/MobileEcomm/Service1.svc/validateLogin  /C:/Users/mitej5/AppData/Local/Intel/XDK/xdk/components/client/emulator/ripple.js:62170
(anonymous function) /C:/Users/mitej5/AppData/Local/Intel/XDK/xdk/components/client/emulator/ripple.js:62170
k.cors.a.crossDomain.send jquery.min.js:4
n.extend.ajax jquery.min.js:4
loginToSystem index.html:26
onclick index.html:70
 
12:13 PM
OMG AZURE
LOL down half the fricken night
so tired
 
Your mom was also down half the fricken night
 
@Steve plz sir look in my issue
its really dangerous
 
you aren't cute nough
 
0
Q: Calling webservice method through ajax

Cute ChildI have WCF service method: [WebInvoke(Method = "POST", UriTemplate = "validateLogin", ResponseFormat = WebMessageFormat.Json,RequestFormat=WebMessageFormat.Json,BodyStyle=WebMessageBodyStyle.Bare)] [OperationContract] bool validateLogin(Login objLogin); I am calling this method through my phon...

@Steve ok . I am ugly, but plz help
 
lol, i will try just because that was fnny
but don't count on me being actually helpful
 
12:18 PM
@Steve ok. but just try
 
sorry, i dont know wcf
 
@Steve ohh shitt...u was my last hope
 
@CuteChild Set up WCF trace logging to see what message comes into WCF. stackoverflow.com/questions/4271517/how-to-turn-on-wcf-tracing
Attach to the IIS process and see if an exception is thrown.
 
@AvnerShahar-Kashtan exception is not thrown
 
theres a chrome addon called rest console, you could test your endpoint without any javascript involved so you know exactly whats going on, then once you're in a position where you feel like your endpoint is behaving as expected, you can try hitting it with js
 
12:26 PM
@CuteChild I think the answer on your question nails it - looks like a same-origin violation. I don't know how to work around those with the technology stack you have
 
ugh, do I have to get out of bed....
"17°F Feels Like 4°"
 
@CuteChild: have you tried setting the dataType to jsonp?
 
@Steve Stop moaning and get on with it!
:D
 
@CuteChild Use CORS or a proxy. Google that.
 
12:41 PM
lol
 
Yaaay 5 year old biscuit
Taste the difference ™
 
Puke the Rainbow™
 
But I ate no skittles :(
 
Well, I guess 5 year old food will do the same thing
 
It looked normal, it has been in a packet
Was like a .. biscuit bar?
Not sure what to call it.
But the biscuit was soft which is a bad sign.
 
12:49 PM
like, an english biscuit or an american biscuit
 
Like a twix
 
oh yeah, you're definitely going to die
sorry bro
 
Americans don't have biscuits they have cookies
And that's about it lol
 
we have biscuits, they aren't dessert though
 
All the biscuit news on BISCUITS TODAY, with our biscuit correspondent
 
12:49 PM
BISCUITS N GRAVY HURRR
 
I WISH our billing provider didn't suck so bad
every thing in their documentation, every schema
is wrong
 
I watch a show on YouTube called Biscuits of Britain
 
makes me dread going to work
 
It's not weird, trust me I'm a professional.
@Steve They provide you with bills? That sounds like a sound business model.
 
do our cc processing and stuff
anyway, off to the suck i go
 
12:52 PM
@Steve raise an issue for every noncompliance :)
 
oh I do, they're sitting on a stack of my responses right now with my question "WTF"
 
@Steve 2 days and you can sing along to RB.
 
gmorning all
 
HAHA I NOT FALLING FOR YOUR FUNNY FUNNY JOKES KINDEL
 
1:11 PM
You really seem to hate eReaders
 
Ⓐⓗⓞⓨ!
 
ⓞⓞ
Look! It's...
DONUTS
 
Share plⓞx?
 
ⓞⓞⓞⓞⓞⓞ
ⓞⓞⓞⓞⓞⓞ
A dozen donuts for you
 
thx brⓞ
 
1:13 PM
make sure to share with your boss
 
@KendallFrey Lol.
 
App certification failed :(
 
anybody here know about mvc??
 
@JasperManickaraj It's reasonable to assume that in a programmers room.
 
@JasperManickaraj I think you meant ⓜⓥⓒ ?
or ⓂⓋⒸ ?
 
1:21 PM
MVC- model view controller buddy
@marek
Html.CheckBox("IsActive" + m.IsActive, new { value = m.IsActive, @checked = m.IsActive ? true : false })
 
@JasperManickaraj Ⓘ ⓚⓝⓞⓦ ⓢⓜⓣⓗ ⓐⓑⓞⓤⓣ ⓘⓣ, ⓦⓗⓐⓣ ⓓⓞ ⓨⓞⓤ ⓝⓔⓔⓓ?
 
@JasperManickaraj Wrong. Checkbox is always checked now, innit? ;-)
 
jeebus, stop
 
HAMMERTIME!
 
here i need to check the condition, whether the value of Isactive is true means the checkbox gets checked or else unchecked
 
1:24 PM
why do you have something ? true : false?
2
That's a bit redundant
 
yes @RoelvanUden all are checked right now..
 
@KendallFrey Hahahaha
 
Contional checking @KendallFrey
 
"How to alienate code and confuse people"
 
*conditional
 
1:24 PM
Think about it
What are the possible values of IsActive, and what are the possible results?
The ternary there is a completely pointless statement
 
True or false
 
@JasperManickaraj And now ask yourself, what does HTML accept as parameter for checked?
 
@CapricaSix I know you want me to write that in circled style, but naah its not happening.
 
If the Isactive is true means the checkbox needs to be checked..
else not check that thing
 
1:28 PM
Obviously. I'm asking you to understand why the ternary statement serves no purpose whatsoever
 
^ What Tom said is that you, effectively have true ? true : false which is.. y'know, pointless.
 
got the point @RoelvanUden and @TomW
i'm going to give @checked = m.IsActive
again its wrong.. <input checked="False" id="IsActiveFalse" name="IsActiveFalse" type="checkbox" value="False">
 
define 'wrong'
 
It is wrong, because HTML checked has no notion of true or false.
True and false simply do not exist in HTML. So what's the solution? Think for a bit.
 
yeah.. you are right @RoelvanUden
 
1:35 PM
@JasperManickaraj Hint: checked is not a normal attribute.
 
I like that control name IsActiveFalse by name it looks like it is inactive everytime.
 
@RoelvanUden well...
 
Have you ever noticed that Git feature in VS2013 does not support 2FA?
 
2FA?
(2 factor auth? I don't do that in Git, also - I don't use git in VS so there's that)
 
1:55 PM
If you post JSON to a controller method which expects an object, will MVC parse the object itself?
 
sik
 
Assuming you set the content-type correctly, yes.
 
hurr durr
What's the correct content type.
I don't set it cos it breaks stuff
 
iirc application/json
 
1:56 PM
Right, ty.
 
@BenjaminGruenbaum Looks like Jasper-guy gave up. Do you mean that a notion of true/false strings do exist in the html specification for attributes?
 
Well, existence and lack of are true/false
 
Well, yes, obviously, but not the way that he was attempting to use it :P
 
I don't think he understood what checked actually was.
Why the
 
Probably.. if he ever comes back, all raged and frustrated, the answer was simply to not add a checked property to your anonymous object when it should not be checked, and to leave it without content when it is (string.Empty ftw).
 
2:00 PM
My link is making a POST request, not a GET request
wtf
That'd be because I told it to.
gg.
 
gg rekt
 
2:36 PM
My colleague just emailed me this: "The git master branch should be the same as the production code, but you can’t assume that it is!"
So naive
 
2:48 PM
Guess what day it is
 
Get fired for giving a 2week notice...
 
probably the best reason
 
ya it is - butt hurt cause all kinda outcomes
like a paid 2 week vacation before moving on with life
best reason to get fired - telling the guy that I can't wash his truck because it has screws in the bed - "His response don't you have a broom" Sure! I swept them all out the back of the truck then ran them over and washed his truck.. Got fired the next day
 
How do you stop a JsonResult from 'downloading' the JSON being returned?
I get the feeling it's because of the [HttpPost] attribute.
But I'd rather not remove that unless need be.
 
What do you mean, download?
 
user862319
3:02 PM
in your browser?
 
If you get an HTTP response, it must be downloaded
 
Basically rather than the AJAX call dealing with the response, the controller is 'redirecting' to the response
Like .. it renders the page as the JSON string that's returned.
 
user862319
its returning a 200 response right?
 
Can you explain what's happening over HTTP?
 
@Bob Yeah
@KendallFrey Elaborate plz
 
user862319
3:07 PM
well if theres no 30x responses being returned incidentally its gotta be your javascript making something strange happen, especially if this is an ajax request.
 
The same AJAX works fine in other applications.
 
user862319
well this application appears to be a dragon's nest.
 
@Sippy Forget about what's happening on the server and on the client, what is happening in HTTP? i.e. give me the raw requests and responses
 
request headers:
:)
Response headers:
Cache-Control:private
Connection:Close
Content-Length:16
Content-Type:application/json; charset=utf-8
Date:Wed, 19 Nov 2014 15:09:23 GMT
Server:ASP.NET Development Server/11.0.0.0
X-AspNet-Version:4.0.30319
X-AspNetMvc-Version:4.0
Response itself:
{"success":true}
 
Looks like a proper response
better delete those authentication headers
What is the response code?
 
3:12 PM
200
 
ok, typical
so, what's happening on your client?
 
eww that else if
 
:D
 
what is happening though?
 
3:15 PM
When the AJAX call is submitted, it goes to controller, controller returns JSON, client renders JSON in browser.
So all I see is the json string.
 
Your ajax request is causing the browser to navigate?
I find that hard to believe
 
No clue
Watch
I'll gif it cos I can. :D
 
@Sippy With what util do you record and make gifs
 
LICEcap
 
sounds nasty
 
3:19 PM
Yeah not sure about the name ..
 
Are there any other requests in the network tab?
 
Anyone here use AutoMapper?
 
None for that specific action, no.
Just one.
@KendallFrey Also, same, that's why I assumed the controller was doing it.
 
stupid question but if I had breakpoints to my js files in my asp.net mvc app, should the breakpoints in js file be hit when I run through that part?
 
@KendallFrey Ah. Just had a thought, though I figured I had already dealt with this
The button is submitting the page.
 
3:26 PM
@VictorioBerra Have used, yes. Actively using, no.
 
I have done preventDefault though.
 
Wat?
 
@KalaJ yes
 
@KalaJ Yes, they will open in your browser dev tools
 
Really never knew that
 
3:28 PM
There are two types. The ones you apply in VS and only get hit when you debug with IE browser started from VS, and the one with debugger; that will hit in any browser native tools
 
humm have to try that
 
@RoelvanUden When you pass html back to Model View Controller, I take it you need to use Ajax?
 
@Greg elaborate?
 
In Web-Forms it does a PostBack or to avoid PostBack you use Ajax to a Web-Service. What is equivalent in MVC?
 
that's the strange thing, they are supposed to be hit but it is not hit in visual studio
 
3:34 PM
are you using debugger;?
 
yes
I can just run my app right?
There is no debug mood vs run mood like java apps
I just build my app and the breakpoints should hit right?
*oh wait, I mean to say yes I am running it in debug
 
@KalaJ you must have the Developer Toolbar open for the breakpoints to hit
 
and not in release
 
in javascript
 
developer toolbar as in inspector?
 
3:37 PM
yes
 
oh ok thank you, I didn't try that
 
@Greg Uh.. MVC has no post back at all. Im not sure what youre asking
 
3:58 PM
@RoelvanUden any thoughts on my issue? github.com/AutoMapper/AutoMapper/issues/629
 
4:13 PM
@VictorioBerra 404 not found
 
Um, what's the purpose of using a backing field?
 
@Meraj99 To store the value of a property.
 
:20033616 private int feedMultiplier;
public int FeedMultiplier { get { return feedMultiplier; } }
//can you not make it, private int feedMultiplier { get { return feedMultiplier; } }?
or something of that sort
 
no
that would be a stack overflow
 
public int FeedMultiplier { get; private set; } would work, but it JUST generate a backing field JUST LIKE YOU HAVE NOW. It's good to understand how that works.
Except that it HAS a setter, and yours DOES NOT.
 
4:22 PM
x.x
 
4:35 PM
@RoelvanUden my account got blocked on github because a bot thought I was a spammer, ill let you know when the link will go live. I have to email them and jump through hoops.
 
4:46 PM
What does it mean when it says, "The breakpoint will not be hit. No symbols have been loaded for this document."
 
If that's in your code, you probably need to restart debugging
 
4:58 PM
I have a strange occurrence where my dialog box for deleting an item in a view sometimes appears twice in a row but it's not easy to replicate. What's the best way to get to the root of this situation?
 
00:00 - 17:0017:00 - 00:00

« first day (1495 days earlier)      last day (3468 days later) »