« first day (1559 days earlier)      last day (3380 days later) » 

12:00 AM
Lol, just realised my bullets slow down when you shoot nearby -.-
 
You might have speed to be adjusted from point you shoot and target to be shot at.
 
I don't think the browser will love me for calculating the travel time for every bullet
Let's find out
 
lol
tell me when you upload it
gnna test it on mine.
There is a noticable glitch
 
Hmmm, going to bed actually. Work tomorrow
What glitch?
 
When you shoot at the bottom of the page, it actually expands to accommodate the image.
You should make it so the overflow doesn't show to solve that issue.
 
12:05 AM
Ah nice one, thanks
 
You see what I am talking abut?
about*
 
Though this will be replaced by a plane and sky
Yes, when you move offscreen
 
Well, it will do it no matter what image you set.
 
I'll restrict it
 
unless you fix it not to move even when the part of the image is off screen
 
12:07 AM
I'll get a small rect in the center of the screen. When you reach that, it will move the background instead
 
alright
 
Anyway, thanks for the help. Goodnight everyone
 
Night.
 
12:35 AM
This isn't just a simple code shove
Appropriate for some .gov
Put it in Mongo DB, baby
It'll never be pushed to live
'till it passes our C.I.
Push it to AWS, baby

SCALE
 
got my gulp/6to5/browserify environment set up, and man... I love classes so hard.
SO HARD
I also like for...of: for (let argument of arguments)
 
12:55 AM
Anyone have any idea why the following...
_draw() {
	window.requestAnimationFrame.call(this, () => {
		this._draw();
	});
}
spits out...
_draw() {
        var _this = this;
	window.requestAnimationFrame.call(this, () => {
		_this._draw();
	});
}
 
Am I going to need to shift to 6to5 just to keep up conversations here?
 
