Showing posts with label software. Show all posts
Showing posts with label software. Show all posts

Tuesday, 30 October 2012

The less the better [or wine with torrent]

Nowadays a lot of compact devices (like media players or TVs) have Torrent client on board, why should anyone bother about the exotic way of running it? Well, in my case the main reason was that I was migrating uTorrent from my laptop to standalone server to allow 24h non-stop feeding. So, let's put everything in one bottle:
  • It was important for me to have less fuzz with migration of about 100 torrents from my laptop. Perhaps that would also be possible for uTorrent for Linux, but I also get used to UI interface & settings.
  • Running uTorrent on server gives me the possibility for non-stop feeding and downloading on demand.
  • Running uTorrent on Linux also have a potential bonus of configuring QoS in case torrent traffic gets annoying. Yes I know about build-in bandwidth settings, however the typical task is usually "I want uTorrent to consume all bandwidth unless there is something else hungry for it". In this case all traffic for internal network should go via server that unfortunately, adds one more point of failure in the chain.
Technically all above can be solved with following setup:
  • We will run Xtightvnc server on Linux. It acts as X-Server and uTorrent will display it's UI on this server. Bonus is that Tightvnc has clients both for Linux and Windows, which will allow you to connect to under from any (popular) platform.
  • We will run uTorrent with wine. Certain versions (like v1.8.5) do not start under wine on some reason, so you'd better double check here that certain version was tested under wine or use /noinstall command line option. Keep uTorrent window on separate workspace & collapsed. Also disable "Show current speed in title bar" to reduce number of UI update events.
  • Hint: When launching  uTorrent also pass the /minimized option. Otherwise it will consume 5% of CPU just to render constantly changing statistics (Tightvnc needs also to response to any UI update even if no client is connected). When minimized it will be 1-2%.
What uTorrent client to choose? Well, I personally have stopped on v1.8.5, because:
  • I do not need magnet URLs or life streaming features in v3.x. The last one is by the way in most cases failing for me (perhaps always fails for MKV container, is it not so suitable for partial playing).
  • The sad trend shows the sad statistics: uTorrent executable size was slowly increasing by 100Kb in 2007-2011 (from 100K to 500K), but in 2011-2012 it doubled in size (from 500K to 1M). Perhaps it's still the smallest torrent client, but with every new release I doubt more and more.

Sunday, 13 May 2012

Firefox vs Chrome

Я тебя так любил, лелеял с самого твоего рождения, когда ты был ещё младенцем Netscape Navigator, потом повзрослел и стал Mozilla Suite, потом у тебя родилось два сына: Seamonkey и Firefox. Но сегодня ты просто вывел меня из состояния равновесия. Ты подорвал моё к тебе доверие, о недостойнейший отпрыск!

Кроме того, что Firefox является самым энергичным пожирателем памяти на моём компьютере (600Mb − это минимальная стартовая величина), так он ещё всё активнее стал прикладывать руку в процессору (пляшет около 7%). И если для настольной системы это не так заметно, то для ноутбука ещё как: начинает греться процессор и, как следствие, кулер переключается на более высокую скорость. Не прикольно.

Поставил Chrome. Сразу куча камней, с которой пока не понятно, что делать. Chrome создаёт отдельный процесс на каждое окно. Следовательно, очень сложно вычислить, сколько он суммарно потребляет памяти и CPU (на Linux ещё как-то можно было вы собрать эту суммарную статистику, но MS Task Manager − ?). И во-вторых сам Chrome нагружает CPU на глаз меньше, но выполз из тени Desktop Window Manager (dwm.exe), который кушает (фанфары) 7% CPU. Что в лоб, что по́ лбу. По основной же функциональности я согласен с мнением Alex:
  • Bookmarks:
    • Нету опции показать Bookmarks в Sidebar (Ctrl-B в FF).
    • Менеджмент Bookmarks отсутствует.
    • Separators в  Bookmarks не поддерживаются.
  • Vertical (Side) Tabs для меня не так важны, но было бы не плохо поиграться:
    • Side tabs больше нету в about:flags.
    • Игры с --enable-vertical-tabs (о коих пестрит интернет) на Windows не работают, и более того, было бы неправильным менять shortcut запуска Chrome, поскольку Chrome может запускаться из другого приложения (то есть, надо подправлять и в реестре).
    • Hierarchical Vertical Tabs отсутствуют как класс. Extensions типа Side Bars, Vertical Bars не решают главную задачу: не прячут горизонтальные закладки. Видно что у Chrome нету соответствующей API поддержки и  поэтому все они выгладят убого и далеки от Firefox Vertical Tabs.
  • У вас заработал Russian Spellchecker в Rich Editor Textarea? У меня − нет. Для обычных Text Area работает, а для Rich − ни в какую: словарь установлен, а слова с ошибками не подсвечиваются. Как следствие − не могу использовать Chrome для создания новых постов в blogger. И как включить проверку по-умолчанию для всех Text Field (как для FF)?
  • Мне удалось подвесить Chrome в первый час интенсивной работы: я кликнул по ссылке в Thunderbird, которая должна была открыться в Chrome, но вместо этого он подвис. После убийства и перезапуска ссылка открылась нормально.
