« first day (1781 days earlier)      last day (3162 days later) » 

9:00 PM
We junked nuget and store the packages in a well-known location :)
so I just add a reference
 
@BradleyDotNET why ?
 
because nuget sucks
 
Nuget is awesome
 
Shines
 
9:01 PM
Not when trying to sync packages/dependencies across 5 devs
or use a build server
 
@JúlioMurta: go to java forum man
 
You kidding, right?
 
No, its awful
I shouldn't have to use Update-Package -Reinstall just to get started
 
@JackyNguyen nah, java sucks
 
9:02 PM
let alone everytime a version changes
 
c# >>>> java
 
@JúlioMurta: oh i thought you were referring to war module in java
@JúlioMurta: my bad
 
Uhhh, bower?
 
@JackyNguyen no probs man
 
basically i have an .net mvc web application i have a webservice that i make and that web service responds with 200 and i pass it a url to call back after it finishes processing. at this point its stateful. Once the call back happens its stateless so i have no concept of the browser. I want to use signalR to call into the mvc application and say im done now do this other thing
 
9:04 PM
talking about college, now i need to go there.
2 hours taking a bus to go back to my city and have data structure class -_-
 
@ton.yeung did it work?
 
Well VS is dropping nuget as the package manager for client side packages
 
yea the hub is going to be in the mvc application
 
@ton.yeung Is there a library I should use to connect via OAuth, create a web-request and get the Json Object back with my data?
 
@ton.yeung still have my current problem lol
lol
 
9:08 PM
well, cheers men
 
cant add the nuget package to a webapi project
 
@ton.yeung A console application.
 
@ton.yeung should i add this instead of the asp.net version? nuget.org/packages/Microsoft.AspNet.SignalR.SystemWeb
 
@ton.yeung Try this: apress.com/9781430260011
@BradleyDotNET Try this: apress.com/9781430260011
It helped me
Nuget rocks
500M downloads agree with me
 
lol, I need a 384 page book to use a freaking package manager
 
9:11 PM
:D
 
kind of a sad statement, really
 
No you need a book to use it EFFECTIVELY @BradleyDotNET
 
still kind of sad
 
Have you ever read ANY book on C# VB or any other programming language?
 
for reference
not straight through
 
9:12 PM
Sad
You shoudl have been able to just use it :P
 
never needed to. They have this great thing called documentation
makes books unecessary usually
 
Why do you need documentation? Isn't the language self-explanatory?
Just yanking your chain
 
lol
more self-explanatory than say, Javascript
but no, its not :)
 
is asking a bootstrap question here relavant?
 
Never hurts to read one more book. Expands your horizons, IMHO.
I know how to strap a boot
Do I qualify to answer?
 
9:14 PM
True, but as far as priorites go, I'd rather use something thats a bit closer to "just works"
@JackyNguyen You can ask, but a web dev room might be more help
 
@Darek: lol sure
how do I use col-md attribute
to make the image to the rigtht
<div class="panel-body">
<div class="row">
<div class="col-md-5">
<div class="row">
<div class="col-md-4">Year:</div>
<div class="col-md-7">{{vm.movie.year}}</div>
</div>
<div class="row">
<div class="col-md-4">Rating:</div>
<div class="col-md-7">{{vm.movie.mpaaRating}}</div>
</div>
<div class="row">
<div class="col-md-4">Release Date:</div>
<div class="col-md-7">{{vm.movie.releaseDate | date: 'MM/dd/yyyy' }}</div>
</div>
<div class="row">
<div class="col-md-4">Audience Rating:</div>
<div class="col-md-7">
crab
 
Ctrl-K
or pastebin
or gist
 
my bad haha
 
The day I need to read a ~400 page book on how to use a open-source plugin because I need to use a proprietary IDE because I need to write code in a proprietary language targeting a proprietary platform is the day I quit working with it all and run off to *nix land forever.
 
@Darek: how to make the image line up with the right edge of the synopsis
 
9:17 PM
Luckily, nuget really isn't that hard that you have to read a book before you use it :P
 
@Darek: i could use regular css with float: right. I just want to know how to use bootstrap col-md attribute
 
@ton.yeung whats the difference between self host and server... Sorry this is day two crash course on this
 
@ton.yeung Basically just do a web-request?
 
@ton.yeung yea not sure if i want to do that .. I think system.web is what i want ill have to dig into that
@ton.yeung thanks!
 
@ton.yeung It's so tightly coupled with proprietary Windows components that the distinction is quite artificial.
As much as I like the language...
 
9:21 PM
@ton.yeung Thank you.
 
9:36 PM
@ton.yeung why is the sky blue
 
errr... refraction
 
hola
 
