« first day (906 days earlier)      last day (4049 days later) » 

8:00 PM
I changed my nameserver over 48 hours ago and it's still down, what the shit
Really wish I didn't waist my time till 5am trying to fix something that isn't broken :/
 
so last night I was fixing a speaker and didn't have shrink wrap or electrical tape... so I resorted to using hot glue to insulate the wire.... should be ok right?
 
@XCritics Average is about 730
 
@XCritics I spent a day trying to get SSL to work, turns out it doesn't without the business level plan
 
haha :P
 
man I could go for a taco
 
8:07 PM
!!> (627 + ( 4 * 720 ) + ( 7 * 744 ) ) / 12
 
@Kevin 726.25
 
^ average hours in a month
 
@Loktar hahaha XD
 
lol
 
Hey, is there another event than srcipt.onload to trigger when the script is fully loaded?
 
8:10 PM
the image is so retarded
shes making love to it or something
 
@Loktar lol
love this kind of images
 
@MikeBoutin nope, why?
 
this one made me cry last week
@FlorianMargaine to be sure
 
well, there is.
 
@FlorianMargaine which event?
 
8:13 PM
hm, no, there isn't
 
ok thank you
^^
Cause i create a module and i load the youtube api in it with a dom created script element
 
scriptb.js (loaded dynamically):
window.foo = true;

scripta.js
(function test() {
  if( window.foo ) {
     init();
     return;
  }
  setTimeout(test, 1);
}());
 
and i just want to be sure the youtube api is loaded
 
@MikeBoutin test for the API and if it isn't there setTimeout and test for it again
 
@Kevin 1ms polling? Did you know the browser won't let you go under 4 ms?
 
8:15 PM
@JanDvorak setting to 1ms gets you the 4ms, and 0ms gives unexpected delays in Chrome 25
so I just always 1 it
(function test() {
  if( window.YouTubeAPI ) {
    init(); return;
  }
  setTimeout(test, 1);
}());
 
@Kevin I've never observed such delays. C25 is dead now anyways
 
whats the best way to do this :
function YoutubeApi(callback){
	this.createScript(callback);
}

YoutubeApi.prototype = {

	createScript: function(callback){

		console.log('create script');

		var body = document.getElementsByTagName('body')[0],
			script= document.createElement('script')
			src= 'https://apis.google.com/js/client.js';

		script.type = 'text/javascript';
		script.src = src;
		script.onload = callback.call();

		body.appendChild(script);

	},

	callbackFn: function(){
		console.log('callback');
	}

}

window.onload = function(){
 
I just updated from C25
 
@JanDvorak I was chunking some DOM calls using 0ms timeout vs 1ms timeout and 1ms performed much better
 
like, 5 minutes ago
 
8:18 PM
10K dom calls using 1ms took like 2s. 0ms took like 4s, then 6s, then 3s, then 4s. etc.
 
Mine is C26, and I don't remember restarting Chrome for a while
 
@MikeBoutin you don't need prototype/inheritance/whatever, just use plain functions + plain object
 
@FlorianMargaine it's for fun, i want to create a fully all in one module
i learn
 
modules don't have to be bloated :P
 
isn't script.onload = callback.call(); going to function almost the same as script.onload = callback; ??
 
8:19 PM
but if it's to learn, sure, just do that
 
bloated? C'est quoi en francais?
 
bloated is the feeling you get when you eat McDonalds
which is why Big Macs make me feel so jQuery
 
good night :) Gonna sleep with some soundcloud.com/rhmusic-3/take-the-long-way-home
Gotta love supertramp :)
 
@MikeBoutin "bourré", i.e. full of useless stuff
 
I love big macs
 
8:20 PM
@FlorianMargaine kk
 
I love jQuery
 
I love myself
 
Animated moustachification :
 
I love CoffeeScript
 
oh wai--
 
8:21 PM
@dystroy thats awesome
 
I avoid jQuery. Why? Because I can.
 
@dystroy that's pretty awesome
 
I embrace jQuery. Why? Because I can't avoid it.
 
has it's own moustachification
nice...
I don't add jQuery if it isn't already there; and when it is there I ensure I am using it only when it makes sense too. Why? Because I'm not a retard.
well shit, Looks like hubot is pretty damn nice. aside from the CS
 
@Kevin I use jQuery if it's available (or I know it'll be needed) and it makes sense.
 
8:24 PM
go run with the dog time
 
> Hubot is your company's robot. Install him in your company to dramatically improve and reduce employee efficiency.
 
see ya guys
 
$(window).prop("location",url) is just stupid..
 
@JanDvorak No it's better because jQuery
 
@JanDvorak exactly... I saw this the other day var elm = $(document.createElement(elmType)); elm.attr('class', 'foo bar');
o_O
 
