{"id":85,"date":"2008-02-21T15:43:22","date_gmt":"2008-02-21T20:43:22","guid":{"rendered":"http:\/\/www.onvural.net\/melih\/wordpress\/?p=85"},"modified":"2008-02-21T15:43:22","modified_gmt":"2008-02-21T20:43:22","slug":"chronicling-my-visualizaton-project-start-with-an-error","status":"publish","type":"post","link":"https:\/\/www.onvural.net\/melih\/thoughts\/2008\/02\/21\/chronicling-my-visualizaton-project-start-with-an-error\/","title":{"rendered":"Chronicling My Visualizaton Project &#8211; Start with an error"},"content":{"rendered":"<p>It seems that you can&#8217;t claim that a project has started until there is a bug of some sort that has nothing to do with any code that you have written. In fact, it&#8217;s a bug in you setting up your system, which often tends to convince folks that the stars are lined against them, and they should just quit. Don&#8217;t quit. Just be patient, and you&#8217;ll find the way.<\/p>\n<p>I will be building the visualization that I created for the MovieLens Recommendation System as my project in <a href=\"http:\/\/courses.ncsu.edu\/csc591v\">Visualization<\/a>. It is probably the most awesome thing that I&#8217;ve planned on doing in a long, long time. To do the visualization, I will be taking advantage of an <a href=\"http:\/\/www.imdb.com\">IMDB<\/a> API written in Ruby by a one <a href=\"http:\/\/stephenbeckeriv.com\/imdb_api\">Stephen Becker IV<\/a>. I need the API to pull out information from IMDB that isn&#8217;t available in the data that we are given in the text file.<\/p>\n<p>And so today I am setting up the environment as a proof-of-concept, and I immediately run into a problem. Others seem to have had this problem, and seem to have solved it by waving their hands in the air and changing the magnetic field around themselves by just enough to switch the necessary bits on their hard drive. Unfortunately, I was never very good at waving my hand in the air like I just don&#8217;t care.<\/p>\n<p>The problem was that an included extension wasn&#8217;t building properly, and therefore when it was called it was puking the following output:<br \/>\n<code><br \/>\n<span><br \/>\nmonvural$ ruby imdb.rb<br \/>\n\/usr\/local\/lib\/ruby\/site_ruby\/1.8\/rubygems\/custom_require.rb:32:in `gem_original_require': no such file to load -- hpricot_scan (LoadError)<br \/>\nfrom \/usr\/local\/lib\/ruby\/site_ruby\/1.8\/rubygems\/custom_require.rb:32:in `require'<br \/>\nfrom \/usr\/local\/lib\/ruby\/gems\/1.8\/gems\/hpricot-0.6-jruby\/lib\/hpricot.rb:20<br \/>\nfrom \/usr\/local\/lib\/ruby\/site_ruby\/1.8\/rubygems\/custom_require.rb:32:in `gem_original_require'<br \/>\nfrom \/usr\/local\/lib\/ruby\/site_ruby\/1.8\/rubygems\/custom_require.rb:32:in `require'        from imdb.rb:12<br \/>\n<\/span><br \/>\n<\/code><br \/>\nI thought to myself, &#8220;Well damn, there&#8217;s no way I&#8217;ll figure this out.&#8221; The solution however was quite trivial. Props must go to the blog <a href=\"http:\/\/www.ikomaru.com\/aki_note\/?p=1840\">aki note<\/a> that had the answer written in Japanese. I used my amazing powers of reading the English characters to solve the issue at hand. The following steps will fix the error:<\/p>\n<p><code><br \/>\ncd \/usr\/local\/lib\/ruby\/gems\/1.8\/gems\/hpricot-0.6\/ext\/hpricot_scan\/<br \/>\nsudo ruby extconf.rb<br \/>\nmake<br \/>\nsudo make install<br \/>\n<\/code><br \/>\nThe result was a working program! The first major obstacle tackled, I can now get the information that I want from IMDB. Now I need to learn how to efficiently use Java3D.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It seems that you can&#8217;t claim that a project has started until there is a bug of some sort that has nothing to do with any code that you have written. In fact, it&#8217;s a bug in you setting up your system, which often tends to convince folks that the stars are lined against them, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[13,2,1],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pQyAq-1n","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":255,"url":"https:\/\/www.onvural.net\/melih\/thoughts\/2010\/02\/08\/another-bug-bites-the-dust\/","url_meta":{"origin":85,"position":0},"title":"Another bug bites the dust","date":"February 8, 2010","format":false,"excerpt":"I've been working on an interesting project lately that I hope to share with everyone soon. I keep running into the oddest of problems trying to get things going. It's almost as if just getting the whole thing started is the biggest challenge. After that... it's going to be a\u2026","rel":"","context":"In &quot;Technology&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":376,"url":"https:\/\/www.onvural.net\/melih\/thoughts\/2010\/07\/29\/jquery-form-submit-ie-bug\/","url_meta":{"origin":85,"position":1},"title":"jQuery, form submit() IE bug","date":"July 29, 2010","format":false,"excerpt":"Ran into a really bizarre bug today. There is a lot of chatter about the form.submit() functionality in jQuery on its API page. There's also some results you'll find on StackOverflow and the like about the functionality just not working. Two interesting bugs seem to be cropping up here... 1)\u2026","rel":"","context":"In &quot;Technology&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":160,"url":"https:\/\/www.onvural.net\/melih\/thoughts\/2009\/08\/30\/football-betting-2009\/","url_meta":{"origin":85,"position":2},"title":"A new series... Football Betting 2009","date":"August 30, 2009","format":false,"excerpt":"Our new CEO, Ian Small, made a point of making commitments to hard deadlines and hard actions, and then following up on those items when the time comes. I really like this sense of accountability. When you're behind, then you need to be able to account for what went wrong.\u2026","rel":"","context":"In &quot;Sports betting&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1763,"url":"https:\/\/www.onvural.net\/melih\/thoughts\/2016\/11\/22\/racial-profiling-is-a-trade-off-not-a-bug\/","url_meta":{"origin":85,"position":3},"title":"Racial profiling is a trade-off, not a bug","date":"November 22, 2016","format":false,"excerpt":"When developing software, a Product Manager (that's the job that I do) has to choose between whether to do the Cadillac version of a product (or feature) or the Accord version. Picking between one or the other is called making a tradeoff. Do you tradeoff completeness (which takes more time)\u2026","rel":"","context":"In &quot;just thinking out loud&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":995,"url":"https:\/\/www.onvural.net\/melih\/thoughts\/2014\/03\/11\/introducing-bug-hikes\/","url_meta":{"origin":85,"position":4},"title":"Introducing bug hikes","date":"March 11, 2014","format":false,"excerpt":"So it turns out that having a yard, and being by the park, has inspired a whole new activity for the kids... bug hikes! The kids went out yesterday, and found a mole in the woods. They look for spiders, ants, bees, and anything else that crawls. Genevieve is totally\u2026","rel":"","context":"In &quot;Fatherhood&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":583,"url":"https:\/\/www.onvural.net\/melih\/thoughts\/2012\/10\/21\/maybe-im-getting-good-at-this\/","url_meta":{"origin":85,"position":5},"title":"Maybe I'm getting good at this...","date":"October 21, 2012","format":false,"excerpt":"I have two distinct phases of my career at TokBox split between working in the engineering group, and then transitioning into product once we launched OpenTok. Building the prototype of the OpenTok platform is both the marker of the transition, and the high point of my career in engineering. I\u2026","rel":"","context":"In &quot;Becoming a PM&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/posts\/85"}],"collection":[{"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/comments?post=85"}],"version-history":[{"count":0,"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/posts\/85\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/media?parent=85"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/categories?post=85"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/tags?post=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}