Source of Nothingness

* Menu

About | Profile | まとめ | オリジナル | xyzzy | あんてな | | buzz

* RandomNote について。

RandomNote について。

ChangeLog
Todo

* xyzzy lisp : format ~W

(format nil "~W" 'hoge)
"hoge"

* xyzzy lisp : format ~F

(format nil "~F" 123.45)
"123.45"
(format nil "~@F" 123.45)
"+123.45"
(format nil "~10F" 123.45)
"    123.45"
(format nil "~10,5F" 123.45)
" 123.45000"
(format nil "~10,5,2F" 123.45)
"12345.00000"
(format nil "~10,5,2,'#F" 123.45)
"##########"
(format nil "~10,,,,'$F" 123.45)
"$$$$123.45"

* xyzzy lisp : format ~G

* xyzzy lisp : format ~E

(format nil "~E" 123.45)
"1.2345e+2"
(format nil "~@E" 123.45)
"+1.2345e+2"
(format nil "~10E" 123.45)
" 1.2345e+2"
(format nil "~10,5E" 123.45)
"1.23450e+2"
(format nil "~10,5,2E" 123.45)
"1.23450e+02"
(format nil "~10,5,2,3E" 123.45)
"123.450e+00"
(format nil "~10,5,2,3,'%E" 123.45)
"%%%%%%%%%%"
(format nil "~15,,,,,'=@E" 123.45)
"=====+1.2345e+2"
(format nil "~15,,,,,,'D@E" 123.45)
"     +1.2345D+2"

* xyzzy lisp : format ~S

(format nil "~S" nil)
"nil"
(format nil "~:S" nil)
"()"
(format nil "~10S" 'hoge)
"hoge      "
(format nil "~10@S" 'hoge)
"      hoge"
(format nil "~10,5@S" 'hogehogehoge)
"   hogehogehoge"
(format nil "~,,5,'$S" 'hoge)
"hoge$$$$$"

* xyzzy lisp : format ~A

(format nil "~A" nil)
"nil"
(format nil "~:A" nil)
"()"
(format nil "~10A" 'hoge)
"hoge      "
(format nil "~10@A" 'hoge)
"      hoge"
(format nil "~10,5@A" 'hogehogehoge)
"   hogehogehoge"
(format nil "~,,5,'#A" 'hoge)
"hoge#####"

* Scrapbook : 全文検索エンジン Hyper Estraier on SAKURA Internet (hiyuzawa.jpn.org)

http://hiyuzawa.jpn.org/blog/2006/10/_hyper_estraier_on_sakura_inte.html

* 2006-11-15


(ReadMore...)

* xyzzy : WSHでxyzzy起動

の情報をまとめてみる。

まず起動用のスクリプト。起動時にやることは
// xyzzy.js
var shell  = WScript.CreateObject("Wscript.Shell");
var fs     = WScript.CreateObject("Scripting.FileSystemObject");
var env = shell.Environment("PROCESS");
var dir = env("TMP") + "\\xyzzy";
var path = fs.GetParentFolderName(WScript.ScriptFullName);

if (! fs.FolderExists(dir)) {
  fs.CreateFolder(dir);
}

env("XYZZYHOME") = path;
env("XYZZYCONFIGPATH") = dir;
if (fs.FileExists(path + "\\usr\\xyzzy.ini")) {
  fs.CopyFile(path + "\\usr\\xyzzy.ini", dir + "\\xyzzy.ini");
}
if (fs.FileExists(path + "\\usr\\.xyzzy.history")) {
  fs.CopyFile(path + "\\usr\\.xyzzy.history", dir + "\\.xyzzy.history");
}

shell.Exec("xyzzy -image " + dir + "\\xyzzy.dump");

一度起動した後のことは考えていませんので注意。

さらに、
をやっておくべきでしょう。
(setq lisp::*documentation-path*
      (merge-pathnames "XYZZYDOC"
                       (directory-namestring (si:dump-image-path))))
(delete-hook '*kill-xyzzy-hook* 'ed::save-history-file)
(add-hook '*kill-xyzzy-hook*
          #'(lambda ()
              (ed::save-history-file)
              (let ((ini (merge-pathnames "xyzzy.ini" (user-config-path)))
                    (his (merge-pathnames ".xyzzy.history" (user-config-path))))
                (copy-file ini (merge-pathnames "usr/xyzzy.ini" (si:system-root)) :if-exists :overwrite :if-access-denied :skip)
                (copy-file his (merge-pathnames "usr/.xyzzy.history" (si:system-root)) :if-exists :overwrite :if-access-denied :skip)
                (delete-file ini :if-does-not-exist :skip :if-access-denied :skip)
                (delete-file his :if-does-not-exist :skip :if-access-denied :skip)
                (delete-file (si:dump-image-path) :if-does-not-exist :skip :if-access-denied :skip)
                (delete-file (merge-pathnames "XYZZYDOC" (user-config-path)) :if-does-not-exist :skip :if-access-denied :skip)))
          t)
ただ、*kill-xyzzy-hook*の実行よりも後にxyzzy.iniへ書き込まれる設定があるため、xyzzy.iniの削除は完全ではありません。

煮るなり焼くなりご自由に。
(ReadMore...)

* Scrapbook : MCPP -- a portable C preprocessor with Validation Suite

http://mcpp.sourceforge.net/index-jp.html

* Scrapbook : シゴタノ! - 読み手の負担を最小化するメールの書き方

http://cyblog.jp/modules/weblog/details.php?blog_id=369

* Scrapbook : かぎしっぽツール - [物理のかぎしっぽ]

http://hooktail.org/computer/index.php?cmd=read&page=%A4%AB%A4%AE%A4%B7%A4%C3%A4%DD%A5%C4%A1%BC%A5%EB

数式画像とPDF

* Scrapbook : C++ Coding Standard

http://www.possibility.com/Cpp/CppCodingStandard.html

* Scrapbook : gonzui

https://www.codeblog.org/gonzui/