« first day (1845 days earlier)      last day (3104 days later) » 

2:00 AM
hi, How do i import a generalmethods.cs file into a aspx file. Can I?
 
2:32 AM
@Rafee just add it to your project
 
 
2 hours later…
4:36 AM
I have a Web API solution which is configured to respond results always in JSON format as below

config.Formatters.JsonFormatter.SerializerSettings.Formatting =
Newtonsoft.Json.Formatting.Indented;
But now I have a requirement to respond only one of the API calls with XML Response . But if I add the XML formatter to the system

config.Formatters.XmlFormatter.UseXmlSerializer = true;
then all the API calls get affected.

I have a XML string hardcoded which I want to give as reponse . How can I solve this problem ?
The same question is posted here stackoverflow.com/questions/33513768/…
 
4:48 AM
sup folks
 
 
2 hours later…
6:55 AM
hey
 
7:18 AM
Morning all
 
hello all, i am looking for watermarking a video with an image in wcf service and later saved in a server directory? Was that a possible way of doing? Because, I need to do it in Android and android does not have direct way of doing it.
So, I need to opt for a web services
 
morning guys :D
@Ganesh wcf on android?
 
nope...in android was not possible so i wanted to achieve with wcf where in andrid wil send the details of video name or path and image name and path etc
so, I wanted to do it in a web service...
i mean using web service
 
7:58 AM
so android is not your problem?
 
8:41 AM
@Ganesh a transparent overlay over a video is perhaps your best bet in Android. Alternatively you'll need a video editing library - I'm surprised Android doesn't have a 3rd party tool for this. And asking for a "WCF" video editing library is asking the wrong question.
also sending video files from a mobile over a WCF endpoint is... probably not recommended.
because bandwidth
also why would you watermark videos?
and don't say "Because client doesn't want them stolen"
 
Hi ho, hi ho
 
var p = new Microsoft.Build.Evaluation.Project(@"C:\projects\BabDb\test\test.csproj");
The type or namespace name 'Build' does not exist in the namespace 'Microsoft'.
can anyone help me plz for this error message?
 
9:01 AM
could not find any help in this link.
Solved: added Microsoft.Build reference to my project and it worked. :)
 
9:15 AM
Hello,
I am attaching a link to my question asked on stackoverflow but not getting much answers.
http://stackoverflow.com/questions/33495318/service-reference-not-asking-for-authentication-details/33514679#33514679
Basically what is happening is that when I add a new service reference and providing URL to my WSDL file in VisualBasic there is no room for me to provide credentials. Therefore when I am making a call to API I am getting authentication error as I never provided credentials. Where/how can I provide login and password?
 
auxheaders ?
 
auxheaders? I am not quite sure what it is
 
read ?
 
I am PHP developer but have to make sure the API (developed in PHP using PHPSOAP) works with C# too... nightmare
 
yes lol
 
9:19 AM
hii all
Can we open window directory without using file input control ?
 
@codebrain by auxheaders do you mean adding headers to the WSDL file which will expect credentials?
 
@vishuminhas "window directory"?
 
@Roel van yes I want to perform same operation as file input perform but without using it.
 
I just upgraded to resharper 10
high five anyone?
 
@StevenLiekens Free upgrade from 9?
 
9:25 AM
no
2 years for 40% off
 
Hmm. My Help->About says I have a maintenance subscription until July 2016, so it's probably covered.
 
oh well my subscription expired
 
is anyone familiar with soap authentication with C#?
 
@zachu That's a bit too vague.
 
@AvnerShahar-Kashtan let me explain
 
9:27 AM
WCF based? ASMX? WS-* based?
 
I have got API written in PHP using php soap. I have got WSDL file which I am using to add service reference in visual basic
This is my original question on stackoverflow:
http://stackoverflow.com/questions/33495318/service-reference-not-asking-for-authentication-details/33514679#33514679
When I am adding this WSDL as service reference I am not being asked for login and password
how can I enforce it to ask for username and password?
 
@zachu is it not secure? How do you handle auth?
 
this is how i do it in PHP and it works perfectly fine:
$options = array(
'login' => 'username',
'password' => 'pass',
'trace' => TRUE,
'exceptions' => 1,
'soap_version' => SOAP_1_1
);
$client = new SoapClient("http://linktowsdl", $options);
i have no idea how to achieve this in C# as I am PHP developer...
 
looks like that's basic HttpAuthentication, right?
 
