« first day (1865 days earlier)      last day (3085 days later) » 

12:35 AM
@FlorianMargaine Neat
The animation is a bit annoying
 
12:52 AM
that transition flows from the package search page -> file view, but not from file view -> file view
 
1:09 AM
@Mosho were you saying there were issues/bugs with babel 6 and some of the stages?
just tried building a component of mine had to revert to babel 5 for it to work, it was throwing errors on my jsx.. pretty annoying (stage 0)
oooh I know why shit
> Every single transform is now a plugin, including ES2015 and JSX.
bet that's why
 
1:28 AM
So react's not compatible with the new Babel yet?
 
yeah it is, just have to load that seperately
have to use a .babelrc file
had to install these
"babel-preset-es2015": "^6.1.18",
"babel-preset-react": "^6.1.18",
{
  "presets": ["es2015", "react", "stage-0"]
}
^ my .babelrc file
 
Cool, good to know. We're about to update our stack and this was one of the things we were worried about
 
oh, "babel-preset-stage-0" is also a package too
but yeah seems to work fine
Only thing I wonder is if I should update my repo on GH then..
this shouldn't break it for anyone I suppose
 
Oh, btw, rig arrived. gsync man. gsync.
 
oh nice man!
yeah I use freesync, which is also badass/smooth
so cool man
 
1:33 AM
Ah, nice
Was amazed at how smooth it feels, even when you're down to 40fps.
 
hah that surprises me your rig can even hit 40 :p
I mean, I imagine it always being > 60
you have 2 titans right? Or was it 2 980s
 
Faces in black ops. There's one scene where there are about 30 faces being rendered at the same time
 
ahh ok
 
2 gigabyte 980 tis (windforce)
Otherwise it doesn't stutter at all
 
You got a new monitor too then right?
 
1:35 AM
Yep
 
1080?
 
Nope
 
ok good lol
what did you get?
 
I run blops at 1440, I get like 80-100fps depending (in multplayer)
in nuketown it has dropped to 60 though
 
oooh yeah thats right
 
Ultrawide is where it's at. No need for multi-display setups (at least for gaming)
 
important: when VR comes out, will non-VR pr0n become instant classic?
 
damn man that is so cool
 
Can highly recommend the ultrawide format :D
 
1:37 AM
@ApathyBear well... vr porn already exists :p
reg porn is already classic lol
/me jokes
@monners yeah that is a sick ass monitor man
 
How about rl porn
 
idk if I could ever go down to one though personally, mostly because of development... but idk
that monitor looks so nice
 
Need to find me some 21:9 porn :P
Oh, not for dev. I still plan on getting a second monitor for working
28" 4k me thinks
 
yeah that would be pretty nice
 
Is there a way to require.use all folders as modules in node.js/express ?
 
1:39 AM
so much real estate
 
Have you ever used a monitor setup with an overhead display?
 
you mean over top right?
that is an older pic, before my new monitor
 
Nice!
 
but I have the TV mounted above my 2 hooked into my PC as well
 
What are you using now?
 
1:41 AM
that is my primary (not pictured) and the one in the pic the left most, is an asus 144hz one
my son got the monitor to the right when I got the beq
 
Nice! That's some competition grade hardware right there
 
the top is just a standard tv, insignia brand, 50", nothing special, but cool to watch videos on
 
Someone in my office just got the 40" samsung 4k
He hates it
 
man, I don't get the hype around 4k TVs yet
almost nothing supports 4k
I mean for computing 4k is awesome.. but for TV it seems weird, seems like they are a bit too early
 
I understand it for monitors. At native, in portrait, you'd actually have enough width to do useful things with
 
1:43 AM
yeah exactly
 
Yeah, by the time the standard is adopted, the current generation of 4k tvs will be dinosaurs
 
the tv in that pic is only 1080
yeah that's what I've been thinking @monners pretty much why we've held off on our main TV
 
I've got a 4k tv. It's decent, mostly because it upscales well, but 4k wasn't the selling point
 
yeah, well tbh it is getting a bit harder to find 1080 vs 4k. Many of the new ones are 4k anyway
I was looking at black friday deals, the majority were for 4k
nothing against them, I mean it is always good to have something better, lol just kind of weird the consumer hype surrounding them
I just want a 4k monitor... but man, I might take a closer look at yours
 
When they can be run at 60hz over hdmi they'll make decent monitors
 
1:45 AM
especially if I can find a curved widescreen one with freesync omg.
 
There's a freesync version of that one I just showed ya. It's cheaper too
 
