« first day (1784 days earlier)      last day (3165 days later) » 

6:00 PM
not sure, but Cap is right
 
WOO!
boss said we were going home
so I shut down my laptop
now he's chatting with other co-workers so I'm not sure if I should leave yet
 
starting on my game engine again; decided to bite the bullet and use PIXI for my rendering engine... I feel like a cheat, but most of my rendering logic is already done for me now... I've already done rendering engies a billion times, but this is just faster startup...
tl;dr I'm a whore
 
@CapricaSix did you all get fired or are you getting vacation? XD
 
Long weekend in Canada
 
same in US
labour day, or something
 
6:03 PM
fucking chat
just logged me out mid post
 
I can't tell if we get labor day off or not
 
@ssube take it off
also, don't go to work on Labor day
 
@KendallFrey was it you that showed me the image of the 3 overlapping triangles of which none was in front and they weren't intersecting? Can I get the link of the pic again? Sorry ^^
 
@Zirak gist.github.com/awalGarg/208b1c167366957f7385 :-( no idea why long pages scroll down :/
 
@ssube oh cool, that worked, also had to use non-capture groups for some of it, thanks for the help
 
6:11 PM
@towc I just googled "3 overlapping triangles"
 
oh! Thanks...
 
@Nick tell me something I didn't already know
 
googling "three overlapping [word]s" gets you some weird results, especially for colors
 
@ʞɔᴉN Extending classes in ES6, and then trying to use a static method from the super class (then transpileing via Babel) is unsupported in IE8, due to the use of the __proto__ property. You can set configurations to get round this by doing a deep copy of the super class
!!afk smoke
 
@Nick your mother shall hear about this
 
6:16 PM
@ʞɔᴉN Nick is afk: smoke
 
6:46 PM
my skype was hacked, folks
Sent a bunch of spam messages to my whole contacts list
 
n00b
 
yup
I haven't used skype in a few months
 
Also, define "hacked"
Are you reusing passwords? Because I think if Skype's login process was compromised we'd hear about it
 
@ivarni You can get a password reset sent anywhere via social engineering
 
@SomeKittens But then it's just that. Social engineering. Not hacking.
 
6:55 PM
Mitnick would beg to differ
 
Granted
My point is (was) that leaking personal information is a big contributor to "being hacked"
Most of the time, it's not the service itself that was compromised
 
Nah, I got a friend request from an account called "live" that had a bunch of messages in it. It then sent each of those messages from this request to each of my contacts. Not sure how that exploit worked, but it did
 
when I was freelance I made a skype spam bot for a certain client
the glory days
 
"Are you all alright?" -- "No, you are all al-left"
hue hue hue
 
That was a reddit comment on a video of an alligator eating his buddies arm off. "ARE YOU ALRIGHT?!" ... "I am now..."
 
7:03 PM
lol
I didn't know that alligators were cannibals
 
It was feeding time. They were clearly starved and one just opened his mouth and charged.
 
huh, if you google it, sometimes Alligators are cannibalistic
strange
 
^ That thing's on sale
 
just get an apple tv
 
7:09 PM
@Cereal ooooohhhhh
@Nick What if I don't Google it?
 
then sometimes they aren't
butterfly effect
affect
fuck
which one is it?
 
$899 for 2TB?
 
effect
 
whaaat
 
SSD
 
7:10 PM
oh, misread
there's a 2TB spinning for $129
 
@Cereal overpriced
 
💩
 
$449 base price yeesh.
 
I bought a chromebox for like 100 and put arch on it
and then was crushed when I found out I bought the first gen one that didn't support 4k @ 60hz
 
what GPU is the system 76 using?
I don't see it listed
so Ill assume some onboard intel one
same price as the base, better specs imo
 
7:17 PM
Intel® HD 5500 @loktar
 
ah those both have dedicated gpus, gtx something or others
 
awesome
 
@AwalGarg now the real work is starting :) github.com/ralt/hermes/blob/master/pam_hermes.c
 
8:08 PM
 
just putting this out there... codepen.io/towc/blog/hacky-3d-without-webgl-or-libraries (basic 3d canvas without WebGL or libraries)
 
8:22 PM
@towc nice article, looks really similar to the methods I use.
haha actually i think its the exact method I use.
even the focal length of 250
 
yeah, that's pretty common :P
thanks btw
 
nice but you miss out on all the performance benefits webgl brings
 
@ʞɔᴉN for sure
the reason I did 3d with 2d canvas is because webgl wasn't supported everywhere
 
@ʞɔᴉN first few paragraphs say that you only need this in case you don't want to learn other better stuff
 
now everyone is spoiled with full canvas and webgl support
 
8:25 PM
but you should always learn other better stuff :)
 
