* Bug: Cannot export this file as HTML. [8.2.6 (8.2.6-18-gaaae4a-elpa @ /home/kuanyui/.emacs.d/elpa/org-20140512/)]
@ 2014-05-12 13:23 kuanyui
0 siblings, 0 replies; 3+ messages in thread
From: kuanyui @ 2014-05-12 13:23 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 304 bytes --]
I encountered a strange question, that this file cannot be exported by
org-mode's HTML exporter, which just return "Wrong type argument:
stringp nil". But I cannot find out where the point is. (And, all the
other files can be outputed without any question.)
I attached this file for reproducing issue.
[-- Attachment #2: The org file. --]
[-- Type: text/plain, Size: 16485 bytes --]
* 第一部份
** What is the IP address and TCP port number used by the client computer (source) that is transferring the file to gaia.cs.umass.edu?
#+BEGIN_QUOTE
To answer this question, it ’ s probably easiest to select an HTTP message and explore the details of the TCP packet used to carry this HTTP message, using the “ details of the selected packet header window ” (refer to Figure 2 in the “ Getting Started with Wireshark ” Lab if you ’ re uncertain about the Wireshark windows.
#+END_QUOTE
Source: 192.168.0.103:54131
: Source: 192.168.0.103 (192.168.0.103)
: Destination: 128.119.245.12 (128.119.245.12)
: Transmission Control Protocol, Src Port: 54131 (54131), Dst Port: http (80), Seq: 1, Ack: 1, Len: 633
** What is the IP address of gaia.cs.umass.edu? On what port number is it sending and receiving TCP segments for this connection?
(輸出同上)
Distination: 128.119.245.12:80
** What is the IP address and TCP port number used by your client computer (source) to transfer the file to gaia.cs.umass.edu?
Source: 192.168.0.103:54131
Destination: 128.119.245.12:80
(這題想問的跟第一題有什麼不同的地方?)
* 第二部份
** What is the sequence number of the TCP SYN segment that is used to initiate the TCP connection between the client computer and gaia.cs.umass.edu? What is it in the segment that identifies the segment as a SYN segment?
TCP SYN 的 SeqNum 為 0;上面寫著[SYN, ACK]。
#+BEGIN_EXAMPLE
12 0.484590000 128.119.245.12 192.168.0.103 TCP 76 http > 54131 [SYN, ACK] Seq=0 Ack=1 Win=5792 Len=0 MSS=1460 SACK_PERM=1 TSval=1687806537 TSecr=883895839 WS=128
...
Transmission Control Protocol, Src Port: 54131 (54131), Dst Port: http (80), Seq: 0, Len: 0
Source port: 54131 (54131)
Destination port: http (80)
[Stream index: 0]
Sequence number: 0 (relative sequence number)
Header length: 40 bytes
Flags: 0x002 (SYN) # SYN 的 Flag 底加
Window size value: 29200
[Calculated window size: 29200]
Checksum: 0x227d [validation disabled]
Options: (20 bytes), Maximum segment size, SACK permitted, Timestamps, No-Operation (NOP), Window scale
#+END_EXAMPLE
** What is the sequence number of the SYNACK segment sent by gaia.cs.umass.edu to the client computer in reply to the SYN?
Seq 為 0;
*** What is the value of the ACKnowledgement field in the SYNACK segment? How did gaia.cs.umass.edu determine that value?
ACK 為 1。SYNACK = 前一個封包的 Seq +1
#+BEGIN_QUOTE
「第 3 個封包開始的 Seq = 前 1 個 received 封包的 ACK(「我已經收到『到 ACK num 為止的長度』的封包惹」)」?
「第 4 個封包開始的 ACK = 前 1 個 received 封包的 Seq + 長度」
#+END_QUOTE
| 序号 | 方向 | seq | ack | |
|------+------+------------------------+---------------+----------|
| 1 | A->B | 10000(隨機產生?[fn:4]) | 0 | SYN |
| 2 | A<-B | 20000(隨機產生?) | 10000+1=10001 | SYN, ACK |
| 3 | A->B | 10001 | 20000+1=20001 | ACK |
表格引用自[[http://hi.baidu.com/jialy1987/item/a4fe100f9bdef138f3eafca9][TCP 三次握手连接及 seq 和 ack 号的正确理解]]
| 序号 | 方向 | seq | ack | size |
|------+------+-------+--------------------------------------------------+------|
| 23 | A->B | 40000 | 70000 | 1514 |
| 24 | B->A | 70000 | 40000+1514-54=41460 # 等等要扣掉 54 嗎?![fn:5] | 54 |
| 25 | A->B | 41460 | 70000+54-54=70000 | 1514 |
| 26 | B->A | 70000 | 41460+1514-54=42920 | 54 |
表格引用自[[http://hi.baidu.com/jialy1987/item/a4fe100f9bdef138f3eafca9][TCP 三次握手连接及 seq 和 ack 号的正确理解]]
*** What is it in the segment that identifies the segment as a SYNACK segment?
封包中包含 SYN flag,如下:
#+BEGIN_EXAMPLE
Transmission Control Protocol, Src Port: 54131 (54131), Dst Port: http (80), Seq: 0, Len: 0
Source port: 54131 (54131)
Destination port: http (80)
[Stream index: 0]
Sequence number: 0 (relative sequence number)
Header length: 40 bytes
Flags: 0x002 (SYN)
000. .... .... = Reserved: Not set
...0 .... .... = Nonce: Not set
.... 0... .... = Congestion Window Reduced (CWR): Not set
.... .0.. .... = ECN-Echo: Not set
.... ..0. .... = Urgent: Not set
.... ...0 .... = Acknowledgment: Not set
.... .... 0... = Push: Not set
.... .... .0.. = Reset: Not set
.... .... ..1. = Syn: Set
#+END_EXAMPLE
** What is the sequence number of the TCP segment containing the HTTP POST command?
封包 No. 14,他的 sequence number 是 1。
封包 No. 168 也有包含 "POST" 一詞,sequence number 是 152050。
#+BEGIN_QUOTE
封包 No. 14 的 TCP segment data(633 bytes)內容是:
#+BEGIN_EXAMPLE
POST /wireshark-labs/lab3-1-reply.htm HTTP/1.1
Host: gaia.cs.umass.edu
Connection: keep-alive
Content-Length: 152321
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: http://gaia.cs.umass.edu
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36 SUSE/34.0.1847.116
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryAKBJRyvCHAhbb6qs
Referer: http://gaia.cs.umass.edu/wireshark-labs/TCP-wireshark-file1.html
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
#+END_EXAMPLE
#+END_QUOTE
#+BEGIN_QUOTE
我不確定題目問的是哪一個[fn:2], *因為 No. 168 也有包含 "POST" 一詞(sequence number 是 152050)* ,原本以為題目提到的"the TCP segment containing the HTTP POST"就是這個,但:
1. *Wireshark 在顯示 No.168 時,螢幕最下方多了一個* =Reassembled TCP= *的分頁* 。
2. 而且封包 No. 168 在 Wireshark 裡雖然可以看到整個上傳的 txt 檔完整內容,然而 No.168 這個 *封包本身的的 length 似乎卻只有 973* 。
3. 接在 No. 168 後面出現的封包只剩下一堆 ACK 和最後一個 HTTP 200,而沒有任何實際在「上傳 txt 檔案」的封包。
所以 No. 168 只是 *整個 POST 都結束了才出現的最後一個封包* 、用來告訴對方「我剛剛傳的『第#14, #15,#16.......個封包』是要接在一起的」這樣嗎?
我不太確定自己有沒有搞錯,以下為 wireshark 中,No. 168 的 TCP 欄位顯示的東西:
#+BEGIN_EXAMPLE
168 1.452460000 192.168.0.103 128.119.245.12 HTTP 973 POST /wireshark-labs/lab3-1-reply.htm HTTP/1.1 (text/plain)
Transmission Control Protocol, Src Port: 54131 (54131), Dst Port: http (80), Seq: 152050, Ack: 1, Len: 905
110 Reassembled TCP Segments (152954 bytes): #14(633), #15(1402), #16(1402), #17(1402), #19(1402), #20(1402), #22(1402), #23(1402), #25(1402), #26(1402), #28(1402), #29(1402), #30(1402), #31(1402), #32(1402), #34(1402), #36(1402), #37(1402)......
......
Segment count: 110
Reassembled TCP length: 152954
Reassembled TCP Data: 504f5354202f77697265736861726b2d6c6162732f6c6162...
#+END_EXAMPLE
然後下面是 No. 168 整個封包在 wireshark 裡看到的東西:
#+BEGIN_EXAMPLE
No. Time Source Destination Protocol Length Info
168 1.452460000 192.168.0.103 128.119.245.12 HTTP 973 POST /wireshark-labs/lab3-1-reply.htm HTTP/1.1 (text/plain)
....
Transmission Control Protocol, Src Port: 54131 (54131), Dst Port: http (80), Seq: 152050, Ack: 1, Len: 905
Source port: 54131 (54131)
Destination port: http (80)
[Stream index: 0]
Sequence number: 152050 (relative sequence number) #sequence number 在這
[Next sequence number: 152955 (relative sequence number)]
Acknowledgment number: 1 (relative ack number)
Header length: 32 bytes
....
Hypertext Transfer Protocol
POST /wireshark-labs/lab3-1-reply.htm HTTP/1.1\r\n
[Expert Info (Chat/Sequence): POST /wireshark-labs/lab3-1-reply.htm HTTP/1.1\r\n]
[Message: POST /wireshark-labs/lab3-1-reply.htm HTTP/1.1\r\n]
[Severity level: Chat]
[Group: Sequence]
Request Method: POST
Request URI: /wireshark-labs/lab3-1-reply.htm
Request Version: HTTP/1.1
Host: gaia.cs.umass.edu\r\n
Connection: keep-alive\r\n
Content-Length: 152321\r\n
[Content length: 152321]
Cache-Control: max-age=0\r\n
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\r\n
Origin: http://gaia.cs.umass.edu\r\n
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36 SUSE/34.0.1847.116\r\n
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryAKBJRyvCHAhbb6qs\r\n
Referer: http://gaia.cs.umass.edu/wireshark-labs/TCP-wireshark-file1.html\r\n
Accept-Encoding: gzip,deflate,sdch\r\n
Accept-Language: en-US,en;q=0.8\r\n
\r\n
[Full request URI: http://gaia.cs.umass.edu/wireshark-labs/lab3-1-reply.htm]
[HTTP request 1/1]
[Response in frame: 203]
MIME Multipart Media Encapsulation, Type: multipart/form-data, Boundary: "----WebKitFormBoundaryAKBJRyvCHAhbb6qs"
[Type: multipart/form-data]
First boundary: ------WebKitFormBoundaryAKBJRyvCHAhbb6qs\r\n
Encapsulated multipart part: (text/plain)
Content-Disposition: form-data; name="file"; filename="alice.txt"\r\n
Content-Type: text/plain\r\n\r\n
Line-based text data: text/plain
ALICE'S ADVENTURES IN WONDERLAND\r\n
\r\n
Lewis Carroll\r\n
\r\n
THE MILLENNIUM FULCRUM EDITION 3.0\r\n
\r\n
...
(以下為上傳的 txt 內容)
#+END_EXAMPLE
#+END_QUOTE
** Consider the TCP segment containing the HTTP POST as the first segment in the TCP connection. What are the sequence numbers of the first six segments in the TCP connection (including the segment containing the HTTP POST)?
*** At what time was each segment sent? When was the ACK for each segment received?
| 編號 | 送出時間 | 收到 ACK 時間 | RTT | length |
|------+-------------------+---------------+----------+--------|
| 14 | 0.484984000 | 0.716423000 | 0.231439 | 701 |
| 15 | 0.485395000 | 0.716500000 | 0.231105 | 1470 |
| 16 | 0.485438000 | 0.719277000 | 0.233839 | 1470 |
| 17 | 0.485471000 | 0.719443000 | 0.233972 | 1470 |
| 18 | (此為 #14 的 ACK) | | | 68 |
| 19 | 0.716467000 | 0.953501000 | 0.237034 | 1470 |
| 20 | 0.716500000 | 0.953607000 | 0.237107 | 1470 |
#+TBLFM: $4=$3-$2
#+BEGIN_EXAMPLE
14 0.484984000 192.168.0.103 128.119.245.12 TCP 701 [TCP segment of a reassembled PDU]
15 0.485395000 192.168.0.103 128.119.245.12 TCP 1470 [TCP segment of a reassembled PDU]
16 0.485438000 192.168.0.103 128.119.245.12 TCP 1470 [TCP segment of a reassembled PDU]
17 0.485471000 192.168.0.103 128.119.245.12 TCP 1470 [TCP segment of a reassembled PDU]
18 0.716423000 128.119.245.12 192.168.0.103 TCP 68 http > 54131 [ACK] Seq=1 Ack=634 Win=7168 Len=0 TSval=1687806769 TSecr=883896072 #14 的 ACK
19 0.716467000 192.168.0.103 128.119.245.12 TCP 1470 [TCP segment of a reassembled PDU]
20 0.716500000 192.168.0.103 128.119.245.12 TCP 1470 [TCP segment of a reassembled PDU]
# 至此行的 #14~17 與 #19, #20 為題目要的前 6 個 TCP connection segments
21 0.719164000 128.119.245.12 192.168.0.103 TCP 68 http > 54131 [ACK] Seq=1 Ack=2036 Win=9984 Len=0 TSval=1687806770 TSecr=883896073 #15 的 ACK
22 0.719215000 192.168.0.103 128.119.245.12 TCP 1470 [TCP segment of a reassembled PDU]
23 0.719252000 192.168.0.103 128.119.245.12 TCP 1470 [TCP segment of a reassembled PDU]
24 0.719277000 128.119.245.12 192.168.0.103 TCP 68 http > 54131 [ACK] Seq=1 Ack=3438 Win=12928 Len=0 TSval=1687806770 TSecr=883896073 #16 的 ACK
25 0.719299000 192.168.0.103 128.119.245.12 TCP 1470 [TCP segment of a reassembled PDU]
26 0.719391000 192.168.0.103 128.119.245.12 TCP 1470 [TCP segment of a reassembled PDU]
27 0.719443000 128.119.245.12 192.168.0.103 TCP 68 http > 54131 [ACK] Seq=1 Ack=4840 Win=15872 Len=0 TSval=1687806772 TSecr=883896073 #17 的 ACK
28 0.719507000 192.168.0.103 128.119.245.12 TCP 1470 [TCP segment of a reassembled PDU]
29 0.719627000 192.168.0.103 128.119.245.12 TCP 1470 [TCP segment of a reassembled PDU]
30 0.719749000 192.168.0.103 128.119.245.12 TCP 1470 [TCP segment of a reassembled PDU]
31 0.719874000 192.168.0.103 128.119.245.12 TCP 1470 [TCP segment of a reassembled PDU]
32 0.719981000 192.168.0.103 128.119.245.12 TCP 1470 [TCP segment of a reassembled PDU]
33 0.953501000 128.119.245.12 192.168.0.103 TCP 68 http > 54131 [ACK] Seq=1 Ack=6242 Win=18688 Len=0 TSval=1687807006 TSecr=883896304 #19 的 ACK
34 0.953585000 192.168.0.103 128.119.245.12 TCP 1470 [TCP segment of a reassembled PDU]
35 0.953607000 128.119.245.12 192.168.0.103 TCP 68 http > 54131 [ACK] Seq=1 Ack=7644 Win=21632 Len=0 TSval=1687807006 TSecr=883896304 #20 的 ACK
#+END_EXAMPLE
*** Given the difference between when each TCP segment was sent, and when its acknowledgement was received.
看不懂這問題是什麼意思。不就送出的時間順序不一樣嗎?
從上面可以看出 ACK 送來的時間非常不固定。不過我沒有去一個個看 ACK 有沒有也跟送出的時間順序一樣都完美的按照順序送回來。
*** What is the RTT value for each of the six segments?
見前面的表格。
*** What is the EstimatedRTT value (see page 249 in text) after the receipt of each ACK?
0.23317837261962887
#+BEGIN_SRC elisp
(let ((ERTT 0.231439))
(mapcar (lambda (x)
(setq ERTT (+ (* RTT 0.875) (* x 0.125))))
'(0.231105 0.233839 0.233972 0.237034 0.237107))
ERTT)
=> 0.23317837261962887
#+END_SRC
*** What is the length of each of the first six TCP segments?
見前面表格。
*** What is the minimum amount of available buffer space advertised at the received for the entire trace? Does the lack of receiver buffer space ever throttle the sender?
1. 第一個問題救命啊不知道該從哪裡看。[fn:1]
2. 第二個問題是:沒有,因為資料傳輸過程中封包長度一直都是 1470 沒有因為 buffer 被塞爆而縮小過。[fn:3]
*** Are there any retransmitted segments in the trace file? What did you check for (in the trace) in order to answer this question?
沒有,因為 wireshark 吐出來的整串封包清單都沒有重複的 ACK num。
*** How much data does the receiver typically acknowledge in an ACK? Can you identify cases where the receiver is ACKing every other received segment (see Table 3.2 on page 257 in the text).
1. 1460。
2. 我看不懂這題指的"*every other* received segment"到底在說什麼。[fn:6]
*** What is the throughput (bytes transferred per unit time) for the TCP connection? Explain how you calculated this value.
97842.160 bytes/sec;直接看 Wireshark: Statictics => Summary => Avg. bytes/sec(算作弊嗎?)
整個 dump 出來的檔案大小 175184 bytes;從 SYN 開始直到收到最後一個 ACK 共歷時 1.716571 秒
175184 / 1.716571 = 102054.619355 #呃...我不太確定該怎麼算,不過跟上面的值好像蠻接近的。
* 第三部份
** Use the Time-Sequence-Graph(Stevens) plotting tool to view the sequence number versus time plot of segments being sent from the client to the gaia.cs.umass.edu server. Can you identify where TCP's slowstart phase begins and ends, and where congestion avoidance takes over? Comment on ways in which the measured data differs from the idealized behavior of TCP that we've studied in the text.
** Answer each of two questions above for the trace that you have gathered when you transferred a file from your computer to gaia.cs.umass.edu
* Footnotes
[fn:1]
[fn:2]
[fn:3] 到底 buffer 是限制封包長度還是數量啊
[fn:4] 隨機的?
[fn:5] 需要扣掉嗎?!
[fn:6]
[-- Attachment #3: Type: text/plain, Size: 16830 bytes --]
kuanyui 20140512 GMT+8
Emacs : GNU Emacs 24.3.90.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.4)
of 2014-04-13 on kuanyui-laptop.site
Package: Org-mode version 8.2.6 (8.2.6-18-gaaae4a-elpa @ /home/kuanyui/.emacs.d/elpa/org-20140512/)
current state:
==============
(setq
org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
outline-minor-mode-hook '(wikipedia-outline-magic-keys)
org-latex-classes '(("article"
"\n\\documentclass[12pt,a4paper]{article}\n\\usepackage[margin=2cm]{geometry}\n\\usepackage{fontspec}\n\\setromanfont{cwTeXMing}\n\n\\usepackage{etoolbox} % Quote部份的字型設定\n\\newfontfamily\\quotefont{cwTeXFangSong}\n\\AtBeginEnvironment{quote}{\\quotefont\\small}\n\n\\setmonofont[Scale=0.9]{Courier} % 等寬字型 [FIXME] Courier 中文會爛掉!\n\\font\\cwSong=''cwTeXFangSong'' at 10pt\n%\\font\\cwHei=''cwTeXHeiBold'' at 10p %不知為何會爆掉\n\\font\\cwYen=''cwTeXYen'' at 10pt\n\\font\\cwKai=''cwTeXKai'' at 10pt\n\\font\\cwMing=''cwTeXMing'' at 10pt\n\\font\\wqyHei=''文泉驛正黑'' at 10pt\n\\font\\wqyHeiMono=''文泉驛等寬正黑'' at 10pt\n\\font\\wqyHeiMicro=''文泉驛微米黑'' at 10pt\n\\XeTeXlinebreaklocale ``zh''\n\\XeTeXlinebreakskip = 0pt plus 1pt\n\\linespread{1.36}\n\n\\usepackage{multicol}\n\n% [FIXME] ox-latex 的設計不良導致hypersetup必須在這裡插入\n\\usepackage{hyperref}\n\\hypersetup{\n colorlinks=true, %把紅框框移掉改用字體顏色不同來顯示連結\n linkcolor=[rgb]{0,0.37,0.53},\n citecolor=[rgb]{0,0.47,0.68},\n filecolor=[rgb]{0,0.37,0.53},\n urlcolor=[rgb]{0,0.37,0.53},\n pagebackref=true,\n linktoc=all,}\n"
("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
("beamer"
"\n\\documentclass[presentation]{beamer}\n\\usepackage{fontspec}\n\\setromanfont{wqyHeiMicro}\n\n\\setmonofont[Scale=0.9]{Courier} % 等寬字型 [FIXME] Courier 中文會爛掉!\n\\font\\cwSong=''cwTeXFangSong'' at 10pt\n%\\font\\cwHei=''cwTeXHeiBold'' at 10p %不知為何會爆掉\n\\font\\cwYen=''cwTeXYen'' at 10pt\n\\font\\cwKai=''cwTeXKai'' at 10pt\n\\font\\cwMing=''cwTeXMing'' at 10pt\n\\font\\wqyHei=''文泉驛正黑'' at 10pt\n\\font\\wqyHeiMono=''文泉驛等寬正黑'' at 10pt\n\\font\\wqyHeiMicro=''文泉驛微米黑'' at 10pt\n\\XeTeXlinebreaklocale ``zh''\n\\XeTeXlinebreakskip = 0pt plus 1pt\n\\linespread{1.36}\n\n"
("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
)
org-latex-default-packages-alist '(("" "hyperref" nil) ("AUTO" "inputenc" t) ("" "fixltx2e" nil) ("" "graphicx" t) ("" "longtable" nil)
("" "float" nil) ("" "wrapfig" nil) ("" "rotating" nil) ("normalem" "ulem" t) ("" "amsmath" t)
("" "textcomp" t) ("" "marvosym" t) ("" "wasysym" t) ("" "amssymb" t) "\\tolerance=1000")
org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook)
org-occur-hook '(org-first-headline-recenter)
org-metaup-hook '(org-babel-load-in-session-maybe)
org-html-format-drawer-function '(lambda (name contents) contents)
org-log-done 'time
org-latex-format-inlinetask-function 'ignore
org-confirm-shell-link-function 'yes-or-no-p
org-image-actual-width '(300)
org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
org-latex-pdf-process '("xelatex -interaction nonstopmode -output-directory %o %f" "xelatex -interaction nonstopmode -output-directory %o %f"
"xelatex -interaction nonstopmode -output-directory %o %f")
org-file-apps '((auto-mode . emacs) ("\\.mm\\'" . default) ("\\.x?html?\\'" . "xdg-open %s") ("\\.pdf\\'" . "kde-open %s")
("\\.jpg\\'" . "kde-open %s"))
org-agenda-custom-commands '(("w" todo "STARTED")
("D" "Daily Action List"
((agenda ""
((org-agenda-ndays 1) (org-agenda-sorting-strategy (quote ((agenda time-up priority-down tag-up))))
(org-deadline-warning-days 0))
)
)
)
("P" "Projects" ((tags "Project")))
(" " "Agenda"
((todo "STARTED"
((org-agenda-overriding-header "What you should doing right now!") (org-tags-match-list-sublevels nil)))
(todo "WAITING"
((org-agenda-overriding-header "Things waiting on the perenially disorganised masses")
(org-tags-match-list-sublevels nil))
)
(agenda "Timetable, diary & date tasks" ((org-agenda-ndays 7) (org-deadline-warning-days 45)))
(todo ""
((org-agenda-overriding-header "All other TODOs") (org-agenda-todo-ignore-scheduled t)
(org-agenda-todo-ignore-deadlines t) (org-agenda-todo-ignore-with-date t) (org-agenda-todo-ignore-timestamp t)
(org-agenda-skip-function (quote (ky/org-agenda-skip-tag "Project"))))
)
(tags-todo "Project" ((org-agenda-overriding-header "Projects' TODOs"))))
)
("d" "Upcoming deadlines" agenda ""
((org-agenda-entry-types (quote (:deadline))) (org-agenda-ndays 1) (org-deadline-warning-days 60)
(org-agenda-time-grid nil))
)
("c" "Weekly schedule" agenda ""
((org-agenda-ndays 7) (org-agenda-repeating-timestamp-show-all t)
(org-agenda-skip-function (quote (org-agenda-skip-entry-if (quote deadline) (quote scheduled)))))
)
("P" "Printed agenda"
((agenda ""
((org-agenda-ndays 7) (org-agenda-start-on-weekday nil) (org-agenda-repeating-timestamp-show-all t)
(org-agenda-entry-types (quote (:timestamp :sexp))))
)
(agenda ""
((org-agenda-ndays 1) (org-deadline-warning-days 7) (org-agenda-todo-keyword-format "[ ]")
(org-agenda-scheduled-leaders (quote ("" ""))) (org-agenda-prefix-format "%t%s"))
)
(todo "TODO"
((org-agenda-prefix-format "[ ] %T: ") (org-agenda-sorting-strategy (quote (tag-up priority-down)))
(org-agenda-todo-keyword-format "") (org-agenda-overriding-header "\nTasks by Context\n------------------\n"))
)
)
((org-agenda-with-colors nil) (org-agenda-compact-blocks t) (org-agenda-remove-tags t) (ps-number-of-columns 2)
(ps-landscape-mode t))
("~/agenda.ps"))
)
org-agenda-block-separator 45
org-return-follows-link t
org-latex-format-headline-function 'org-latex-format-headline-default-function
org-default-notes-file "~/org/notes.org"
org-capture-templates '(("t" "Todo" entry (file+headline (concat org-directory "/agenda/Todo.org") "Todo") "** TODO %? %^G\n %i")
("s" "School" entry (file+headline (concat org-directory "/agenda/School.org") "School") "** TODO %?\n %i")
("b" "Buy" entry (file+headline (concat org-directory "/agenda/Todo.org") "Buy") "** TODO %?\n %i")
("r" "Reading" entry (file+headline (concat org-directory "/agenda/Reading.org") "Reading") "** %? %i :Reading:")
("d" "Diary" entry (file+datetree (concat org-directory "/diary/diary.org")) "* %^{Description: } %^g \n %i %?\n"
:clock-in t :clock-keep t)
("e" "Event" entry (file+headline (concat org-directory "/agenda/Event.org") "Event")
"** %? %^g\n%^{Event's date&time? }T\n %i")
("c" "calfw2org" entry (file nil) "** %?\n %(cfw:org-capture-day)"))
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-latex-format-drawer-function '(lambda (name contents) contents)
org-odt-format-headline-function 'ignore
org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-babel-pre-tangle-hook '(save-buffer)
org-log-redeadline t
org-agenda-dim-blocked-tasks nil
org-mode-hook '((lambda nil (pangu-spacing-mode 1) (set (make-local-variable (quote pangu-spacing-real-insert-separtor)) t))
(lambda nil (define-key org-mode-map (kbd "C-c SPC") (quote ace-jump-word-mode))
(define-key org-mode-map (kbd "C-c C-e") (quote org-export-dispatch)))
org-clock-load (lambda nil (setq truncate-lines nil))
#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5]
#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5]
org-babel-result-hide-spec org-babel-hide-all-hashes)
org-refile-targets '(("Todo.org" :maxlevel . 1) ("School.org" :maxlevel . 1) ("Learning.org" :maxlevel . 1) ("Project.org" :maxlevel . 2)
("Event.org" :maxlevel . 1) ("Reading.org" :maxlevel . 1))
org-ascii-format-drawer-function '(lambda (name contents width) contents)
org-odt-format-inlinetask-function 'ignore
org-clock-persist 'history
org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe)
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-hide-inline-tasks org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
org-log-reschedule 'note
org-todo-keywords '((type "TODO(t!)" "STARTED(s!)" "WAITING(w!)" "APPT(a!)" "|" "DONE(d!)") (type "PROJECT(p!)" "|" "DONE(d!)")
(type "|" "CANCELLED(x@)" "DEFERRED(f@)"))
org-babel-tangle-lang-exts '(("latex" . "tex") ("emacs-lisp" . "el"))
org-confirm-elisp-link-function 'yes-or-no-p
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-log-into-drawer t
org-odt-format-drawer-function '(lambda (name contents) contents)
org-html-head "<style type=\"text/css\">\n* {\n font-family:WenQuanYi Micro Hei,Microsoft JhengHei,Helvetica,sans-serif;\n color: #555555;\n }\n\nbody {\n text-align: center;\n background-color: hsl(45,30%,80%);\n background-image:\n repeating-linear-gradient(120deg, rgba(255,255,255,.1), rgba(255,255,255,.1) 2px, transparent 1px, transparent 60px),\n repeating-linear-gradient(60deg, rgba(255,255,255,.1), rgba(255,255,255,.1) 2px, transparent 1px, transparent 60px),\n linear-gradient(60deg, rgba(0,0,0,.06) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.06) 75%, rgba(0,0,0,.06)),\n linear-gradient(120deg, rgba(0,0,0,.06) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.06) 75%, rgba(0,0,0,.06));\n background-size: 70px 120px;\n}\n\n#content {\n margin: 0px auto;\n width: 1200px;\n text-align:left;\n background-color: rgba(255, 255, 255, 1);\n border-radius: 7px 7px 0 0;\n box-shadow: 0 0 0.5em rgba(0,0,0,0.2);\n padding-bottom: 30px;\n}\n\n#postamble {\n position: relative;\n z-index: 1;\n font-size:0.8em;\n color: #ffffff !important;\n background-color: #555555 !important;\n margin: -1.2em auto 0;\n width: 1180px;\n background-color: #ffffff;\n border-radius: 0 0 7px 7px;\n padding: 30px 10px 10px 10px;\n box-shadow: 0 0 0.5em rgba(0,0,0,0.2);\n text-shadow: 0px -1px rgba(0, 0, 0, 0.3);\n\n background-color: #828282;\n background-image: radial-gradient(#707070 50%, transparent 51%);\n background-size: 4px 4px;\n}\n#postamble p {\n margin: 0;\n color: #eeeeee !important;\n}\n\n#postamble a {\n color: #5fafd7;\n}\n\n#table-of-contents {\n margin: 0 30px;\n padding: 0 15px 10px 15px;\n border-top: 4px solid #D4DDE0;\n border-bottom: 4px solid #D4DDE0;\n background-color: #E9EEF1;\n text-shadow: 0 1px 0 hsl(202,100%,100%);\n}\n\n#table-of-contents h2 {\n color: hsl(202,40%,52%);\n text-shadow: 0 1px 0 hsl(202,100%,100%);\n border-left: none;\n margin-left: 0;\n padding-left: 0;\n}\n\nimg {\n max-width:100%;\n max-height:100%;\n}\na {\n color: #005f87;\n text-decoration: none;\n}\n\na:hover {\n color: #005f87;\n text-decoration: underline;\n}\n\nh1 {\n color: #eeeeee;\n text-shadow: 0px -1px rgba(0, 0, 0, 0.5);\n font-family: Lato,Lucida Grande,LiHei Pro,WenQuanYi Micro Hei,Arial,sans-serif;\n font-weight: 400;\n margin-top: 0px;\n padding: 20px 0 10px 0;\n background-color: #828282;\n background-image: radial-gradient(#707070 50%, transparent 51%);\n background-size: 4px 4px;\n border-radius: 7px 7px 0 0;\n}\nh2 {\n color: #777;\n border-left: 5px solid #777;\n margin-left: -30px;\n padding-left: 25px;\n}\n\n.outline-2 { padding: 0px 30px; }\n.outline-3 { padding: 0px 30px; }\n\n.outline-text-2 { padding: 0px 0px; }\n.outline-text-3 { padding: 0px 0px; }\n.example { }\npre {\n border: 1pt solid #ddd;\n background-color: #f2f2f2;\n box-shadow: 0 0 1em rgba(0,0,0,0.05);\n border-radius:5px;\n padding: 5pt;\n font-family: courier, monospace;\n font-size: 90%;\n overflow:auto;\n margin: 0.5em 2em;\n}\n\npre.src:before {\n background-color: rgba(0, 0, 0, 0.5);\n color: #fff;\n border-radius: 5px;\n border: none;\n top: -10px;\n right: 10px;\n padding: 3px 7px;\n position: absolute;\n}\n\ncode {\n border: 1pt solid #ddd;\n background-color: #eee;\n padding: 0 3px;\n border-radius: 3px;\n position: relative;\n margin-top: -3px;\n font-family: courier, monospace;\n font-size: 80%;\n}\n\nblockquote {\n font-style:italic;\n background: hsl(44,80%,95%);\n border-left: 5px solid hsl(44,25%,70%);\n margin: 1.5em 2em;\n padding: 0.5em 10px 0.5em 4em;\n quotes: '\\201C''\\201D''\\2018''\\2019';\n}\nblockquote:before {\n color: #ccc;\n position: absolute;\n margin-top: -0.03em;\n margin-left: -1.3em;\n color: hsl(44,25%,85%);\n font-size: 5em;\n content: '\\201C' !important;\n}\nblockquote p {\n display: inline;\n font-family:'Times New Roman', Times, serif !important;\n}\nblockquote p a {\n font-family:'Times New Roman', Times, serif !important;\n }\n\n.done {\n background-color: #d7ff87;\n color: #008700;\n border: 1px solid #5faf00;\n border-radius: 3px;\n padding:0px 2px;\n top: -1px;\n position: relative;\n font-family:WenQuanYi Micro Hei,Microsoft JhengHei,Helvetica,sans-serif;\n font-weight: bold;\n font-size:0.8em;\n}\n.todo {\n background-color: #ffafaf;\n color: #a40000;\n border: 1px solid #dd0000;\n border-radius: 3px;\n padding:0px 2px;\n top: -1px;\n position: relative;\n font-family:WenQuanYi Micro Hei,Microsoft JhengHei,Helvetica,sans-serif;\n font-weight: bold;\n font-size:0.8em;\n}\n.tag { float:right; color:red; }\n\n</style>"
org-html-format-headline-function 'ignore
org-html-format-inlinetask-function 'ignore
org-agenda-files '("~/org/agenda/Event.org" "~/org/agenda/School.org" "~/org/agenda/Reading.org" "~/org/agenda/Project.org"
"~/org/agenda/Learning.org" "~/org/agenda/Todo.org")
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-src-fontify-natively t
)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug: Cannot export this file as HTML. [8.2.6 (8.2.6-18-gaaae4a-elpa @ /home/kuanyui/.emacs.d/elpa/org-20140512/)]
@ 2014-05-12 16:14 kuanyui
2014-05-12 20:22 ` Nicolas Goaziou
0 siblings, 1 reply; 3+ messages in thread
From: kuanyui @ 2014-05-12 16:14 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 429 bytes --]
I found the question, take an easy example:
* Title1
*** Title2
Test[fn:6]
* Footnotes
[fn:6]
If there's a footnote is empty (or just following a space or so), the
exporter will just return "org-trim: Wrong type argument: stringp, nil"
I think this is a bug because the exporter should told user "there're some
footnotes are empty" instead of an human-unreadable error message.
kuanyui 20140513 0014 GMT+8
[-- Attachment #2: Type: text/html, Size: 556 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug: Cannot export this file as HTML. [8.2.6 (8.2.6-18-gaaae4a-elpa @ /home/kuanyui/.emacs.d/elpa/org-20140512/)]
2014-05-12 16:14 kuanyui
@ 2014-05-12 20:22 ` Nicolas Goaziou
0 siblings, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2014-05-12 20:22 UTC (permalink / raw)
To: kuanyui; +Cc: emacs-orgmode@gnu.org
Hello,
kuanyui <azazabc123@gmail.com> writes:
> I found the question, take an easy example:
>
> * Title1
> *** Title2
> Test[fn:6]
> * Footnotes
> [fn:6]
>
> If there's a footnote is empty (or just following a space or so), the
> exporter will just return "org-trim: Wrong type argument: stringp, nil"
This should be fixed. Thank you for reporting it.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-05-12 20:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-12 13:23 Bug: Cannot export this file as HTML. [8.2.6 (8.2.6-18-gaaae4a-elpa @ /home/kuanyui/.emacs.d/elpa/org-20140512/)] kuanyui
-- strict thread matches above, loose matches on Subject: below --
2014-05-12 16:14 kuanyui
2014-05-12 20:22 ` Nicolas Goaziou
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).