Wednesday, March 4, 2009
Using continuity notions for traffic
Wednesday, October 8, 2008
Making Windows Search 4.0 work
One has to love the world of windows. Windows Search 4.0 is a great search software, except for mysterious reasons it failed to work on my desktop. After much scouring the web forums, and reinstalling and installing many times, I could not get it to work. All I got was:
Unable to initialize the filter host process. Terminating. Details: Access is denied. (0x80070005)
Finally, I used procmon (from Sysinternals) to look for what was going on. By looking for ACCESS DENIED results for Process named "searchfilterhost", I found out that it was failing on C:\Windows\Registration\R000000000010.clb . No mention of it on any websites. Renamed that file and everything worked. What the purpose of that file is, is a mystery for now.
Thursday, September 25, 2008
Converting real video to ipod compatible mp4
I was trying to convert some real video lectures I downloaded to ipod compatible format for later viewing. I looked for a program that would do the job for me. They fall mainly into two classes: ffmpeg based and mencoder based. ffmpeg is nice, except it doesn't work for some proprietary codecs (and my videos happened to use one). mencoder works for everything but has arcane options. After trying several candidates, I could not find one that worked.
Finally, I gave up and read up mencoder's manual page (which is well hidden on Windows). So here's a little script that I came up with to use with MinGW:
#!/bin/sh
mencoder.exe "$1" -vfm realvid -sws 9 -oac mp3lame -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:turbo -of lavf -lavfopts format=mp4 -o "${1%.*}".mp4 -vc rv20win -ac rasiprwin
But that didn't work either. Apparently, ipod only supports a subset of the H.264 standard. After long hours of searching, I found the solution on an mplayer mailing list and modified it to work for my videos:
REM encoder_for_ipod.bat
for %%i in (*.rm) do mencoder -vf harddup -of lavf -lavfopts format=ipod -af lavcresample=44100 -oac faac -faacopts mpeg=4:object=2:quality=50:raw -ovc x264 -x264encopts global_header:qp=30:threads=auto:level_idc=13:nocabac -vc rv20win -ac rasiprwin %%i -o %%~ni.mp4
Powered by ScribeFire.
Wednesday, July 16, 2008
Why most articles miss the point of patents
- Everyone from the inventor to patent examiner has an incentive based on number of patents approved. The USPTO is a money making organization, and they don't want to compromise that by insisting on the quality of the patent. Consequently, most patents have questionable novelty in them.
- Patents are mostly used as detterents as a part of a portfolio. Most of them probably are invalid, but testing that validity is extremely expensive.
- Small companies, that are usually more innovative, are routinely shut down by large companies using their patent portfolios. Case in point, Vonage vs Verizon.
- Large companies are terrorized by small patent holders. Case in point, Research in Motion paid $500million to settle a lawsuit based on an invalid patent.
- Patents are granted for the same period of time, regardless of the useful lifetime of an invention. Drugs can take a long time to develop and have decades on the market. Software takes a few weeks to develop and may be 2 years on the market. But patents in both cases are for 20 years.
- Patenting other people's common knowledge is easy. All you need to do is to get some common knowledge from another country and patent it. Patents on Basmati rice and turmeric are prime examples.