« first day (843 days earlier)      last day (4120 days later) » 

10:00 PM
@BenjaminGruenbaum this is a chrome specific app. would there be a problem in chrome?
 
what data are you storing?
 
@BenjaminGruenbaum Where this is a tree.
So essentially if I get Node zero I can get down to all nodes on the page by going to their children array
and down
 
like a dom tree, cool, I'm guessing any element can have multiple children etc, right?
If I may ask, what data are you storing in the tree, and how often do you intend to delete/add/remove stuff from it?
 
@BenjaminGruenbaum Well it is a task tree. Each object has a Dom object that it keeps in cache so I do not have to select from the DOM all of the time
And tasks move around when people decide to move them
 
Does each object have just a dom object or more logic involved in it?
 
10:08 PM
I'm so going to dump Windows 8 now.
 
Are these understandable?
 
@Neal Anyway I got to go, good night :) Optimize only when you need to .
@Zirak yes, yes they are
 
I couldn't add a label to the diagrams, so from top to bottom, those are: An atom, a dictionary, a list, a value, a value-list
 
Make an interactive SVG inside of a canvas and add a fallback image of it for shitty browsers.
 
@BenjaminGruenbaum gn gn
Hey neal, how are you doing, what's up! :) I'm turning 13 in about 3 months, just wanted to let you know. :D Please don't ban me once I'm 13, serial banning's not fun for the victims. :P (Even though it's probably your favorite game) — Dumb Search 1 min ago
MORON ^
 
10:24 PM
@Neal Does he really not understand that it wasn't you who banned him? :D
 
@OctavianDamiean I really do not get it.... :-\
 
9
A: Why does HTML think “chucknorris” is a color?

Yuhong BaoThe WHATWG HTML spec has the exact algorithm for parsing a legacy color value: http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#rules-for-parsing-a-legacy-color-value The code Netscape Classic used for parsing color strings is open source: http://mxr.mozilla....

 
@JeremyBanks I'm not interested in hacking or causing destruction, thank you, but your probably right, Jeremy. I'll just let go, and stop being like a kid, and just wait a couple months instead of blaming Neal. I'm very sorry, I'll try to stop being childish. Feel free to ban my account in the meanwhile, I'm sorry I appeared as a troll as caused you guys trouble. Please accept my apology. — Dumb Search 1 min ago
 
People can get banned for being too young? O.o
 
if they are underage
stupid US law - the alternative would be the parents sending written consent to SE. which they (SE) obviously don't want
 
10:27 PM
@AmaanCheval You're alright, don't worry.
 
So what is that? 13?
haha, yeah, I know
 
Been here 2 years, though. So started when I was 14
Still all good
 
Been here 2 years. started when i was 22. so I am good :-)
 
^ same story.
 
10:28 PM
woah, emmet is amazing
 
I had to put in a fake age on my Kongregate account
What's Emmet?
 
@AmaanCheval docs.emmet.io
 
emmet is Zen Coding on steroids
 
the css - shortcuts are just crazy
haha, i'm excited now :D
 
Aaaah, right, yeah
 
10:31 PM
i especially like ! + tab
 
What does it do?
 
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>

</body>
</html>
 
No shit?
 
no shit
 
10:33 PM
how do I refer to a object inside an anonymous function, from outside that function? I'm trying window.objectName but that isn't working.
 
You can't.
 
you can't and you shouldn't. you made that object private/local for a reason, didn't you?
 
gotta get used to it, but i already love it. i think this will really speed up things when you've been using for a couple of weeks
 
@ThiefMaster Ha! Ninja'd you like a fucking bauce!
 
!!s/Ninja/FGITW/
 
10:34 PM
@ThiefMaster @ThiefMaster Ha! FGITW'd you like a fucking bauce! (source)
 
@GNi33 Thanks for the link, thats really useful!
 
!!/urban FGITW
 
@OctavianDamiean Y U NO MAEK SENSE!!!???!!?11 No results for FGITW
 
fastest gun in the west
 
oh yea, right
A SO/MSO specific expression. :)
 
10:39 PM
@OctavianDamiean @ThiefMaster Could either of you pro's please help me. How do I access something inside an anonymous function (variable, function etc) located in one JS script, from a completely separate JS script? I tried using window. but this hasn't worked.
 
Return what you want from a function.
That's the only sane way to access a private member from a public context.
 
@James, Google the module pattern
 
@octavian Thanks, but I realised in your answer that maybe I made something a bit misleading. My anonymous function has an object with several methods, I want to call one of these methods from outside that anonymous function, not return a value generated by the methods.
 
@James, you need to return the FUNCTION
eg:
 
@phenomnomnominal Thanks, I think you recommended that previously when I asked a similar question (I didn't ignore you, I haven't worked on my app for a couple of weeks!)
 
