« first day (964 days earlier)      last day (3987 days later) » 

5:00 PM
@Esailija Add a debugger; statement, in the dev console, this is what happens
with ((window && window.console && window.console._commandLineAPI) || {}) {
function varCanBeDeleted() {
    eval( "var x = 1" );
    debugger;
    delete x;
    return typeof x;
}
}
 
@Darkyen what does that code do?
> An error occured! [object NavigatorUserMediaError]
you sending me more webcam shit?
!!/mustache DavidPardy
 
why would someone use clip: rect(44px, 150px, 138px, -3px); for a sprite?
 
user1596138
@rlemon Very nice! I've never done salt before... But I've always wanted to. I might wait till spring when I'm done moving just so I don't have to go through the trouble.
 
Hi all, would someone mind taking a look at this? Error is at line 55, Uncaught Syntax Error: Unexpected Identifier. codeshare.io/SAAc8
 
hey! my first announcer badge. nice stackoverflow.com/badges/260/announcer?userid=829835
 
5:02 PM
@rlemon cool, I also only have one iirc
 
@DavidPardy change line 54 to this: });
was this: }
you are passing a function into a function expression.
you need to close it
 
@Connor because the image is a sprite-sheet, probably
 
I don't really know why the hell I have 188 Announcer badges
 
Ah, ok, one sec.
 
@rlemon it just makes trails
it makes trails as you move
 
5:04 PM
ugh why won't my carousel work
 
the code works fine, if you can just add your method using the output canvas it'd be pretty badass
 
@Darkyen yea, no webcam :/ so can't really test it at all
 
well i will do it regardless tomrrow, should be intresting meta balls based on ur movements :D
 
@Shmiddty i normally use background-position ? thinking about it i have always wanted to have repeating background images in sprites but the only way to do it is if the image is in the bottom right? so clip would do the trick right?
 
Wow, thank you rlemon
 
5:04 PM
@rlemon :-(
 
you are the man :)
 
@DavidPardy np
typos like that can sometimes be hard to see
@Darkyen I should really get one.
just to please you
 
for sure. Well, frankly, I'm a noob and super new to openlayers
 
maybe this weekend.
 
@Esailija yep, delete of stuff declared in eval blocks is part of the spec :)
 
5:06 PM
lol
 
gosh dang it
 
@Connor try it and find out
 
just ... why
 
!!/info
 
Zirak and Caprica needed some alone time
 
5:07 PM
@CapricaSix y u no listen to me?
Bow-Chikka-Wow-Wow!
 
@BenjaminGruenbaum By the way, in case you were ever under the impression that I knew how job applications and coding interviews worked and I was just asking n00b questions for kicks - no, I'm seriously new to the stuff and it makes me scared :<
 
user1596138
So I have 10 tickets in my hand to a play tomorrow and the day after...
 
@BoltClock I know, I assumed you didn't interview much given your age and history. Also, I think you should learn JS regardless of that interview
 
@Jhawinsss what kinda salt water tank you looking at? how large? mixed reef? sps? FOWLR?
 
@Shmiddty yeah i will
 
5:12 PM
you got me excited. another potential fish-freak
 
@BoltClock if you're serious about web dev, it's a must. I'd also learn something backend if I were you.
 
if I could do it all over I would have gotten different tanks thank I have now. none are drilled. all have overflow add-ons which are ugly
 
@BenjaminGruenbaum Yeah, I spent most of my time away from Flash learning web dev
 
@BoltClock A 6 digit rep in SO never hurts, but JS is definitely a must. In practice CSS is a very small part of web design, even someone with a few months of experience can do "satisfactory" css. In practice, having semantic CSS/HTML doesn't really matter much in production since it's one of those things you do once and worry about never.
 
user1596138
@rlemon I have a tank about like this one here but a little bigger. It's also nicer brown wood for the stand and trim.
 
user1596138
5:15 PM
 
user1596138
@rlemon Haven't figured anything out yet about reefs and such. It isn't a huge tank it's around 80 gallons, so I'm not sure exactly what I'll be doing.
 