guten tag
(thats all the german I know, so don't push it :) )
 
10:01 PM
When I do a web-request it says that it is unauthorized, how do you:

grant_type=password&username=yourClientId&password=yourClientSecret

In the web-request?
I added username and password to header.
 
How can I get first name and last name from PSobject in c#?
 
what on earth is a PSobject?
 
Fuck OAuth.
 
PSObject Class:
Encapsulates a base object of type Object or
type PSCustomObject to allow for a consistent view
of any object within the Windows PowerShell environment.
https://msdn.microsoft.com/en-us/library/system.management.automation.psobject(v=vs.85).aspx
 
Does anyone here know how to users html 5 tags with audio source being a database.
 
10:13 PM
Well, since PSObject doesn't inherently have first/last name, I'd say you can't
 
@user3403437 What do names have to do with powershell? There seems to be something you're not explaining
 
unless you downcast to some other type
 
<audio controls="controls" autoplay="true" loop="loop">
<source src="audio from database"/>
</audio>
 
Can I not write a simple web-request to connect to OAuth, I want the token from them.
 
@Greg What have you tried?
 
10:26 PM
            var webRequest = WebRequest.Create(uri) as HttpWebRequest;

            webRequest.Method = "POST";
            webRequest.Credentials = new NetworkCredential(id, secret);
            webRequest.Headers.Add("Grant_Type", "Password&Username");
            webRequest.ContentType = "application/x-www-form-urlencoded";

            if(webRequest != null)
            {
                var response = webRequest.GetResponse();
                Console.WriteLine(response);
            }
I was hoping to avoid the crazy DotNetOpenAuth, actually understand it a bit before I use that.
 
No one? lol
 
@LuluthoMgwali Just do it the easy way, load the data from the db and push it into the audio element
 
@KendallFrey I was under the impression you could do it that way, am I mistaken?
 
are you sure you have the correct grant type?
I never saw it mentioned
 
I have it in the header, did I do that wrong?
 
10:34 PM
The examples I see have it in the body
I know nothing about oauth
 
I'll give it a whirl.
 
You sound like you're pounding your keyboard hoping it works
 
Trying to find good documentation to get started.
 
you know, now that I read that code, I feel scared
 
@KendallFrey its already stored into the database as varbinary.. and this is done for the ease of the content manager to add/edit/delete
 
10:38 PM
you're never sending a body at all
> if(webRequest != null)
jesus christ
 
lol
yeah, if webRequest is null, you've got other problems before that :p
 
You could say "You send a body like so." Not, "You're never sending a body at all, Jesus Christ."
I already know I'm having problems, don't need to rub it in.
 
Maybe it would help if you read a basic tutorial
 
Then send a basic tutorial.
 
10:41 PM
I linked you to an article
there are plenty more that you can find with Google
 
I'm reading it.
Wouldn't posting via a QueryString wouldn't that be bad?
ie, exposed in plain text?
 
It would be bad, if it wasn't HTTPS
 
OpenAuth2 requires https for everything, so no plain text
 
But aren't those susceptible to man in the middle attacks still though?
Hm, I send through body and still get unauthorized.
 
What do you send?
 
10:49 PM
var auth = String.Format("{0}?grant_type=password&username&username={1}&password={2}", uri, id, secret);
 
Is that a query string?
You don't want a query string
 
Oh, what do I want.
 
You want to send it in the POST body
And I'm pretty sure that grant_type can't possibly work
My guess is you want just password
 
The documentation says that exactly though.
 
What documentation are you looking at?
 
10:56 PM
Headers-->
Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW
Content-Type: application/x-www-form-urlencoded

Request body-->
grant_type=password&username=yourClientId&password=yourClientSecret
The thing I'm trying to connect to, that is what they told me and I should receive a JsonObject back.
 
that looks more correct
I'm not entirely sure why the Authorization header is required. I didn't see it mentioned.
the rest looks right
 
Neither do I, they say they recommend it.
Not sure how to accomplish that though.
 
then might as well include it
 
            var webRequest = WebRequest.Create(uri) as HttpWebRequest;
            var content = String.Format("grant_type=password&username={0}&password={1}", id, secret);
            var size = Encoding.ASCII.GetBytes(content);

            webRequest.Method = "POST";
            webRequest.ContentLength = size.Length;
            webRequest.ContentType = "application/x-www-form-urlencoded";

            if(webRequest != null)
                using (var stream = webRequest.GetRequestStream())
 
I don't think you need to set ContentLength
 
11:03 PM
I still receive an unauthorized, but I might actually need that header.
 
other than that, looks about right
yeah, try adding the auth header and see what happens
 
Just use the same one they have?
 
I'd assume they want the same UN/PW as in the body
 
Your more than likely correct, will formatting matter?
 
What formatting do you mean?
 
11:07 PM
I tried username and password, with spaces just as Basic value value2 and it unauthorized.
 
No, do it the normal way msdn.microsoft.com/en-us/library/…
Protip: It helps if you already know HTTP before you try oauth :P
 
True story.
I appreciate your help though.
That didn't work, neither did NetworkCredential.
Well, I'll chug a long at it tomorrow and read up about it at home. I appreciate your help Kendall, you're a really good guy.
 
Care to paste the complete HTTP request from fiddler? Minus any sensitive data of course
 
Weird, so in Postman it is just issued something back to me. So it must hate the header.
I got it!
@KendallFrey I love you!
 
I've started using Microsoft Network Monitor since fiddler seems to fuck with things like the VS Xamarin plugin
 
11:32 PM
@Greg BTW - Take out that stupid null check
 

« first day (1781 days earlier)      last day (3162 days later) »