« first day (1600 days earlier)      last day (3347 days later) » 

5:00 PM
possibly, never where i lived
unless you mean non-us coastal
Fish, so yuck
i only eat fish in sushi form, no other way
I'm jealous of another boat in the marina name "Patronus". such a good name
 
sigh I am so sick of having to tell people they're wrong all day. Why can't I work with people who know what they're talking about?
 
Just did something I haven't done for two and a half weeks. Checked in code.
 
They're neither i) stupid or ii) incompetent, they are for the most part very able, but by and large don't know anything about how software gets made yet make decisions about it that then don't work
 
Yeah, I think I'm going to sell my Nexus 6 for $575 now.
 
hi, i'm loading an assembly like this Assembly.Load("assemblyName") after that i get it's type GetType() and call it's methods via reflection. but everytime i call a method i load the assembly again will there be a performance issue ? do i need to put the loaded assembly instance some where and use it everytime ?
they are multiple assemblies not just one
 
5:13 PM
@someone You can't load an assembly more than once
You should probably store the instance somewhere
 
i can't technically ? or i shouldn't
 
can't
 
@CharlieBrown - Can you help me with a kendo/angular issue? I'm trying to attach a toolbar template to a kendo grid but the bindings are never updated for it.
 
An assembly can be loaded into an AppDomain once, and after that it can never be unloaded
 
@KendallFrey so if i called load again nothing will happen ?
 
5:17 PM
@SpencerRuport toolbar: [ { template: kendo.template($("#" + scope.toolbar).html()) }]
 
when i call Assembly.load multiple times on the same assembly will it be loaded only once ?
 
@someone I'm pretty sure
 
if this is the case i don't need to save an instance
 
You still should
 
@CharlieBrown - If I made a typo there I'm not seeing it.
 
5:19 PM
@SpencerRuport one sec, updating
 
Plunker is amazing.
So easy to reproduce issues.
 
@SpencerRuport you have a couple bugs
 
Aight
 
@KendallFrey do you recommend adding a static property to act as storage for the instances of all loaded assemblies when someone call a method will get the instance from it.
 
static sounds too much like a global
Store it where it makes sense. I don't know where it makes sense because I don't know your code.
 
5:22 PM
@ton.yeung I might, just hesitant.
@ton.yeung .Net?
As like a Microsoft .Net?
 
      var template = $("#" + scope.toolbar).html();
      $compile(template)(scope);
      element.kendoGrid({
          height: 300,
          dataSource: scope.source,
          columns: scope.columns,
          toolbar: [ { template: kendo.template(template) }]
      });
@SpencerRuport part 1
 
@ton.yeung Yeah, they meet once a month.
 
@SpencerRuport part 2 app.directive('kendoDragGrid', function ($compile) {
@SpencerRuport ill just fork it, too many changes
 
@KendallFrey if all the assemblies will be loaded in the AppDomain i will check the app domain to see if an assembly exists before loading it this will solve the problem :)
 
@ton.yeung Yeah, mine is Padnug
 
5:37 PM
@CharlieBrown - I see where you're going with it. I didn't know when was the appropriate time to use $compile. But I'm confused by it's usage
var template = "{{welcome}}";
$compile(template)({ welcome: "Test "});
console.log("Template compiled: " + template);
That gives me an error.
Second line:
> Syntax error, unrecognized expression: {{welcome}}
 
@ton.yeung You still interested?
 
@ch
@SpencerRuport sorry, i crashed
 
@CharlieBrown - No worries. Don't sweat the plnkr I don't need a full example.
 
@someone It would still be nicer to hold a reference to the assembly.
 
anywho, 1: dont use jquery to select, use angular.element(id)
{} is not a scope
      var toolbar = angular.element("#" + scope.toolbar);
      $compile(toolbar)(scope);

      element.kendoGrid({
          height: 300,
          dataSource: scope.source,
          columns: scope.columns,
          toolbar: kendo.template(toolbar.html())
      });
@SpencerRuport another prob you have is too many divs with the same ID
div id's must be unique
 
5:43 PM
@CharlieBrown - Yeah I noticed that after I gave you the link.
 
Why would you not use JQuery to select something? it worked 3 years ago, why doesn't it work now?
 
inside angular, you should depend on angular, not jquery
since jquery isnt required
 
@CharlieBrown That makes sense. I was unaware of the context
 
@CharlieBrown - Compiling doesn't seem to do anything. jsfiddle.net/3o31v8ny
Forked again. Made a variable typo but the issue is still present.
 
Ah, bummer.
 
5:58 PM
@SpencerRuport back
 
user862319
We need a Hell's Kitchen version of code reviews.
 
@SpencerRuport that fiddle you sent works fine
 
@CharlieBrown - Uhhhh...
 
would you like a screenshot?
 
6:01 PM
oh your looking in console, i was looking at the ouput
 
user862319
@SpencerRuport I meant with an eccentric and volatile host like Gordon Ramsay.
 
@SpencerRuport thats working fine too btw
but i see what you really want is the rendered html
 
@CharlieBrown - So how would I get that?
And what is $compile(template)($scope) doing?
 
@Bob I like it :)
 
