Definite's Extractor

My findings on Life, Linux, Open Source, and so on.

Monthly Archives: August 2010

Selenium key combination handling

I am working on the testing our new web-based translation management system, flies with selenium.

I used to stuck on emulating the key combination handling, such as Ctrl-Enter until recently. Here are steps to emulate a Ctrl-Enter.

controlKeyDown
keyDown theElement \13
keyPress theElement \13
keyUp theElement \13
controlKeyUp

The “theElement” is the web element that you want your hot keys to be press on. Yes, you need all keyDown, keyPress, and keyUp events.

Note that PageUp and PageDown might not be working. As their keycodes seems to collide with ! and ".

Advertisements

Fedora GIT package update (fedpkg) step by step.

It seems that GIT package update is in the working order. Great job, team!

However, the documentation is not integrated yet, I have to visit 4 pages to make it working:

  1. Fedora project’s Package_update_HOWTO (yes, with that name).
  2. Fedora project’s Using_Fedora_GIT
  3. For know that I need a new version of fedora-packager
  4. and this for let git push to the branch you are tracking

I think it will help to provide a step by step or check-list, at least as my personal note.

Setup

  1. sudo yum –enablerepo=updates-testing update fedora-packager
    you need version fedora-packager-0.5.1 and newer to work.
    This will bring git as dependency.

  2. fedora-cert -n
    For update client side certificate

  3. fedora-packager-setup
  4. git config –global –add push.default tracking

Package Handling

Init (clone) package

You only need to run once per each package you are interested:

fedpkg clone <packageName> 

It creates a directory in the name of <packageName>
cd to this directory to continue working.

Update package in devel branch

  1. Import srpm
    fedpkg  import <SRPM File> 
    
  2. Commit and push in one go, it will show which files have been changed. You can exit the editor without saving to cancel the pushing, as you normally do with git-commit
    fedpkg commit -p
    
  3. Build package
    fedpkg build
    

Update package in stable branches

For example, if you are going to push your updates in F-13, then

  1. fedpkg import -b f13 <SRPM File>
  2. fedpkg switch-branch f13

Then follow the steps of “Update package in devel branch”

Pitifull Windows error message

I kept a Window partation on my mini311, mainly for tax reporting software (which only function on Window) and Gaming.

Recently I kept encounter this error dialog:

How I suppose to know which exe/dll trigger this error? Yes, it says that I should contact the application’s support team, but which one?

As you can see, the dialog size cannot be changed, thus you cannot enlarge the window and see if it’s truncated because of window size.