gaim-1.5@Ubuntu

如果想要從source,自己安裝gaim,在Ubuntu-5.10是很簡單的步驟。
  1. libgtk2.0-dev: 來安裝gtk2的檔頭
  2. libgnutls10-dev: 需要使用ssl
  3. ./configure --enable-gnutls=yes
使用make install將作出來的binary裝入系統之中。 如果沒有安裝適當的SSL函式庫,就會出現
gaim 2.0.0beta3

Build Protocol Plugins........ : yes
Protocols to link statically.. :
Protocols to build dynamically : irc jabber msn novell oscar simple yahoo zephyr

UI Library.................... : GTK+ 2.x
SSL Library/Libraries......... : None (MSN will not work without SSL!)

Build with Plugin support..... : yes
Build with Mono support....... : no
Build with Perl support....... : no
Build with Tcl support........ : yes
Build with Tk support......... : yes
Build with Audio support...... : no
Build with GtkSpell support... : no
Build with DBUS support....... : no
Build with Cyrus SASL support. : no
Has you....................... : yes


Use kerberos 4 with zephyr.... : no
Use external libzephyr........ : no

Use XScreenSaver Extension.... : no
Use X Session Management...... : yes
Use startup notification.......: no

Print debugging messages...... : no

Gaim will be installed in /usr/local/bin.
Warning: You have an old copy of gaim at /usr/local/bin/gaim.
因為libgnutls的函式庫改變了,所以原有的方式無法使用,故要先安裝libgnutls-dev,然後再make;make install。
samuel@pika047:gaim-2.0.0beta3$ sudo apt-get -y install libgnutls-dev
讀取套件清單中... 完成
了解套件依存關係中... 完成
下列的【新】套件都將被安裝:
  libgcrypt11-dev libopencdk8-dev
建議(Suggested)的套件:
  libgcrypt11-doc libgnutls-doc gnutls-bin
下列的套件都將被【刪除】:
  libgcrypt7-dev
下列的【新】套件都將被安裝:
  libgcrypt11-dev libgnutls-dev libopencdk8-dev
更新 0 個套件,新安裝 3 個套件,刪除 1 個套件,另不更新 29 個套件。
6 個套件沒有完全安裝或刪除完畢。
需要下載 798kB 的檔案。
解壓縮後將消耗 1151kB 的空間。
下載:1 http://apt.ubuntu.org.tw dapper/main libgcrypt11-dev 1.2.2-1 [237kB]
下載:2 http://apt.ubuntu.org.tw dapper/main libopencdk8-dev 0.5.7-2 [117kB]                                    
下載:3 http://apt.ubuntu.org.tw dapper/main libgnutls-dev 1.2.9-2ubuntu1 [444kB]                               
讀取 798kB 用了 15s (50.5kB/s)                                                                                 
(正在讀取資料庫 ... 系統目前總共安裝有 114708 個檔案和目錄。)
正在刪除 libgcrypt7-dev ...
選中了曾被取消選擇的套件 libgcrypt11-dev。
(正在讀取資料庫 ... 系統目前總共安裝有 114689 個檔案和目錄。)
正在解壓縮 libgcrypt11-dev (從 .../libgcrypt11-dev_1.2.2-1_i386.deb) ...
選中了曾被取消選擇的套件 libopencdk8-dev。
正在解壓縮 libopencdk8-dev (從 .../libopencdk8-dev_0.5.7-2_i386.deb) ...
選中了曾被取消選擇的套件 libgnutls-dev。
正在解壓縮 libgnutls-dev (從 .../libgnutls-dev_1.2.9-2ubuntu1_i386.deb) ...

 

Netlogo應用

林峰田

 

OpenSSH@windows

利用cwTex,己經作出了很多的文件pdf檔,但是在windows中怎樣才能將文件分享在網路上呢,所以使用OpenSSH作檔案分享的伺服器,是不錯的idea。

另外也可以參考DRBL OpenSSH@windows

  1. Cygwin去下載setup.exe,安裝在c:\cygwin
  2. 設定環境變數CYGWIN=ntsec或是tty ntsec
  3. 利用ssh-host-config設定sshd成服務類型
  4. 在cygwin的環境下,利用命令"net start sshd"或是"cygrunsrv --start sshd"來啟動sshd。
  5. 自我測試"ssh localhost"

 