From what I read Visual Basic should ask me for credential at the point of adding service reference, but it does not...
Yes it is
 
9:32 AM
YourService service = new YourService();
service.ClientCredentials.Username.UserName = "user";
service.ClientCredentials.UserName.Password = "pass";
don't you have something like this?
 
no I don't
I will try adding this
Do I need to add any headers to WSDL file to tell it to expect credentials?
 
@zachu It seems like the server hosting your PHP is allowing anonymous requests.
@zachu No, this isn't part of SOAP or the WSDL, it's between the HTTP client and HTTP server.
Assuming it's Basic Authentication.
 
With PHP if you do not provide credentials or provide incorrect credentials you can still call a method but you will get authentication error code
 
What is the PHP hosted on? IIS? Apache?
 
it is apache
 
9:37 AM
And are you reading the WSDL file locally, or does it reside on the same server the PHP code is in?
 
Woo! Just found out that I have a deadline of "tonight" to implement and deploy a new feature. I'm... going offline now. I may cry.
 
it is on the same server as the PHP code
 
The "Add Service Reference" step doesn't care where your service is. It just reads the WSDL, parses it and creates a local proxy class that calls it. If the server requires authentication to hit the WSDL (and you can try it in the browser as well), it will ask for it, but that doesn't mean your code will keep those credentials.
@Squiggle Godspeed!
Because Add Service Reference is a design-time action. If it asks for credentials, it's just to retrieve the WSDL file, not to put those credentials in the code. Your code, the one that uses the proxy class, needs to specify them. Either by telling .NET to use your currently logged on Windows logon credentials or explicitly, like @Dess stated.
But from what you're saying, it seems as if the web server is configured to allow anonymous access.
 
Ok I get it now. So even If i protect WSDL file with password, service reference will ask for them but will not remember them
so this is the way i need to provide credentials:
YourService service = new YourService();
service.ClientCredentials.Username.UserName = "user";
service.ClientCredentials.UserName.Password = "pass";
?
 
Protect the WSDL all you like, but the WSDL is not the service, it's just metadata about the service, and isn't relevant once used to generate the proxy.
 
9:45 AM
it varies depending on web service, but basically as far as I know you should have some properties for credentials in your service instance
 
It's the PHP service endpoints that need to require authorization.
 
@RoelvanUden any news? :)
 
Yes PHP does require authentication but how do I pass login and password to php ?
 
That's the ClientCredentials approach.
service.ClientCredentials = new NetworkCredential('username', 'password')
 
@Slashy Uhm, sure, but nothing related to Hansha if that's what you mean
 
9:58 AM
Ok I will try that now
 
(idling)
 
I am getting error message "Property or indexer 'ClientBase<CallAnalyticsServiceSoap>.ClientCredentials' cannot be assigned to -- it is read only
when I try this:

service.ClientCredentials = new NetworkCredential('username', 'password')
when i use this:
var service = new ServiceReference.CallAnalyticsServiceSoapClient();
service.ClientCredentials.Username.UserName = "user";
service.ClientCredentials.UserName.Password = "pass";
the error msg i get is "'ClientCredentials' does not contain a definition for 'Username' and no extension method 'Username' accepting first argument of type 'ClientCredentials' cound be found (are you missing a using directive or an assembly reference?)
 
use intellisense! its service.ClientCredentials.UserName, not Username
 
Ok that helped with the error but I am still not passing the authentication
 
10:13 AM
@RoelvanUden HAHA alright
 
try also filling the credentials in service.ClientCredentials.HttpDigest.ClientCredentials.UserName and Password
it helps sometimes
 
@Dess this did not help either
this is how I am trying to retrieve username in PHP :
$_SERVER['PHP_AUTH_USER'])
 
you probably have to create binding and/or endpoint in code
but i'm not an expert, I only used couple of webservices, I never created one
 
I'll keep trying
I will do some logging in PHP file to see if anything get passed there
anything is passed there *
 
10:30 AM
maybe this is gonna help
as a base, because I used it for WS authentication
 
10:49 AM
WELL HELLO THERE MR UPS MAN
You should've left our wives alone!
 
hello everyone
is nuget package system still down ?
are there any alternative ?
 
api.nuget.org is down
.com redirects to .org
 
not down for me
 
weirdo
The connection has timed out
 
10:53 AM
thanks
 
any possible solution ?
 
@Dess I have created some logging in PHP script and it looks like no credentials are being passed to PHP
 