10:44 PM
then return the function or even the whole object
 
@GNi33 Returning the whole object will make it available globally?
 
var myModule = (function () {
    var func1 = function () {}
    var func2 = function () {}
    var prop1 = "NAHAHAH!";

    return {
        func1: func1,
        func2: func2,
        prop1: prop1
    }
})()

window.myModule = myModule;
Assuming you are in a browser
 
well, if the variable it gets stored in is in the global scope, yes. and returning it without assigning it to a var will probably send it to the window - object, yeah
 
If not, you need to change window to whatever the global object is
 
@phenomnomnominal Thanks, reading that now, although I think I remember the issue when you recommended it before, now that you mention it, is because it was inside a Win 8 App. I'll still see if it applies.
@phenomnomnominal You're follow up comment might have even answered it haha.
 
10:47 PM
If it's a window 8 app, you probably dont have a window
 
@phenomnomnominal can you explain me the need of that?
 
!!> 72 / 80.8
 
@Zirak 0.8910891089108911
 
poof
 
Guys, do you think adobe edge is going to completely replace Flash?
 
10:47 PM
@TemporaryNickName no
 
@TemporaryNickName, no
 
@dievardump what?
 
@TemporaryNickName flash doesn't need to be replaced, it needs to die.
 
10:49 PM
why should edge replace it? it's horrible itself
 
yeah I know
 
@phenomnomnominal That make sense to me. Trying to implement that now, also made a note to catch up on module pattern!
 
@James, you need to find out what the global object is in Windows 8 JS apps and assign to that
 
that.... is the module pattern
 
The one you just show. There is absolutely no need of creating a self-executing function
 
10:50 PM
not in that case, but you can access "private" variables and functions in the returned ones though
 
@dievardump, he already has an anonymous function
 
(well in that case)
 
a self-executing asshole, thats what the world really needs
all the sudden, we would have no assholes anymore
 
@jAndy that's me, no?
 
no way, I'm just angry about some fool which shouldn't be allowed to even touch a car O.o
 
10:52 PM
huh?
 
@jAndy it's called "pulling a darwin", though it's not that effective
 
Just because I don't like your beer?
 
@OctavianDamiean: did you just drive on the A45 autobahn direction Frankfurt? :p
then probably!
 
Possibly.
Won't tell you when you're angry. :D
 
/o/
\o\
 
10:54 PM
Did the driver drink an Austrian beer while overtaking you?
 
why is it that hard for some ppl to signal/blink ? especially when you drive about 200 km/h and this )(%Z")(/%"()effin ass just rides over to the left line, like 50 meters infront of me with like 100 km/h
yea...he throw something out of the window.. which might has been an austrian beer can
 
road rage, love it
 
I'm a specialist on that
but for a reason !
NOBODY CAN DRIVE - EXCEPT ME!
 
0
Q: Can't insert files in other inputs

user1086337I'm trying to allow multiple images to be uploaded to the media library where I can then take the URL of the image and insert it into a custom page on the website but for some reason, when I click on the other input buttons, it doesn't work and doesn't display the media library upload dropdown an...

 
witnessed an old couple on the highway some time ago. They stopped at the end of the acceleration lane to wait to get out on the street, at least they had their signal on.
 
10:57 PM
@jAndy Funny, that's what I think as well.
'cept I know I'm right about it.
 
thats the problem.. everybody thinks this way
paradox isn't it
 
yeah, shit is about to get real on tv
 
Independence Day
 
10:58 PM
Aliens are about to nuke the crap out of the Empire State Building :D
there you go. gone!
 
@GNi33: what do you expect of a german director ?
 
or was it the Empire State Building? well, can't tell anymore
 
except massdestruction, war and desperation
 
hehe
i still like this movie, though i can't tell why
 
I love when physicists destroy the movie with logic an reason :p
 
11:01 PM
I love that movie.
 
for instance.. someone did the math what would happen, if a ship the size of those ships would go down such deep as they do... the pressure would literaly crush-crunch any microbe underneath
 
as a new kick in Ontario at least they are packaging tall boy cans in shrink wrap for certain brands.
like this..
I couldn't find scissors and so grabbed a utility knife - just barley touched a can - punched a hole in it. :(
Alcohol Abuse.
 
or.. another great thing is.. that an alien species.. which must own an INCREDIBLE technology to build those ships and to fly billions of miles and lightyears.. so UBER
got just hacked
by an apple laptop
LOL
I knew steve jobs was an alien
 
ok, I may be going insane, so does anyone have any nginx experience?
 
There's your answer.
 
11:04 PM
@Zirak: @Darkyen (?) has
what was his new nick
@Abhishek
@Darkyen
no clue
 
@IndianGuy#1
Sorry @AmaanCheval met him first.
 
heh
 
#added to the nginx.conf
        location /game {
            root /home/zirak/Downloads/game;
        }
 
@OctavianDamiean weeeeeeeeee
 
@Zirak: nice one.. you're a good player.. slowly but steady
 
11:05 PM
Now, obviously, all the proper permissions are available, I can r/w to the directory.
 
So is anyone else using my uber Moustache.user.js script?
 
really, i need to grow up
 
i lost the game
 
@OctavianDamiean / @jAndy I think you'll like it.
 
nginx throws 403
@OctavianDamiean Explain
 
11:06 PM
403, that's interesting.
Lemme check something.
@Zirak Try to add this:
autoindex on;
 
Inside the location { ... } thingy, I assume? If so, the nope
 
#inside /var/log/nginx/error.log
[error] 4837#0: *5 "/home/zirak/Downloads/game/game/index.html" is forbidden (13: Permission denied), client: 127.0.0.1, server: localhost, request: "GET /game/ HTTP/1.1", host: "localhost"
...how about...
 
It's about a thousand files
 
11:11 PM
ls -l index.html
 
Non-existent; but accessing any other thing inside the directory also doesn't work
But hang on, I see something weird
nah, wasn't it
 
> "/home/zirak/Downloads/ game/game /index.html"
Is that right?
 
...wat
...how did that
 
0
Q: prettyPhoto media loading very slowly in Chrome

CalebI'm having a problem with prettyPhoto media WordPress plugin (lightbox type) script in Chrome. It works beautifully in other browsers, but it takes forever to load in Chrome. When using this script it is supposed to show the thumbs on the bottom of the lightbox effect, but it only works if I sel...

 
I accidentally made a soft-link to itself. Whoops.
 
11:15 PM
:)
 
