« first day (2176 days earlier)      last day (2777 days later) » 

12:00 AM
@FreddyJones There's no such thing as a "normal" function
 
Where did I say normal function..
 
it depends how big the function is
 
Ah okay
 
Right, I said normally take up -- I still meant relative to the function but that was my fault. Thanks though
 
12:02 AM
that answer will also depend the the JS engine and is subjec tot change at any time.
I can't think of a good reason to care other than idle curiosity.
 
Eh, I wanted to make a class that returns an a function object that acts like a subtle shortener.
Instead of obj.write(""):
just obj("");
 
you mean like bind?
 
Bind does accomplish what I wanted, minus the flexability of adding on top of the original function.
-- Doesn't bind just return a new function wrapped over the original that saves `this` context?
or whatever object you passed into its first argument
 
the this context and/or other arguments
returning a function like that (by using .bind() or your way) is fine. Your only concern is if you are doing it over and over in a tight loop.
 
@FreddyJones What do you want that bind doesn't do?
 
12:09 AM
I lean on the garbage collector. Idgaf.
 
Guys, im havibg trouble with keywords, i would like to know if it is possible to get near by directions within your near área from gmaps
By near directions i mean "you can go ahead, turn left ..... "
But without a direction address
How would I go about searching that?
 
well, you can use gps coords, i assume.
 
@MoshMage as in a function from (intersection, directionOfApproach) to [directionOfDeparture,...]?
 
Not that advanced, more like "what directions can I go from here in a x meter radius" the problem here is idk how if that's even possible
Much less his I would search that over a engino to see if it's doable
 
nothing in my current case, it would work perfectly fine!
I think what I really want to do is actually impossible.
 
12:17 AM
Well now you've piqued my curiosity.
 
It's kind of a loopyish idea, I'll try explaining it the best I can in a second
 
@KendallFrey I shall dive into it tomorrow, much too late to do that now. I'll put in the ideas pocket :)
 
ppppfftt problem with graphs again - if anyone's interested: stackoverflow.com/questions/39781831/…
 
maybe code explains what I'm trying to do best?
 
@FreddyJones ftfy
That's not doing anything that bind can't, though.
 
12:27 AM
Oh yeah, lol this.prototype is never what it was constructed from
Oh I didn't mean that it was haha
but what I wanted to do is still impossible, because well, I have to make a new function everytime I want it to be a function.
 
I wish I knew what you were talking about
 
What I actually wanted, was it to be created as a function, but it didn't, even when the prototype was a function
So that I could have a object being a function with its own context without creating another function for every new object
 
So you want multiple functions to actually be the same function underneath the covers?
 
That sounds right I think. So that they are objects, but call the same function by being that function, on themselves, while not explicitly passing themselves (in a parameter or in a new function).
 
That's functionally identical to having different copies of the function.
If you're thinking of a thin wrapper around the function, well, that's exactly what bind does.
 
12:35 AM
so something like this:
var func = new FuncCaller();
func("do stuff with this");

returns a function that performs on itself, but not a new function entirely.

But if a thin wrapper is as close as I can get that'll do. So the only draw-back with a thin wrapper would be what @Luggage said? Calling it is somewhat processor consuming?
In large quantities that is.
 
12:47 AM
@KendallFrey yeah, I can't do it exactly like that, I have to create a slight workaround.
 
You can do that. Functions ARE objects in JS. functions can have functions as their properties.
 
I know, I was arguing with someone earlier about functions being objects. They wanted to say it wasn't
They got very upset after trying to make a lot of points that I'd counter argue.
 
in the end, just send them here: facebook.com/TheSamePhotoofJeffGoldblumEveryday
it will wear them down
 