omg man.. why did you tell me that haha
ugh. I really wish I held off on mine. I would have gotten that instead.
> $863.29
IPS as well. Mine are TNs
 
I can't really tell the difference
Although i'm pretty sure all of my monitors are ips
Viewing angle isn't really an issue
 
If there's a node.js developer right here, maybe could help me with this:
0
Q: require.use all folders as modules inside folder?

feniixxI've got a lot of folders as modules that contains my rest api, the structure is the following: app |— server | |— rest-api | | |— v1 | | | |— module-one | | | |— module-two | | | |— module-three | | | |— module-x | | | └── index.js | | └──... | └──... |— ... └── server.js ...

 
@monners from what I've heard IPS have much better colors too
all mine are TN, I need to get an IPS for comparison
 
1:57 AM
Ah, yeah. Although they typically have higher response times
 
yea
 
2:30 AM
hello i have a strange problem.i made a drop div.i want to drag images to it.the drop event doesn't fire but dragover fire correctly then i make a preview on codepen to ask on stackoerflow but unexpectedly pen i created works .but in my html page drop event doesn't fire
codepen.io/madhawa-se/pen/wKbJBy this is the code and it works but not in my html page
 
0
A: Use Node.js as Shell

jas-I think it would be an intersting proposition. Create a test account and tell it to use node as it's shell. See 'man useradd' for all options $ useradd -s /usr/bin/node test $ su - test

 
ohh sry i found problem my self
 
2:50 AM
Hey guys, when using sync methods in node.js, it means that the app won't proceed until work is done right?
 
3:01 AM
correct
 
3:59 AM
how do you do something like this legally:
<script src="//raw.githubusercontent.com/FREE-FROM-CMS/content_swaper/master/engine.js"></script>
 
What, add a script tag to a document?
 
 
2 hours later…
6:34 AM
hi all i am using jquery 11.2 ver
i have js file which contains .live() fun is not working ,, i tried to replace it with .on() but at some place are not working properly . is there any proper alternative for .live() in 11.02
 
Hey guys, anyone has used sequelize.js before?
I've used Eloquent ORM (Laravel), but I'm getting kinda confused with Sequelize, right now my question is about models and realtions
 
6:51 AM
@abhi Nope. Either downgrade jQ (not confident it'll solve your problem), or properly debug and upgrade the js.
 
hii all anyone knows how we can remove disable functionality on load jsfiddle.net/b8yup0np/11
in this we can only click buttons when we click inside textarea
 
I want to know how to get the data from two related tables, for example: theres a users: {id, name, type} table and a user_types:{id, name} table, how do I get all the users with their user type (but not the id, instead the user_type.name)?
@vishuminhas elaborate your question please
 
jsfiddle.net/b8yup0np/11 @feniixx check this fiddle in this we cannot able to click buttons when we load the page we can when we click inside textarea but my requirement is on load .
actually this is text-angular-toolbar plugin
@feniixx understood?
 
@feniixx Is this an SQL question?
 
@vishuminhas Yes, but your code is what i don't understand, this could help you:
$scope.$on('$viewContentLoaded', function () {
        //Page loaded, do shit
    });
@Sheepy No, it's a question about sequelize.js
 
7:02 AM
@Loktar yeah, some things are broken (decorators at least) implementation wise, but everything that worked in babel 5 is "broken" since they changed stuff
this is my config now:
{
	"presets": ["react", "es2015", "stage-0"]
}
 
Nobody have used sequelize?...
 
@feniixx Hmm. I don't see much familiar faces here today. Wait until the next batch wake up or try another day?
 
yeh, me neither...
Anyway, I'll leave a link here if someone wants to answer it at SO
0
Q: Get the data from related tables (models) sequelize

feniixxLet's say I have these tables: countries id - integer name - string users id - integer countryId - integer name - string What I want is to get all the users with their country names instead of the country ids... Sequelize docs are good, but confusing... I got the followin...

 
7:19 AM
Would this be a duplicate? stackoverflow.com/questions/20156045/…
 
Kind of, but in fact he knew how to create an assosiation, I don't
but it helped...
 
There are 80+ pages of sequelize.js SO questions. I am sure there is already an answer.
 
The thing is that the way sequelize cli generates the models is different from the way that the docs explain assosiations
 
7:37 AM
Well, this is what SO is for. And perhaps why there are so many existing sequelize.js questions (and answers) to help you.
 
@copy thanks. I know it's annoying, but the fix is even more so :(
 
crl
8:09 AM
Is it ok if I request my db in ajax just to get a unique id? doing it in on the client makes me think it could still conflict
 
what happens with that unique id after that?
 
crl
that's the primary id of a future column (document in mongo)
 
You surely aren't missing that client can send back whatever mutated id they want, right?
 
crl
it would be possibly good to delay this creation because it's during a drag-n-drop operation (would rather do it when it's finished (drop))
What do you mean with mutated id?
I need a unque id in client side too, because react likes unique id's in lists (key), (and if I just put some random id, then create on drop a real unique id on the server, I'll need to re-update it on the client, not fun)
 