But, that doesn't explain why it even goes there, nor why it throws a 403 now
 
about right?
 
what if I remove the game part from root /home/zirak/Downloads/game;
 
It would probably try to look up index.html inside of Downloads then.
 
11:17 PM
location /game {
    root /home/zirak/Downloads;
}
# wouldn't I lookup index.html from within /game from the root /home/zirak/Downloads ??
 
[error] 4837#0: *9 "/home/zirak/Downloads/game/game/index.html" is forbidden (13: Permission denied), client: 127.0.0.1, server: localhost, request: "GET /game/ HTTP/1.1", host: "localhost"
Why must you do this!?
        location /game {
            root /home/zirak/Downloads/;
            autoindex on;
        }
aha!
Because I'm a retard!
 
trailing /??
didn't restart server?
 
...restarted, still doesn't work :D
 
remove the trailing / maybe?
 
[error] 6235#0: *1 "/home/zirak/Downloads/game/index.html" is forbidden (13: Permission denied), client: 127.0.0.1, server: localhost, request: "GET /game/ HTTP/1.1", host: "localhost"
 
11:19 PM
ohh
nvm
 
bloody cold... my nose is killing me -.-
 
but look fantastic!
 
gist.github.com/rlemon/4676005 be fantastic all the time.
 
@Zirak Is there an index.html?
 
11:21 PM
secretly I push you all to use my software / scripts / plugins because I want to feel useful. Also it would be like a waste of time if no one used them.
 
A little off topic math question: I know what stuff like 4/0 isn't defined in math. But what about 0/0? Is that operation defined?
 
Nope
 
% cat /home/zirak/Downloads/game/index.html
test
% ^cat^ls -l
ls -l /home/zirak/Downloads/game/index.html
-rw-r--r-- 1 zirak users 5 Feb  0 00:00 /home/zirak/Downloads/game/index.html
 
0/0 == 1 ;)
 
@ŠimeVidas Even worse, it doesn't even have a limit
 
11:23 PM
@Zirak What's the nginx user?
 
Not a clue
 
I mean are you sure the nginx user is either zirak or in the users group?
Mhmm.
Alright.
 
ps axu|grep nginx
 
@copy But 0*x = 0 ==> x = 0/0. The equation is indeterminate.
 
Runs under root, apparently
No, my bad.
 
11:25 PM
@rlemon In what language is that? I checked JS, 0/0 is NaN
 
I was about to say, that'd be funny.
 
@ŠimeVidas Right
 
@rlemon That'd be called genesis. :D
 
You can't divide by zero, so the conclusion is wrong
 
@copy Indeterminate is not the same as (or a sub-class) of "not defined". That's what I'm thinking...
 
11:26 PM
in one of the few comp sci classes I had I vaguely something about Pascals Triangle and calculating it you have to force 0/0=1 or some shit.
 
