I have a Mitsubishi Diamond View DV 650U scanner which I did not use much, so I am considering selling it. In order to test whether it is still functional and capability of working with linux, I use my RHEL5 to test that, and it works!
- yum install sane-backends sane-backends-libs xsane
- Scanner firmware is also needed, You can find it at driver CD, namely, u176v042.bin. You can also download from http://www.mitsubishielectric.com.au/420.htm
- copy the firmware file as /usr/share/sane/snapsane/your-firmwarefile.bin (Yes, I am too lazy to modify the /etc/sane.d/snapsane.conf).
- Plug out the scanner’s power and USB.
- Plug back scanner’s power and USB.
- See whether your scanner is detected with sane-find-scanner, It should be recognized as ACER flatbed scanner.
- See whether the scanner is detected with scanimage -L.
if not, go back to 4.
- Test with xsane, it should work at this point. If not:
- redo step 4 to 7.
- export SANE_DEBUG_SNAPSCAN=10
- scanimage -d snapscan:libusb:xxx:yyy -x 50 -y 50 –format=tiff > ./test1.tiff
(xxx and yyy are 3-digit integers and from step 7).
- See the debug message and retry.
Hope it is sufficient.
Some of my programs are extremely slow, so I try to use gprof to profile them.
After several test run, only the functions in the executable are profiled but not those from the shared library even both are complied with “-pg”.
HP gprof man mentions that environment LD_PROFILE can be set, it does reveal more functions in fedora, but not in the way I want.
Finally, I found this blog:
and link my programs statically and voila, it works!
While debuging tomoe, the original code in lib/tomoe-dict-ptr-array.c reads:
G_DEFINE_ABSTRACT_TYPE (TomoeDictPtrArray, _tomoe_dict_ptr_array, TOMOE_TYPE_DICT)
But it does not work and cause segmentation fault in scim-tomoe.
After remove the _ from the 2nd parameter (and corresponding functions),
it works like charm.
Currently the keyboard layout is categorized by countries, which might not be suitable because it may bring following issues:
- Country flags (which may cause political problems)
- Not fair for the countries which are not in the list, e.g. Australia, New Zealand, Singapore, etc…
- Some layout is also available in certain countries but not recognized, e.g. Dvorak in China and India.
- Produce redundancy, like QWERTY in US, CN, IN are actually the same, but need to list 3 times.
Proposed Keyboard Layout Taxonomy
Use the keyboard layout itself as categories, such like:
- QWERTY– Default
This taxonomy is more concise than countries-oriented. Users do not need to scroll the long countries list; and input method developers can easily have brief idea that what are they going to deal with.