are you behind a proxy?
 
possibly because it returns HTTP 400
<?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidQueryParameterValue</Code><Message>Value for one of the query parameters specified in the request URI is invalid.
RequestId:04bc2797-0001-0062-25ef-16ce7c000000
Time:2015-11-04T10:59:07.3473783Z</Message><QueryParameterName>comp</QueryParameterName><QueryParameterValue /><Reason /></Error>
it's definitely up for me
 
11:09 AM
Please...Help...This is a stupid question, but my day has been shit and my brain is not working like it should...
localhost:52452/Products/X/1 ...How do I substring to get "X"?
 
any possible solution for nuget not able to connect ?
 
@JakobMillah You don't. You route. Reboot that brain.
 
@RoelvanUden I will.. It's lunch
 
So I am using C# to connect to service reference but I can not figure out how to pass login and password to it...
I have set up binding like this:
<bindings>
<basicHttpBinding>
<binding name="CallAnalyticsServiceSoap">
<security mode="TransportWithMessageCredential">
<message clientCredentialType="UserName"/>
</security>
</binding>
<binding name="CallAnalyticsServiceSoap1" />
</basicHttpBinding>
</bindings>
and setting credentials like:
var service = new ServiceReference.CallAnalyticsServiceSoapClient();
service.ClientCredentials.UserName.UserName = "login";
service.ClientCredentials.UserName.Password = "pass";
 
@PaRiMaLRaJ When I sent you the .com link I tried both and it was fine.
 
11:17 AM
for some reason nuget is not able to connect from my system
 
but I am getting error message :
Additional information: The username is not provided. Specify username in ClientCredentials.
 
still the same problem
 
tried*
 
It's going up and down like a yoyo mate.
 
11:20 AM
anyone has any experience with service reference authentication?
 
@JakobMillah .Split("/").Last(); :)
 
its using basic authentication and this is how I retrieve it in php :
$_SERVER['PHP_AUTH_USER'])
 
@Squiggle r u sure
 
@Sippy there's like 4 different ways to do it.
 
is there any alternative nuget server ?
 
11:22 AM
@Squiggle .Last() isn't gonna return x though is it :P
 
@Sippy oh I misread. If this were python I'd split by / and go to index [-2] :)
 
@Squiggle ehehe
 
I wish C# had that
Split("/").Reverse().Skip(1).First();
not entirely retarded
 
11:37 AM
Mmmmmmm tasty maintainable code :D
 
secondLast = (!!1) . reverse
boop
 
...
What language is that
 
haskell?
 
or even
secondLast = head . tail . reverse
 
11:44 AM
I still prefer Python's list[-2]
 
:-]
 
Neither of your examples were even remotely readable kendall lol
 
@Sippy They are to a person with 10 hours of experience with Haskell
 
Meh.
head . tail . reverse doesn't even make logical sense
 
11:46 AM
it sounds like a dance
 
Pointfreedom is cool, and you're not.
 
psh
 
@Sippy it does if you don't think of . as member access
 
Mmmmmmm nope
What is .
 
11:47 AM
function composition
 
That still makes no sense
 
f . g x = f (g x)
head . tail . reverse gets the head of the tail of the reverse of the input
 
Yeah I get that
 
@Sippy Kendal drank the functional coolaid
 
Surely the head would be the first item
Not the second lol
 
11:48 AM
It is
 
Functional coolaid is for nerds
 
BTC is on a massive spike if anyone is interested
 
I didn't say head . reverse
 
I'm aware
 
The service is unavailable.... Please... My day is getting even better
 
11:49 AM
I'm self-aware. Hah!
 
It's head(tail.reverse) basically
 
ugh
no
 
k
 
if I write it without composition...
 
haskell sounds retarded lol
 
11:49 AM
Why the f is MSDN down
 
secondLast list = head (tail (reverse list))
 
@TomW up 16% today?
 
@KendallFrey I facepalmed
 
@Sippy que?
 
@Squiggle it's shot up since the 28th
 
11:51 AM
That flow just makes 0 sense to me lol
 
Do you know what the tail function does?
 
It seems to run entirely on hype, so there is no rhyme or reason to BTC price fluctuations that I'm aware of
 
Nope
 
I still lol that my mate lost 400 bitcoins on MTGOX.
 
I would assume it returns the last object in a collection
 
11:51 AM
that would be why
it does not
 
What does it return?
 
it returns everything but the lead
 
