Категория: Компьютеры

Заметки о программировании и на околокомпьютерные темы

Вложенные категории: Игры, Delphi

Заголовок сообщения

Наверное, об этом тысячу раз писали, но заголовок веб-страницы должен выглядеть так:
Кто виноват и что делать? — блог Николая Чернышевского
Или даже проще:
Кто виноват и что делать?

Но не так:
Николай Чернышевский, философ, журналист и литературный критик — Личный журнал, интеллектуальные беседы каждую пятницу — Кто виноват и что делать?

Когда открыто несколько заметок, это превращается в:
[ Николай Черны… ] [ Николай Черны… ] [ Николай Черны… ] [ Николай Черны… ]

В закладках:
* Николай Чернышевский, философ, журналист и литературный кр…
* Николай Чернышевский, философ, журналист и литературный кр…
* Николай Чернышевский, философ, журналист и литературный кр…

Заголовок должен быть коротким.
Название конкретного материала всегда должно идти первым.
Если название ресурса добавляется, оно должно быть осмысленным, а не “…” и не “void”, как у некоторых.

Asus T101MT VGA cable replacement + pinout

Screen on my Asus EEE PC T101MT started behaving erratically, switching off and on as I turned and tilted the lid. I’ve dismantled the netbook and the problem was in the broken display cable. A couple of notes for anyone who cares:

  • Dismantling the body is not hard, this article explains it well. Be sure to note which screws go where.
  • To dismantle the lid, pull out the rubber caps glued around the display. There are screws underneath. After unscrewing them all, remove the lid cover. It’s stickied to the display, but no harm in tearing it off and no other way around.
  • Motherboard-to-display cable is FPD-Link (LVDS cable) + minor side load. Part number is 1422-00N6000, new ones can be bought on aliexpress for cheap. Promised 50 day free delivery is an upper bound; mine was delivered in 10 days.
  • There’s a hinge connecting the lid to the body with all the cables inside. It would seem that display cable is too big to go through it, but it can be done from its display connector side if you fold it in a particular way:
    (instruction pic)
  • The cable is 20 pins (motherboard) to 30 pins (display). There were pinouts for similar cables from other EEE PCs (1005pe, [1]). I’m posting the final one for T101MT here, checked with multimeter, just in case:

    (1422-00N6000 pinout)

    20 pin connector

    #Description
    13.3VDD
    2EDID eeprom power (3.3V)
    3EDID eeprom CLK
    4EDID eeprom DATA
    5VDD_EN (Active high, 3.3v)
    6VLED_EN (Active high, 3.3v)
    7GND
    8LVDS Channel 0 –
    9LVDS Channel 0 +
    10LVDS Channel 1 –
    11LVDS Channel 1 +
    12LVDS Channel 2 –
    13LVDS Channel 2 +
    14GND
    15LVDS Clock –
    16LVDS Clock +
    17GND
    18Backlight PWM ADJ
    19Led VCC (5V)
    20Led VCC (5V)

    30 pin connector
    Most similar connectors have the same pinout for the first 20 pins. The rest seems to be up to the model, GND if unused. “–” is no connection:

    #Description
    1GND
    23.3VDD
    33.3VDD
    4EDID eeprom power (3.3V)
    5Backlight PWM ADJ
    6EDID eeprom CLK
    7EDID eeprom DATA
    8LVDS Channel 0 –
    9LVDS Channel 0 +
    10GND
    11LVDS Channel 1 –
    12LVDS Channel 1 +
    13GND
    14LVDS Channel 2 –
    15LVDS Channel 2 +
    16GND
    17LVDS Clock –
    18LVDS Clock +
    19GND
    20
    21
    22GND
    23GND
    24Led VCC ( 5V )
    25Led VCC ( 5V )
    26Led VCC ( 5V )
    27
    28VDD_EN (Active high, 3.3v)
    29
    30VLED_EN (Active high, 3.3v)

Silent

Как правило, в консольных программах бывает настройка уровня подробности. Обычно она называется verbose. Иногда ещё бывает настройка quiet, которая отключает вывод большинства сообщений. Но редко поясняется, что именно будет выключено.

