Jun She's profile路在脚下BlogListsGuestbookMore ![]() | Help |
|
4/29/2006 关于升级eclipse遇到的问题The CDT is available in two "flavors," as stable releases and nightly builds. Nightly builds have not been fully tested, but they offer more features and correct current bugs. Before installation, check if the previous version of the CDT exists on your disk and, if so, make sure to completely remove it. Because there are no uninstallers available for the CDT, you will need to do this manually. To check to see if a previous version exists, go to the directory where the CDT plug-ins reside:
eclipse/plugins. Next, remove all directories starting with the org.eclipse.cdt name. The last thing you will need to do is remove the CDT metadata directories or.eclipse.cdt.* from workspace/.metadata/.plugins and features.4/25/2006 meep discussHi, maybe it is usefull for someone: (define (display-fluxes-at-step . fluxes) (lambda () (if (not (null? fluxes)) (apply display-csv (append (list (string-append "flux" (number->string (meep-time))) (get-flux-freqs (car fluxes))) (map get-fluxes fluxes)))) )) and call like (run-until 300 (at-every 10 (display-fluxes-at-step f))) it is just a hack of the old display-flux function regards Andreas Am Donnerstag, 6. April 2006 08:24 schrieb Andreas von Rhein: > Am Donnerstag, 6. April 2006 08:11 schrieb Steven G. Johnson: > > On Thu, 6 Apr 2006, Andreas von Rhein wrote: > > > so I supposed one has to call like this > > > > > > (run-until 300 (at-every 10 (display-fluxes flux1))) > > > > > > but dispaly-fluxes seems not to be normal step-function. > > > > > > During the first call the flux is displayed (ok it is 0 everywhere), > > > but in the next call the output is undefinied. I suppose display-fluxes > > > destroys the calculation data. > > > > Hi Andreas, > > > > This is a common confusion with MPB, and I'm guessing it will be a common > > confusion with Meep too. > > > > The step functions that you pass to run must be *functions*. When you > > pass (display-fluxes flux1) you are passing the *result* of calling > > display-fluxes, which is not a function. Hence it displays once, before > > run even begins, and then gives an error because you are not passing the > > correct argument type. > > > > Instead, you should define a function, either via: > > > > (define (display-fluxes-at-step) (display-fluxes flux1)) > > (run-until 300 (at-every 10 display-fluxes-at-step)) > > > > or just use lambda to construct a function on the fly: > > > > (run-until 300 (at-every 10 (lambda () (display-fluxes flux1)))) > > > > Steven > > Ok, I've forgotten. > But display-fluxes isn't very grep-friendly. What about changing the string > of the first row with time information?, > > flux0010, ... > > > flux0020,... > > But I think I could handle it on my own and write a new function with the > help of (get-flux-freqs flux) > > regards > Andreas 4/12/2006 Matlab的安装1. JAVA的安装与中文支持。
Debian方式(推荐):
建议使用Debian方式安装java,这样其它依赖于Java的Debian软件包才能被正常安装。 java的中文环境
方法很简单,只要在/usr/lib/j2re1.5/lib/fonts目录下建立一个fallback目录,并把中文字体文件拷贝或链接到该目录中即可,根本不用配置其它东西。
2. matlab的安装
如果你要在/usr/local/matlab下安装的话
首先把liecens.dat考到/usr/local/matlab中,然后在这个目录中执行 sh /media/cdrom/install 如果在光盘里执行会显示权限不够的!
在/usr/local/matlab7/bin目录中的matlab启动脚本中添加一个环境变量就可以实现matlab7的中文化
4/10/2006 VNC发信人: binghe (冰河), 板面: LinuxApp
标 题: Re: vnc怎么远程登录当前正在用的桌面呀? 发信站: 飘渺水云间 (Thu Nov 10 22:45:04 2005), 站内信件 For Debian User:
STEP 0: install vnc4server
STEP 1: prepare vnc module
# cd /usr/X11R6/lib/modules/extensions
# ln -s vnc.so libvnc.so STEP 2: make a passwd
# cd /root
# vnc4passwd STEP 3: Add some lines to /etc/X11/xorg.conf :注,我是改了XF86configure-4
Section "Module"
... Load "vnc" EndSection Section "Device"
... Option "rfbauth" "/root/.vnc/passwd" EndSection STEP 4: start X on display :1 but not :0 (default)
because in zju's network, vnc port 5900 (for :0) is forbidden.
for example, gdm user should modify /etc/gdm/gdm.conf, change the line "0=Standard" to "1=Standard" 客户端运行时,输入ip:1 解决totem等gtk程序中菜单显示为数字的问题~/.gnomerc
作用:GNOME桌面系统的用户级启动文件,该文件里的脚本在GNOME桌面系统启动时会自动执行,如果在用户主目录中没有该文件,用户可自行创建。该脚本是由GNOME系统级启动文件/etc/X11/Xsession.d/55gnome-session_gnomerc所触发的。在我的的系统中,该配置文件的内容如下: # 配置GTK+程序的打开文件窗口字体编码为GBK export G_FILENAME_ENCODING=GBK XMMS在root下正常,在普通用户下不正常zz一个帖子,
我以前遇到过相似的问题.我的解决方法: 1.检查/dev/dsp,/dev/audio这两个文件的用户和组 $ ls -l /dev/dsp /dev/audio 如果用户不是正在播放MP3的用户的话,修改方法如下说明.另外组一板是root,如果不是,修改方法如下说明: $su passwd: # chown user(适当改变为要播放MP3的用户):root /dev/dsp /dev/audio 特别说明:上面的括号只是注释,实际肯定不能用. 退出XMMS,重新启动,一般说来是会发声的. 心得: crw------- 1 am root 14, 4 8月 31 2002 /dev/audio crw------- 1 am root 14, 3 8月 31 2002 /dev/dsp 发声主要由/dev/audio /dev/dsp 设备控制,而它们两个文件,的权限只允许文件所有者来读写.由此,有两种解决方案,要么该变文件所有者,要么改变权限.为什么root老是可以发声?因为root不受权些限制. 引起的原因:1.多个用户登录,不小心使的某个用户登录不正常;2.某个用户的X崩溃过. 4/7/2006 关于meep的并行1. 安装libhdf5-mpich-1.6.2-0
用debian,这个是很方便的
2. ./configure --with-mpi
make && make install
3.配置mpich
gvim /etc/mpich/machines.LINUX
加上机器名
运行:
meep-mpi -allcpus /usr/local/bin/meep-mpi *.ctl
即可。
现在的问题:
1. 必须在每个结点,相同的位置放置这个文件
2. 每个结点上都会生成一分结果。
4/5/2006 菜鸟装debian一不小心把debian搞坏了,xwindows没了。
重装吧。
rp不好,装完后学校的镜象就挂了。
debian安装很简单的。
装安后,
发信人: rsrm (pyrw), 信区: LinuxApp
标 题: [debian安装(二)]配置Xwindow 发信站: 飘渺水云间 (Sat May 22 19:17:13 2004), 转信 上次写到装完基本系统,接下来写一些关于配置Xwindow的。目标以尽量保持系统的清洁
1、先装一些常用的软件。
$ df -h #看看现在用了多少硬盘空间,大概200M左右吧 $ apt-get install gcc make rcconf modconf vim 差不多,还差什么,想到再装,反正非常方便 2、X服务
$ apt-get install xserver-common xserver-xfree86 xbase-clients
xfonts-base xfonts-100dpi xfonts-75dpi 里面有一步显示器刷新率的配置,请根据说明书的规格填写 3、gnome基本安装
apt-get install gnome
大一些,杂一些,但是支持好一些,比如说鼠标的中键等。
#dpkg-reconfigure xserver-xfree86 调整一些属性
也可以:
$ apt-get install gnome-session gnome-terminal gnome-applets gnome-panel
metacity nautilus mozilla(浏览器,一般都用这个吧,不想用的话还有opera 到mirror incoming里下载) 好了,到这一步,基本的gnome就配置好了,可以startx看能不能启动。如果不能 启动可能的解决方案: 1、若在/etc/X11/XF86Config-4 中的Option段中的有 ”UseFBDev“ ”Ture“ 用# 注释掉 2、若在/etc/X11/XF86Config-4 中的Option段中的有 "BUSID","PCI:0:1:0", 把它注释掉 3、若提示找不到/dev/psaux设备,则 $ modconf 进入把mousedev模块装上,把psmouse模块也选上 ok,这样应该可以进入gnome了吧,如果还不行那我也无语了! 显卡不装也没什么 字体: 1.在fontconfig的默认配置路径/usr/share/fonts/truetype下创建新文件夹如DIY,随后拷贝字体文件simsun.ttc,tahoma.ttf入内 2.安装locales,使用dpkg-reconfigure配置它,选上en_US(iso8859-1)以及zh_CN.GBK # dpkg-reconfigure locale
3.dpkg-reconfigure xserver-xfree86配置X,将freetype模块去除,保留xtt模块(它比freetype的字体渲染效果要好,比如说支持粗体)
5.安装相关的工具 介绍如下: libxft2-dev - advanced font drawing library for X (development files) 其他字体: 6.使用dfontmgr注册字体文件(xtt以及xft的配置一次搞定) 随后把下面两句添加到/etc/X11/XF86Config-4文件,使xtt能使用dfontmgr注册的字体集(dfontmgr自动更新fontconfig)
差不多了。
输入法 1.安装 scim scim-chinese scim-config-gconf 和 im-switch dpkg -i im-switch_1.2.deb 目前 SCIM 应该是最通用的输入法了.使用 Synaptic GUI 可以直接选择安装.
vim /etc/X11/xinit/xinput.d/default
======================== 差不多就可以用了。
SSH&XDMCP: gnome里勾上xdmcp就行了 ssh, vi /etc/ssh/sshd_config OK:) 关于debian的美化记一下,以后也许有用,
1. 字体
自己编辑这个文件是复杂的, 真正简单的方法是再安装 dfontmgr, defoma的gtk图形化前端
! 以 root 身份在图形环境下运行这个程序就会看到系统中所有字体和字体管理器的信息. 安装一个TrueType字体的过程非常简单:
1. 点击注册字体的按钮 2. 选择字体文件.ttf所在的位置 3. 选择字体的类别,编码等信息 4. 最后有一个字体的优先级, 0-99可选, 越大越优先.(我把simsun设置为99,就不怕simli 捣乱了:) 2. scim
自己的系统好多配置改过了,以前一直没机会试>。。。。
在全新的系统下,装了scim和 m17n-env 这两个包后
root执行一遍 set-m17n-env -x ,选中你感兴趣的东东...其实默认都不选好像也行
然后要使用SCIM的普通用户也执行 set-m17n-env -x 选中带 im-scim 的那项,然后重启X.... 一切OK了,让所有的配置文件手动修改见鬼去吧~~~~ 4/4/2006 在Linux下写了第一个c++的程序在Linux下写了第一个c++的程序,自然是著名的hello world!
我是土人,不要知笑我。MEEP的发布,不得不和linux打交道了,也是好事,这个东东免费嘛。
实验室的debian差不多了,除了字体不爽,显卡没装上,其它都好了。
看一下hello world!
#include <iostream>
using namespace std; int main()
{
cout << "Hello world!\n" << endl;
return 0;
}
gcc hello.cpp -o hello
./hello
|
|
|