ok well first see if you can drill it for an overflow
if not, maybe see if you can find a cheap used tank already drilled the same size (so it fits on the stand)
fucking with an hang on overflow box is a big pain and you need a full hood then because it sticks out
like I said, if I could do it over, that is what I would do
you will probably want to run a sump/refugium instead of an expensive canister filter. you can make a sump/refugium for <$200
but you don't need to replace things inside of it like you do the canister filter.
I don't think yours can be drilled, it looks like a larger version of my display tank
46 gal bow front euro tank w/ stand
then for how to stock it. well, it all depends on how much work / what you are into. Corals / fish or both.
 
user1596138
@rlemon I believe it can't be drilled... Which is why I'm unsure about it.
 
user1596138
I've been taking one massive shit... Sorry. ha
2
 
@Jhawinsss Awesome.
 
5:24 PM
thats ok, I'm always understanding of poop issues.
 
You are a poop issue :/
 
user1596138
@rlemon It wasn't exactly an issue, it was a pretty relaxing poo.
 
When nature calls, there is no hold button.
 
My div won't stay visible after toggled
Click "register"
 
user1596138
Exactly.
 
5:25 PM
I usually know it's time to get off the toilet when my legs go numb, or I can prolong it by shifting for a second to let blood flow past
 
user1596138
My buddy wants to give me $150 for this tank setup I have which only cost me $170 in the first place. So I'm just gonna sell it and get a nicer tank that's made for salt.
 
Fish are for gays
(Direct shot at rlemon ;P)
 
user1596138
Plus I don't know where I'll be living after November so I think it's best to wait and see just in case.
 
hi
 
type="submit" when clicked will submit your form
ergo, reload the page
 
5:26 PM
ohhh
 
ergo, re-hide the div
 
makes sense
 
e.preventDefault();
return false;
// bam! done
 
