« first day (670 days earlier)      last day (4278 days later) » 

4:00 PM
!!/stat 617762
Uncaught TypeError are for pansies
!!/stat 617762
@Zirak Zirakhas 3287 reputation, asked 16 questions,gave 144 answers, for a q:a ratio of ratio
Awesome
 
!!/stat 617763
 
@SomeKittens Ray Ploskihas 151 reputation, asked question_count questions,gave 5 answers, for a q:a ratio of ratio
Still needs some polishing
 
definitely :-)
but it's nice
 
You can also do a search by username (if he's here on chat):
!!/stat Florian Margaine
@Zirak no method found with this name
 
!!/stat FlorianMargaine
 
4:07 PM
@FlorianMargaine no method found with this name
No "method"?
 
!!/stat 851498
 
@FlorianMargaine Florian Margainehas 6902 reputation, asked 15 questions,gave 366 answers, for a q:a ratio of ratio
 
@Zirak weird :/
 
!!/user FlorianMargaine
 
!!/stat 1216976
 
4:09 PM
That's double weird...didn't I fix that?
@SomeKittens SomeKittenshas 2670 reputation, asked 44 questions,gave 134 answers, for a q:a ratio of ratio
 
Woah. I have a lot of answers
 
not as much as I :p
 
ah, I get it. The space screws it up.
!!/stat "Florian Margaine"
@Zirak Florian Margainehas 6902 reputation, asked 15 questions,gave 366 answers, for a q:a ratio of ratio
 
Well, more than I thought.
 
!!/stat "FlorianMargaine"
 
user457812
4:13 PM
Will that handle divide-by-zeros in the event that someone has zero answers?
 
@FlorianMargaine no method found with this name
 
@Zirak no "method"? :D
 
I thought it'd be a lot less than ratio
 
I was probably stupid...
!!/stat SomeKittens
@Zirak SomeKittens has 2670 reputation, earned reputation_change_day rep today asked question_count questions,gave answer_count answers, for a q:a ratio of NaN:NaN
@nil yep, it uses Euclid's gcd for the ratio.
 
user457812
Ok
 
4:14 PM
bah?
yes, mock my incompetence ~_~
 
user457812
Mocking is fun.
 
!!/stat nil
@Zirak nil has 1701 reputation, earned 25 rep today asked question_count questions,gave 55 answers, for a q:a ratio of 0:0
That's better. A little bit. Kinda.
Fine, I'll succumb to internal pressure and add logs...
 
!!/stat Amaan
 
@Amaan Amaan has 2480 reputation, earned reputation_change_day rep today asked 8 questions,gave 116 answers, for a q:a ratio of 2:2
 
q:a ratio of 2:2?
 
4:19 PM
what? I didn't fix that shameful bug?
 
user457812
The ratios are formed using Cthulhu rules.
 
Hahaha
 
!!/stat dievardump
 
@dievardump dievardump has 626 reputation, earned reputation_change_day rep today asked question_count questions,gave 35 answers, for a q:a ratio of 0:0
yep. return ( a / gcd ) + ':' + ( a / gcd );. I wonder where the bug is.
 
Programming: n The process of getting it less wrong
 
4:21 PM
!!/stat dievardump
@Zirak dievardump has 626 reputation, earned reputation_change_day rep today asked question_count questions, gave 35 answers, for a q:a ratio of 0:0
damn it
 
!!/stat 0
 
@SomeKittens User 0 not found
well, crap, I'm stuck.
 
!!/stat 1
 
@SomeKittens Jeff Atwood has 21997 reputation, earned 10 rep today asked 15 questions, gave 143 answers, for a q:a ratio of 15:15
 
alright
 
4:25 PM
oh, forgot to implement the ratio fix:
!!/stat 1
@Zirak Jeff Atwood has 21997 reputation, earned 10 rep today asked 15 questions, gave 143 answers, for a q:a ratio of 15:143
 
!!/stat -1
 
I'm trying to make node-mongodb-native and EventEmitter work together, but I have a bug :/
 
Yeah, it's okay as long as everything's filled. For some reason, it doesn't like 0
 
@TomShreds found the issue gist.github.com/3371451
 
@SomeKittens no method found with this name
 
4:26 PM
!!/stat 100
 
@Amaan Eric Haskins has 3281 reputation, earned reputation_change_day rep today asked 15 questions, gave 48 answers, for a q:a ratio of 5:16
 
!!/stat Amaan
 
@SomeKittens no method found with this name
@SomeKittens Amaan has 2480 reputation, earned reputation_change_day rep today asked 8 questions, gave 116 answers, for a q:a ratio of 2:29
ah, the "no method found" is for when the bot can't figure out who's the username; forgot to test that.
 
can somebody tell me why here: jsfiddle.net/Ym7hc when using the array.concat method, I get more than simply the 2 arrays?
 
@FlorianMargaine lol
 
4:28 PM
@Nile You're loading MooTools
It screws up with Array.prototype
And that screws up with for loops
 
fixedit
 
@Zirak wow... lol stupid mistake. sorry, thanks
 
np. Now fix my problems ~_~
 
@Abhishek ??
 
ur assertions
Should return a well formed object
and it returns
it :3
 
4:31 PM
@Zirak what are your problems?
 
oh, you fixed the code?
 
@Nile See the above calls to /stat; when one of the fields is 0, it simply slides through for some reason.
one sec, I'll push changes to github and link source...
 
@FlorianMargaine yeap fixing and pushing now
 
great :)
add some tests then
 