@crl I presume you are doing something with that id on the client, and sending back some data based on that to server, right?
 
crl
8:19 AM
yes, dragging an element (dom) with that id (during the drag I just need the id though) and must save it on drop when finishing the drag)
 
now what happens if client meddles with that response and sets the id to some other id, which happens to correspond to an already existing record in your store?
 
crl
if he hacks the page?, hehe well.. it will shit, but he will have sought it
it's not in his interest
 
@crl so the id is not to be returned to the server in later requests?
 
crl
it might, if I do some drag-drop on it again
 
Then as long as you are validating it (say, by storing the id in session on the server), you shall be fine.
 
crl
8:26 AM
I'm doing a sort of tree-drag-n-drop, sometimes the user can add a leaf, or add a branch, and new leaves to that new branch, etc..
if the validation fails on server, what can I do? lose what the user has done? or fix it on-the-fly
 
user has "done"? i.e., tried to hack you?
why on earth would you want to preserve the work of a malicious user?
 
crl
the branch element he has created by dragging
it's not malicious at all, they are editing a tree, and need a unique id when manipulating the branch on the tree, before saving this work
 
@FlorianMargaine Awesome!
@crl if that is so, then the server validation shall never fail
 
it was a lot of code.
 
crl
8:31 AM
@AwalGarg ok, gonna maybe make some id with parent-id, date, etc, thanks
 
@FlorianMargaine now use service workers to make it work offline :D :D
 
...can someone explain why i got messages from this chat, from a stackoverflow user with the same name, but different ID?
 
@crl If each session will be associated with a single tree, you can do something slightly more efficient.
 
@AwalGarg hm.
 
@FlorianMargaine It has terrible browser support, but if you really would want it to work offline ever, serviceworke.rs shall be the last thing you need.
 
8:35 AM
@AwalGarg it could only work per-package
 
hmm, right
 
I'm not sure I want that tbh. imho the main use case is sharing a single page to your colleagues to show some bit of code, so http caching (at the client + server side) makes more sense there
your colleagues don't want to download the whole package when they just want to see a single block of code
 
indeed
 
caching is in the todo, btw.
(there already is html caching, but not API caching)
 
morning
 
8:45 AM
hi
 
9:05 AM
o/
 
\o
 
9:23 AM
<o
thats a salute in case people are wondering...
 
«°»
 °
 
@Loktar thanks :P
 
Okay, is it necessary to bundle Gruntfile.js along with your bower packages?
 
confused about directives & global scope in angularjs... :/ I actually try to make a "edit form" appear on click on an item...
item is a global scope object, so directive scope should be linked to it
 
9:36 AM
@Julo0sS do you have an isolated scope?
 
I declare a scope in the directive, matching the global one with "="
this probably fails because there is no $watch thing.. Im really confused about that :/
 
crl
fb.me/react-dom-0.14.3.js react_dom.. wat? (is it useful at?) can't they put that in their 18kLoC main script?
 
> React.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
:D
 
morning chaps,

Anyone used web-components without a framework?
 
yo, shoot
 
crl
9:42 AM
!!mdn web-components
 
thx, I if do this I see a button onscreen
var ExtendedButton = document.registerElement('extended-button', {
  extends: 'button'
});
 container.appendChild(new ExtendedButton());
but if I do this in html I see nothing:

<extended-button></extended-button>
 
rtfm
 
I'm having trouble with an angular bind, I've got a select with defined options, the thing is that the model it's binded to is retrieved from db as boolean value(true or false), and the options values are 0 and 1, so that when the model has value the option doesn't get selected...
 
the proto is htmElement
 
9:44 AM
Here's the select:
<select name="isPrivatelyHeld" id="isPrivatelyHeld" class="form-control"
        ng-model="vm.supplier.isPrivatelyHeld">
    <option value="" disabled>-- Seleccione una opcion --</option>
    <option value="0">Publico</option>
    <option value="1">Privado</option>
</select>
 
@SuperUberDuper it is the same behavior as seeing nothing when you put <p></p> in your markup. I don't know what you are expecting more.
 
