install xorg-server-aiptek driver.
create a settings file:
sudo vim /usr/share/X11/xorg.conf.d/70-aiptekmy.conf
Section "InputClass"
Identifier "pen"
MatchProduct "Aiptek|AIPTEK|aiptek"
MatchDevicePath "/dev/input/event*"
Driver "aiptek"
Option "SendCoreEvents" "true"
Option "USB" "on"
Option "Type" "stylus"
Option "Mode" "absolute"
Option "zMin" "0"
Option "zMax" "1023"
EndSection
Sunday, December 14, 2014
Saturday, August 30, 2014
Genius G-Pen 560 under Debian 7.6
Download https://launchpad.net/wizardpen sources.
in the README file there are instructions to install dependencies.
Do ./configure, sudo make install.
edit /usr/share/X11/xorg.conf.d/70-wizardpen.conf
Section "InputClass"
Identifier "wizardpen"
MatchIsTablet "on"
MatchDevicePath "/dev/input/event*"
MatchTag "wizardpen"
Driver "wizardpen"
Option "TopX" "185"
Option "TopY" "372"
Option "BottomX" "11811"
Option "BottomY" "8793"
Option "TopZ" "32"
EndSection
Restart and enjoy!
in the README file there are instructions to install dependencies.
Do ./configure, sudo make install.
edit /usr/share/X11/xorg.conf.d/70-wizardpen.conf
Section "InputClass"
Identifier "wizardpen"
MatchIsTablet "on"
MatchDevicePath "/dev/input/event*"
MatchTag "wizardpen"
Driver "wizardpen"
Option "TopX" "185"
Option "TopY" "372"
Option "BottomX" "11811"
Option "BottomY" "8793"
Option "TopZ" "32"
EndSection
Restart and enjoy!
Wednesday, July 16, 2014
Monday, October 14, 2013
Scheme as embeddable language for C
Tried guile 2.0.9, tinyScheme, chibi-scheme and lua 5.2.
On MacOSX 10.8.5 memory footprint of default interpreter is:
guile 12.4 MB,
tinyScheme 984 KB,
chibi-scheme 2.7 MB,
lua 760 KB.
Executing 'hello world' with 'time' takes:
time guile -c '(display "hello, world!\n")' --- real 0m0.027s
time ./scheme -c '(display "hello, world!\n")' --- real 0m0.007s
time ./chibi-scheme -e '(display "hello, world!\n")' --- real 0m0.046s
time lua -e 'print("hello, world!\n")' --- real 0m0.004s
To sum up, for config files tiny-scheme or lua are perfect. Taking into account that lua is a full-featured language while tiny-scheme is a shrinked down one, lua is a clear winner.
On MacOSX 10.8.5 memory footprint of default interpreter is:
guile 12.4 MB,
tinyScheme 984 KB,
chibi-scheme 2.7 MB,
lua 760 KB.
Executing 'hello world' with 'time' takes:
time guile -c '(display "hello, world!\n")' --- real 0m0.027s
time ./scheme -c '(display "hello, world!\n")' --- real 0m0.007s
time ./chibi-scheme -e '(display "hello, world!\n")' --- real 0m0.046s
time lua -e 'print("hello, world!\n")' --- real 0m0.004s
To sum up, for config files tiny-scheme or lua are perfect. Taking into account that lua is a full-featured language while tiny-scheme is a shrinked down one, lua is a clear winner.
Wednesday, September 4, 2013
Inkscape and lessons for 2d art.
Inkscape and lessons for 2d art.
http://2dgameartforprogrammers.blogspot.com/
Saturday, June 22, 2013
What every programmer should know about memory
http://lwn.net/Articles/250967/
Software optimization resources
http://www.agner.org/optimize/
Friday, May 31, 2013
Subscribe to:
Posts (Atom)