摘要: ProblemI got a "Latex error" when try to use view comamnd in Sage 5.2.I've already installed (a lot of, I'm not familar with TeX) texlive, and I can compile tex code manually.Reason:dvipng missing.Sage use dvipng to ensure(maybe other purpose) the generated dvi file -- output of la 阅读全文
posted @ 2012-08-19 07:15 Aeol Kong 阅读(135) 评论(0) 推荐(0)
摘要: 1. about SageSage is a free open-source mathematics software system licensed under the GPL. It combines the power of many existing open-source packages into a common Python-based interface.2.install(linux) Download tar from sage website, extract to destination folder, then run ./sage.3. 3.color on t 阅读全文
posted @ 2012-08-19 06:41 Aeol Kong 阅读(161) 评论(0) 推荐(0)
摘要: RangeRange property and shortcut referencesApplication.Range("B2")Range("B2")Range("A1:D10")Range("A1:A10, C1:C10, E1:E10")Range("A1", "D10")Range("Name")Range("A1", Range("Name"))'Shortcut:[B2][A1:D10][A1: 阅读全文
posted @ 2012-02-02 15:17 Aeol Kong 阅读(1094) 评论(0) 推荐(0)
摘要: The Workbooks CollectionSub ActivateWorkbook1() Dim sFullName As String Dim sFileName As String Dim wkb As Workbook sFullName = “C:\Data\SalesData1.xlsx” sFileName = sGetFileName(sFullName) If bIsWorkbookOpen(sFileName) Then Set wkb = Workbooks(sFileName) wkb.Activate Else Set wkb = Workbooks.Ope... 阅读全文
posted @ 2012-01-18 15:03 Aeol Kong 阅读(743) 评论(0) 推荐(0)
摘要: The Active Properties ActiveCell ActiveChart ActivePrinter ActiveSheet ActiveWindow ActiveWorkbook Selection Display Alerts Application.DisplayAlerts = False’operations... 阅读全文
posted @ 2012-01-17 12:36 Aeol Kong 阅读(481) 评论(0) 推荐(0)
摘要: os.madedirs:os.makedirs(path, mode=0o777, exist_ok=False)Recursive directory creation function. Like mkdir(), but makes all intermediate-level directories needed to contain the leaf directory. If the target directory with the same mode as specified already exists, raises an OSError exception if exis 阅读全文
posted @ 2011-11-18 12:32 Aeol Kong 阅读(264) 评论(0) 推荐(0)
摘要: Notes on argparse 阅读全文
posted @ 2011-11-17 12:59 Aeol Kong 阅读(312) 评论(0) 推荐(0)
摘要: Install kernel-headers and kernel-devel in Fedora:Suggestion: first update your system. In case that you installed the latest kernel but a older one is in use.yum updateyum install kernel-headers kernel-develOr, tell which kernel you want to install by:yum install kernel-devel-`uname -r` kernel-head 阅读全文
posted @ 2011-11-17 10:19 Aeol Kong 阅读(178) 评论(0) 推荐(0)
摘要: When installing some supported packages in python3.2.2, usually got a error: (cannot remember clearly but like array object or so)Try to change the following file:%python%/Lib/distutils/command/build_scripts.py line 15:first_line_re = re.compile(b'^#!.*python[0-9.]*([ \t].*)?$')to:first_line 阅读全文
posted @ 2011-11-14 14:53 Aeol Kong 阅读(181) 评论(0) 推荐(0)
摘要: Tuples:T = (1, 2, 3, 4)len(T)T + (5, 6)T.index(4)T.count(4)#Tuples are immutableSets:T = (1, 2, 3, 4)len(T)T + (5, 6)T.index(4)T.count(4)#Tuples are immutableFractions:from fractions import Fractionf = Fraction(2, 3)f+1f + Fraction(1, 2)Types:L = [2, 3, 4]type(L) #<class 'list'> for 3. 阅读全文
posted @ 2011-10-28 17:27 Aeol Kong 阅读(200) 评论(0) 推荐(0)