| |
| |
| |
|
Page: 1 2 3 4 5 6
Comments:
<0> i am all for sharing, i believe the world is moving to adapte this model, i don;t mind to pay some small $ for me to have access <1> i'd bet my pants they're not paying any taxes on the income either <1> ht311, nor do i. paying 20 bucks for a cd isnt cool. 2 might be. <0> the key is access. while drm is total in reverse <0> it just make people go the other way <2> how can i edit an image's properties if its being generated dynamically? <1> yup, i just wanted to plant the idea that the boys behind tpb might not be the knights in golden armour after all <0> i pay for my cabel and stuff, not cheap at all. but download the tv anyway. not different from i put in on tape, <1> i cant say anthing for sure, but im quite damn sure that they're lifting some serious cash of it. <3> grazzy: my guess is, you'r right, if there's an oppertunity to make money, they'r most likely apt to take it <3> I wouldn't turn down *easy-money* <0> I am not surprise, but not too upset. <3> not that I would distribute .torrents for a living either. <0> like open source, to me it is a big marketing scheme <3> neither am I, can't say I have any preference towards tpb, I'm more concerned how the antipiratebureau (spelling) is going about with their business.
<0> yup. hope canada will be able to stay away from this copyright law crap <0> i think france and sweden will be doing fine <0> someday, there will be alien come to earth to sue us about stealing their technology <4> how do I define a default value for a function prameter? <4> like function myFunc(xVar=null) { .. } <0> that will be funny, there is no point to pay them off with usd$ <0> if(!xval) xval="mydefault"; <4> thanks <0> there is pitfall, you will find out <3> xVar = xVar || defaultValue; // usually does the trick. <3> (and I like my way better than what ht311 just wrote :P) <3> because they are the same, and I don't have to use an if-statmenet ;) <0> ah, i use both, not remember the || <3> but as ht311 pointed out, there are pitfalls. <4> heh :) his version was better, I have to ***ign some stuff only if that variable is used, so I was going to set the default to null anyhow <0> no , fatbrain version is faster and cleaner <4> if (xVar) do_stuff_here; is faster :) <3> sk8ing: why would that be faster? <4> than xVar=xVar || defValue; <4> if (xVar==defValue) do_stuff; <4> tho, should that be xVar = xVar | defValue; ? <3> no <4> than xVar=xVar?xVar:defVal; <4> ? <4> won't this xVar=xVar || defValue; set xVal to bool ? <3> no, xVar = xVar || defVal; <3> no <5> Sorry for interrupting. Is it possible to have several objects with the same ID so that when changing Object's parameter By id all of the will change? Is this a stupid question? <0> yes it is <3> xVar = xVar (evalutaes-xVar, if it evaulates to <true> it will *return* xVar, otherwise it will *return* defaultValue) <3> in, xVar = xVar || defaultValue; // that is. <5> would be nice though <4> hmm... a lil weird, it shouldn't act like that <3> sk8ing: ofcourse it should. <4> it complicates things <3> sk8ing: read the ecma262-specification <3> sk8ing: no it doesn't. <6> i've got a flash+javascript problem <6> it's on http://www.macromedia.com/software/flash/flashpro/ <4> in my opinion, the way to do it, would be the x?x:y style <0> i use e = e || window.event a lot <6> in the View the feature tour flash movie. when you press the button, the movie resizes. is it? <4> and the || should evaluate to bool <3> sk8ing: why should || be evaulated to bool? <4> because it's a boolean operator <3> sk8ing: and why would it complicate things if it doesnt? <4> well let's say I need true or false <3> ok, I'm listening. <0> it is a logical or . nothing about boolean <4> x = b || y; <4> x == true if b or y is set <4> false if not <3> yes <3> when you say *true* you mean that it's some value that may be evaulated as true. <3> x = 1 || 2; alert(x) => 2 <4> no :) that's the point
<3> if(2) { alert("yes, 2 is true"); } <4> boolean true and boolean false <3> sk8ing: you'r not making sense. <4> not the value <4> cuz I may have an if statament like this one: if (x==true) <4> not if (x) <3> and? <3> if(1 == true) { alert("also true"); } <4> both are fine <4> I know that <3> as I said, you'r not making sense. <4> but it confuses stuff <3> It's you that's adding the confusion. <4> ok... let's put it this way <4> I'm a c++ guy, if you wouldn't told me now that x = x || y; returns something else than boolean I could be using that if (x==false) <4> that <4> thats' because you don't always know the type of the variables that are p***ed to you <4> and you don't check it all the time <3> sk8ing: why would you have to check the type of the variable? <4> function myalert(x) { if (x==true) alert("blah"); else alert(x); } <4> myalert(true); myalert('boom'); <3> ? <3> sk8ing: is this leading to something? <4> yes <3> ok, I'm waiting. <4> well I can use two types of variables <4> now <4> just a moment <4> to develop a bugous function :) <3> sure, take your time <3> gives me some time to fetch some coffee. <4> heh, it eats the calcium from your bones <4> :P <6> help.. please? <2> if i wanted to get a list of all the images on my page, how would i do that? <2> i was thinking document.image.all might put em all in arrays. <6> anybody? <4> if myalert looks like this myalert(x) { x=x||y; if (x==true) alert(y?y:"boom"); else alert("blah"); } <4> var y="lalalal"; myalert(false); should alert "lalalala" not "boom", but it alerts "boom" <4> sorry <4> it alerts blah <4> myalert("dafkddskjf"); will alert blah also <3> yes, ofcourse, that's one of the pitfalls. <4> eh, it's not that bad <3> the only way to, use optional arguments is to check for typeof(x) == "undefined" <0> the only fool proof way <4> yeah but I guess that can slow it a lil :) <0> speed is the last thing you worry about in these issues <3> indeed. <4> true <7> this ice tea tastes like bile <0> add some booze in it, it will make it taste good <0> don't want to cook tonight ... <0> that's not bad <7> it'll keep the little lady happy.
Return to
#javascript or Go to some related
logs:
t b64dck #c++ #squid www.coolmp3.ro apache2 mod_includes issues #linux dj sejjer
#linux atax bash.org
|
|