« first day (1396 days earlier)      last day (3552 days later) » 

7:00 AM
@BenjaminGruenbaum do you have some advice coming from tip-ranks ?
about pitching ? or you went just dreamspark all the way ?
 
@BenjaminGruenbaum If you're bored, start reading here chat.stackoverflow.com/transcript/message/18232014#18232014
And let me know if I said something stupid
 
The problem with facial recognition and startups that rely in such complex algorithms or huge infrastructure is that there is always someone that can steal your idea and do it if they have enough power to do so. It is not the same for everything, just for the most obvious hipotesis.
 
@AbhishekHingnikar It's a whole thing, that's like asking if I have any advice about coding... go lurk in toastmasters or somethin
@copy I'm a swift developer now :P
 
@BenjaminGruenbaum I mean the pitching/ marketting time.
@BenjaminGruenbaum how swift is swift ?
 
@AbhishekHingnikar Yeah, I can read
 
7:02 AM
I wish i had a co-founder who was capable of atleast some marketting :-/
 
@BenjaminGruenbaum I assume it's not worth the hype
 
@copy Basically, the swift-lang room is a bunch of people complaining and asking for do notation in the language.
 
@BenjaminGruenbaum You make me sick
 
@BenjaminGruenbaum do-notation? Like in Haskell?
 
Well, it's really refreshing to be a part of an ecosystem consisted mainly of PL freaks and early adopters. Everyone uses terminology from different languages so it's really nice - I'm learning paradigms from rust etc. It's nice
 
7:03 AM
Have anyone here participated in a billion dollar company somehow?
 
@copy Yes, people are practically begging for it. It's really hard to aggregate operations without it in swift. People are hand rolling their specific cases but it'd really help. For example - you need to parse a JSON.
A simple example is - I have JSON on my side and it deserialises into a Swift Dictionary or Array or whatever and I need to parse it, since I'm not sure anything is there and it's all optional the naive approach is to unwrap every optional (their Maybe)
if let dict = NSJsonParseCommand(bytes) {
    if let rows = dict["rows"] {
        if let item = rows["item"] {
           // in swift, you really can't work with nils directly
        }
    }
}
So people started implementing unwrapping directly, so libraries let you do:
let item = NSJsonParseCommand(bytes)["rows"]["item"].unwrap();
if let item.value {
   // all I really wanted instead is an either instead of that maybe, or apparently a Rust `result`
} else let item.error {

}
 
Makes sense
 
@copy no point in arguing with those people :P
Some people just think JS is perfect.
Usually, you don't see those people on esdiscuss :D
 
@BenjaminGruenbaum I hope you are not talking about me
I never said JS is perfect
 
!!tell EnglishMaster echo Вы были запрещены
 