Теперь по отдельным extensions:
  • Поставил Firebug. Сразу смутило то, что он называется Firebug Lite. И действительно:
    • Нету панели Net.
    • Не работает для страниц с фреймами.
    • Не работает переход из закладки Style на конкретный стиль (с позиционированием на конкретную строку).
  • Поставил ChromeIPass.
    • Не поддерживается сохранение паролей (создание новых записей в БД KeePass и обновление существующих).
    • Не работает подстановка имени/пароля при Basic HTTP авторизации (опять-таки, каличный Chrome API не позволяет повесить на это событие hook).
    • Когда определённая страница запрашивает доступ к записи KeeFox БД в первый раз, то KeePassHttp запрашивает разрешение у пользователя создаёт новую property в данной записи, к примеру, такого содержания: {"Allow":["www.spamcop.net"],"Deny":[]}. То есть, кроме того, что мне надо будет дать согласие на доступ к 50+ записям в БД (то есть, столько раз кликнуть "Я согласен"), так ещё эти самые записи будут дополнены каким-то мусором (issue 48).
    • То, как именно будет производиться проверка URL на совпадение (только host? host + path? host + path + params?) зависит от плагина KeePassHttp. Не уверен, что это будет работать одинаково "хорошо" для всех приложений.
  • Greasemonkey user scripts вроде как должны работать "из коробки". Действительно, .user.js скрипты можно "устанавливать" просто открыв их (Ctrl-O), но не понятно, как работают функция GM_addStyle() и аннотация @require. В частности для Chromium написано:
    Chromium does not support @require, @resource, unsafeWindow, GM_registerMenuCommand, GM_setValue, or GM_getValue
    • Search as you type (issue 150) включается плагином. Поиск ведётся, но, например, подсветить все совпадения нельзя.
    Всё это лично для меня похоже на то, что правая рука вам всё-таки дана, но на ней нет указательного пальца. Что ж, продолжаем колоться и есть кактусы…

    Saturday, 10 March 2012

    Skype downgrade


    Something goes wrong with Skype 5.8. After returning from a sleep or hibernate on Windows7, Skype hangs as soon as there is a new incoming message or event when you try to open it from a tray. Not simply hangs, but starts consuming 100% of CPU. Weird. It looks like it comes into collision with some other (relatively rare) software as otherwise it would have been reported and fixed very quickly. Thanks to software collections, it is possible to go back in version and stick to one which is working. First let's check what functionality we loose if we go back from v5.8 to v5.7:
    • Full HD video-calling
    • Support for Facebook audio and video-calling (beta)
    • Group screen sharing
    • Hide offline Facebook contacts
    • Push to Talk
    • Skype updater service
    • Bing Toolbar integration
    I am not Facebook user, I don't have any relations with Bing (MSN). Full HD is cool, group screen sharing looks to be introduced in 5.7.0.123 (and perhaps improved / bugfixed in 5.8), but I can sacrifice it: I haven't used group conferencing so often and especially with screen sharing. Also Skype version 5.5.0.119 has no more annoying Skype Home page pop-up in compact mode.

    Now comes the interesting part: how to disable the updates? It turned out that there is no way to do it via settings dialog nor via any other option in the menu (reported as issue SCW-3173). You may find the reference to DisableVersionCheck registry key but it was reported that this registry setting does not prevent forced updates by the skype network. So finally the only reliable solution is to block outgoing packets to IP addresses 204.9.163.158 (from Jan 2012: 204.9.163.247) which unfortunately will effectively break the lightweight installer which utilises the same mechanism for installation so you will have to download the full Skype version each time when you want to update. Another advise: create a dummy file named SkypeSetup.exe in %temp%  and assign the security Everyone: deny.

    And now the final accord. From ongoing discussion I've found out that as to terms and conditions §5.3 Updates to the Software Skype may require you to automatically download and install Updates from time to time in order to allow you to use the Software which means "if you don't update, Skype may stop working". How do you like this?

    P.S. List of IP addresses to block:

    Skype Ad Servers:
    • 8.19.18.0/24
    • 4.26.45.0/24
    • 65.54.93.0/24
    • 74.217.34.0/24
    • 74.217.59.0/24
    • 75.98.29.0/26
    • 173.194.37.27
    • 173.194.37.28
    Skype update servers:
    • 204.9.163.247
    • 204.9.163.158