Tom Pierce's Blog : Let the geek times roll.
Updated: 6/20/04; 3:03:48 PM.

 

Subscribe to "Tom Pierce's Blog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

 
 

Wednesday, February 5, 2003

Just a reminder for those that are interested, here is a WebDAV plug in for Frontier and Radio from Nicholas Riley. [John Robb's Radio Weblog]

Cool!  This plug in allows you to upstream with WebDAV.  Yet another way to publish Radio blogs to a Zope server.


7:43:49 PM    comment []

Here is way to view your Radio weblog on your desktop:

http://127.0.0.1:5335/index

Use this link only with Radio running.  This can allow you to do two things:  1) provides you a preview of your weblog if you are publishing while disconnected (ie.  a laptop on an airplane), and 2) allows you to use Radio as a personal journalling tool that is never published (this is a great way to create a extremely private back up brain of time organized notes). [John Robb's Radio Weblog]


7:42:13 PM    comment []

Something that I should read!
6:15:11 PM    comment []

Today I whipped up a quick Elisp function that adds folding marks (to be used with Folding Mode).  This function is not perfect, but it can get folding marks in your code quickly so that you can step through and customize them to be more meaningful.  Just thought I would share with the world.  I haven't posted this to comp.emacs.sources yet. 

If you find this useful or enhance it, please let me know.

(defun user-add-sql-folding-marks()
"This steps through a SQL buffer and adds folding marks around all
statement blocks that have a "begin" and an "end".  Can be useful
for large procedures."
  (interactive)
  (save-excursion
 (goto-char (point-min))
 (while (not (eobp))
   (forward-line 1)
   (if (looking-at "^\\W*begin")
    (progn
   (forward-line -1)
   (goto-char (point-at-bol))
   (let ((cur-statement (buffer-substring (point-at-bol) (point-at-eol))))
     (insert "\n")
     (forward-line -1)
     (insert (concat "/* {{{ " (concat cur-statement " */")))
     (forward-line 2)))
  (if (and (looking-at "^\\W*end")
     (not (looking-at "^\\W*end)")))
   (progn
     (forward-line 1)
     (insert "/* }}} */\n")
     (forward-line -1)))))))


6:13:05 PM    comment []

I'm finally starting to feel better today.  It's in no small part due to Michelle Kreitman's chicken soup.  Read the whole story called Michelle Kreitman makes the best chicken soup in the world.
5:56:47 PM    comment []

© Copyright 2004 Tom Pierce.



Click here to visit the Radio UserLand website.

 


February 2003
Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28  
Jan   Mar

Search

[sgl dagger]
How this works

Emacs Sources
 tsql-indent.el
 user-add-sql-folding-marks
 remove-line-boundary-in-region
 convert-camel-to-underscore

My Subscriptions
 Funny
 KM