« first day (1311 days earlier)      last day (3631 days later) » 

11:00 AM
anyone here online......
 
@Illaya Me
:D
 
<-- @Illaya :)
 
@inek I like the method
<---- @inek
Yeah
 
this is my XML
<Scores>
    	<Score>
    		<PlayerName>dart1</PlayerName>
    		<CarName>car6</CarName>
    		<Points>5000</Points>
    	</Score>
    	<Score>
    		<PlayerName>dart2</PlayerName>
    		<CarName>car4</CarName>
    		<Points>4000</Points>
    	</Score>
    	<Score>
    		<PlayerName>dart3</PlayerName>
    		<CarName>car2</CarName>
    		<Points>3440</Points>
    	</Score>
    	<Score>
    		<PlayerName>dart4</PlayerName>
    		<CarName>car8</CarName>
    		<Points>67000</Points>
    	</Score>
</Scores>
I need to display highscores in descending order like,
dart4 car8 67000
dart1 car6 5000
dart2 car4 4000

How to do this?
 
hmm i hope that you got cured from vampirism
 
11:03 AM
@MADTerry @İnekŞaban help me
 
parse it -> sort it -> display it
:D
 
how?
 
wtfh with the bot ?
 
279
Q: Sorting objects in an array by a field value in JavaScript

Tyrone SlothropSay I have an array of JavaScript objects: var objs = [ { first_nom: 'Lazslo', last_nom: 'Jamf' }, { first_nom: 'Pig', last_nom: 'Bodine' }, { first_nom: 'Pirate', last_nom: 'Prentice' } ]; How can I sort them by the value of last_nom in JavaScript? I kno...

sort it
 
11:04 AM
haha thanks
 
I tried like
topTenPoints = PointsArray.sort(function (a, b) {
                    return b - a;
                }).slice(0, 10);
 
haha thanks
 
$("#scores").html(html);
 
ok
so let us run some test
:D
 
but only my score is sorted. but I also want to sort the equal values (playerName, carName) for Points
 
11:06 AM
document.getElementById("scores").innetHTML=html
 
@Illaya just check this question ...
 
@illaya check the link or ^ ..Both are same
 
* document.getElementById("scores").innerHTML = html; :p
 
@KarelG I tried but only my points is sorted, I also want to sort the equal values (playerName, carName) for Points
 
Haha right corrected xD
 
11:08 AM
@Illaya do you know what IComparable is ?
 
no
 
you implements a function yourself, and returns with -1 or 0 or +1. The sort function can then use that function to sort the array.
please check the SO question link here above. there is an example with strings, with names ...
uhm
!!list
 
@KarelG tobacconist ziraksadvice gayclubs loktar zirak_naked slidepoop lol mhm roomowner buttstuff greatest_question_in_universe abhishekpornfreak
 
@inek justfuckinggoogleit.com :D ...we got another one :D
 
Any idea why the bot only answer me to try the whoosh command? I have a bad feeling about that.
 
11:10 AM
@dievardump : some1 fucked the bot
 
Try a command.
 
@KarelG hahahahaha...How ?
 
!!mdn querySelector()
 
!!/gayclubs
 
11:11 AM
Mar 18 '13 at 20:08, by Loktar
I've been to gay clubs more than regular clubs lol
 
@MADTerry haha :)
 
!!hahkendall
 
these commands shouldn't appear as 'list' ...
 
!!info list
 
11:12 AM
@SomeGuy Command list, created by Benjamin Gruenbaum on Mon, 28 Apr 2014 11:40:11 GMT, invoked 2 times
 
AHA
 
list and listCommands are not the same, right ?
 
Correct
list is just a command Benjamin made to remember all the hilarious room-related anecdotal commands
 
objs.sort(function (a, b) {
    return a.last_nom < b.last_nom && -1 && a.last_nom > b.last_nom && 1 || 0;
});
or
return a.last_nom.localeCompare(b.last_nom)
 
How can the bot have forget the choose commande?
 
11:20 AM
@dievardump !!/forget cmdName
 
Yeah but I thought at some point the disussion was that the bot can not forget "basic" functions. I might be wrong.
 
@İnekŞaban: I don't think the first one does what you think it does
 
@dievardump You are not authorized to delete the command forget
Get the permission :P
Some commands require special privilege to use (as in, you must be a room owner or a moderator). Having said that, there are...
 
-7
Q: Create an array?

panthroI'm trying to create an array in javascript like: p.cb = {x: 0, w: 0, w: 0, h: 0 }; Then I wish to access it and set it via: p.cb.x = 100; But I get a strict error (yes i am using strict but I want to): Uncaught SyntaxError: Duplicate data property in object literal...

