Monday, June 17, 2013

Installing "Glances" system monitor on ubuntu 12.04

Glances is a curses based tool for monitoring your system - kind of like top on steroids. There is a small issue with using the version in the PPA on Ubuntu 12.04 (specifically the 12.04.2 minimal install); it crashes on startup with the following error:
Traceback (most recent call last):
  File "/usr/bin/glances", line 5, in
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
To fix it I manually had to install the package python-pkg-resources.

Thursday, March 21, 2013

AO Item Assistant v1.1.5

A new version of Item Assistant has just been released which should fix the major issues introduced with the "big AO server merge". It also cleans up and removes support for multiple dimensions and the player-shop monitor since these features are obsolete.

For those that play on both "live" and "test live" I recommend having two separate installs of AOIA, one for each dimension. Even with the old multi-dimensional support, it was never meant to support "test live" as one of the dimensions. (Due to, amongst other things, the difference in the AO Item database.)

I also want to give a big "THANK YOU!" to the AO community for all the feedback, testing and suggestions that just keep on coming in.

(For those that have been testing intermittent versions, this is essentially the same as v1.1.4.24.)


AOIA Homepage
v1.1.5 download

Saturday, December 15, 2012

Item Assistant 1.1.4

I have finally gotten around to updating AO Item Assistant to support v18.5 of the AO client properly. A bit late, I know, sorry about that.


Changelog:
  • Fixed issue with connecting to the AO client after the 18.5 patch.
  • Fixed parsing of the AO DB to handle the updates of the 18.5 patch.
Happy Holidays and an educational New Year!

Downloads here!

Wednesday, September 26, 2012

SublimeText2 - A small tip

It can be difficult to find the correct internal name of a command when you want to add a keyboard shortcut to it in SublimeText2. Wouldn't it be neat if you could show all the commands you trigger in a window somewhere? Well, it turns out it is really simple:
  • Open the console
  • Type the command
    • sublime.log_commands(True)
  • Go do stuff in the editor or menus and see commands roll by. 
When you have the command name it is quite easy to add that to your personalized key-bindings from the Preferences menu.

i.e. my current personalizations:
[
   { "keys": ["ctrl+keypad_divide"], "command": "toggle_comment", "args": { "block": false } },
   { "keys": ["ctrl+shift+7"], "command": "toggle_comment", "args": { "block": false } },
   { "keys": ["ctrl+d"], "command": "reindent" },
   { "keys": ["shift+ctrl+s"], "command": "save_all" },
   { "keys": ["ctrl+d"], "command": "find_under_expand" }
]


Thursday, April 12, 2012

Mercurial with Git Subrepository

I recently had some problems creating a Git sub-repository inside my Mercurial main repository using the guide I found here!

Problem

All is well and good up to that point, however when committing the added .hgsub file things started to head south.

From the commandline (cmd) I would get an error:
abort: The system cannot find the file specified
While from TortoiseHg I would not get an error. However, the expected .hgsubstate file did not get created, and thus the repository has in effect no valid sub-repositories if you try to clone it!

Workaround

The workaround is to do the commit of the .hgsub file from the GitBash shell instead of the regular shell or TortoiseHg, since then the .hgsubstate file will be generated. Using the GitBash shell is also mandatory for committing any change to the .hgsub file, or .hgsubstate file, as well as the initial clone of the repository.

Some googling around indicate that the issue is due to either Mercurial or TortoiseHg trying to execute the "git.exe" command (as opposed to just "git") and that this alias does not exist in the regular shell. I have not verified this, so YMMV!

Misc

Potentially relevant software that is installed on the computer:
  • Windows 7 x64
  • TortoiseHg (2.3.1)
  • Mercurial (2.1.1)
  • Git (1.7.6)
  • Python (2.6.6)
Both the "git" and "hg" commands were included in the PATH.