Solving KeyMagic program crash

KeyMagic is a keyboard program that allows user to switch to various keyboard layout such as Myanmar Smart Keyboard, ZawGyi keyboard, etc.

We have been supporting offices using Myanmar Unicode with KeyMagic for some times now. One of the common problems we usually encounter is user suddenly cannot open KeyMagic program.

This is the steps we carry out to solve the problem

  1. Close KeyMagic program file (make sure there are no more KeyMagic.exe under Task Manager)
  2. Move the user.config file under the following directory to somewhere (for backup)
    C:\Users\\AppData\Local\Thant_Thet_Khin_Zaw\KeyMagic.exe_Url_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\1.5.0.0
    
  3. Then restart the KeyMagic program

Note

  • replace with actual username
  • in place of xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx you will see random character likes kbk1hsvhhgustjayof3hzsq5ln203ol0

Some technical details

  • OS: Windows 7 64 bit

Quick Test Sending Mail in PHP

This is how I test my php code sending mail (with mail() function) using

Install MailCatcher

sudo apt-get install ruby ruby-dev

sudo gem install mailcatcher

Start PHP server

php -d sendmail_path="env /usr/local/bin/catchmail -f noreply@domain.com" -S 0.0.0.0:8080

Start MailCatcher

mailcatcher

Run and check

  • Run the script by visiting the page (that sends mail)
  • Check the mail at

Related tasks

  • check which php.ini is in effect by running php --ini
  • check sendmail_path has been set correctly or not by using echo phpinof() in a page
  • check the path of catchmail by running which catchmail
  • close the mailcatcher server from web interface
  • read mailcatcher help by running mailcatcher --help
  • read php help php --help

Unifi Controller 5 on Ubuntu 16.04 LTS

UniFi Controller is server application to manage UniFi Access Points by Ubiquiti Networks.

  • Download Controller 5 from Ubiquiti site
  • Install

    sudo gdebi unifi_sysvinit_all.deb
    

  • Start unifi service
    service unifi status
    
  • visit
    http://localhost:8443
    

Under the hood

  • compatible with Java 6, 7 & 8
  • MogoDB included
  • uses 8443, 8080, 8880, 8843, 27117, 3478, 8881, 8882

Some service that might uses the above ports

  • LXD – 8443
  • Apache2/httpd or Nginx – 8080

Make sure they are not running or not using the port before starting the unifi service.

Other resources

Printer dialog freezes after setting Properties

Problem

Printer dialog freezes after setting Properties of (any) printer.

Setup

Hardware

  • DELL Optiplex 9020
  • HP LaserJet 400 M401d (connected with USB)

Software/driver/firmware

  • Windows 7 64-bit
  • UAC notify
  • HP PCL 6 driver for Windows 7 64-bit
  • HP printer firmware 20160224

Steps tried before solution

  • carry out sfc /scannnow
  • carry out chkdsk
  • tried updating to lastest firmware and drivers
  • tried different setting in printer properties such as spooling, bidirectional support, rendering, etc.
  • change user role
    • When the user role is User, the printer dialog box freezes.
    • If the user role is Admininstrator, the printer dialog box does not freeze.
    • If the user role is Power Users, the printer dialog box does not freeze.

Solution

Set the user role to Power Users.

Remark

  • This will not solve all the freeze cases as there were other causes
  • Setting the user role to Power Users may not be feasible in certain cases.