how to replace if i get this kind of string because she may never call back..replace(/["']/g, "")" ;
oops sorry
 
Zip-ties interest me
 
5:27 PM
@rlemon you will enjoy it a lot
since you do canvas stuff
you can make loads of real-world fun stuff in canvas you know ?
 
well.. I can try.
dunno if I can actually make it
or how much fun it will b e :P
 
str = ""because she may never call back."" srt.replace(/["']/g, "")
 
@rlemon you did face detection in C#
didn't you ?
 
right now its going as Uncaught SyntaxError: Unexpected token ILLEGAL
its going as ---- because she may never call back..replace(/["']/g, "")
 
str = '"because she may never call back."'; str.replace(/"|'/g, "")
 
5:29 PM
we might get single or double quotes
 
yea?
 
in the string
 
/"|'/g
double or single
 
oh okay
how about full stop
document.getElementById('id_comment_162').value = "Best practices also support scheduling a proactive follow up. (i.e. 'Tell me the best time to follow up with you to review the proposal and confirm your meeting.') You don't want to leave the follow up to the customer, because she may never call back..replace(/["']/g, "")" ;
 
no clue what you are talking about
 
5:30 PM
/(%#"^63*[])#3([]^6((#!%]3^6'''/g
That should work
 
right now i am getting a error Uncaught SyntaxError: Unexpected token ILLEGAL
 
a troll amongst men.
because you never terminate the string
or you do?
well you do and you don't
 
i have a dynamic string it pulls from db
 
@BenjaminGruenbaum holy shit
 
var x = "hello world " this is some shit"; // the string is terminated at the first "
 
5:32 PM
@BenjaminGruenbaum I couldnt find any limits in spidermonkey source... it will always allocate
 
@Esailija Everything ok man?
 
suppose, {{ data }}.replace(/["']/g, "")
 
@Esailija Link?
 
some times from data i am getting a string ends with full stop
and the syntax becomes Hello World..replace(/["']/g, "")
 
asd
FFS
 
5:33 PM
function uuid() {
    var r = Math.random;
    return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
        return (c === 'x' ? r() * 16 | 0 : r() * 4 | 8).toString(16);
    });
};
God help me... client-side uuids...
 
(That's where the rest of the array stuff I found was anyway)
 
ok it crashes chrome too, wtf?
all it does is new Array(200000000)
 
@canon there is uuid.js
 
Yep crashes chrome
 
5:34 PM
which should not allocate on chrome
 
@canon I got one better.
var guid = function () {
    return Date.now().toString().split('').map(function (n) {
        return Math.random() > .5 ? +n + (Math.random() > .5 ? 70 : 80) : +n + (Math.random() > .5 ? 100 : 110)
    }).map(String.fromCharCode).join('').replace(/\s|\n/g, function () {
        return Math.random().toString().substr(Math.random() * 10 + 2 | 0, 1)
    });
};
 
@Esailija IE works
 
@rlemon , @canon what if 2 clients generate a same uuid
or guid ?
 
tough luck
2
 
@BenjaminGruenbaum I get SCRIPT7: Out of memory in IE
 
5:35 PM
lol
 
and in firefox I saw my process memory go over 1.5 GB
 
@Esailija Works here, I have a pretty fast computer though, and plenty of free ram for it ( 16GB)
 
well it should take 1892 gigabytes if they were all allocated
 
@Esailija FF doesn't crash either, only chrome did
 
5:37 PM
but nothing should happen on chrome
I am looking at the code with my own eyes
 
@rlemon Does that actually generate less collisions? nm, it doesn't return a guid.
 
@Esailija I think node would be a more fitting test environment
 
that checks the proper length to allocate
 
@BenjaminGruenbaum Kills Chrome on my MBP w/ 16GB RAM
 
5:38 PM
o rite, it's the console .log? :D
 
Oddly enough, it crashed the JS chat as well.
 
@BenjaminGruenbaum yeah it's the console.log
 
I just run it on compiled v8
 
SCRIPT7: Out of memory
show, line 36 character 5
 
5:39 PM
goes through it like nothing
 
That's with the console open in IE
 
wait a minute :D
IE actually saved the day ?
 
@BenjaminGruenbaum yeah it was the console log all along
 
@Esailija I thought we knew that
 
you try to find it ... it is AllocateNewDenseArray
I cannot find anything where the limits are or anything
maybe it's just dead code
 
5:42 PM
In v8 or FF?
 
FF
 
but I want to allocate with new Array
 
It is really easy to see that chrome allocates with new Array
 
5:44 PM
@Esailija Oh, the V8 source is very readable, it's one of the most readable projects I've ever looked into. Spidermonkey less so.
 
yeah, I instantly noticed that spidermonkey has much more indirection
following endless trail of bullshit
 
been there, read it
 
Just found this gem in our code:

var ua = navigator.userAgent.toLowerCase();
if(ua.indexOf('chrome') == -1 && ua.indexOf('android') == -1 && ua.indexOf('ipad') == -1 && ua.indexOf('iphone') == -1){
	window.location.href = "/fsportal/default.html";
}
 
Poor firefox users
 
5:47 PM
@BenjaminGruenbaum jsfiddle.net/gfQwB/7 crashes firefox?
but not chrome
 
@Esailija Crashes neither, but a lot slower in FF than chrome
 
whats your memory on ff vs chrome
 
Checking
K back
Chrome ~500 mb, firefox ~170 mb, however firefox crashes without a warning after a while
Also, firefox freezes and Chrome doesn't
 
yea but chrome isn't actually allocating on this
try with 99999 on the new Array
 
Then why is it taking more memory?
Hmmm, lemme talk from IE, maybe I'm mixing stuff up, I closed everything but let's make sure
 
5:54 PM
if I change from 100000 to 99999 I get oh snap
note to press update and open in new tab
 
Ok, now everything is closed and the memory monitor is up.
Testing
Chome does get to 465.7 MB, stays there, 0% CPU.
This means Chrome is allocating in jsfiddle.net/gfQwB/7
 
who loves my current rep count :)


>
 
Firefox peaked at 9.3% CPU now to 0.1% , mem at 158.2 MB either not allocating, or allocating a lot less
 
but it can't be allocating all?
 
@Connor Satan Worshipers.
 
5:58 PM
seriously that's 100 000 * 1million
if you allocate all
 
@Esailija No, ~150MB is what firefox takes in an empty page
 
I mean in chrome, when chrome is taking 450mb
it makes no sense
 
Now Firefox froze
It's at 14.1% again, I'm force quitting it
 
@Gacnt lol
 
Now firefox crashes after restart when I go to that page
I don't know why, but if I restart firefox and go to that window now, it crashes.
 
5:59 PM
xD
 

« first day (964 days earlier)      last day (3987 days later) »