« first day (900 days earlier)      last day (4046 days later) » 

8:00 PM
man I spent all day doing that today..
 
lol
... at work ?
;)
 
of course not...
...
 
Its professional development :P
 
dem government jobs are such a time constraint eh?
 
8:00 PM
I love that term
 
i find it amusiing
Uncle Sam : "I want/need you"
Stalin : "I own you"
 
actually we get a day a week here to "experiment"
I rarely ever use it though
 
really? I get every day to "experiment"
 
Reading blogs? Professional development
Messing with a Fiddle? Professional development
Codepen.io? Professional development
StackOverflow? Professional development
 
/me loves being a software designer / R & D
2
 
my entire job is tinkering
 
@RyanKinal haha exactly!
 
:D
cya
 
see ya @Darkyen
 
Kids Dagga Remix is nice . @RyanKinal
/me is groovin to it
 
8:02 PM
@Darkyen Sam sounds like a perv.
 
@KendallFrey i'm quite enjoying this bizzare contact
 
@rlemon Listening...
Pretty solid
 
@david Bizarre*
 
@ShotgunNinja Bizzare*
 
8:07 PM
@ShotgunNinja Nope.
 
New chat interface: kittens-chat.herokuapp.com
@david window.location.protocol + "//" + window.location.host works on all browsers (I hope)
 
@rlemon There's a local guy mixing some pretty killer stuff too. Check out Notixx
 
@SomeKittens sweet, that makes more sense i guess
you need to add the 120px margin to the bottom of #content
 
Less, I changed it to <input>
 
y u need input
textarea all of the things!
 
yesterday, by Octavian Damiean
POP! POP!
 
@rlemon ...why not?
 
switches.html('<div class="ON"></div><div class="OFF"></div><div class="led"></div><div class="image"></div>');
this is the worst way possible to create elements
the worst
 
holyshit
i thought that was some pretty sweet css3... but it's not... it's base64ed images
with crazyass javascript
 
the worst javascript
html inline your js is worse than js inline your html IMO
 
8:15 PM
duplicate IDs ><
 
dupe ID's actually make me angry
 
unique classes
 
it's not like and Identifier means it has to be unique or anything
 
wtf is this shit <div id="switch" class="0"></div><div id="switch" class="1"></div><div id="switch" class="2"></div><div id="switch" class="3"></div>
they are all id="switch", but different classes
 
classnames cannot be numbers or start with numbers
:(
 
8:15 PM
that's completely the wrong way around
and yeah, numbers for classes
arggggg
 
and only with HTML5 can Id's be or start with numbers
 
Sooo... I started mucking around with ASP.NET MVC with Razor... and I'm actually not hating it.
 
var switches = $("div[id^='switch']");
w.t.serious.f?
instead of giving them a common classname you use this horid selector to select dupe id's
you just broke the internet
I hope you are proud
repeated code also makes me uneasy
well i'm done looking at that now.
 
Evening dawgs
 
@eazimmerman you have been weighed by the scales of stackoverflow javascript chat and are found wanting.
 
8:21 PM
:c
does this redeem me? jsfiddle.net/eazimmerman/QfBqf
-____-
 
@SomeKittens @david ugh... why did I look at the frontend code for that chat :/
 
@rlemon I'm fixing it!
 
I'm going to have to re-write that entire thing... so much stupidness.
    // for better performance - to avoid searching in DOM
    var content = $('#chat');
    var input = $('#input');
    var status = $('#status');

    // if browser doesn't support WebSocket, just show some notification and exit
    if (!window.WebSocket) {
        content.html($('<p>', { text: 'Sorry, but your browser doesn\'t '
                                    + 'support WebSockets.'} ));
        input.hide();
        $('span').hide();
        return;
    }
if performance was a concern why did they create the new element in such a slow horrible way
 
@rlemon ...wat. I already fixed that part.
 
$(elm, options) is arguably the slowest way to create an element with jQuery
 
8:23 PM
If you want to be useful, make the chat content scroll
 
i'm going to re-write the entire front end js tonight
so if you are working on it... stop
 
HAMMERTIME!
 
:P
HALTZ!
 
HALT
 
HAMMERZEIT!
 
8:24 PM
fucking Z
 
@rlemon how come it's the slowest way?
 
@rlemon I might mess with the socket.io stuff
but feel free to dig in
 
@JanDvorak internally it does a lot more work and is slower than just using .css after the fact.
they might have optimized it in recent versions but this was true in the 1.7 days
 
Just make sure you're working off my repo or your stuff won't go live.
(pull requests ok, of course)
 
I was scolded for doing it the first way and was given a perf to prove it. don't have the perf now or remember who told me so just take my word on it ;)
 
8:26 PM
Note to self: If I ever need a front-end rewritten, just let @rlemon have a look at the horrible code.
 
@SomeKittens or I can just run it on my site ;) which was the plan
 