lol
okay that is a good one :P
a reeaaall good one
 
@a1phanumeric Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
11:27 AM
I'm like.. "okay he provides an error message"... reading the error message ahh alright, it tells him exactly whats wrong
but then!
Where am I going wrong?
 
Well : 1/ is english is maybe as bad as mine - 2 / he talks about his object saying it's an array. Therefore, He won't understand "Duplicate data property in object literal"
 
@milleph Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@jAndy i am inspired from his question ...He got great attention just in 5 min...How he made 1,379 reputation
 
@jAndy: that's amazing
 
the english sounds very well to me
I'm really the last person on this little planet who would call out people or saying anyone is stupid or whatever, but I just don't believe such questions are serious
 
11:34 AM
it just makes me sad puu.sh/8Spuc.png
2
 
@Meredith Hahahaha Lol ..How you did it ..Paint ?
 
do not fi​ght he com̡e̶s, ̕h̵i​s un̨ho͞ly radiańcé destro҉ying all enli̍̈́̂̈́ghtenment
 
Please tell me if I understand this correctly. do_offset is false unless either offx or offy is NOT EQUAL 0 ?
var do_offset = (offx !== 0 || offy !== 0);
 
TO͇̹̺ͅƝ̴ȳ̳ TH̘Ë͖́̉ ͠P̯͍̭O̚​N̐Y̡ H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ
 
do_offset is true if offx is not 0 or offy is not 0
 
11:38 AM
ty :)
 
WHO THE HELL UPVOTED THE CRAP QUESTION
I swear there's some upvote troll or something
 
Yeah I downvoted it to 12 you have no idea how mad I was when I saw it back at 11
They favorited it too
 
maybe someone creates a summary .. like a "best of" weird questions or smth
 
From now on I will define my arrays with curly brackets too.
 
I have a facebook hacking question in my favourites list
 
11:44 AM
-1
Q: How do i assign value?

sajadkkI am trying to assign a value inside another function, but it is not working, what is the correct way to do this? f = function () { var foo = 6; function() { foo = 4; }; alert(foo); }; f();

 
Look, someone upvoted:
-2
A: How do i assign value?

Prabhat JainYou must initialize the inner funtion f()();

 
^--- wtf
but using a function in a function is useless... unless the parent function is being used as object. But there are prototypes for ...
 
Fellas, I've decided to whore questions mercilessly to get the gold badge and clean the dupes. So please forgive me for the next month or so
 
SO really gets more annoying then ever
 
some ppl is already doing it
but there are more dupes then what these ppl can do ...
using google is a skilled thing nowadays
 
11:50 AM
the number of people asking questions, mindlessly posting a bunch of code snippets in the question without really having any clue about the actual problem or logic
makes me sick
 
I don't necessarily mind those questions
 
one should think this should become better and better but as it turns out, its getting worse and worse
 
What bothers me is when people just go ahead and answer them
 
^--
 
Like ok just hand them code they don't understand, great idea
 
11:51 AM
@jAndy : it's maybe because "web developers make a lot of money. I will be one."
 
maybe you should become a teacher meredith :p
i always try to add explanation in my answers
@dievardump these people is a part of my income
 
@dievardump if thats the case, I'm happy they didn't go for the "doctors make a lot of money"
 
I always try to explain answers as much as I can
 
...or maybe they do... OMG
 
But 1. I'm lazy 2. I'm stupid
 
11:52 AM
@dievardump If you can't beat them, make money of off them.
 
@jAndy doctors have no jQuery.
 
and then again
where is my "lot of money"
 
<- has made $0 from programming
 
@jAndy well, where are you working?
 
<- has made 99% of his wealth from programming
 
11:54 AM
@Baptouuuu Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
As a freelance I had absolutely no problems finding work and nice contracts
 
i got mass downvotes when i replied that this.id in event handlers are faster then $(this).attr('id') * rolling eyes *
 
@dievardump gnah I was just moaning, I'm doing okay in that way actually :P
 
hi @Baptouuuu
 
@jAndy aha ok :p
 
11:55 AM
@Meredith so far :)
 
I mean.. I feel like I should earn 10x as much I do, but thats just because we all were raised to hopeless capitalists right
 
Yeah I'm still in school so I haven't had any software dev jobs yet
 
then you will make $ from programming soon ;)
 
dat dollar sign...
so ambiguous
 
not my fault that j + Q uses it
 
11:58 AM
0
Q: Add class on <p> when the phase is too long