# ps axu | grep nginx | grep -v grep
root      6325  0.0  0.0  36004  1060 ?        Ss   03:25   0:00 nginx: master process nginx
http      6326  0.0  0.0  36336  1748 ?        S    03:25   0:00 nginx: worker process
 
really it was a troll response. he further explained you were faking the math
 
Yea, I remember those
 
currently working on a small game (yes.. once again) some sort of minimal network thing (basically a graph, with some "routes" overlayed, where you can perform actions on the node, to change properties / take owner ship) might result in a hacking type of game.

But I'm writing the code so that I can run the server locally in the browser to share the single / multiplayer code base :)
 
Nice puzzles though
 
11:27 PM
...I really don't get it
 
@Zirak Switch to the http user and try to read the files
 
http, empty pass brings nothing, nor does my own pass.
 
su -c'su http'
Enter root password
 
fu copy
:D
 
11:30 PM
 
No I kid. µ<3u
 
:)
 
% su -c 'su http'
Password:
% whoami
zirak
Or I just didn't get your intention
 
su && rm -rf /
no, don't.
 
How about just chown -R http?
 
11:31 PM
If I wanted to add a property name to an object based off of an element's class how would I go about doing that?
e.g. tl = {}
tl.classname
 
@rlemon I don't think that's gonna work anyway.
 
var tl = {
  classname: 'foo'
};
 
@Zirak That's the easy and lame version.
 
also, @ZachShallbetter I don't understand the question
 
It doesn't work anyway >:D
 
11:32 PM
rather I want the actual .property to have the classname
tl.foo
 
GGGRRR
 
@Zirak Define doesn't work.
 
I'd have given up and used xampp by now, but the fucktard bitches about 64 bit
@OctavianDamiean Same 403 error
 
tl.foo = elm.classList.contains(key) ? 'bar' : 'baz'; // browser support issues
 
I would like to pull the class name or a datatype of an element and use the name for my object
 
11:33 PM
@Zirak So the owner of index.html is http now?
 
ohhh.
as the key to your objects value map?
 
correct
 
# ls -l game/index.html
-rw-r--r-- 1 http users 5 Feb  6 05:21 game/index.html
 
var obj = {};
// obtain key from className
obj[key] = value;
// lookup
obj[key]
 
That's odd.
 
11:35 PM
or if you know the key literal you can use dot notation
obj.someClassName
 
chowning to 777 gives same result
...am I insane?
 
chmodding
 
Yeah, that's what's funky. I need to define the key based on the element.
 
however I think object property names have limitations to the characters you can use (might be wrong) so I wouldn't try to use float-left as a key.
 
This doesn't make sense, right?
 
11:36 PM
Are all directories under games accessible to http ?
 
@ZachShallbetter you will have to be more specific.
 
Yeah, I did chown -R
 
based on part of the className, the entire thing? the element node type?
 
How about the read permissions for the owner?
 
@rlemon I think I'm over thinking this problem.
 
11:37 PM
You can see above, read flag turned on for all
 
I meant does it look the same for .
 
<div id="foo" class="foo bar key123"></div>

var obj = {};
var key = document.getElementById('foo').className.split(' ')[2]; // cheat because I know
obj[key] = "Hello World";
alert(obj.key123); // "Hello World"
 
@rlemon Ah I see what you're doing
 
It doesn't quite make sense though.
It is specifically looking for index.html for which it has read and write permissions.
 
@ZachShallbetter keep in mind there again are caveats to the values you can use for dot notation.
hyphens, leading numbers, etc are out
but if you always use bracket notation you'll be fine
obj.prop vs obj[prop] kinda thing
 
11:42 PM
I'm creating an animation timeline when you hover over each list element tl= new Timeline(). However each element uses that same object to store it's timeline data. So I figured I could just create properties for each based on their classname
 
wtf, nginx, stop trolling me
Made /usr/share/nginx/http/game, removed the mapping from config, restarted, navigated, 403
 
Wait ... you're not using Fedora, right ?
 
No, Arch
 
Arch is lovely.
 
And I'm 97% usage on / partition...lovely.
How the hell did that happen?
 
11:45 PM
namei -om /home/zirak/Downloads/game/index.html
 
Arch is Arsch me thinks.
 
Just to be entirely sure
 
I'm gonna give up on this way
Gonna try other stuff. nginx is not for me at this time of night.
 
Did you check permissions on the game dir?
 
Scroll up
 
11:46 PM
I did but got bored and stopped.
 
Quit being bored.
 
lighttpd is easy to set up if that helps :-)
 
Fuck it ... I'm going to download a daily build of Ubuntu now ... this Windows 8 crap is too much.
 
Still can't find where you check permissions on the dir ... nvm.
 

« first day (843 days earlier)      last day (4120 days later) »