Jump to content

hisoka

Members
  • Posts

    569
  • Joined

  • Last visited

Posts posted by hisoka

  1. 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  ??

     

     

     

     

     

  2. 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?

  3. 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>
  4. An easy way to do that is to do element.parentNode.removeChild(element).

     

     

    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 :

     

     

    NotFoundError: Node was not found

     

    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

  5. So an interface is the methods and properties of an object ??

     

     

    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

     

    The programming interface is the properties and methods of each object

     

     

    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 :

     

    pic_htmltree.gif

     

     

    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 ?

  6. 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 :

     

    Parsing is the general problem of turning raw text into structured data. In the case of parsing programming languages, parsing converts the text the programmer writes into an abstract syntax tree

     

    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 ?

  7. 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ÿÿ?  †

    ??

  8. Don't ask me to simplify, if you have trouble understanding then look up words in the dictionary and look up concepts on Wikipedia.

     

    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

  9. 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 ?

  10. You can't imagine a situation where that might be useful?

     

    It is not that I cannot imagine the situation . The situation is not well understood to me .

     

    Perhaps we can find out the intentions behind it if you tell us where you read about parsing log files.

     

    I did not read it anywhere . I am writing in general .

     

    there are a multitude of possible reasons

     

    Generally speaking , could you please enumerate them ? What are the reasons of interpreting or parsing a log file?

×
×
  • Create New...