« first day (634 days earlier)      last day (4329 days later) » 

3:00 PM
@Abhishek Yeah... I'm not sure they'd pay for you to move.
But it's worth a shot.
I'm kind of wondering if the posting is even public yet :-P
 
@rlemon try this and if you can give some better approach then i promise to give you .5k rep
 
lol
 
2
A: alert() is alerting more than expected

Felix KlingNormally you unbind the previously bound event handler: $("span").off('click', hello).on('click', hello); This won't work in your case since at each evaluation of the JavaScript code, a new hello function is created, which is a different instance than the one your previously bound. But all is...

 
It seems it's not... or, at least, it's not on the HR/Careers page
 
@Zirak you're crazy man
Just get your pills
 
3:02 PM
@RyanKinal my skills ["audio_processing","ffmpeg","v8","node.js + internals","css3","C#,C++","javascript","php","mongodb" ];
 
@Zirak that was fxcking awesome man. maybe you should start a blog lke that ?
 
@Random that helps me none. you define TWO handlers so of course both are fired
if you want to over write a handler use .click(functionHandler);
 
Whats this about a meetup?
 
@RyanKinal sorry wrong person.
 
@dievardump Weren't you here when I wrote it, and shared the love for "autofuckinmagically"?
 
3:03 PM
@rlemon I'll assume that was meant for @Random
Ah, "automagic" - the technology upon which ASP.NET is built.
4
 
@OmeidHerat hehe, thanks. I'm considering making a blog, but all platforms are poop, and I'm too lazy to make a non-poop one. So for the mean time, I rant in here
 
lol
 
@rlemon .click() don't overwrite
 
wow, found my problem
 
A very uncommon question but still need answer
 
3:07 PM
If you're using nested for loops, don't use the same variable for both loops
 
Star this if you listen to music while you code. [or tell me how to poll that lol ]
4
 
I am sniping all the href="javascript:" answers here and downvoting stackoverflow.com/questions/11435549/… star this so others can snipe too
 
@Abhishek Star this if you don't like people asking for stars
 
w3 is suggesting to use jQuery, let the world end. |:
 
@SomeKittens Its not for stars i just wanna see how many do so
cause without metallica , linkin park , slipknot , skillet i fail too bad to code
 
3:09 PM
Star this if you've ever been tragically seduced and raped by a clown called Tiddles.
We're tracking the fucker down
 
Oh dear. Linkin Park? Slipknot? :shakes head:
 
@Zirak Oh I was, but the more you improve it, the more i think you're crazy. And It's why I like it more.
 
I find techno/electronica/dubstep to be better to code to (for me)
 
Star this and I will rate you.
 
@SomeKittens I agree. Also drum and bass.
 
3:11 PM
Oh yeah, can't forget DnB. Good stuff.
 
@Abhishek pfft. I raise you Zeppelin, AC/DC, Foghat, Local H, Iron Maiden, Eatliz, Genesis, Hendrix, The Who, Clapton, ... (Pink Floyd isn't on the list because I can't concentrate on anything other than Pink Floyd while listening to them)
 
I think it is time to listen to some Pendulum, then off to lunch. Glorious lunch.
 
@OmeidHerat what else would you suggest in there? mootools? good one
 
@SomeKittens dubstep ?
 
Mmmm. Dubstep.
 
3:14 PM
whenever i listen to dubstep i start mixxing music with the touchpad :-$ :-$ me was dj 2 years ago and the remains still alive
@RyanKinal oh comon paper cut , one-step closer arent that bad and when u fail or get ranted by the boss for no reason "What I have done" and "In the end" are quite helpful lol
 
@Abhishek I would much prefer iwrestledabearonce for angry music
 
@Random then $(element)[0].onclick = handler; that will.
 
who ?
 
how do you tell your boss he was flossed and wasted a few grand without making him feel dumb.
 
@FlorianMargaine mongoose with express-mongoose or without express-mongoose
 
3:17 PM
@rlemon "Hey boss, you are a really smart guy generally, but you just wasted a few grand."
 
^ this is what I code too
 
Not bad, not bad
 
@RyanKinal what did i just hear ^
 
The most amazing music of your life.
 