I am expecting to see a button (with no text)

same as container.appendChild(new ExtendedButton());
that shows the button
 
@SuperUberDuper that won't happen if your prototype is really HTMLElement, can you create a fiddle?
 
I have a requirement in which, I need to hit a server call, which can send back 1 ( in progress ) , 0 success , -1 error. So if I get 1 as response, I need to call it again, but at the same time, I need to retry only for twice to get the status. How one can do this in js?
 
9:58 AM
this example should show 2 buttons
 
@SuperUberDuper No. new RandomElement() creates a new element which inherits from the entire prototype chain of your custom element. Replace that new btn with document.createElement('your btn') and you will understand what happens.
since the html parser runs before the JS engine, it is not possible in any fashion for custom markup elements to inherit UA stylesheets from parent interfaces.
 
crl
s/tn/utt/g
is a button something you put your butt on? I'd call it a chair rather, English is weird
oh a button is something you 'boute' on
!!tr en bouter
 
10:14 AM
Anyone has ever had an issue with bower_components and .gitignore ?
bower_components is not being ignored...
I've tried:
bower_components/
and
path/to/bower_components/
but it's not ignored
 
if anyone could help pls... jsfiddle.net/z3eL9m5b thx
its probably just something i misunderstand about angularjs & directives scopes...
 
crl
@feniixx bet you already committed it
 
Yeah, i already did commit and push
 
crl
so ignoring won't have effect, normal
it's like having a child and then ignoring it, the child is still there, and it's yours
the idea would be to kill the child
google how to kill a child once it's born, and apply this idea to git
 
hey all
I have an interesting question
how can Typescript be a superscript of JS if it appeared later?
 
10:28 AM
that's not an interesting question
 
crl
define superscript
 
and it's a "superset"
 
i mean superset
my bad
 
it contains everything in JavaScript, and more stuff
 
ok, thanks
is it useful to learn and why ?
 
crl
10:29 AM
"appeared later" you mean created after?
 
If you want to write with Types for any reason, then yes
It is being used in Angular 2
 
crl
question doesn't make sense
 
@crl yes
cool then I'm there dude
 
My team is using it because we are working on a large project and types give us some extra robustness
 
crl
how can you make a superset of something, when the something isn't created yet?
 
10:30 AM
ok no philosophy now :p
 
crl
logic it is
ahh, created in the sense of generated, sorry (was thinking invented for some reason) not even sure that's what you meant
 
hi guys! does anyone of you know about garlic.js? It's a JS that let's you save a form and continue later on
 
@Regina 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.
 
oky
 
crl
// when I do
if (someElt) someElt.classList.remove('red','red-0','red-1','red-2','red-3');
// it works, but when I do
if (someElt) someElt.className="";
// it doesn't work...
because some lines after I'm doing someElt.classList.add(...)
ok fiddle
ok it should work.. fiddle.jshell.net/vrov790e
 
10:45 AM
@crl What's the problem?
 
crl
none :), just a mess in my code
 
@DineshJayapal 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.
@DineshJayapal 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.
1 message moved to Trash can
@DineshJayapal Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
crl
@CapricaSix be more gentle
 
fucking babel
 
crl
What's wrong with this babe?
 
10:49 AM
export default class A { }
Is transpiled differently to:
class A { }
export default A;
 
crl
ah, maybe try the lastest version, dunno
 
Babel 6 is for the braves :)
 
Already on 6.2
 
Hi People , I need an advise about mobile web app application (HTML+JS+CS)..
Is it the right place to ask something about performance?
 
@Ofear 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.
@Ofear 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.
 
10:56 AM
We building a web app application for a big company like AT&T
The app will be used by the agents in the stores.
With the app you will be able to create new customers,buy plans and devices , see history, search customer/orders/plans/devices/subscriptions and a lot more..

The question is.. Should we use the server for all the computing and let the app show the final data?
Or should we use the client(iPad) to parse the JSON and convert all short of things? (like convert date format and such)
 
appears to have been fixed in 6.2.1
 
what do mean "rebate card"?
newegg.com/Product/…-na--na-_-na&cm_sp=&AID=10446076&PID=2187655&SID=
look under the price
$259.99 after $30.00 rebate card
:/
 
wtf is this
 
@AwalGarg job cap
 
54 secs ago, by Awal Garg
wtf is this
 
