четверг, 23 апреля 2015 г.

Package KB2492386 failed to be changed to the Staged state. Status: 0x800f0816

In case of  "Package KB2492386 failed to be changed to the Staged state. Status: 0x800f0816"

http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_update/package-kb2492386-failed-to-be-changed-to-the/73935b8a-4dc0-4cd4-9950-c68bb5d18e76

среда, 13 ноября 2013 г.

Unix shell commands

1. Find all files in home dir with size greater than and of certain type, finally copy them to usb flash drive (on Mac OS X):
find ~ -iname '*.tiff' -size +1M -exec cp {} /Volumes/flashka/tiff/ \;

On Max OS X to preserve directory structure use pax command:
find ~ -iname '*.tiff' -size +1M -exec pax -rw {} /Volumes/flashka/tiff/ \;



понедельник, 13 мая 2013 г.

ZyXEL ZyWall USG300. Schedule weekly reboots.

1. upload reboot.zysh to "Maintenance -> Shell script" with single command "reboot" (txt format)
2. connect to console and enter the following commands:
configure terminal
schedule-run 1 reboot.zysh weekly 05:30 mon
write

(mon stands for Monday)

вторник, 26 марта 2013 г.

МФУ Brother. Не сканирует по сети

Часто встречаюсь с проблемой, когда МФУ от Brother перестает сканировать по сети. Проблема кроется в WINS. Чтобы устранить ее, следует обращаться к устройству по ip, а не по имени.

control sticpl.cpl
В консоли нужно найти свое устройство, в свойствах прописать ip-адрес. voila!

понедельник, 21 января 2013 г.

Nginx and VirtualBox shared folders

Thanks to the "Geek" i've finally figured out how to operate with vboxsf on nginx.
Just turn off sendfile directive in nginx.conf.

http://smotko.si/nginx-static-file-problem/

пятница, 11 мая 2012 г.

Update Group Policy in Windows


The gpupdate command refreshes local and Active Directory–based Group Policy settings, including security settings on the computer from where it is run.

понедельник, 2 января 2012 г.

Беспроводная sip-трубка Welltech WP589

Решил собрать всю нужную инфу по wi-fi sip трубке Welltech WP589 в одном месте.


Итак, трубка в домашних условиях работает отлично. Позволяет сохранить несколько профилей sip-провайдеров, заряжается как от блока питания, так и от компьютера по USB. Поддерживает несколько самых популярных голосовых кодека. Вообщем, то, что доктор прописал.


Однако, имеет некоторые проблемы при использовании в корпоративной среде: глючит, подвисает (спасаемся только вытаскиванием аккумулятора), квакает при разговоре и т.п.
Прошивку используем наипоследнейшую на текущий момент...

среда, 7 декабря 2011 г.

UBUNTU. Check version of package

In order to check the version of a package (either installed or in repository):

apt-get install apt-show-versions


apt-show-versions -a <package>

пятница, 25 ноября 2011 г.

Change MTU in Windows

In rare cases you need to change (or "fine tune") your MTU.
Magic NETSH is able to solve the task.

1. netsh interface ipv4 show subinterfaces
(determine the label of your interface)

2. change its MTU
netsh interface ipv4 set subinterface "interface_label" mtu=50 store=persistent

That's all (thanks Max Chubin for the idea)


пятница, 28 октября 2011 г.

ZyXEL X8004 IPPBX / Oktell. Баг со слоями карты сети

Странный, не критичный, но неприятный глюк.

 Верхний слой


Нижний слой










Спрашивается, куда съезжает сервер?

четверг, 20 октября 2011 г.

ZyXEL X8004 IPPBX / Oktell. Feature requests. Part 3

Ну ваще не понял сей креатив. Особенно когда работаешь через терминальную сессию. Или это чтобы развлечь пользователя, типа игры "попробуй задать быстро диапазон"?
Наконец, кто-нить, объясните чайнику, как оперативно выбрать 24 часа??




Вопрос по скриншоту: как без лупы (читай: не совсем вооруженным глазом) попасть в эти стрелочки? Особенно при большом разрешении монитора.

ZyXEL X8004 IPPBX / Oktell. Feature requests. Part 2



Тут все просто. Во многих местах Z_CTI не проработан механизм выделения подмножества элементов. При создании Направления, например, приходится вручную ставить галки напротив нужных линий. Почему нельзя выделять подмножества с помощью Ctrl или Shift. Ведь этот механизм - уже классика. У меня 30 линий sip плюс 30 линий E1. Тыкать 60 раз в малюсенькие кнопочки - неблагодарный, адский труд :-)

