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

9:20 AM
:D
 
@BenFortune any name is weighted towards male 99% of the time on internet
 
Lets say I have something like ->
<div class="padre"><div class="children"></div></div>
What is the difference between $('.children').closest('.padre') AND $('.children').parents('.padre')
 
!!> var \u{0460} = 'test';
 
@BenFortune "SyntaxError: let is a reserved identifier"
@BenFortune "SyntaxError: illegal character"
 
0
Q: Trying to implement pointer-events: none in JavaScript

Mr_GreenI have a select dropdown to which I am trying to remove the down arrow using a dummy mask element. But when I click that mask element, the select dropdown is not triggering. Check this Fiddle If I give pointer-events: none to .slct-drpdwn, everything works fine but sadly this isn't supported i...

^ Any help?
 
9:31 AM
@Baldráni from jquery docs:
> The .parents() and .closest() methods are similar in that they both traverse up the DOM tree. The differences between the two, though subtle, are significant:

.closest() .parents()
Begins with the current element Begins with the parent element
Travels up the DOM tree until it finds a match for the supplied selector Travels up the DOM tree to the document's root element, adding each ancestor element to a temporary collection; it then filters that collection based on a selector if one is supplied
 
@FlorianMargaine Very good asnwer thank you !
 
!!should I work on some stuff or play games or format my computer?
 
@Zirak play games
 
Roger
 
@Zirak did you see my ping about caching?
 
9:40 AM
@FlorianMargaine yes, Laura 99% male :d
 
@Zirak hehehe... I know how I will implement multiple-distro system
CL-USER> (push :debian *features*)
CL-USER> #-debian (print "foo")
; No value
CL-USER> #+debian (print "foo")

"foo"
so I'll define *features* based on /etc/issue
and then I'll have code like this:
 
Are you guys still writing a package manager?
 
(defn package-version (string -> string) (name)
  #+debian
  (run (cat "dpkg-query --showformat='${Version}' --show " name))
  #+centos
  (run (cat "rpm -q ..."))
  )
@BenFortune we never wrote a package manager
 
What was it you were working on?
 
using existing package managers through a unified interface in a filesystem
 
9:51 AM
Ah, sounds interesting.
 
@BenFortune They are writing a cross-platform package manager in lisp and go... hides
 
@Zirak I need to do another video
 
Haven't used Go since pre 1.0, is <-client.Ready new syntax?
 
@BenFortune no, it's Go's famous channel stuff
right there since pre 1.0
it's the shining feature of go (goroutines + channels)
 
9:58 AM
@FlorianMargaine checkout asciinema.org
 
@AwalGarg only works in terminal
I wanted to show the emacs workflow
(recompiling a single function on the fly and seeing live results in the mounted filesystem)
 
goroutines are like java threads aren't they?
 
They are threads, yes. But they can't access shared state.
 
@BenFortune at a conceptual level, yes
they are "green threads"
i.e. not OS-threads, but VM threads
which usually means they're much much lighter
you can have millions of concurrent goroutines, try that with java threads :P
@RoelvanUden technically, channels are shared state
^^
 
10:04 AM
@RoelvanUden the alt text is the best on this one
@RoelvanUden that said, I raise you this:
 
Technically correct is the worst kind of correct, not best.
 
... applying xkcd advice...
 
10:17 AM
@FlorianMargaine can emacs emulate sublime text and run headlessly?
 
@AwalGarg run headlessly, yes
emulate sublime text?
dunno what you mean with that
 
the keybindings, package management etc
 
keybindings, yes
package management too, but not sublime's
keybindings is also much more powerful
since you have a concept of major/minor modes
 
Well I do get that but it won't get me a job. So can't afford losing productivity. Just need some way to get a decent editor without X for now.
 
Node.js v4.0.0 will be released very soon. Putting the finishing touches on. Is everyone ready? https://github.com/nodejs/node/issues/2522
 
