Archive for the 'popular' Category
Netflix Streaming Error 8156-6003, Silverlight Update
I’m getting a streaming error “DRM Error” while trying to stream netflix. I watched an episode of Lost when I got home last night, soon after midnight, and it worked fine. What could be causing this error today?
Since everyone knows that Microsoft Silverlight is a piece of crap, it is the immediate culprit. I noticed that a Silverlight update was installed by Microsoft today or last night.
The Update number is KB982926 and it seems to have broken Netflix’s Streaming capabilities. It contained Silverlight Version 4.
FIX:
1. Go to Windows Update Settings and change it from “Automatically install updates” to “Download updates and ask me when to install” (otherwise silverlight will reinstall itself again)
2. Close your web browser
3. Go to Control Panel -> Uninstall a program -> Remove Silverlight
4. Go to netflix.com and start streaming a movie. It will prompt you to go to microsoft’s site and install Silverlight Version 3.
5. Restart your browser and it should work. Just worked for me on Windows 7.
Cygwin Vs. Hadoop – DFS Copy
Cygwin makes Hadoop MUCH harder to run.
If you’re having problems setting up your DFS file share under Cygwin, see what happened to me. Notice that you have to use the WINDOWS path (C:\\cygwin\\home\\Rajat\\…..) With escape characters.
Rajat@rtde ~/hadoop-0.20.1
$ bin/hadoop dfs -copyFromLocal /home/Rajat/java/mrh/input inputs
copyFromLocal: File /home/Rajat/java/mrh/input does not exist.
Rajat@rtde ~/hadoop-0.20.1
$ bin/hadoop dfs -copyFromLocal C:\cygwin\home\Rajat\java\mrh\input input
copyFromLocal: File C:cygwinhomeRajatjavamrhinput does not exist.
Rajat@rtde ~/hadoop-0.20.1
$ bin/hadoop dfs -copyFromLocal C:\\cygwin\\home\\Rajat\\java\\mrh\\input input
(((THIS WORKED)))
Test:
Rajat@rtde ~/hadoop-0.20.1
$ bin/hadoop dfs -ls
Found 1 items
drwxr-xr-x – Rajat supergroup 0 2009-12-16 23:30 /user/Rajat/input
Rajat@rtde ~/hadoop-0.20.1
$ bin/hadoop dfs -ls input
Found 1 items
-rw-r–r– 1 Rajat supergroup 683956 2009-12-16 23:30 /user/Rajat/input/162523852.csv
As NRI
Finals are over. Two projects still due, but Exams are over!!
In a week, Melissa and I will be en route to India with Tania, Viraj, Anu, Sonia, and many others.
Whenever I go to India, I have a few strange feelings about it. I love being there, learning about my culture and heritage, and of course eating the world’s best cuisine. However, Indians decidedly make us feel like we don’t belong. Everyone we encounter, from the people in the hotels and on the street to my relatives and cousins, make a point of treating me like an outsider. And by outsiders I mean stupid Americans. Every conversation is forced to English and my Bengali is greeted with “VHATT?” and “KEE BOLTHAE CHOOUW?”. Lord know we’re hopelessly overcharged for everything we want to buy. Taxis take circuitous routes, and you’re always handed the most expensive items in every store.
The only one that really bothers me is being treated as someone with only a passing interest in India. I feel badly about it maybe because it is true. As much as I’m interested in India, the economy, relations with the Pakis, the high tech sector, my interest has never evolved further. I have always wanted it to, but to develop a stronger interest, I need to spend more time there. And in order to spend more time there, I must be away from the US for longer periods. That hasn’t been possible until this year.

On this trip, I am planning to immerse myself completely in India; all of our lively culture and the energy of the place. This “Indian-American” stuff isn’t a strong identity. I want to get my culture from the source.
1 commentCan’t compile the example WordCount.java (Hadoop)
http://mail-archives.apache.org/mod_mbox/hadoop-common-user/200907.mbox/%3Cd6d7c4410907201717t672e4caet3f369d7e4327ff7b@mail.gmail.com%3E
Seen this?
Rajat@rtde ~/java
$ javac -classpath /home/Rajat/hadoop-0.20.1/hadoop-0.20.1-core.jar -d
wordcount_classes WordCount.javaWordCount.java:5: package org.apache.hadoop.fs does not exist
import org.apache.hadoop.fs.Path;WordCount.java:6: package org.apache.hadoop.conf does not exist
import org.apache.hadoop.conf.*;
^
WordCount.java:7: package org.apache.hadoop.io does not exist
import org.apache.hadoop.io.*;
^
WordCount.java:8: package org.apache.hadoop.mapred does not exist
import org.apache.hadoop.mapred.*;
^
WordCount.java:9: package org.apache.hadoop.util does not exist
import org.apache.hadoop.util.*;
And running CygWin on Windows? Tried everything for your classpath
huh? Try this:
$ javac -verbose -classpath C:\\cygwin\\home\\Rajat\\hadoop-0.20.1\\hadoop-0.20.1-core.jar -d wordcount_classes WordCount.java
(Change your cygwin path, obviously)
Use the -verbose flag to show the entire class search path.
ScrubyT traverse_for_match: undefined method each for nil:NilClass
Using ScrubyT, a Ruby on Rails plugin, on a Linux system such as my CentOS 5 VPS, you can get an error message and stack trace like this:
/usr/lib/ruby/gems/1.8/gems/scrubyt-0.4.06/lib/scrubyt/utils/shared_utils.rb:43:in `traverse_for_match’: undefined method `each’ for nil:NilClass (NoMethodError)
If you see this, go to shared_utils.rb in the path above, and change this block:
node.children.each { |child| traverse_for_m….
into this:
if node.children
node.children.each { |child| traverse_for_m….
end
Thanks to Deginzabi who wrote about it in Japanese. This article is a translation of what he said. Hope this makes the next ScrubyT release! It is a great project.
auto_complete with Rails 2.2
This page is about the auto_complete plugin for scriptaculous & Ruby on Rails 2.2. After looking through tons of pages and following countless dead links, here are the problems I had and how to fix them.
Error:
undefined method `text_field_with_auto_complete' for #<ActionView::Base:0x478d5e4>
Answer:
Install the auto_complete plugin.
command:ruby script/plugin install git://github.com/rails/auto_complete.git
Error:
ruby script/plugin install git://github.com/rails/auto_complete.git
removing: C:/Dropbox/My Dropbox/Ruby/mc/vendor/plugins/auto_complete/.git
Answer:
You don't have GIT installed. Its like a package manager. Get it from:http://git-scm.com/download
Error:
ruby script/plugin remove auto_complete
Plugin doesn't exist: C:/Dropbox/My Dropbox/Ruby/mcvendor/plugins/auto_complete
Answer:
Duh, it isn't installed. Install as directed above.
Error:
Just doesn't seem to work.
Answer:
Restart rails
Do the error logs tell you something?
Go over this article with a fine toothed comb:http://www.slash7.com/articles/2005/08/13/ajaxariffic-autocomplete-with-scriptaculous
Error:
ActionController::InvalidAuthenticityToken in your development.log
Answer:
There is a cross-site scripting protection that must be turned off.
Add this to your controller:
skip_before_filter :verify_authenticity_token