$compile is the linking function for angular, it says... hey this shit has angular in it!
it returns a function that takes scope as an argument
var link = $compile(html); link(scope)
in expanded form
so it applies the scope to that html
here is where it gets hairy
when you do that, you basically queue up a call to $digest/scope.$apply. but that runs async, so you dont know when its going to complete
@SpencerRuport follow?
@SpencerRuport either way, you dont need to do that, your problem is different
you created an isolated scope for your directive, so it wont inherit the parent controllers scope, which is why it doesnt work
if you put a welcome property on the directive scope, you will see it working just fine
 
6:13 PM
@CharlieBrown - Kind of.
 
if you remove the scope compilation, it will compile correctly to the parent scope
      var toolbar = angular.element("#" + scope.toolbar);
      //$compile(toolbar)(scope);
do that and see the difference
 
@rlemon - You guys and your vote requests. Ben seems to be popular on meta lately from them.
 
@SpencerRuport tldr; you have to do a janky hack to get the rendered output in the link function
 
not just us
lots of people cv request
 
I think the PHP room invented it or something?
 
It still doesn't seem to be working.
 
@rlemon - Not sure who invented it. Definitely php as well. Where Ben also frequents.
 
I think it started in php or c++
 
@rlemon - Let me ask you this, is collusion in chat a problem for the exchange?
Sometimes I wonder what the % of cross voting is in certain chat rooms, and if that counts as voting irregularities.
 
it can be, but from what I see often isn't
close votes are not down votes :P
 
@rlemon - Close votes are meh, but I am talking about up votes.
 
@CharlieBrown - That's not working either.
 
@rlemon - For example, what % of user x's votes came from owners of room y.
 
6:20 PM
@SpencerRuport yes, it actually is... just not the way you want
 
@TravisJ more often in the JS room if you post a answer/question you will get scrutinized and downvoted.
 
@SpencerRuport i was trying to explain how it is
 
because we're assholes who like to nitpick peoples stuff.
 
@SpencerRuport anyway, adding the next step now..
 
6:21 PM
@CharlieBrown ...
 
@rlemon - Depending on who you are and what is posted, for sure. But I am not sure you guys vote in unison as much as other rooms.
@rlemon - The nitpicking is how things get polished :)
 
in JavaScript, Jul 18 '13 at 2:39, by bushdiver
btw, you guys are the rudest bastards in the world
38 stars ^
 
user862319
Oh theres a PHP room...
 
user862319
 
@CharlieBrown My problem was "I'm trying to attach a toolbar template to a kendo grid but the bindings are never updated for it." None of your changes resolved that.
 
6:23 PM
they do, i was just trying to explain the process so you could understand yourself, sorry
 
@Bob if all you have is a hammer, everything looks like nails.
 
i will post solution now
 
