tag:blogger.com,1999:blog-54595642024-03-06T23:04:12.247-07:00Last on the wagon0.upto(infinity) { puts "Ruby is cool" } One Person's travel towards maturity.Unknownnoreply@blogger.comBlogger426125tag:blogger.com,1999:blog-5459564.post-22665189256783427132009-09-01T06:39:00.001-06:002009-09-01T06:39:14.954-06:00Links for vim I should follow later.<div xmlns='http://www.w3.org/1999/xhtml'>from http://www.duetsch.info/vim-plugins-tipps-und-tricks.html <br/><br/><ul><li><a href='http://www.cs.swarthmore.edu/help/vim/home.html'>vim tips and tricks</a></li><li><a href='http://vim.wikia.com/wiki/Best_Vim_Tips'>Best Vim tips</a></li><li><a href='http://www.catonmat.net/blog/vim-plugins-surround-vim/'>Vim Plugins You Should Know About, Part I: surround.vim</a></li><li><a href='http://www.catonmat.net/blog/vim-plugins-repeat-vim/'>Vim Plugins You Should Know About, Part II: repeat.vim</a></li><li><a href='http://www.catonmat.net/blog/vim-plugins-matchit-vim/'>Vim Plugins You Should Know About, Part III: matchit.vim</a></li><li><a href='http://www.catonmat.net/blog/vim-plugins-snipmate-vim/'>Vim Plugins You Should Know About, Part IV: snipmate.vim</a></li></ul><br/><br/><div class='zemanta-pixie'><img src='http://img.zemanta.com/pixy.gif?x-id=dee009ac-f928-8eb6-8ecc-b81e34330f42' alt='' class='zemanta-pixie-img'/></div></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5459564.post-47157586879177487982009-09-01T06:35:00.001-06:002009-09-01T06:35:09.968-06:00EGG<div xmlns='http://www.w3.org/1999/xhtml'>from http://wiki.github.com/bogolisk/egg<br/><h2><br/></h2> <p>"""</p><p>Egg is <em>not</em> a <a href='http://git.or.cz/'>git</a> porcelain. It shares the same goals with <em>git aliases</em> , make it more convenient to perform common git operations . To use egg, simply compile the <code>egg.el</code> file then load the <code>egg.elc</code> file. You can put the <code>egg.elc</code> file somewhere in your emacs <code>load-path</code> and add <code>(require 'egg)</code> in your <code>.emacs</code> file.</p> <p>Once activated, egg will turn on <code>egg-minor-mode</code> when a file was open in a git repository.</p>"""<br/><br/>I always forget the page for the keystrokes (the wiki above) so i'm linking it here. <br/><br/><div class='zemanta-pixie'><img src='http://img.zemanta.com/pixy.gif?x-id=b9227672-9022-8863-a39e-34027bcf9f4d' alt='' class='zemanta-pixie-img'/></div></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5459564.post-41737371981398759572009-06-25T07:55:00.001-06:002009-06-25T07:55:17.752-06:00Sound in rcirc for bitlbee<div xmlns='http://www.w3.org/1999/xhtml'><font face='sans-serif'>I use bitlbee. A lot. It's almost the only thing i use anymore for IM's. But one thing i've missed is sound notifications when someone is talking to me, so i looked into rcirc and found some beep code on the emacs wiki. <br/><br/>hacked it up and here goes : <br/><br/><code><br/>(add-hook 'rcirc-print-hooks 'my-rcirc-print-hook)<br/>(setq alert "uri=file:///usr/share/sounds/purple/alert.wav")<br/><br/>(defun my-rcirc-print-hook (process sender response target text)<br/> (when (and (string-match (rcirc-nick process) text)<br/> (not (string= (rcirc-nick process) sender))<br/> (not (string= (rcirc-server-name process) sender)))<br/> (call-process "/usr/bin/gst-launch-0.10" nil nil nil "playbin" alert)<br/> )<br/> )<br/></code><br/><br/></font><br/><br/></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5459564.post-64262811626425070142009-06-23T08:39:00.001-06:002009-06-23T08:39:29.946-06:00Grouping in gnus<div xmlns='http://www.w3.org/1999/xhtml'><font face='sans-serif'>S-l-# to put a particular mailbox/newsgroup into #'s queue<br/>then to check it <br/># g <br/><br/>Really handy if you subscribe to RSS like i do.<br/></font><br/><br/></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5459564.post-87784957796321913622009-06-22T06:46:00.001-06:002009-06-22T06:46:56.579-06:00Also to remove white space lines<div xmlns='http://www.w3.org/1999/xhtml'>In emacs, C-x C-o on a blank line will help you remove serious amounts of whitespace lines. <br/><br/>Really handy when you are coding or hit enter too many times in your writing.<br/><br/></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5459564.post-83024855678061123262009-06-22T06:43:00.001-06:002009-06-22T06:43:55.207-06:00browse kill ring<div xmlns='http://www.w3.org/1999/xhtml'><a href='http://www.emacswiki.org/emacs/download/browse-kill-ring.el'>http://www.emacswiki.org/emacs/download/browse-kill-ring.el</a><br/><br/>If you use emacs, you owe it to yourself to get this and add to your emacs:<br/><br/><pre>(require 'browse-kill-ring)<br />(browse-kill-ring-default-keybindings)<br /><br /><br /></pre><br/><br/></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5459564.post-30379883390410144032009-05-26T08:21:00.001-06:002009-05-26T08:21:21.344-06:00Org mode as a day planner<div xmlns='http://www.w3.org/1999/xhtml'><a href='http://www.newartisans.com/2007/08/using-org-mode-as-a-day-planner.html'>This</a> is an article about how to use Org-mode as a day planner. I saw it on the org-mode homepage and it is a well thought out, well written article. Replete with examples that make sense and pretty code blocks, it offers several tips I'm going to start using. Such as multiple states and notes per state change.<br/><br/><div class='zemanta-pixie'><img src='http://img.zemanta.com/pixy.gif?x-id=43e2967d-eb51-8524-a350-7df33832abee' class='zemanta-pixie-img'/></div></div>Unknownnoreply@blogger.com2tag:blogger.com,1999:blog-5459564.post-3415185355247324202009-05-19T08:16:00.000-06:002009-05-19T08:16:00.639-06:00Gnus scoring<div xmlns='http://www.w3.org/1999/xhtml'>One really should go read <a href='http://www.gnu.org/software/emacs/manual/html_node/gnus/Scoring.html#Scoring'>this</a> and then you can do things like<br/><br/><br/>(setq gnus-summary-mark-below 0)<br/><br/>so that you stop getting emails in your Summary buffer from people that you really don't want to see anymore. <br/><br/>At least that's the plan. <br/><br/><div class='zemanta-pixie'><img src='http://img.zemanta.com/pixy.gif?x-id=bd85046e-635a-8a07-b842-cbde216674be' class='zemanta-pixie-img'/></div></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5459564.post-3452983554799310572009-05-17T08:24:00.000-06:002009-05-17T08:24:00.268-06:00todochiku.el<div xmlns='http://www.w3.org/1999/xhtml'>Having been able to get something working in gnus, my next step is to get a notification in growl/snarl etc. To that end <a href='http://www.emacswiki.org/emacs/todochiku.el'>this</a> should help move that along. <br/><br/><div class='zemanta-pixie'><img src='http://img.zemanta.com/pixy.gif?x-id=8ffd96ad-6a14-87c5-8ba5-b598f49dfe83' class='zemanta-pixie-img'/></div></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5459564.post-27445048566758555162009-05-17T08:21:00.000-06:002009-05-17T08:21:00.707-06:00Spamassassin and gnus.<div xmlns='http://www.w3.org/1999/xhtml'><a href='http://www.gnu.org/software/emacs/manual/html_node/gnus/Spam-Package-Configuration-Examples.html#Spam-Package-Configuration-Examples'>Here</a> is some information on how to get spamassassin to work with gnus. Well, actually it's a conf file, so if you don't get those yet, drop me a line.<br/><br/><div class='zemanta-pixie'><img src='http://img.zemanta.com/pixy.gif?x-id=9805820f-9f9b-8e25-86a8-14f7d6277738' class='zemanta-pixie-img'/></div></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5459564.post-40228955365169982822009-05-14T15:01:00.001-06:002009-05-14T15:02:41.791-06:00xcite.el - citations<code><br /><br />(require 'xcite)<br />(autoload 'xcite "xcite" "Exciting cite" t)<br />(autoload 'xcite-yank-cur-msg "xcite" "Exciting cite" t)<br />(autoload 'xcite-indent-citation "xcite")<br />;;(setq message-citation-line-function nil message-citation-line-function 'xcite-indent-citation)<br /> (setq message-citation-line-function nil<br /> message-indent-citation-function<br /> 'xcite-indent-citation)<br /><br />(defun default-custom-header ()<br /> (format "On %s %s%s wrote:\n"<br /> date (or handle "") (if id (concat " (" id ")" ) "")))<br />(setq xcite:insert-header-function 'default-custom-header)<br /></code><br /><br />How to get my citation "on blah blah so and so wrote:" in xcite for citations. <br /><br />So far so good. I'm only using the basic version, nothing too tricked out<br />and it puts in the name of the user as part of the "> wrote something. Ans etc etc" part of the mail body.Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-5459564.post-4899764042249364892009-05-13T23:26:00.001-06:002009-05-13T23:26:07.132-06:00bbdb<div xmlns='http://www.w3.org/1999/xhtml'>After installing and fighting bbdb for a bit, the following worked in my .gnus.el<br/><br/>Under my first hook:<br/><br/><code><br/>(require 'bbdb)<br/>(bbdb-initialize)<br/>(add-hook 'gnus-startup-hook 'bbdb-insinuate-gnus)<br/>(add-hook 'gnus-startup-hook 'bbdb-insinuate-message)<br/><br/></code><br/><br/>Then to save a person to the db, you use ':'<br/>and to mail them, in the To: field hit <tab> to complete the name<br/><br/><div class='zemanta-pixie'><img src='http://img.zemanta.com/pixy.gif?x-id=7cf66a5c-0979-89cb-a7f0-bb59c7819aa0' class='zemanta-pixie-img'/></div></tab></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5459564.post-3546926432980589012009-05-12T21:38:00.001-06:002009-05-12T21:38:51.064-06:00.newsrc.eld<div xmlns='http://www.w3.org/1999/xhtml'>If your summary is screwed up, best chances are that this has the offending summary line. <br/><br/><div class='zemanta-pixie'><img src='http://img.zemanta.com/pixy.gif?x-id=026e305e-a9a9-89bf-ae8b-0b9fc2eca3ab' class='zemanta-pixie-img'/></div></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5459564.post-33227886825305637632009-05-12T00:46:00.000-06:002009-06-23T08:31:49.138-06:00addenda<div xmlns='http://www.w3.org/1999/xhtml'>added imap searching <br/><code><br/>require 'nnir<br/><br/><br/><br/>(setq gnus-select-method '(nnimap "imap.gmail.com"<br/> (nnimap-address "imap.gmail.com")<br/> (nnimap-server-port 993)<br/> (nnimap-authinfo-file "~/.authinfo")<br/> (nnir-search-engine imap)<br/> (nnimap-stream ssl)))<br/><br/></code><br/><br/></div>Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-5459564.post-74221542747419743012009-05-12T00:32:00.001-06:002009-05-12T00:32:54.450-06:00my .gnus.el<div xmlns='http://www.w3.org/1999/xhtml'>using .authinfo with<br/><br/><code><br/>machine imap.gmail.com login livingood.pw@gmail.com password passwordoffun port 993<br/>machine smtp.gmail.com login livingood.pw@gmail.com password passwordoffun port 587<br/></code><br/><br/>and then<br/><br/><code><br/>(setq user-mail-address "livingood.pw@gmail.com")<br/>(setq user-full-name "Ben Livingood")<br/>(load-library "smtpmail")<br/>(load-library "nnimap")<br/>(load-library "starttls")<br/>(setq gnus-select-method '(nnimap "imap.gmail.com"<br/> (nnimap-address "imap.gmail.com")<br/> (nnimap-server-port 993)<br/> (nnimap-authinfo-file "~/.authinfo")<br/> (nnimap-stream ssl)))<br/><br/>(setq smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))<br/> smtpmail-smtp-server "smtp.gmail.com"<br/> smtpmail-default-smtp-server "smtp.gmail.com"<br/> send-mail-function 'smtpmail-send-it<br/> message-send-mail-function 'smtpmail-send-it<br/> smtpmail-smtp-service 587<br/> ;; smtpmail-auth-credentials '(("smtp.gmail.com"<br/> ;; 587<br/> ;; "livingood.pw@gmail.com"<br/> ;; nil))<br/>)<br/>(add-hook 'gnus-topic-mode-hook 'gnus-topic-mode)<br/><br/>(setq gnus-invalid-group-regexp "[:`'\"]\\|^$")<br/>(setq gnus-ignored-newsgroups "")<br/>(setq gnus-outgoing-message-group "[Google Mail]/Sent Mail")<br/></code><br/><br/>then S s for each group I want <br/>oh and G c to set them always visible<br/><br/>to see all messages read or not, C-u RET on a group<br/><br/>now if there was a way to tag mails in gnus so I could perform an op on multiple messages. . . <br/><br/><div class='zemanta-pixie'><img src='http://img.zemanta.com/pixy.gif?x-id=a2fa1187-8d65-8c35-b292-61b79b700448' class='zemanta-pixie-img'/></div></div>Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-5459564.post-61541683311471522342009-05-11T09:08:00.001-06:002009-05-11T09:08:12.675-06:00My .emacs from a portable ubuntu distro @home<div xmlns='http://www.w3.org/1999/xhtml'><code><br/>(add-to-list 'load-path "~/.emacs.d/")<br/>(require 'rcirc)<br/>(require 'rcirc-extension)<br/>;; (require 'twit)<br/><br/>(global-set-key (kbd "C-c b") 'browse-url-at-point)<br/>(global-set-key (kbd "C-c <left>") 'shrink-window-horizontally)<br/>(global-set-key (kbd "C-c <right>") 'enlarge-window-horizontally)<br/>(global-set-key (kbd "C-c <down>") 'shrink-window)<br/>(global-set-key (kbd "C-c <up>") 'enlarge-window)<br/><br/>(defun-rcirc-command reconnect (arg)<br/> "Reconnect the server process."<br/> (interactive "i")<br/> (unless process<br/> (error "There's no process for this target"))<br/> (let* ((server (car (process-contact process)))<br/> (port (process-contact process :service))<br/> (nick (rcirc-nick process))<br/> channels query-buffers)<br/> (dolist (buf (buffer-list))<br/> (with-current-buffer buf<br/> (when (eq process (rcirc-buffer-process))<br/> (remove-hook 'change-major-mode-hook<br/> 'rcirc-change-major-mode-hook)<br/> (if (rcirc-channel-p rcirc-target)<br/> (setq channels (cons rcirc-target channels))<br/> (setq query-buffers (cons buf query-buffers))))))<br/> (delete-process process)<br/> (rcirc-connect server port nick<br/> nick<br/> nick<br/> channels)))<br/><br/>(ido-mode)<br/>(windmove-default-keybindings)<br/><br/>(menu-bar-mode)<br/>(tool-bar-mode)<br/>;;; This was installed by package-install.el.<br/>;;; This provides support for the package system and<br/>;;; interfacing with ELPA, the package archive.<br/>;;; Move this code earlier if you want to reference<br/>;;; packages in your .emacs.<br/>(when<br/> (load<br/> (expand-file-name "~/.emacs.d/elpa/package.el"))<br/> (package-initialize))<br/><br/>;; To install, add the following to your .emacs file:<br/> (autoload 'kill-ring-search "kill-ring-search"<br/>;; "Search the kill ring in the minibuffer."<br/> (interactive))<br/> (global-set-key "\M-\C-y" 'kill-ring-search)<br/>;;<br/>;; Just call kill-ring-search and enter your search.<br/>;; M-y and C-y work as usual. You can also use C-r like in a shell.<br/>;; C-v, M-v, C-n and C-p will scroll the view.<br/><br/>;; emacs-fu<br/>(blink-cursor-mode nil) ;; stop cursor from blinking<br/>(setq search-highlight t ;; highlight when searching... <br/> query-replace-highlight t)<br/><br/>(setq save-place-file "~/.emacs.d/saveplace") ;; keep my ~/ clean<br/>(setq-default save-place t) ;; activate it for all buffers<br/>(require 'saveplace) ;; get the package<br/><br/>(setq savehist-additional-variables ;; also save...<br/> '(search-ring regexp-search-ring kill-ring) ;; ... my search entries<br/> savehist-file "~/.emacs.d/savehist") ;; keep my home clean<br/>(savehist-mode t) ;; do customization before activate<br/><br/>(push '("." . "~/.emacs.d/savefiles") backup-directory-alist) <br/><br/>;; mark current line:<br/>(global-hl-line-mode 1)<br/>;; color for current line:<br/>(set-face-background 'hl-line "#e0f8ff")<br/></up></down></right></left></code><br/><br/><div class='zemanta-pixie'><img src='http://img.zemanta.com/pixy.gif?x-id=0c5e936d-3dce-884d-a9a1-b46787003342' class='zemanta-pixie-img'/></div></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5459564.post-75094433235239711132009-05-05T23:56:00.001-06:002009-05-05T23:56:17.189-06:003.5pre5<div xmlns='http://www.w3.org/1999/xhtml'>Using firefox 3.5pre5 with scribefire, twitterfox, treetabs, and ubuiquity.<br/><br/>And, so far, it hasn't died a horrible death. Highly recommended. <br/><br/><div class='zemanta-pixie'><img src='http://img.zemanta.com/pixy.gif?x-id=40324a6c-4a17-8366-97e6-885e796ce0d8' class='zemanta-pixie-img'/></div></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5459564.post-63217250894952585192009-04-23T15:24:00.002-06:002009-05-05T23:44:35.862-06:00Bash and Regular expressionsFor those of you that didn't know, like me, Bash can and does do regexp =~ matching. A partial reference can be found <a href="http://tldp.org/LDP/abs/html/bashver3.html">Here</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5459564.post-44523983225143825032009-04-19T00:05:00.001-06:002009-04-19T00:06:40.752-06:00ZoteroOh boy, a wonderful new tool for putting together a large collection of data called Zotero.<br /><br />The nice thing about this is the ability for it to a)reference your pdf's and b) be cross platform via firefox.<br /><br /><a href="http://www.zotero.org/">Link Here</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5459564.post-33818740394536774032009-04-17T22:18:00.001-06:002009-04-17T22:18:59.010-06:00Mysql hintsBecause i can never remember them all, and i use them once a year,<br /><br /><br /><a href="http://www.pantz.org/software/mysql/mysqlcommands.html">Sql hints</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5459564.post-68990031733768504822009-04-17T22:05:00.001-06:002009-04-17T22:12:44.729-06:00TwitterHi and welcome to those of you that have clicked on my twitter link.<br /><br />Before following me, a few things you should know:<br /><br /><span style="font-weight: bold;">Will you follow me?</span><br /> I will occasionally follow back<br /><span style="font-weight: bold;">Direct Messages?</span><br /> I have been known to direct message people that follow me<br /><span style="font-weight: bold;">Daily Posts?</span><br /> Between 1 and 20 messages, some replies some original<br /><span style="font-weight: bold;">Retweets?</span><br /> Very Rarely<br /><span style="font-weight: bold;">Topics:</span><br /> Vary from personal replies to technical statements. General nerd/tech/rpg geekery.<br /><span style="font-weight: bold;">Are you Safe for Work/Professional</span> <span style="font-weight: bold;">Tweeter</span>?<br /> Rare adult language, safe images, safe links. Granted I'm not a web pundit.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5459564.post-14172214238378000302009-04-17T22:02:00.001-06:002009-04-17T22:04:13.734-06:00Mozilla Firefox memoryA wonderful, and useful article on how to control some of the memory bloat on firefox can be found here:<br /><br /><a href="http://internetducttape.com/2006/12/02/how-to-fix-the-firefox-memory-leak-firefox-hack/">http://internetducttape.com/2006/12/02/how-to-fix-the-firefox-memory-leak-firefox-hack/</a><br /><br />Damned handy, and I've been running it on conkeror as well as songbird with firefox as well.<br /><br />Compared to an 'unmodified' firefox we are talking a 50% reduction in memory taken so far. That's over three days for the one process and 1day for the second 'unmodified' instance.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5459564.post-34815648818391155652009-03-16T07:39:00.001-06:002009-03-16T07:39:24.160-06:00Songbird 1.1Songbird 1.1 is up and available. Oh and it finally has support that allowed the "Now Playing" plug in to finally work again. At least so far. <br /><br />Another bonus is that they have made it so that gstreamer is used on all three platforms it is offered for (OSX Linux Windows) so that's a win for the rest of us wanting to code something up with those bindings.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5459564.post-79156532664635246972009-02-14T02:40:00.001-07:002009-02-14T02:40:25.373-07:00nightHave great night. Oh and this is a test from the iPod.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5459564.post-12240804520099342622009-02-11T08:25:00.001-07:002009-02-11T08:25:29.751-07:00heyaa cell testUnknownnoreply@blogger.com0