{"id":315,"date":"2008-10-21T16:12:02","date_gmt":"2008-10-21T20:12:02","guid":{"rendered":"http:\/\/itp.nyu.edu\/~bmy1\/itpblog\/?p=315"},"modified":"2008-12-26T18:03:28","modified_gmt":"2008-12-27T01:03:28","slug":"word-counting","status":"publish","type":"post","link":"https:\/\/yeeality.com\/blog\/2008\/10\/21\/word-counting\/","title":{"rendered":"Log Computer: Word Counting"},"content":{"rendered":"<p>The first two segments of the semester focused on &#8220;logging yourself&#8221; and &#8220;logging your environment.&#8221; The most recent segment focused on &#8220;logging your computer.&#8221; Some of my peers tracked and visualized their mouse movements, some were sniffing packets, and others logged their keystrokes. I fell into the latter group, using a program called <a href=\"http:\/\/www.macupdate.com\/info.php\/id\/16155\">logkext<\/a> to keep a record of my typing. The advantages of the program are that it&#8217;s lightweight, free, runs in the background, and encrypts the log file. Still, there is a bit of risk in logging key strokes because of sensitive information including login details and private conversations. Regardless, I installed the client and ran it for about a week. The terminal interface was simple and refreshing to use.<\/p>\n<p>Once I gathered the data, I found the first step in analyzation (word countring) to be tricky, but fortunately our helpful instructors at ITP provide code to move that process along (see <a href=\"http:\/\/www.shiffman.net\/teaching\/a2z\/concordance\/\">Daniel Shiffman &#8211; concordance<\/a> and <a href=\"http:\/\/itp.nyu.edu\/varwiki\/ClassWork\/Computers-for-the-Rest-of-You-Dan-OSullivanF07-Language\">Dan O&#8217;Sullivan &#8211; language<\/a>). Even with the code, getting the raw data into an organized list of counted words wasn&#8217;t obvious for a eclipse coding novice, but I got to the stage I wanted. **<em>Note: in Eclipse, there&#8217;s an option when you select &#8220;run as&#8221; called &#8220;run configurations,&#8221; which allows a user to specify a file path in the &#8220;(x)=arguments&#8221; tab.<\/em> You can see the <a href=\"http:\/\/spreadsheets.google.com\/pub?key=pOy18cWE9eYPui5W7JpV1dw\">top 500 words here<\/a>. To get that nice round number, I manually removed noise and cropped off anything typed less than twice. The next step with this project would be to compare this data to other data &#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The first two segments of the semester focused on &#8220;logging yourself&#8221; and &#8220;logging your environment.&#8221; The most recent segment focused on &#8220;logging your computer.&#8221; Some of my peers tracked and visualized their mouse movements, some were sniffing packets, and others logged their keystrokes. I fell into the latter group, using a program called logkext to [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-315","post","type-post","status-publish","format-standard","hentry","category-restof"],"_links":{"self":[{"href":"https:\/\/yeeality.com\/blog\/wp-json\/wp\/v2\/posts\/315","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yeeality.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yeeality.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yeeality.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/yeeality.com\/blog\/wp-json\/wp\/v2\/comments?post=315"}],"version-history":[{"count":10,"href":"https:\/\/yeeality.com\/blog\/wp-json\/wp\/v2\/posts\/315\/revisions"}],"predecessor-version":[{"id":319,"href":"https:\/\/yeeality.com\/blog\/wp-json\/wp\/v2\/posts\/315\/revisions\/319"}],"wp:attachment":[{"href":"https:\/\/yeeality.com\/blog\/wp-json\/wp\/v2\/media?parent=315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yeeality.com\/blog\/wp-json\/wp\/v2\/categories?post=315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yeeality.com\/blog\/wp-json\/wp\/v2\/tags?post=315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}