« first day (420 days earlier)      last day (4518 days later) » 

@tereško seen
 
1:09 AM
basically , they deleted jquery's plugin site , and the last backup is yar old
 
Pretty much
 
1:59 AM
1 message moved to bin
 
2:12 AM
$(":checkbox[name='finish']").click(function() {
var id = $(this).closest('input').val();
}

id is now the value of the checkbox. I would like it to take the closest input that has the class "finishId", how can i do that?
 
why would you have a class named "finish Id"
 
@Karem $(this).closest('input.finishId').val()
 
2:41 AM
0
Q: Orientation while rotating around a point

projectskillzI am using this formula to rotate around a point. X := originX + sin(angle)*Size; Y := originY + cos(angle)*Size; In cartesian cordinates how would I keep the objects orientation in relation to as it moves around a circle. Any one know where I could look for answer to that?

 
doesn't seem much like JavaScript o_O
 
RT @mrdoob: Got interviewed by the @canonical design team. http://design.canonical.com/2011/12/interview-with-mr-doob/
RT @ChromiumDev: Transferable objects now in Chrome/V8. postMessage() a 32MB file to a worker/window in ~3ms!: http://goo.gl/7DTOD ^eb
 
3:11 AM
RT @dalmaer: A Mobile Performance Manifesto. /ht @kpdecker http://davidbcalhoun.com/2011/mobile-performance-manifesto
 
3:24 AM
just thought i'd see what everyone thought.
/out
 
3:57 AM
RT @RobGlidden: Royalty-Free MPEG Proposals Announced, http://bit.ly/v13O0l
“MPEG Plus or Patent Pool Lite? MPEG Mulls Royalty-Free Proposals” @RobGlidden on announcement of possible RF H.264 http://www.robglidden.com/2011/12/mpeg-plus-or-patent-pool-lite-mpeg-mulls-royalty-free-proposals/
 
4:18 AM
‘Read the fine print… on any “AVC/h.264 constrained baseline” very, very carefully before you get excited‘ @RobGlidden http://www.robglidden.com/2011/12/mpeg-plus-or-patent-pool-lite-mpeg-mulls-royalty-free-proposals/
 
4:51 AM
As @RobGlidden points out, the “IVC” (non-H.264) proposal mentioned in the MPEG press release may be a better candidate then the H.264 one.
 
5:03 AM
Proposed “IVC” is based on MPEG-1 plus “unencumbered” bits from MPEG-2 and other stuff. Sounds a lot like Sun’s previous OMS Video project.
 
5:36 AM
0
Q: Upbar for SE/SO chat

Amith KKrlemon and myself created a Userscript which moves the userbar on top... so that you can see more stars! UpBar The goal of this project was to gain more space on the sidebar of the StackExchange Chat System for user stars to be displayed. The User List is moved to a auto-hide bar in the top le...

 
 
2 hours later…
7:28 AM
not bad @rlemon
 
0
Q: Do you develop website with NoJS or lack of Javascript support (et al) in mind?

SteveSo, earlier today I spent some time taking a collection of static HTML pages and making my life a bit easier by putting together a nice little set of Javascript methods which automatically adds some common elements (headers, footers, etc) to the pages. Now that I've completed that, and took a s...

 
 
2 hours later…
9:55 AM
@Esailija btw you can pass data to workers without copying it. It's kind of like pass by reference.
 
@Raynos , cool
HOW
 
302ms vs 6ms .. nice =)
 
so .postMessage(data, [buffer]) means the first argument is cloned and the arrayBuffer is passed whole
 
hello
i´m here again
this is what i´m making
When I add new field,all field will reset. What causes this ?
 
10:08 AM
@Olli innerHTML
Try using appendChild instead
 
@Amaan, ok but why
 
Because innerHTML re-parses everything. That re-parsing make the field be put back as if it were new
 
you are replacing the old html with new html
 
@Esailija ok.
@Amaan how I should use Appendchild
 
Well, you'd have to change the way you're building the dropdown first.
 
@Raynos what ?=
@Amaan I build dropdown using php
 
It's all there on that W3.org page
var dropd = "<select name='select"+id+"'>";
dropd += '<option value="200">Error-koodi: 200 Selitys: OK</option>';
You'd make that something like this:
 
pass the string to buildFragment and append the fragment
function buildFragment( html ) {
var frag = document.createDocumentFragment(),
	div = document.createElement("div");

div.innerHTML = html;

	while( div.firstChild ) {
	frag.appendChild( div.removeChild( div.firstChild ) );
	}

div = null;
return frag;
}
 
