Tuesday, January 19, 2010

Vizio VF550M + Comcast Problem (and Workaround)



The Vizio VF550M television has a weird interaction with Comcast Cable at least in the San Francisco Bay Area: replicated channels.

Upon doing a full channel scan during setup, some lowers channels get replicated to channels in the 200s. For example, channel 244-1 is identical to 44-1. The problem is that the "skip channel" feature doesn't allow you to delete these redundant channels! Careful research revealed that all of these 200+ channels get added as a results of scanning the physical channels 81 and 93. So if you do a "partial channel search" and avoid channels 81 and 93, you can work around the problem channels by not adding them in the first place. In other words, do partial channel search 3 times with these ranges: 1 - 80, 82 - 92, and 93-135.

Of course, there are some casualties. TNT, TBS and some sports channels also come in under channels 81 and 93. So I had to give them up. For me that was an acceptable loss, but if you need them, you'll have to live with the redundant 200+ channels.

Sunday, November 8, 2009

The Unique Skill of Understanding a Foreign Language

Daniel Tammet said
"It's one thing to learn a language it, to speak it, to produce it, to be able to talk with somebody. Comprehension, actually listening to a language and understanding it, that's something else because it takes time for the ear to get used to the totally different sounds"

Additionally, written language and spoken are often quite different. The vocabulary is different, and grammar rules are not respected. At least in English and Portuguese there are a tremendous number of sounds that are dropped when compared with written language. Ultimately, what got me over the hump was to recognize groups of sounds/words that occur together frequently and hear them as a single word.

For example, a Brazilian telling a story will start many sentences with "D-F-L". I finally asked someone what that mysterious word was. Turns out they are saying "Dai, eu falei" or "Dai, ele(a) falou" ("And then I said" or "And then (s)he said") The actual phrase has 5 syllables, while the compressed one is nearly 1. You wouldn't come across this phrase in any book and maybe not even on TV. It is something unique to natural, unplanned conversation.

So imagine that the spoken and written language are two different languages altogether. What are the implications? It means that you need to build up a vocabulary of sound groups. These will form the "vocabulary" of the spoken language. This is a hard task because it is usually not written down anywhere. But if you have access to native speakers, you can ask them questions just as I did. And I found that having even a small vocabulary of such "sound groups" goes a long way.

There are at least two benefits to thinking about written vs. spoken language this way. First, you will have less and less of a problem with people speaking too fast because you won't be translating from spoken language to written language (and then possibly back into your own language). You will hear a phrase and treat it as a single idea.

Second, you won't feel so bad that your comprehension skills are low because you'll realize that the task is actually quite difficult--you are learning 2 languages, not just one!

Thursday, November 5, 2009

SVD, PCA, Eigenvectors and all that

Principal Component Analysis (PCA) provides matrices E,L given a symmetric real matrix C such that CE=EL. The columns of E are the eigenvectors and L is a diagonal matrix with eigenvalues on the diagonal.

Singular Value Decompsition (SVD) decomposes an arbitrary real matrix A as A=USV' where U'U=1, V'V=1 and S nonzero only on the diagonal. Thus A'A=V(S^2)V' so that (A'A)V=V(S^2). Comparing this with CE = EL from PCA shows that V holds the eigenvectors and S^2 are the eigenvalues of A'A. To summarize,

SVD(A) gives eigenvectors of A'A. (1)

In applications we often start with a data matrix A where feature vectors are the rows of A. For example, suppose we have a data matrix where each row is an RGB triple that records color samples of skin. We might be interested in extracting a single direction that best approximates this distribution. To do this we first center the data (subtract the mean RGB triple from all rows of A) and find the principal eigenvector of the distribution. Computationally, we let B=[centered version of A], then SVD(B) yields the eigenvectors of B'B. A numerical example is given in [1].

What happens if we start with a symmetric matrix C instead of a data matrix A? For example, each entry c(i,j) could be a direct measurement of similarity between item i and item j as opposed to being computed as a bunch of products as in C = B'B above. Can we still use SVD to get eigenvectors of C? Because according to (1), SVD(C) gives the eigenvectors of C'C, not C.

We can. SVD(C) gives us the eigendecomposition C'C=VSV'. But C symmetric means C'C=C^2 and so C^2=VSV'. Then we can apply the power trick: A^k=Q(D^k)inv(Q) letting k=1/2 so that C=V(S^(1/2))V'.

SVD(C) gives eigenvectors of C when C is symmetric (2)

