@peccul is peccu

(love peccu '(emacs lisp cat outdoor bicycle mac linux coffee))

Caveman2を試しに起動し、pm2でプロセス管理してみるところまで

Common Lispでウェブアプリを作りたい。これは雛形を生成してサーバーを起動するまでの話。

ningleとCaveman2の違いがわからず迷ったが、READMEのこの文より Caveman2 を選んだ。

One of the most frequently asked questions was "Which should I use ningle or Caveman? What are the differences?" I think it was because the roles of them were too similar. Both of them are saying "micro" and no database support.

Caveman2 is no more "micro" web application framework. It supports CL-DBI and has database connection management by default. Caveman has started growing up.

github.com

続きを読む

ImageMagickでfaviconの生成とHTMLタグの吐き出し

ロゴ画像からリサイズした画像群とicoファイルと、それらを読み込むHTMLを生成したかった。

今風ではないし、網羅しているわけでもないけれどサクッと指定したい時に。

続きを読む

Emacsでclhsコマンドを経由して、カーソル位置にあるシンボルをHyperSpecで調べる

前の記事でclhsコマンドを使えるようにしたので、カーソル位置のシンボルを引数にclhsコマンドを呼べるようにした。

clhsにはパスが通っている前提。

(require 'thingatpt)
(defun clhs-symbol ()
  (interactive)
  (shell-command (concat "clhs " (thing-at-point 'symbol))))

;; 必要に応じて
;; (define-key lisp-mode-map (kbd  "M-.") 'clhs-symbol)

HyperSpecを開くRoswellスクリプトをプロキシ環境下で動かす

blog.8arrow.org

深町さんのスクリプトを使ってみたかったが、シンボル一覧を取得するときにプロキシを超えられなかった。

drakma:http-request環境変数HTTP_PROXYの内容を渡すように変更してみた。 こんな変更でよいのかわからない。

続きを読む