ZyXEL X8004 IPPBX / Oktell. Feature requests. Part 1

Начинаю выкладывать свои пожелания по усовершенствованию Oktell PBX (в частности, ZyXEL X8004 интеграцию). Не в порядке значимости...

воскресенье, 10 июля 2011 г.

Connect to MS SQL 2008 R2 Express

Follow the link to read the tutorial if you cannot connect remotely to SQL Server 2008 R2 Express:

http://www.linglom.com/2009/03/28/enable-remote-connection-on-sql-server-2008-express/

среда, 15 июня 2011 г.

Ubuntu on Acer R3700 nettop can't shutdown/reboot

Seems like at least one module needs to be disabled from config.

lsmod | grep rt

Find out if there exists rt2800pci .

sudo modprobe -rf rt2800pci
echo blacklist rt2800pci | sudo tee -a /etc/modprobe.d/blacklist.conf

Tested on XFCE 11.04

вторник, 14 июня 2011 г.

Metrologic установка под Windows

Для установки USB POS (эмуляция COM-порта) драйвера с uni-directional на ОС Windows7 необходимо:

1. Загрузить и разархивировать драйвер (с сайта производителя : https://www.honeywellaidc.com/en-GB/Pages/Product.aspx?category=Laser&cat=HSM&pid=9520/40),
2. Считать сканером соответствующий программирующий штрих-код (uni-directional).
3. Открыть "Диспетчер устройств" и в разделе "Порты COM и LPT" выбрать появившийся COM-порт, помеченный восклицательным знаком в желтом кружке.
4. Правой кнопкой мыши открыть контекстное меню - "Свойства" -> "Обновить драйвер" и указать папку загруженного и разархивированного ранее драйвера.
5. Установить драйвер.

Примечание: драйвер работает только с 32-битной версией ОС, 64-битная пока не поддерживается.

Windows 7 Home: disable password expiration

Use the following command to disable expiration policy on Windows 7 Home editions:
net accounts /maxpwage:unlimited



суббота, 4 июня 2011 г.

UBUNTU: change hostname

To view current hostname:
sysctl kernel.hostname

To change it:
 sysctl kernel.hostname=NewHostname
Or better edit /etc/hostname

Also don't forget to edit /etc/hosts to prevent sudo showing stupid "unable to resolve" error.

воскресенье, 3 октября 2010 г.

XSL: node-sets. Get value from variable


<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exsl="http://exslt.org/common"
extension-element-prefixes="exsl"
>
<xsl:output method="xml" omit-xml-declaration="yes" />

<xsl:template match="/">
<xsl:variable name="author-id" ><xsl:value-of select="data/get-advice-last/entry/author/item/@id" /></xsl:variable>
<xsl:variable name="author" ><xsl:copy-of select="data/advice-author/entry[@id=$author-id]" /></xsl:variable>
<div class="h"><h1>Советы</h1><h3>диетолога</h3></div>
<div style="margin-bottom:5px;font-weight:bold;"><xsl:value-of select="data/get-advice-last/entry/title" /></div>

<div style="font-size:.9em;"><img style="float:left;border:1px solid #3D93E5;margin:1px 10px 10px 0px;" src="{$root}/image/2/80/100/5{exsl:node-set($author)/entry/photo/@path}/{exsl:node-set($author)/entry/photo/filename}" />
Рассказывает <xsl:value-of select="exsl:node-set($author)/entry/fio" />,
<xsl:value-of select="exsl:node-set($author)/entry/description" />
</div>
<div><a href="{$root}/advice/{data/get-advice-last/entry/@id}">Читать дальше...</a></div>
</xsl:template>

</xsl:stylesheet>

четверг, 12 августа 2010 г.

Xmarks in Firefox: Can't sync tabs!

Tab sync is generally reliable, but there a couple of gotchas that can cause problems when you're first getting started.

Can't see your tabs?

If you have enabled tab sync in a browser but can't see your tabs in the Open Tabs window, the most likely culprit is your having earlier copied your Firefox profile from one computer to another. Xmarks relies on a unique identifier stored in your FIrefox profile to know which tabs are on which computer, and if those identifiers aren't actually unique, tab data from one computer will overwrite tab data from another. Further, if you have two browsers with the same id, you might not see any data at all because a browser never shows its own tab data.

The fix for this problem is simple: go to the browser whose data you wish to unhide and reset its identifier. Xmarks will automatically create a new one for you. Do this one time only:

  1. Enter about:config in the Firefox address bar.
  2. Find the item extensions.xmarks.machineId.
  3. Right-click (control-click on the Mac) and select reset.

The next time you sync, your tabs should also be synced and be visible elsewhere.