« first day (835 days earlier)      last day (4099 days later) » 

12:00 AM
I thought his country was Israel
And he's lying about his age... well, his human age, anyway. He actually ages in dog years.
Which would make him around... 642 years old.
 
we might should stop this discussion.... better hide your children and your pets.. close the windows etc... maybe Zirak won't see us
 
Oh crap.
:locks the doors:
WHAT WERE WE THINKING!?!?
 
but I'm not scared anymore... @rlemon just randomly guessed the color of my shirt.. just out of nowhere
I can't get shocked anymore today
 
lol
 
Anagram game : "Gate Hem" @jAndy go!
 
12:02 AM
hehe
Its spelled correctly already
 
Anagram !== word jumble.
 
doesn't anybody own a gate hem ?!
 
An anagram is a type of word play, the result of rearranging the letters of a word or phrase to produce a new word or phrase, using all the original letters exactly once; for example orchestra can be rearranged into carthorse. Someone who creates anagrams may be called an "anagrammatist". The original word or phrase is known as the subject of the anagram. Any word or phrase that exactly reproduces the letters in another order is an anagram. However, the goal of serious or skilled anagrammatists is to produce anagrams that in some way reflect or comment on the subject. Such an anagram ...
 
isn't that word jumble ?!
...rearranging the letters of a word or phrase to produce a new word or phrase...
 
An anagram is a word jumble that forms new words?
 
12:04 AM
the only similarity is that they are both word game s
 
So... a more specialized word jumble?
 
word jumble would be me putting the letters in random order
 
sdufhsdufhds9fdh89f
 
anagram is a new word.
 
lol
 
12:05 AM
DAMMIT
I come on here for a second and lose the game.
 
yea this room really turned into a battlefield for it
I was thinking about creating a little hangman javascript game for you guys... but I figured to put out the searchphrase like
_ _ _ - _ _ _ _
would be pretty obvious for you experienced players
 
I've decided to make a new game. Based on positive reinforcement. It's called "The Other Game" and there's one rule: If you think about The Game or The Other Game, you win.
 
eat-shit?
 
eat shit and die !!!!!
who said it ?! who said it ?
 
12:11 AM
!!> "the game".split('').sort(function() { return Math.round(Math.random()*2-1);}).join('');
 
@rlemon "the agme"
 
Word Jumble.
a poor one
 
Really good one
 
!!> "rlemon is awesome".split('').sort(function() { return Math.round(Math.random()*2-1);}).join('');
 
@rlemon "seoni orlmmw seea"
 
12:13 AM
that was a game ....
 
Math.random() > .5
 
uhh excuse me..
you could learn so much from it as teenager boy
how to deal with the bad boys...
good language...
how to pay women...
 