[{"action":"yawn"},{"color":"yellow"}] -- What ur code returns
[{"action":"yawn","color":"blue"},{"action":"sleep","color":"yellow"}] -- what it should return
kinda wrong ?
 
4:33 PM
Here's stat source, and here's supplant.
 
@Abhishek I don't see any cool ass spinning flipping growing and shrinking images?
 
@rlemon today i am hella busy !
bt i am gonna make it (XD)
 
!!/stat dievardump
 
u know me i will do any css
 
@Zirak dievardump has 626 reputation, earned {reputation_change_day} rep today asked {question_count} questions, gave 35 answers, for a q:a ratio of 0:1
 
4:36 PM
> ReferenceError: hella is not defined
 
hahahaha
Oh man. I am such an idiot.
 
not sure:/
 
return obj[ $1 ] ?
    obj[ $1 ] :
    $0;
Ternary condition is false when obj[$1] is 0
 
if obj[$1] is 0, then it returns $0?
 
4:37 PM
In the replace function. Can't believe I fell for that again.
 
@FlorianMargaine i just had a look at the plates - source
!function(exports) {
RAGE!
;)
 
!!/stat dievardump
@Zirak dievardump has 626 reputation, earned 0 rep today asked 0 questions, gave 35 answers, for a q:a ratio of 0:1
There
@SomeKittens Fixed
 
@GNi33 haha
0
Q: Issue between mongodb and EventEmitter

Florian MargaineI'm having a weird issue between node-mongodb-native and EventEmitter. I've reduce the problem to this code: var mongodb = require( 'mongodb' ), Server = mongodb.Server, Db = mongodb.Db, events = require( 'events' ).EventEmitter.prototype; // Create a mongo client object var client...

 
@FlorianMargaine lol
seriously
 
@GNi33 What does that even mean?
 
4:40 PM
s.trim();
s = s.trim(); // :$ :$ :$
 
NOT the value returned by the function?
 
hahaha :D
that's the issue?
omg
 
@Amaan You can use the unary ! instead of surrounding the function with parens
//this
!function () {}()
//is equivalent to
(function () {})()
 
yep
it's still an ugly, ugly hack
 
Oh. Never seen that before
Agreed
 
4:42 PM
saves you one character, YAY
 
@Amaan that's usually to avoid "missing semicolons before" errors
 
Works with any unary operator; ~, +, ...
 
for example:

var s = 0

(function() {
    // ...
}());
this will cause an error
while:

var s = 0

!function() {
   // ...
}();
 
Wow. People find so many ways to be lazy
 
won't
this is why a lot of libraries start with ;(function() {}()); (notice the leading semicolon)
 
4:44 PM
@FlorianMargaine not just that
forEach should NOT BE USED FOR THAT
 
I use it LIKE I WANT!
 
it will only fix the element in local scope
"=|
seriously!
 
oh right
 
xD
 
should've used map
 
4:45 PM
:-)
 
@Abhishek if s.trim() worked, this'd be fine
I mean, "worked" in the way that "changed the object and not returning a new one"
 
You two work together?
 
somehow
alright, gotta go
cya
 
@FlorianMargaine pushed
 
heh: delete function () {}()
 
4:47 PM
@Amaan yeap
 
!!/tell rlemon stat rlemon
@rlemon rlemon has 5839 reputation, earned 0 rep today asked 72 questions, gave 314 answers, for a q:a ratio of 36:157
 
