« first day (1567 days earlier)      last day (3375 days later) » 

7:00 PM
@BradleyDotNET Well, I want to ensure that I actually know what an activity is.
What is the activity?
 
where else is ACTIVITY_ID used?
 
Nowhere that I can see on that page
 
ohhh
well there is Activity activity = service.Activities.Get(ACTIVITY_ID).Execute();
 
Yeah, but what is the activity?
 
but with OAuth, I'm pretty sure you have to set that up in your develop account or something
read the Service Account description, and click the links in it
 
7:04 PM
@NETscape I've got Google Developer Console set, but now I need to connect via the certificate so I can login.
 
you can use different services, when you create a service, you are given keys to use in your applications that are generated by Google
i'm guessing the activity id is a key generated by google, so that when that line of code is executed, it'll return the service connected to your account and allows you to do what you need to do
 
But, I don't see any of that in the console.
 
i don't think its anything you have to worry about
its a known public activity, like Bradley said, it's probably specific to Android
 
@NETscape So, with all the other stuff I should be able to in essence meet login criteria.
 
7:13 PM
@NETscape I don't think this is Android. I just know it's Java because String is uppercase.
just looks like an API key to me
 
@Pheonixblade9 ahh yes, just like this
 
Nothing like a Friday afternoon refactoring someone else's shit code.
 
@Pheonixblade9 right, it would be the ID to a OAuth activity... my fault. that is .net code
@Greg by the json object that last long url i posted shows, i would guess that is the activity id to get stuff off of Google+
hence the namespace the code is in, Google.Apis.Samples.PlusServiceAccount
also see in that link, the activity is used in a lot of places in that json object, probably specifically for G+
 
@Greg - RESTSharp has an OAuth client implementation that makes this stuff pretty trivial.
 
Why don't people like vaccines? Super baffled... Can't believe there is a freaking measles outbreak in SoCal at the moment
 
7:21 PM
strong belief that they do more harm then good - autism for one -
anyone have a link for a good overview of TFS
 
@juanvan I can give you a good overview right now
 
A strong belief in one lie. Perhaps they should just get free tickets to Disneyland :)
 
TFS is a sack of shit
 
@TravisJ that is my take too - we made these things to live longer
is what they are using/have been using
 
@TravisJ - mysteriously they are willing to chance getting the measles so that they won't get some of those side effects. It's really quite stupid.
 
7:29 PM
@TravisJ write me a script that'll alphabetize/sort/order the members of classes correct for document outline view on referencesource.microsoft.com
due in the next 15 minutes
 
hm. I hope the client doesn't mind me using jsfiddle to do mockups.
 
@NETscape - Not possibru. The line numbers are separated by some sort of \n and it doesn't look like you can detect programmatically what separates them.
@NETscape - If their markup were nicer it would be possible.
As it stands the only possible way to do that client side would be to regex the html.
compile error?
 
lol
 
@TravisJ i talking in just the document online view, the pane on the left hand side... I don't think they have line numbers for those
 
@TravisJ Did you actually just suggest
4428
A: RegEx match open tags except XHTML self-contained tags

bobinceYou can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool th...

 
7:43 PM
i hate when i fix something, and go to show people, and its broken again
 
@BradleyDotNET - Nope, I said it wasn't possible because you would have to do it like that.
 
like wtf kind of satan voodoo did this shit
 
Ah, ok, good
 
Although many places do regex html, including SE. They just do it in contained environments.
 
@ton.yeung its because of rebases, i swear
 
7:44 PM
 
@CharlieBrown how do you structure angular apps? do you make a root angular folder or throw stuff in the scripts folder or
PITA GRIFFIN
lineman?
 
@Steve Of course its preference, but I usually have a folder for each "Type" of angular thing
 
!!google git lineman ?
 
One for controllers, one for directives, one for services, etc.
 
7:45 PM
that makes sense
 
Then you can bundle them if you want for ease of insertion into the HTML
 
but where you do you put that folder
like a root angular folder?
 
My root is usually small enough that I stick them there
but an angular folder makes sense
 
gotcha
this solution has it ALL in the scripts folder, drives me nuts, this guy is going to attempt to fix it and see if i had any suggestions
(including views in the scripts folder, which is confusing as all hell)
 
no kidding
Views go in a "views" or "partials" folder
 