10:31 AM
Guys, the bind thing was fixed with PhantomJS2, right?
 
@MadaraUchiha This?
 
@BenFortune Yeah
Thanks
 
If I am not wrong, the current version of nodejs is 0.12.7. How come it jumping to 4.0.0?
 
@Mr_Green iojs?
 
@Mr_Green iojs have merged, the current version of iojs is 3.3.0
 
10:33 AM
so they are following the iojs' versioning pattern?
ohh ok
 
@BenFortune When is this coming to "stable"?
 
@MadaraUchiha isn't it stable already?
 
user3119231
A version should be stable if it reaches v 1.x.x and leaves beta
 
10:55 AM
-1
Q: JavaScript keys() function documentation

chimI've spent about 20 minutes trying to find the documentation for the keys function in javascript... I found it in this answer: Length of a JavaScript object (that is, associative array) hash = {"a" : "b", "c": "d"}; keys(hash); // ["a", "c"] Where's the documentation? And if there is no doc...

[tag:documentation request]
It already has an +3 voted answer -.-
 
(How) can I do git branch --contains <commit> from github web ui?
 
11:18 AM
Does anyone have any experience with visual studio 2015 and requireJS intellisense. I got a sample project which works just fine. Cant get it working on my own project so I tried setting up a new project and moving the sample files in the new solution as a poc. In this new solution the intellisense is not working either.. cant figure out what's wrong.
 
@Michael 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.
 
morning; any good guide on setting a VNCServer and xfce4 on a debian vps server?
 
@catgocat sudo apt-get install xfce4 vnc4server
 
there's more than that
 
what would be the proper way to write pastie.org/10394032 this.gulp tasks so that after the sass has been coverted to css I can concat two more css to it
 
11:30 AM
Not really
 
morning, you kitty cats
 
@BenFortune I've tried that
 
@catgocat why don't you visit the Haskell room anymore?
 
Yes go there instead
 
:D
help plz
 
11:34 AM
what happened?
 
4 mins ago, by argentum47
what would be the proper way to write http://pastie.org/10394032 this.gulp tasks so that after the sass has been coverted to css I can concat two more css to it
 
@argentum47 you can @import css files too
 
@argentum47 so you want to add files in the middle of the pipe?
 
