Jump to content

hisoka

Members
  • Posts

    569
  • Joined

  • Last visited

Everything posted by hisoka

  1. I already did . However I still do not understand what are the additional hex values after 50 4B 05 06
  2. and what represent these additional hex values after 50 4B 05 06 00 00 00 00 02 00 02 00 6F 00 00 00 84 09 00 00 00 00 ??
  3. Hello glad to be again in w3schools forum when I opened a zip file in hex editor , I noticed that after the end of the file , there are additional hex values . For example in a zip file I opened in a hex editor there was like this : 50 4B 05 06 00 00 00 00 02 00 02 00 6F 00 00 00 84 09 00 00 00 00 50 4B 05 06 hex values represent the end of the zip file . However , I do not understand what represent these additional hex values after the end 00 00 00 00 02 00 02 00 6F 00 00 00 84 09 00 00 00 00 ??
  4. Could you please tell me how does exactly a missile launch code work ? I have a website here which is of course fake https://whitehouse.gov1.info/launch/launch.html and I saw codes like this : pyHAvqTp3Mxye8vscUGr+92wvuhK6eyL9QBseQ4gsX3Fcnr2xO 9cMJHoSdEv98hVymwhLsOgLzigJHPTfxA0Ani7EWNaZx1hLaRm pyHAv2KZ9gRLgLtwb4spOh0Xb1cFjsZ3tcbo6CnuUT+wOy74p7 mQINBE+UYy0BEADeUhQF1JVfDU9/OAvWD3FajAyQPjAeiOoVRfukM0L8qFQCieCN pyHAvqTp3Mxye8vscUGr+92wvuhK6eyL9QBseQ4gsX3Fcnr2xO 9cMJHoSdEv98hVymwhLsOgLzigJHPTfxA0Ani7EWNaZx1hLaRm pyHAv2KZ9gRLgLtwb4spOh0Xb1cFjsZ3tcbo6CnuUT+wOy74p7 mQINBE+UYy0 how does the whole process work?
  5. var x = document.anchors ; for ( var i = 0 ; i < 5 ; i++) { console.log(x[i]); } gives as a result and even var x = document.anchors ; for ( var i = 0 ; i < 5 ; i++) { alert(x[i]); } gives undefined I do not know how to get the result . Any help
  6. finding HTML objects : document.anchors I would like to enumerate the first 5 <a> elements using for loop but I failed : var x = document.anchors ; for ( var i = 0 ; i<=5 ; i++) { console.log(x);} This what I got HTMLCollection [ ] HTMLCollection [ ] HTMLCollection [ ] HTMLCollection [ ] HTMLCollection [ ] I would like to get the first 5 elements . Any hint ?
  7. Now to understand : document.getElementById(id).onclick = function(){code} I wrote this : <html> <body> <p id="here">w3schools.invisionzone.com</p> <script> function change() { var x = document.getElementById('here'); x.style.color = "red"; } </script> <form> <button type="button" onclick="change()" >Click Me!</button> </form> </body> </html>
  8. So I did like this to get the parent of the child element : var b = document.getElementsByTagName('a')[2] ; var x = b.parentNode ; console.log(x); and I got : <div style="float:left;width:50%;overflow:hidden;height:44px"> then did like this : x.removeChild( and it was removed
  9. For example in this script : <body> <div class='w3-container top'> <a class='w3schools-logo' href='http://www.w3schools.com'>w3schools<span class='dotcom'>.com</span></a> <div class='w3-right toptext w3-wide'>THE WORLD'S LARGEST WEB DEVELOPER SITE</div></div> <div class='w3-navbar w3-card-2 w3-slim topnav' id='topnav'> <div style='overflow:auto;'> <div style='float:left;width:50%;overflow:hidden;height:44px'> <a href='javascript:void(0);' class='topnav-localicons w3-hide-large w3-left' onclick='open_menu()' title='Menu'>☰</a> <a href='/default.asp' class='topnav-icons fa fa-home w3-left' title='Home'></a> <a href='/html/default.asp' class='w3-hide-small' title='HTML Tutorial'>HTML</a><a href='/css/default.asp' class='w3-hide-small' title='CSS Tutorial'>CSS</a><a href='/js/default.asp' class='w3-hide-small' title='JavaScript Tutorial'>JAVASCRIPT</a><a href='/sql/default.asp' class='w3-hide-small' title='SQL Tutorial'>SQL</a><a href='/php/default.asp' class='w3-hide-small' title='PHP Tutorial'>PHP</a><a href='/bootstrap/default.asp' class='w3-hide-small' title='Bootstrap Tutorial'>BOOTSTRAP</a><a href='/jquery/default.asp' class='w3-hide-small' title='jQuery Tutorial'>JQUERY</a><a href='/angular/default.asp' class='w3-hide-small' title='Angular Tutorial'>ANGULAR</a><a href='/xml/default.asp' class='w3-hide-small' title='XML Tutorial'>XML</a></div> <div style='float:right;width:110px;overflow:hidden;height:44px;'> <a href='javascript:void(0);' class='topnav-icons fa fa-search w3-right' onclick='w3_open_nav("search")' title='Search W3Schools'></a> <a href='javascript:void(0);' class='topnav-icons fa fa-globe w3-right' onclick='openGoogleTranslate();w3_open_nav("translate")' title='Translate W3Schools'></a></div> <div class='w3-hide-small' style='float:right;width:30%;overflow:hidden;height:44px;'> <a id='topnavbtn_tutorials' href='javascript:void(0);' onclick='w3_open_nav("tutorials")' title='Tutorials'>TUTORIALS <i class='fa fa-caret-down'></i><i class='fa fa-caret-up' style='display:none'></i></a><a id='topnavbtn_references' href='javascript:void(0);' onclick='w3_open_nav("references")' title='References'>REFERENCES <i class='fa fa-caret-down'></i><i class='fa fa-caret-up' style='display:none'></i></a><a id='topnavbtn_examples' href='javascript:void(0);' onclick='w3_open_nav("examples")' title='Examples'>EXAMPLES <i class='fa fa-caret-down'></i><i class='fa fa-caret-up' style='display:none'></i></a><a href='/forum/default.asp'>FORUM</a></div></div> <div id='nav_tutorials' class='w3-dropnav w3-light-grey w3-card-2 w3-center'></div> <div id='nav_references' class='w3-dropnav w3-light-grey w3-card-2 w3-center'></div> <div id='nav_examples' class='w3-dropnav w3-light-grey w3-card-2 w3-center'></div> <div id='nav_translate' class='w3-dropnav w3-light-grey w3-card-2 w3-center'></div> <div id='nav_search' class='w3-dropnav w3-light-grey w3-card-2 w3-center'></div></div> <div class='w3-row w3-light-grey' id='belowtopnav'> <div class='w3-col w3-slim' id='leftmenu'> <div id='leftmenuinner'> <div class='w3-light-grey' id='leftmenuinnerinner'> how to delete this element : <a href='/default.asp' class='topnav-icons fa fa-home w3-left' title='Home'></a> var b = document.getElementsByTagName('a')[2] ; and we know that it is the child of <body> so I did like this : var b = document.getElementsByTagName('a')[2] ; document.body.parentElement.removeChild( but I got an error : However if we look in html script above we will notice that body node exists so why it says node not found ? and how to correct again the error
  10. Look Justsomeguy I am an idiot . The whole time the word interface was explained here in simple words http://www.w3schools.com/js/js_htmldom_methods.asp But because I did not open my eyes and give some efforts to read . I did not notice it Now I would like to know what is a node . So , first , I tried to reread all the pages I already read so that I did not miss the definition of the word node in w3schools tutorial but I could not find the definition as I did with the word interface . However I found this interesting tree : So I think that each element is a node of the tree . title is a node , href is a node and body is a node... . Right ? or wrong ? In the same time , head element is a child of the parent html element and body element is the child of the parent html element . Title element is the child of head element which is its parent . and html element is the grandfather of the title element Right or wrong ?
  11. ok now coming to document.removeChild(element) I did like this : var b = document.getElementsByTagName('a')[7]; document.removeChild( but there was an error saying what is the meaning of the error ? and how to correct it ?
  12. So an interface is the methods and properties of an object ??
  13. Thank you for the link . The blueprint of an object or the object interface is nothing more than its methods and properties . Right ? or wrong ?
  14. To understand better I will write that in java script a variable is an object . So var name = "john"; is an object with value john . Could you please give me the blueprint of the variable name ?
  15. Literary , I know what a blueprint means but programmatically not . For example this is an object : <div id="headerSubnav"> what is its blueprint ? please write me its blueprint so that I know how does the blueprint of the object <div id="headerSubnav"> look like
  16. ok so let's say that what you mean is these three links : https://en.wikibooks.org/wiki/Introduction_to_Programming_Languages/Parsing http://whatis.techtarget.com/definition/parse http://nathansuniversity.com/pegs.html in the last link it written : what is the need to turn a program written by a programmer into structured data before being compiled ? Why we do not compile the program directly ?
  17. So the data read to a log file is parsed or broken up so that when we open the log file to see what is inside it , it looks like this : May 8 11:22:23 server5 pure-ftpd: (?@120.76.103.188) [INFO] New connection from 120.76.103.188 May 8 11:22:27 server5 pure-ftpd: (?@120.76.103.188) [WARNING] Authentication failed for user [anonymous] May 8 11:22:28 server5 pure-ftpd: (?@120.76.103.188) [INFO] Logout. May 8 11:22:28 server5 pure-ftpd: (?@120.76.103.188) [INFO] New connection from 120.76.103.188 May 8 11:22:33 server5 pure-ftpd: (?@120.76.103.188) [WARNING] Authentication failed for user [ruralmetro] May 8 11:22:34 server5 pure-ftpd: (?@120.76.103.188) [INFO] Logout. May 8 11:23:05 server5 pure-ftpd: (?@120.76.103.188) [INFO] New connection from 120.76.103.188 May 8 11:23:14 server5 pure-ftpd: (?@120.76.103.188) [WARNING] Authentication failed for user [onlinelearning] May 8 11:23:14 server5 pure-ftpd: (?@120.76.103.188) [INFO] Logout. well organized , in order and clear . Right or wrong ? Parsing is done in the same time with reading or before ? I mean data are parsed then read to log file or parsed meanwhile it is being read ? What happens if data is not parsed and read to a log file ? what happens if it is being read without being parsed ? it will look like this : èÇ R…Àt*ÇD$7`Dn‰$èº ƒì…Àt Ç$ÄRDnÿÐÉø 맸 ëâU‰åƒìÇ$ `Dnè~ Q…Àt%ÇD$K`Dn‰$èq ƒì…Àt Ç$ àDnÿÐÉÃv ¸ ëç ƒ|$u ¸€`DnÃv 1Àö ¼' ¸€`DnÃ|$u ¸ aDnÃv 1Àö ¼' UWVSƒì|‹¬$ Ç$ èv ‰D$LÇD$ ÇD$ ÇD$ D$L‰$è¾ èÁ Ç$ è­ S‹•Ð ‰T$4…Ò„š ÿE‰,$è¿$ öÄ0„ ‰,$è®$ öÄ@… ‹˜ …É„Ö Ç$ è[ R‹]4ûA ië û@ ŒÔ „¾ ‰,$è†^ …ÀŽO ÇED ‹}l…ÿ„l ÇE4B ¾B ‹L$4…Éu`´& ‰óûA ~¦ûa Ê û` Œ® „¸ ‰,$è ^ …ÀŽé ÇED ÇE4 ¾ t& ‹L$4…Ét¨9Þt¤‰]4ÇD$ ÇD$ ‰,$‹T$4ÿÒ‰u4‰ó냉,$èèÓ éîþÿÿv û Ä û ŒH ÇE0 „Ë ‹E<‹pû „Ð ‹UT‹‚ Bd‹’ | ÿÿ? ‡ ‹ED‰ú)‰T$ð‰D$‰,$‰T$0èšV ‹T$09Â…® ‹Ed…Àt+‹Uh‰T$‰l$‰|$‰t$ÇD$ ‹U ‰T$Ç$ ÿÐƒÆ ‰t$8‹UT‹‚ …À… ÇD$ ‰,$è´I …À„£ ‹El…À„Ñ ‹UT‹L$8Š Š ‹Bdƒø ‡ zh‰ÎƒøƒT 1Ò¨tf‹f‰º ¨tŠˆÇED ÇE4 ¾ éqþÿÿû€ „$ ^ ƒßÿÿƒø‡ï ‹…È ¨„© ‹•À ‹²œ …öt¨…‘ ‹}T—ð ‰T$8ûp „“ ûq „ ûr „° ‹E<‹p‹‡ ‡ xÿÿ? † ??
  18. I will try my best man . What does blueprint of an object mean ?
  19. First thank you for correcting me . Parsing is reading and by reading it is meant like in this URL : http://www.webopedia.com/TERM/R/read.html Copying data to a file or storing data in a file lets say log file . So the answer to my question . what does parse a log file mean storing data in a well formatted and clear way . I am right or wrong ?
  20. if dictionaries and articles helped me I would not create an account in http://w3schools.invisionzone.com and I would not ask for help . Things should be clear 100% in my mind otherwise I am not satisfied . I did not learn programming and computer science , at university , like most of you did because I did not get the opportunity because I got a very hard circumstances in my life ( let not talk about it ) if I studied it at university or got even friends who can help me in real life I would not have been here . Either you take me like I am an ignorant newbie who is in the beginning of the path or you no need to answer my question . You answered many questions and I understood very well but . I cannot pretend to understand if I did not . I am like that . So please be patient with me or let me down . I did not understand means I did not understand . Sorry man
  21. Sorry I will specify my question : here : is mentioned the word interface and I would like to know what does it mean ?
  22. From my imagination , I put parsing log file in the search box in google . I did not read it any where really
  23. So based on the example you gave me , by parsing a log file you mean writing data to a a log file and separating or arranging it in a way that it is clearly understandable and good organized ? is this what you mean Justsomeguy ? and consequently what is meant by parsing a log file ?
  24. what does this mean ?? and what is an attribute in JavaScript context ? I still do not understand what is an interface . Could you explain further ?
  25. It is not that I cannot imagine the situation . The situation is not well understood to me . I did not read it anywhere . I am writing in general . Generally speaking , could you please enumerate them ? What are the reasons of interpreting or parsing a log file?
×
×
  • Create New...