Cristina CristeaI have a long phrase and I need to add a class on it when this phrase fits in one row and a different class when this phrase splits in 2 or 3 rows?

he didnt even try
 
!!doge dollar sign,ambiguous,money,programming
 
i mean she
 
        wow
so dollar sign
              much ambiguous
                           such money
many programming
 
someone upvoted
 
!!doge dollar sign,ambiguous,money,jQuery
 
11:58 AM
    wow
so dollar sign
                 such ambiguous
                        very money
many jQuery
 
Did you have thought to try to write the code yourself ? We are here to help you with problems in your code. But we aren't here to give you a working code on a silver plate. Also, please check this How to Ask guide. — KarelG 34 secs ago
i have bookmarked that as plugin ...
<.<
 
Did you have thought
 
should it be reworded ?
 
Have you thought
 
Yes, many times
 
12:01 PM
hey look people answered her question
 
even secundo
 
@KarelG Have you thought*
> Have you thought about trying to write the code yourself? We are here to help you with problems in your code, but we aren't here to give you working code on a silver plat. Also, please check this How to Ask guide.
 
Isn't addClass jquery?
 
@SecondRikudo *plate
 
@KendallFrey how you earn ? ...Just curious ...How stackoverflow reputation helps
 
12:02 PM
Right, I meant classList.add
 
1) work 2) it doesn't
 
Amazing how that got an upvote even with the mistake :D
 
The other guy who answered has been doing too much php
 
@KendallFrey Great ...So why people make reputation in stackoverflow
 
$p.style.width
 
12:04 PM
noticed it too
 
@MADTerry It's a side effect of helping people
 
@Meredith And he got upvoted too, lol.
 
@KendallFrey:D :D
 
Ehh a typo like that isn't a big deal
But his code is just bad
 