Предлагаю стандартную шкалу подробности вывода:
1. Silent. Программа не выводит ничего, даже в случае ошибки. Безмолвно завершается с кодом ошибки.
2. Quiet. Программа не выводит ничего, только сообщения об ошибке. Так принято по умолчанию делать в юниксе.
3. Normal. Программа сообщает, что она сейчас делает (из её функционала; например, программа, скачивающая файлы, может сообщать о начале закачки каждого файла).
4. Verbose. Программа объясняет, как она делает то, что делает. Например, “Подключаюсь к серверу… Запрашиваю файл… Файл найден, размер 1.5 мб. Создаю целевую директорию…” и т.п.
5. Debug. Программа вываливает все внутренние подробности происходящего, в том числе непонятные без исходного кода. По желанию и для удобства отладка может быть разделена по модулям (–debug=http), но подразумевает как минимум verbose в целом.

Мышка бежала, хвостиком махнула

На нетбуке с экраном 1024×600 почему-то стало разрешение 1024×768, т.е. часть экрана не видна.
Переустановил дрова видеокарты, не помогло.
Переустановил монитор, не помогло.
Перезагружался много раз, не помогло.
Жал на кнопку “сменить разрешение”, не помогло.
Копался в настройках драйвера, не помогло.

Переустановил дрова клавиатуры… помогло.

World End Economica

Напоминаю, что у Исуны Хасэкуры (автора Spice and Wolf) есть ВН за полным его авторством, которая называется World End Economica:

Roughly 16 years after the people emigrated to the Moon… The boy named Haru was facing a place that gathered up people’s desires. Sometimes it granted them, and sometimes it crushed them mercilessly.
There are only two key rules that govern that land.
The first rule, is to never take a loss.
The second rule, is to never forget the first.

Трейлер

Первая часть есть в Стиме на английском, перевод неплохой. Чтения примерно на 20 часов, развилок нет, сюжет к концу первого тома более-менее закончен (следующие серии будут про новое).
Главное, что интересует всех начинающих играть, это дотянул ли автор до уровня “Волчицы и пряностей”. На мой взгляд, даже превзошёл, во всяком случае серийные тома (4+).

Dai Gyakuten Saiban

В 2015-м будет новый Феникс Райт, который на этот раз что-то типа “Сэр Феникс Райт, блистательный присяжный поверенный” (大逆転裁判 / “Имперский переворот в деле”):

Только собственно там не Феникс Райт (Наруходо Рюити), а опять же, что-то типа “Финист Райт” (Наруходо Рюноске), его предок. И не Аясато Маёй, а вообще непонятно кто, но по сути тоже она. Выглядит симпатично, а вот зацикленная музыка из трейлера. Ещё трейлер.

HOWTO: Assign checkable TAction to TSpeedButton

To make TSpeedButton work with TAction.Checked when it's a singular option (either On or Off), make sure that at design-time:

SpeedButton.Action = Action
SpeedButton.GroupIndex = 0
SpeedButton.AllowAllUp = true
Action.GroupIndex = 0
Action.AutoCheck = true //only if you need AutoCheck

Then add this to FormCreate:

SpeedButton.GroupIndex := 17; //any non-used group index

SpeedButtons are linked to Actions through TSpeedButtonActionLink. It only updates their Down property if AllowAllUp is set and SpeedButton.GroupIndex property is NOT 0.

But when Action is linked, SpeedButton.GroupIndex gets rewritten by Action.GroupIndex on load.

And if Action.GroupIndex is 0 because it's a singular option, then no matter what you put into SpeedButton.GroupIndex at design-time, it's going to be rewritten with 0 at load, so TSpeedButtonActionLink does not update Down property.

The simplest solution is to set SpeedButton.GroupIndex to something in FormCreate.

Эх, съезжаю с Оперы

Какая же она была удобная! Сколько с файрфоксом не вожусь, всё равно — всё неуклюже и вразнобой…

Пока ситуация такая (может, кто знает что?):

Табы

Более-менее как в Опере можно сделать с помощью TabMix Plus, если хорошо его попилить в настройках. Не хватает Tab Stacking (это когда можно несколько табов в один сложить).

Сайдбар

