« first day (1661 days earlier)      last day (3304 days later) » 

12:00 AM
20 million is more likely, in which case the 0.5% is peanuts
 
Yeah, I don't think you'd ever take it instead of salary
 
Don't forget to buy wuzz.ly if you intend to publish the article
 
surprised it doesn't already exist.
 
It does
 
what chat talks about tls keys?
 
12:09 AM
@nsij22 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.
 
> Congratulations! wuzz.ly is available!
 
@phenomnomnominal Copy's point about the $20 million is absolutely correct
@copy Where?
getting "This domain is not available!" on Namecheap
 
There's three levels of equity: Nice bonus, house down payment and I don't have to work anymore.
@copy hmm, maybe I was reading it wrong and you can't buy ly on Namecheap
... $75 for a domain?!
 
I'm paying 60 units of British currency
 
12:19 AM
@SomeKittens So what level do you have?
 
@monners house
 
A Silicon Valley house, or a regular house?
 
but cashing out gets complicated with debt rounds, liquidation preferences, etc.
@monners Depends.
Again, valuing equity is incredibly complicated.
It's better to see it as a pile of lottery tickets.
 
@SomeKittens I hope it's a big pile, otherwise that analogy makes equity sound awful
 
@SomeKittens I'd take 0.5% of 20m on top of my salary though :P
 
12:28 AM
@phenomnomnominal If the company exits and if there's something left over after debt/preferred and if there aren't any legal shenanigans and if you can afford to exercise the options, sure!
 
yeah I totally agree with your points :) But i'm sure not going to turn down equity on top of a salary that I am happy with
 
Right, if your boss said "Oh, in addition to the rest of your comp, he's a pile of lottery tickets" you wouldn't say no.
 
which is the same thing of course
Actually, you're probably more likely to win lotto
 
@monners It is awful....until it isn't
then you're rich
@phenomnomnominal The analogy kinda breaks down there because I can scratch off a ticket in 20 seconds but it takes me a year to hit my vesting cliff
 
@SomeKittens I much prefer the idea of being a founder
And, if all goes well this week, in a month I will be!
 
12:33 AM
@monners Congrats!
 
@monners that's exciting!
 
Yeah, got the first meeting in an hour.
 
Details?
 
It's kinda on the downlow at the moment. I'll share when I can.
 
good luck
 
12:43 AM
Thanks :D
 
If a function has a return statement, and then after the return statement adds event handler, the handler will not get registered correct? Because I am trying to figure out this function:
function get(url) {
  return new Promise(function(succeed, fail) {
    var req = new XMLHttpRequest();
    req.open("GET", url, true);
    req.addEventListener("load", function() {
      if (req.status < 400)
        succeed(req.responseText);
      else
        fail(new Error("Request failed: " + req.statusText));
    });
    req.addEventListener("error", function() {
      fail(new Error("Network error"));
    });
    req.send(null);
  });
}
(its taken from EloquentJS, author is showing example of how promises are wrapped)
 
@ApathyBear It's returning the result of calling the Promise constructor
So it calls the constructor (which builds the whole deal) and then returns it
 
banana
 
Whoops, sorry the brackets confused me for a moment. It makes sense nvm.
I had thought that one of the event handlers was outside the function.
 
@m59 happy two days after your birthday!
 
m59
1:20 AM
lol
 
2:19 AM
Enjoy
 
@BenjaminGruenbaum this is going to get abused so hard.
 
@phenomnomnominal BenjaminGruenbaum is afk: night
 
2:43 AM
hello
 
2:56 AM
can someone help me in javascript stuff
 
@Tarun 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.
 
I'm trying to create a javascript function/constructor work in chain like jQuery. It's working fine. But now i'm trying to understand logic, how can we call a function like that with or without argument
for example jQuery work like $(selector).action(), we can also use it without argument/selector like $.ajax()
 
@Tarun did you look at the source code?
 
@Tarun you can assign properties to functions
 
@phenomnomnominal can you give me a small example
 
3:01 AM
var bill = function () {};
bill.bob = 'allo';
 
!!> var $ = function () { console.log('I\'m a function!'); }; $.ajax = function () { console.log('I am too'); }; $(); $.ajax();
 
@phenomnomnominal "undefined" Logged: "I'm a function!","I am too"
 
ok got it let me try :)
@SomeKittens Thanks :) you are rockstar
 
I wouldn't go that far
 
@Tarun @SomeKittens actually IS a rockstar
 
