« first day (763 days earlier)      last day (4410 days later) » 

13:00
Hahahaha
13 year old bears are scary
@Potatoswatter There are no such thing as classical classes in js
There are objects who try to mimic their behaviour
@Zirak That's actually a reason why what I'm asking for is more reasonable.
The whole difficulty revolves around a distinction which is basically meaningless.
13:02
Also, .prototype talks about the children, not themselves - if you set something.prototype, all its children spawned with new will inherit it. It doesn't change its own prototype.
@Zirak Did I imply anything else?
Now, if you want to return a function from new, that's possible
@Zirak Okay, do tell.
What you return from new can be anything, as long as it's not a primitive value.
You don't "return" anything from new. You modify the this object which new gives you. (I"m still waiting for this tinkerbin.com site to load.)
13:05
Sure you return something from a constructor
Can you paste somewhere else? It's not loading.
var foo = function () {
  return function () { console.log("bar"); }
};

new foo()(); //logs bar
@Zirak Doing so is completely pointless.
By default you return the newly created object
But you can return any object
Oooh, I thought the return was ignored.
13:06
But it won't be of the same Class as new ... would?
!!/spec new operator
@phenomnomnominal 'course not
Which I think he wants?
Why does it matter?
!!/spec [[Construct]]
Well, it would be nice, but indeed, the difference is essentially meaningless.
I don't know! A function with properties and functions is simple
9. If Type(result) is Object then return result.
10. Return obj.
But it would seem that having it be an instanceof something else as well, isn't
Hmm, so then no prototype.
13:09
Just the protoype of Function
Yeah. I'm not changing Function.prototype.
I wouldn't recommend it
btw, tinkerbin.com never loaded any content.
If you try to do something like foo.prototype = function () { ... }, then the function returned from new foo won't be that function, but it's __proto__ will be
This kind of classical modeling is shite. I recommend to not use new unless you absolutely must.
@Zirak I'm trying to roughly color within the lines. I want to make a multidimensional array/matrix class which should play very well with the interpreter.
13:12
How multi?
var multi = [[]] //?
just 2D?
or like 6D
I can see 4-5 dimensions being useful, but the matrix would be a 2D subclass.
@AmaanCheval but it's not. in fact the code is completely different. One does all GIFs on a page only, the other does any image tag you select.
Don't model with the classes, then. Use pure objects.
13:13
Well, for a pretty solid 2D Matrix implementation see: sylvester.jcoglan.com
@rlemon Ah. I thought one was jQuery, and the other was shitty
4
Q: Killit - Bookmarklet to replace single images from the page

rlemon About Bookmarklet that replaces any selected image on the page with: How to use. You first need to "install" the bookmarklet by visiting the project homepage and dragging the button to your bookmarks bar. After the button is there, simply press it, then select an image on the page. Click...

5
Q: GIF Killer! Stop animated gifs in the Chat

rlemon About Bookmarklet that stops GIFs in their tracks! until you refresh.. GIFs are replaced with the following image: How to use. Depending on your browser you create a new bookmark, copy and paste the code below in the Location field, then name it something cool like GIF KILLER!. Voila! Th...

Should I post the bot on stackapps?
@Potatoswatter, for what it's worth, a lot of this stuff ends up being pretty gnarly in JS. No operator overloading makes it a bit shit.
why not
13:15
@phenomnomnominal Hmm, looks like it's based on native JS arrays. Typed arrays would be better. For now I just want my class to map several indices onto a preexisting flat array object.
@Zirak What is the chat bot licensed as?
WTFPL
The repo only contains a license for the license, but not for the code
huh?
 Everyone is permitted to copy and distribute verbatim or modified
 copies of this license document, and changing it is allowed as long
 as the name is changed.
13:16
~_~ fuck
I hate this licensing thing. What does it need to be?
@phenomnomnominal Yeah, I should give up. matrix.at( row, col ) isn't really that ugly, I'm just spoiled.
@Potatoswatter I wrote a ray-tracer... stuff like Vector.Add(Vector1.multiply(vector2), vector3) is just yuck
...how about just slicing everything from the beginning of the copyright to the start of all-caps?
            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
                    Version 2, December 2004

            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  0. You just DO WHAT THE FUCK YOU WANT TO.
