Wednesday, November 13, 2013

Check out @slashdot's Tweet: https://twitter.com/slashdot/status/400632505054679040

Sunday, October 27, 2013

Blogging from emacs org-mode


Blogging

README

Atom blogging via BPE

BPE Installation

DONE Install Google Client commandline/API tools

On Ubuntu try

sudo apt-get install googlecl

DONE Configure package

For me this looked like

cd ~src
bzunzip2 g-client.tar.bz2
tar -xvf g-client.tar
cd src/g-client
make config
make

DONE install BPE form packages

BPE configuraiton code

; set up emacs interface to googlecl
(add-to-list 'load-path "~/src/g-client" t)
(load-library "g")

; setup bpe
(require 'bpe)
(require 'htmlize nil 'noerror) ; to fontify source code block on your blog.
(setq bpe:account "yourUsername@gmail.com")
(setq bpe:blog-name "yourBlogname")
(define-key org-mode-map (kbd "C-c C-p") 'bpe:post-article)
(define-key org-mode-map (kbd "C-c C-i") 'bpe:insert-template)
;; For Japanese, default is $LANG environment variable.
;(setq bpe:lang "ja_JP.UTF-8")

BPE posting

  • open an .org file
  • C-c C-i to insert a template
  • write the post
  • C-c C-p to posts
  • posts as draft
  • bug: have to insert a " tagname" after "#+TAG:" in template.

Wordpress blogging

Wordpress configuration code

(setq load-path (cons "~/.emacs.d/elpa/org2blog-20130704.908/" load-path))
(require 'org2blog-autoloads)

(setq org2blog/wp-blog-alist
'(("wordpress"
:url "http://yourUsername.wordpress.com/xmlrpc.php"
:username "yourUsername"
:default-title "Goodbye World"
:default-categories ("org2blog" "emacs")
:tags-as-categories nil)
("food8forthought"
:url "http://yourUsername.wordpress.com/xmlrpc.php"
:username "yourUsername"
:default-title "Set a title next time"
:default-categories ("word" "vi")
:tags-as-categories nil)
))

(message "blogging.org finished.")

Monday, October 21, 2013

Blogging fom org-mode


What this is

Blogging setup and TODO list

DONE install bpe from packages

TODO Post this to usefulfoo blog

The Code

; google services setup
(add-to-list 'load-path "~/.emacs.d/g-client" t)
(load-library "g")
(message "blogging.org finished.")

Sunday, October 6, 2013

Automatic screen locking on XFCE/Security Onion

Screen Locking on XFCE

This may be old-school, but I like to have X screen locking. It does not come by default on XFCE and, by extension on Security Onion
To get it working, I did the following:
apt-get install xautolock
Created ~/.config/autostart/runXinitrc.desktop with the following content
[Desktop Entry]
Version=1.0
Name=Script
Type=Application
Exec=/ASOLUTE/PATH/TO/HOME/.xinitrc
Terminal=false
StartupNotify=false
Hidden=false
Created .xinitrc with the following content:
xautolock -time 15 -locker /usr/bin/xflock4 &
And, as an added bonus, for those who want the control key to the left of A where God and Richard Stallman intended it, create ~/.config/autostart/ with the following (change Exec location to suit):
[Desktop Entry]
Version=1.0
Name=Script
Type=Application
Exec=/ASOLUTE/PATH/TO/HOME/bin/fixctrl.sh
Terminal=false
StartupNotify=false
Hidden=false
and finally, create /ASOLUTE/PATH/TO/HOME/bin/fixctrl.sh with:
setxkbmap -option 'ctrl:nocaps'
…yes, there are probably better, simpler ways to do all this…

Thursday, October 3, 2013

Saturday, June 29, 2013

How retro can I go? Sketchnotes: visual thinking on paper.

In the possiblyUsefulFoo category

http://www.core77.com/blog/sketchnotes/sketchnotes_101_the_basics_of_visual_note-taking_19678.asp

I'm already using a 35-year-old text editor (emacs, org-mode) for most of my thinking and
writing.    Why not go even more retro?