:( copy... I suck
 
@rlemon: ohhh no, I actually like your approach better, I think I like three possible states moar
but it should be 0, positive or negative tho
which it is
 
Can white space in an XML file cause disturbance during a node search? I have two identical XML structures, each have different values. However one search finds the correct nodeValue and the other search returns undefined
 
12:23 AM
@atomSmasher Yep.
 
awesome
 
I think the three states helps me understand what is happening a little bit more - thinking of sorting that is
but it's still a little bit 'between the lines' type of calculation anyways
 
Why have I never seen this before: getfirebug.com/releases/lite/1.2
 
From within a function of an object (a backbone model, in my case) is there a way to get a reference of the object? 'this' works a lot of the time but if the function is called externally it sometimes doesn't
 
@TroyCosentino: not really. The value of this always depends on how a function was invoked
unless it was bound through Function.prototype.bind
 
12:28 AM
actually, what if in my initialize function, i set this.self = this or something? Since in initialize this will always refer to the object
 
@TroyCosentino: wouldn't help you if the value of this changes based on invoking, then all the sudden this.self would not refer to that reference anymore
you should store the ref in a local variable instead
 
ahh true true
 
var self = this; is most commonly used
eventho its actually bad practice because self is a global reference pointing to the current frame/window object, but thats just a little rant of mine and nobody seems to care anyway
 
that still depends on what this is when i declare it though
 
@TroyCosentino: you said it will always have the "correct" reference on its first call ? so just store it
 
12:32 AM
"When in doubt throw libraries at it otherwise you might have to learn! Scary thought.." — rlemon 5 mins ago
:( people suggest jQuery for everything
and actually make it sound like you're doing things wrong if you do not choose to use an abstraction lib
futhermore does anyone else get the feeling like people are under the assumption that libraries are immune to bugs / support issues?
or that they are doing them with by some means that us mere mortals are unable to produce
 
@jAndy it will in my initialize function, so the idea would be that self would just be there until i go back and grab it in a different function. But it would not be directly linked to my model in any way
and by so the idea i mean var self = this
 
var myObj = {
    foo: function() {
        var self = this;

        self.foo = function() {
            console.log('this is: ', self);
        };
    }
};
something like this might do it
 
self.foo = function() {}.bind(this); // ??
 
@rlemon: I was thinking the same
 
12:36 AM
but doesn't seem to work
 
@rlemon looking at that now, thanks
 
I don't know if I like the usage of .bind() in that way here that much
 
!!> var foo = { bar: function() { console.log(this); } }; foo.bar.call("test");
 
@rlemon "undefined" Logged: "test"
 
seems to work for me
damn
i'm retarded
 
12:39 AM
...must....resist.....to....star.....
 
!!> var foo = { bar: function() { console.log(this) }.bind('test') }; foo.bar();
 
:p
 
@rlemon "undefined" Logged: "test"
 
there we go.....
stupid rlemon is stupid
pin > unpin === star your own message
 
EXPLOITS EVERYWHERE AROUND
 
12:40 AM
<script type='text/javascript'></script>
    $('#Firebug a.Tab').over(function () { debugger; });
    $('#Firebug a.Tab').off('click').click(function () { debugger; return false; });
 
so basically, it makes 'this' always refer to whatever is in bind()?
 
Me: "WHY THE FUCK ISN'T THIS WORKING"
 
(just to make sure im clear on it)
 
it binds the value as the context.
afaik
 
@rlemon @jAndy thank you both
 
12:41 AM
I've never used it in practice
never had too
 
I'll try it out and see how it works out haah
 
I'm still in doubt about .bind() here respectively your usecase
 
^ i'm cool with support latest 2, lots others are not however
dunno if bind is for you
 
yeah, maybe not. I'll just find another way around it probabyl
probably*
 
but if you are like me, and you live life free. .bind() 'this' with a kiss and say fuck you IE!
 
12:44 AM
0
Q: Convert Repeating Decimal to Fraction

user1822824My code converts repeating decimals to fractions. It works but I am interested in feedback on how I could improve and/or simplify it? jsFiddle: http://jsfiddle.net/tfgTu/ <script> // Repeating decimal // 21.83(35745857) var decimal = 21.8335745857 // Total length of the decimal var decim...

 
its not really about compatibility what me disturbs here, much more that you have to 'hardcode' the context
he sounded like.. he doesn't really know the value/object, just that it will be right on init
 
variable context can be passed.
to me it's just a workaround to defining the function and calling it with .call(context)
var fn = function() {}.bind(context);
fn();
// or
var fn = function() {};
fn.call(context);
 
well.. if the function gets initally called like obj.method() and later with different .call() or .apply() or just like var abstract = obj.method; abstract()
 
I mean.. I just don't see the generic uses.. but then again I have seen some 'interesting' uses on SO to do some strange things I don't fully understand..
 
you want to store the original object reference like I did in my example
 
12:46 AM
so I mean there must be some purpose to it other than what we are seeing.
meh.
it's sunday. fuck thinking.
 
still annoys me tho that bound methods are like 435983457439857498% slower in calling
I use it anyways, its cool :p
toStr = Function.prototype.call.bind( Object.prototype.toString ); // yeehaaa !!
 
php to check if array has anything?
 
!!> var foo = function() { console.log(this); }.bind('foo'); foo.call('bar'); // who wins?
 
toStr("");
 
@rlemon "undefined" Logged: "foo"
 
12:48 AM
ooo ouch
 
if ($theArray.length > 0) ?
 
I actually expected bar to win
 
!!> var toStr = Function.prototype.call.bind( Object.prototype.toString ); toStr(""); // yeehaaa !!
 
@jAndy "ReferenceError: toStr is not defined"
@jAndy "[object String]"
 
48 hours with no sleep \o/ , my family is so crazy
 
12:50 AM
I really need some good food + porn to accomplish that
beside a good reason
 
nothing to see here ... Move along... I said move it!
 
@Darkyen: why does your familiy prevent you from sleep ?
 
@rlemon i leave them on 14th feb
valentines day gift to self (XD)
 
@rlemon: would be a great inscription for a gravestone
 
My family was quite the opposite - at 16 they all moved out and left me alone :(
but then I was all like - OMA GADZ IM 16 WITH A HOUSE TO MASELF! wish I had friends to party with... ohh well.. porn at full volume at least :)
 
12:54 AM
@rlemon mine are so friken crazy
 
php how to check if array has any entries ? :( i cant find it
 
bleh i had 104 fever one day , my dad told me that i am somehow acting it and making it out because i want to skip college -- , thats just madness --
 
isn't it like 104 in india...
when you put a thermometer in your mouth does it cool down?
 
 
12:55 AM
an empty array will be empty() = true?
er empty($array) = true?
 
@jAndy LoL
/*Thats none of your business */
 
I love empty
 
bleh
 
12:58 AM
The world needs this generator
 
lol tombstone generator
 
why actually da fuq not :p
I want some inscription like...
Object.seal( [Infinity] );
just for the lulz !
 
I love that gen !
would be even cooler for a perl programmer, they have the bless keyword
 
Wanna see Weird Al with a dead hooker? aux-www.s3.amazonaws.com/wp-content/uploads/2012/12/…
redtube.com/174545 SFW - the ads... and other site content... LMAO
Spolier: Redtube gets rickrolled.
LOL
 
1:16 AM
Also... NOT ACTUALLY SAFE FOR WORK IF YOU PLAN ON SCROLLING
 
> SFW -(minus) the ads... and other site content...
 
lol
 
That was not entirely clear
 
awesome reddit
 
1:18 AM
lol
 
@AmaanCheval you probably was born in the same year as javascript !
 
rofl
 
LMAO
 
@rlemon lmai'
 
1:23 AM
that site is freaking hilarious
 
laughed my ass infinitely
 
Who has a good way to wait for specific elements to exist?
As in elements added after the page is loaded
 
Sorry, misread that. How are they being loaded?
 
also misread
 
m59
a function with no arguments is really just a sad cyclops.
() {
 
1:36 AM
hehe that is kinda funny. like a cheap smile kinda funny.
 
m59
makes me laugh :)
 
It's added within Firebug lite
 
So a function with arguments is like a sad news scroller?
 
(function(fn, selector) {
  document.querySelector(selector) && (fn());
  setTimeout(arguments.callee, 1);
}(callback, "#foo"));
function callback() {
  alert('here');
}
 
@rlemon, yeah thats what i'm doing, dumb
A function with no arguments and a binding for this in Coffeescript is a small penis with only 1 ball: ()=>
 
1:39 AM
I don't know if there is any better solution unless there is some magical ES5 thing
 
@phenomnomnominal Nah, that's just CoffeeScript in general.
 
CoffeeScript has nothing to do with Coffee... I wonder if that was a joke about JavaScript having nothing to do with Java..
document.querySelector(selector) && (fn(), return); // break the loop... duh :P
 
bah
unexpected token.
 
1:43 AM
Lame
 
no short circuiting there i suppose.
nvm.. got it.
(function(fn, selector) {
  return document.querySelector(selector) && (fn()) ||  setTimeout(arguments.callee, 1);
}(callback, "#foo"));
function callback() {
  alert('here');
}
 
<div class=" Block Unvisible"></div>... seriously? Unvisible?
 
awww boo
doesn't work.
I try to write nice elegant strange looking code - and it fails me
back to good old readable muck.
 
@phenomnomnominal That one made me laugh
 
Just makes me angry...
 
1:48 AM
<div class="Don't-look-at-my-shame">
@phenomnomnominal is that code you're supporting?
might be some coders idea of an injoke
 
m59
@phenomnomnominal, @SomeKittens LOL
 
<!-- not working
... bunch of html code
-->
^ seen on a production site
can't remember which atm
really? you can't remove it from the production environment? just comment it out?
 
I like how jade removes newlines to dissuade people like us
 
psst... new guy just joined.. has only two Questions posted to main site... both Java. I'm nervous. Lets see how this plays out....
 
@SomeKittens, it's the the Firebug Lite code
 
1:51 AM
I'm still waiting for @lildigiman to ask his question hint hint
@phenomnomnominal Yeah, I'd go for an inside joke
 
I've solved them myself =P
 
!!kittens/define inside joke
 
@SomeKittens, here's hoping!
 
@SomeKittens Y U NO MAEK SENSE!? Could not understand kittens/define inside joke
 
Inside joke: n. A joke that's ingrown.
 
1:52 AM
@SomeKittens I feel like that should be <script class="dont-look-at-my-shame" src="jquery.min.js">
 
@lildigiman Well fine. Glad you could wade your way through my attempts at clientside code.
 
@so
whoops
 
I love Node because I can code serverside but still have an excuse to hang out in this room
 
<script src="source.min.obfuscated.to.fuck.screw.you.nanananabobo.js">
// fu don't be stealing my js bitches
</script>
 
@SomeKittens yeah yeah
 
1:54 AM
@lildigiman You can edit messages, click the arrow to the left or press the up arrow key when the textbox is highlighted
 
@RyanKinal comments in external sources is legal.
but ONLY!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!(^42) comments.
 
:ahem: ... do you mean classes?
 
classes maybe.
but inside
 
I'm confused
 
<script src="foo.js">
var x; // illegal
</script>
<script src="foo.js">
/* legal */
// bitches !
</script>
I first learned about the comment a few months back answering someone on 'why doesn't this code work' and had inline js with an external reference in the script tag. Zirak reminded me when he posted the spec and commented on that in the transcript a few days ago.
it's interesting tid bit.
 
1:59 AM
B... wh... that's interesting, but what does it have to do with me?
 
You saying you're not interesting?
 
<script src="foo.js">
/*
  foo.js does blah blab blah
  expects this that and the other thing
  poop
*/
</script>
 

« first day (835 days earlier)      last day (4099 days later) »