<3
13:18
@phenomnomnominal Did you see the raytracer demo from the LLVM JS backend?
My "math program" is in C++ and now I'm just writing an SVG frontend.
@Zirak I don't exactly know. That's why I usually stick to the normal licenses, i.e. MIT or BSD
But of course things are better, the more I can move to the client side.
But I don't want MIT or BSD. I want people to just do whatever the fuck they want to.
If they want to sue me for omitting a semi-colon and screwing their nuclear missile launcher, sure, let 'em have it
@Zirak Totally
13:21
> You may not sue the author of the software or source code for any reason, with the exception of reported cruelty to unicorns by said author.
@Potatoswatter Very cool
@Zirak HAH!
@Potatoswatter I did (and am still working on) a JS + Node port of PBRT for distributed ray tracing on mobile devices
13:24
just s/license document/source code/
bam
OK, well, back to work… no way I'm making this deadline…
the author said... "do what the fuck you want with it"
I'll just upload what I posted above
Though if you change it, then you have to change the name of the license too :D
Or you can just do what the fuck you want to
13:26
@NikiC he was ambiguous he said "name" i took that to mean his (you know, the obvious course of thought)
@rlemon Could be, yes
I thought it meant the project name or something
:D
posting an app is just posting a question...right?
Is it bad that I add a section titled "why you shouldn't use it"?
Bought
Thank you low US$
@Zirak Why you adding that section?
As a warning.
Because he is self-deprecating
13:44
Na, that's not bad
deprecating*
Thats what I wrote :P
> It's unstable (I'm a bad maintainer). It forgets stuff (like learned commands or nudges) on refresh. It won't work if someone isn't actively acting as its bitch. It makes you its bitch and will probably activate the message-throttler, making you unable to talk, if people are actively using it. oh, it's also buggy.
@Zirak It isn't all that unstable
Why won't you add the learned commands to localStorage?
@phenomnomnominal Hahahaha
@AmaanCheval -> localStorage is a good idea
13:47
@AmaanCheval Stringifying the commands and un-stringifying them is tricky
Plus, it's a special-case for /forget
Since it'll also need to remove them from local storage
Do you use the localStorage at all?
Removing would be simple enough
For the todo and all?
Yeah, for the todo list and I think other stuff
Maybe I'll give it a shot and send you a pull request if I manage to get it to work
(Later. Maybe tomorrow. Busy today)
@rlemon Wow
13:53
nice eh
Took quite a while to load :p
But wow
0
Q: Making an interactive 2D map

ChadSo recently I have been working on a Legend of Zelda: A Link to the Past clone, and I am wondering how I could handle certain map interactions (like cutting grass, lifting rocks, etc). The way I am currently doing the tilemap is with 2 PNGs. The first is the "tilemap" where each pixel represents...

Are you looking into WebGL now?
s/into/at/ ;)
14:12
0
Q: Javascript SDK on Faceook

Eamonn FoxI am trying to use the Javascript SDK for Facebook but I keep getting the message : Given URL is not permitted by the application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of ...

14:30
@AmaanCheval @rlemon How's this? pastebin.com/UBggv0YX
It's good
Does !!/listcommands list everything there is?
Also, when is !!this used instead of !!/this?
!!what is rule 23
@AmaanCheval Could not find definition for rule 23. Trying Urban Dictionary
@AmaanCheval Could not find definition for rule 23. Trying Urban Dictionary
Stopped mine
!!tell me rule 23
@AmaanCheval 23. Cock goes in here.
I have to stop typing 23 every time I want a random number
!!tell me rule 92
14:35
@AmaanCheval 92. Disregard Bigmike, he sucks cocks.
!!tell me rule 69
@rlemon 69. LOL SIXTY NINE AMIRITE?
Hahahaha
!!/tell Zirak !!tell me rule 43
@AmaanCheval Command tell cannot be used in /tell.
@AmaanCheval Command !!tell does not exist. Did you mean: tell
!!tell me rule 95
@rlemon 95. Combo breakers are inevitable. If the combo is completed successfully, it is gay.
Just watched some demos on just cause 2
now I want that game
@AmaanCheval It lists all commands
@AmaanCheval The / says "the following is a command"
If there is no /, then the bot tries matching listeners
For instance:
!!give Amaan a lick
Isn't a command, but there is a listener for it.
14:40
So learned commands are what?
@Zirak Mmmm! Amaan tastes just like raisin
They're listeners, right?
Learned commands are commands
14:41
No, I meant by semantics
I should read the wiki first
> Listeners are regular-expressions trying to match the user's input. For instance, to give the horse a lick:
See this for resolving and this for listeners
Isn't that how learned commands work? With RegExps?
Commands have a name
Yeah, yeah, got that
Listeners are anonymous. The fact that learned commands use regexps is irrelephant
14:43
Hmm
0
Q: ChatBot, a bot. For the chat