@Abhishek On?
!!/stat Amaan
 
@Amaan Amaan has 2480 reputation, earned 0 rep today asked 8 questions, gave 116 answers, for a q:a ratio of 2:29
 
@Amaan tapeer
 
Oh. He's working for the VosCast company too?
 
4:48 PM
!!/tell Zirak stat Zirak
 
@Zirak Zirak has 3287 reputation, earned 0 rep today asked 16 questions, gave 144 answers, for a q:a ratio of 1:9
How did I ask 16 questions?
What a lazy bastard I am.
 
You're calling @rlemon incredibly lazy then :p
 
!!/tell Zirak stat loktar
 
@Zirak Loktar has 8622 reputation, earned 0 rep today asked 4 questions, gave 350 answers, for a q:a ratio of 2:175
 
yEEAh BOYY
 
4:49 PM
oh, forgot to mark it as async
 
some of my questions need to be removed.
 
As a final test:
!!/stat nil
@Zirak nil has 1701 reputation, earned 25 rep today asked 0 questions, gave 55 answers, for a q:a ratio of 0:1
 
!!/stat 0
 
@Amaan User 0 not found
It should be 1:Infinity, for teh lulz.
 
do || !do; Try;
ReferenceError: Try is not defined
 
4:54 PM
@rlemon now i am on mission lemon
webkit only code , expand urself
 
lol ok
 
send
me ur flipper
 
var question = bb || !bb;
 
@rlemon the code u did for that 3d flipping
beauty
@FlorianMargaine check when u are okay
 
I didn't do any 3d flipping code :P
you may have me confused with someone else.
 
4:57 PM
what was that 3d thing then ?
 
uhhhhhhhhhhhh
 
!!/stat nil
@Zirak nil has 1701 reputation, earned 25 rep today, asked 0 questions, gave 55 answers, for a q:a ratio of H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ
:D
 
@rlemon nevermind
 
lol
@Zirak does it only work for people in the room?
can I pass it a userid instead?
!!/stat 90210
 
@rlemon user90210 has 3 reputation, earned 0 rep today, asked 1 questions, gave 1 answers, for a q:a ratio of H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ
 
5:00 PM
lol
 
!!/stat 617762
 
@rlemon Zirak has 3287 reputation, earned 0 rep today, asked 16 questions, gave 144 answers, for a q:a ratio of H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ
 
!!/stat 22656
 
@rlemon Jon Skeet has 471281 reputation, earned 305 rep today, asked 26 questions, gave 22010 answers, for a q:a ratio of H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ
 
!!/stat 84201
 
5:01 PM
whoops, misspelled
@rlemon Jitendra Vyas has 13792 reputation, earned -4 rep today, asked 1169 questions, gave 182 answers, for a q:a ratio of H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ
 
> earned 305 rep today
 
Huh. Apparently I'm unicode-illiterate
 
wtf
 
it's Jon Skeet
what were you expecting
he's allowed to go over every SO limit there is
 
@rlemon Username lookup only works if the user's in the room; user ids work everywhere
Also, fixed the unicode thingy...
!!/stat 22656
@Zirak Jon Skeet has 471281 reputation, earned 305 rep today, asked 26 questions, gave 22010 answers, for a q:a ratio of 13:11005
 
5:03 PM
Since June 6th, 2010 Jon Skeet has earned at least 200 rep a day
 
!!/stat Esailija
 
@Esailija Esailija has 29342 reputation, earned 65 rep today, asked 1 questions, gave 1114 answers, for a q:a ratio of 1:1114
 
yea I've been slacking
 
@Esailija how in the hell does someone get 200+ rep a day straight for 2+ years and is not a bot.
 
Jon Skeet facts..
 
5:06 PM
Jon Skeet does not need a compiler, he writes straight byte code?
 
!!/stat dievardump
 
@dievardump dievardump has 626 reputation, earned 0 rep today, asked 0 questions, gave 35 answers, for a q:a ratio of H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ
 
lol
you broke it!
 
0 question, I suppose
 
5:16 PM
can anyone help me with some javascript programming?
If anyone is good at math, I seriously need your help
 
Math is outdated. Nobody does math anymore.
 
yeah, we use jQuery for that now
 
Seriously, though, what's the question?
 
did we do something wrong?
 
No I mean math in general lol if you could look at this page: firstglobaltitle.com/net_sheet_calculator.php and check out the hoa_letsgo() functions I'm in a jam I need some help programming this
anyone?
 