rofl
That both makes perfect sense and no sense
 
tail (_:a) = a
 
I'm guessing there is a last function too
or similar
 
11:52 AM
there is
 
makes sense now
 
lists in haskell are linked lists
 
Which functional language would you suggest learning first?
 
yes
F# it is
 
11:54 AM
Honestly, for a .NET dev, I'd try out the basics with Haskell, try F# to try and apply it a bit more, then switch back to Haskell once you realize F#'s syntax is cumbersome
let sqr x = x * x in map sqr [1..10]
see, Haskell's not so hard
 
It'd probably teach me a lot about how programming actually works
I don't know shit about low level coding
 
Haskell isn't low-level coding
 
I can barely tell you what stack and heap do/are for. :D
 
it's high-level
higher than C#
 
rly
 
11:58 AM
If you want low-level, try assembly
 
nooooooo thanks
 
low level coding for the win... .net killing me right now .P
 
I thought you wanted to learn shit about low level coding
 
C and C++... That's where it's at
 
does any of you guys know how to print gif label to zebra printer?
 
12:00 PM
I just realized I've done basically no assembly outside of the context of a kernel
 
I don't want aids
I just want to know a bit more
So I don't feel quite so phony
I used assembly at uni and almost shot my brains out.
 
Well then use C. And pointers. And malloc.
 
@RoelvanUden Mind telling me a bit about that routing thingy... I can't access MSDN and I kinda need to get going haha. In the project, a custom route has been made. So How do I write to use the custom route to get the current folder like I wanted above?
 
@Roel
 
12:02 PM
HAHAHAHA
 
C won't teach you about a lot of things though
 
Man I wasn't prepared for that
 
yeah, your mom said that too
 
@KendallFrey When you told her you like to be the girl?
 
exactly
 
12:04 PM
Lol
 
Assembly was a great start when doing hardware dev.
 
I want to make a witty comment but I can't come up with anything smart after @Sippy's comeback :/
 
I started off OS dev with machine code
...I sound like a proper ass now, don't I?
 
machi-- .. why
 
Don't worry @KendallFrey. You always do.
 
12:05 PM
l0l
 
haha
 
Damn
Shots fired
 
@Sippy Because I couldn't be bothered with a compiler.
Mainly because I wanted to tweak an existing boot sector, rather than start from scratch.
 
Compilers are for casuals
 
Hello world, ya know
 
12:07 PM
@KendallFrey ah
ur smart man.
I wish I was that smart but I'm far too fuckin lazy.
Therapist has decided I need to radically change my diet and take vitamins n shit lol
With the aim of improving focus and motivation!
 
@Sippy It's not as hard as it sounds
 
@Sippy Uhm. What is your diet now then? Fries and cola?
 
@Sippy What's that diet? I might need that :P
 
It's more time-consuming than brain-smashing
 
A good diet does wonders.
 
12:09 PM
Lol
@RoelvanUden I eat fine, I just don't eat healthily.
 
@RoelvanUden This isn't youtube, you can say Coke
 
Like .. I don't put effort into eating the right food
I just buy stuff that's not awful.
Lol
 
@Sippy Doesn't that go for 99% of the world population?
 
yes.
 
"It is semi-healthy, doesn't take ages to prepare, and doesn't taste crap? Grab"
 
12:10 PM
It becomes an issue if your brain chemistry isn't set up in a way that allows you to be that relaxed about it though
Which apparently might be my issue.
 
It's a physical thing? Or a mental thing?
 
Physical.
 
I love the might be
They ain't got a clue!
 
Well
 
Cut the coffee
 
12:11 PM
The reason why it might be is because it's a pain in the ass to get a legitimate, accurate diagnosis for ADD
so it might be, because I'm gonna change my diet and supplements to see if it helps
Which is easier and requires no diagnosis :P
 
@Sippy I'm pretty sure I could get myself diagnosed with two or three mental disorders without too much trouble.
2
 
I don't think I've been able to focus on anything for more than 10 seconds since ever.
Right now I'm trying to debug something and I keep getting sidetracked and having to start over.
 
@Sippy That explains a lot about your ex-girlfriends
 
HAH
fool
you underestimate my power
 
@Sippy: Just try some of the amphetamine drugs they give to children
 
12:13 PM
I don't like taking drugs lol
 
if they give them to children, they're safe? ye?
 
I would take ADD drugs if I get diagnosed properly and they're actually gonna help
 