Zirak About Lurks in the shadows of the chat. It executes commands at the request of the user, sending messages as the user who runs it. How to use (bot runner) Run bookmarklet.js in a chat window. Bam. It's alive! It's using your name! Run, run before it's too late! The <center> cannot hold...

!!give raisins a lick
@rlemon Mmmm! raisins tastes just like raisin
@Zirak Maybe add that it's generally running here?
Good point
> The bot is generally running in the JavaScript room on StackOverflow if someone wants to try.
Typed it out for you :p
Or it might create spam in here
@rlemon should join the Sandbox and let people try it there
14:48
I doubt it'll create too much traction
Edited
I'll work on the /learn stringifying
You know, I'm free most of the time these days. What is the bare minimum you need to make this work on a server?
OpenID login?
yep
What do you know won't work?
Do that and I'll make you a small shrine
Mainly DOM operations.
(Assuming you've tried before)
14:54
Well, all DOM operations. The adapter will need to be re-written as well
And the build-script will be redundant
Oh, almost a complete rewrite
oh, related to the login? Try everything. I probably screwed it up.
Well, let's see if we can get it to login at least
nah, I worked so the adapter will be separate from the bot
And it's not that radically different, since the adapters use IO.xhr for http requests anyway, so you change that and you change everything
Oh yes, and IO.jsonp will be redundant
Did you make the bot an account or just tried logging into your own account?
14:58
Tried logging into my own
I seriously need to find it a name
Horse Lime maybe
:D
Grr, now I'm torn between wanting to learn WebGL and trying to log in with Node
I don't even know how I'd try to
Actually, maybe
2
Q: ChatBot, a bot. For the chat

Zirak About Lurks in the shadows of the chat. It executes commands at the request of the user, sending messages as the user who runs it. It is usually available in the StackOverflow javascript room if you want to play. Non-chat related preview is planned. How to use (bot runner) Run bookmarklet.j...

Well hello there handsome
See if we can take pointers off of that?
It probably uses XMPP
yep
15:04
It does
Seriously, I have no way on how to go about doing this
What have you thought of doing already?
Open the dev tools, logout of SO, login, try seeing what it does
Done that
Once you think you get how the passing works, see what it does with OpenID
Or whatever provider you choose
This way seems insane, but it's the only one I can think of right now. Use a DOM parser
I know you can do that. You can also use regular-expressions ;)
15:15
anyone able to take a go at fixing my javascript jsfiddle? my second google map won't plot correctly when searching jsfiddle.net/JJKx5/3
Think we should use that?
Your show, use whatever you want
Mmm, I needed to implement testing
15:28
hah, nice
We need a new tutorials site.
The current state of tutorials on the web is horrendous.
Go be that man
That's what they made WebPlatform.org for
@Zirak Using zombie.js seems like the way to go
You won't have to change much of the IO code either
@AmaanCheval Won't happen, not enough community support
@Zirak I'd love to, but I've already got the search engine project
noob question here, solving a online puzzle, do I take in inputs from cin (c++) raw_input (python) etc...or do I read off a file cause I can't seem to find a input file anywhere
15:37
either?
no im not asking about the c++ or python part, i just dont have any input file name
You answered your own question
If you don't have a file to read from, you read from stdin
Bonus: Once you have a file, redirect it to stdin
yeah i know
thanks :)
I've failed to understand the difficulty here, but np
hence the noob
15:43
It's not really a noobie question. If you can't decide between going to the florist or to the butchery, and the butchery is closed, you have only one option left
16:17
Is there a functional difference between (function($) { do stuff })(jquery) and (function($) { do stuff}(jquery))? Note the different placement of the closing parens
cool, thanks.
woot got that 50 bounty
now Im like 170-ish away from 10k rep
Awesome!
16:41
@Zirak SO really is something. But I think I might get this working
17:05
so apparently my css drop down menu is a little buggy in webkit browsers
[templeisrael] (http://benlevywebdesign.com/templeisrael)
is this true?
Works for me. Chrome 23, Ubuntu 12.10.
is it at all buggy?
like on the ones with drop downs
Hell. Is there a Matlab discussion room?
Oops, sorry! I meant hello!
17:23
Okay, what the fuck is this? Zombie.js won't return the HTML of StackOverflow.
Wasted so much time trying to debug when the data returned wasn't correct to begin with
welp, avg team lv: 44.333...
Elite 4 teams are ~52ish. Should be fine...just 8 levels difference.
@Gigili MATLAB makes Java look good
does anyone know if there's a way/workaround to support cross domain messaging using postMessage and make it work on older browsers like IE7 or before
using shims or plugins etc
maybe
First question: Why would you need to support IE7-?
because of the customer base
our app is still being used by customers with old browsers
@AmaanCheval well i have just been working
That's cool
I've been pulling my hair wondering what's going wrong
Do you have node installed on whatever you're using?
@AmaanCheval I flagged that as offensive
ofc. i have node installed
18:03
Can you npm install zombie and try something for me?
nmp ?
okay
When you're done, run this with node pastebin.com/x3CvNwKK
It should open a new tab in your default browser. Tell me what you see
In the meanwhile, I'm just going to try acting like the request is coming from a mobile browser to see if it works
18:08
Do you see anything on the tab, though?
The tab is completely blank for me
same
Hmm. What was the HTML outputted in the console?
a bunch of scripts
probably the same as urs
Yeah, empty body, right?
18:14
omg , i managed to find the internet
Where are you?
@tereško It was in your heart the whole time!
@SomeKittens never thought of the internet as form of arrhythmia
It can lead to cardiac arrest
@Zirak I give up. Maybe another day when I'm feeling suicidal
(Or tomorrow if I'm not so infuriated by a few lines of code)
18:20
using chrome developer tools, is there a way to make changes to javascript code persist on page refresh?
...cache?
Is your JS in a separate file? (it should be)
yeah
what do you mean by "cache"?
he's obviously talking about hidden treasure
does sessionStorage get destroyed on refresh?
@Vivix Hint: lasts an entire session
How would it be any different from a variable if it was lost on refresh?
18:22
but I suck, so I don't know how long that is
true-
Once you close the browser, the session ends
because then you could use that to keep changes persistent on refresh
ah, okay good
In case you want to take over
so what i'm doing is 1. loading the page, 2. modifying a javascript function, 3. saving the modification (ctrl+s), and 4. reloading the page
the modification disappears
Where are you saving the modification from?
18:27
chrome developer tools
Uh, yeah. You'll need to actually modify the js file
@canisrufus That usually doesn't work
okay, cool
not my application, not my server
no dice on modifying the file
then you can't modify it, basically
Just save it all
Then modify it
18:29
gotcha
ty
Wow. That's the worst blog entry I've written yet.
"In which I talk about features implemented years ago as if they were actually new"
18:47
SO is going to hit the 4 million question mark today
pretty crazy
Didn't it hit it already?
nope, 3.9 mil currently
like 400 more questions to go
Congratulations on asking question #4,000,000 — dasblinkenlight 20 hours ago
wtf?
3,999,641
questions
^ is what SO says on the top right
Guess some got deleted
18:52
posted on November 17, 2012 by RKoutnik

Sadly, most of the code I've written this week has been boring code for a very unboring project.  So instead of going on and on about .getElementById and textContent, I decided to devote the non-Sherlock-watching time of my Friday night understanding whatever HTML5 is. Honestly, I haven't paid much attention to the various *tmls.  XHTML, HTML[num], etc, didn't matter to me.  I h

@Abhishek , care to comment : bbc.co.uk/news/world-asia-india-20354669
i would love to hear your perspective
Idiots.

« first day (763 days earlier)      last day (4410 days later) »