{"id":205,"date":"2007-02-19T21:53:45","date_gmt":"2007-02-20T03:53:45","guid":{"rendered":"http:\/\/blog.the-erm.com\/archives\/205"},"modified":"2007-02-19T21:53:45","modified_gmt":"2007-02-20T03:53:45","slug":"how-to-become-a-hacker","status":"publish","type":"post","link":"https:\/\/blog.the-erm.com\/?p=205","title":{"rendered":"How to become a hacker"},"content":{"rendered":"<p>I was reading <a href=\"http:\/\/www.catb.org\/~esr\/faqs\/hacker-howto.html\">How to become a hacker<\/a><\/p>\n<p>It brought back a few memories.<br \/>\n<!--more--><br \/>\nPhrases like &#8220;I like Linux myself but there are other ways (and yes, you can run both Linux and Microsoft Windows on the same machine)&#8221; seemed to stir memories in me.<\/p>\n<p>Actually now you can run Linux with Live CDs that aren&#8217;t even installed, test drive it and learn from it.<\/p>\n<p>I love linux &#8230; a little too much.   With each passing year I try to get away from windows, and it just doesn&#8217;t work.  Mostly because of Flash, and .doc files.  -yes I know about open office, but I have not figured out a way to automate the creation of .doc files for the company I work for that hasn&#8217;t figured  creating those silly documents is like driving a semi to go to the grocery store to pick up a gallon of milk process wise.  When a zip file with html would suffice for those pictures and descriptions, but I digress.  They pay the bills I do it their way.<\/p>\n<p>At one point in time installing a dual boot seemed so magical.  Yet it&#8217;s not.  I see newbies in ##php on irc.freenode.net all the time.  Some of them have such difficulty understanding even the most basic of functions.  $var = &#8216;value&#8217;; It&#8217;s really that simple.<\/p>\n<p>You tell them the same thing over and over, but you swear they are perpetually stuck in &#8220;wow that&#8217;s so magical.&#8221;<\/p>\n<p>The thing is I find myself in that mode a lot when dealing with other programing languages.  It&#8217;s like you&#8217;re reaching for the name of something, it&#8217;s on the tip of your tongue, but you just can&#8217;t seem to think of the word.  Only in this case -you don&#8217;t know it at all.  This happens a lot to me when I&#8217;m dealing with xul, or should I say the javascript side of xul.  The xml behind it is just as easy as an html form, and css.  <\/p>\n<p>The funny thing about xul.<\/p>\n<p>Say for instance you set  a variable in your page.<\/p>\n<pre>\r\n&lt;script type=\"text\/javascript\"&gt;&lt;!--\r\n  my_var = \"xyz\";\r\n  alert(window['my_var']); \/\/ shows xyz.\r\n\/\/--&gt;\r\n&lt;\/script&gt;\r\n&lt;div id=\"my_div_id\"&gt;something inside a div&lt;\/div&gt;\r\n<\/pre>\n<p>Then with your xul javascript you do this.<\/p>\n<pre>\r\n  alert(content.window['my_var']); \/\/ does not get xyz\r\n  alert(content.document.getElementById(\"my_div_id\").innerHTML); \/\/ no problems here.\r\n<\/pre>\n<p>I know there&#8217;s a safe way of doing this, but I haven&#8217;t figured it out yet.   Guess it&#8217;s time to go be captain-eddie-lamer in #xul on irc.mozilla.org \ud83d\ude42<\/p>\n<p>The point is when you&#8217;re at a point in your education where have that feeling of grasping, and asking yourself how do they do that &#8230; that&#8217;s a good place to be.  You&#8217;re trying \ud83d\ude42<\/p>\n<p>Well enough navel gazing.<\/p>\n<p>Have fun.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was reading How to become a hacker It brought back a few memories.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24,9,7],"tags":[],"class_list":["post-205","post","type-post","status-publish","format-standard","hentry","category-life-stories","category-linux","category-makes-you-think"],"_links":{"self":[{"href":"https:\/\/blog.the-erm.com\/index.php?rest_route=\/wp\/v2\/posts\/205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.the-erm.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.the-erm.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.the-erm.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.the-erm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=205"}],"version-history":[{"count":0,"href":"https:\/\/blog.the-erm.com\/index.php?rest_route=\/wp\/v2\/posts\/205\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.the-erm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.the-erm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.the-erm.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}