4NT command line editing

Command Line Editing The command line works like a single-line word processor, allowing you to edit any part of the command at any time before you press Enter to execute it, or Esc to erase it. The command line as typed can contain up to a maximum of 8,191 characters, and it can expand to a maximum of 16,383 characters after variable, function and alias substitution. See Command Line Length Limits. If you do not alter the default key mapping, you can use the following editing keys (among others) when you are typing a command (the words Ctrl and Shift mean to press the Ctrl or Shift key together with the other key named). The keystrokes listed here are merely default values, but most editing keys can be redefined via Command Line Editing Keys or General Input Keys directives. Cursor Movement Keys: Left Move the cursor left one character. Right Move the cursor right one character. Ctrl-Left Move the cursor left one word. Ctrl-Right Move the cursor right one word. Home Move the cursor to the beginning of the command. End Move the cursor to the end of the command. Insert and Delete Keys: Ins Toggle between insert and overstrike mode (cursor shape indicates mode). Del Delete the character under (or to the right of) the cursor, or the highlighted text. Bksp Delete the character to the left of the cursor, or the highlighted text. Ctrl-L Delete the word or partial word to the left of the cursor. Ctrl-R or Ctrl-Bksp Delete the word or partial word to the right of the cursor. Ctrl-Home Delete from the beginning of the line to the cursor. Ctrl-End Delete from the cursor to the end of the line. Esc Delete the entire line. Ctrl-V Paste the first line of text from the clipboard at the current cursor position. Ctrl-C (TC) Paste all of the text from the clipboard at the current cursor position. Highlighting (4NT): Shift-Right Highlight character right of cursor and move cursor Shift-Left Highlight character left of cursor and move cursor Shift-Home Highlight from cursor to beginning-of-line and move cursor Shift-End Highlight from cursor to end-of-line and move cursor Ctrl-Shift-Right Highlight word right of cursor and move cursor Ctrl-Shift-Left Highlight word left of cursor and move cursor Ctrl-Y Copy highlighted text to the clipboard Execution: Ctrl-K Save the current command line in the history list without executing it, and then clear the command line Ctrl-C or Ctrl-Break Cancel the command line without saving in the history list. (See also: the CUA directive). Enter Execute the command line. Miscellaneous: F1 Get help for the command (first argument on the line) Ctrl-F1 Get help for the current word. Ctrl-F Expand an alias. Ctrl-X Expand an environment variable. Ctrl-A Toggle between LFN and SFN. Alt-PgUp, Alt-PgDn, Alt-Home, Alt-End, Alt-Up, Alt-Down (4NT) Scroll the window within the console buffer. (Use the cursor pad keys, not the numeric keypad keys.) To highlight text on the command line use the mouse (TC), or hold down the Shift key and use any of the cursor movement keys listed above. You can select a complete word by placing the cursor anywhere in the word and double-clicking with the mouse. Once you have selected or highlighted text on the command line, any new text you type will replace the highlighted text. If you press Bksp or Del while there is text highlighted on the command line, the highlighted text will be deleted. While you are working at the prompt you can use the clipboard to copy text between the command processor and other applications (see Highlighting and Copying Text for additional details). You can also use Drag and Drop to paste a filename from another application onto the command line. Most of the command line editing capabilities are also available when the command processor prompts you for a line of input. For example, you can use the command line editing keys when DESCRIBE prompts for a file description, when INPUT prompts for input from an alias or batch file, or when LIST prompts you for a search string. If you want your input at the command line to be in a different color from the command processor's prompts or output, you can use the Colors tab of the configuration dialogs, or the InputColors directive in the .INI file. The command processor will prompt for additional command line text when you include the escape character as the very last character of a typed command line. The default escape character is the caret "^", but in general, it's best to use the symbolic "%=" EscapeChar representation for portability. For example: [c:\] echo The quick brown fox jumped over the lazy %= More? sleeping dog. > alphabet Sometimes you may want to enter one of the command line editing keystrokes on the command line instead of performing the key's usual action. For example, suppose you have a program that requires a Ctrl-R character on its command line. Normally you couldn't type this keystroke at the prompt, because it would be interpreted as a "Delete word right" command. To get around this problem, use the special keystroke Alt-255. You enter Alt-255 by holding down the Alt key while you type 0255 on the numeric keypad, then releasing the Alt key. This forces the command processor to interpret the next keystroke literally and place it on the command line, ignoring any special meaning it would normally have as a command line editing or history keystroke. You can use Alt-255 to suppress the normal meaning of command line editing keystrokes even if they have been reassigned with key mapping directives in the .INI file, and Alt-255 itself can be reassigned with the CommandEscape directive. Alternative Keyboard Input Method: The method mentioned above for Alt-255 can be used to generate other characters. You must use the number keys on the numeric keypad, not the row of keys at the top of your keyboard. When this Alt + keypad approach is used in a Unicode environment, the command processor will assume that a 3-digit decimal value means an ASCII character, while a 4-digit decimal value mean a Unicode glyph. Make sure that your hardware, character set, code page and font all support the desired combination. Use caution with this method if you plan on manipulating the generated character in other Windows components. See the section on ASCII, Key Codes and ANSI X3.64 Commands for some additional information.

 