var dropd  = document.createElement('select');
dropd.name = 'select' + id;
 
10:12 AM
@Amaan is there continue for your code
 
Then you create every options similarly
 
entries.appendChild( buildFragment( dropd )) ;
 
i cannot understand esailija´s code
 
var opt200 = document.createElement('option');
opt200.value = '200';
opt200.textContent = 'Error-koodi: 200 Selitys: OK';
dropd.appendChild(opt200);
Add all of your options this way
And then finally:
 
but i dont want document to have the element
i want it to go on div
 
10:14 AM
add buildFragment function and then instead of doing .innerHTML += do entries.appendChild( buildFragment( dropd )) ;
 
entries.appendChild(dropd);
His method will be easier for you to adapt, though
 
ok
 
buildFragment converts your string to fragment which can be used with appendChild
appendChild doesn't work with strings
so that's why
 
 
@AndyE Hello, how are you?
 
10:16 AM
@Olli instead of entries.innerHTML += ""+dropd+": <input type='text' id='url"+id+"' size='50'><br>";
@Olli do entries.appendChild( buildFragment( dropd+": <input type='text' id='url"+id+"' size='50'><br>")) ;
 
@LalitPoptani he's not here. Did you want to glare at him?
 
hmm
 
@Esailija entries.appendChild( buildFragment( dropd + ": <input type='text' id='url"+id+"' size='50'><br>"));
 
@Raynos not so.
 
@Esailija why you bother teaching dem noobs
They don't understand tis DOM.
 
10:18 AM
@Raynos cos it's a finn :D
 
@LalitPoptani Just dropped by to ask how he was, then?
 
still it doesn´t work
 
morning :-)
 
@Olli ReferenceError: dropd is not defined
 
10:19 AM
@Amaan yes
:D
 
@Esailija ah
i will fix it
 
Hahaha
 
@KamilTomšík >_> Your not a regular
 
now it works but not adding dropdown
only textifeld
 
What do you want
 
10:20 AM
XD
 
@Olli, you need a <select> tag to wrap the <option> tags ... this is HTML basics..
 
@Raynos hi, why do you think that? :-)
 
@KamilTomšík whenever you come in here, you want something.
There is no free lunch
 
oh,I accidenttaly removed it @Esailija
 
@Esailija die
 
10:22 AM
@Olli, virhesivut.php:37Uncaught ReferenceError: i is not defined
 
@Raynos this time I don't want anything :-)
 
@Raynos Wow. It must be that time of the month
 
1 message moved to bin
 
@Olli make it a routine to declare variables before using them
 
@Amaan @Esailija linked to w3schools >:(
IN MY JAVASCRIPT
 
10:23 AM
@Raynos .. it was faster than making a jsfiddle :D
 
What did you expect
 
XD
 
@Esailija you know why w3schools is bad right?
 
@Raynos .. yes that's why I am laughing
 
@Raynos I will always learn from w3schools
 
10:24 AM
LMFAO
 
they will say things most clelarlaly way
 
I see a ban coming
 
;_;
 
@Olli, w3schools is not official page they spread misinformation as well
 
I dont have a banhammer
 
10:24 AM
@Esailija I have not got wrong information there
just send feedback if they don´t tell real info
 
@Raynos you know you're kinda too much into w3schools? :-)
 
@Esailija now it´s the other function which is not working
 
@KamilTomšík Y U NO PURIST
 
Uncaught TypeError: Cannot read property 'value' of null
 
@Olli make a jsfiddle of your problem
 
10:25 AM
@Olli, you don't have document.getElementById("entries_num") anywhere?
 
Raynos ----->http://koti.mbnet.fi/ollins/muuta/virhesivut.php#
 
@Raynos what's wrong with you today? ;)
 
<input type="hidden" name="entries_num" id="entries_num" value="0">
 
@Raynos Why not?!
 
@Esailija
 
10:26 AM
@Olli, ok then it's the other elements
 
is something wrong with this : var thisId = document.getElementById("select"+i+"").value;
 
@Olli, yes your select doesn't have id
it has a name only
name !== id
 
@KamilTomšík I am like this every day
 
ah ok @Esailija
 
RANT
 
10:28 AM
@Raynos rude and ignorant? :-)
 
@KamilTomšík NO U
 
see? again
 
I am live help desk with troll food as payment
 
@Raynos maybe you should get some sleep
@Esailija now got it working
but i need to have minimum 2 lines to it work
and it only prints one line
not two
 
@Raynos What time is it where you are?
 
10:30 AM
10.30
I need to go
 