3:53 AM
@SomeKittens @phenomnomnominal FYI meeting was a home run :D
 
@monners boom! Awesome.
 
Yep, passed the technical director, now just gotta pitch to the board
 
That's like six months of stress and anticipation gone.
 
4:17 AM
I'M SORRY, FROM YOUR YEARS OF CONDESCENDING TOWARD THE 'SQUISHY SCIENCES', I ASSUMED YOU'D BE A LITTLE HARDER.
2
 
4:30 AM
hey guys just a quick question about JS terminology
 
shoot
 
what is event in javascript
"event" i mean .. is it an object , method , in-built function ? what
part of the web API ??
what ?
 
Do you want a better answer than "depends"?
 
yeah :)
i don't mind if u gimme reading material too :)
 
ultimately though, it's just another variable, which might happen to be an instance of some subclass of Event.
 
4:41 AM
Ok thanks !
:)
TY alot !
have a nice day !
 
@Zirak Ooh, I've read about that before! Thanks, though. The Wiki seems to have a lot more info
 
 
2 hours later…
6:21 AM
Hey, is anyone out here familiar with Coq? I have a problem:
0
Q: Why can't I define the following CoFixpoint?

Aadit M ShahI am using: $ coqtop -v The Coq Proof Assistant, version 8.4pl5 (February 2015) compiled on Feb 06 2015 17:44:41 with OCaml 4.02.1 I defined the following CoInductive type, stream: $ coqtop Welcome to Coq 8.4pl5 (February 2015) Coq < CoInductive stream (A : Type) : Type := Coq < | Cons : A ->...

 
6:41 AM
Yay random downvotes
fun stuff
It's the MongoDB is awesome guy
 
I can't recall ever receiving a downvote before I started talking in chat
then suddenly last week I got 3 in a minute
 
@BenjaminGruenbaum You want to see what's more depressing than random downvotes ? here it is : stackoverflow.com/questions/30024066/…
 
wait what?
 
People rush with an answer to that question and upvote it. I see more and more questions that are so trivial there's not even an existing question for closing as duplicate. It looks like the general retard level of the world is fast increasing...
 
6:57 AM
The OP of that question can't possibly have spent any time at all trying to figure something out
Wouldn't surprise me if it's an XY problem either
 
can i aska ruby qustion here as there is no one in the ruby room
 

Ruby :: Sometimes on Rails

The humane programming language. Be nice. Have fun. Lurkers...
 
7:14 AM
@BenjaminGruenbaum What ? New downvotes ? What's the problem with that question (it should be a little rewritten though, you're better at writing questions now) ?
And... 7 answers marked as spam ? That's the first time I see this...
Did you guys see that : stackrating.com/list/byRating ?
This is interesting
 
7:30 AM
@dystroy it's all revenge dv'ing
 
@BenjaminGruenbaum You mean a user created several accounts for that ? Or organized a mob ?
 
@dystroy woohoo 67th
@dystroy no no, over 2 years
Every time I leave a comment and some douche doesn't like it (like the 3 downvotes today from that "MongoDB is shit" guy it gets picked
Because it's already the lowest voted - so they dv it.
 
Woo, 4272nd
 
It's just 6 people I pissed over the years
Also, I'm top 500 in rep lol
Didn't realize
 
I love how the guy at the very bottom of the skill-rank has 15k
and that's after a 9k(!) reversal in the rep history
 
7:37 AM
what?
lol, I get negative rating for Haskell questions :D
 
(sorry, bad pasting)
Hum... When I look at this stackrating on specific answers, it's not so bright. My best answers didn't improve my rating when nobody else could come with an answer...
 
It's not exactly the best usecase I've seen for an ELO system
 
Yes
It has some merits but it's still not the solution.
(but I'm happy to have a much better ranking with this system than with just the reputation)
 
yeah, I had that as well. I guess most people who get more of their rep for answering rather than asking would
 
@Feeds Nice.
 
7:53 AM
can i ask help, This is the code that I use in my serversocket.php
this will send parameter to command.php , and in the commmand.php it will build the command
then after building it this will send to clientsocket.php,this clientsocket.php will send to
serversocket.php. How can I convert this logic to node.js ?.. my serversocket is now node.js
and I cannot use curl because curl is for php.

http://pastie.org/10135151
 
@FlorianMargaine, I am using net.Server
 
8:14 AM
morning
 
How d i convert this to js pastie.org/10135402 ?
 
$js_array = json_encode($php_array);
echo "var javascript_array = ". $js_array . ";\n";
convert the array to javascript or convert the whole code to javascript?
 
whole code to js
how do i random the array ?
 
@jemz Google javascript array shuffle.
 
8:21 AM
Thank you
 
Hi Shaun!! :)
 
