Sunday, January 20, 2013
fixing dialogs in gnome
http://askubuntu.com/questions/109321/popup-dialogs-attached-to-window-title-and-not-movable
Sunday, January 6, 2013
removing Unity from Ubuntu 12.04.1 LTS
aptitude remove empathy libunity-2d-private0 libunity-core-5.0-5 libunity-misc4 unity unity-2d unity-2d-common unity-2d-panel unity-2d-shell unity-2d-spread unity-asset-pool unity-common unity-greeter unity-lens-applications unity-lens-files unity-lens-music unity-lens-video unity-scope-musicstores unity-scope-video-remote unity-services
edit: lightdm will not work at all without unity-greeter. ubuntu sucks more each day
Wednesday, March 23, 2011
simple rsync
How to use rsync logic to copy only modified/new files and not have to run any service on the other host.
basically you will have the same result/security/convenience as running scp
but with the added rsync logic:
basically you will have the same result/security/convenience as running scp
scp -r sourcefiles/* destination.host.com:/destination/but with the added rsync logic:
rsync -r -v -e ssh sourcefiles/* destination.host.com:/destination/
Tuesday, December 14, 2010
simulate a distant host in localhost
simulate 200ms pings. (100ms each leg)
Restore it back to normal again with:
TODO: script to set that every second to a random value from 10 to 100
also:
references
tc qdisc add dev lo root handle 1:0 netem delay 100msec
Restore it back to normal again with:
tc qdisc del dev lo root
TODO: script to set that every second to a random value from 10 to 100
also:
iprelay -b30000 8000:localhost:80
references
- from http://daniel.haxx.se/blog/2010/12/14/add-latency-to-localhost/
- also in http://news.ycombinator.com/item?id=2004790
- docs in http://www.linuxfoundation.org/collaborate/workgroups/networking/netem
usable tackaball
wrotenote-lx$ cat logitec_usb_trackball.sh
#!/bin/sh
# 1 2 3 4 5 6 7 8 9
#xinput set-button-map "Logitech USB Trackball" 8 9 2 4 5 6 7 1 3
xinput set-button-map "Logitech USB Trackball" 1 9 2 4 5 6 7 1 3
# LF rt lf RT
# LF = big left button
# RT = big right button
# lf = small left button
# rt = small right button
# liga emulacao do whell por movimento do mouse
xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation" 8 1
# diz q par de botoes o movimento no eixo X "clica"
#xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation X Axis" 8 6
xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation Axes" 4 5 6 7
# apertar o botao 1 ativa emulacao acima
xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation Button" 8 1
the buttons now do:
- Big left button:
- click for Button 1 (left click)
- Hold for scroll on the trackball moviment (all four directions)
- click for Button 1 (left click)
- small left button: always button 1 (so i can drag things and select text)
- small right button: Button 3 (right click) my least used button
- Big Right button: middle click. I used that button a lot, to paste and thown windows to the bottom of my desktop zindex.
usable tackaball
wrotenote-lx$ cat logitec_usb_trackball.sh
#!/bin/sh
# 1 2 3 4 5 6 7 8 9
#xinput set-button-map "Logitech USB Trackball" 8 9 2 4 5 6 7 1 3
xinput set-button-map "Logitech USB Trackball" 1 9 2 4 5 6 7 1 3
# LF rt lf RT
# LF = big left button
# RT = big right button
# lf = small left button
# rt = small right button
# liga emulacao do whell por movimento do mouse
xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation" 8 1
# diz q par de botoes o movimento no eixo X "clica"
#xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation X Axis" 8 6
xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation Axes" 4 5 6 7
# apertar o botao 1 ativa emulacao acima
xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation Button" 8 1
the buttons now do:
- Big left button:
- click for Button 1 (left click)
- Hold for scroll on the trackball moviment (all four directions)
- click for Button 1 (left click)
- small left button: always button 1 (so i can drag things and select text)
- small right button: Button 3 (right click) my least used button
- Big Right button: middle click. I used that button a lot, to paste and thown windows to the bottom of my desktop zindex.
Sunday, October 24, 2010
android tool box
Emulator:
adb log view:
(-d if device, -s xxxx if multiple emulators/devices)
and for the code:
controling the emulator (will never understand why it's not implemented in the shell...)
emulator -cpu-delay 0 -no-boot-anim -cache ./cache -avd froyo
adb log view:
adb -e logcat
(-d if device, -s xxxx if multiple emulators/devices)
and for the code:
import android.util.Log;
[...]
Log.d(TAG, sb.toString());
controling the emulator (will never understand why it's not implemented in the shell...)
telnet localhost 5554
# gsm call 5555
# sms...
Subscribe to:
Posts (Atom)