(don't take them, they'll probably do more harm than good)
 
I'm perfectly docile I just have the attention span of a fucking goldfish
 
I got diagnosed with add/adhd in my teens, and put on some drugs (ritaline). fuck that shit
 
I have a route that looks like this:

routes.MapPageRoute("products-browse", "Products/{itemGroupCode}/{page}", "~/Products.aspx", false,
                new RouteValueDictionary { { "itemGroupCode", "0" }, { "page", "1" } }
            );
How do I use it? Tried something like this, but obviously not working:

string address = Page.RouteData.Values["itemGroupCode"] as string;
Or wait... it might actually...
 
@Sippy: the problem is that many children, and even adults fall into the ADD category. because they don't have anywhere else to put them. Sort of umbrella diagnosis
 
It's because that part of the brain affects a lot of shit when it doesn't work properly.
 
It does ;) Alright.. nevermind then
 
When the brain isn't working properly it's often due to lack of stimulation
 
12:18 PM
That part? which part?
 
Which can sometimes be fixed by just improving your brain chemistry
 
might be
 
Like I suffer with anxiety and slight depression a lot because of the way my brain chemistry works, I can fix it with drugs
There is an underlying psychological reason for the long term physical effect though
Which I found out last night lol
So hopefully over time I can reverse the physical effect
 
@Sippy :) progress!
 
yup
Due to the nature of the issue it won't be a very quick fix though lol
 
12:21 PM
yeah, I hope you're right :)
 
friend of mine was put on drugs for anxiety and depression, then when he tried to get off them it triggered epilepsy, now he's epileptic and needs drugs for that on top of what he was already taking...
 
My diet is too full of cheese these days, and fondue season has just started.
FML
 
I got depressed by the ADD drugs, that was no fun
Still haunts me from time to time, after being med free for 13 years
Drugs can easily do more harm than good
 
@NicolásCarlo drugs are easy to prescribe, doctors are often in a hurry. Treating the underlying issues is hard and expensive. It's a horrible situation to be in :(
TL;DR: Drugs are bad, m'kay?
 
@Squiggle Fun dreams? Lol
 
12:23 PM
psychiatry is the most ingenious profession ever. I tell you you're sick and only I can tell you when you are better. until then you keep paying me to write you prescriptions while i tell you something is wrong with you. cha-ching!
 
@zachu yes
 
@Sippy You can't dream when you're in a cheese coma.
 
@Squiggle rofl
 
@Squiggle: well said
 
cheese coma is a thing? I have a new life goal
 
12:24 PM
 
@NicolásCarlo There are accreditation boards and things in the UK that survey and rate the treatment people receive from psychiatrists
So you can actually get one that's not a con artist.
Often getting someone who's damaged to tell you exactly what damaged them is incredibly difficult
 
@Squiggle yeah, exactly. the doctor who prescribed drugs to my friend basically ruined his life. obviously he's the expert who decided my friend was always epileptic
 
It's cost me about £400 just to find out what my issue is.
Cos my brain didn't wanna reveal it.
I didn't even know what it was.
 
@Sippy money well spent, to be fair
 
Totally.
I'd pay everything to fix this lol
It's gonna cost me thousands I expect to fix it
 
12:25 PM
@KendallFrey come to Switzerland and I'll introduce you to All Of The Cheese.
 
@Sippy i was generalizing. sure there are good ones, like it seems like in your case you found someone who knows what they're doing, there are a lot of bad ones as well.
 
but w/e
a few thousand quid is nothing
in the long term
 
@Squiggle Do you have Muenster?
 
@NicolásCarlo Totally
 
@KendallFrey it's made just over the border, about 30 miles away. It's delicious!
 
@Squiggle ok, be there in a few
 
WHO says bacon may cause cancer....fk WHO
 
yeah
over 300g of red meat each week or so?
 
I say bacon prevents cancer by causing premature death
 
@KendallFrey preach it brother!
 
12:29 PM
dont blame the pigs, Its their lifetime achievement
 
Pigs are the greatest animal ever
 
 
they taste so fucking good
 
freaking out about everything causing cancer is what causes premature death
 
@Feeds lol yuss
also, wtf
> I'm thirsty, what I want is a bottle of water in one hour
 
12:30 PM
GOTO Tap
 
tap dat... tap
 
@KendallFrey "I've got this tingle that means I'll be thirsty at noon!"
 

« first day (1845 days earlier)      last day (3104 days later) »