function myFunc() {
    return myFunc.otherFunc();
}
myFunc.otherFunc = function() { console.log('i am a function');
now myFunc(); and myfunc.otherfunc(); do the same thing
now.. having that be the result of new FuncCaller() will be tricky
 
Well for some reason.. this isn't working like I'd expect.

return (Object.assign(
this.write.bind(this),
this
));
 
12:53 AM
hmm...
is that in a constructor?
 
return (Object.assign(
    this.write.bind(this),
    this.constructor.prototype
));
and it may need to be fancier if you have longer prototype chains..
object.assign only looks at "own" properties.
 
Hmm... I took that code directly into mine and it still doesn't work. I'm a bit off now haha.
 
it was a virus. now you're pwned. :)
 
have mercy
 
1:01 AM
So. Even if this works, I think it's a bad idea.
It just feels like it's something you'll regret. Completely valid, but just odd enough to trip over.
 
Wow yeah there's some black magic going on here.
writer -> func
writer.constructor -> obj{ write: func, seal:func }
writer.constructor.write() --> is not a function error
 
I finally managed to open up an external url using the InAppBrowser plugin on Cordova
0
A: cordova inappbrowser cannot open an external url on iOS

RiccardoAfter very long time spent in googling the web I made InAppBrowser open an external url. this is the SO answer who solved my bug and this is the code of the answer in the link document.addEventListener('deviceready', onDeviceReady, false); function onDeviceReady() { // Mock device...

I shared my answer to help as many people as possible to fix this very unfriendly issue
 
1:18 AM
What's the difference with these IIFEs: (function() { ... }()) and (function() { ... })()?
 
@AndrewL. The position of one of the parentheses
that's about it
 
Oh, ok
Thanks!
 
@BenFortune spend all night soldering in the 12 4pin leds with a burn tip on my soldering iron only to power it all on. one led doesn't light up, one is slightly off colour (so shorting somewhere) and all of them are wired backwards (rgb is bgr)
fml
gotta rip it all out
 
1:58 AM
@rlemon o/
 
user6820627
2:10 AM
so sad. no one answer this.
 
user6820627
0
Q: How can I listen to onclick event SpotLight Helper and attach the TransformControls to the light?

Learn How To Be TransparentThe problem: When I click on the cube, TransformControls is attached on the cube. But when I click on the light helper, nothing happen. I want the TransformControls to be attached on the light when I click the light helper. Can you help me with this? This is the most minimal example. http://co...

 
user6820627
i will raise an issue on three.js
 
2:31 AM
Hola!
@LearnHowToBeTransparent commenter happy?
 
user6820627
now get 2 downvotes. so strange.
 
Yeah confused :/
 
user6820627
do you know why?!
 
Why what?
 
user6820627
2 downvotes on How can I listen to onclick event SpotLight Helper and attach the TransformControls to the light?
 
2:46 AM
@littlepootis probanly can answer your question
 
user6820627
did you downvote that?
 
No
 
user6820627
sometimes i get strange downvotes w/o comment.
 
@Dsafds I most impressive thing I've done with THREE.js is make a pyramid.
 
user6820627
i did that already.
 
2:52 AM
@littlepootis is a magician
 
3:04 AM
@GNi33 I think Eva or Octavian made this. I just have a fork of it - never updated anything
 
@Zirak That was awesome!
 
3:40 AM
@LearnHowToBeTransparent If you think your question has merit, then the problem is perhaps in its presentation. The way I see it is if I must read 40 to 50 lines of spaghetti code to try to understand what you are really asking, I won't border. (For the record I haven't downvoted it, but was tempted yesterday with the indent mess.)
 
user6820627
3:57 AM
If:

iamcrazy = 10, 192, 0
notabmal = 0, 171, 160
adventure = 173, 224, 0
So, `chucknorris = ?`

This is a HTML Color Code problem.
 
"sheepy" is a maching shade of fresh pasture, for your info ;)
 
4:58 AM
I just used the word "impliciticity" in a code review... is that even english?
Wanted to say that implicit things are bad but not sure how
 
@ivarni If you are talking to a programmer, (s)he should recognise it as an -ility member. :)
But for your question, I'm pretty sure that's not an English word.
 
Can we make it an English word? I feel it needs to be a word :)
I'll ask Merriam Webster on twitter, maybe they can suggest an alternative or just put it in their little book
 
Hmm. I will try to describe it with more common word like subtlety, fragility, infirmity, or contrivance - depending on what point I wish to stress.
 
I'm not sure those mean the same thing
though fragility can be a direct result of impliciticty
Maybe we should just call it "ruby on rails"
 