7:47 PM
yeah
well, it basically ahs the same structure that you have, just it's root is "scripts" in mvc
dont think he knew what he was doing when he started writing the stuff, but hey, neither did i
so, i'm not pissy about it, live and learn, you know?
 
Lol I love the accepted answer on that HTML/RegEx question
I hadn't seen that
 
@SpencerRuport lol really? the long ass one that talks about like satan and lucifer ?
 
Yep
'09 was a fun year for SO.
 
hilarious
 
No-a-days answers like that get reported and removed. :(
 
7:50 PM
@SpencerRuport They even put it on a shirt
 
orly
I might have to get that.
 
yeah, now theres a lot of crappy questions along with a bunch of elitists who are anal about everything
makes me hate visiting the main site unless i'm looking for a specific answer
 
Yeah. I used to answer stupid questions because it gave me the opportunity to say something funny.
 
lol
 
Now the question just gets downvoted and removed :(
I don't think that's better
But I like to have fun so...
 
7:52 PM
You don't think removing the crap is better?
 
Eventually sure.
Doesn't mean you can't leave it for a couple days.
 
i remember this one question this guy had probably about a year ago, it was a legitimate question, but as the precursor he told a funny story about how he convinced his kids if they weren't nice to the computer it'd be mean to them
not a year ago, i can't believe its 2015, probably a few now
 
Seems odd HashSet doesn't have some sort of capacity parameter for it's constructor
 
My personal favorite humor/serious answer: stackoverflow.com/questions/1176011/…
 
@Reed - Does Tuple.Create use type inference?
 
7:54 PM
I never get to make SQL jokes in real life!
 
@TravisJ yes
 
thanks :)
 
thats' why you don't have to enter the types ;)
 
I may have once or twice defined the types using new Tuple<excessive,type,declarations>
 
yeah - without type inferrence, you'd have to do Tuple.Create<excessive,type,declarations>(foo, bar, baz)
 
7:56 PM
oh crap, I don't want a HashSet after all
 
@ton.yeung that's the namespace explorer, not the document outline
 
anyone into penny stocks
 
I'm surprised there's no restaurant called the Foo Bar in Seattle
They could have a sandwich called "Hello Bacon!"
And house specials on their signature drink "The Leaky Abstraction"
 
@ton.yeung whoops...
@TravisJ that's the namespace explorer, not the document outline
 
@SpencerRuport They do have this in Seattle:
 
8:03 PM
turkey bacon!
 
yummm
I'm hungry
 
@Steve yes, i structure them
 
If A is a dependency of B, which one depends on which one?
 
B depends on A
 
B depends on A
 
8:09 PM
12 secs ago, by Spencer Ruport
B depends on A
 
What they said :)
 
ok, you all agree
 
@NETscape - Beat me to it.
 
i never agree
 
but isn't it the opposite for things like income tax?
English is way too ambiguous
 
8:10 PM
@KendallFrey what do you mean?
 
Or is that a dependent
 
dependent
 
Dependant would mean the same thing in this case though
 
you claim a dependent
 
I think it's best to avoid this word today
 
8:12 PM
A is a dependent of B means the opposite of A is a dependency of B.
 
if you claim a dependent, that dependent depends on you
 
parent is a dependency of baby
 
If your dependants are your grandparents, then they probably depend on Depends
 
#dadjokes
 
HI HUNGRY, IM DAD!
 
8:13 PM
@drch stahp
 
HAMMAHTIME!
 
@KendallFrey knocked someone up?
 
knock knock
 
food babies dont count
 
@SpencerRuport that is what really threw me I think
@CharlieBrown babies don't count
 
8:20 PM
hm. I can't seem to get HTML text to render as HTML with jQuery
@ton.yeung I am.
I'm using TinyMCE and grabbing the HTML, then rendering it below.
nope, this is just a jsfiddle
 
Html() returns the contents of the item fyi
 
seems that way.
I tried $.parseHtml too
 
@SpencerRuport I'll have to check that out.
 
console.log(tinymce.activeEditor.getContent()); logs the content for me
wait, maybe if I set it as a variable?
 
No it would. But if you get some html and do $(html).html() it would return the contents of the first node
On the phone so I didn't check the fiddle. Just mentioned a common issue with .html()
 
8:26 PM
@Pheonixblade9 - $('htmlRendered')
You forgot the # in the selector
 
Man - programmer autocorrect would be sweet on the phone
 
^
 