3:20 PM
:-D
 
urs is yet to hear
 
Pantera, Slayer, MedaDeath, Mushroom head, etc.
 
btw @rlemon o/ o/ o/ o/ o/ PANTER \m/
 
^ coding tunes.
 
3:21 PM
@Esailija There is a few good event libraries out there without the extra fuss, Events.js for example.
 
If i'm feeling like lighter music... mcplusplus.com
 
http://www.youtube.com/watch?v=4GuqB1BQVr4
[you shouldnt listen to this when code or u will lose it]
reported that song for child abuse earlier today , even the volunteer will chuckle lol
 
"without the extra fuss"?
 
@rlemon I prefer Frontalot or Lars, but <3 Nerdcore
 
3:22 PM
@Esailija jQuery is too much, if all you want is Events handling.
 
if you want events handling you will want dom too
 
if you ignore the other issues with jQuery.
 
if you want dom and event handling, you probably want ajax too
 
well, that is only a probably.
 
@RyanKinal yea whereas I love Metallica I cannot have as much <3 for their douchery with DRM
 
3:22 PM
@rlemon Indeed
 
"You ain't gonna need it" or “You aren′t gonna need it” (acronym: YAGNI) is the principle in extreme programming that programmers should not add functionality until it is necessary. Ron Jeffries writes, "Always implement things when you actually need them, never when you just foresee that you need them." Rationale According to those who advocate the YAGNI approach, the temptation to write code that is not necessary at the moment, but might be in the future, has the following disadvantages: * The time spent is taken from adding, testing or improving necessary functionality. * The new fe...
 
@Esailija If you want ajax, you might like this boat.
 
probably is only for ajax
you will want dom if you want events
 
@rlemon sorry ,but i don't wanted that to overwrite,May be you aren't interested in reading the question.There i Wrote a necessary function
 
and here is a good DOM lib.
 
3:23 PM
@Random clearly I am not. gl with it
omg WHY DO YOU NEED A SELECTOR ENGINE?!?! WHAT DOES IT DO THAT EFFING GETBY's WONT?
 
^ that is a DOM lib
 
selector engine is not a dom lib
 
Selector engine is not a DOM lib... it's a lazy mans way of traversing the DOM
ninja'd
 
3:25 PM
I can write a base selector engine in a few hours
writing good cross browser dom takes years of bug reports
 
okay fellas i better go and code :-|
 
Quick question, I have a function with a callback parameter that I send a function thought it. But I may not send it. So if I verify as ' if(callback) {} ' and the callback parameter is past, will it execute or will just check if it is not undefined ?
 
if I have a good selector, I am good with DOM. I never need anything more.
 
lol, ok then
 
the awkward moment when u realize you arent addicted to facebook but to SO chat
9
 
3:26 PM
@Abhishek that moment happened to me months ago :D
 
@Abhishek yeah, sucks, right?
 
I can quit anytime.
 
no, don't!
 
Actually its lovely but the realization is like

"WTF, i should be coding"
 
3:26 PM
Im not addicted damnit!!
 
LOL
 
we need you here!
 
the awkward moment when you realize you can justify being on SO chat because you are a developer and it at least is somewhat related to your job.... Facebook is a pro time waster
 
@Loktar sure u arent , but u arent quitting
 
How can I make a form (just a dropdown box) submit on change EXCEPT if one option is selected
 
3:27 PM
:P
 
Someone ?
 
and if u quit i am going to haunt ur subnet !
 
haha
 
@Andredseixas Undefined
 
i'd spam somethinghitme.com so bad, you'd come back crawling on your knees!
 
3:27 PM
I'm bringing back usenet, anyone with me?!
 
null
u should check for both
well just leave it
 
@Esailija This may be of interest to you.
 
Thanks @Abhishek
 
if(callback){
 callback(foo);
}
 
yeah Ill be here as long as I have internet access at work
 
3:28 PM
@Andredseixas Why on earth would it call it?
 
if( typeof callback === undefined ) {
    // callback was NEVER passed....
}
if( callback ) {
   /// if you pass FALSE or a falsy value this will pass.
}
 
@Zirak Javascript works on mysterious ways, that's why.
 
