« first day (523 days earlier)      last day (4440 days later) » 

GGG
7:00 PM
awesome... they all totally look like heads too
good shit
 
hah thanks :)
 
user1385191
(note how he admitted that attr was broken long ago)
 
@OctavianDamiean nothing. Just wanted to know. Thanks :)
 
@MattMcDonald It's great because he knows he's full of shit but pushes it out.
It's like he's batman-- the library the web developers deserve, not the library they need.
6
 
Meh ... screw it. I'm not even gonna bother reading that entire response.
 
7:05 PM
lol great quote @Incognito had to star it
 
user1385191
the repeated cries of "waaa you criticize $ but where's your shiny library?" is actually why mylib was created
 
I hate that argument @MattMcDonald would be like saying that to a movie critic
 
The overhead that comes with accessing an attribute with jQuery is just ridiculously insane. Apparently he was like, "Hey, accessing attributes isn't that complicated yet, let's create an entire science around that."
 
"Oh where is your awesome movie mr critic!!"
 
GGG
omg dudes i am just smoking sizzle
this is fun
 
7:08 PM
@Loktar What, you didn't like "Clueless2: Vapid idiots" ? Lets see you make a better version.
 
lol yeah exactly
 
So it basically boils down to Fork you, innit?
 
@MattMcDonald It's as if the apocalypse is coming, buildings around him are on fire, people are dying and screaming in pain, and he swoops in to save the day, shouting "Don't worry everyone! We have test-suites! Nothing can go wrong!"
 
GGG
> qs.compile('body div#login button')

function anonymous(root) {
try {
  return qs.go(root).getMainId("login").selectAncestorTag("body").checkId().filterByTag("div").getByTag("button").nodes;
  } catch (e) {
  return [];
}
}
:D
 
user1385191
@Zirak do you or anyone else remember TestSwarm?
 
user1385191
7:10 PM
it was intended to be some massive unit test management system
 
@Zirak Y U NO POET?
 
I remember he mentioned it. Communal testing or something like that?
 
user1385191
the complaint was that $ had about 10 unit tests
 
jresig knows shit, but he's just...so...gah
 
jresig is a bit silly sometimes
 
7:12 PM
@Zirak Yeah I don't get that part either.
 
in 2009 he was saying you couldnt make games with JS
 
@Zirak So poetic. :D
 
Inspired by Edgar Allen Poe
 
@Zirak you should really produce a programmer's poetry book.
 
7:13 PM
lol so crazy old and bad js, but thats when I was like.. wtf this guy doesnt have a clue
 
with guest poet Bobince
 
@Zirak so beautiful!
 
The code, though, is shit. I recommend you don't read it. I should torch that project.
 
brushes aside tear
 
@Loktar: 50k score.
 
haah yeah it has a crazy bug
which I could fix now easy
but if you hold space itll auto fire
 
that was my first ever canvas game
maybe my first js game
thinks..
 
I think I tried to make tetris using floating divs once, that was insane and I gave up.
 
7:18 PM
oh lol
 
I like to consider myself a canvas hipster.. I was doing cool stuff before it was cool!! :P
@Incognito same here
that was a long time ago.. but yeah the code was a mess
thats how I tested myself 2 weeks back, I actually made tetris in like 2 hours
I was like holy hell I have come a long way as a dev
I was happy.. my wife was like cool dear
 
Yeah, people don't get why things are awesome unless they understand the background.
 
lol yeah exactly
 
7:22 PM
rlemon.com/projects/snake only my second canvas game
 
Whats up all?
 
and the first was hangman, which I could have done without canvas.
 
yeah, but canvas is fun
hey @Neal
better colors
maybe you can more easily tell they are animal heads?
 
cool snake
 
@rlemon ah that's much better than mine
@robalarcon whoops, wrong message id, sorry
 
7:25 PM
@Loktar i thought they were space ships
 
:? lol damnit
oh well once they have bodies itll be easier to tell
 
@rl
@rlemon awesome I like the concept of define the food
 
@robalarcon wrong id
 
i don't get it
 
7:28 PM
lol
@OctavianDamiean yeah I need to try and find the video presentation he gave
it really irrtated me though
I was like wtf dude.. you can totally make decent games
^ was the next one I did
 
@jAndy why you downvote
 
that was when I knew js games would replace flash one day
 