@jemz What do you want exactly?
Select an array element at random?
 
yes
I want to pick only one element in array
 
so try to do a random between 0 and length
 
arr[Math.floor(Math.random()*arr.length)]
 
8:23 AM
Thank you @MadaraUchiha
 
@Neoares Mea~
 
Hey guys, could someone explain how's the regex for number:number, so for example true would be 5:2 13:0 2:8 etc
 
@shawwy do you know the regex for a single number?
 
I will google this, second
[0-9]
 
@shawwy And what's the regex to match multiple numbers?
 
8:29 AM
Is it just me or does that Eloquent JavaScript book have some really weird formatting errors in the PDF version
 
umm, should this do it? [0-9]:[0-9]
 
[0-9] is a single digit, but you're close
 
Serious question (not really JS thouhg). Is the title of this movie correct English or not ?
The Many Adventures of Winnie the Pooh is a 1977 American animated musical film produced by Walt Disney Productions and distributed by Buena Vista Distribution. It is the 22nd animated feature in the Walt Disney Animated Classics series and first released on March 11, 1977. Its characters have spawned an industry of sequels, television programs, clothing, books, and toys, and also inspired an attraction of the same name at Disneyland, Walt Disney World, and Hong Kong Disneyland. A much more elaborate attraction, also based on the film, opened in Tokyo Disneyland as "Pooh's Hunny Hunt". == Plot... ==
 
@OliverSalzburg Can repro.
@dystroy Yes
 
8:30 AM
Seeems legit to me
 
What made you think it wasn't?
 
OK, some French friends were arguing that it was incorrect
 
\d+:\d+
figured it out
:D
 
@MadaraUchiha Thanks. I emailed the author, maybe he can fix it
 
@shawwy \o/ Huzzah~
 
8:32 AM
More to the point: is that correct ?
> The documentation covers only a small part of Miaou. Other users may help you find the many features.
 
If i want to use it in if in a manner for example something.textContent = "\d+:\d+", should i do it like this?
or no ""
 
Note that a \ in a string is an escape, so you want a \\ to escape the escape ;o
 
Depends. Do you want to merely display the regex?
 
Using the regex notation like /regexhere/ doesn't need those escapes
 
So should i change it to d+:d+ ?
 
8:36 AM
no
but don't be afraid to try
 
:D
 
is it ok to put some of the case '*': statements in an if block?
 
Not sure how you'd do that
 
switch(test) { case 'foo': break; if (otherTest) { case 'bar': doThis(); break; case 'baz': doThat(); break;}}
 
You can't do that. even if it's a valid syntax (it is in C), just don't.
 
8:49 AM
okie
 
also, you have an if just after a break = dead code
 
oh right
silly me
so maybe 2 switch statements in if else statement
ty for the help!
 
9:14 AM
Okay after 4 days of using it (only)
VS Code <<<<<<<<<<< Sublime Text 3
but thats mostly because of the rich package ecosystem sublime has.
 
Not exactly fair to compare a preview of something to an editor with years of packages behind it :P Atom came a long way too ^^'
 
Very true overall i like it for its smoothness a lot.
and wish there was a package manager :-/
 
Why are all the Node tutorials out there using Mongo? Why not MySQL?
 
I am still a bit confused about it, I thought it was meant to be some kind of Visual Studio for other OSes but I see people compare it to SublimeText many places?
 
@StevensHaen well you can credit this to gold fish effect.
 
9:23 AM
@StevensHaen maybe because this way they don't have to spend time discussing the schema ? Do you really find it difficult to find information on using mysql with node ?
 
@dystroy I do, yes
 
I used this : https://github.com/felixge/node-mysql/
It was fairly easy
 
I just use sequelize.js + postgres / mysql -whatever.
 
@RoelvanUden has bookshelf caught up on fkey constraints and stuff ?
 
9:35 AM
It can define all that, yes, if that's what you mean. I don't know how it was before
 
I will give it a try.
I like sequelize a LOT... like a lot, dunno why but i have been using it since i first used it and never required anything
 
