Jump to content

L8V2L

Members
  • Posts

    788
  • Joined

  • Last visited

Everything posted by L8V2L

  1. HAHAHAHA YES YES HAHAHA YES THE INSENITY YES!!!!!!
  2. MOAR on Unix and Linux, please.
  3. I do, but I'll still ask for clarity sake.
  4. That's good your community was so supported of your learning. But not all are privilege to such... Care.Thank you for your respond, and sharing.
  5. I more so took the time to study xslt, but not enough to write it off the back of my hand.Use a predicate in the path expression: <!--...--><value-of select="/root/[child0/@data0 gt child1/@data1]" /><!--...-->It all depend on what you want to do?XSLT is a template process. Finding the different between date's, and then what?
  6. Can you go a little more in depth?What's an operating system?What's a framework?CVM?
  7. Yes, but I would like it better in plain English, for I am not wizard yet.
  8. What is Linux, Unix, and Wordpress?
  9. Environments sometimes live on after you leave their scope. Therefore, they are stored on a heap, not on a stackCan some one Claify the above.And here's a question:So heap is what hold the variable when you use it's value as an initial value for a function?-----------------------------------------------------------------Thanks you two above... Hearing how you appose to drive a car is different from driving. I'mma need to actual lay experience bootstrap to get it fully.
  10. Can someone explain to me the computer term bootstrap, I can't grasp the concept.And backend, and backbonejs.
  11. .... But it's dying. And I don't mean to give it away, I speak on making it accessible via browsers.
  12. Variables are passed on in two ways. There are two dimensions to them, if you will: Dynamic dimension: invoking functionsLexical (static) dimension: staying connected to your surrounding scopesDynamic dimension: stack of execution contextsLexical dimension: chain of environmentsClaify, please.
  13. Yes, we all --even the blind-- can see that this is more on the thread of adobe sell flash. That person who brought it, put it on GitHub.How would that playout?And there is also xqib:Xqib( XQuery in the browser), furthering it as a programming language:http://www.xqib.org/http://archive.xmlprague.cz/2011/presentations/xqib.pdfhttps://websci.informatik.uni-freiburg.de/teaching/ws201112/xmldb/sheets/xqib-documentation.pdfhttp://cs.brown.edu/~kraskat/pub/www09-xqib.pdf
  14. XQuery could do it. Xqib.org.You could use a choose-when-otherwise, and or xPath predicate.
  15. The following rules apply to for-in loops:You can use var to declare variables, but the scope of those variables is always thecomplete surrounding function.What function?
  16. "use strict";var num;num = 1;function ToString(x){//notice the operation +=return(x+="");}ToString(num); // "1"num; // 1/*Is the function just taking the value, and not the variable?*/
  17. "Use strict";console.log("n"+ToInteger(1000000000000000000000.5)+"n"+parseInt(1000000000000000000000.5));//output1e+211undefinedSomeone give me a like for figuring it out(more so coming across why in the book) myself!... But please give an explanation.
  18. Integers via the Custom Function ToInteger() Another good option for converting any value to an integer is the internal ECMAScript operation ToInteger(), which removes the fraction of a floating-point number. If it was accessible in JavaScript, it would work like this: > ToInteger(3.2) 3 > ToInteger(3.5) 3 > ToInteger(3.8) 3> ToInteger(-3.2)-3 > ToInteger(-3.5)-3 > ToInteger(-3.8)-3The ECMAScript specification defines the result of ToInteger(number) as: sign(number) × floor(abs(number)) For what it does, this formula is relatively complicated because floor seeks the closest larger integer; if you want to remove the fraction of a negative integer, you have to seek the closest smaller integer. The following code implements the operation in JavaScript. We avoid the sign operation by using ceil if the number is negative: function ToInteger(x) {x = Number(x); return x < 0 ? Math.ceil(x) : Math.floor(x); }console.log("n"+ToInteger(3.2)+"n"+ToInteger(3.5)+"n"+ToInteger(3.8)+"n"+ToInteger(-3.2)+"n"+ToInteger(-3.5)+"n"+ToInteger(-3.8));333-3-3-3undefined > console.log("n"+parseInt(3.2)+"n"+parseInt(3.5)+"n"+parseInt(3.8)+"n"+parseInt(-3.2)+"n"+parseInt(-3.5)+"n"+parseInt(-3.8));333-3-3-3undefinedSo I'm reading speaking JavaScript and I don't know why the author defining a function that already exist... Can someone clarify. I'm pretty sure the book isn't that old when it mention the latest hot topic..... You know, I reread over the beginning part of this, and... Well I took sometime to compose this, so would still like to post it so it want go to waste.... So if you don't mind to still give your answer but reframe from saying the obvious please! Thank you!
  19. I give you a like, cause of the time you spent.But this is how I did it: var x = []; x[0] = '3 a'; x[1] = '0xa'; x[2] = '123 123'; x[3] = 123; x[4] = '1e7'; x[5] = true; x[6] = ' '; x[7] = ''; x[8] = 'abcdef'; x[9] = ' 123 '; var str = '<table>'; str += '<tr><th>#</th><th>value</th><th>typeof</th><th>isNaN</th><th>Number</th><th>parseInt</th><th>parseFloat</th></tr>'; for (var i=0 ; i<x.length ; i++){ str += '<tr><td>'+ i +'</td><td>'+ x[i] +'</td><td>'+ typeof x[i] +'</td><td>'+ isNaN(x[i]) +'</td><td>'+ Number(x[i]) +'</td><td>'+ parseInt(x[i]) +'</td><td>'+ parseFloat(x[i]) +'</td></tr>'; } str += '</table>'; document.write(str);I had to escape some of the stings.I look like to me to act the way I would aspect.... If you could point out what I should be caution of...I see a couple of maybe pitfall, I'm sorry, but it'll help if you don't mind pointing out one thing. I can see how Boolean can cause trouble.... But it's to much....Okay, I think I see all the pitfall... But if you could write a quick summary.... If not, thanks for the table.Brows by like, please add the feature, so one could go back to a post he or she like easier.Thanks for replying.
  20. Read again. This forum have errors. Sometime our post is triple posted.... I have come to learn programmers aren't all that smart of people.... Or really commonsense.... This is not entirety directed at you. I just had a stupid bad experience on stackexchange....
  21. If you want to check whether a value is NaN, you have to use the global function isNaN(): > isNaN(NaN) true > isNaN(33) false However, isNaN does not work properly with nonnumbers, because it first converts those to numbers. That conversion can produce NaN and then the function incorrectly returns true: > isNaN('xyz') trueI don't understand that last part! It doesn't make sense.Isn't this:>isNaN("abc");TrueWhat I want to be true? The string "abc" is not a number. So true is what I would want as my result. I could understand if he was referring to: "use strict";var foo, bar, baz;foo = "123";console.log(typeof (foo));//=> stringconsole.log(isNaN(foo));//=> falseconsole.log(typeof (foo));//=> string/*this make more since to me cause of the pitfall that can a occurred:*/bar = 5;baz = bar + foo;console.log(baz);//=> 5123
  22. Give us the power to delete our post in a limited time space; half an hour or so.There are errors in this forum, this can cut back off of user frustration.
  23. L8V2L

    xml to xsd

    Someone please delete this!
×
×
  • Create New...