No it doesn't. This isn't Perl. To call a function, you need to...call a function.
I cannot see any rationalization to thinking "hey, if it's inside an if condition, but it's without any means of calling a function, then it must be calling a function, and not really inside an if condition."
But I'm on the lookout for a clown named Tiddles, so maybe I'm the insane one.
 
At least in c# if I do a If Condition using a function it will execute, that's why I thought...
 
If you execute a function inside an if condition, then yes, the function will execute
 
3:31 PM
function foo(bar, callback) {
     callback = callback || function(){}; // but really you should never do this... use a if like I showed in my previous example
     something(foo);
     callback(foo);
}
 
But I have to call as a method...
Yeah yeah, you're right @Zirak no need to attack me. It was a question that came to my mind. :( I hate you.
 
AAAHFGSADNFYDSGFUAY EAT YOUR BRAINZ
adds Abdredseixas to The List of People Who Hate Me, Part VI: The Empire Strikes Back
 
something.call( obj ) to call it as a method of obj
 
@Zirak I don't hate hate you, I just hate you.
 
Is your name Tiddles by any chance?
 
3:36 PM
@Andredseixas That makes so much sense.
 
No... my name is Andre..
 
Was worth a shot. I'll get him one day...
 
Tiddles ? Is that one of those bears from children cartoon ?
 
> But I'm on the lookout for a clown named Tiddles, ...
 
3:42 PM
Hi hi
 
hello hello
 
Hey neal
 
Is there a simpler way to do this:
<select onchange="console.log(this.options[this.selectedIndex].value)" name="company">
 
console.log(this.value)
 
Awesome, I figured it was easy. That's what I get for taking coding advice from microsoft...
 
3:50 PM
Odd:
1
Q: shiftKey in Safari on iOS

wizardzloyIs there any way to determine in javascript whether shift key is pressed on mobile keyboard, and distinguish it from the caps lock(twice pressed shift key)

My answer doesnt work on the iPad
 
4:02 PM
oh FFS!
that thing is a crime against humanity
 
@GNi33 eh?
 
internet explorer is screwing up my evening
 
Given that it's GNi33, he's probably complaining about IE
 
why does this thing have to be so blatantly stupid when it comes to z-indexing?
but i'll just shut the f up now ;)
 
IE screw up everything. ALWAYS :\
 
4:13 PM
Nah, it's not so bad
 
Hey does anyone have any experience with JsTestDriver?
I'd say I'm making some very amateur mistakes
 
@AdamLynch I have experience making very amateur mistakes
 
@SomeKittens don't we all
at least you always land on your feet
 
I hate my gf
T.T
playing ET , JB Boyfriend on full bass/voice
 
And on our next edition of "why communication is critical for coding teams," SomeKittens realizes that the code his coworker wrote is entirely incompatible with the plan as it currently stands.
 
4:22 PM
wait . Justin Beibers music can destroy the planet.
<trollScience>
E = hv ; | v is frequency

By definition of pitch , pitch is nothing but rate of vibrations producing sound. so basically frequency.

Now JB. voice has high pitch -> High frequency
So if a lot ( really large amount of people ) play Justin Beiber song on 100-120db.

There should be enough resonance that resultant should cause physical damage to massive objects..
Hence Proved JB is leathal
</trollScience>
@SomeKittens lol
 
Actually, just figured out I was looking at the wrong code
 
Easy rep 101: Look for old questions that the answers no longer apply and update with new relevant answers stackoverflow.com/questions/6200013/…
 
Turns out the code I should have been looking at doesn't exist, because my coworkers expected me to write it
 
returnf alse; // syntax error
@SomeKittens Brilliant!
 
I honestly didn't expect to get a check here.. just doing my due diligence and making sure the community knows
 
4:31 PM
@rlemon \o/
 
So, any recommendations for modal windows?
 
@SomeKittens DIY
 
hrmm. so why not on that Q?
it is a year old and I got the +2 and a check
ohh as first answer
got it
0
Q: Best hosting for Ruby on Rails

DanI was wondering what people think is currently the best host for Ruby on Rails. I found some older posts on here on the subject but I wanted to know what the current agreement is. Shared hosting is ok for now but I would like an option from dedicated hosting later. Thanks!

