« first day (1472 days earlier)      last day (3485 days later) » 

12:04 PM
Hi! Any idea of how to know in advance the BoundingBox coordinates of an element before its fontsize will be resized ? @AwalGarg suggested elt2 = elt.cloneNode() then elt2.style.fontsize = " 30px" (newsize) then elt2.getBoundingClientRect() ... but the problem is that the bounding box is 0 (maybe because something with cloneNode is not added to the real document, so its dimensions are still 0 ?)
 
@Basj I suggested cloneNode(deep)
@Basj yes, you have to append it to the document.
 
@RahulDesai juliensimon.blogspot.in/2008/12/… maybe u can pass any of these commands to .addCommand()
 
hello
 
@JazibBashir 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: Blatant copy indeed. His defense:
 
12:12 PM
oks
 
> deleting my answer . I did not copy his answer . it is like he answered before then me – Ashish Nautiyal
Yea right
 
And you just happened to have the exact same indentation problems like him
It's like he's a student who copied another student's name on a test, and still denying he cheated.
 
It's not the first question he did that on
I flagged / dv'd a couple of his answers
 
@Cerbrus Formal warning now then, surely?
Repwhoring is sad at the best of times lol
 
4 flags of plagiarism. That should draw enough attention
 
12:16 PM
I can't see the answer, cos I'm a scrub.
 
...the pace I am moving on, it would take me years to reach 10k lol
3 days and only 200 rep :(
 
Lol
I don't think I've answered a question since like August
I just sit in here :D
 
I haven't answered anything since I hit 20K
 
I'm still working on my 20k :P
Getting close
 
@KendallFrey @Cerbrus tips to get rep?
 
12:18 PM
answer questions
 
@Cerbrus I can get you 500 rep closer :)
 
@AwalGarg Plagiarise!
 
good answers
fast
lots of them
 
@SecondRikudo: I don't do bounty trades
 
@Cerbrus It's not a trade
Post awesome answer, get bounty
 
12:19 PM
@KendallFrey how is that a 'tip'?
 
Unless you have a good question I can actually answer
 
@AwalGarg I'll show you a tip in a minute.
 
@Cerbrus He encourages people to write good quality canonical posts and offers large bounties on it to promote them. I think this is a very good thing.
 
@Sippy: As long as you keep your pants zipped up
 
@Cerbrus That's okay it comes out the leg.
 
12:21 PM
So, @SecondRikudo: god a good question? Or do you want me to link a good answer?
@Sippy: -.-
 
@Cerbrus Hehehehehehehe
 
@Sippy wear something besides a speedo, perv
 
@Cerbrus Do you have an answer that's worthy of a 500 bounty?
 
> god a good question
 
But I like my speedos
 
12:21 PM
@SecondRikudo suits you that :D
 
you're the only one
 
I'm not, there's plenty old men on the beach who love speedos.
 
I'm guessing this comes closest:
20
A: HTML5 canvas background image repeat

CerbrusUse the canvas' createPattern function var canvas = document.getElementById("canvas"), context = canvas.getContext("2d"), img = new Image(); img.src = 'https://www.google.nl/images/srpr/logo3w.png'; img.onload = function(){ // create pattern var ptrn = context.creat...

But 500? dang
 
49
A: Can't use System.Windows.Forms

Kendall FreyA console application does not automatically add a reference to System.Windows.Forms.dll. Right-click your project in Solution Explorer and select Add reference... and then find System.Windows.Forms and add it.

embarrassing that this is my #1
 
> 811 answers. Highest vote score->22
lol
 
< shaved my head
 
Apparently, I don't get much traffic on my answers
 
I answered a good question today, very happy for that :D
It immediately co-incided with my number 1 :D
 
The problem is that I'm usually very Mjölnir-happy
(Rep-wise problem)
 
12:24 PM
@SecondRikudo I saw that lol
 
But it keeps the site clean, so I've got that going for me, which is nice...
 
when I was creepin
 
@Cerbrus Think you can answer a canonical?
 
I call that luckrep
 
Depends on the canonical
And then there's the fastest gun
 
12:25 PM
@Cerbrus What are your fields of expertise?
 
JS
 
@Cerbrus He means you ask the question, and you yourself give the answer.
 
Plenty of competition
 
@SecondRikudo (Not that you asked the question to me, but mine is graphics design and animation) :P
 
12:26 PM
My Meta answers are doing a lot better though :P
Not that that's worth anything :P
 
@AwalGarg Look for a canonical on ease functions, see if there's anything on Stack Overflow already
That could make one hell of a canon
 