11:18 AM
still can't get it working... jsfiddle.net/z3eL9m5b/27 :'(
 
@Ofear If you can limit the client to reasonably up to date iPad and machines, it is ok to handle the display on client side. Just don't do validation (action permission/UAC) on client side.
If you think you'll be seeing IE 9 or before, I'll reconsider.
 
@Julo0sS
@Julo0sS I see you selected jQuery from dropdown left
shouldn't this be AngularJS?
 
it is in external files,but i agree
@emporio same result : jsfiddle.net/z3eL9m5b/29
strange behavior btw
 
and what are you trying to achieve?
I don't see a controller anywhere
why didn't you make one/
?
 
fiddle function should replace controller
 
11:33 AM
but that's not Angular protocol
$scope should be used within a controller
 
agree but this does not change anything, it works the same way : jsfiddle.net/z3eL9m5b/31
 
@Julo0sS maye you could include in the fiddle what you're trying to ahcieve ?
then people could read that and take it from there?
 
@AwalGarg oh, I thought they would be automatically upgrade to a web component if it was registered
 
@SuperUberDuper you can use the is attribute for that, if you want. Like jsfiddle.net/6tLsdLhm/2
 
hey...is there a point bundling Gruntfile.js along with bower package?
 
11:40 AM
@deostroll If you can help it, npm is superior to bower.
 
shame ember-cli uses bower
I mean in the broc file
 
for imports
what you guys working on right now?
 
12:06 PM
I'm gonna have to read all this w3c.github.io/webcomponents/spec/custom
 
@SuperUberDuper That's not to bad..
Relative to other parts of these specs
 
webcomponents' specs are better than other whatwg specs, but still terrible. also you won't learn anything practically useful by reading them, so have fun wasting time.
 
12:23 PM
@AwalGarg my lucid sleep turned out to be a full blown
failure
i ended up waking up and programming and then really sleeping for 12 hours phew
 
I am implementing a DOM like API in python... sigh
 
@AwalGarg wordpress shifted to node ?
my goodness
 
hello
is it possible to combine different steams in one gulp task?
 
@AaronHarding iirc yes
 
i'd like my es6 code to be transpiled and then combined with vendor packages (jquery, plugins, etc) that are still es5
@Abhishrek any idea how?
i'm trying this but it doesn't work: pastebin.com/K2MLs6N5
 
12:27 PM
@Abhishrek NO. And no one in their right mind would even believe that kind of crap.
 
using event-stream
 
@Abhishrek Great, now put 4 minutes in actually reading it.
 
@AwalGarg i did -_-
 
crl
how do you splice to the end of an array, without using length (because it may vary just before)
 
12:28 PM
@Abhishrek calypso is a wp.com frontend management console
 
crl
!!> var a=[1,2,3]; a.splice(-1,0,8); a
 
calypso is only the client
not the CMS itself
 
@crl "1,2,8,3"
 
crl
not at the end ^
 
@Abhishrek improve your comprehension skills? What part of that article makes you think wordpress is ever gonna switch to node?
 
12:29 PM
@MadaraUchiha but at this trend they shall move ;)
 
@Abhishrek Maybe, maybe not.
 
hope they don't :-x
 
WordPress is fairly stable, and rewrites never really work.
 
yep
 
If it does happen, PHP would receive a nearly fatal blow
 
12:29 PM
That article is solely about "Wordpress.com", not wordpress.
 
@AwalGarg just ignore
@AwalGarg hangouts
 
!!red can of hypertension or yellow can of hypertension?
 
@Cereal red can of hypertension
 
Thanks bae
 
@Cereal did you get the github tshirt yet? :/
 
12:46 PM
@AwalGarg For the 1 million thing? I didn't enter
 
@Cereal "github"
4 PRs thing
 
Oh, digitalocean
Nope
They said 4 weeks delivery
 
I just found that I got an email from them to fill that form long time ago...
 
Yeah
 
wonder what happens if I fill it now
 
12:47 PM
Well fill it out
Worst case you e-mail them
I don't think they're gunna run out of shirts lol
 
heh, I will do that then
 
hi all, could someone suggest a html & js linter which actively maintained, and allows me to add attributes to ignore? I'd still like to know about issues like duplicate attributes. grunt or gulp is fine this looks okay, but ignoring all the angular directive attributes will be sloppy by ignoring error messages.
 
@MadaraUchiha so people actually use npm for adding javascript/css?
 
@deostroll Yup.
 
for client side web dev?
 
12:54 PM
Yup.
npm is basically bower + server + better.
 
Anyone here who sees how this would make sense?
 
@Jonathan Why do people feel the need to screenshot their code instead of copypasting it?
 

« first day (1865 days earlier)      last day (3085 days later) »