how is this a real question
 
@rlemon > This badge can be awarded multiple times
 
4:36 PM
Yecch. Sorry about that.
Dammit
 
@RyanKinal Dumb question, but I'd like to implement it myself (learning experience) and not use jQuery.
Any ideas for inspiration/tutorials?
 
awesome, thanks
(did you just search GitHub?)
 
Nope
That's in use on my company's site
 
ah, ok
 
4:41 PM
It's the first thing I wrote at this job
So, it could probably be improved, lol
(I mean, ew, CSS in my JS... what was I thinking?)
 
Or I could be totally unclassy and do this
@RyanKinal how serious were you about a meetup in Buffalo?
 
OK Question of the day: 8gig or 16gig Nexus 7
 
I'm down for one. Depending, of course, on when. Weekends in July are kinda booked for me.
 
with cloud services I have never used over a gig on my phone
 
@rlemon ... there's a choice there?
It's $50. Get the 16.
 
4:47 PM
yea $60 more for double the space.... but I am doubting i will ever use it
 
@RyanKinal I wouldn't be able to do it until September (when I return to Rochester for college)
 
ugh... I already have a tablet but it sucks.
 
Right right
 
runs gingerbread .... not very well.
so I don't really ever use it
 
I've heard really good things about the Nexus 7
 
4:49 PM
I am just afraid this will happen with the nexus 7
ahh fuck it. i'm ordering
 
> Note to all tablet makers not named Asus: This is how you make a 7-inch tablet.
 
@rlemon might kill me for this but I think I'll just use jQuery
 
hey if you know what you are doing and you are consciously making the trade off (including the lib for ease of coding) then cool.
My beef is with the blind love for this monstrosity of a lib.
the people who think you should use it because it is a simple shim.... well that is just blasphemy
 
I don't think I can say I know what I'm doing but it'll be worlds easier to use jQuery UI for a modal window instead of writing it myself.
 
ewww
DO NOT USE jQUERY UI
eww
 
4:54 PM
@rlemon I LOVE JQUERY UI, USE IT!
 
enough said
Dont do what Neal does.
download bootstrap.... creep the less. just grab the modal window css.... and the corresponding plugin code and roll with that
bootstrap has modals no?
 
@rlemon can you translate that into noob?
 
@SomeKittens aka, just use jQuery :-)
 
twitter?
 
4:57 PM
@SomeKittens yes
 
// Super small jQuery lightbox
$(document).delegate('a[rel=lightbox]', 'click', function(e) {
    var href = this.href,
        tags = href.split('#'),
        tag = tags[tags.length - 1];

    $('#' + tag).fadeIn(600);
    $('#blanket').fadeIn(600);
    e.preventDefault();
    return false;
});

$('#blanket').click(function() {
    $('.lightbox').hide();
    $(this).hide();
    return false;
});
 
Honestly, jQuery lightboxes are super-simple to write.
 
@RyanKinal I may try that
 
5:01 PM
so are dialogs
 
Obviously, your HTML needs to include the target div, and the blanket
 
they are 99% html and css
 
guys can any one help me in mvc3
please
 
@anilkumar sure, just give me a bit
 
5:12 PM
Fucking google wallet declined my credit card... called my bank they said it's a glitch on their end my card is fine....
 
Google must have a biiiiig wallet.
 
on hold with google and i get the message "We're experiencing higher than normal call volume and your call may not be answered in a reasonable time frame. you can wait or call back later"
 
@anilkumar Looks like Garrett beat me to it
 
@SomeKittens thats not the answer m looking for
my roles are coming from db
 
One offtopic question why does girls think they are the only ones getting hurt in a relationship ? and why dont they understand when u work its for em ?
 
@SomeKittens i alrdy checked it
nope
 
@anilkumar Try again. And then quit spamming the Javascript room for an ASP.NET problem.
 
can u help me in javascript
in mvc 3
 
5:20 PM
@Abhishek if we knew... we would probably all be gay
^ women be crazy yo
 
@SomeKittens no i ma not quitting
 
