суббота, 28 августа 2010 г.

7 способов снять стресс

1 НЕЖНОСТЬ К СЕБЕ Если ты усердно гипнотизируешь монитор или морщишь лоб в задумчивости, мимическая мускулатура за день так напрягается, что голова начинает болеть. Это так и называется: “головные боли напряжения”. Чтобы избежать их, прямо посреди рабочего дня возьми щетку и порасчесывай волосы в течение 10-15 минут: это “разгонит” кровь и расслабит мышцы.

2 ВКУС ЖИЗНИ Важнейший пункт в твоей антистрессовой программе – еда. Вкусная и… очень вкусная. О диете забудь. Любой психотерапевт скажет, что, когда на душе мерзко, питаться надо нормально. Позволь себе жирную рыбу. В ней находится полезное для нервной системы вещество с почти космическим названием омега-3. Действует не хуже антидепрессантов. Если на работе хочется спать или плакать, попытайся вернуть трудовой энтузиазм при помощи бананов и мороженого. В них содержится триптофан – вещество, которое называют природным транквилизатором. А вот с кофе поосторожнее: он может привести не к улучшению настроения, а к его резким перепадам.

3 ТОЧКИ ОПТИМИЗМА На шиатсу (точечном массаже) сейчас помешаны все – от британских политиков до американских топ-моделей. Кто лечит нервы, кто избавляется от вредных привычек. Тебе он поможет стряхнуть апатию и собрать мысли. По 30 секунд массируй точки, находящиеся под носом, между бровями, под нижней губой, в центре ладони (ее еще называют точкой отчаяния).

4 СИЛА ТРЕНИЯ Есть простой способ расслабиться и сбросить нервное напряжение. Для этого нужно лишь изо всех сил потереть ладони друг о друга, пока они не станут горячими и закройте ими глаза. Достаточно убедительных объяснений этому феномену нет. Можешь считать, что ты интенсивно и без разбора массируешь акупунктурные точки, которыми усеяна ладонь. А можешь утешиться тем, что перераспределяешь мышечное напряжение, косвенно влияя и на нервное. Но способ действует – это факт! А если хорошенько растереть не ладони, а уши (тоже, между прочим, акупунктурный Клондайк), то ты взбодришься, твои реакции ускорятся, а внимание повысится. За уши надо хвататься, если никак не можешь взяться за работу.

5 УТЕЧКА ИНФОРМАЦИИ Негатив и стрессы минувшего дня можно в буквальном смысле с себя смыть. И если домашние не позволяют тебе прилечь на диван и часок вздремнуть после работы, то уж 15 минут в душе они тебе точно предоставят. Просто встань под струи воды, чтобы они массировали тебе голову и грели плечи. А вся “рабочая информация” пусть утекает в водосток и не мешает тебе расслабляться.

6 КИТАЙСКАЯ РОКИРОВКА У китайцев есть пословица: “Хочешь избавиться от печали, передвинь 27 предметов в доме”. Тогда энергия заскользит в правильном направлении, не натыкаясь на шкафы и кресла. На самом деле китайская мудрость не лишена научных оснований. Переставь телефон на столе, разложи бумаги по ящикам, вазочку с комода перемести на тумбочку… Занимаясь дизайнерскими изысканиями и подсчетами (27 предметов – ни больше ни меньше!), ты позволишь мозгу переключиться, отрешиться от насущных рабочих проблем и отдохнуть. Удивительно, но после подобных “китайских передвижек” правильные (или по крайней мере оригинальные) идеи приходят в голову сами собой.


7. СДЕЛАЙТЕ ЧТО-НИБУДЬ ПОЛЕЗНОЕ. Например, запостите какую-то полезную технику -типа "7 способов снять стресс". :-)

ИСТОЧНИК

среда, 25 августа 2010 г.

How to install eGalax touch-screen under Ubuntu 10.04