Why does it set a _this variable?
_this kinda defeats why I did .call() :(
st00pid 6to5
 
@NickDugger show the original code?
Because I think it's doing what it should
 
export class Engine {
	constructor(game) {
		this.title = game.title
	}

	add() {
		for (let argument of arguments) {
			argument.addTo(this);
		}
	}

	init() {
		console.log('Vorge has started...');
		this._draw();
	}

	_update() {

	}

	_draw() {
		window.requestAnimationFrame.call(this, () => {
			this._draw();
		});
	}
}
I can show you the output if it helps
 
the call is silly
 
12:59 AM
Yeah, I' was just trying to avoid doing _this, or self lol
 
cause you don't care about the context of the rAF call, you care about the context of the draw call
this._draw.bind
 
although it's silly, it should still allow me to do it. Why it creates a _this variable is still baffling to me
and it's odd that it's that smart too... lol
 
because it has to know about that context
 
alright, de-retarded it lol
 
1:15 AM
ajax does not make sense.
why does this not work in firefox? stackoverflow.com/questions/8567114/…
 
I'll give Spartan a proper chance, and hell, maybe it will become my new favourite; who knows?
 
thanks
I agree with Zirak
 
@SomeKittens I wonder if it's still Trident
 
It says "new rendering enmgine", though that could mean whatever it needs to mean, lol
 
1:20 AM
@edition can you be more specific about "does not work"?
 
@NickDugger I won't - I use all three major OS's.
 
firefox complains about blocked CORS.
 
That's not a FF issue
 
As much as I love OSX, I can't afford a fucking iMac...
 
yes, I just happen to be using Firefox; it affects IE as well.
 
1:22 AM
@SomeKittens What? Debian, Arch, and Fedora?
@edition read about CORS
 
@KendallFrey Windows (not daily, just vidja), OSX (work), Mint (personal work)
 
tl;dr you can't make requests to other domains unless they say you can
 
:/ ok
 
@SomeKittens don't respond to jokes with serious answers :(
 
@SomeKittens QNX, Nucleus and JavaCard ?
you probably really do, but indirectly
 
1:24 AM
In other news, the Leafs suck intensely now.
 
HA-HA...
oh wait, I'm from Buffalo
 
... and actually one could make quite good argument for "JavaCard platform" really being one of the major OSes
 
java sucks and so does my reasoning
 
I followed this: html5rocks.com/en/tutorials/cors and it doesn't work.
 
1:54 AM
@edition but are you making the request to a site that allows CORS?
 
Google RSS Ajax API? probably...
 
Which API?
 
Booooo, public and private declarations are a part of the spec, but 6to5 doesn't implement them
 
@KendallFrey yes
 
1:58 AM
Have you tried the JavaScript API?
 
yes
 
Does it work?
 
cube not working on IE?
is there a way to make it done?
 
@winresh24 cube?
 
transform
 
2:01 AM
I don't know what you mean
We can't help you unless you show us what the problem is
 
MLM
@winresh24 Looking at this question. transform-style: preserve-3d is not supported in IE11-. caniuse.com/#feat=transforms3d
 
this one not working on IE
 
@KendallFrey the JS API works.
 
2:25 AM
Jovian Whistlers are the sound made in radio waves by lightning on Jupiter. In real time.
space is awesome
 
3:03 AM
can I marry es6?
import {Character} from './character.js';

export class Player extends Character {
	constructor(player) {
		super(player);
		this.controls = player.controls || {
			up: 38,
			right: 39,
			down: 40,
			left: 37
		};
	}
}
 
You could also marry Python, Ruby, Java, C#, Haskell, Erlang, Clojure, ClojureScript, Typescript, C++, Perl or PHP
 
Holy indentation Batman!
 
My tabs aren't that large, but they are tabs and website tend to makes tabs 8 spaces instead of 4
 
ew tabs
 
ew spaces
 
3:10 AM
ew tabs vs spaces discussions
 
is anyone here fairly familiar with passport?
 
@SLoW 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.
 
do you know why when i request /auth/twitter from one machine i get a 302 with a location that includes the token, and when i do it from a different machine, i don't get a token at all? same code
 
@copy ew copy
 
ew
 
3:12 AM
@SLoW If you don't get a token, what do you get?
 
i'm using the twitter strategy, and all i get is api.twitter.com/oauth/authenticate
 
3:25 AM
that's the thing, it works on some machines that i've been using for a while, but on new machines, it doesn't
i've tried everything i can think of, and i simply can't get it to work
 
cookies? idk
 
even when i get rid of the cookie storage code and use a brand new browser, it still doesn't send a token
 
 
2 hours later…
5:22 AM
Yo anyone here?
 
Hi @Matt
Im here
 
Hey @shankar.parsanamoni wanna help me out with a simple math problem? I don't know if I just have the wrong answer or this website don't want it in the format I am giving it.
I need a 2nd pair of eyes to which is which.
 
Yeah, it's annoying... I even hit the "Help me solve this" and it gave me what I already had .-. so I just don't know if we're both stupid or I am just stupid for entering incorrectly when it doesn't give me a format to enter it.
 
that might be stack exchange
 
5:31 AM
hi how can i get all indexes on elastic search using elastic.s with angualr?
 
Eh, so you won't take a moment from javascript to help me. Lol.
 
let us know whata kind of problem you are facing in jscript
 
@Matt, trailing/leading whitespace?
shrug
 
Thing is, I got no clue and I only get 3 attempts to guess it .-.
 
0
Q: How can i get all index on elastic search using elastic.js?

SajeetharanWith my angular application i need to display all indexes on elastic search. I am able to query a particular index using the documentation, not able to get all the indexes on the elastic search. Here is the Documentation Here is my code: $scope.getallIndex = function(){ $scope.Indexes...

 
5:40 AM
Oh damn..
I found out why I was getting it wrong, it because it changed my vars it gave me at start.... >.> okay, that is messed up...
 
Argh, I hate that.
 
I know
Cause I was writing it on paper to work it out
 
Or, whyI'm glad my combinatorics course was graded by a human
 
Grr... Stupid thing...
I was starting out with R(x) = -x^2+8x, and C(x) = 3x+4
now it tells me they're... R(x) = -x^2+6x, C(x)=2x+3...
Finally I got it right, but it shouldn't of done that too me.
 
i all i am new to angular js i am facing one issue while using ng-view.
 
5:54 AM
@Sandy 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.
 
@CapricaSix thanks i have already been to there
 
Man.. I should probably go learn Angular someday, a lot of new people ask about that.
!!>tell Sandy "I am a bot"
 
@Matt "SyntaxError: missing ; before statement"
 
lol
!!help
 
@Matt Information on interacting with me can be found at this page
 
5:56 AM
while loading templete in ng-view its not apply jquery function on dom any suggestioin
 
!!listcommands
 
@Matt 666, help, listen, eval, coffee, refresh, forget, info, listcommands, tell, afk, ban, unban, convert, define, doge, google, hang, jquery, learn, put..it..back...ლ(ಠ益ಠ)ლ, phucket, gtfo, lol, moneycantbuylove, catmode, coffeetime, lifeban, stopmyself, instagram, kendallfrey, excited, manigga, meinneger, dgaf, infiniteriot, okay, feelsgoodman, fabulous, sausage, playerpimp, installjavascript, moarkittens, kendall, googlesite, banana, kfc, uwot, nsfw, facepalm, food, abhishekhingnikar
somekittens, erase, fry, dudeism, hahastillhere, onebox, morecoffee, steve, whoosh, burn, woosh, roomowne
 
!!tell Sandy hi
 
@Sandy Hello
 
@CapricaSix hi
@CapricaSix do you know about angular
 
5:58 AM
Anyways... Enough toying with that... Is this very basic angular or little advance?
!!tell Sandy help angular
 
@Sandy Command angular does not exist.
 
@Matt i am new to it so can't define the criteria but i am missing some thing very small
 
grr... Send me it and I will see if I can find out
 
user2620028
!!phucket
 
YES!!!
 
6:04 AM
Caprica Six posted i.stack.imgur.com/dMpmR.gif but it was moved to chat.stackoverflow.com/rooms/61037 because gifs get annoying fast.
 
THAT DESCRIBES MY FEELS TOWARDS THIS WEBSITE RIGHT NOW!
 
user2620028
lol
 
Not this as stackoveflow
But another one xD
 
Hello m
 
Well I'm off for the night.
 
6:09 AM
I thought for a moment that was going to be a slightly different gif
I'm not sure what I think of Javascript, I've yet to come up with a personal headscratcher on trying to accomplish any one task, which makes me afraid I'm doing it horribly wrong
... not sure if that makes any sense.
 
Can anybody help me with this one ? stackoverflow.com/questions/25635811/…
Limiting the field length for javascript of elastic search
@Sandy : What on angular ?
 
6:25 AM
@32teeths unable to apply jquery method on templete loaded in ng-view
like menu rendering using jquery
and slider from jquery on dom
 
What exactly are u trying ?
you should use a directive
the best practise is to simply create a directive
if u have plunker .
i can help
 
6:57 AM
@32teeths i tried the directive but it still not working
@32teeths i got one working example but same approach not working with my code
 
show me the working example.
which jquery plugin are u using ?
 
@32teeths any suggestion over it
 
what are u trying to achieve
 
@32teeths ok i have one html page that is paritial into three part header, ng-view, footer . in ng-view i am loading a templete from server in that templete i have 3 jquery slider so i rendered the html using angular into templete but those is not working bcz unable to apply flexislider view on that
 
are u trying the same thing as in the plunker ?
 
7:04 AM
@32teeths yes i have java project and apply in jsp page
 
i cant clearly get u
 
@32teeths here is the app.js pastie.org/9850445
@32teeths are you there?
 
@sandy
yes
what is the templateUrl
is the template loading
 
@32teeths pastie.org/9850459 here is main page that is seprated into three
 
what is the error that you are getting
 
7:10 AM
I think i should "makes" a script which "pops" up an overlay for a mobile phones keyboard in chrome dev tools emulation mode
 
@32teeths here is the templete pastie.org/9850464
@32teeths no error there is cosole
 
is the template loading correctly
 
@32teeths yes but the flexslider is not applying
@32teeths even i put the directive like sample
 
is the plugin loaded .
jquery plugin
 
@32teeths any suggestion on it what mistake i have
@32teeths yes i added all library in head you check in pastie url
@32teeths pastie.org/9850459
 
7:17 AM
try to console inside the directive
is it working ?
printing something inside the link funciton of the directive
 
ok
i put the alert and its working
mean showing me alert
@32teeths anything i am missing
 
angualr with elastic guys :P
anyone?
 
7:38 AM
yea
@Sandy: try angular.element('.flexslider')
element is also fine
not sure .
 
@32teeths ok
 
@32teeths am using docs.fullscale.co/elasticjs with angular
how to make such query using this?
 
@RoelvanUden are you here?
 
@BenjaminGruenbaum Yep, what's up?
 
@Sajeetharan : I also use angular + elasticsearch . For my case ,
I have created a service .factory('ElasticService', ['$q', 'esFactory', '$location', function ($q, elasticsearch, $location) {
var client = elasticsearch({
host: ip + ':' + port,
});
var search = function (index, body) {
var deferred = $q.defer();
client.search({
index: index,
type: type,
body: body
}).then(function (result) {
var took = result.took;
var size = result.hits.total;
var ii = 0, hits_in, hits_out = [],aggs = [], highlight = [];
hits_in = (result.hits || {}).hits || [];
/* For the timebeing i have maintained this variable to save the aggregations */
 
hello
anyone free
is there a chance to make it work in IE?
 
8:29 AM
-17
Q: How to difuse a bomb?

Caner Unutkanwhats the correct color ? red , blue ? its ticking please be quick. pleaseeeeee help meeeeee. ı neeed to write more to my question to be accept, oh god ı wonna die because of quality standarts. fuuuuuuuuuuu. take samo codes for quality standarts.. you monster function fuck(data) { var jdata...

 
@RoelvanUden we're interviewing C# developers soon (duh) and I'm looking for good questions that are not overkill for backend developers
 
hi
i am using staggering animation like following
.dis.ng-enter,.bdp.ng-enter {
transition: 0.4s ease-in all;
transform: scale(0.8);
opacity: 0;
}
.dis.ng-enter-stagger,.bdp.ng-enter-stagger {
transition-delay: 0.14s;
transition-duration: 0s;
}
.dis.ng-enter.ng-enter-active,.bdp.ng-enter-active {
opacity: 1;
transform: scale(1);
}
using Angular js
sometime its working some time its not
please help me to solve this problem
 
8:51 AM
0
Q: GIT: How to unambiguously reference current HEAD when having a branch called HEAD?

GlutexoEven though it is a definitely bad idea to have a git branch named HEAD and I know it, it is still a valid branch name. If you happen to have branch like that, is there a way how to unambiguously reference the real current HEAD? The branch can be referenced as refs/heads/HEAD, but the HEAD itsel...

Why? -_-
 
@BenjaminGruenbaum you mean frontend developers
or you're looking for good javascript questions
 
@BenjaminGruenbaum FizzBuzz
j.k. Ask them to solve a relevant problem
For instance, when I joined my company, they asked me to create a widget that accepts data from a REST API and renders on the page with images, responsive, etc.
Ask them solving a problem that's relevant to where they'll be working, one that you already know the solution to or know how to gauge their decision making.
 
Holla, good day.

I have a file data.json included(script src="data.json") in a html, If I remove this script of my html and call this using ajax, BROKEN, say data not "undefined".

var xmlhttp = new XMLHttpRequest();
	var url = "../public/js/data.json";
	xmlhttp.open("GET",url,true);
	xmlhttp.send();

WITHOUT   <script tybe="text/javascript" src="../public/js/data.json"></script>
 
@UlisesContreras Ajax performs an asynchronous operation, meaning you won't see the data until an indeterminate time later
You'll need to add a callback to your ajax request or use promises, and only inside the promise resolver or callback will you have your data (assuming all went well)
If you simply include the json in a script (you should probably use jsonp at that point), it is requested on page load, and thus using that data in later scripts works because the later scripts are executed after the json load
 
9:08 AM
@Neil Yes, yes, but I can do with my call ajax without to include script json? You say callback, so, what more need my call Ajax?
 
@UlisesContreras Sure you can, however you must rearrange your code a little bit
 
@Neil @SecondRikudo BACKEND
 
@BenjaminGruenbaum So?
The idea is the same
 
@UlisesContreras See here
Notice the onreadystatechange
 
@Neil you can do this in jsfiddle, one example, please. i.imgur.com/idB5sTq.jpg
 
9:10 AM
@Neil No... that's obsolete code.
In 2015 we don't care for ActiveX and we have onload.
 
@Sencon how is now if u say obsolete code, thanks? i.imgur.com/idB5sTq.jpg
 
@SecondRikudo Sigh, just trying to help the guy. If you want to help him instead, be my guest
 
@Neil Oh, he's in my tiny avatar list for quite a while now
And for good reasons, as I see now
Just making a remark
 
@UlisesContreras If you have problems understanding, ask, but I won't write it for you
 
@Neil I understand u.
 
9:13 AM
Make an attempt. Worst case scenario, it doesn't work.
Can't catch your computer on fire using javascript, at least not that I'm aware
 
@Neil I can to call my JSON out of html, alright. I'm testing.
 
@UlisesContreras It would be worth your while to attempt a better way at least, but I understand if you don't want to do so now
 
@BenjaminGruenbaum If you're asking me for good questions, I'd have to say your candidates would probably have to have experience in n-tier architecture, ASP.NET MVC/Web API/WCF (Whatever API layer you use) and the ORM/ODM (and related DB). You can ask them about that, and things like the difference between interfaces/abstracts, inheritance, immutability, parallel/concurrency differences, contracts (if you use them) etc. I can't know exactly what you're looking for, but a good candidate learns quick
 
Second Rikudo posted i.stack.imgur.com/BFCWW.gif but it was moved to chat.stackoverflow.com/rooms/61037 because gifs get annoying fast.
 
@RoelvanUden yes - we have a nice EF, SQL and WebAPI question set up that requires some calculation but I don't want to rule out candidates that are smart but are simply unfamiliar with the stack.
 
9:21 AM
Use mauve script tag color. It runs fastest
 
@BenjaminGruenbaum I think the basic concepts are more important than the stack. The stack is easily learned, concepts like the technologies and stuff like threading are harder to understand if unfamiliar.
 
@RoelvanUden I think so too. Then again I'm not so sure we really need someone who is good with threading.
 
You can do some things like making a static list and adding stuff to it from a request and asking why that'd be a bad idea.
Awareness is key, not thorough understanding :P
 
can someone point me to the right direction, im trying to implement php code to this github.com/scottcheng/cropit. thanks in advance.
 
I don't find that the developers who understand threading and concurrency very well are better at developing here. I think I'm okish with concurrency and it doesn't really help me.
 
9:24 AM
Just to illustrate:
 
@RoelvanUden lol, I don't think we've ever had a static variable in our web app - the closest we do have is Redis being globally available but that is explicitly thread safe. I can see why that's an important question though.
 
81
Q: How to pass variables and data from PHP to JavaScript?

Second RikudoI have a variable in PHP, and I need its value in my JavaScript code. How can I get my variable from PHP to JavaScript? I have code that looks like this: <$php ... $val = $myService->getValue(); // makes an api and db call $> I have JavaScript code that needs val and looks along the...

 
@SecondRikudo that's nice for fullstack, but this guy should really not care that much about that.
 
public class HomeController : Controller {
  public static Dictionary<string, int> _cache;

  [HttpPost]
  public ActionResult Cache(string key, int value) {
    _cache[key] = value;
  }
}
 
Well, they should care but I don't want to use that as a filter.
 
9:25 AM
This is a terrible idea and anyone slightly familiar with threading can see it.
But yeah, concepts > stack :)
 
@BenjaminGruenbaum Eh?
 
@SecondRikudo In my opinion anyone sufficiently good can be taught anything in programming very fast. This is why @RoelvanUden which had very minimal JS experience about 3 months ago is probably a better nodejs developer than @darkyen00 (who is also smart but probably not as trained of a developer) who has been doing NodeJS for a lot longer.
 
@BenjaminGruenbaum I agree
(although I think you replied to the wrong message)
 
@RoelvanUden we deploy to Azure, anything that has state on an app level will fail for so much more than thread safety - especially since we run it from multiple instances all the time.
The problem is finding those people - which I could use help with :)
 
But I think that having someone solve an actual problem that he'd have to solve at work, and gauging him based on that, can give you a good idea about how much experience that guy has.
 
9:29 AM
Yeah. I'm no expert at recruiting myself, but I'd be glad to help if I can. What questions do you have right now?
 
Yeah, we do that in frontend interviews and it worked out well we're very satisfied with our frontend team overall. The problem is actual backend tasks are harder to fit in a time slice.
 
Don't feed someone stupid math related algorithms though, like so many employers do. It doesn't test problem solving abilities; it tests math, which we barely need.
 
@BenjaminGruenbaum Have them do it at home
Give them a day or two
 
When to use reg-exp and when to use a parser, to extract information from a string.
 
@darkyen00 Are you asking a question ?
 
9:36 AM
@darkyen00 Depends on the structure of the string. Parsers make sense when it's a predetermined format. Regular expressions are great to do simple matches on non-existent formats. E.g. parse date/time stamps and html, use regex to detect a string with numeric suffix.
 
:-/ yes !
hmm
 
@SecondRikudo good developers don't have time to do that - if you gave me a 2 day task I'd probably not join your company and just go to some other place.
Would you spend 2 days on a task for some company when you have 15 alternatives? We want the 15 alternative people not the person who's trying to get into one place and failed others.
 
@BenjaminGruenbaum Can you elaborate a bit more on your stack? Azure, horizontal scaling, redis, MSSQL, EF, Web API 2, .NET 4.5?
 
@RoelvanUden DB is mostly MSSQL for heavy load/SQL Azure for smaller stuff/Redis for caching layer - EF is used when applicable (i.e. performance allows it). WebAPI 2 and ASp.NET MVC are used for serving pages with some Node when appropriate. We run .NET 4.5 and will likely upgrade when applicable (BizSpark Plus). Hosting is mostly on Azure.
We also have PHP on the backend for simpler stuff (blogs etc) but it's less interesting generally.
In addition to C# we have code in Scala, Java, Python, R, (some Haskell) and a lot of JS.
Generally developers get a lot of freedom in making technology choices but are expected to be responsible and choose technologies that'd be easier for the rest of the team to work with. Coding standards are decided by developers together, it's relatively easy to add technologies that make life easier.
 
9:52 AM
I can see why it is difficult to interview. You essentially want to have someone that codes for fun and knows a lot of variation technologies rather than just 1 thing (very well). This is difficult to ask questions for ... hmm ...
 
No, that's the thing - we don't care if they know one particular technology very well - we just care if they're smart and can get things done.
It's a job you learn a lot in. So we want someone who is good at learning too.
 
Ajax (XMLHttpRequest) is more Back End that Front End?
 
@KendallFrey that library is awesome.
@UlisesContreras please stop asking stupid questions. You're really not new here anymore.
 
Is not stupid question!
 
Right, Mr. Garrison famously said in South Park that there are no stupid questions
 
9:58 AM
just stupid people.
 
Thanks Craig for explaining the joke :D
 
@BenjaminGruenbaum it was gonna go over his head :)
 
@phenomnomnominal That was the point - for us to all enjoy it while it goes over his head so he can reflect on what he did wrong and google for XHR tutorials and read MDN's.
:D
 
:D
@BenjaminGruenbaum you know how I was talking about that protractor UI thing a while ago?
 

« first day (1559 days earlier)      last day (3380 days later) »