@rlemon I think i am fed-up of relationships
 
this is another problme i have
 
they waste nothing but space and time
 
yes but sex is such a wonderful thing
and man boobs are never as nice
 
5:23 PM
in my mvc3 login page i will be hiding the menu ,which is a master page i have to get the menu div after user logs in l
cana ny one help me with this question plz
 
I have lost intrest in any relationship robert
seriously they are just waste and in the end u are

$($);
..
 
function you(are) {
     return !ok;
}
 
Arg.
This modal stuff is annoying
 
forEach( var relationship in life.relationships ){
  pain += Infinity;
  strength -= relationship.time*relationship.depth;
}
 
What on earth does !function ($) { do?
 
5:30 PM
it turns the function declaration in a function expression
 
@SomeKittens It makes you look cool.
 
i.e. a less readable way of (function(){})()
 
$.extend(girlfriend, { annoying: false, sexy: true });
 
@ThiefMaster ...er, what?
 
@rlemon: raise NotImplementedError
 
5:31 PM
@SomeKittens Twitter Hipster BS
 
it's the cool new way
 
> TC39 is considering the use of ! as an infix operator. This code will break in the future. Fix it now. Learn to use semicolons properly. ! is not intended to be a statement separator. ; is. - Crockford
 
saves you a character!!!!
 
@SomeKittens:
163
A: What does the exclamation mark do before the function?

NeilOK, so back to JavaScript syntax 101. Here is a function declaration: function foo() {} Note that there's no semicolon: this is a statement; you need a separate invocation of foo() to actually run the function. On the other hand, !function foo() {} is an expression, but that still doesn't inv...

 
alright, ragequit
 
5:33 PM
thanks. I sorta get it.
 
What's so bad about it ?
I mean, lol ~function vs (function in compressed code
 
It's a hack
 
@rlemon would you mind going to a private room and helping me with this? I'm way over my head. (I understand if you're too busy)
 
help with what?
twitter bootstrap modal window?
 
@rlemon Yeah.
wait
if I understand correctly, I can call a modal with one line of JS, right?
 
5:38 PM
Do someone know if this will work on every browsers ?
String.prototype.format = function (replace) {
    return this.replace(/\{(.*)\}/g, function (m, n) { return replace[n] || '{' + n + '}'; });
};

'my name is {my-name}'.format({ 'my-name' : 'dievardump' });
I'm not sure of the callback function for replace on old browsers
 
@rlemon My codes is SVG.
 
dude i've never worked with SVG
we've been over this
lol
 
I can add stuff via JS, right?
 
5:42 PM
fucking half hour on hold with google
jesus
idk try
 
i will see you guys after two / three days..
 
alright, here goes nothing. Good luck with Google.
 
yea i just hung up
i'll try back later
 
It's been too long since I've expressed this sentiment: I hate ASP.NET.
That's all. I just hate it.
 
Heelo
 
5:52 PM
Hi
 
Someone can tell me the name of the jquery effect when a user join in this chat room and her picture shows in a box ?
 
animation :p probably slideDown
 
"jquery effect" :'(
 
@ThiefMaster seeings how you are in a giving mood.... who wants to convert this to HTML / CSS (minus the wordart crap in the middle)
I ripped out the logo
 
heh, no thanks
 
5:56 PM
getting the HTML/css for the text is not working for me
 
unless you write that stupid exam for me on friday
 
@Esailija how can I say ? :P
 
sure
i cannot guarentee a passing grade
 
writing xslt offline.. xslt to do stuff like creating a SVG pie chart from some xml input!
because that's so important to do without any docs etc.
 
I'm not sure what you mean, if you mean the moving boxes that's just animated top and left properties
 
5:58 PM
@ThiefMaster Thank's, I think this will be usefull
 
ugh. what @Esailija was trying to tell you @LucasSantos was that this is not singular to jQuery. you are "animating elements on a page" or to be more specific "how to slide an image using javascript" would probably have landed you a proper answer on SO or google.
 
@Esailija Exactly...when someone join is this chat room, the box increment the picture
 
and the things I have in quotes are searchable terms which would give you the answer
 

« first day (634 days earlier)      last day (4329 days later) »