Tuesday, July 20, 2010

Ливанов

Сегодня юбилей у Василия Ливанова. Посмотрев сюжет на первом, я получил очередное подтверждение своему аргументу в пользу просмотра зарубежных фильмов с оригинальной звуковой дорожкой, но с субтитрами.

Голос - это неотъемлимая часть игры актёра. Я не могу представить чужой голос Шерлока Холмса, Доктора Хауса, Шелдона, Барни Стинсона, Дона Дрейпера, Майкла Вестена, Декстера Моргана и других персонажей.

Поэтому, отрывайте жопы, смотрите в оригинале, читайте субтитры. Вначале тяжело, зато потом вы будете блевать от переводов.
(Кстати, я не спорю, есть приятные исключения в виде профессионального дубляжа хорошими российскими актёрами, которые можно сосчитать по пальцам).

Wednesday, July 14, 2010

NetBeans 6.9 and Lenovo TrackPoint in Windows 7

Problem
Recently I installed new NetBeans 6.9 on my Lenovo X61s and found that TrackPoint is not working for scrolling with middle button.

Solution
You need to find TrackPoint file tp4table.dat where programs mappings listed.
Under my Windows 7 Enterprise 32-bit I found it in C:\Program Files\Lenovo\TrackPoint\.
Use file search, if you have a trouble finding it there.
Now open file with write permission (if you non-privileged user, use admin account) and add following to the programs section.
; NetBeans
*,*,netbeans.exe,*,*,*,WheelStd,0,9

Don't mess with [AutoScrollTable] section at the end of the file were syntax goes like this
*,*,iexplore.exe,*,smooth
NetBeans fix should be inserted before auto scroll table part. Believe me, I tried that for two days asking myself a lot of "why this not working" :-)

To apply settings, open Windows Task Manager, find process named tp4serv.exe (PS/2 TrackPoint Daemon) and end it. As it run as your user, you don't need administrator to rerun it again. Go to C:\Program Files\Lenovo\TrackPoint\ and run tp4serv.exe again.
If that doesn't help to apply settings, try to restart Windows or check other related precesses: SynTPEnh.exe and SynTPLpr.exe; restart SynTPEnh.exe.

Tested on
Product Version: NetBeans IDE 6.9 (Build 201006101454)
Java: 1.6.0_21; Java HotSpot(TM) Client VM 17.0-b16
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)

More info
"Mouse wheel scroll" not working on Touchpads
Thinkpad Scrolling fixed for Safari and IntelliJ
Trackpoint Scrolling with Java
Google on tp4table.dat

Bonus
Firefox fix
; Mozilla Firefox
*,*,firefox.exe,*,*,MozillaWindowClass,WheelVkey,0,11

Other Java programs fix (if not works by defaults)
*,*,*,*,*,SunAwtFrame,WheelStd,0,9
*,*,*,*,*,SunAwtDialog,WheelStd,0,9
*,*,*,*,*,SunAwtCanvas,WheelStd,0,9
*,*,*,*,*,SunAwtFrame,WheelStd,0,9

Window names can be found with free AutoIt tool, kudos for tip to Andy.