Найдено на каком-то венгерском форуме (http://ubuntu.hu/node/18423)

First of all you need to check your device. My screen adatpter is an usb type,

Type in terminal:

lsusb
The answer is following:

Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 0eef:0001 D-WAV Scientific Co., Ltd eGalax TouchScreen
Bus 002 Device 002: ID 0458:003a KYE Systems Corp. (Mouse Systems)
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 05e3:0716 Genesys Logic, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

The controller is:

Bus 002 Device 003: ID 0eef:0001 D-WAV Scientific Co., Ltd eGalax TouchScreen

If everything is match, we can start
The main steps are:

1. Make xorg.conf
2. Installation of Egalax driver
3. Calibration

I made fresh installation of Ubuntu 10.04 from pen drive. Originally the xorg.conf is not exist in the /etc/x11 folder. We need to make it.

1. How to make xorg.conf

Open a new terminal with CTRL + ALT +F2 press, and type the followings:

sudo service gdm stop
sudo Xorg -configure
sudo service gdm start

Finally CTRL + ALT + F7 and you will return to Gnome.
2. How to install Egalax driver

You can find and download the driver from here: eGalax

When the driver arrived your machine, you unpack eGalaxTouch.tar.gz to a favourite place.
Open a terminal and navigate the favourite place.

type the following:
sudo sh setup.sh

If everything ok, the installer will be start:

root@makiworld-desktop:~# sh setup.sh
(*) Linux driver installer for eGalax Touch controller

(I) Check user permission: root, you are the supervisor.
(I) Begin to setup eGalax Touch driver.
(I) Extract eGalax Touch driver archive to /usr/local/eGalaxTouch32.
(I) Create eGalaxTouch utility shortcut in /usr/bin.
(I) Create TKCal tool shortcut in /usr/bin.
(I) Searching the X input modules directory.
(I) Check X window version: 1.4.x
(I) Copy X module: x14/egalax_drv.so to /usr/lib/xorg/modules/input.

(Q) Which interface of controller do you use?
(I) [1] RS232 [2] PS/2 [3] USB:

This place is need to select the interface. In my case is 3

(Q) Which interface controller do you use?
(I) [1] RS232 [2] PS/2 [3] USB: 3
(I) Using interface: USB
(I) Found a non-HID compliant touch controller.
(W) No inbuilt kernel module for touch controller found.
(I) It is needed to build "tkusb" kernel module for touch controller.
(I) For details, see the document "How to build module.pdf".

If you see this the driver installation is finish. My opinion is much better if you restart your computer ex. in terminal you type init 6

If your computer is restarted and if you have a display you can continue.
3. Touch Calibration

You can start the calibration by

sudo eGalaxTouch

The application must started, and you can calibrate your display in Tool tab.

I got a problem here, because the touch calibration wasn't feed back.

The root cause was in my case: the mouse click event and touch-screen click event was a similar exceptions. If you have a same problem you must set your xorg.conf.

First type in the terminal:

cat /proc/bus/input/devices

The response is:

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
U: Uniq=
H: Handlers=kbd event0
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
U: Uniq=
H: Handlers=kbd event1
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0017 Vendor=0001 Product=0001 Version=0100
N: Name="Macintosh mouse button emulation"
P: Phys=
S: Sysfs=/devices/virtual/input/input2
U: Uniq=
H: Handlers=mouse0 event2
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3

I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input3
U: Uniq=
H: Handlers=kbd event3
B: EV=120013
B: KEY=4 2000000 3803078 f800d001 feffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7

I: Bus=0003 Vendor=0458 Product=003a Version=0111
N: Name="Genius Optical Mouse"
P: Phys=usb-0000:00:1d.0-1/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.0/input/input4
U: Uniq=
H: Handlers=mouse1 event4
B: EV=17
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103
B: MSC=10

I: Bus=0003 Vendor=0eef Product=0001 Version=0100
N: Name="eGalax Inc. USB TouchController"
P: Phys=usb-0000:00:1d.0-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0/input/input5
U: Uniq=
H: Handlers=mouse2 event5
B: EV=1b
B: KEY=401 0 30000 0 0 0 0 0 0 0 0
B: ABS=f
B: MSC=10

I: Bus=0001 Vendor=10ec Product=0662 Version=0001
N: Name="HDA Digital PCBeep"
P: Phys=card0/codec#0/beep0
S: Sysfs=/devices/pci0000:00/0000:00:1b.0/input/input6
U: Uniq=
H: Handlers=kbd event6
B: EV=40001
B: SND=6

See this and set your xorg.conf
from

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection

repeair to

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mouse1"
Option "ZAxisMapping" "4 5 6 7"
EndSection

and add the fallowing line touchscreen section

Option "Device" "events"

If its done restart your computer, because sometimes the gdm restart is not enough, and restart the calibration

Theoretically its will be function:

Finally I attached the whole xorg.conf for a better picture.

Section "ServerLayout"
InputDevice "EETI" "SendCoreEvents"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "built-ins"
EndSection

Section "Module"
Load "extmod"
Load "glx"
Load "record"
Load "dri"
Load "dri2"
Load "dbe"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mouse1"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection

Section "Device"
### Available Driver options are:-
### Values: : integer, : float, : "True"/"False",
### : "String", : " Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # []
#Option "SWcursor" # []
#Option "ColorKey" #
#Option "CacheLines" #
#Option "Dac6Bit" # []
#Option "DRI" # []
#Option "NoDDC" # []
#Option "ShowCache" # []
#Option "XvMCSurfaces" #
#Option "PageFlip" # []
Identifier "Card0"
Driver "intel"
VendorName "Intel Corporation"
BoardName "82G33/G31 Express Integrated Graphics Controller"
BusID "PCI:0:2:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection



### Touch Configuration Beginning ###
Section "InputDevice"
Identifier "EETI"
Driver "egalax"
Option "Device" "usbauto"
Option "Device" "events"
Option "Parameters" "/var/lib/eeti.param"
Option "ScreenNo" "0"
#Option "SkipClick" "1"
Option "MinX" "380"
Option "MinY" "463"
Option "MaxX" "1570"
Option "MaxY" "1560"
EndSection
### Touch Configuration End ###

So that's it. Hopefully its will be function. Enjoy.