Index

颓废的两天啊= =

从昨天周五开始就出现了颓废的现象= =晚上刚吃完饭= =回到教室还没睡醒就被一个电话叫回寝室搞起了啊= =~真实一点原则都没有的人= =悲剧的开始..
今天早上起来之后又是一通游戏乱打啊= =完全没有一点考研剩下时间不到50天的样子啊= =
不啊= =一定要努力了啊啊啊啊啊啊啊啊啊 啊啊啊啊!

没有成果的QT啊= =

看了别人写的一个非官方豆瓣客户端.使用QT写的..非常高兴的吧源代码下下来想自己编译并学习学习..但是在调试运行之后始终无法获取正确的登录信息= =背着哥问题困扰了我一个多星期了.....看来还是必须多和开发者联系联系啊= =而且对于我目前的时间和精力来说= =是不是这个问题过于复杂了呢?

突然头好痛= =

好不容易想好今天可以一天都去自习的= =结果直接醒来就10点半了= =囧......
本来起床就起床吧...结果刚起床就手贱的打开了电脑才去洗漱= =后果那就必须可想而知了= =
然则,终究,还是,竟然!在十二点之前到了教二= =真是个伟大的成就啊= =竟然没有怎么花时间就收拾好了电脑= =不得不赞一下啊= =

然而悲剧现在才开始= =到了教室却完全看不进去书= =而且眼睛发酸= =头发痛= =直接后果就是我倒在座位上昏昏欲睡了很久= =我感觉为啥一瞬间时间就过去了= =等到一通电话叫醒我抬头一看= =P哥就站在门外= =叫我吃饭了....唉~~吃完饭..不知不觉有开始昏昏欲睡= =不知不觉时间又过去了= =....虽然在最后关头强打这用即使是用线缝起来了的眼皮也硬要用从小女孩那里买来的火柴棍撑起来的强大小宇宙把今天的政治练习题做完了= =那叫一个痛苦啊....

确实不知道今天发生了= =神马...但是写完这通日志就去睡了吧= =期待明天起来能有完全的改变~恩!

部分照片~[2010-11]



整装待发(哥你懂的)
 开心对望的两人
只是为了测试相机= =真的
手机世界= =(要好的两兄弟啊)
这是谁啊= =
大哥大嫂
主角阿宴
开心的P哥

勤劳的大哥

某人有了新兄弟

排排队,吃果果

你们心里在想什么自己清楚 = =
又见大狗子~(没开闪光灯神马的)

+1(= =)
生日蛋糕-侧脸

生日蛋糕-正面

开心的大哥

左边的请无视= =

勤劳的大哥多来几张= =

请不要问被子里面还有谁= =

我开动了!

覃大哥好!

不猥琐没得吃= =

更开心的某人

勤劳的助手

有情人****

有情人****+1

最开心的就是你吧!

半家福(请不要问被子里面有谁= =)

听~海丰的呻吟~

某人的自习室位置= =

位置+1

感觉不错就照下来了= =~

+1

勇敢作自己

在linux下面使用多按钮鼠标[logitech for linux]

Hi everybody,

Just for people looking for linux options with logitech mice... I have a Performance MX working fantastically on my linux box with KDE4 (kubuntu 10.10). Some interesting points:

1) All buttons are detected with last kernel... at least with

$ uname -a
Linux tuxica 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:45:36 UTC 2010 x86_64 GNU/Linux

2) So, basically, you only need to map those buttons with desired actions. How to know with button is pressed and the correspondent numeric code? Well, you can use the 'xev' program:

$ xev

This program is a key and mouse events sniffer. When it's running, you can see a window in which you can press mouse buttons and see if they are detected. For example, with the zoom button of the Performance MX you will see something like that:

ButtonPress event, serial 35, synthetic NO, window 0x5800001,
root 0x15a, subw 0x0, time 64521438, (84,117), root88,144),
state 0x10, button 13, same_screen YES

that means that 13 is the code for that mouse button. You can try every mouse buttons on your hand ... for easy access, here is the map for Performance MX:

Back button: 8
Forward button: 9
Zoom button: 13
Show windows button: 10

the other buttons are well recognized and you don't need to map to actions.

3) Now, you need to install a little program to re-map mouse and keyboard inputs. The magician is 'xbindkeys' ... the easy installation is using:

$ sudo apt-get install xbindkeys

4) Once installed, you can do the magic. The idea is configure the mouse buttons to send key combinations to activate other desktop functionalities (as the matter of fact, xbindkeys can be used for execute any other program when you press a mouse button). For example, the "show windows" button is ideal for KDE's Present All Windows feature (for mac users, something similar to Expose). In KDE you can do that with Ctrl+F10 keys combination. The point is create a xbindkeys' configuration file to do the job.

5) To create the configuration file, just run the following command:

$ xbindkeys --defaults > $HOME/.xbindkeysrc

6) And we need to edit the file to specify your button's mapping:

$ kate $HOME/.xbindkeysrc

'kate' is the KDE's default plain text editor. Of course, you can use your favorite editor.


7) We need to add our button-to-key configurations. For example, I have the following:

# Back
"xte 'keydown Alt_L' 'key Left' 'keyup Alt_L'"
b:8

# Forward
"xte 'keydown Alt_L' 'key Right' 'keyup Alt_L'"
b:9

# Present desktops
"xte 'keydown Control_L' 'key F8' 'keyup Control_L'"
b:13

# Present windows
"xte 'keydown Control_L' 'key F10' 'keyup Control_L'"
b:10


8) There was a new requirement. the 'xte' program, which basically simulates user key press combinations. Install it using:

$ sudo apt-get install xte

Now, if you run on a terminal something like:

$ xte 'keydown Control_L' 'key F10' 'keyup Control_L'

that means simulate a Ctrl+F10 keypress. The idea is using xbindkeys to say: "when I press 13th mouse button, send a Ctr+F10 keyboard press using xte program to generate that"


9) And finally, you need to configure 'xbindkeys' to run automatically on system startup. Just go to System settings / Startup and Shutdown / Autostart / Add program button and type '/usr/bin/xbindkeys' on the dialog.

10) Othe tips: KDE is a very customizable environment, and you have a lot of options to configure exactly what you want. For example, if you want to map the "Zoom button" (or other on a different mouse such as RevolutionMX) with 'next desktop' action:

# Next desktop
"qdbus org.kde.kwin /KWin org.kde.KWin.nextDesktop"
b:13

(qdbus is a very powerful way to communicate with applications in KDE)

Of course, you can use this option with Gnome or any other desktop environment.

Hope this helps someone,

Hugo

EOF

以上就是转贴的完全体= =经过测试,修改成自己鼠标对应的按钮之后大部分可以使用.但是最关键的前进和后退却完全无法使用= =也不知道是为什么= =明明在设置里面写好了= =可就是木有用= =看来在之后再测试一会儿吧~