hooray, I'm an idiot!
thanks guys
I'm doing some mockups for a client.
 
@Greg you figure it out?
 
Don't worry I'm sure I'll be trading this back in shortly ;)
 
8:28 PM
@NETscape No :(
Who would of thought this would be so difficult.
 
@Greg didn't i explain it to you?
 
@Greg you are still struggling with the sitemap thing?
 
Yeah, that part makes sense. My original goal though isn't met, ie Google allowing me to connect.
An error 401, Unauthorized.
 
You need to use oath
Oauth
 
got it working, thanks guys. jsfiddle.net/pheonixblade9/sdk8wkv0/6
 
8:32 PM
@Greg why do you need to do it through code? support.google.com/webmasters/answer/183669?hl=en
 
@NETscape Because I was told to.
 
Just to remind, from what I know about webmaster tool, as long as you submit a valid url for your sitemap, google actually will keep crawling it in period, you don't have to repeat submitting it unless the url changed
 
I just need to find an example of using OAuth, since I've never used it before.
 
Yeah you need to send authorization headers for that one
 
@drch What is annoying, the example off the Web-Master URL will work. Won't let me send the damn request
@drch What do you mean?
 
8:36 PM
You posted something earlier with an apikey in the url
That only works for reading public data
Since you are writing, you need to send the Oauth authorization header
 
@drch Do you know of a clean simple example that outlines, so I can figure out how it works. I'm assuming the header contains some form of secret and token.
 
Not off the top of my head
 
@Greg did you ask your manager if she/he knows about the webmaster tool?
 
@NETscape Yeah, they know about it.
@NETscape They said, I want to have it automated though.
 
@drch That is what I looked at, which doesn't seem to work.
 
ahh. sounds like its automated so long as the sitemap address doesn't change.
 
I'm pretty sure you can put a site map url in robots txt
I think we do that
Either that or it just hits site map.xml by default
 
@NETscape Well, I built something that will grab and build the latest sitemap automatically. But I need to tell Google when those changes occur, that is why I wanted to simply submit the URL.
 
@Greg you set everything up properly in developer console?
 
8:46 PM
I believe so
It'd help if that 'example' actually worked, so I could see what it returns.
 
what APIs do you have enabled
 
For that Google example.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
using Google.Apis.Services;
using Google.Apis.Auth.OAuth2;
using Google.Apis.Plus.v1;
using Google.Apis.Plus.v1.Data;
 
no, in google dev console
 
Just maps and web-master tools.
@NETscape That is all I should need, correct?
 
9:06 PM
you probably can't find examples because webmaster tools replaces the whole submission using OAuth idea
 
@NETscape What do you mean?
 
hi everyone
 
Hi Brian
 
Any potential ideas, to circumvent or actually accomplish my goal?
 
Do you guys have dedicated testers?
 
9:17 PM
@SpencerRuport I'm trying to set the image source of an image control, but the image doesn't show when I run the WPF application, if I post my code hear could you take a gander?
 
@JohanLarsson Our company doesn't.
 
We do not have any either.
 
Nope, we get CSRs or peer programmers to do it (depending in which project)
 
Have a few dedicated testers, but not enough
Do you guys do (or have people who do) anything for load/stress/performance testing?
 
9:24 PM
This is my class and xaml layout, just trying to set the image source to my image control in WPF but the image doesn't show in the control when run.
http://hastebin.com/etulejequy.xml
Anyone have any idea where I went wrong with this?
@SpencerRuport
 
Set the image source in xaml
Then you will have some ~compiler support~
At least with the view open in the designer
 
@JohanLarsson yeah that's a better idea, thanks.
 
@BrianJ I bind a string to Image.Source in XAML, and this is the uri format I use: DefaultImage = new Uri("pack://application:,,,/Images/Branding/Log.png").LocalPath;
 
<Image Source="/Images/Branding/Log.png"/>
 
You too man
 
9:34 PM
@JohanLarsson tried the above, the image shows in the editor but doesn't show when run.
@NETscape cool I'll give that a try.
 
@BrianJ check build action & copy to for the image
And check bin/debug folder that it gets copied
 
@JohanLarsson I'll try that.
@JohanLarsson where can I find this in the image props?
 
@BrianJ Select the image and check the properties window
 
which property?
 
Hold on I'll write a sample.
 
9:46 PM
I don't see build action in the properties window.
 
works fine for me, blows up the build server. yay weekend!
 
10:06 PM
Have any of you used PostSharp?
 
[TestMethod, Ignore]
 
10:16 PM
@BradleyDotNET, all good, thank you
@BradleyDotNET main hassle was to send a report of the step I am into on top of the int percentage using async / await IProgress
 
Suggestions for uploading images to Azure. Should I write code directly to my application to handle this? Or should I do it through my WCF service? Just wanted to get someone's thoughts on what the best practice would be, thanks.
 
@SpencerRuport Yes, I'm the PostSharp guy at my company
@MikeAsdf We have, oh, about 20 of those
 
@JohanLarsson, do you have any ongoing opensource projects which you be looking for a C# developer to get couple of it's tasks done by any chance?
 
@KendallFrey - Is it worth using? What features do you use the most?
 
We use the method entry and exit hooks for debug logging.
 
10:21 PM
@Mehrad Not really. I have only small libs that no one will ever use. OxyPlot is an active lib. They probably have a nice list of stuff to fix.
 
It's a pretty nice piece of software, haven't found it to be a performance problem. We did have to mess with versioning a bit though.
 
@KendallFrey - Do you use their built in data attribute validations?
 
we don't
 
No interest or it just doesn't work right?
 
We didn't need it
 
10:22 PM
Gotcha
 
@JohanLarsson I see three options: "copy to" "copy if newer" and "copy always"
 
I think we only installed PostSharp for logging
 
I see.
 
@JohanLarsson I'll look into it. thanks for the recommendation.
 
@BrianJ If you have it as Build Action Resource I'm not sure that it is needed. To be honest I never remember the settings for this stuff. Default usually works.
@BrianJ Did the sample work btw?
@KendallFrey what do you log to? File?
 
10:24 PM
@JohanLarsson just trying it now.
 
@JohanLarsson ETW
 
@JohanLarsson tried this but still doesn't show, also image is set to resource: hastebin.com/zegafeputu.xml
 
@Mehrad Sounds like you figured it out. Glad its working!
 
@BradleyDotNET, Yeah. I am not sure it's the best way of doing it but I added another Reporting action of a type string
 
10:29 PM
@BradleyDotNET something like this
        var progressIndicator = new Progress<int>(ReportProgress);
        var progressStepsIndicator = new Progress<string>(ReportProgressSteps);
it's working, but if it rings a bell for any issue let me know :D
 
@BrianJ ok dunno then. I think you are close. Can't spot the error.
 
@NETscape do you do app development much?
 
Sounds right
 
thanks @BradleyDotNET
 
@NETscape Yeah, I've been looking at that. Didn't really help though, I'm either too dense or not seeing the proper correlation for C#. I would of thought it would be as simple as modifying the HttpWebRequest header for authorization.
 
10:34 PM
if its saying unauthorized, it might be something in google dev console too. you have the API turned on and what not, right?
 
Yeah.
@NETscape The Google documentation isn't clear or concise.
 
@Greg what credentials are you using?
 
The email credentials for the account.
 
the google account or the service account?
 
The Google account, the only credentials I have for the service account is an X509 Certificate
 
10:55 PM
you can turn on using OAuth
 
@NETscape The try works when the OAuth thing is checked, but fails otherwise.
Everything would work if I could formulate whatever Google needs for OAuth.
 
@Greg did you create a Client ID?
 
? What do you mean?
 
@Greg lol
in the Credentials link?
 
Yes, I did.
 
11:09 PM
so are you using that information for your credentials?
 
Yes, I thought I was.
 
Good grief kendo and angular just do not like to play with each other.
Spent the past 30 minutes trying to get a jQuery, angular, kendo fiddle going
Nothing but errors.
 
@Greg ping
 
@SpencerRuport - share?
 
11:23 PM
@SpencerRuport - don't you have to register the controller?
 
Not sure. Do I?
I'm still a huge angular noob
 
Me too, but last week I sat down and read like 40% of their source code and I saw a lot of controller registration
@SpencerRuport - jsfiddle.net/s7jmcu8p/3
The source never lies :D
 
@TravisJ - Ahhh thanks man
 
@NETscape ?
 
11:49 PM
@SpencerRuport - What do you think of this style? There will be a set of them to display summary info jsfiddle.net/8hxLbaej
 
Someone mentioned kendo? Lol
 

« first day (1567 days earlier)      last day (3375 days later) »