@MADTerry WHY ? It helps with low self-respect, feeling inferiority and low, no success in real life etc.. also if you like being a whore, SO is the place to go !
reading that makes me sad :(
 
12:06 PM
@jAndy Were you in same category :P
 
I'd do anything for food rep!
 
i cry myself to sleep at night because my rep is so low
 
:D
 
@jAndy aren't you a vegan? aren't you betraying your communist view of things farming food rep?
 
mine is too low
i should have died
 
12:09 PM
whenever one of my answers gets an upvote i hand out 10 downvotes
 
@FlorianMargaine lol
 
@FlorianMargaine +1
@jAndy -1 :P
 
0
Q: Javascript not work in PHP Files ( Box Shadow While Scrolling )

user3652438My problem : javascript is not working at my .php files My CSS not work while scrolling *CSS Files named "var.css" #kepala{ padding: 10px; top:0px; left:0px; right:0px; position:fixed; background-color: #EBEBEB; height:35px; #kepala.scrl{ box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.3); } *P...

 
@Meredith lol
 
 
12:12 PM
Who upvoted all my answers ?
@jAndy you ?
 
yea thats my favorite thing I do, I really have a hard time to get through the day
so I randomly upvote all questions from people in here
 
@jAndy hahahaahah Great ....
 
Anyone with jqplot experience?
0
Q: Show graph axes when using jqplot library

Ionică BizăuI am using jqPlot for creating graphs using jQuery. I want to display Ox and Oy axes in my graph (also, with arrows and some text if possible). How can I do this? I initialize my graph using: $.jqplot ('graph', [[[1, 2]]], { axesDefaults: { labelRenderer: $.jqplot.CanvasAxisLabelRe...

 
@jAndy Let me return you your gift
 
What other JavaScript plugins can be used for displaying simple graphs?
 
12:14 PM
(before you do anything, I was not all that serious)
 
@IonicăBizău jQuery.
Use MOAR jQuery.
 
@jAndy I dont want to be debt :P
 
Do you want to be blonde?
 
@KendallFrey Are you asking me ? if (true) Why ?
 
@SecondRikudo MOAR? What do you mean?
 
12:16 PM
Because if you believe jAndy, you are a little bit slow
 
@IonicăBizău Google "MOAR"
Meh the linkifier doesn't work here :(
Oh wait, there's a bot here isn't there?
!!tell IonicăBizău google moar
 
the problem with trolls is, if you life long enough amongst them, you eventually become a troll yourself
 
@KendallFrey I don't know who has upvoted my answers & gave me +75 repo
 
paint me green
 
12:18 PM
@MADTerry You got 75 repositories???
 
@MADTerry Well, if it's all from the same person, it'll be reverted within 24 hours :D
@KendallFrey + 75 repositories
 
@KendallFrey No...75 reputation
 
repo -> repository
 
+75 repu
 
+75 repugnance
 
12:19 PM
@SecondRikudo Great ...Someone wasted his bandwidth :p
 
Yeah that looks serial to me. @MADTerry it'll probably be reverted by the anti serial voting script tonight.
 
+75 repugee
 
@Marek Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@SecondRikudo Looks...Same person did ....Because they all were upvoted in 15 min
 
it was jandy
2
 
12:20 PM
@SecondRikudo So i should get a screenshot
 
@MADTerry Nah, history is kept.
 
@Meredith how can you know ?!
 
You'll get a "-75 serial voting reversed" entry in your reputation history.
 
@jAndy Because you need repo :P
@SecondRikudo Ah ....Someone ...Save my repu ...hahaahah
2
 
@frandiaz83 Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
12:21 PM
they always point towards me if anything happens in here.. I'm getting mobbed
 
@jAndy maybe i should abuse that
 
its like a bad GAME
 
that's just because you're german
it's part of your ancestry
 
@FlorianMargaine Hahahahahahhaha
 
german, vegan, freethinker, I guess thats the biggest target of all times
 
12:23 PM
I'm like 1/8 hungarian
 
1 repu should be taken away from jandy ....So that he would live rest of his life in pain
Ah....Who is doing all this
+50 repu
 
got a newsfeed that a masturbation game is not allowed in Apple's app store. had to laugh :|
 
@MichaelOryl Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
lunch with the Mrs, nothing quite beats it! :)
 
repu is a horrible shortcut, its rep FFS
 
12:25 PM
ok
rep
+125 rep
 
Freaking out
 
-1
Q: Best practices for structuring JS / jQuery Documents

AfterlameI am curious about best practices for structuring Javascript / jQuery Documents. I know this is not a very specific question and there is no perfect answer, but I am searching for suggestions on how to structure a document to get minimal repetition and good performance. I have found countless a...

 
cmd+A, Delete
 
@user3246023 Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
guys, I've got a styling problem over here;
 
12:38 PM
heyall
 
this iframe has the scrollbars hidden when bigger than the bounds of the dialog it's being shown in;
<iframe id='newsletter-frame' src="<?php print $url; ?>" style='width:480px;height: 100%;border: 0px;overflow-x: hidden; overflow-y: auto;" allowTransparency="true">
</iframe>
 
@pythonian29033 good
 
Why don't you paste the code that the client sees?
 
4 mins ago, by pythonian29033
guys, I've got a styling problem over here;
every morning...
 
It doesn't matter to the browser that you have php
 
12:42 PM
@jAndy im waiting for the question
answer all ready in my clipboard....
 
foresight ?
 
@KarelG a hunch
 
you have the power of foresight !
 
@jAndy my nick name at uni genuinely was Gandalf, not Elrond!
 
you shall not pass !
 
12:45 PM
@jAndy Everytime I see this guy, I think of Agent Smith, and I can't teach my brain to do otherwise
 
@DrogoNevets : is there no specific documentation on GEOMETRYCOLLECTION in postgis ?
couldn't find one. or am i using wrong terms :|
 
@KarelG haha, not really no, only hear say - whats up?
 
So when I see him in elf costume, I think (briefly), what the hell is a photo of Agent Smith doing in an elf costume?
 
@Neil I have that problem with a lot of actors :p
 
@Neil ++1
 
12:46 PM
i just need a reference to put in my report
 
actually I'm wondering how little actors are there. If you think how many "big titles" were played by the same faces
its ridiculous
 
@KarelG tech doc? just point them at the postGIS website, what i usually do
or SO :P
 
there is no one lol
 
Two guys you see everywhere: Nicolas Cage and Christopher Walken
 
@KarelG then why write the report?
 
12:52 PM
gotcha use this
 
@KarelG sorry what for? i think i may of mis understood you
 
just a link reference for a report ...
to GEOMETRYCOLLECTION()
 
all sorted now though?
 
no, their doc is bah
 
@KarelG yea, one of the biggest issues with postGIS is lack of documentation im afraid, but it is still the best out there IMHO
 
12:56 PM
@TheDubleM Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@jAndy the problem is when the iframe is submitted, with undesirable input, I get back fucked up results. . .unwanted fucked up results that stretch out the iframe to bigger than I wanted it to be
 
validation is the temptation
 
@pythonian29033 : max-width ?
or validate it
 
or that
 
@KarelG scrolling="no"??
 
12:59 PM
validate on client, validate on server or say SCREW IT and limit the iframe dimensions
 

« first day (1311 days earlier)      last day (3631 days later) »