@AwalGarg yeah like after the .scss's becomes css pipe them and add the other css's files
@Mr_Green I understand that, but the pure/*.css is a loooot of files
 
no not like that
 
11:39 AM
then?
 
In your main.scss file, add
 
@argentum47 you would probably need some custom event stream. (source: I had to do that too, and my solution was to not use gulp but write my own build engine)
 
@import "yourcssfile.css";
Later the code you have written in gulp will take care of this automatically
 
@Mr_Green that will turn into a CSS import statement, not an actual SASS import
 
@Mr_Green yeah so there are 14 files in the bower_components/pure/ directory , I would have to write all of them out?
 
11:40 AM
@argentum47 also you can save it to a temporary file, then in another task, concat that temp file, and other files, and continue working with the concatenated stream (and mabye remove the temp file later).
 
ohh yeah, just change the extension to .scss from css and do @import "yourcssfile"
 
@argentum47 first minify them to one and dest to .scss file later import it in main.scss as I explained above
 
@argentum47 quick google search gave me this: npmjs.com/package/gulp-add-src there is a plugin for everything
 
then that thing is similar to what I wrote? I have a style.css in my dist/ from the first task and then in my next task I use that and the other css files, but the problem is it add the pure and the medium-editor files but leaves the style.css behind
 
11:44 AM
[not related] @argentum47 .on('error', swallowError)
^ this will not stop the watch right?
 
yes
 
indirectly, you solved my problem :D
 
:D
function swallowError (error) {
  //If you want details of the error in the console
  console.log(error.toString());
  notify(error.toString());
  util.beep();
  this.emit('end');
}
 
> What do you mean I have to stop spending? Eugh. ~~ Quill18
 
Guys :| I don't get how to NoSQL
 
11:47 AM
start by installing a noSQL database
 
Thanks argentum
 
That parts easy, but data modeling feels weird
 
Don't model! Just store stuff!
 
fuck it .. I will have two files
 
Not sure if serious?
 
11:50 AM
@argentum47 just write your own build script dude... it is really easy
 
bro I am at work .. not at home ... I have no respect
:D
I wish you were here
 
I am here...
 
Hi guys, can someone explain me why JavaScript is single-threaded?
 
you are there .. :D
 
@TrungDQ easier to reason about, perhaps due to history
 
11:56 AM
bengal is pretty close to me. I can come there quickly. (in comparison to freedom)
 
haha
 
Kept that code ready to work with on weekend github.com/kamlekar/HTML-Skinning-Boilerplate/blob/master/…
 
oh thats a template
 
no access permission
 
@JanDvorak so it is really a mystery?
 
12:00 PM
I heard there is a good reason behind keeping it single threaded
somehow I forgot it
 
not really. Javascript tries really hard to avoid any potential for race conditions.
 
I have that question during my interview and that's ridiculous
 
Kinda. What did you tell them?
 
Well, I just said because it is designed that way in the very first time and it is hard to change later.
But the reason why they designed at the first time, I can't tell.
If JavaScript tries to avoid race conditions, why Java can do it but JavaScript can't?
Is there any good reason for this?
 
user3119231
@argentum47 nice permission request..
 
12:04 PM
It's not really that hard to change. Just throw a memory model in and tell the devs to deal with the consequences of having to work in a multi-threaded environment.
 
@TrungDQ Uhmmmm.. with threads, in Java (or any other language), you will get problems like mutual access to shared resources, race conditions, synchronization, and deadlocks (if you're not careful).
 
@Maurize haha sorry
 
in Haskell the preferred way to multithread is the par method, which suggests the compiler evaluates one expression in paralel when the other expression needs to be evaluated.
The second best are m-boxes, which are essentially 1-element producer-consumer queues.
 
I know, but why JavaScript was not designed to be multithread? We (developers) can handle it like we do in Java and other languages, right?
 
12:08 PM
does forkIO count as multithread?
 
It does. But you want to use mVars to pass data between threads spawned by forkIO
 
Or Chan
 
sinChan?
 
or perhaps STM, if you need transactions
 
@TrungDQ I'm guessing because it was originally intended as a little embedded script language to do simple dynamic content manipulation, so threading would make no sense whatsoever (because operations on a different thread than the UI thread is a no-go). That is just guessing..
 
12:12 PM
Chan is nice if you want an unbounded queue. But unbounded queues waste memory if the producer is faster than the consumer.
 
I just realized how big of a dick Prince Charming was. He didn't even know Cinderella's fucking name!
 
does medium-editor work on firefox ... holy shit man .... such pain ... chrome is the beautifullest thing.. everything works
 
@RoelvanUden that seems reasonable, I have to do more research if I want to answer this question then.
 
@argentum47 That's not the fault of firefox, it's the dev that didn't care to check if his propertiery chrome crap is actually supported elsewhere?
 
12:15 PM
Huh... anyone know how to partition based on the average of a property with lodash?
 
:P .. all browsers should become one .. like android XD
 
Chrome is pulling the same crap now that IE was doing years back.
Adding in more and more crap that doesn't comform to anything.
 
Yet Chrome is great? Meh.
 
I dunt know about the technicalities but firefix hangs my machine a lot ..
 
12:17 PM
let first = _(products)
  .map((id) => Products.findOne(id))
  .partition((n) => {
    return Math.floor(n) / (_.sum(n, (i) => i.mass) / n.length);  // this isn't right
  });
 
the developer edition is working ok till now
 
cool .. have to integrate with React and should be done
 
@Zirak aloha editor is fairly mature
it's been there for a while
 
don't do this ... one solution please :P
 
12:22 PM
@AwalGarg Hi! :-)
 
@thefourtheye hai!
 
Ah, I see that you have already seen the message in GitHub :-)
 
yep :-) glad to see contributor hanging out here :D
 
@Zirak "There isn't much documentation yet. " there is no documentation yet :P
but thats ok
 
user3119231
anybody noticed the red bar on the top which is moving if you click on a new link? is it js? youtube.de
 
12:28 PM
It is.
See github.com/peachananr/loading-bar for something similar
 
user3119231
perfect.
 
> 20.1 MB/s 0s
live in hell :D
 
@AwalGarg not even in hell is it that bad.. lawyers have to work somehow
 
the no-cache ls /pkg/installed/[name] is quite slow :/
same for dependencies
@AwalGarg come live here :)
also... remember that I live on a mountain
I had a much better connection when I was living in a city
 
12:39 PM
@FlorianMargaine nah I meant that is too fast relative to mine, and you should live in hell instead :-P
 
@rlemon the thing looks like a sperm dispenser
(also, look at the comments for the trick)
 
> The people who are taking this seriously are the same ones voting for Trump. please don't reproduce.
 
my god people, can't you just appreciate a funny video
also, @FlorianMargaine you don't have automatic soap dispensers in France?
 
@rlemon we do
still looks like a sperm dispenser
 
12:42 PM
anybody here who´s been working with grunt gitInfo task?
 
the soap part is usually hidden
 
@FlorianMargaine I hadn't thought of that until now.. what kind if institution would install sperm dispensers? thanks for the nightmares
 
bleh, _.partition is so weird...
 
@Zirak a friend wants to try pacman-fs. Can I give him the link?
Is it usable?
(he's a poweruser/developer, so it's fine if there's some rough edge)
 
12:57 PM
so now that K-9 is useless as a starbot, I was thinking of making it into a imperial->metric conversion bot.
 
Turn it into a grammar nazi bot
 
user406009
@rlemon I don't think that would be useful.
 
user406009
I have heard a feature request to stop oneboxing.
 
user406009
From certain users.
 
a bot can't do that
a userscript can
and conversion bots are crazy useful seeings how the majority of the world knows metric and muricans always post imperial
 
user406009
1:00 PM
It should also convert days and time then.
 
!!7" in cm
 
why?
 
@Cerbrus That didn't make much sense. Use the !!/help command to learn more.
 
user406009
@JanDvorak That would be hilarious. I am so tempted to do that.
 
@Cerbrus I'm talking automagic and smarter
 
1:00 PM
Gee, I wish we had a conversion bot.
 
Caps conversion command blows
 
Automagic sounds nice
She has a conversion command?
 
!!convert 5m to ft
 
@rlemon 16.4041f
 
!!convert 5usd to eur
 
1:01 PM
but it is very very specific about formatting and units etc.
 
!!convert 1usd to cad
 
also only converts like 5 different things
doesn't convert money
 
Google is great at doing that though
 
fine
convert your own shit then
sorry for trying
 
"shit".convert()
 
1:06 PM
ingrates
 
!!google convert 5 usd to eur
 
!!convert 1ft to L
 
Nope
 
Caprica just did a "..." on me
 
1:08 PM
I guess the problem with having the bot convert currency is that it's not really a static conversion rate
 
My boss wanted a program that gets conversion rate by date, and I spent several days just finding a website that lets you do just that and an infinite number of times :P
It wasn't easy
 
@FlorianMargaine Very neat!
 
I hope it wasn't easy if it took you several days...
 
Why does this result in NaN? _.sum(_.pluck(products, 'mass')) / products.length
 
@FlorianMargaine There's the caching thing...so as long as he doesn't sync/install/uninstall, it's all cool :D
 
1:10 PM
@Zirak lol, ok
 
@corvid because somewhere you are using a string
or a unit
 
The program took less time to write than the time it took to find the website
 
"123%" / 10 is NaN
 
@Zirak you'll have to make a PKGBUILD
 
@FlorianMargaine Yeah...eventually
 
1:12 PM
Have you guys heard of birds with transform: scale in newest chrome?
Tab renders white page and dev tools close unexpectedly
Heard of bugs* damn autocorrect lol
 
@rlemon When I do console.log(massSum, products.length, typeof massSum, typeof products.length) I get 2.0789999999999997 3 'number' 'number'
 
what does _.pluck(products, 'mass') return?
and what does .sum(.pluck(products, 'mass')) return?
nvm, I see that
 
user3119231
Question: what has a monetary and program/script together?
 
@Zirak I was thinking... with libalpm, you don't really need to cache stuff like I do, right? the cache is already in memory with libalpm, no?
your issue is rather "how to reset libalpm's cache", right?
 
_.pluck(products, 'mass')        => [ 0.558, 0.633, 0.888 ]
_.sum(_.pluck(products, 'mass')) => 2.0789999999999997
 
user3119231
1:17 PM
Nobody?
 
I'm here
 
@corvid you sure none of those are strings?
 
Actually... could it give NaN if dividing by 0?
 
Race Condition kills 6 people with radiation overdose in radiation therapy machine <- this is why we write test cases people. cc @SomeGuy
@corvid no
 
@FlorianMargaine That's part of it, yes. I also need to minimise the database hits I do.
 
1:20 PM
Yeah I don't usually write tests, but I'm pretty sure if the thing I was building could kill people, tests might be a priority
 
Well, the entire function is just this:
let partitionWell = function (productIds) {
  check(productIds, Array);
  let productList = _.map(productIds, (id) => Products.findOne(id));
  if (productList.length === 0) return [];
  let avgMass = _.sum(_.pluck(productList, 'mass') / productList.length);
  return _.partition(productList, (product) => product.mass / avgMass);
}
 
user3119231
Question: what has a monetary and program/script together? -> PHP
 
user3119231
 
@Maurize ask the php room
 
user3119231
maybe I will do.
 
1:23 PM
@Zirak ah, so a cache similar to what I have
@Zirak I'm doing a fun test... time grep -rns 'fuse' /pkg/index... let's see how long it lasts ^^
I should probably limit this
2s for an ls /pkg/installed/[name] and 15s for an ls /pkg/index/installed/[name]... I need to improve this before trying grepping.
 
1:41 PM
hi!
any ideas why my tape test gives this error:
throw new Error( "jQuery requires a window with a document" );
 
@SuperUberDuper Maybe jQuery requires a window with a document.
 
I'm finally a webpack convert; fuck gulp, webpack is a billion times better
 
Is anyone here familiar with the NodeJS Connect ST middleware/plugin?
 
@Charlie What about it?
 
goto: chrome://resources/js/i18n_template.js anyone else can see the same license thingy twice in a row? (webkit only)
 
1:46 PM
I find it's gorging on memory... It eats a lot.
 
@AwalGarg Yup
 
I wonder if that's a mistake... ~_~
 
Probably some git merging oddities
submit a pr
 
can't
 
why?
 
1:49 PM
chromium repo is too big for me to work on in any sane way (download will take maybe a month)
 
you could just submit a pr without any code; I've seen it done many times
 
example linky
 
@AwalGarg https://code.google.com/p/chromium/codesearch#chromium/src/ui/webui/resources/js/i18n_template.js&sq=package:chromium&type=cs&q=i18n_template.js
https://code.google.com/p/chromium/codesearch#chromium/src/ui/webui/resources/js/i18n_template_no_process.js&sq=package:chromium&type=cs
They include another file, both have the license header
 
@BenFortune ok so that falls in the won't fix category
 
Regarding Node Connect ST. I'm using it to server a 20MB file download. It works, but everytime someone tries to download that file, the Node JS process takes up to 80MB of system/server RAM, and takes out another 80MB for every successive request, until the server folds...

Anyone else seen anything like it?
 
1:51 PM
makes sense; it's not a real bug lol
 
@BenFortune also that include syntax cc @Zirak :D
he should totally change's bot build process syntax to that
 
@Charlie Connect and ST are two separate packages, which one are you referring to?
 
@BenFortune I'm referring to ST. Can't use ST without Connect, no?
 
@Charlie Of course you can
 
@BenFortune Fair enough. So you suspect the issue is caused by Connect?
 
1:56 PM
Can't really say without any code
 
@BenFortune For the record, here's my question on Stack... stackoverflow.com/questions/32372857/…
 
@Charlie Connect-static isn't deprecated, bundled middleware for connect is what was deprecated. github.com/andrewrk/connect-static
If you want to use connect, my suggestion would be to use the connect-static middleware
As for st, it could possibly be reading the entire file into memory before serving it
 
@BenFortune Yes... That's what I suspect... Is there anyway of mitigating against that? I like ST and would prefer to keep it...
@BenFortune Also, wouldn't Connect-Static suffer from the same problem?
 
They're written differently
Wait, try cache: false
 
@BenFortune Hmm... Thought I tried that, but perhaps I made a typo.
 
2:09 PM
When you say 88mb for each request, do you mean it increases by 88 for each one?
 
@BenFortune Yep. Exactly that.
As for the cache: false, thing, I had it set to false for a long time before I changed it last night to true.

Same issue.
 
@BenFortune at 88mb if you have request.fluxCapacitor you can actually send the data through time.
little known feature.
 
we need to invent the concept of callforward
gets called before you even knew you needed to have it called
 
@rlemon Haha! Much rather have a time travelling Dolorean than a memory leak.
 
@Neil it's called friction
 
user3119231
2:18 PM
who is using "use strict"?
 
everyone
 
except golfers
 
everyone who is using ES6
 
-1
Q: How create plugin in node.js

MichealAnyone can suggest me some links to create plugin in node.js? asd

lol
Most of his other questions need closing too...
 
@BenFortune that answer
 
2:30 PM
@AwalGarg Already flagged as NAA
 
1 message moved to Trash can
@JoJo Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
just checked my profile it says I will be able to create tag synonyms after 30 more rep what does that mean?
 
user3119231
27*
 
26*
 
user3119231
damn you :D
 
user3119231
 
@AwalGarg Tag synonyms, meaning stuff like , and would link to the same thing
 
!!jQuery data
 
Obviously those aren't working examples
 
well that isn't helpful
 
2:37 PM
I tried using the Shortcut Manager extension but couldnt get it to simulate a tab to get to the next input field. Does anyone know how or the best way to implement this in JS?

https://chrome.google.com/webstore/detail/shortcut-manager/mgjjeipcdnnjhgodgjpfkffcejoljijf
 
does jQuery camelCase the dataset names?
 
@rlemon What do you mean?
 
data-foo-bar is $(elm).data('foo-bar') or .data('fooBar') (like spec)
 
I've always used .data('foo-bar')
 
kk
I figured
 
2:38 PM
Though it looks like either works
TIL
 
spec (dataset) is camelCase
 
> The treatment of attributes with embedded dashes was changed in jQuery 1.6 to conform to the W3C HTML5 specification.
 
nice
 
@BenFortune so I can mark js and javascript as the same? (I guess that's been already done)
 
@AwalGarg Pretty much
 
2:50 PM
can't wait to mark jquery, java and perl as synonyms
 
user3119231
I just thought about if the loading ("page per page") is by default? google.com/doodles
 
user3119231
I mean the content is only loading if scroll bottom is reached
 
user3119231
 
Is it possible to write a chrome extension that will populate multiple inputs with predefined text on a keyboard shortcut?
 
@user2248441 Probably
 
2:56 PM
i was looking into keypress() from jquery but it doesnt seem quite right, is there a better alternative rather than me doing a bunch of getElementById's and modifying their value
 

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