<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5283627481111616313</id><updated>2011-10-06T08:42:11.632-07:00</updated><category term='dell e4200'/><category term='emacs'/><category term='sbcl'/><category term='imap'/><category term='binfmt_misc'/><category term='execute'/><category term='windows'/><category term='alsa'/><category term='snd-hda-intel'/><category term='unicode'/><category term='82801l'/><category term='lisp'/><category term='common lisp'/><category term='gnus'/><category term='gmail'/><category term='slime'/><title type='text'>blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://asimakov.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5283627481111616313/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://asimakov.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Alexey Simakov</name><uri>http://www.blogger.com/profile/10353477825048527914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5283627481111616313.post-5856765122742272137</id><published>2011-01-07T13:47:00.000-08:00</published><updated>2011-01-07T14:02:49.944-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dell e4200'/><category scheme='http://www.blogger.com/atom/ns#' term='alsa'/><category scheme='http://www.blogger.com/atom/ns#' term='snd-hda-intel'/><category scheme='http://www.blogger.com/atom/ns#' term='82801l'/><title type='text'>dell e4200, troubles with sound (ubuntu 10.10)</title><content type='html'>&lt;pre&gt;&lt;br /&gt;asimakov@asimakov-laptop:~$ sudo lshw -C  multimedia&lt;br /&gt;  *-multimedia            &lt;br /&gt;       description: Audio device&lt;br /&gt;       product: 82801I (ICH9 Family) HD Audio Controller&lt;br /&gt;       vendor: Intel Corporation&lt;br /&gt;       physical id: 1b&lt;br /&gt;       bus info: pci@0000:00:1b.0&lt;br /&gt;       version: 03&lt;br /&gt;       width: 64 bits&lt;br /&gt;       clock: 33MHz&lt;br /&gt;       capabilities: pm msi pciexpress bus_master cap_list&lt;br /&gt;       configuration: driver=HDA Intel latency=0&lt;br /&gt;       resources: irq:47 memory:f6adc000-f6adffff&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;add some magic lines to /etc/modprobe.d/alsa-base.conf&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;asimakov@asimakov-laptop:~$ cat /etc/modprobe.d/alsa-base.conf  | grep snd-hda-intel&lt;br /&gt;options snd-hda-intel model=3stack-dig&lt;br /&gt;options snd-hda-intel enable_msi=1&lt;br /&gt;options snd-hda-intel single_cmd=1&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;more information here: &lt;a href="https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/274424"&gt;https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/274424&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5283627481111616313-5856765122742272137?l=asimakov.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asimakov.blogspot.com/feeds/5856765122742272137/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5283627481111616313&amp;postID=5856765122742272137' title='Комментарии: 1'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5283627481111616313/posts/default/5856765122742272137'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5283627481111616313/posts/default/5856765122742272137'/><link rel='alternate' type='text/html' href='http://asimakov.blogspot.com/2011/01/dell-e4200-troubles-with-sound-ubuntu.html' title='dell e4200, troubles with sound (ubuntu 10.10)'/><author><name>Alexey Simakov</name><uri>http://www.blogger.com/profile/10353477825048527914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5283627481111616313.post-3178555096733715271</id><published>2008-02-03T13:43:00.000-08:00</published><updated>2008-02-03T14:12:25.364-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sbcl'/><category scheme='http://www.blogger.com/atom/ns#' term='execute'/><category scheme='http://www.blogger.com/atom/ns#' term='binfmt_misc'/><category scheme='http://www.blogger.com/atom/ns#' term='common lisp'/><title type='text'>create executable file from lisp source (sbcl)</title><content type='html'>This is a very simple lisp file:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;(print "Hello. World!")&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;At first, need compile this file:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;:~$ sbcl --noinform&lt;br /&gt;* (compile-file "helloworld.lisp" :output-file "helloworld")&lt;br /&gt;&lt;br /&gt;; compiling file "/home/asimakov/helloworld.lisp" (written 04 FEB 2008 12:44:58 AM):&lt;br /&gt;; compiling (PRINT "Hello. World!")&lt;br /&gt;&lt;br /&gt;; /home/asimakov/helloworld.fasl written&lt;br /&gt;; compilation finished in 0:00:00&lt;br /&gt;#P"/home/asimakov/helloworld.fasl"&lt;br /&gt;NIL&lt;br /&gt;NIL&lt;br /&gt;* &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Next, load module binfmt_misc and mount binfmt_misc filesystem:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;:~$ sudo modprobe binfmt_misc&lt;br /&gt;:~$ sudo mount -t binfmt_misc none /proc/sys/fs/binfmt_misc&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;At last, register fasl filetype (from root of course) by the specyfing a byte pattern:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;:~$ echo ":lisp:M::\x23\x20FASL::/usr/lib/sbcl/sbcl-run:" &gt; /proc/sys/fs/binfmt_misc/register&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;or by extension:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;:~$ echo ':lisp:E::fasl::/usr/lib/sbcl/sbcl-run:' &gt; /proc/sys/fs/binfmt_misc/register&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;That's all, you can execute fasl from command line:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;:~$ chmod +x helloworld.fasl ; ./helloworld.fasl&lt;br /&gt;"Hello. World!"&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;See also:&lt;br /&gt;Documentation for binfmt_misc: &lt;a href="http://www.kernel.org/doc/Documentation/binfmt_misc.txt"&gt;http://www.kernel.org/doc/Documentation/binfmt_misc.txt&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5283627481111616313-3178555096733715271?l=asimakov.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asimakov.blogspot.com/feeds/3178555096733715271/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5283627481111616313&amp;postID=3178555096733715271' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5283627481111616313/posts/default/3178555096733715271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5283627481111616313/posts/default/3178555096733715271'/><link rel='alternate' type='text/html' href='http://asimakov.blogspot.com/2008/02/create-executable-file-from-lisp-source.html' title='create executable file from lisp source (sbcl)'/><author><name>Alexey Simakov</name><uri>http://www.blogger.com/profile/10353477825048527914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5283627481111616313.post-4742946069297985038</id><published>2007-11-28T15:19:00.000-08:00</published><updated>2007-11-28T15:26:56.903-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sbcl'/><category scheme='http://www.blogger.com/atom/ns#' term='lisp'/><category scheme='http://www.blogger.com/atom/ns#' term='common lisp'/><title type='text'>read stream in sbcl</title><content type='html'>&lt;pre&gt;(with-open-stream (files&lt;br /&gt;     (sb-ext:process-output&lt;br /&gt;      (sb-ext:run-program "/usr/bin/cat" '("/path/to/file")&lt;br /&gt;       :output :stream)))&lt;br /&gt;  (loop :for line = (read-line files nil nil)&lt;br /&gt; :while (and&lt;br /&gt;  (my-mega-condition-p line))&lt;br /&gt;  line) :do (princ line) (terpri)))&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5283627481111616313-4742946069297985038?l=asimakov.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asimakov.blogspot.com/feeds/4742946069297985038/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5283627481111616313&amp;postID=4742946069297985038' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5283627481111616313/posts/default/4742946069297985038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5283627481111616313/posts/default/4742946069297985038'/><link rel='alternate' type='text/html' href='http://asimakov.blogspot.com/2007/11/read-stream-in-sbcl.html' title='read stream in sbcl'/><author><name>Alexey Simakov</name><uri>http://www.blogger.com/profile/10353477825048527914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5283627481111616313.post-1209996831240673943</id><published>2007-11-05T12:10:00.000-08:00</published><updated>2007-11-05T12:38:52.774-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gnus'/><category scheme='http://www.blogger.com/atom/ns#' term='gmail'/><category scheme='http://www.blogger.com/atom/ns#' term='imap'/><category scheme='http://www.blogger.com/atom/ns#' term='emacs'/><title type='text'>imap, gnus &amp; gmail.com</title><content type='html'>~/.gnus.el&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;(setq user-mail-address "asimakov@gmail.com")&lt;br /&gt;(setq user-full-name "Alexey Simakov")&lt;br /&gt;(load-library "smtpmail")&lt;br /&gt;(load-library "nnimap")&lt;br /&gt;(load-library "starttls")&lt;br /&gt;(setq gnus-select-method '(nnimap "imap.gmail.com"&lt;br /&gt;           (nnimap-address "imap.gmail.com")&lt;br /&gt;           (nnimap-server-port 993)&lt;br /&gt;           (nnimap-authinfo-file "~/.imap-authinfo")&lt;br /&gt;           (nnimap-stream ssl)))&lt;br /&gt;&lt;br /&gt;(setq smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))&lt;br /&gt;      smtpmail-smtp-server "smtp.gmail.com"&lt;br /&gt;      smtpmail-default-smtp-server "smtp.gmail.com"&lt;br /&gt;      send-mail-function 'smtpmail-send-it&lt;br /&gt;      message-send-mail-function 'smtpmail-send-it&lt;br /&gt;      smtpmail-smtp-service 587&lt;br /&gt;      smtpmail-auth-credentials '(("smtp.gmail.com"&lt;br /&gt;       587&lt;br /&gt;       "asimakov@gmail.com"&lt;br /&gt;       nil)))&lt;br /&gt;(add-hook 'gnus-topic-mode-hook 'gnus-topic-mode)&lt;/pre&gt;&lt;br /&gt;~/.imap-authinfo&lt;br /&gt;&lt;pre&gt;machine imap.gmail.com login asimakov@gmail.com password MyPassword port 993&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;get CA certificates and put them in ~/Mail/certs/&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;$ cd ~/Mail/&lt;br /&gt;$ wget http://members.cox.net/mynameisdavid/archive/certificates.zip&lt;br /&gt;$ unzip certificates.zip&lt;br /&gt;$ mv cer certs&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5283627481111616313-1209996831240673943?l=asimakov.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asimakov.blogspot.com/feeds/1209996831240673943/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5283627481111616313&amp;postID=1209996831240673943' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5283627481111616313/posts/default/1209996831240673943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5283627481111616313/posts/default/1209996831240673943'/><link rel='alternate' type='text/html' href='http://asimakov.blogspot.com/2007/11/imap-gnus-gmailcom.html' title='imap, gnus &amp; gmail.com'/><author><name>Alexey Simakov</name><uri>http://www.blogger.com/profile/10353477825048527914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5283627481111616313.post-2985206180252861019</id><published>2007-07-28T03:44:00.000-07:00</published><updated>2007-11-05T12:37:33.000-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='slime'/><category scheme='http://www.blogger.com/atom/ns#' term='unicode'/><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><category scheme='http://www.blogger.com/atom/ns#' term='emacs'/><title type='text'>remote swank server, emacs &amp; unicode</title><content type='html'>.emacs:&lt;br /&gt;&lt;pre&gt;(add-to-list 'load-path "~/elisp/slime")&lt;br /&gt;(require 'slime)&lt;br /&gt;(setq slime-net-coding-system 'utf-8-unix)&lt;br /&gt;(set-language-environment "utf-8")&lt;br /&gt;(slime-setup)&lt;/pre&gt;&lt;br /&gt;swank.lisp:&lt;br /&gt;&lt;pre&gt;(require 'asdf)&lt;br /&gt;(asdf:oos 'asdf:load-op 'swank)&lt;br /&gt;(setq swank:*use-dedicated-output-stream* nil)&lt;br /&gt;(swank:create-server :coding-system "utf-8-unix")&lt;/pre&gt;&lt;br /&gt;On remote host:&lt;br /&gt;&lt;pre&gt;$ sbcl --load swank.lisp&lt;/pre&gt;&lt;br /&gt;ssh tunnel for slime using putty:&lt;br /&gt;&lt;pre&gt;&lt;i&gt;Putty Configuration Menu-&gt;New Session-&gt;Connection-&gt;SSH-&gt;Tunnels:&lt;/i&gt;&lt;br /&gt;Source port: 4005&lt;br /&gt;Destination: localhost:4005&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Putty Configuration Menu-&gt;Session:&lt;/i&gt;&lt;br /&gt;Host name or ip: user@host-with-swank&lt;/pre&gt;&lt;br /&gt;ssh tunnel for slime using ssh:&lt;br /&gt;&lt;pre&gt;ssh -2 -N -f -L 4005:localhost:4005 user@host-with-swank&lt;/pre&gt;&lt;br /&gt;Connect to slime:&lt;pre&gt;M-x slime-connect&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Links:&lt;br /&gt;&lt;a href="http://www.ourcomments.org/Emacs/EmacsW32.html"&gt;Emacs for Windows&lt;/a&gt;&lt;br /&gt;&lt;a href="http://common-lisp.net/project/slime/"&gt;SLIME&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5283627481111616313-2985206180252861019?l=asimakov.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asimakov.blogspot.com/feeds/2985206180252861019/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5283627481111616313&amp;postID=2985206180252861019' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5283627481111616313/posts/default/2985206180252861019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5283627481111616313/posts/default/2985206180252861019'/><link rel='alternate' type='text/html' href='http://asimakov.blogspot.com/2007/07/remote-swank-server-emacs-unicode.html' title='remote swank server, emacs &amp; unicode'/><author><name>Alexey Simakov</name><uri>http://www.blogger.com/profile/10353477825048527914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