7:12 AM
@AbhishekHingnikar Command вы does not exist. (note that /tell works on commands, it's not an echo.)
 
Oh boy :D
 
@EnglishMaster Вы были запрещены
 
@AbhishekHingnikar There's !tel
 
@FagnerBrack you honestly don't think JS could benefit greatly from BigInts, proper sets and maps (and collections in general), proper catch clauses and better facilities?
 
@BenjaminGruenbaum js can get better with proper "ints"
!!> int a = 3;
 
7:15 AM
@AbhishekHingnikar "SyntaxError: missing ; before statement"
 
@AbhishekHingnikar definitely not like that
 
@BenjaminGruenbaum I am not saying it is not a benefit, everything I said is a counter argument for this: chat.stackoverflow.com/transcript/message/18231698#18231698
 
@BenjaminGruenbaum I mean for colors and stuff
 
@FagnerBrack JS is mediocre. It needs a lot more work.
 
i hate doing ~~ or parseInt
@BenjaminGruenbaum what according to you is hardcore ? python ?
 
7:16 AM
"First order functions" are not as redeeming in 2014 when every language has them
@AbhishekHingnikar "hardcore"?
 
if js is mediocre, what is the hardcore language :->
 
... what?
 
the best -_- most promising, feature compalient ?
 
How is hardcore a synonym for best when talking about languages?
 
Well, lots of languages are making leaps.
 
7:18 AM
Also, the answer is c#, everyone knows that.
 
C# is cute, but it's also missing some stuff
 
C# ? no way dude !
I feel python the most convienient to write but it has its own wtfs
 
Ooh, nice, new monitors arrived. Everybody's getting 2 new 24" screens now
 
@Kippie cung ruts
 
@BenjaminGruenbaum It is not about what is and what is not, but what you can do with what you have and the requirements you have. Everything evolves, JS have great potential but it doesnt mean it is crap just because it lacks a few things to enhance it (and things that in the end can be achieved due to the language's malleability)
 
7:20 AM
@FagnerBrack I didn't say it's crap, it's just mediocre.
 
> Oppaa Vegan Style ... Om Nom Nom Nom Nom Nom Om Nom Nom Heyyyyyy Brocilliiii Nom Nom Nom. !
^ wut
 
My counter argument is for those who use "JS sux" as an argument for everything, like @copy apparently does
 
@FagnerBrack What other platforms have you used to build UI?
 
You mean for web?
 
Copy said it's mediocre, while I like JS more than he does - I agree it's mediocre. It's not "great", it's not "bad", it just kind of is. It's the standard for web development so there are no alternatives anyway.
I mean in general
He isn't asking for strong typing, or static typing or anything like that, he is asking for a good base class library, value types and so on. That's different.
These are things the language should have gotten years ago.
 
7:22 AM
I am just web developer, the most I did for desktop was using Java Swing which sux much more than JS
 
Lol, if you benchmark JS against Swing of course you'll love the JS workflow.
 
I never went too deep in Swing
 
The JS workflow it really good by the way, since a lot of people have been doing it for a long time it got really good, but you should definitely check alternatives before you 'rank' a language as great or bad :D
 
is swing still the standard for creating GUI applications in java?
 
It kind of never was
 
7:24 AM
You sure? Then what is?
 
I do not rank a language as great or bad unless I have something else to compare
In the end everything is relative
 
(haven't done any java in 5 years, so I'm probably wrong, but still interested)
 
There's nothing better than JS for web, as there isn't something better for X in another platform
 
@BenjaminGruenbaum isn't the biggest point that javascript has the reason for it being so slowly evolving ?
 
There is nothing else to compare to for the web :P
 
7:25 AM
Yeah :D
 
It's just missing features that it should have had years ago.
 
@BenjaminGruenbaum That's not entirely true.
 
Well, you have the javascript superlanguages like coffeescript and typescript...
 
@SecondRikudo ...
 
He is being realistic
 
7:25 AM
Java applets, Flash, Silverlight, lately Unity.
 
Ofc there are "projects" out there
 
It being spread so much ?
 
They all suck much more than JavaScript, and they're all for the web.
 
That doesnt work
 
silverlight is discontinued, flash doesn't work on mobile
java applets... really?
 
7:25 AM
@Kippie My point exactly.
 
@Kippie flash sucks and microsoft is uber genius
 
Those are things that are for the web, but JavaScript took them all out.
 
i wonder though why those geniuses don't support native smil properly ?
 
!!mute
 
7:26 AM
@GNi33 Leave him muted
He earned that rightfully
 
"Always bet on JS" - Brandan Eich
 
Have you ever talked much to Brendan?
I mean, beyond a fan talk?
He has some very erm... strange ideas about JavaScript :D
 
@FagnerBrack "Always bet on PHP" - Second Rikudo
 
No I didn't, just fan talk really
 
@SecondRikudo just reading the transcript... hehe
 
7:27 AM
Not that he's not a great guy, just has really strange opinions imo
 
@GNi33 link?
 
Could you give examples?
 
I will tell you the truth, I am full stack so I cant get into language details so much
 
In his opinion, == is almost always preferable to === and prollyfilling is great
How is full stack related to anything
 
== is almost always preferable to ===, rly?
 
7:28 AM
?
 
@FagnerBrack sounds like: "I don't know anything"
 
Well, pollyfilling is great, except it's great for the wrong reasons (IE support)
 
@FagnerBrack according to Eich, I always use ===
 
welp, now i linked to caprica, oh well
 
7:29 AM
@Kippie prollyfill != shim, note the r
 
oh
!!define prollyfill
 
I'm not really sure why anyone would label themselves as an "X" developer.
 
@Kippie No definition found.
 
He coined it, it means shimming from the future
 
@FlorianMargaine Nobody knows everything, that's different
 
7:30 AM
String.prototype.multiply for example.
 
multiplying strings? That messes with my head
 
@BenjaminGruenbaum you don't happen to have the unminified version of the TipRanks js file available publicly, right?
 
@SecondRikudo right
Why?
 
I'm reading through it now to try and find the part where you update the SVG from the XHR call, and those variable names give me a headache XD
 
I can just send you a link to our 'staging' I guess
 
7:33 AM
to steal all da money
 
I also don't see any request in my networking tab
 
You can't earn money with stocks, everybody knows that.
 
@Kippie right, you should probably tell that to all those wall street millionaires.
"Sorry, please give your millions back, you can't earn money with stocks, k?"
 
@BenjaminGruenbaum Thanks
 
@SecondRikudo if you'd like, I can ask the developer who built it here to talk to you
 
7:35 AM
That won't be necessary, thanks :) I'm just trying to figure out this tiny part
 
I'm always surprised to hear people think you can't earn money with stocks given how much evidence suggests the contrary...
@SecondRikudo ok then
 
@BenjaminGruenbaum Oh it's simple. They educate us that for money you have to work hard, so stocks and other forms of money making seems like black magic and scams.
 
What is the main argument when they say you cant earn moneywith stocks?
^
 
The end result is that even if you want to get in the business and you don't come from an experienced family, your friends and family will discourage you with their own fear and inability to understand.
 
@BenjaminGruenbaum Oh come on, man, wasn't it apparant that it was sarcasm?
 
7:37 AM
I've been there, I'm still there.
 
@Kippie you're be surprised to hear how many people really think that
@SecondRikudo that makes sense
 
@BenjaminGruenbaum I had to literally tell my mother to stop it, because she's hurting my judgement.
 
So you guys work with stocks only? How does that work?
 
@FagnerBrack The company? Well we were on cnbc the other day let me dig that up from their archive
 
What is the business model, though? People pay a fee to get expert advice on stocks?
 
7:44 AM
@Kippie we rank the experts who give free advice so you know when you're getting bad advice
 
@BenjaminGruenbaum Ah, but who ranks the rankers?
 
SJD
Can somebody tell me if In angular js I can do something like : having 2 "render boxes" ?
 
> unimplemented IR generation feature non-fixed multi-payload enum layout
BOO :(
 
@SJD As in two ng-apps?
 
SJD
7:47 AM
@monners yeah.. something like that
 
Yep
 
SJD
well somebody told me there must be just 1 ng-app
 
that someone would be correct
Nothing stopping you from doing something like:
 
SJD
ng-app
---> ng-app
------> ng-app?
 
<div ng-app="app1">...</div>
<div ng-app="app2">...</div>
 
SJD
7:49 AM
:)
cool
ok tx:P
 
@monners that won't work, but sure.
 
Err, don't know about nested apps
@BenjaminGruenbaum They're not nested
 
SJD
Guys. I just don't wanna try if it isn't possible
 
hey
 
SJD
just asking if it "works!" :P
 
7:51 AM
Example = {
};
Object.defineProperty(Example, "Option1", {
    enumerable: true,
    configurable: false,
    get: function () {
        return strOption1;
    },
    set: function (value) {
        strOption1 = value;
    }
});
Example.Option1 = '';
Object.defineProperty(Example, "Option2", {
    enumerable: true,
    configurable: false,
    get: function () {
        return bolOption2;
    },
    set: function (value) {
        bolOption2 = value;
    }
});
Example.Option2 = false;
Object.seal(Example);
 
@BenjaminGruenbaum It's been a long while since I've read the code for a webapp which is so clear and easy to understand
Kudos to the developer. Please make sure to tell him that
 
@SecondRikudo Can u fill us in?
 
In the Last Line, It changes the value of the "example1.Source". What should I do to prevent from changing "example1 values"?
 
@BenjaminGruenbaum Seriously, you can't have two angular apps running side by side on the same page?
 
7:53 AM
@MRS1367 You want a constructor.
Right now, both example1 and example2 refer to the same object.
 
SJD
@BenjaminGruenbaum so does it work with multiple ng-app?
 
@SecondRikudo -> I know that. It hasn't any other solution?
 
1 min ago, by Second Rikudo
@MRS1367 You want a constructor.
 
@BenjaminGruenbaum But people pay to see those rankings?
 
7:55 AM
@SecondRikudo -> OK :)
 
How can I trigger this
 
@CustomizedName trigger(this)
 
$("#checkbox1").change(hidebabyMeNow);
 
Trigger what? The checkbox, or the hidebabyMeNow?
 
hideBabyMeNow
don't want to call the function straight away
 
7:57 AM
@SecondRikudo I will, which part?
 
@BenjaminGruenbaum Everything! I browsed the HTML and JS source and found what I was looking for in a minute, plus I managed to understand it very well
 
@SecondRikudo I will, thanks. I'll let him know.
 
@CustomizedName You want to trigger it, but you don't want to call it?
 
@BenjaminGruenbaum Ok, I stand corrected. It can be done, but not by using the ng-app attribute
24
Q: AngularJS Multiple ng-app within a page

Nitin MukeshI have just started learning Angular JS and created some basic samples however I am stuck with the following problem. I have created 2 modules and 2 controllers. shoppingCart -> ShoppingCartController namesList -> NamesController There are associated views for each controller. The first View r...

 
find it

$(selector).trigger("change");
 
8:01 AM
OK
 
Morning all :)
 