@Loktar but it doesn't have the HD graphics my snake game has!
 
yeah true, but that was in 2009 man
I didnt have access to HD
:P
 
ctx.beginPath();
ctx.fillStyle = 'rgb(0,255,0)';
ctx.arc(food.position.x + (cellSize/2), food.position.y + (cellSize/2), cellSize/2, 0, Math.PI*2, true);
ctx.fill();
^HD graphics rendering
 
7:31 PM
you guys should check out cocoonjs im so excited about it
it compiles your js games for ios and android
they have an app out to test
works really well
imagine @rlemon snake.. ON THE PHONE! (even on a phone.. on a plane!)
 
food.position !== self.position ? self.state = 'Sad' : self.state = 'Happy';
 
Array.shift() not good enough?
 
dafuq mate?
 
GGG
@Incognito lol yeah that's a good one
is try/catch slow?
 
7:39 PM
I think we had that discussion yesterday, didn't we?
 
GGG
no, wasn't me
is it?
i'm using a bunch of chaining and then intentionally breaking the chain and catching it to exit early
 
It was someone, I'm pretty sure.
 
GGG
the try part doesn't seem slow
i think the catch part is
 
What do you mean by chaining? Fall through?
 
GGG
> qs.compile('body div#login button')

function anonymous(root) {
try {
return qs.go(root).getMainId("login")
.selectAncestorTag("body")
.checkId()
.filterByTag("div")
.getByTag("button")
.nodes;
} catch (e) {
return [];
}
}
 
7:41 PM
Oh, so chaining then. :)
 
GGG
when it finds stuff, it's faster than sizzle and the others
including native qsa
 
Whoops! I just realized we are talking about try/catch not switch/case haha
 
GGG
but when the stuff isn't there it's about half the speed
 
Never mind ...
 
GGG
heh right
switch is optimized in v8
originally misses were like hugely slower
i was doing stuff in a stupid way
like if the selector was "div #foo" i'd check every div to see if it had a child with "#foo"
so now i'm getting the id farthest to the right and checking its parents, much faster
but still slower than the others
 
7:46 PM
I was about to ask you just that.
Getting the element by its ID and then checking for its parent seems like the better idea.
 
GGG
yeah now it's kind of a hybrid
gets the last id, goes RTL, then LTR from there
i really should ditch the regex and do a normal parser but it just makes things so easy =p
 
those look like anything to you guys?
hopes for correct response
 
GGG
YESS
awesome
 
robes right?
 
GGG
yeah for sure
 
7:57 PM
cool
need to add the animal heads to them now
loves procedural graphic generation
 
Airplanes!
 
Puppies.
 
Monsters!
 
lol
 
@Loktar Can you make them unique for sha1 signatures?
 
I could make them based on a seed
 
is that real ?
 
@Abhishek Gmail's done that for years.
 
GGG
@Abhishek google labs beat them to it
 
does any one know if browsers have a limit of number of images they will cache ?
 
8:01 PM
lol i saw it on damnlol
so just posted :3
 
@Loktar Something I'll need to do for a project down the road is generate unique images for trillions of combinations of things.
 
i think cache size depends on mb
and not images eh ?
 
Trillions is a vast underestimate.
 
yeah man just use a seeded random
 
I was looking at the gravitar code actually.
 
8:02 PM
thats what I do anyway for things like this
 
Interesting.
 
so I can pass in ?billybob and generate 100k images
 
thats what i thought but friend of mine says his is limiting total images
 
Think I could make SVGs with it?
 
and they will always be the same if I always use that seed
probably
yeah I mean a seeded random is just like regular random, but based on a formula
which is based off of the seed
 
8:02 PM
We're probably a few months away from it, but this is what I'm likely to do.
 
@GGG
I am damn sure nobody beats India in that one ;-)
 
Oh my ...
 
Lol
 
This is so wrong in so many ways that it is almost right again ...
 
and thats "widespread"
 
8:06 PM
 
haha thats great
 
GGG
@Abhishek awesome
 
lol
 
8:08 PM
@rlemon Clearly you haven't watched spiderman.
 
this one is just epic! <3
 
okay, who's stalking me and upvoting old answers?
 
8:09 PM
@ThomasShields Deal with it.
 
@Incognito You know it's funny when people say that. I am dealing with it: by asking who's doing it.
 
@ThomasShields Are you really complaining about a serial-up-vote? :D
 