Note: It is often said that U and V are "the same by symmetry" when C is symmetric. Precisely how? For example, let C = [0 1; 1 0]. Then SVD yields U=S=1 and V=C. In particular, U is NOT equal to V. (This also shows the fallacy of reasoning that USV'=C=C'=VSU' implies that U=V). However, it IS the case that U and V are the same up to a column permutation. Why? SVD(C) gives the eigenvectors of C'C in the columns of V. SVD(C') gives the eigenvectors of CC' in the columns of U. When C'=C it follows that C'C = CC' so that U and V both "hold" the same eigenvectors, up to column permutation.


[1] GNU Octave example

octave:32> a = rand(5,3);
octave:33> b = a - repmat(mean(a),5,1);
octave:34> c = b' * b;
octave:35> [eigen, lambda] = eig(c)
eigen =

0.55689 0.59340 0.58116
0.56566 -0.78331 0.25778
-0.60820 -0.18518 0.77189

lambda =

0.19666 0.00000 0.00000
0.00000 0.22855 0.00000
0.00000 0.00000 0.74406

octave:36> [u,s,v] = svd(b);
octave:37> v
v =

-0.58116 0.59340 -0.55689
-0.25778 -0.78331 -0.56566
-0.77189 -0.18518 0.60820

octave:38> diag(s) .* diag(s)
ans =

0.74406
0.22855
0.19666

Friday, October 16, 2009

PG&E Dishwasher Rebate HOWTO




2. Fill out page 3. The tricky parts are:

Section 1
- PG&E Account Number is on your bill at the top left
- PG&E Electric Service ID is on the 2nd page at the top just under "Electric Account Detail"

Section 4
- Service ID # is the same as in section 1
- Product Code : "B35" or "B20". See page 1 of the pdf. They are listed in blue.
- Manufacturer: see dishwasher list
- Model #: see dishwasher list
- Unit Measure: "dishwasher"

3. Print and sign. Send in together with:

A. Retailer/Contractor name, address, and phone number
B. Itemized listing of each product including quantity, product description, manufacturer, model number, or other identifying information, i.e., SKU # as appropriate
C. Purchase price per product
D. Date “Paid in Full” or payment terms, such as “Charge” or “Net 30”
E. Product installation date

Tuesday, August 4, 2009

Bye Bye Yelp

I'm sad. I've decided to pull the plug on Yelp, a website that I really love. Why?

Well, the evidence of extortion is just too big to be ignored. It's not hard to find. I just searched for [yelp extortion] and turned up about 50,000 articles. Now accusations are not the same as being guilty for sure. So here is why I believe it.

1. The fact that so many people's stories are similar. These are people who are not in contact with each--how is it that they all have very similar experiences with Yelp management? It is hard for only 2 criminals to agree on a story to tell, much less hundreds of people.

2. Much more damning is my personal experience with Yelp. One of my reviews does not show up unless I'm logged in. (Evidently, they are smart enough to not filter out your review when they know you are looking.) When it was 5 stars I could see it, but when I updated it to 3 stars, it magically got dropped from the list of reviews! FISHY. And others have experienced the same.

So I'm pulling the plug, and deleting my account. Who knows if yelp will honor my wishes and actually delete my reviews?!

P.S. For those of you who think "Well, it doesn't affect me so I'll keep using yelp" consider this: how many restaurants will you waste your money on because the ratings were manipulated?

Friday, June 26, 2009

Get out of town

Sometimes I want a quick getaway, but don't have a particular destination in mind. Wouldn't it be great to say: "find all flights leaving SFO (or nearby) for under $400". Kayak now has this, but it is hidden away in "Buzz"--who picked that name?!!!

http://www.kayak.com/buzz

Sunday, June 7, 2009

Craigslist Scammer!

I'd always read about scammers on craigslist, but today was the first time I actually got hit up by one. Here it is, for your viewing pleasure:

From: peterchris002 chris (peterchris002@gmail.com)
Date: Sat, Jun 6, 2009 at 10:30 PM

Thank you very much for your swift response and for telling me the Item is still available.I want to let you know that i'm a deaf man and i am satisfied with the conditions has you have stated in the craigslist.

I have a schedule already,for i need to attend an important seminar in Hawai so i wont be able to come to check it at your place.Since i am ok with the condition,i will be sending you a certified check that will cover the amount of the Item and the moving funds.You are to take your money for the item from the check after cleared in your bank within 2-3 days and have the rest sent to the mover via western union money transfer or money gram.For your inconvenience,i will add $50 with the payment to be your running around fee.I'm always a busy person and i will not like to miss this item.The information of the mover will be sent to you after the check is received and he will be at your location for the pick up with a signed note explaining that he will be assuming responsibility for the item on my behalf.

Kindly get back to me with the following information for issuing of
the payment........

NAME:
ADDRESS :
CITY:
ZIP CODE:
STATE:
PHONE NUMBER:

Thank you