They don't, which is part of the problem, because given the word impliciticity I'm not sure which quality of implicit code you are discussing... :(
Ruby on Rails is sharp and clear XD
 
5:11 AM
well the context was that error codes were prefixed with what system caused them, except for internal errors which had no prefix
 
@SiddheshKulkarni Welcome to the JavaScript chat! Please review the room 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 have no question :p
 
Anyway. I think a programmer worth his or her weight should get the idea regardless of whether it is a proper world. Few dictionaries would have "deployability", which is just barely present in the biggest English corpus :p
 
 
2 hours later…
7:14 AM
 
7:40 AM
lol
 
Mroning
got this little snippet: http://pastebin.com/1fVXgq5V
I need to filter my Json (http://pastebin.com/CCx7YbgW) to the equType.

Therefor i want to use the filter function to filter all results the got equType == appliances. Can u help me ?
 
8:14 AM
@AwalGarg a centipede!!
 
 
2 hours later…
10:36 AM
Hi, can anyone help me on this jqGrid question?
http://stackoverflow.com/q/39789344/5019802
 
11:22 AM
Does EmberJS transpile all the ES6 on ember build?
At which point does it do that?
 
11:33 AM
hi, is there a way to implement sth as below;
 
Hello folks, quick Angular question. Say we have a root module named app. angular.module('app', ['app.auth']).
We also have module app.auth. In app auth, we have reference to some templates. When using .run on 'app' module to do $templateCache.put , templates requests end up being not found, but when doing that same .run on 'app.auth', they work fine. Shouldn't running $templateCache.put on main module make templates available for dependent modules as well?
 
@JezdimirLončar Welcome to the JavaScript chat! Please review the room 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.
 
var theScriptForWholeWebApp = {

    Toolbar:{

        xfunction: function(){},

        yfunction: function(){},
    },

    Footer:{

        // include from another physcial js file, e.g Scripts/footer.js

    },

}
 
11:51 AM
In angular2 do you think it's best practice to give a component the object it will be displaying or to give the component a service it can use obtain the object it will display?
 
@bassxzero Welcome to the JavaScript chat! Please review the room 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.
 
12:04 PM
I've just started using jspm and installed it with all the defaults. In the configuration prompts, I chose I wanted to use babel as transpiler. When I load up something containing a class, the class is not transpiled at all. What do I need to do to make this work?
 
 
@RoelvanUden a .babelrc file to configure the transforms you desire
Es6 to es5 is a common transform, but not the only option
 
This is jspm and it's using babel5 out of the box, I thought it should transform
a babelrc isn't even touched
 
Ohh, maybe
That was a generic babel 6 answer
 
Thought so.
 
12:22 PM
@KendallFrey how bad is it that even when spelled correctly I see Viola reddit.com/r/videos/comments/555kvu/…
 
omg
a twitter account that retweets people who say "viola"
this should be a thing
 
@BadgerCat time to bring back your twitter bot
 
@rlemon Holy shit.
 
but this time Viola
 
Visited the office of my GSIC Family and viola! They got me a cake for another advance birthday… https://www.instagram.com/p/BK-edM3BA-F/
#HowTwitterHasChangedMyLife I no longer watch the news I just check Twitter and viola every news story is there...magic
Nice thing about #bisquick is that you can make biscuits really quick. Throw some shredded cheddar and garlic powder in and viola! Tasty!
etc.
 
12:30 PM
write it
 
Be careful not to match the name, though
 
a human can do better
it's tricky
 
Or the instrument
 
I'm currently searching "and viola" -denzel -davis
fuck viola davis
 
12:31 PM
"and viola!" is likely to produce less false positives
 
crowd source it
 
But of course limit the results overall
 
make a heroku app that displays them and lets people vote if it is the correct usage of Viola
 
@Zirak if only twitter had a sane search algorithm...
 
You can also Mechanical Turk it
@KendallFrey Of fuck they're the worst
 
12:32 PM
If someone wants to write a bot go right ahead
I'm not gonna
 
They Britta'd their search APIs (and all of their APIs in general)
 
doing it manually wouldn't be hard
 
@Zirak you mean "[to] make a small mistake"?
@FlorianMargaine @Loktar praise they holiest of rebeccas
 
@RoelvanUden show me your config.js
 
@rlemon Twitter killed it
They have no sense of humor
 
12:39 PM
stick it to the man
Twitter doesn't even follow its own rules.
porn everywhere
 
@BadgerCat what did it do?
 
@bear_with_bear, The forest
I correct your tweets, bear with me. Made with love by @eeveeta
43.2k tweets, 437 followers, following 6 users
 
@BadgerCat That's awesome
 
Yeah, but it's long gone
 
What did Twitter tell you, with Stealth Mountain being the king for a while?
 
12:54 PM
That they reported me for spam, and they froze my developer keys.
Lots of people were mad, it was hilarious
 
@BadgerCat LOL
 

« first day (2176 days earlier)      last day (2777 days later) »