Skip to content

Instantly share code, notes, and snippets.

1) query
$ lshal | grep Elo
info.vendor = 'Elo TouchSystems' (string)
usb_device.vendor = 'Elo TouchSystems' (string)
usb.vendor = 'Elo TouchSystems' (string)
info.product = 'Elo TouchSystems, Inc. Elo TouchSystems 2700 IntelliTouch(r) USB Touchmonitor Interface' (string)
input.product = 'Elo TouchSystems, Inc. Elo TouchSystems 2700 IntelliTouch(r) USB Touchmonitor Interface' (string)
# sudo lshal | grep -h3 input.device
sun@sun:~$ xrandr
Screen 0: minimum 320 x 200, current 1024 x 1024, maximum 8192 x 8192
LVDS1 connected 1024x768+0+0 inverted (normal left inverted right x axis y axis) 0mm x 0mm
1024x768 60.0*+
800x600 60.3 56.2
640x480 59.9
VGA1 connected 768x1024+0+0 left (normal left inverted right x axis y axis) 510mm x 290mm
1920x1080 60.0 +
1600x1200 60.0
1680x1050 60.0
$ xrandr
Screen 0: minimum 320 x 200, current 1024 x 1280, maximum 8192 x 8192
LVDS1 connected (normal left inverted right x axis y axis)
1024x768 60.0 +
800x600 60.3 56.2
640x480 59.9
eDP1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024x768 60.0*+
800x600 60.3 56.2
640x480 59.9
$ lsusb
Bus 002 Device 003: ID 041e:30d7 Creative Technology, Ltd
$ speaker-test
Does not make sound.
Url
www.google.com
http://www.google.com
google.com
google.extra.com
google.extra.extra.com
Sql:
Where is my ttyUSB0?
# ll /dev/tty
tty tty11 tty15 tty19 tty22 tty26 tty3 tty33 tty37 tty40 tty44 tty48 tty51 tty55 tty59 tty62 tty9 ttyS3
tty0 tty12 tty16 tty2 tty23 tty27 tty30 tty34 tty38 tty41 tty45 tty49 tty52 tty56 tty6 tty63 ttyS0
tty1 tty13 tty17 tty20 tty24 tty28 tty31 tty35 tty39 tty42 tty46 tty5 tty53 tty57 tty60 tty7 ttyS1
tty10 tty14 tty18 tty21 tty25 tty29 tty32 tty36 tty4 tty43 tty47 tty50 tty54 tty58 tty61 tty8 ttyS2
# lsusb
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load('visualization', '1', {packages: ['geomap']});
function drawVisualization()
{
var data = new google.visualization.DataTable();
data.addRows(5);
data.addColumn('string', 'Country');
data.setValue(0, 0, 'Germany');
--------------------------- now
[sun@example gocode]$ gb
(in .) building cmd "gocode"
Built 1 target
---------------
$ export GOROOT=/var/tmp/go; goinstall -clean github.com/skelterjohn/go-gb/gb
----------
install websocket
install ../cmd/godoc
------------- now
[sun@example bin]$ od -c main.go
0000000 p a c k a g e m a i n \n \n i m
0000020 p o r t f m t " f m t " \n \n
0000040 f u n c m a i n ( ) { \n
0000060 f m t . P r i n t l n ( " H e l
0000100 l o , 344 270 226 347 225 214 " ) \n } \n \n
0000120
[sun@example chromeless]$ ./chromeless
Using Browser HTML at '/var/tmp/chromeless/examples/first_browser/index.html'
app code path: /var/tmp/chromeless/examples/first_browser/index.html
Using binary at '/var/tmp/chromeless/build/xulrunner/xulrunner'.
Using profile at '/tmp/tmpj6hOEm.mozrunner'.
Error: Platform version '2.0' is not compatible with
minVersion >= 6.0.2
maxVersion <= 6.0.2