"ease functions"?
 
ease-in-out, linear, bezier curves
 
lol
 
Hm, I also have a good understanding of Angular, canvas...
 
12:27 PM
Design and animation in softwares like AE, Node based editors like Nuke, etc.
 
@AwalGarg Animation with Node?
What's AE?
 
!!tell SecondRikudo wiki Nuke software
 
AE = After effects
 
Ah
@Cerbrus Maybe an angular canonical?
 
12:29 PM
@SecondRikudo is that even possible?
 
Where were your 'ah-ha!' moments with Angular?
 
Trying to think of something...
 
Those usually make good canons
@AwalGarg Why not?
 
..oh I thought a canonical "on" angular
 
@AwalGarg Yeah, that's what I meant...
 
12:31 PM
no... you meant a canonical related to angular, right?
am I missing something?
 
The problem is that the issues I can think of already have good answers
 
@AwalGarg Related to === on
 
@Sippy eh no
!!define on
 
@AwalGarg on In the state of being active, functioning or operating.
 
nvm
 
12:31 PM
Lol
in that context it is.
 
I interpreted it as a canonical describing everything about and on angular.
 
Successfully uprooted CapsLock
 
Hello @AwalGarg! if I have to append the elt2 = elt.cloneNode(deep) to the document to be able to compute the size, then the element will be duplicate in the document, this is not what we want, do you have an idea ?
 
but I must say, in these three days of rep-whoring, the only thing I have learnt about SO is that it is the largest and fastest growing collection of ugly code jQuery code.
@Basj If I make a working fiddle, would that suffice?
 
Disoriented -VS- Disorientated... The latter sounds like a made up word, but the British favour it over the former. What do you think? I'm curious.
 
12:35 PM
@NickDugger We use both.
 
@AwalGarg sure! But I can do a jsfiddle, so that you just have to modify a bit
 
Orientation - Disorientation - Disorientated
Seems to make sense
 
@Basj Don't worry. I can do your work for you. Wait a minute.
 
It makes logical sense, but we don't use "Disorientated" in the US
 
Maybe even more compelling: Orientation -> Orientated. You don't say "Oriented"
 
12:36 PM
Yes I do... lol
 
@NickDugger Disoriented is more an adjective, and disorientated is a verb.
 
Eeew
 
@Cerbrus You can say oriented.
That's common too :D
 
(Yay, English from a Dutch guy)
 
@Cerbrus an example would be. "Hey ___, did you see this really cool space-oriented article? I'll send it over"
 
12:37 PM
^
 
Hmm, good point
 
I think the adjective vs verb argument makes a lot of sense
 
He was disoriented -- he disorientated himself
Man, this turned into a really intriguing discussion
 
12:40 PM
i look fabulous when bald.
 
And in the end you can use both to piss of 2 sides of the discussion at once :D
 
people over 20K reps could just add bounties to the top voted unanswered questions
 
@frazras 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.
 
@AwalGarg hum ok, so we have to append and remove it after having done the test... It works, but I fear that if I need to do this on hundreds of elements it will be slow
 
12:41 PM
@Basj when I said cloneNode(deep), I meant that deep should be true. If you are in confusion next time, you can lookup the function on mdn. They explain pretty well. The reason we have to deep clone is that we have to preserve it "as it is".
@Basj Doing anything on hundreds of elements would be slower than doing it on a single element.
 
@AwalGarg oh yes, the problem for me was not deep = true or false, but the fact we have to append and remove ... I thought that I could compute the BoundingBox without having to append / remove
 
-5
Q: Please help me with my java code

Mychala DemerittScenario You own a small car rental company, the proud owner of 5 cars! All 5 cars are currently out but are expected back shortly. The data for the rentals are shown in the table below. As the cars are checked in your program calculates the rental cost and outputs a detailed bill for the custo...

Waaaat
CV / DV please
 
rofl
 
@AwalGarg which city are you oin.
 
wow, one of my answers is suddenly getting an influx of votes
 
12:44 PM
Murder
 
@darkyen00 ghaziabad
 
@AwalGarg oh thats awesome ?
 
@darkyen00 it is crap
 
@Sippy: Subtle :P
 
@AwalGarg do you think there might be a solution without clone + append + remove ?
 
12:45 PM
@Basj I don't just think, I know. There is not.
@Basj What are you trying to do exactly? Maybe there is a better solution?
 
@Cerbrus If he wants to pay me I'd be more than happy.
:D
 
...just one more vote needed to get to 500rep...c'mon!
 
Aww it got deleted lol
 
