学opengl找到的一些东西

一段时间之前就开始学Opengl了,虽然书看了不少,也看了很多的源代码。可是看终究是看,还是要实践才能知道哪些知识没有学懂。今天就开始按照自己的想法作一些程序下来,当然,都是在Linux环境下面做的,方面一些:)

自己也找到一些常用的资料,放在这里免得以后又去找:
OpenGL Bluebook
[download id=”21”]
Linux ANSI C Function Reference (Downloaded from CHINAUNIX)
[download id=”22”]
FreeGLUT API Reference
[download id=”23”]

Visual.Assist.X.v10.3.1540 Crack

这几天要用Visual Assist X 最新版,找了好半天,终于在这里找到了:
http://www.blon.cn/article.asp?id=23

感谢这个作者。已经可以正常使用了。

在我这里也可以下载到

压缩包里面包含了原版和破解。
只允许会员下载 该文件只允许会员下载! 登录 | 注册

另外这个作者说到:

注意,在中国普遍使用的“创天”中文版VC下使作会不正常或不能正确安装,所以建议安装英文版。

英文版Visual Studio下载:ftp://vip.ttud.com/1/Visual.Studio.6.0.ENG_www.ttud.com.iso

破解补丁的使用方法:下载后覆盖安装目录下的相关文件即可.enjoy!

装了金山词霸的同时使作会有冲突。

谢谢:)

另外,破解均用于研究和学习使用,本人不对破解的使用负责。

scim在英文环境中应用

edit /etc/profile and add these:

export LANG=en_us.UTF-8
export XMODIFIERS="@im=SCIM"
#export GTK_IM_MODULE=xim
export GTK_IM_MODULE=scim
export QT_IM_MODULE=scim
export XIM_PROGRAM=SCIM
export XIM=SCIM
export LC_CTYPE="zh_CN.gb2312"
su:scsioffice ~ # export |grep -i scim
declare -x GTK_IM_MODULE="scim"
declare -x QT_IM_MODULE="scim"
declare -x XIM="SCIM"
declare -x XIM_PROGRAM="SCIM"

apt-axel 脚本

我把apt-axel脚本更改了一下,以适合自己的使用:
修改如下:

  • 使用一个server
  • 使用mirror server达到更快的速度

下面是apt-axel文件

#!/bin/bash

###########################################################################
#
# Authors: Jes鷖 Espino Garc韆 & Lucas Garc韆
# Email: jespino@imap.cc
# Date: 31/05/2004
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
###########################################################################

# If the config file not exist, load the default parameters

VERSION="0.1"
CONFIG_FILE="/etc/apt-axel.conf";

if [ -f $CONFIG_FILE ]; then
. $CONFIG_FILE
else
# Verbose TRUE or FALSE
VERBOSE="FALSE"

# Conections
CONNECTIONS=8

# Servers
server1="ftp://ftp.de.debian.org/debian/"
server2="ftp://ftp.es.debian.org/debian/"
server3="ftp://ftp.fr.debian.org/debian/"
server4="ftp://ftp.it.debian.org/debian/"
server5="ftp://ftp.fi.debian.org/debian/"
server6="ftp://ftp.uk.debian.org/debian/"
server7="ftp://ftp.tk.debian.org/debian/"
server8="ftp://ftp.us.debian.org/debian/"
fi

# Set the package variable to be global
package="";

# Show the help
mostrar_ayuda() {
echo "Usage: apt-axel ";
echo "";
echo "Options:";
echo " install - Install new packages (paquete es libc6 y no libc6.deb)";
echo " upgrade - Do a software upgrade";
echo " dist-upgrade - Do a distribution upgrade, see apt-get(8)";
echo " --version - Print the current version of apt-axel";
echo " --help - Show this help";
echo "";
}

# Get a package from the ftp server
get_package() {
descargar() {
# Check the $VERBOSE variable and the filesize, if the filesize is lower than 200K will use only 4 conections
# And if the $VERBOSE variable is TRUE, then print the axel output
if [ $VERBOSE == "TRUE" ]; then
if [ $size -gt 200000 ]; then
echo $server1$url
axel -a -n $CONNECTIONS $server1$url -o /tmp/$archivo -S $mirror1
else
axel -a -n 4 $server1$url -o /tmp/$archivo -S $mirror1
fi
else
echo -n "Geting $package package: "
if [ $size -gt 200000 ]; then
axel -a -n $CONNECTIONS $server1$url -o /tmp/$archivo -S $mirror1 > /dev/null
else
axel -a -n 4 $server1$url -o /tmp/$archivo -S $mirror1 > /dev/null
fi
echo "Done"
fi
}

# Getting data
url=$(apt-cache show $package | grep ^Filename: | sed s/^Filename: //)
archivo=$(echo "$url" | sed s/^.*$package/$package/)
pkgstatus=$(dpkg -s $package 2> /dev/null | grep ^Status: | grep -v "not-installed")
md5sum=$(apt-cache show $package | grep ^MD5sum: | sed s/^MD5sum: //)
size=$(apt-cache show $package | grep ^Size: | sed s/^Size: //)

# Downloading the package
if [ -f /var/cache/apt/archives/$archivo ]; then
echo -n "Package already downloaded. Checking md5sum of $package package: "
while [ $md5sum != $(md5sum /var/cache/apt/archives/$archivo | sed s/ .*$//) ]; do
echo "incorrect"
echo "Downloading again $package package."
rm -f /var/cache/apt/archives/$archivo
descargar
done
echo "correct"
else
descargar
fi

# Move the file to /var/cache/apt/archives
if [ -f /tmp/$archivo ]; then
if [ $md5sum == $(md5sum /tmp/$archivo | sed s/ .*$//) ]; then
mv -f /tmp/$archivo /var/cache/apt/archives/
fi
fi
}

pkg_install() {
for package in $(apt-get -s install $1 | grep ^Inst | sed s/^Inst // | sed s/ .*$//); do
get_package
done
apt-get -y install $1
}

upgrade() {
for package in $(apt-get -s upgrade | grep ^Inst | sed s/^Inst // | sed s/ .*$//); do
get_package
done
apt-get -y upgrade
}

dist_upgrade() {
for package in $(apt-get -s dist-upgrade | grep ^Inst | sed s/^Inst // | sed s/ .*$//); do
get_package
done
apt-get -y dist-upgrade
}

#
# Main program
#
if [ `id -u` != 0 ]; then
echo "You must be root to run this command."
else
case $1 in
install) pkg_install $2;;
upgrade) upgrade;;
dist-upgrade) dist_upgrade;;
(--version) echo "Current Version: $VERSION";;
(--help | -h) mostrar_ayuda;;
*) mostrar_ayuda;;
esac
fi

配置文件:
GNU nano 1.3.12 File: /etc/apt-axel.conf

# Verbose TRUE or FALSE
VERBOSE="TRUE"

# Conections
CONNECTIONS=20

# Servers
server1="http://ubuntu.cnsite.org/ubuntu/"
mirror1="http://ubuntu.cn99.com/ubuntu/"

[download id=”24”]

金秋校园

成电最让人难忘的就是深秋金黄的落叶,对于大四即将离开校园的朋友来说这金黄更值得人留念。这几天天气凉爽,也就和同学一起拿起照相机拍下些校园的记忆。

[2008年12月7日注:很遗憾,所有图片链接失效]

小孩们在草坪上玩耍

主楼后花园的银杏

草坪的绿色和银杏的黄色

大树下面好乘凉

敢拍我~!

主楼东附近的银杏

计算机学院前面的花园,还是第一次到这里来

草坪上的落叶,PS加强了对比度后的效果

小乖乖女:)

电梯