Кое-как справляется All-in-one Sidebar. Очень нехватает добавления сайдбаров из закладок (чтобы кроме “Закачек”, “Закладок” и т.п., были “Твиттер”, “Вконтакте”, “Google Tasks”).
Пока нашёл очень кривое решение: пользовательские кнопки, в которых вручную прописать “showInSidebar(URL)” и вручную назначить иконку. И всё равно открываться будет не каждая в своей панели, а всё в MultiPanel.

Speed Dial

Перепробовал несколько Speed Dial-расширений, остановился на Fast Dial потому, что он самый быстрый и хранит диалы в закладках (как можно вообще было по-другому додуматься?).
Ни одно расширение не поддерживает, как в Опере, живые тайлы на Speed Dial (это когда “На дайри у вас 4 комментария и 1 сообщение”, “На реддите карма 9000”, “В задачах на сегодня то и то”). Было очень удобно — одним взглядом можно увидеть все новости.
Скриншоты сайтов во всех расширениях тоже некрасивые, пиксельные.

Notes

Кое-как годится Scrapbook. Сохраняет заметки в своей собственной базе, так что обычная Firefox-синхронизация не работает (блин, ну почему?!) Экспорта в txt-формат нет. Горячих клавиш на добавление заметки нет и не настраиваются. Полно багов: правишь первую строку заметки — в каталоге не обновляется, пока не выберешь другую. Добавляешь папку/заметку — существующие перетасовываются.

Почта

Ближайшее к Opera Mail расширение – Simple Mail, но пользоваться невозможно, IMAP-папки не поддерживает, все сообщения на аккаунте считает непрочитанными, скачивает по одному, как по SMTP. Похоже, вариантов нет, и надо переходить на отдельный клиент.

How to maybe fix Gigabyte RF-G90B and certainly void your warranty

Disclaimer, read first. I have no qualifications to give any advice on this topic. I give no assurances or guarantees of any kind. This article is not meant to serve as an instruction, it's just a description of what I did. Whatever you do, do it at your own risk, after properly studying and following safety measures.

I have a Gigabyte GZ-G90B1 Power Bank which seems to be more commonly known as RF-G90B. It's also appears to be the same as Enerpad MG-9000 which is the brand name for Samyatech contents (board + cells imported from Japan, or so they say). So Gigabyte just sells that.

I haven't used it for a while and when I tried to use it, it appeared dead. No matter if I tried to charge it, use it to charge mobile, press the button and/or hold it, the device wouldn't react and lights would stay off.

As I've already lost my receipt I had no hope for replacement, so I unscrewed it (there's a single screw). The box wouldn't open at first because the cells are glued to both halves of it, but there's no way around it but to pull. I detached the chip from the cells and then attached it back. This seems to have rebooted the chip and it started working.

If you cannot start Windows Live Marketplace

If you cannot start Windows Live Marketplace or games dependent on Windows Live even after completely reinstalling it, and you're having the following errors:

  1. Application crash when starting Windows Live Marketplace with "FileNotFoundException" or "MethodNotFoundException" or something.
  2. Errors related to "msidcrl40.dll" in your %UserProfile%\AppData\Local\Microsoft\GFWLive\Logs.

Then this may help you.

  1. Uninstall Windows Live and all of its components (usually there are two: Microsoft Windows Live Runtime and Microsoft Windows Live Marketplace)
  2. Uninstall Windows Live Essentials or just Windows Essentials (same thing)
  3. Go to C:\Program Files\Common Files\Microsoft Shared\ and check that there's no Windows Live subfolder or that it's empty or whatever. Delete it if not empty. If some apps do not let you delete some files, rename those files and delete after restart.
  4. Restart
  5. Download and install Games for Windows Live 3.5, web setup will do. Check if the folder mentioned above is now present again and with files. If not, download wllogin_64.msi (or _32) and run it.
  6. All should work. Run Marketplace and check.

The folder Microsoft Shared\Windows Live is created by the thing that's installed by wllogin_64.msi (Windows Live Login Helper or something). That thing is automatically installed with Windows Essentials, and it seems that it's a newer version which lacks some function which is needed for Games for Windows Live. It is also automatically installed by GFWL 3.5 installed, but it won't install it if it finds newer version (installed by Essentials), so reinstalling just GFWL doesn't help.

I included that step where you may install the thing manually because GFWL 3.5 install may be stubborn and skip it anyway for whatever reason. If it so does, download and install manually.