@rlemon Or that
 
lol, I will do a pull request as well for you
 
I'll try and work on multiple rooms
 
@SomeKittens I made a test chat interface 2 years ago that did cool scroll up stuff: jsfiddle.net/ctrlfrk/zBBrc
 
I don't claim ownership to a chat I ripped and a UI I hacked together from twitter.github.com/bootstrap/examples/sticky-footer.html
 
didnt feel like doing more to it
 
however the chat frontend js is horrible as is
I haven't really dug into the backend but I will tonight
the scroll stuff is easy
zirak.github.com/SO-ChatBot I made this interface as well
 
(if you want, of course)
 
ohh shit! I have a fiddle for that.. like half done
forgot tbh
protip: notepad++ won't open a 45meg text file
 
8:31 PM
"The UK and Iceland end the Cod War."
i had no idea there was a cod war
 
that's what call of duty is based upon.
 
hah nice
it was added to featured pens!
Chris Coyier hearted it :)
 
> Chrome has updated with bettar spell chek!
Lolz
 
hello people, say i am loading a some content with jquery .load and i have a div where the content is loaded into, well if i load the content the height of the div gets alot bigger, is there anyway to animate the height change, i have tried adding a transition the the container with CSS but its not working, if its any help here is my snippet.

    $(document).on('click', 'nav a', function(){
    	$('.content').append('<div class="loading"></div>');
    	var location = $(this).attr('href') + ' #ajax';
@phenomnomnominal Realy? :D
 
@rlemon Are you talking about the tutorial we followed or my modifications?
I've rewritten half of it
 
8:39 PM
the original
@Loktar I'm disappointed in you - I expected the numbers to be made of particles and for the original particles in the number to be the ones exploding
then you can have relative number of particles to number size.
 
what do you mean?
they are
I check the image if there are any changes, I make the current particles explode out
 
sCtx.fillText(hour + ":" + min + ":" + sec, 0, 30);
 
then I place new particles for the next number
oh dude lol
thats on the temp canvas that I read
 
I expected you to make the numbers with particles
 
thats a tiny canvas
yeah I do a getImageData on it
 
8:41 PM
but you copy the numbers you don't make them
cheater
 
I do make them
I draw out the numbers on a tiny canvas, then I iterate over that canvas's pixels and place a particle everywhere its not an alpha of 0
and I place the particles on the main canvas
 
but you fillText first! I want a freaking matrix for the numbers
 
haha
 
cheater
 
well I wanted to do it that way, because I plan on doing images next
going to make some exploding image transitions in 3d
 
8:42 PM
PARTICLE ALL OF THE THINGS!
 
github.com/Gacnt/Node-Tests is this a good file structure for node?
 
@Loktar if you can do like the mr.doobs website
have you seen that shit?
 
no
 
1 sec
 
the beachballs?
 
8:43 PM
ugh... maybe it was someone elses
fuck hold on
 
The windows solitaire endings?
or the IE6 errors?
 
wow lol what a douche
 
Barely redeems himself in the epilogue.
 
But yeah, ignoramus.
 
8:49 PM
@AlphaCentauriAB Woah, aliens!
Er, extraterrestrial creatures.
 
my god this is going to bother me until I remember who the fuck it was
 
lol
 
haha, I'm new to this website... I really like it so far. It's been great help.
 
Tim Holman site?
I like his alot.
 
@SomeKittens haha, I'm new to this website... I really like it so far. It's been great help.
 
8:50 PM
@rlemon, what are you talking about?
 
Great, welcome to the chat. Follow the rules, and you'll be golden
 
@phenomnomnominal just a really well done website
the guy on the website says he worked on tenthousandcents but he's not the two people linked
 
if anyone is good with facebook js sdk I added 150 point bounty
1
Q: what is gr:get:User in Facebook Graph Api? Application Limit Reached Error

Scott SelbyI have an app using facebook's javascript and c# sdk. One day I was getting the error 4 : Application request limit reached. In the facebook app dashboard I see this. Too Many Calls - 1 hour, 50 minutes Method Fraction of Budget gr:get:User 115% gr:...

 
/me is not into that sort of punishment
 
Aaron Koblin seems to be the person... why can't I find the site I was looking at
he had a live website where that particle person talking was done in canvas and synced with a audio stream
it was impressive as shit
I was showing the GF like ~1 month ago
 
8:58 PM
nice
 
fuck I wanna find it
seriously... floored me
 
@SomeKittens Thank you for telling me about the rules. I just read them, pretty straight forward. Sorry about my double post of the same message. I didn't know how to reply to you directly..... :P
 
@AlphaCentauriAB No big deal. Learning is important.
 
Someone actually read the rules, wow. Good work
 
I haven't read the rules
 
9:02 PM
!!/pierce
 
and i'm not going to
 
!!are you alive?
 
!!/live
 
@Loktar ok well he had this live on his site.. it was him talking about his crowd-sourcing projects. aaronkoblin.com./work/rh/index.html - also, it wasn't flash
 
did anybody know that is facebook.stackoverflow.com ? that's pretty cool
 
9:03 PM
You should comment all your code
 
it'd e cooler if people actually answered stuff on there
 
!!are you alive now?
 
9:16 PM
How to check weather checkbox is checked or not? here is my fiddle jsfiddle.net/kAkXL which is not working.
Sorry check this one..jsfiddle.net/kAkXL/1
 
Chrome moving away from webkit?
 
they forked it :S
i think
"Historically, browsers have relied on vendor prefixes (e.g., -webkit-feature) to ship experimental features to web developers. This approach can be harmful to compatibility because web content comes to rely upon these vendor-prefixed names. Going forward, instead of enabling a feature by default with a vendor prefix, we will instead keep the (unprefixed) feature behind the “enable experimental web platform features” flag in about:flags until the feature is ready to be enabled by default. "
 
@james There is nothing correct about that code. Come back when you understand the basics.
 
@david could you please help
 
@james there is enough wrong with your code that i don't want to get involved. it would be like a black hole
 
9:25 PM
@rlemon yes my dear?
BotWat++
 
user2157210
BotFemale++
 
BotMale++
can you vote twice?
 
user2157210
!!/Karma BotFemale
 
@david There is no limit
 
BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++ BotWat++
 
user2157210
9:27 PM
@dievardump Does not work already tried
 
Only once per message though
 
@dievardump Except that only one vote per message is registered
 
user2157210
!!/karma Botfemale
 
user2157210
bot is ignoring me holy
 
besides, the bot is dead
 
9:27 PM
!!/karma BotWat
 
user2157210
Its dead boy
 
oh yes, it's sleeping.
I thought it was ignoring you, as it should.
 
@Shmiddty what about now?jsfiddle.net/kAkXL/4
 
user2157210
@dievardump Why should it ignore me :(
 
@james better... ish. The reason that fiddle isn't working is because your interest function isn't in the global scope. This isn't immediately obvious. What you need to do is change onload to no wrap - <head> on the left panel.
 
9:30 PM
You ask why, I ask: Why not?
 
user2157210
Well i asked first -.-
 
This is a stack, and I asked last, so what is my answer?
 
Your question owerflowed the stack, it seems :-)
 
I wonder how different MTG would be if it employed a spell queue instead of a spell stack.
 
user2157210
mtg?
 
9:33 PM
magic the gathering
 
user2157210
this trading card game right?
 
yeah
 
user2157210
dont know
 
user2157210
never played it tbh
 
it was a rhetorical question
 
user2157210
9:35 PM
hmm ok
 
user2157210
i still wonder
 
I think it would be a lot worse. And would lead to race conditions >_>
 
Well yes, the game would be a lot less interactive.
 
@james no-wrap put code in body jsfiddle.net/kAkXL/5
 
@jjpd don't try to help if you don't know what you're doing.
 
9:45 PM
ok
 
lol that bracketless if statement
 
user2157210
are people really that stupid?
 
Ok, so, I come back from a ski week end
WTH are Servo and Blink?
 
@Nexxpresso Yes.
Always.
 
user2157210
9:52 PM
but that stupid?
 
user2157210
I dont remember me asking that kind of questions
 
Probably stupider
 
user2157210
I just bought a fucking book to learn
 
What are we talking about by the way? :D
 
guys? Any hint?
 
9:54 PM
Blink is the new Chromium fork of Webkit
 
user2157210
about that guy trying to assing a value to a string to check if the string+value is check
 
user2157210
when a checkbox is checked
 
Oh it's just a fork of webkit?
 
user2157210
pretty much his first approach
 
<input type="checkbox" id="interest" onchange="return interestf();" />
That's just... I can't even.
 
user2157210
9:56 PM
let me show you the best of the best
 
user2157210
var interest='interest'+value;
 		var count=document.getElementById('interest');
        if(insert.checked)
        {
 
user2157210
this is a masterpiece of code
 
What in the ... what!?
 
user2157210
he asked us to help why it does not work jsfiddle.net/kAkXL
 
That's like asking why a car doesn't fly.
 
10:00 PM
Don't know but I heard that carpets can fly.
 
car is to carpet...
 
as Java to JavaScript :)
 
user2157210
ah holy cow i am so excited for the summer to come
 
user2157210
cant wait to grab my girl stuff her in my car and just drive into the sun
 
user2157210
10:02 PM
i mean girl saves petrol ..
 
Almost winter here :(
 
I completely misread that ... won't tell what I understood.
 
user2157210
tell me
 
yesterday, by Octavian Damiean
POP! POP!
 
user2157210
you are not allowed
 
10:04 PM
Oh I wouldn't even try.
 
I finally figured out Jison / Bison Parser Grammar :O
 
user2157210
I dont even ..
 
Man, sometimes at work I forget that I'm not using CoffeeScript and get all confused.
 
mmm coffeescript
 
@phenomnomnominal I always get confused when reading coffeescript though, especially complicated function calls where all the () have been left out...
 
10:07 PM
Z = (l) -> ((f) -> f f) (f) -> l (x) -> f(f) x
like that?
 
yeah...
 
I try to err on the side of ()
 
i prefer () -> but our work style guide says to just do -> :(
 
Why woul people downvote this: stackoverflow.com/questions/15799005/… ?
It's actually a decent answer
 
it's probably the asker downvoting because he doesn't understand
 
10:13 PM
Then he IMO should leave a comment and tell why he's having trouble understanding the answer
 
@david, at least you have a work CS style guide
@BenjaminGruenbaum, at least you have us to re upvote it
 
also, speaking of the coffeescript and stuff, if you are bored, here's my current toy language experiment thing github.com/BonsaiDen/emblem
only really started yesterday... so there's little to see right now except for it spitting out a simple ast
 
i guess calling it a style guide is a little extreme, it's more of a shared agreement reinforced through sporadic code reviews...
 
@jAndy Seriously, 250 up votes on that answer already?!? >_>
 
we're more strict on 2-spaces indentation though >_>
 
10:16 PM
BotWat++
 
today has been a bad day for helping people in this chat... most of the questions have been so bad that noone has even tried...
we need some newbies in here with simpler, less crazy problems
 
mediumbies
 
10:31 PM
Hello
can someone explain me what .bind means in javascript? But a good example cause all I found until now are craps :(
 
thanks I read this, but was not helping.... i got in my code something like
requestAnimFrame(this.visualize.bind(this));
and i have no idea what bind does and what this sends :(
 
you know what requestAnimFrame does i take it?
 
0
Q: Sliding panel of mobile page once

BatmanI have a div which is mostly off page but uses translation on hover to display on the main page. This is my site: http://www3.carleton.ca/clubs/sissa/html5/ However, on mobile devices this isn't the best solution to display this div. Hover doesn't work well and I have to click often to get it ...

 
@phenomnomnominal: yep this is actually my reqAnimFrame function
window.requestAnimFrame = (function(){
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
window.msRequestAnimationFrame ||
function( callback ){
window.setTimeout(callback, 10000 / 600);
};
})();
 
10:40 PM
Okay, that's just a shim, do you know what it actually does?
 
10000 / 600 rofl
 
it makes my browser repaint
 
Okay, close enough
 
so my display has an animation
 
user2157210
@Batman google
 
10:42 PM
Well what you're doing with bind is creating a new function, based on an old one
 
@IvoWetzel haha yeah... cash cow ! I don't know whats the secret behind it
if I only knew......
 
the difference is that you are 'binding' what this is inside the new function
 
I have a lot of variabiles access with this. like:
this.array, this. timer - are all these variables sent to the visualization function?
 
no, this is
And what this is depends on how the function is called (normally)
By using bind, you make sure the this you get is the this you want
 
@jAndy You know you need to pay us protection money now? I mean, come on, you're making a looooot of rep right there it would just be fair to, you know "give something" back
 
10:45 PM
In your case, it is the object with the visualize function on it, and presumably the properties you just listed.
 
i love this discussion about this. actually, this always leads to so nice confusion, at some point you're uncertain if this means this or this
 
Hence this
 
yes and is totally confusing
:S
 
this this is the old this.
 
got it
 
10:46 PM
i didn't
:(
 
but what about this ?
 
!!/mustache alex-shesterov
 
user2157210
the bot is dead
 
!!/live
 
@rlemon time to reset the bots
 
10:47 PM
@user2039789, all you are doing is saying, "Whenever an animation frame is fired, run this function, and inside that function, this should refer to whatever is the value of this when the requestAnimFrame is first called."
I doubt that's much clearer.
 
@phenomnomnominal so I am sending these properties to the visualize function?
 
no
You are binding the context in which the function is called to the object that contains those properties
Which can then be referred to via the this keyword
 
this this keyword..., really awesome. love this !
@phenomnomnominal how dare you to use that instead of this actually !!
THAT MUST DIE
there is only THIS
 
that is taking this conversation about this too far.
 
but this is so much stronger than that
 
10:51 PM
this is why i prefer WebWorkers. No this just self
 
O.o
 
@XCritics Sorry, missed that. Was at dinner
 
webworkers don't have 'this'?
 
this is overrated
 
!!> console.log(this)
 
10:52 PM
sorry for this:
function one()
{

this.analyser = value;
this.b = 10;
requestAnimFrame(this.visualize.bind(this));
};

function two()

{
var times = new Uint8Array(this.analyser.frequencyBinCount);
this.analyser.getByteTimeDomainData(times);
requestAnimFrame(this.visualize.bind(this));
}
 
don't be sorry for this
 
function two is actually named funtion visualize()
so can someone explain now
what this.analyzer does, and what this.visualize.bind(this)
mean
 
@user2039789, I got to be honest with you, I think the Web Audio API might be a bit beyond you
 
yep i know :)
 
@user2039789 basically, it passes in the function visualize to requestAnimFrame while binding the current value of this as context for the visualize function
this means, that this inside visualize equals this !!!!!!!!!!!!!!
 
10:55 PM
I have an idea
lets replace the word this, with carrot
 
$( carrot ) mhhh
 
@user2039789 the value of this within a function context is decided dynamically, based on how a function gets invoked, that this is the first important thing to know about this
2
with .bind(), you can somewhat brand a value for the execution context of a function
 
var carrot = {
    visualize: function () {console.log(this.myCoolProperty); // look at me visualising shit! },
    myCoolProperty: "HOLY BANANAS!!!"
}

var banana = {
    myCoolProperty: "HOLY CARROTS!!!"

}

function bah () { requestAnimationFrame(carrot.visualize.bind(carrot);)}
function bahDifferentThis () { requestAnimationFrame(carrot.visualize.bind(banana );)}
 
you can actually pass any object into .bind() as first argument, which then gets accessed via this
 
10:59 PM
I don't want to say I got it, cause you will stop. but i liked and I got it
:)
 

« first day (900 days earlier)      last day (4046 days later) »