Deleted
Looks like OP removed his account
 
you can't help java.
 
12:46 PM
@AwalGarg: where?
 
8
A: I thought objects are passed as reference

Awal Garg...I am late to the party? Here is my take on explaining it (Read the other answers as well, this is just to support those answers with a visual representation): Initialization of the empty object a with another object (value:true). Assigning the empty object a with a property b referring ...

 
@AwalGarg bigpicture.bi/demo , click on the topleft logo (=sitename), then the site will automatically zoom to the biggest picture ... I need to be able to compute accurately in advance the size of the elements before they are resized
 
in github why is C++ so pink. yuk.
 
Oh, already +1'd that
 
@Basj forbidden
 
12:47 PM
@AwalGarg what ? the website itself ?
 
@Basj yeah. error 403
 
@AwalGarg that's strange!
@AwalGarg : brainstormi.ng/demobrainstorming is it the same ?
 
@Basj dat website is not givin me access, no page.
 
Why did you answer a question that has an 413 upvotes answer already?
Talk about rep whoring
 
@AwalGarg how long did you take to compose that?
 
12:49 PM
@argentum47 an hour
 
FUCKING SHIT
 
but I like the idea of posting every answer I post in here to get more upvotes.
 
my friend is working on something like brainstorming too
 
then i realized my fingers hurt because i was scrolling a long short page
 
not only does the top answer have 400+ votes it is a community wiki and encourages collaboration over new answers.
 
12:51 PM
@AwalGarg, can you try a last time to reload the page?
 
@rlemon heh? no
oh the answer!
 
tldr; This in JavaScript is broken as hell but so is JavaScript it self.. So it all does make sense After all this is javascriptdarkyen00 20 secs ago
@AwalGarg sorry couldn't resist
 
@darkyen00 lol you copied that from GH
 
the answer is pretty one liner. var that = this. one who understand this understands lexical scoping fre variables and closures
 
@AwalGarg i was the one who posted it on gh
 
12:52 PM
@darkyen00 hahaha true
500 rep == review tools?
nooo
 
Now the real work starts xD
 
@Cerbrus userscripts to the rescue. review button blocked :)
 
Lame
 
254
A: What's the difference between event.stopPropagation and event.preventDefault?

RaynosstopPropagation stops the event from bubbling up the event chain. preventDefault prevents the default action the browser makes on that event. Let's say you have <div id="foo"> <button id="but" /> </div> $("#foo").click(function() { // mouse click on div }); $("#but").click(function(ev) {...

jeesh
 
for 500reps you need nothing but to wait and let others find your answers. i think you can find similar questions in blogs (where you post one question and then go and make babies and come back after an year and get your answer) and post your answer with the SO link :P
 
12:55 PM
> 2,000 edit questions and answers Edits to any question or answer are applied immediately
everything is crap other than this
so I only need to reach 2k, and stop..
 
doesn't look much difficult
 
exactly.
 
EVERYONE ASK EASY QUESTIONS THAT I CAN ANSWER!!
 
die
 
12:57 PM
@AwalGarg HOW DO YOU ADD TWO NUMBERS USING JQUERY?
 
@AwalGarg: Those questions would be cv'd as off-topic :P
 
@AwalGarg what's the meaning of life?
 
Easy question and answers are not that easy. By the time you have answered it, 5 people have answered edited and re edited and re-re-edited their answer. its like playing Counter Strike
 
24, if you're from Austrailia
 
@SecondRikudo YOU OPEN THE CALCULATOR, TYPE THE FIRST NUMBER, HIT THE + BUTTON, TYPE THE OTHER NUMBER, THEN HIT ENTER
 
12:58 PM
-1 NOT ENOUGH JQUERY
 
^ :D
 
@JanDvorak THAT AIN'T JAVASCRIPT
@Cerbrus AFTER I ANSWER, NO PROBLEM
 
@JanDvorak $(42)
 
sorry no more caps
 
12:58 PM
@AwalGarg how do you find the meaning of life in javascript
 
"Looking for Java developer", says recruiter... "Employee should also be comfortable with script portion"
 
@AwalGarg: HOW DO I EAT SOUP USING JQUERY
 
my caps lock account balance is empty now
 
life is javascript ... or atleast as broken as javascript.
 
@Cerbrus fiddle pls
 
12:59 PM
!!> 42;
 
@rlemon 42
 
@rlemon o/
 
@JanDvorak what have you tried? I am not going to write your code for you.
 
\o/ happy hallowen
 
@AwalGarg lies
 

« first day (1472 days earlier)      last day (3485 days later) »