Oh okay. I usually work the other direction. I see the right way and it helps me understand why my way didn't work.
I know kendo tends to cannibalize angular's ability to bind and I figured that's the issue here. I just wasn't sure how to work around it.
Oddly enough I think it was an employee decision =\
 
your gonna love how horrible it is :)
 
Ughhhh
 
6:29 PM
angular is not designed to give you this, for obvious reasons. but here is the workaround....
 
ughhhhh
 
a timeout?
fffffffffuuuuuuuuuuuuuu
 
render runs async
so you have to queue up $timeout and wait until the render is done
 
Ugh.
Noooooww I'm frustrated.
Somehow they got this to work on the main view but it doesn't work in the window.
 
6:33 PM
so, i never asked but... why not use Kendo's angular controls instead?
 
No idea.
 
@ton.yeung ;)
 
Senior dev: You're going to be ready to do an automated deployment to test by friday, right?
Me: wat
@ton.yeung i.e. 'you'll have built the package, right?'
 
@CharlieBrown - From what I understand kendo controls are compatible with angular as long as you prefix the options with k-. But what about if I need to create them in code?
 
No, i mean, Kendo has angular controls in their lib
 
6:37 PM
Me: Not without fundamental things like service account credentials, connection strings and so on, no.
Senior dev: config guys, can you let us have the environment settings for test please?
Config guys: wat
 
even in angular, you shouldnt be creating controls in code
 
@CharlieBrown - Oh. I'm looking at this: docs.telerik.com/kendo-ui/AngularJS/introduction
 
creating html in a link function is not a good practice
 
user862319
?
 
???
 
user862319
6:41 PM
I retract my question mark.
 
!
 
Woah. Looks like something from EVE online
Which makes it awesome
 
I want a car that looks like Kerbal Space Program
 
@ton.yeung I'd hazard a guess that Nissan would like to continue making money. So...why not?
Unless it's loss-making
In which case, who knows
 
@CharlieBrown - How else would I go about it? I need a kendo grid with drag/drop capabilities.
 
6:45 PM
@SpencerRuport create your own, use that code, use the kendo angular grid
 
@CharlieBrown - I see nothing in telerik's documentation on how to create a kendo angular grid using javascript.
 
@CharlieBrown - That doesn't show how to create a grid in javascript code.
 
morning kids
 
@SpencerRuport i think thats the issue you have. you can either do the non-angular grid or use the angular grid, but you cant mix em
 
6:50 PM
@Pheonixblade9 - I'm not your kid, pal.
 
I wouldn't have this issue if Telerik had a clue how to develop a real framework.
 
@TravisJ I'm not your pal, guy
 
Arbitrarily locking developers out from the ability to customize their controls because they didn't implement an angular-compatible constructor in javascript is bad design.
And that bad design means I have to create more bad designs to work around it.
 
@Pheonixblade9 :D
@SpencerRuport - Heh, Telerik. Those guys
 