Morning
 
0
Q: How to fire anothing action before a each loop (with ajax) complete

user3568083I have try for the following for a long time and i have no more idea now, anyone can help me please. I just want to reload the current page after add items to the cart, I have try the stupid way by count, promise then and other else, but all fail. The problem is... the page already reloaded bef...

 
Typing is hard :D
 
@BenjaminGruenbaum I'm gonna assume that's why you didn't respond to my messages, rather than the emotionally crippling alternative explanation.
 
8:07 AM
@monners No no, I mean like - typesystem
func then<NT,NE>(onFulfilled:(T) -> Promise<NT,NE>) -> Promise<NT,NE>{
 
Oh...
 
HI
 
@Roarer Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
that just looks like c having sex with javascript
 
@SecondRikudo have you been asking about D3 in combination with Angular yesterday?
 
oh tyvm @copy :P c'mon I wasn't THAT huge
and I was pretty confused when @AbhishekHingnikar called me on mobile phone whilst being at a party surrounded by pretty girls
 
dl is block-level
?
 
@shortCircuit yes, it is
 
@AbhishekHingnikar you mean C++? C doesn't have templates
 
8:34 AM
oh cool, a dupe
 
8:55 AM
I've got an array and I need it so that when the text from a label is equal to .Name from my array it checks a certain checkbox, however this if statement isn't working and I'm not sure why:

var labels = document.getElementsByTagName('label');
var checked = document.getElementsByTagName('input');

for (var i = 0; i < checked.length; i++) {
if (SEC_Privileges[i].Name == labels) {
checked[i].checked = true;
}
 
labels is a DOM element collection. It never equals a string.
 
Oh, so what should I use instead to get all of the labels text values?
 
I believe you want to iterate over the labels
 
So like a loop
?*
 
Exactly!
 
9:04 AM
also, why are your checkboxes synchronised with your ... whatever has a Name property by index? Shouldn't you have an array of objects?
 
http://jsfiddle.net/shaunyweasel/dj8jr19e/1/

I've got an array of objects yeah, but I need some way to make sure that depending on what profile is selected, it checks the correct checkbox and it seemed that if the label text is equal to SEC_PRIVILEGES.Name then it should check the tickbox, that seemed like the only way to do it
 
also, === is better than ==
You could have the checkboxes in these objects
 
the checkboxes are generated depending on what is selected in a select box though D:
 
why are you using <br>s there?
 
Sorry, brs?
 
9:08 AM
We all love brs
I cleaned up something last week with 12 brs in a row
#likeaboss
 
oh, it was just for formatting
in my actual code it's in a table
 
you should use lowercase property names, even within constants
 
Is it just me who really hates <b> as well?
 
yep sorry I know, it's not very consistent naming
 
@FlorianMargaine oops c++ i was with my girl so forgot c / c++ i was only seeing sharp ;-)
 
9:10 AM
is it a table, or are you just using table tags for something that you want to place in a grid?
 
it's just a table with divs in it, it formats great on my actual app
 
L137: why do you use plain DOM manipulation when you have jQuery at hand?
 
cause it worked basically :'3
 
Your ID allocation is very generous. You can't use two-character IDs for anything but group codes, because they might collide.
 
hi
 
9:17 AM
that's just how they were in the database I was trying to mimic
 
You should clear the elements you put stuff into before putting said stuff into it. Lest said stuff will accumulate forever.
@Shaun in the database IDs are unique per-table. In HTML IDs are unique per-document.
 
ooo
 
Learn to use the <label> tag. Either put the checkbox inside of it, or link them using the for attribute.
 
what is the use of label tag
 
@Roarer it links labels to inputs they belong to
 
9:21 AM
I guess my code's a bit messy
 
@Shaun I've seen worse, actually
 
@JanDvorak well, that's a positive :) any advice for the last method which i'm having problems with?
 
Anybody here good with D3.js?
 
your iteration variable i from line 176 collides with your iteration variable i from line 181 within the scope.
 
I need help with bubble chart with pack layout.
 
9:23 AM
how so?
 
I prefer using forEach over classic for loops
@Shaun they are the same variable, and they will overwrite each other
 
so basically just change one of them to a different letter?
 
or to a longer name
 
@JanDvorak cleaned up the variables, I think
 
@Shaun L183-4 - since the condition is independent on the loop variable, you can move it outside of the loop.
 
9:35 AM
@JanDvorak can or should?]
 
should
 
by that you mean, checked[c].checked = true; yeah?
 
how to handle careage return in angularjs
 
Could you be a bit more specific?
 
var str = "this is test
new line here ";

$scope.demo = str; // it cause : Uncaught SyntaxError: Unexpected token ILLEGAL
 
9:50 AM
that's not angularjs specific
 
Sometime I have fetch data with new line from database and show this data using anguarjs, In that case, what can I do??
 
"this is test\nnew line here "
@sabbir use json_encode instead of just wrapping the string in quotes
 
@JanDvorak, can you tell some details??
 
@sabbir what exactly? you can't put a newline inside a string literal, period.
encoding text as JSON will put quotes around as well as escape everything that needs escaping (such as newlines to \n)
 
plz give some link
 
9:53 AM
!!tell sabbir google javascript string syntax
 
@CapricaSix, @JanDvorak, Thanks, I am working on it
 
@sabbir or rather, start here: eloquentjavascript.net
strings are covered in chapter #1
 

« first day (1396 days earlier)      last day (3552 days later) »