<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Lojic Technologies Blog &#187; movies</title>
	<atom:link href="http://lojic.com/blog/tag/movies/feed/" rel="self" type="application/rss+xml" />
	<link>http://lojic.com/blog</link>
	<description></description>
	<lastBuildDate>Fri, 25 Nov 2011 20:12:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Greasemonkey Script for Netflix Half Star Ratings</title>
		<link>http://lojic.com/blog/2007/08/27/greasemonkey-script-for-netflix-half-star-ratings/</link>
		<comments>http://lojic.com/blog/2007/08/27/greasemonkey-script-for-netflix-half-star-ratings/#comments</comments>
		<pubDate>Mon, 27 Aug 2007 21:38:50 +0000</pubDate>
		<dc:creator>Brian Adkins</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[movies]]></category>
		<category><![CDATA[utility]]></category>

		<guid isPermaLink="false">http://lojic.com/blog/2007/08/27/greasemonkey-script-for-netflix-half-star-ratings/</guid>
		<description><![CDATA[I wrote an article back in May about a way to give half star ratings on Netflix. It had the advantage of working in any browser and not requiring any software installation, but it wasn&#8217;t very user friendly.
Since then, I&#8217;ve been doing a lot of JavaScript coding, so I thought I&#8217;d give Greasemonkey a try. [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote an article back in May about a way to give <a href="http://lojic.com/blog/2007/05/02/half-star-ratings-on-netflix/">half star ratings</a> on Netflix. It had the advantage of working in any browser and not requiring any software installation, but it wasn&#8217;t very user friendly.</p>
<p>Since then, I&#8217;ve been doing a lot of JavaScript coding, so I thought I&#8217;d give <a href="https://addons.mozilla.org/en-US/firefox/addon/748">Greasemonkey</a> a try. I found a script <a href="http://userscripts.org/scripts/review/8118">here</a> to give half-star ratings, but I didn&#8217;t care for the hover captions and JSLint pointed out a few issues, so I cleaned it up a little:</p>
<p><strong>Code</strong><br />
<code><br />
// ==UserScript==<br />
// @name          Netflix Half Stars<br />
// @description   allows half star user ratings on Netflix<br />
// @include       http://*netflix.com/*<br />
// ==/UserScript==<br />
// http://userscripts.org/scripts/review/8118<br />
// Modified by Brian Adkins</p>
<p>if (!unsafeWindow.sbHandler) { return; }</p>
<p>var sbHandler = unsafeWindow.sbHandler;<br />
sbHandler.sbOffsets = [8,18,27,37,46,56,65,75,84,94];</p>
<p>sbHandler.displayStrings[0.5] = ".5 stars";<br />
sbHandler.displayStrings[1.5] = "1.5 stars";<br />
sbHandler.displayStrings[2.5] = "2.5 stars";<br />
sbHandler.displayStrings[3.5] = "3.5 stars";<br />
sbHandler.displayStrings[4.5] = "4.5 stars";</p>
<p>sbHandler.sbImages[0.5] = new Image();<br />
sbHandler.sbImages[0.5].src = sbHandler.imageRoot+"stars_2_5.gif";</p>
<p>for(var i = 2; i < 11; i++) {<br />
  sbHandler.sbImages[i/2] = new Image();<br />
  sbHandler.sbImages[i/2].src = sbHandler.imageRoot + "stars_2_" +<br />
    (Math.floor(i/2)) + (i % 2 === 0 ? "0" : "5") + ".gif";<br />
}</p>
<p>sbHandler.getStarCount = function (evt) {<br />
  var x = unsafeWindow.getElementMouseCoordinate(evt, this.element);</p>
<p>  for(var ii = 0; ii < 10; ii++) {<br />
    if(x <= this.sbOffsets[ii]) { return (ii + 1) / 2; }<br />
  }</p>
<p>  return 0;<br />
};<br />
</code></p>
<p><strong>Installation</strong></p>
<p>Save the JavaScript code with .user.js extension e.g. netflix_halfstar.user.js and then open that file in Firefox and Greasemonkey should prompt you to install it.</p>
]]></content:encoded>
			<wfw:commentRss>http://lojic.com/blog/2007/08/27/greasemonkey-script-for-netflix-half-star-ratings/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>The Real Rain Man</title>
		<link>http://lojic.com/blog/2007/05/04/the-real-rain-man/</link>
		<comments>http://lojic.com/blog/2007/05/04/the-real-rain-man/#comments</comments>
		<pubDate>Fri, 04 May 2007 17:47:18 +0000</pubDate>
		<dc:creator>Brian Adkins</dc:creator>
				<category><![CDATA[amazing]]></category>
		<category><![CDATA[science]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[movies]]></category>

		<guid isPermaLink="false">http://lojic.com/blog/?p=65</guid>
		<description><![CDATA[Who was the game winning pitcher in game three of the 1926 world series? Who were the four people in George Washington&#8217;s cabinet? When was Sir Walter Raleigh executed? What day of the week was that? Kim Peek has no trouble answering questions like these and thousands more from memory. He is the person the [...]]]></description>
			<content:encoded><![CDATA[<p>Who was the game winning pitcher in game three of the 1926 world series? Who were the four people in George Washington&#8217;s cabinet? When was Sir Walter Raleigh executed? What day of the week was that? Kim Peek has no trouble answering questions like these and thousands more from memory. He is the person the &#8220;Rain Man&#8221; character was based on. He reads eight books a day. A page that would normally take three minutes to read takes him eight to ten seconds. He reads the left page with his left eye and the right page with his right eye and retains 98% of it. The neurologist who originally diagnosed him only gave them five minutes of his time because he was late for a golf game; he said they should put Kim in an institution and forget about him.</p>
<p><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/k2T45r5G3kA"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/k2T45r5G3kA" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></p>
<p>Other parts of the series:</p>
<p><a href="http://www.youtube.com/watch?v=NJjAbs-3kc8">Part Two of Five</a></p>
<p><a href="http://www.youtube.com/watch?v=Auufbu_ZdDI">Part Three of Five</a></p>
<p><a href="http://www.youtube.com/watch?v=vRPxMDj33S4">Part Four of Five</a></p>
<p><a href="http://www.youtube.com/watch?v=a1aA5osvYgY">Part Five of Five</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lojic.com/blog/2007/05/04/the-real-rain-man/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Half star ratings on Netflix</title>
		<link>http://lojic.com/blog/2007/05/02/half-star-ratings-on-netflix/</link>
		<comments>http://lojic.com/blog/2007/05/02/half-star-ratings-on-netflix/#comments</comments>
		<pubDate>Wed, 02 May 2007 18:43:27 +0000</pubDate>
		<dc:creator>Brian Adkins</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[movies]]></category>
		<category><![CDATA[utility]]></category>
		<category><![CDATA[web2.0]]></category>

		<guid isPermaLink="false">http://lojic.com/blog/?p=63</guid>
		<description><![CDATA[I noticed a friend of mine (Jordan L.) who had half-star ratings (2.5, 3.5, etc.) on Netflix. When I asked him about it, he said to just &#8220;hover over the left side of the star&#8221; to get a half-star rating. This didn&#8217;t work for me, so I thought it might be a Linux vs. Windows [...]]]></description>
			<content:encoded><![CDATA[<p>I noticed a friend of mine (Jordan L.) who had half-star ratings (2.5, 3.5, etc.) on Netflix. When I asked him about it, he said to just &#8220;hover over the left side of the star&#8221; to get a half-star rating. This didn&#8217;t work for me, so I thought it might be a Linux vs. Windows thing and asked another friend (Mike F.) to try it out. Same result &#8211; didn&#8217;t work in IE or Firefox on Windows. Then Mike found a <a href="http://userscripts.org/scripts/show/8118">JavaScript file</a> that could be installed with <a href="https://addons.mozilla.org/en-US/firefox/addon/748">greasemonkey</a> and that worked fine for him.</p>
<p>I&#8217;ve yet to install <a href="https://addons.mozilla.org/en-US/firefox/addon/748">greasemonkey</a>, and I don&#8217;t like the idea of installing JavaScript on my system unless I&#8217;ve thoroughly analyzed it, so I thought of another way.</p>
<p>I installed <a href="http://www.wireshark.org/">wireshark</a> on my Ubuntu Linux box and sniffed the network traffic to Netflix when I rated a movie. After some experimenting and removal of extraneous info, I came up with the following URL to rate a movie with half stars. This specific URL will rate the movie &#8220;The Incredibles&#8221; with a 4.5 star rating (probably a bad example since The Incredibles clearly deserves a 5 star rating):</p>
<p>http://www.netflix.com/SetRating?widgetid=M70001989&#038;value=4.5</p>
<p>To rate other movies, simply replace 70001989 with the id of the movie which you can find by hovering over the movie. I believe you&#8217;ll need to be logged in to Netflix already for this to work.</p>
<p>Now as to why Jordan can rate half-stars without the aid of a greasemonkey script, that&#8217;s still a mystery.</p>
<p><strong>Update:</strong> got an email from Jordan explaining that his Netflix pages include the following two JavaScript source files:</p>
<p>src=&#8221;http://www.netflix.com/layout/jscript/dom_starbar_v2.js?v=126505&#8243;<br />
src=&#8221;http://www.netflix.com/layout/jscript/dom_starbar_halfstars.js?v=126505&#8243;</p>
<p>I only have the first one, and from the name of the second one, I presume that&#8217;s the one that gives him the special half star rating capability. I guess Netflix favors Jordan over me :(</p>
<p><strong>Update 2:</strong> mystery solved! My curiosity got the best of me so I contacted Netflix. The rep said they&#8217;re running a test and Jordan just happened to get picked (I didn&#8217;t mention Jordan, but I suppose they looked through my &#8216;friend&#8217; list)! They do that periodically to test features to see if they&#8217;ll give them to the unwashed masses. I asked if they could run the test on me, and he said it didn&#8217;t work that way :) So I guess it&#8217;s the greasemonkey script or the inconvenient URL hack for the rest of us.</p>
]]></content:encoded>
			<wfw:commentRss>http://lojic.com/blog/2007/05/02/half-star-ratings-on-netflix/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