:[ I'm just pissed today.
And then angular doesn't offer a synchronous way to render some html.
 
6:55 PM
@SpencerRuport there is no such thing as an angular compatible constructor
it would be counter to angular design
in angular, you create controls with html not with code
 
@SpencerRuport - I do all my html templating by placing the html in a hidden div, cloning it in js, and then making a factory to produce the clones.
 
hence, MVC
your trying to make webforms
 
@CharlieBrown - I recognize that the constructor would be atypical but it's still necessary if they want to allow developers to extend existing controls designed for angular.
@CharlieBrown - I'm not trying to make webforms. I'm trying to make a custom control by building on top of an existing control.
 
your trying to make a control with code
angular doesnt support control inheritence
it does support control composition however
 
@CharlieBrown - Can you give me an example?
 
6:59 PM
intense office architecture debate
coworker suggests that WCF can be replaced with a static non-hosted API
 
@Pinky - non-hosted as in local?
 
@Pinky define 'replace', 'static', 'non-hosted'
 
@SpencerRuport create the entire grid in kendo html as an angular template
 
@TravisJ yes local
 
use that template in a directive
wallah
 
7:00 PM
@CharlieBrown - No need to be snarky about it.
 
@Pinky - How many locations do you guys operate from
 
@NETscape Because int and ushort are 2 different types. You can't implicitly cast int to ushort. You will lose data
 
@SpencerRuport sorry, dont mean to be
 
@TomW replace = no service layer....static = no console app servicing requests
non-host = static
 
@CharlieBrown - I've only been using angular for 4 weeks.
 
7:02 PM
@Pinky sorry, I have absolutely no idea what you're talking about. I have a good understanding of WCF but from your description I can't tell what you're comparing it to
 
@Pinky Are you doing actual IPC?
 
@ton.yeung sorry I meant in the sense that there is no host
@BradleyDotNET nope
 
user862319
static, non-hosted API?
 
@CharlieBrown - I'm still learning how to accomplish certain things.
 
Then WCF doesn't make much sense...
 
user862319
7:03 PM
How would you define the "endpoint" for such a thing?
 
@ton.yeung sorry folks, lets start from the beginning
trying to design a backend that can work with multiple clients
 
Well thats IPC
 
..like Kendall's mom, gotcha
 
Is the backend all going to be in one building?
 
7:05 PM
clients being a web app or desktop app
 
@TravisJ with Kendall's mom, you'll be lucky
 
both web app and desktop apps are local
 
So your clients are on site?
 
thats why the debate about needing a service layer erupted
 
oh god, rtfm. drives me nuts when people wont rtfm (not directed at anyone here, its my coworkers)
 
7:07 PM
@Pinky ??
 
@TomW lol
 
@CharlieBrown - So I see how I can use an html directive but kendo's drag/drop functionality can only be initialized using javascript. I'm looking at the templates and I don't see a way to... intercept? the returned dom object and make these changes before it gets inserted into my controller template.
 
@KendallFrey one of these days you're going to be like "Guys, something bad happened to my Mom. I'm going to be away for a while"
 
@SpencerRuport ok, that will still work
 
I respect you as a woman and as a human being, Mrs Frey.
 
7:09 PM
the link function is designed for that, just create the grid outside of that in a template
 
I'll set em up, you knock em down
 
@SpencerRuport pretty much the only thing you have to do is take out the creation part and the rest of your code is good
 
@CharlieBrown - Ah okay I think I follow.
I'll give it a try.
Thanks
 
@Pinky So you have a bunch of clients on...a company intranet or something? Using either a web application or a desktop application to access...something. That's sort of clear so far.
 
@TravisJ local meaning no remote users
@TomW Yep Exactly!
 
7:12 PM
@Pinky - I feel like you are talking past me.
So I kind of stopped responding.
 
@TravisJ @TomW understands me
 
I don't really. I'm trying to guess and beyond that I'm struggling
Is 'something' a shared resource? Or is this the user's own unique set of data?
 
@SpencerRuport you should hire me, where do you work?
 
@ton.yeung you can self-host a WCF service solely for on-machine communication if you really want to. It's so heavy I'd have trouble explaining why you'd bother, but you can. It doesn't have to be a resource shared on a network
 
@CharlieBrown - If you're serious I think they're looking for more devs. I can give you a number. Location is in Sacramento.
 
7:15 PM
@SpencerRuport oh, but only remote/tele
 
Ah okay. I'll ask but I think they want on-site.
 
its funny, when you work in an office, you mostly sit in a cube and not talk to people. but no one wants you to not be in the building
 
An office where people don't talk would be lovely
 
@TomW heres the catch, can a web app and a desktop app work with the same backend without WCF
 
@Pinky i think you mean "shared libs" not "backend"
 
7:20 PM
@Pinky Depends on the tech you choose
but yeah, there are plenty of options for that
 
@CharlieBrown Yess! im still wrestling with terms after the shouting match we had in the office
 
I'm excited, get to go to a fancy restaurant tonight and I don't have to pay for it, mwahaha
 
@LewsTherin i get that. why can't compiler do implicit cast in that format. i am specifying the variables type
 
@Pinky to be honest, I think the source of the shouting is the lack of clarity in communication. And by that I mean yours, but I haven't heard your colleagues, so they might well be no better
 
@ton.yeung very good suggestion, do you know where I can find a reference project, I'll start looking
@TomW yeh its just that when the manager here's my teammates use all those fancy terms, SOA, backend, etc they get wowwed
 
7:24 PM
SOA would be if you used WCF
 
@CharlieBrown yeh, Im trying to make an argument that we dont need it
 
@NETscape The compiler avoids implicit casts in cases where it could be dangerous, and forces the explicit cast even though it "could" do it.
 
@NETscape It doesn't matter. The ternary operator demands both "return values" have to be of the same type
 
@ton.yeung whats FPITA? sorry Im not hip
 
@LewsTherin The ternary operator will cast as long as the type is obvious
and as long as an implicit cast exists
 
7:26 PM
@ton.yeung yeh I thought I said it earlier, web app and desktop app with shared libraries
 
@LewsTherin yep. look on left hand said, i explicitly say ushort. I also says 0 which can be compiled as a constant. why can't compiler say oh, okay, left side says result will be ushort. right side will be evaluated at runtime, but i notice that if condition fails, then ternary should return 0... and it should be ushort
 
@NETscape Could you re-post the code?
 
@BradleyDotNET (this is basically same code) i see no difference in
ushort a = 0;
ushort b = true ? a : 0; // will not compile
ushort c = true ? a : (ushort)0; // will compile
 
@ton.yeung business req isnt that useful to u guys, they just want a high performant application
 
@BradleyDotNET Mmn I dunno about that. Will try it in a few
 
7:28 PM
business requirements are always important
 
@ton.yeung writing a web app and desktop in C++ is a pain
 
So weird seeing the -> operator in C#
 
we're a C# shop
 
@NETscape 0 is an int literal
 
@NETscape 0 is int a is ushort. The ternary operator won't do an implicit cast on 0.
 
7:29 PM
it is what it is
Note that double does work there
because int can implicitly cast to double
 
@BradleyDotNET OK now I understand what you mean. I wasn't saying it won't do that though
 
you don't have to ushort a = (ushort)0;
 
Ok, I guess i misinterpreted: "The ternary operator demands both "return values" have to be of the same type"
 
@LewsTherin that's what i figured, but clearly nothing is changing after compile.
 
Hmm... good point
I'm sure there's an easy difference :)
 