10:08 AM
<canvas ref="canvas" className="full-container">
    <pre>
        Hey I Just Met you, And this is crazy,
        But your browser sucks, Get Chrome Maybe ?
    </pre>
</canvas>
 
kek
 
@darkyen00 This sounds dickish : if the user uses IE8, he might just be happy with a recent version of IE.
 
Spartan (?)
 
@dystroy If the user uses IE8, the probability of them just having a version of Windows 7 with 0 updates since forever is asymptotically close to 1.
In which case, updating to IE11 means spending the rest of the day updating, and that's assuming they know how to do it.
TL;DR - Get chrome :P
 
10:14 AM
Yeah but this kind of sentence without even a link can only work on people who, to start with, aren't stuck in a browser without canvas.
 
@dystroy Oh, that I agree with.
@darkyen00 Improve your UX.
 
So, is using Node with Mysql a better idea than integrating it with Mongo? Is Mongo always a bad idea?
 
@StevensHaen MySQL is most definitely always a bad idea.
 
mongodb is still worse
 
How come?
 
10:16 AM
I don't think Mongo is a bad idea, but a lot of people will disagree with me.
@StevensHaen ^
@FlorianMargaine vOv I still don't see what's so bad about it, and it has distinct advantages over a lot of other NoSQL databases...
 
@MadaraUchiha mongodb is only good if you don't care about your data, basically
 
Specifically, the fact that I can touch one node in the graph, without having to read/rewrite the entire graph.
 
@StevensHaen It depends on your use case. Some things are good about Mongo, some things are good about PostgreSQL.
 
@FlorianMargaine That' BS, you can most definitely get write guarantee.
@RoelvanUden Thank you.
 
@MadaraUchiha no, you don't, that's the point
 
10:18 AM
@FlorianMargaine Yes, you can.
 
@MadaraUchiha okay added link to download chrome
new sentance
 
Mongo 3.0 has better writes, too, so the major concerns are now much less.
It's still something to consider, but doesn't automatically make Mongo bad for every use case. Like always, it depends.
 
@FlorianMargaine It depends on what you need
 
@MadaraUchiha well of course mongo will tell you that, but they're known for lying aphyr.com/posts/322-call-me-maybe-mongodb-stale-reads
 
10:20 AM
Hey I just met you and this is crazy,
But your browser is eon old, <a href="https://browser-update.org/update.html">update maybe ?</a>
 
I've been through a Mongo course in the past and at times I felt their explanations were fishy.
 
@darkyen00 s/maybe/definitely/
 
@AwalGarg come to g-talk maybe ?
 
May the Fourth be with you!
7
 
Working on a demo/playground for my Rx lecture
 
10:31 AM
@MadaraUchiha context?
 
@BenjaminGruenbaum Needs moar requestAnimationFrame()
 
It uses svg animations, no need :)
 
@AwalGarg Star wars?
 
I in possible with jquery ??and google map ?? nbook.in/city/thiruvananthapuram/?view_type=map_view
 
10:34 AM
@Lovemyfate They did it, didn't they? Kind of shows it's possible.
 
@MadaraUchiha lol
@AwalGarg btw there is madness amount of stuff you can do with googlemaps
 
@MadaraUchiha groans
You going to do this every year?
 
@SomeGuy Of course.
 
Q: When did Anakin's Jedi masters know he was leaning towards the dark side? A: In the Sith Grade.

source: http://www.jokes4us.com/celebrityjokes/starwarsjokes.html
 
lst = [1, 2]
 
10:48 AM
Does angular usually come hand in hand with Node?
 
how do I remove last element in lst without using pop() like functionality?
 
;)
you can slice, splice or write a fhur loop or fliter
why the heck are you not trying to use pop ?
 
lst.splice(lst.length-1,1)
 
why the hell are you doing it ?
 
10:53 AM
cool down. just ignore my updates. keep calm
 
@overexchange Without using pop()? Why?
 
@MadaraUchiha you hijacked second rukido didn't u ?
 
@darkyen00 I... assimilated him.
 
His resistance was futile i guess :-(
 
10:56 AM
@MadaraUchiha buahahaha
i was about to link that
ninja ^_^
 
To handle keyboardevent.which, jQuery uses this:
if ( event.which == null ) {
    event.which = original.charCode != null ? original.charCode : original.keyCode;
}
Why ? Is there a case when original.charCode || original.keyCode isn't enough ?
How can you get 0 for original.charCode ?
 

« first day (1661 days earlier)      last day (3304 days later) »