Saturday, April 19, 2008

wine强制全屏游戏在窗口模式下运行

wine explorer /desktop=1024x768 whatever.exe

...
Read More

Monday, April 7, 2008

用psyco优化python程序

psyco是python扩展通过编译python代码提升python程序速度

使用方法简单在python程序加上下面可以

import psyco
psyco.full()

psyco程序运行编译部分代码具体怎么编译清楚因此程序初始时间增加运行速度

篇gentoo-wiki介绍用psyco优化portage速度

http://gentoo-wiki.com/TIP_Speed_up_portage_with_Psyco

文章了psyco以后,portage性能可以提升2-5同时警告说psyco现在稳定可能带来很多问题因此推荐使用

了psyco的emerge速度看来2-5影响使用问题比如sudoemerge异常确认删除“no异常猜测因为psyco对try-except语句支持原来程序里catch异常现在引发了psyco异常

不过问题影响正常使用继续观望

另外的python程序支持psyco像Frets On Fire源码初试使用psyco了psyco以后玩Frets On Fire感觉不过没有portage那么明显

...
Read More

Friday, April 4, 2008

HOWTO XDMCP in Gnome

XDMCP stands for "X Display Manager Control Protocol" and is a network protocol. It allows a way of running X-Terminal on your PC (or Mac) and uses the X Server to provide a client/server interface between display hardware (the mouse, keyboard, and video displays) and the desktop environment while also providing both the windowing infrastructure and a standardized application interface. The X-Terminal can be displayed with an individual window or multiple windows, based on your X window system's software capabilities and setup.


On your X-Server, you must tweak the configuration of your graphical login manager (displaymanager).

for GDM, you need to change the [xdmcp]-section in your configfile:
/etc/X11/gdm/custom.conf

[xdmcp]
Enable=true

Depending on how your gdm.conf/custom.conf is set up, you might also need to add or change the [greeter] section as shown below. Without this, you will not be able to XDMCP in to your server.

[greeter]
Browser=true


How to use XDMCP

on the remote machine you can either use Xnest or simply X:
$ X -ac -query servername :1
or
$ Xnest -ac -query servername :1

where servername is your servername or IP. :1 is the display number. (:0 should be your running X-Server)

To change screen resolution of Xnest, use "geometry" option:
$ Xnest -geometry=1280x800 -ac -query servername :1

...
Read More
 
/* google analytics */