you youngins will never know our troubles! :p
 
surprised you didn't just use Flash
 
@ʞɔᴉN meh
 
@Loktar I was raised with ie6
 
a tough childhood then
 
8:26 PM
I remember when canvas wasn't supported in FF even
I stopped using Flash once I learned about canvas though
 
No wait, the oldest browser I had to support professionally was ie7, my bad
 
was a no brainer.
@FlorianMargaine ah so you had opacity on png's
 
Google is fixing memory issues for chrome tabs makeuseof.com/tag/…
 
lucky.
 
@Loktar yeah. The tutorials I was reading back then were all over that.
I implemented the 4-divs thing to have rounded corners :D
 
8:28 PM
> After completing this it really excites me the direction Javascript seems to be going. I definitely think one day in the distant future it will be able to replace Flash for most anything. Especially if browsers continue to implement faster JS engines, and MS really does ditch its IE platform.
lol what I wrote in 2009 about canvas
 
@Nick that's kinda lame
 
@FlorianMargaine oh man... friggin rounded corners were such a bitch
 
so it just purges inactive background tabs after a certain time?
 
such ugly markup
 
@Loktar yeah, you needed an image for each corner and use background-image
That's also when I learned about CSS sprites
 
8:29 PM
well they finally ditched IE
 
is there no way to see what's throwing a 404 in express js?
 
elaborate?
 
@Loktar btw, yup, I learnt pretty much all of that from that book :P
 
@towc lol I assumed
since the code looks exactly the same
thats why I posted it, gotta give credit where credit is due :p
 
right ;)
btw, have you seen what ge1dot does? He also uses that :P
 
8:41 PM
nah I dont pay attention to codepen much anymore
its mostly just rehashed stuff over and over now that I see
 
@ʞɔᴉN did npm start and all it does is throw an Error: Not Found message with stacktrace. Stacktrace points to app.js, which says the error originates from here:
app.use(function(req, res, next) {
  var err = new Error('Not Found');
  err.status = 404;
  next(err);
});
 
