Monday, January 24, 2005

[segway] useful previous notes

cmu smtp: smtp.andrew.cmu.edu
pop3: cyrus.andrew.cmu.edu

***linux

PCMCIA RESET
cardctl eject
cardctl insert
cardctl scheme ***

activate/deactive ethernet
ifup eth0
ifdown eth0

procedure
1. cardctl eject
2. pullout card
3. cardctl scheme
4. put card in
5. cardctl insert


/var/log : system log
/var/log/messages
/etc/pcmcia/wireless.opts
# /etc/init.d/network stop
# /etc/init.d/pcmcia restart
/etc/apt/sources.list
/etc/network/interfaces


APT: advanced package tool

choose best mirror site
netselect -vv <...>

dpkg -l pattern
dpkg --status
dpkg --listfiles
dpkg --print-avail

apt-get update
apt-get install
apt-get upgrade
apt-cache search kde


Fedora Core:
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/X11/xorg.conf (/etc/X11/XF86Config -- debian)
/etc/grub.conf


install gsl:
#./configure --prefix=/usr


***coding

uint16_t: unsigned long int

common operations of deque
.push_front()
.push_back()
.pop_front()
.pop_back()
.size()
.front()


bk citool
bk revtool
bk pull
bk abort
bk resolve -----"f" "c"

reference point: (rpos, rang)
Global -> relative: (global - rpos).rotate(-rang)
relative -> global: rel.rotate(rang) + rpos