7:32 PM
Yes there is no ternary operator there :P
 
blast, the assignment code for UInt16 isn't on reference source
I'm guessing it takes an int and casts it
 
lol. i'm just curious is it per compiler
 
@BradleyDotNET huh
 
whereas a ternary can't make that assumption
 
@NETscape It's a compiler feature, yes
the C# compiler doesn't propagate expected literal types though operators like ternary
 
7:34 PM
uint16 uses a native type
@KendallFrey so instead they want you to cast, or create a const/static instead? pshhh, just implicitly cast it for me
 
@NETscape make a PR :)
 
:21911894 can i do it in pseudo code?
// See literal here?
// Use the implicit cast magic
// create a const for it
// don't raise error message
didn't want to ping you anyways.
 
prntscr.com/6cpfvk anyone know why my labels are sitting at the top left of their cells in a tablelayoutpanel? they should be vertically aligned as anchor is set to left & right
 
@mbdavis I think the labels are centered, it's the text that isn't
@ReedCopsey Do you know how to read ETW traces in realtime, instead of from an ETL(X) after the session is finished?
 
7:56 PM
@KendallFrey cheers that was it
 
(I'm trying the BCL library you linked to)
 
@KendallFrey not sure it's possible, actually
 
mmk thanks
 
I'd suspect it must be, but I don't know of anything that does it
 

« first day (1600 days earlier)      last day (3347 days later) »