8:25 PM
Well, you should do
 
@Kevin o_0
 
$(document, window).prop("location",url) : it's cleaner
 
!!/mdn document.location
 
I was under the impression window.location was the preferred one
 
8:27 PM
@JanDvorak not when you use jQuery...
 
LOL
 
I abuse jQuery like a bunch of elementary school children abuse a retarded child. It's sad really. (function($elem){ return $elem.eq(0)[0]+$elem.eq(1)[0];})(jQuery(1).add(2))
 
@dystroy document.location is non-standard AFAIK
 
$.fn.setLocation = function(url) {window.location = url};
 
(which is what you're setting there)
 
8:28 PM
$('<meta>', { 'http-equiv' : 'REFRESH', 'content': 'X;URL=stackoverflow.com/';}).appendTo($('head').get(0));
 
@dystroy that one is better :P
 
I am a god.
 
@Kevin .get(0) I believe
 
eh, technicality
 
8:29 PM
 @Kevin I don't think meta elements added after initial parsing work
 
$.fn.redirect = function(u){location=u;};
 
lets test it
 
@dystroy they do
 
new supa betsa plugin!
 
yes, they totes do
protip: don't wonder why it doesn't work then realize you didn't replace X with an actual number
 
8:30 PM
ok, I leaved the room because this one worked...
 
Location change with jQuery: $('<meta>', { 'http-equiv' : 'REFRESH', 'content': '0;URL=http://google.com/'}).appendTo($('head').get(0));
it is pretty bauce
 
You missed the opportunity to link to the github repository in which you'll maintain this great plugin
 
not a plugin, common sense.
 
It must be made a plugin !
 
8:32 PM
This is a plugin
it's my most awesome plugin eva!
 
How are we going to change page without a plugin
 
Object.getOwnPropertyNames(jQuery.fn).forEach(function(n) {
  var supaName = n.substring(0,1).toUpperCase() + n.slice(1);
  jQuery.fn['supa' + supaName] = jQuery.fn[n];
});
best code ever
 
!!/mdn getOwnPropertyNames
 
!!/eval global.whitey
 
8:38 PM
@canon "[object Object]"
 
lol
 
whaaat?
 
!!/eval JSON.stringify(global)
 
@dystroy Invalid command / console.dir(global)
@dystroy Invalid command / eval(JSON.stringify(global))
 
!!/eval Object.getOwnPropertyNames(global.whitey).sort()
 
8:41 PM
@canon "Array,ArrayBuffer,Blob,Boolean,DOMException,Date,Error,EvalError,Event,Float32‌​Array,Float64Array,Function,Infinity,Int16Array,Int32Array,Int8Array,JSON,Math,Me‌​ssageEvent,NaN,Number,Object,RangeError,ReferenceError,RegExp,String,SyntaxError,‌​TypeError,URIError,Uint16Array,Uint32Array,Uint8Array,Uint8ClampedArray,atob,btoa‌​,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,eval,global,isFinit (snip)
@dystroy "TypeError: Converting circular structure to JSON"
 
cackle
@dystroy global has a self property
gg
 
What's that ? node.js ?
 
yeah
 
I thought the bot was running in a browser
 
it is
eval is in a WebWorker
 
8:43 PM
And there's a global in webworker ? ... I'm outdated...
 
Bots view ^
 
kewl
 
is it ok to create your own attr like mynewattr or only data-attr?
 
@Connor only data-attr. See v
 
8:45 PM
only data- attributes are valid in HTML5 afaik
 
cool
 
> Note: All browsers can already use data-* attributes and access them using getAttribute. "Supported" refers to accessing the values using the dataset property. Current spec only refers to support on HTML elements, only some browsers also have support for SVG/MathML elements.
 
HTML is based on XML. XML validates its content via a DTD. "custom attributes" are not in any DTD. Thus, it'd be invalid HTML.
 
!!/eval Object.getOwnPropertyNames(self).sort()
 
@canon "Array,Boolean,Date,Error,EvalError,Function,Infinity,JSON,Math,NaN,Number,Obje‌​ct,RangeError,ReferenceError,RegExp,String,SyntaxError,TypeError,URIError,decodeU‌​RI,decodeURIComponent,encodeURI,encodeURIComponent,eval,global,isFinite,isNaN,par‌​seFloat,parseInt,undefined,whitey"
 
8:47 PM
My View of the Bots View ^
 
why is there a passport?
 
@Kevin what's up. haha
 
@Jambo too early. 4:50pm
 
@Kevin Chrome. WAHAHAHAHA
 
haha
 
8:48 PM
I leave work at 5 then home traffic.
 
okiesss
 
then I will solve your issues :P
 
haha
 
if you don't leave the room I'll ping you when I get home
 
in C#, 7 mins ago, by Pheonixblade9
Chromium just completely fucked up everything with their latest update. Title bars don't work, WebGL doesn't work... ugh
 
8:48 PM
cheeers man. apologies
Legend :)
 