bye @Raynos
have nice sleep :P
 
Night! (Assuming you meant PM)
 
10.30 = 22.30
 
Its morning
 
@Esailija could you check the page again
 
10:30 AM
Im going to campus
 
your loops go only one value
 
@Raynos Campus?
 
and how could i have it to go all
 
I mean they ignore the first one
 
got it work
 
10:32 AM
change < numnow to <= numnow
 
is it ok now
 
or whatever works
 
@Esailija can I use .select() in all elements ?
not only in inputs
 
what do you mean with .select()
 
that it selects all text
 
10:37 AM
seems just input
"select" in document.createElement("div")
false
"select" in document.createElement("input")
true
 
ok
thanks
 
curtrack =  $("a.jp-playlist-item")[j];
        $(curtrack).attr({rel:j});
wtf
 
11:10 AM
@LalitPoptani very well, thanks. And yourself?
 
I am fine too.
 
Awkward silence
 
tumbleweed
 
11:39 AM
Does anyone have a code sample for creating a Context menu in Bing Maps with V7.0?
 
Tom
11:59 AM
Hi guys, I'm writing an extension for google's web search, basically need to redirect all input in a new input element to the original element (that is now hidden) and it should act as if the user directly used the original element. I've tried:

//when new input element changes
jQuery(origInput).val(newInput.val()).trigger('keypress');