PythonPoint

http://www.reportlab.com/docs/pythonpoint.pdf python2.4-reportlab-accel C interface to acceleration python2.4-reportlab

 

Xfig Tutorial

xfig繪出向量圖形,而非是點陣圖,一直都不會,所以將過程記錄起來。

Mouse usage

滑鼠3鍵分屬不同的功能,左鍵(鍵1),中鍵(鍵2),右鍵(鍵3)。

繪製Box

按鍵1(corner point)移到要的位置,再按鍵1(final point),如果在Fill Style有設定,則此Box會填入色彩。但這樣的Box並不能轉角度,如果要作出轉角度的Box,就要用POLYGON

選定作出的box後,Update可將Fill Style中所設定的顏色,填入box中。

Click mouse button 1 (`corner point') at any corner of the rectangular box, and click mouse button 1 (`final point') again at the opposite corner.If area fill is specified by FILL STYLE, the box will be filled according to the setting.

A box created with this function can't be rotated by an arbitrary angle, only by multiples of 90 degrees. To create an arbitrarily rotatable rectangular box, you should use POLYGON (it may be easier to create non-rotated rectangle first and then rotate it by ROTATE). You may also use REGULAR POLYGON to create a rotated square.

Compound Objects

鍵1(tag object)選定物件,鍵2(tag region)拉出一個涵蓋所要物件的Box,鍵3(compound tag)完成

Glue selected objects and make them a COMPOUND object.

This is useful to move or copy some objects together at the same time. It is also possible to scale part of a figure by scaling a COMPOUND object after making part of the figure COMPOUND.

Clicking on an object with mouse button 1 (`tag object') will tag the object. Clicking one corner of a rectangular region with mouse button 2 (`tag region') and then clicking mouse button 2 (`final corner') again at the opposite corner of the rectangular region will tag all objects inside the region. After tagging all objects to be glued into a COMPOUND object, clicking mouse button 3 (`compound tagged') will glue those objects and make them a COMPOUND object.

If an already tagged object is selected by mouse button 1 or mouse button 2, that object will be untagged. If you want to remove all tags, change the mode temporarily to any other mode (e.g. "move object") except BREAK COMPOUND. The COMPOUND object may be separated into component objects by BREAK COMPOUND.

Copy object

鍵1(copy object)選擇要複製的物件,移動到適當的地方,再按鍵1(place object)系統會自動貼上物件,完成複製。

Select the object to be copied by clicking the object with mouse button 1 (`copy object'), and finish the copy operation by clicking mouse button 1 (`place object') again at the position to place the copy. If you want to restrict the movement to horizontal or vertical, use mouse button 2 (`horiz/vert copy') instead of mouse button 1. The operation may be canceled by clicking mouse button 3 (`cancel') in either case.

If you want to copy several objects at the same time, you may put them a COMPOUND object using GLUE COMPOUND.

By setting SMART-LINKS MODE, it is possible to copy the lines which touch the object as you move the object itself. This only works with POLYLINES (not splines) touching a BOX or ARC-BOX. It is also possible to make many copies in this mode, using ARRAY PLACEMENT. To do this, first set the number of copies to be created by setting NUMBER OF X COPIES and NUMBER OF Y COPIES. Then select the object to be copied by clicking the object with mouse button 1 (`copy object') or 2 (`constrained copy'), and specify the direction and distance to place the copies by clicking mouse button 2 (`array placement') after moving the mouse. Normally, objects will be placed on the array of NUMBER OF X COPIES and NUMBER OF Y COPIES, but when either of them is set 0 or 1, copies of specified number will be generated and they can be placed obliquely. For example, if the number of X copies is 3 and the number of Y copies is 0 or 1, the copied objects will be placed along the X direction at the same Y position as the original object.

Clicking an object with mouse button 3 (`copy to cut buf') will copy the object to the xfig cut buffer. The object copied into the xfig cut buffer may be inserted into the figure on the canvas using Paste Objects. This allows you to copy part of a figure to another figure. Any object in the xfig cut buffer will be overwritten when the new object is copied into the xfig cut buffer. To copy multiple objects into the xfig cut buffer, you must first put them into a COMPOUND object using GLUE COMPOUND.

Resources

  1. Xfig tutorials
  2. Drawing Box

 

jabber Howto

http://www.jabber.org/user/userguide/
http://status.jabber.org/

Jabber: steven@darwin.nchc.org.tw
ICQ: 143458524
M$N: jhshiau@yahoo.com

請大家同時開jabber & M$N,這樣,一個掛了,馬上可以用另外一個接手..因為有時候M$N掛了,你並不知道...別人要找你,卻沒辦法透過M$N找你..呵呵...人工的failover。為何要請各位有jabber帳號,就是要方便聯絡。如何方便?為何指定jabber ?

0. 就是不管Linux/M$ Windows都可以有client
1. 因為它是開放與分散式的架構,每個人都可以自己架server,然後各個server又可以互相連通。
不會掛一個站,幾千萬人跳腳...這也符合grid的精神...呵呵
2. 一個比較重要的,client可以跨平台,而且很多IM程式都可以支援。

3. Jabber另外一個好處是可以支援SSL/RSS,所以了,呵呵,如果開起來了,你講的咚咚,別人很難監控...M$N messenger沒有加密的機制,也不能外掛,sniffer這個程式可以輕易的監控別人的悄悄話,但是用gaim可以解決這個問題。

gaim下如何加密(適用M$N messenger, Jabber, ICQ, Yahoo...):
1.先安裝 gaim (download from http://gaim.sf.net)
2.再安裝這個 http://gaim-encryption.sourceforge.net/
3.然後開啟gaim->工具->偏好設定->模組清單->gaim-encryption勾起來
4.然後在對話的時候,右下角有一個鎖,本來是開的,你可以把他鎖上

如 http://gaim-encryption.sourceforge.net/conversation.html How do I use the same key on multiple machines? In Windows, "C:\Documents and Settings\username\Application Data\.gaim\"

三個檔案
1. private keys id.priv. 
2. Your public keys id. 
3. The public keys that you have "accepted" are in known_keys.

Each key is on its own line, and starts with the account name. Cut and paste the keys you want to copy (in both id.priv and id). Or, copy those entire files (but make sure to get the permissions right on them! Gaim-Encryption won't use key files that are world-writable, or private key files that are world-readable).

4. 有一台jabber server在中心,連線速度快。

M$N不是一個好東西,M$壟斷一切。哪天M$N獨大之後,要收錢了,你就要轉換一堆朋友的帳號,然後,可能為了怕麻煩,就付錢而不想轉換到其他的,呵呵講了這麼多,就是麻煩各位,同時開啟Jabber & M$N...其實,好不好用在於習慣。

jabber用戶端程式其中一個是gaim,可以在這裡下載http://gaim.sourceforge.net/downloads.php

然後用gaim這個程式到這裡註冊:

帳號清單->新增->通訊協定選Jabber ->伺服器選jabber
通訊協定:jabber
帳號: 你的帳號,例如JohnAdams

伺服器: jabber.org
Resource: Gaim
然後就按註冊,應該就會跳出"註冊新的Jabber帳戶"

伺服器的話,還有其他地方可以選,你可以查看這裡:
http://www.jabber.org/network,中心也有一台,darwin.nchc.org.tw

5. google talk也使用jabber了
http://www.google.com/support/talk/bin/answer.py?answer=24073

This page is powered by Blogger. Isn't yours?