@OctavianDamiean well, it's just that whoever it was upvoted a jQuery answer :(
(but not, i'm not)
 
@rlemon lol
 
ok ok i'm done
 
8:11 PM
 
^ exit strategy
 
lol
 
@Incognito lol
 
this way we can waste like infinite hours
and still be posting memes :|
and funny pics duh!
btw
anybody tested the browser rockmeit ?
 
15
A: Alternate div background color

Thomas ShieldsjQuery's :odd and :even selectors are pretty handy: $(".post:even").css("background-color","blue"); $(".post:odd").css("background-color","red"); HTML: <div class="wrapper"> <a href="#">blah</a> <div class="post">stuff</div> </div> <div class="w...

this is absurd. Why do I have 15 upvotes for such a horrible answer?!
 
8:13 PM
@ThomasShields >jQuery.
 
@Abhishek y u no linux?!
@Incognito :(
 
@ThomasShields i use everything
lol no OS discrimination :D :D
 
2 mins ago, by Incognito
user image
 
RockMeIt looks more to me like
 
@Abhishek I meant why didn't RockMelt support Linux
 
8:14 PM
facebook + googleChrome
@ThomasShields no clue :P
i am installing
 
and why are they totally ripping off Chrome's Back/Forward/Refresh buttons?
 
RockMeIt lets see what this small browser can do
@ThomasShields i doubt they are actually just running chrome with some NATIVE apps
 
@Abhishek I'm not os-ist. I think everyone should hate on Windows users.
 
@rlemon ...........................
why ??
 
... you heard me
 
8:15 PM
that dog looks a bit bored
 
did you tried developing for WP 7.5 / or win 8 v/s Android or similar on PC ?
i find Win8 / 7.5 much better then android development :P [maybe just me though ]
 
phahaha xD
 
,looooooool
i'd be amazed if u find that website not "Helpful" and brilliantly made
 
wait that comic is wrong...
she was thinking.... ? how inaccurate is that comic strip >.>
 
@Dave ha. haha. hahaha. -_-
 
8:23 PM
gn
 
8:39 PM
Oh god ... I can't stop laughing ...
 
im so happy
look at these
oops
fixed the link
anyway those are all procedural. I def need to mess with the pallets
but still they look so neat
 
Pokemons!
 
lol man I am seriously excited about this lol
I even framed my sentence with lol's
I need to work on humans now
and animations.
 
9:10 PM
and then github the source?
Speaking of which.. are there any good github mobile sites
 
0
Q: how to stop a for loop in Jquery?

frequentI'm using this to iterate through an array and find a matching array element: var remSize = [], szString, remData, remIndex, i; for (i = 0; i < remSize.length; i++) { // I'm looking for the index i, when the condition is true remSize[i].size == remData.size ? rem...

Found one
 
GGG
@Loktar sick
can they be decapitated
 
user1385191
@copy fixed
 
@MattMcDonald I should have suggested using a plugin for that. But now it doesn't make sense anymore :-(
 
GGG
9:26 PM
damn catch is really slow
 
@GGG You can't compare something() and noop() :-/
 
feeling ill
going out to get pissed
Expecting to hit rock motherf*'ing bottom around 3am
 
user1385191
isn't that what you do every day?
 
user1385191
it seems like you're up quite late
 
GGG
@copy yeah it's a weird test... no idea how to do it fairly
 
9:33 PM
I'm always up late
but I dont get drunk every day
 
GGG
catch was slowing it way down
i'm slowly beating sizzle and qsa at everything muahahaha
(#title exists, .foo does not)
 
@GGG if(typeof "" === "function") in this case. But you'll come to the same conclusion anyway ...
 
GGG
how does that solve it?
anyway try/catch was slow, i ditched it
in the test i just linked everything else was outperforming my solution with catch in there
 
It's the equivalent to your try-catch-block
 
GGG
scrapping catch made mine the fastest
how is if(typeof "" === "function") equivalent to a try/catch block? Does typeof use try/catch internals?
 
9:40 PM
I am talking about the particular jsperf test, where you did try { ""(); }
 
@Raynos i'm usually cool with 3-4 hours sleep a night for about 5-6 weeks. then I have two days where I feel like total crap hole but then i'm good again.
 
GGG
@copy yeah i know, i wanted to see how much slower a catch was than a no-op
it was a lot slower
slow enough that calling a bunch of extra functions is still faster than stopping early by triggering and catching an error
it's still slow on classes... might need to just do everything right to left
 
Hi all ^_^
Interestng query:
2
Q: Jquery blinking title

LinasSo, i need to have a blinking title, this code should work, but for some reason it doesn't. Now console keeps showing me correct title, but title in my browsers doesn't change, what could be wrong? var blink = true; setInterval(function(){ if(blink){ $("title").text("test"); ...

This answer is incorrect: stackoverflow.com/a/9830986/561731
 
user1385191
that's not interesting
 
user1385191
in fact, it's quite stupid
 
9:50 PM
Hi, can anyone please help me with this problem?
 
@MattMcDonald why is that stupid? some people want to blink the title bar on the browser.
 
1
Q: Different behavior of ExtJS application in debug and minified mode

KhosrowI'm facing an strange behavior in an web application I'm currently working on. The interface is totally built with ExtJs 4. The application has two modes, Debug and Production. In Debug mode, when user click a menu item, I load synchronously, the dependent Javascripts file. Something like this: ...

 
@Khosrow 42
 
@Nea
 
tab, not enter
 
9:50 PM
Facebook does blinking titles
 
@Neal, what does 42 mean? I'm a little bit newbie in SF chatroom
 
Blinking titles need to a die a thousand painful deaths.
42 (forty-two) is the natural number immediately following 41 and directly preceding 43. The number has received considerable attention in popular culture as a result of its central appearance in The Hitchhiker's Guide to the Galaxy as the "Answer to the Ultimate Question of Life, the Universe, and Everything". Mathematics * Given 27 same-size cubes whose nominal values progress from 1 to 27, a 3×3×3 magic cube can be constructed such that every row, column, and corridor, and every diagonal passing through the center, comprises 3 cubes whose sum of values is 42. * Forty-two is a pron...
scroll down the popular culture part
 
1 min ago, by Thomas Shields
42 (forty-two) is the natural number immediately following 41 and directly preceding 43. The number has received considerable attention in popular culture as a result of its central appearance in The Hitchhiker's Guide to the Galaxy as the "Answer to the Ultimate Question of Life, the Universe, and Everything". Mathematics * Given 27 same-size cubes whose nominal values progress from 1 to 27, a 3×3×3 magic cube can be constructed such that every row, column, and corridor, and every diagonal passing through the center, comprises 3 cubes whose sum of values is 42. * Forty-two is a pron...
 
Thanks, but I didn't get it
 
user1385191
@Neal why are scrolling HTML "tickers" stupid?
 
user1385191
9:58 PM
A: <blink> is an abomination
 
user1385191
B: <marquee> is an abomination
 
@MattMcDonald oy, he is talking abt blink in the browser title, not in the page
 
user1385191
...as if there's a difference
 
Facebook and every other major site does it
 
user1385191
quit acting like a lemming
 
9:59 PM
the facebook blinking title is actually pretty awesome for chat...
 
user1385191
blinking titles are probably more annoying than blinking elements
 
so you know when you have message
without having to look at the tab
 
user1385191
you still have to look at it
 
nah my peripheral vision detects the blinking without looking directly at it
 
user1385191
I'm fine with how SO does it
 
10:01 PM
facebook does the parenthesed numbers for notificatios
notifications
 
10:18 PM
0
Q: A javascript 'webpage testing' website

BozKayI saw a demo of a web based system that enabled you to edit a webpage - then track the effectiveness of the changes. All with JS. They had a demo that showed a user editing the dropbox homepage. They edited an image and a button, then checked live stats for each variation of the webpage. I now ...

 
0
Q: where does window.somedata gets stored

AsdfgIn JavaScript when i say window.SomeData = 'whatever', where does it get saved in the browser? I thought it gets saved in the viewstate but it doesnt. Also how much security concern is it to save some data in window.someKey. I am not talking about username or password storage but some general dat...

"I thought it gets saved in the viewstate" lol
 
Mac
Anyone active in here that could give me a little info/explanation on how this site is doing their scroll on it's mobile site?
It looks to be using a mix of CSS webkit and JS
Guess not lol
 
11:26 PM
@OctavianDamiean hey mate! did you find the way to do the ul>li*3 stuff in sublime?
 

« first day (523 days earlier)      last day (4440 days later) »