people like Jack and Tim rarely post things anymore :(
 
Not trying to be rude in the least but just to prove my point a featured pen from today has been posted many times.
 
@DemCodeLines don't you need to supply a path argument before the funciton?
 
8:44 PM
var indexRoutes = require("./routes/index");
app.use("/", indexRoutes);
(function() {
  "use strict";

  var express = require("express");
  var router = express.Router();

  router.get('/', function(req, res, next) {
    res.render("index", {
      title: "Express"
    });
  });
});
 
isn't that .use just purposely throwing an error?
 
Possibly, but I haven't encountered this error before and .use block has been there in other projects too
 
Error gets thrown immediately? not on a specific route?
 
Yup, right away. No matter what the route is, I am getting that error
 
@DemCodeLines no idea what this is lol
 
8:48 PM
@ʞɔᴉN ./routes/index.js
 
Yeah.. that's weird... I assume if you comment out that .use block it all runs fine/
 
why is your module in an iife?
there is no module.exports
 
I left it out. It's there.
 
why is it wrapped in a iife?
 
I don't know that myself. I just looked at my previous working projects and it wasn't wrapped in that. Let me unwrap it.
 
8:57 PM
yeah you don't need that in modules, they are self contained. One of the beauties of modules
 
I trying to developer a slide show in js but im having trouble with the back button
how do i get the slideshow to go back to the last slide?
develop***
 
9:27 PM
i want to write $('input').prop('disabled','disabled'); in angular
 
ng-disabled="myScopeVar"
 
@SomeKittens i don't get that
 
We are aware of 523 errors near Prague and Denmark - we are investigating.
 
Trying to write a custom angular validator inside a directive, and it's not working, for whatever reason. Any tips?
 
9:34 PM
@EchoLogic 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.
 
Long form example of what I'm working with here. stackoverflow.com/questions/32373016/…
 
Nice, getting this now:
Failed to instantiate module
 
I just have one question
Why in the name of all that is good are the jQuery docs full of screenshots?
 
user406009
9:55 PM
Which page are you looking at? I don't think I've ever seen screenshots in the jQuery docs.
 
@Lalaland Looking at your username remind me of this:
 
10:10 PM
0
Q: HTML5 <video> using navigator.getUserMedia() in Chrome

asolrI've been using the HTML5 <video> element and it is working in both Chrome and Firefox, however, for some reason it doesn't work when I load it from a file locally in chrome however it will work in firefox. Example: http://codepen.io/asolar/pen/BoyPxZ Can anyone tell me why this doesn't work ...

 
Is it possible to run node js inside a folder.
 
...yes?
why wouldn't it be?
 
I mean, we have a shared development server, with each team running their own stuff inside a separate folder.
I tried to set up my files inside my folder, but now the entire server has been taken over by node.
I need it to be dev.com/t1, not dev.com:3000
 
oh, you want a given server to be served from a subdirectory?
you need nginx or the like
 
ohai this is a test please ignore... I'm generating a gpg key. For my hermes tests.
 
10:16 PM
@SomeKittens What were you thinking I wanted?
 
user406009
Yeah, niginx will do what you want. Proxy pass is the feature if I recall correctly.
 
I apparently need more entropy.
187 more bytes, according to gpg.
 
@FlorianMargaine sandbox?
 
@DemCodeLines I wasn't sure
 
not sure when it'll be satisfied
 
10:17 PM
!!> Math.random()
 
@SomeKittens 0.8361766204021446
 
^ boom
 
@JanDvorak that might be a good idea.
 
Now I need something else just to run my MEAN app on the server?
I think I need to re-evaluate our shift from LAMP to MEAN
 
yes, you do
 
10:18 PM
find / > /dev/null is not a bad idea.
 
Mongo is not a database. Write that until a write lock causes you to lose data.
 
user406009
@DemCodeLines What's your current setup? Apache?
 
I am not using Mongo, we have to use oracle for compatibility.
 
user406009
You can also tell apache to hand off requests to your node server.
 
user406009
Look up "Apache reverse proxy"
 
10:19 PM
Currently on Apache, yes.
 
user406009
We just recommended nginx, because nginx has easier configs IMHO.
 
user406009
The idea is when you submit a request to dev.com/t1, you want apache to forward that to your node server dev.com:3000 or whatever.
 
Is that what most web apps built on node use?
 
user406009
What do you mean by "that"?
 
10:22 PM
Most production node apps have some sort of reverse proxy, usually nginx, in front of them
 
user406009
Some people surely use reverse proxies if they need them. They are just a tool.
 
settign up nginx and redirecting
 
(nginx can also serve static assets, reducing the load on node)
 
user406009
@DemCodeLines Usually they do it for serving static assets and distributing load.
 
any tutorials out there (that you recommend) for setting up nginx in conjunction with node?
 
user406009
10:24 PM
The setup for reverse proxies isn't particular to node.
 
user406009
I would just research reverse proxies in general.
 
user406009
Apache would work fine though.
 
user406009
No reason to switch to nginx unless you have another reason.
 
1 message moved to Trash can
@Srle Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
Why someone would keep all connected sockets in object (or array or whatever), like:

var io = require('socket.io').listen(server);
var ioSockets = {};

io.on('connection', function(socket) {
    ioSockets[socket.id] = socket;
});
 
10:27 PM
I dunno, why do you think it'd be handy to keep connections around?
 
It's a great way to contract a memory leak
 
Socket.io does that internally already
 
I commute to win.
 
10:42 PM
'tis my cube
 
I have a service that returns me an array of data. This can be an array of sites (which is an object composed of two fields) or an array of tags (which is an array of strings). Since the retrieval of this is entirely the same except for the endpoint, I figured I'd make a helper method. However I can't reach my getData(string) method from inside the service object. How is this usually solved?
var service = {
	getTags: function () {
            return getData('/tags'); // can't reach
	}
};

getData = function(url){ }
 
need to see more code
 
getSites() and getTags() are exactly copy-pasted aside from the endpoint
 
because in var service = {} this refers to service
just don't attach getData to this
or expose getData to service
 
That's what I did first, but then my IDE says it cannot find name 'getData'
 
10:48 PM
try:
remove `this.` in return this.getData('/tags');
change
		this.getData = function(url){
to
function getData(url) {
 
Ahh, that different function definition did it
 
function vs variable hoisting maybe
dunno how angular evaluates things (in which order)
 
Thanks @rlemon: everything working perfectly
 
np
 
@Zirak, maybe in situation where someone wants to emit event directly to the specific(just one) client so maybe to have mapping between username and socket object, like: ioSockets[username] = socket, or i dont know.

@Jan Dvorak, indeed. Not scalable either from RAM consuption aspect.

@SomeKittens, i think there was no support for that in versions below 1.0, maybe that is the reason to have code like that.
 
10:53 PM
@Srle ok. And what if you want to broadcast something?
 
Mr Bean today
celebrating 25 years
 
@zi then you still want to have a way to remove closed connections from the list.
 
So I was looking into it, is it something like this:
 
though that's terrible code, don't use it
 
11:32 PM
http://grab.by/KbnW
that actually means socket.io falls back to polling?
 
user406009
@DemCodeLines Yep, just like I thought httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreverse was the key.
 

« first day (1784 days earlier)      last day (3165 days later) »