5:24 PM
what is the "jam" ?
i'm not going through your code looking for the problem you might have
 
ok then
 
try to explain the problem a little, maybe we can help you then
dude
if(quarter = 4){
are you serious?
 
what? is it poorly written or something?
 
i found your problem
it's the whole function, it's not javascript
you know, you're assigning a value with =
 
what is it then?
 
5:27 PM
checking for equality -> ===
 
ahhh
ok
 
It is javascript... it's just... not terribly well written
 
im learning though lol one step at a time gentlemen
ok lemme fix that
ok updated
 
and you probably want an else if statement on all those if - clauses
 
And consider some indentation. Maybe some additional white space. It will be far easier to read that way.
 
5:29 PM
roger
 
hm
 
Does anybody understand JIT vs regular interpreted? Is it correct to say that a typical interpreted language converts the script to 'bytecode' which is code relevant only to the runtime of the language doing the interpreting whereas JIT actually boils things down to machine code where it executes directly?
 
Nope
 
Didn't sound quite right, but I've seen a lot of explanations, all of which don't sound quite right.
 
That was a "Nope, I don't understand JIT vs. interpreted"
 
5:33 PM
Oh okay.
Hmm... actually that seems to agree with wikipedia so that may be right.
 
can you use array.concat on arrays that have keys as strings? take a look: jsfiddle.net/jAvXg the console is logging '[]', an empty array?
 
@Nile if it has keys as strings, it's an object.
var someObj = { x:5 }
 
@ErikReppen i see. a bit rusty with my basic js :?
thanks
 
someObj.x or someObj['x'] would return 5
 
@ErikReppen yeah, thanks
 
5:39 PM
You can also set properties using [] that wouldn't be legal label names and only accessible with []
Any string basically, so like a list of URLs could be your labels.
And no, it shouldn't work with concat.
 
you could.... JSON.stringify(obj); then use some regex to parse the string to return the value... that is what I would do
 
hi gays ....
 
if the a and u keys were even remotely close I could lul at that thinking it was a typo
 
@manan you should fix that or else nobody will respond
 
i have some issue with javascript and php code combination
 
5:42 PM
and i have come issue with your opening statement
 
@manan thanks for the heart-warming greetings!
 
Does anyone know why 'toFixed' is undefined?
 
not toFixed is undefined
 
@GNi33 its not that toFixed is undefined
 
final_cred is
 
5:43 PM
brilliant thanks
 
@Nile You can iterate through object properties with for(var x in someObj){ console.log('propertyName: ' + x + ', property value: ' + someObj[x]); }
 
@ErikReppen Yeah, I know. Thanks
 
Oh oops NM. final_cred was undefined.
 
4
Q: Suggestion to make duplicate finding/closing easier

TimSometimes you open a question and you just know that it has been asked many many times before. I click on "Close as duplicate", just hoping that I will find something obvious in the "Similar posts list". After a brief scan of the list, I see nothing that matches. I know that this has been asked...

 
hai everybody i was created twitter tweetbox whenever tweet and submit the tweet i got error like The client identifier was missing or unknown
 
5:53 PM
because the client identifier was missing or unknown.... duhhh
 
i am new social plugin please explain how to correct ?
 
open the code, find the error, fix it, save the file, upload it to your sever. voila
@srini you question is not unlike me asking, "My car is broken, it is green. now it does not start. Can you tell me what the problem is?"
 
@srini probably the query params in the script tag src.
 
@ErikReppen i'm trying to get him to properly ask the question :P you know.. with maybe, some code?
 
I would recommend doing what I did any time you have a confusing error. Google the exact error message in quotes.
 
5:58 PM
^ that
 
Well you know, except the identifying stuff specific to you or your app.
 
@ErikReppen thanks for your guide.
@rlemon thanks for guide ,i correct asking question format next time
 
lol, somebody just answered a question I asked 2 years ago. And, it seems, didn't even read it properly.
-1
A: Nested jQuery.each() - continue/break

Serj SaganAs is stated in the jQuery documentation http://api.jquery.com/jQuery.each/ a return true; is the same as a continue; in a loop and a return false; is the same as a break;

 
@ErikReppen big thanks buddy i got it
 
6:32 PM
#2703 is also magnificent. Weiner is awesome.
 
Any users with only questions available?
 
Users with no answers... that could be difficult, I think
 
How do we feel about charging per line of code for a website?
 
LOL
 
6:41 PM
That's dumb
 
Rob
LoC is a difficult and stupid metric
 
The better you are at coding, the worse you get paid?
 
Or you need bigger projects?
 
Or, rather, the more elegant your solutions, the worse you get paid
 
Rob
@RyanKinal I was about to correct you.
 
6:42 PM
Lines of code simply means how many times you pressed enter. It doesn't mean how much time or thought you poured into it.
 
Rob
Bonus -> Use small functions, you get extra lines!
 
so how do you charge
 
Hourly, or according to a fixed amount agreed upon in advance
 
oh ok
 
Salary :-D
 
6:43 PM
Sometimes for free, if they're really good in bed.
 
yeah salary was fun until I realized I was their puppet
lol
 
var hello_world = "H";
      hello_world += "e";
      hello_world += "l";
      hello_world += "l";
      hello_world += "o";
      hello_world += " ";
      hello_world += "W";
      hello_world += "o";
      hello_world += "r";
      hello_world += "l";
      hello_world += "d";
      hello_world += "!";
hello_world.split("").forEach(function(letter) {
      document.write(letter);
});
should make me a few bucks no?
no elegant, not small.
 
@rlemon pfft, I bet you can squeeze more dollars from it.
 
haha, I don't think you guys understand the elegance of the question.
 
@Zirak yea, it needs jQuery
 
6:45 PM
If I find a library that does what my client wants, do I get paid for the library code too?
 
I think you can do whatever you want either way, telling a client a fixed price is about as hard as deciding what bills you have that month
 
I get paid for the intellectual knowledge that was required to meet the clients end needs. The path I take to achieve my (and in turn the clients) goals is irrelevant to the client so long as their needs are met.
 
Rob
@rlemon
var hello_world = "";
var addChar = function (charToAdd) {
    hello_world += charToAdd;
}
addChar("H");
addChar("e");
...
 
@atomSmasher TBH, I'm having trouble finding any good reason to pay by LoC
 
@Rob pfft. not good enough.
 
Rob
6:47 PM
we need to un-golf further
 
I just got bitched at for being clocked in for 16 hours, that's my main reason
 
@Rob I'm on it
 
Rob
let's pass it character codes and convert them to the characters
 
using unicode and split them up too?
 
Rob
yea
why not
 
6:47 PM
and you'll have to use a regex
 
Rob
I'm supposed to be making money here.
 
nothings fancy without regexes
 
Rob
IDK, regex for a few extra money :/
 
@atomSmasher ... they complained because you're working too much?
 
Rob
I want money, not problems.
 
6:48 PM
Something is terribly wrong there
 
Rob
also speaking of clocked in
I'm going home!
 
@Rob More problems -> more code -> more money
 
yeah, add a bunch of unit-tests to production code
 
And, for eich's sake, don't minify anything
 
Rob
more problems -> more code -> more stress -> more money
 
6:49 PM
@RyanKinal yeah, well.. it's a complicated situation to begin with.
 
Rob
there's a stress : money ratio I won't go over
it's somewhere around regex
 
@Rob On the scale of yellow to rich, you're Abraham Lincoln?
 
Rob
I'd say closer to octopus
 
var hello_world = (function(char_map) {
    var buff = [],
        cap = true;
    char_map.forEach(function(charCode, i) {
        console.log(charCode);
        if (charCode) {
            var char = String.fromCharCode(charCode);
            if (cap) {
                cap = false;
                char = char.toUpperCase();
            } else {
                char = char.toLowerCase();
            }
            buff.push(char);
        } else {
            cap = true;
            buff.push(" ");
I hate writing code in the chat. yet I never think till the last minute to format it "hrmm, write it outside here and paste it in"
 
No no no... all your opening curlies should be on new lines.
 
6:55 PM
I feel like that is worth about $25
 
sorry, too late to edit the first wall...
var hello_world = (function(char_map)
{
    var buff = [],
    cap = true;
    char_map.forEach(function(charCode,
    i)
    {
        console.log(charCode);
        if (charCode)
        {
            var char = String.fromCharCode(charCode);
            if (cap)
            {
                cap = false;
                char = char.toUpperCase();
            }else
            {
                char = char.toLowerCase();
            }buff.push(char);
        }else
        {
            cap = true;
@RyanKinal how does that look to you?
 
Getting there... I think I can expand it further :-P
 
lol
 
I can rack up the same price for not clocking out when I sit on the toilet
 

« first day (670 days earlier)      last day (4278 days later) »