Chrome. Chro-hahahahahaha
 
@KendallFrey whats wrong with Chrome
 
Chromium has sucked for me in the past
(Ubuntu 11.04)
So since 11.04 I've used Chrome on Ubuntu not Chromium
Sweet, my stepper motor came in
 
user2157210
you dont have that how is it called eh on linux do you?
 
8:56 PM
Chromium works very well for me on Ubuntu
 
my canary tab titles had vertical-alignment ADD over the weekend
 
user2157210
chrome canary?
 
i have a wizard and i am calling a database function in tab 2 whose parameters are based on tab 1 variables ...what i want to do is whenever variables of tab 1 get changed tab2 will automatically get change..but the problem is tab 2 data does not change when tab1 variables are change because page is loaded on the basis of initial variables....how to solve this problem any suggestion?
 
Who sends a board without a diagram :/
stupid Chinese (not all just the dumb shit who sent me this motor controller)
 
user2157210
@james wut
 
user2157210
9:02 PM
@Kevin i wont comment
 
@Nexxpresso i want to change wizard data dynamically ..based upon previous input
 
user2157210
Do I have to java for android app?
 
What's the client side equiv of url.parse(string).pathname?
nvm i think its window.location.pathname
 
I have a beard splinter in my finger
 
what's a beard splinter? A facial hair?
 
9:11 PM
when you use an electric razor to trim your beard, there are generally some small bits of hair still partially attached to the beard. You stroke your beard, BAM beard splinter
 
I thought you meant "bad splinter"
but yeah, beard splinters are bad
even though not etymologically correct, I'm afraid
 
!!/mustache AlexDresko
 
pregnantMen--
 
!!/mustache DaveRandom
 
9:14 PM
 
dissapoint.
!!/mustache m59
 
oh snap, double stache
impressive
 
m59
lol this again
 
!!/mustache shmiddty
 
9:18 PM
 
m59
gg
 
Benchmarks don’t lie, but liars do benchmarks.
 
m59
9:32 PM
@BenjaminGruenbaum object method lookup is hands down better. I've never heard of that until now.
I love it, especially that you can add more methods (or even take them away) at any time.
Are there any security concerns I need to consider if I make a test environment for my script that someone can input the options on the page and when they submit them, they get plugged into my scripts function call?
I can't imagine any case that this could be a security issue, but I'm a scrub.
 
user2157210
Where is Octavian when you need him
 
9:47 PM
Ah finally, my rails app is finally 100% ported to Node.js
 
running around the streets of Graz, looking for delicious Tschisi - icecream
i bet
 
Can you use your own domain name with heroku on a free acc?
 
@Jambo Yo i'm home now. Just gonna use the bathroom and feed my fish/cats then i'm all yours. (link to the page again please)
 
how to refresh a div tag content but not whole page?
 
@Kevin i read that quickly as you were going to feed your cats to your fish...
big fish.
 
9:49 PM
my puffer fish would eat my cat, regardless of size.
 
@BadgerGirl do you have an idea?
 
That's amazing! I want a puffer fish
 
@Jambo ok I might not respond RIGHT away but ping me with the link to the site, and the brief summary of what is wrong with it
 
No worries
 
what timezone are you in?
6pm here (EST)
 
9:56 PM
@Kevin GMT
 
so 11pm?
or am I going the wrong way
 
yeah
but it's all good
the past two nights i have been up til 4.30...working on this damn site!
which is why i am keen to just get it done haha
 
@james Kevin will help you.
 
Kevin is a dude :)
I already have a to-do list of coding to learn...I need to learn HTML properly, jQuery and better PHP
 
user2157210
php?
 
9:58 PM
*better PHP
 
@Kevin i got a reference..:P
 
I'm a noob aiight. I hack my away around code to make it work, and it takes ages..
 
better PHP === <?php /* just kidding */ ?>
 
user2157210
@copy He speaks of python?
 
spot the mistake... this cost me half an hour >_>
    template: function(template) {

        return function() {

            if (typeof template === 'function') {
                return template.apply(null, arguments);

            } else {

                var tmp = '' + template;
                for(var i = 0, l = arguments.length; i < l; i++) {

                    var arg = arguments[i],
                        regexp = new RegExp('\\$' + (i + 1), 'g');

                    template = template.replace(regexp, arg);

                }

                return tmp;
 
9:59 PM
@copy Are you busy? Fix my bugs. :(
 

« first day (906 days earlier)      last day (4049 days later) »