Unfortunately, Google's not just using a simple input element, they have a couple of divs on top of the element and the instant search feature seems to listen for keypresses differently as the above does not trigger it.
I've also tried:
newInput.on('keyup keydown keypress focus blur', function(e) {
    origInput.val(newInput.val()).trigger(e);
}
 
12:24 PM
Any Project Euler people here?
 
12:46 PM
Can someone please take a look at my question. stackoverflow.com/questions/8456432/converting-bing-6-1-to-7-0/…
 
COLD Y U COLD
 
1:11 PM
:(
 
@Raynos The world is a cold place
 
@IvoWetzel are you happy?
 
y u no happy
 
1:15 PM
@Raynos Me is lonely
 
@Parek consulting £500/hr
@IvoWetzel fix this with social interaction
or doing aweshum open sauc
 
@Raynos hahaha, or Free/hr
:D
 
I am looking for someone to assist me with a jQuery question / issue.
 
@Kevin Just go ahead and ask. We won't know if we can help you till we see some code.
 
...
3 messages moved to PHP
 
1:32 PM
brick... wall... must...not... rage
0
A: jQuery.getJSON not working in IE8

EsailijaIE8 doesn't support CORS in the XMLHttpRequest object which jQuery is using. IE8 uses XDomainRequest object which jQuery doesn't support by default

 
1:43 PM
sometimes newcomers cannot understand why we here rage a people for being thick or ignorant .. and then said newcomers learn things, and start helping others .. and begin to rage
 
@Raynos .. new jQuery rage... $.map returns flattened arrays :D
ie it can return an array of different size than you are mapping \o/
1
A: Legitimate uses of the Array constructor

EsailijaPretty much anything you can come up with jQuery.map Creating ranges: //1-20 $.map( Array( 20 ), function( v,i ){ return i+1; }); //[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20] //-50 - 0 $.map( Array( 51 ), function( v,i ){ return i-50; }); //[-50, -49, -48, -47,...

see RightSaidFred's comment
 
@Esailija hi
 
hi
 
how are you?
 
hungry and tired
but the rage keeps me going
 
1:47 PM
I have one question in jquery.
so eat something and enjoy coding..
:)
 
@Esailija "feature"
 
@Raynos there are 2 bugs ... the first one is flattening in the first place. The second one is with flattening, it's not fully flattening at all
but if you fix the first one, you fix both bugs, yay =D
 
MDN has a broken link right on their main page. (See the 'Be part of the Mozilla Labs Apps project' image)
They won't let me file the bug request because I 'have requested an account token too recently to request another.'
 
@Raynos see my comment to your -1 :D
 
Hello @all
 
1:54 PM
@wHiTeHaT Aren't you the guy who's solved all of Project Euler's problems?
 
huh?
 
Do you know what Project Euler is?
 
lol no i was just kidding that time
 
ಠ_ಠ
 
i have a quick question, should be an easy one for all of you
 
1:56 PM
 
@Raynos An image for those who don't see the normal unicode characters? ಠ_ಠ
 
var myinput = $("<input>"); how to make it so it does <input blabla /> so i have a closing tag
 
@Raynos OK NOT JQUERY MAP AT ALL I CAN HAZ DOWNVOTE REMOVED?
 
$(":checkbox[name='finish']").click(function() {
var id = $(this).closest('input.finishId').val();
alert(id);
});

My finishId class that is next to the checkbox named finish, has the value "1" but i get "undefined"
 
@Esailija xd
 
1:58 PM
@Raynos, didn't need jQuery basically because I had to use homebrewn in the last example anyway. lol
Now I wonder, is it a bug in the native map that mapping an array with 10 empty values returns an empty array =(
 
nop
"0" in (new Array(10))
It's a bug that jQuery just iterates from 0 to set.length
 
@Karem var id = $(this).attr('finish');
 
new arrays just have their length defaulted, the don't have any properties set
So Object.keys(new Array(10)).length === 0
 
@wHiTeHaT doesnt work, gives me the same..
 
IIRC, setting a length property on array creates undefined properties?
 
2:07 PM
@Karem where did you set the value?
 
Nop
 
<form method="post" id="formFinish">
<input type="checkbox" name="finish" />
<input type="hidden" name="id" class="finishId" value="<?php echo $todo["id"]; ?>" />
</form>

<script type="text/javascript">
$(":checkbox[name='finish']").click(function() {
var id = $(this).attr('finish');
alert(id);
$("#formFinish".id).submit();
});

</script>

Alerts me undefined
 
Well it at least removes them :P
var a = [1,2,3];
a.length = 1
//[1]
so length setter is at least slightly magical
 
hmm... is there any IT company left out there which is not against SOPA ?
 
Also,

`15.4.5.2 length
The length property of this Array object is a data property whose value is always numerically greater than
the name of every deletable property whose name is an array index.`
 
2:10 PM
@Karem var id = $(this).attr('value');
 
@tereško people like SOPA?
 
well .. BSA was supporting it for some time
 
@whitehat i want the value of the closest input that has the class "finishId"
 
Kaspersky event quite it because of that
 
@whitehat not the clicked elements attr value
 
2:12 PM
but they too have decided to cut the looses and pulled the support
 
Should I care about SOPA?
Can't I just ignore dem americans
 
lol .. so naive
do you really think that if entertainment industry manages to ram this through then EU will be far behind ?
 
what does it actually do?
 
@Karem shouldnt it be something like: .find("???????:first").
i dont now how to program it, but i assume this should somehow must be what you asking?
 
@Raynos , basically it would let entertainment industry to block ant domain name which they want
the definition is quite broad
they are trying to implement the Great Firewall of USA
 
2:20 PM
@Esailija , i wanted to let you know i solved the problem i had last time with the submit button.
 
Oh I see.
Isn't the answer civil war?
I'm all for american cilil war, sounds like fun
 
naah , only war you will get will be with Iran
in less then year
 
@gsnedders are we going to war with iran?
 
@Raynos I hope not.
 
@gsnedders y u no like war :(
2
 
2:28 PM
it would be nice if EU would stay out of this one
 
@Raynos Because pre-emptive war rarely ends well.
 
@gsnedders it does if you 1hit KO
 
Pre-emptive war also often loses support of the natives of the country your army ends up in.
 
thats why you kill all the natives
 
@Raynos Practically that means killing every man, woman, and child where you are attacking.
 
2:30 PM
@Raynos , can you name one instance when that actually has happened ?
 
Yes, genocide is the most effective war winning strategy
@tereško the spanish beat the mayas by killing them all
It's not popular in modern history
 
@Raynos Often not: see the Third Reich, which certainly used genocide on a large scale.
Ultimately outside forces overran them.
 
but if you go back far enough the effective way to win a war between tribes is to slaughter the other tribe
 
here is the rub : Iran is not alone .. They are on friendly terms with Russia and China
 
I should stop being a dick >_>
 
2:31 PM
Going back isn't relevant.
The situation nowadays isn't the same. Outside forces are far more likely to get involved.
 
Russia has fleet of ships stationed even in the region
 
Look at how the Great War began: that's how to start a defensive war. Let the aggressor make the first move, but make sure you can declare war as soon as they do, and can mobilize your army within a matter of hours.
 
well , i will bet they are gonna force Iran to make the first move
 
well really there shouldnt be any wars
the only wars I can foresee are civil wars
due to religion or government being a dick
 
In the presence of nukes, you just have to sufficiently intimidate them by your second-strike capability to deter them from using nuclear weapons in their initial attack.
 
2:34 PM
hell .. at this point civil war in USA would be good for the world
 
@gsnedders isn't this what the dead hand is for?
 
@Raynos That's a Soviet thing.
 
@tereško I would prefer more civila war in the middle east
 
@Raynos Most Western countries simply have submarines somewhere which are capable of launching a counter-attack.
 
@gsnedders are you implying american & china don't have their own dead hand system
 
2:36 PM
(In the British case, see the Letters of Last Resort)
@Raynos I would be surprised if the US did. They have no silo-based missiles operational anymore, AFAIK.
Ah, no they do. But a minimal number.
@Raynos Silo-based missiles are simply too easy to take out in a first-strike, and hence unreliable for a second-strike.
 
@Karem look here: jsfiddle.net/HePja/18
 
So how do you win?
 
@whitehat i solved it by using siblings()
 
@Raynos This is the whole principle. You make it impossible to win. If you launch, while you will destroy who you are attacking, you will also get destroyed yourself.
 
@gsnedders these werent ALL the people wich country's concuered.
 
2:49 PM
@Raynos Nuclear weapons nowadays are practically little more than a deterrent, but you have to maintain development to be able to guarantee you can launch in response to being attacked (as if you can't, you can easily win by launching against them as they can't retaliate).
@wHiTeHaT huh?
 
@gsnedders , abouth genocide. it was only a fraction of the people where genocide was done to, not the whole population , so you cant say it isnt effective
 
@wHiTeHaT Ah, right.
 
The winner in a nucliar war is the one who has the best defence system.The goal of submarines is ofcourse to come as closest as posseble,so the missiles cant be taken down.So you cant tell who wins
untill it is real
 
Wow, we're talking about nuclear war and mutually assured destruction now?
 
But the whole idea of a nuclear war is non-sens , it would not gain any economical profit , and that is current day the idea behind wars
it is a laugh
except for the casualtys
 
2:59 PM
@YiJiang Y U NO LIEK OFF TOPIC
 
@Raynos I do, which is why I haven't binned it yet
Its fascinating stuff
 
Oh ok.
 
3:20 PM
High level vague question time \o/
 
@Raynos My favourite type! To close, that is
 
I'm doing a project on "information flow across blog article". I don't know what people find "useful" as a visualization.
If anyone owns a blog, do you feel your lacking some kind of tool to show your "information flow"
Or if anyone reads blogs.
Question left annoyingly vague and broad because I'm interested in people's interpretation
 
what do you mean by "information flow" ?
is that design or organizational term ?
 
Thats a very vague term.
I can either explain my interpretation of it, or you can interpret as you want
i.e. the answer is coupled to one's interpretation of "information flow"
 
You mean, how information is spread, connected and dissected across an article?
 
3:29 PM
I mainly mean how information moves from one article to another.
For example, if I reference an article in my blog then that's a link and that's a type of information flow
reddit is a massive source of information flow, information flows from links into reddit and then into comments
 
Which makes you rage more? onclick in HTML or div#footer (implying multiple elements with the same id)
 
@Esailija Well, if you a single master CSS file served with different pages you could conceivably have different tags with the same ID and still be valid. But that would be terrible practice.
 
Well IDs for css is a bad practise in itself, but this is in javascript jQuery selector
 
@Esailija 'IDs for css is a bad practise in itself' No it's not. Seriously.
 
But anytime I did that it has not ended well for me
So I just figured maybe it's not such a good thing to do
 
3:46 PM
@Esailija div#footer is just some css newfag doing it wrong
 
anyways I should have clarified that this is in jQuery context
 
@YiJiang yes it is, seriously
 
as in $( "div#footer").fadeIn... or whatever
 
writing css with IDs as selectors is a minor thing .. yes , usually it is a bad style , but its not outright harmful practice
while using line javascript ( or css , for that matter ) is a violation of SoC
 
Maybe it's just me because it implies multiple elements with the same id which is just so wrong
:P
 
3:52 PM
@Esailija What was that quote again? Never attribute to malice what can be attributed to stupidity
 
@Esailija you seem to be assuming people who use jQuery know anything
I just assume "hurr durr Imma jQuery develop"
 
I'd just assume that the author of $('div$footer') doesn't appreciate what he's writing than to assume he's using multiple ids
 
yeah .. if someone calls himself "jquery developer" , it is a sure sign that there is a vast empty space between his ears
3
 
lmfao
what if someone really is a jquery developer
as in developing the core
 
then his would not make such a retarded statement
 
3:55 PM
now I know how to respond to that... I'll just ask if they are developing the jquery core
 
ask them "so how long have you been contributing to the jquery core?"
 
yeah that's even better
asked with an innocous tone as if you really misunderstood them
 

« first day (420 days earlier)      last day (4518 days later) »