The instructions provide clues, but don’t spell out, how to set up org2blog for multiple blogs. https://github.com/punchagan/org2blog

(setq org2blog/wp-blog-alist 
  '(("wordpress" :url "http://username.wordpress.com/xmlrpc.php"
     :username "username"
     :default-title "Hello World"
     :default-categories ("org2blog" "emacs")
     :tags-as-categories nil) 
    ("my-blog" :url "http://username.server.com/xmlrpc.php"
     :username "admin")))

But what if you don’t want to specify your username and password in this multi-site set-up?

The answer lies in expanding on the elisp provided.

(let 

 (creds-stevedowe creds-warpuni creds-status)
 (add-to-list 'auth-sources "~/.netrc") 
 
 (setq creds-stevedowe (auth-source-user-and-password "stevedowe.me")) 
 (setq creds-warpuni (auth-source-user-and-password "warpuni.com")) 
 (setq creds-status (auth-source-user-and-password "status.warphost.net"))

 (setq org2blog/wp-blog-alist 
  `( ("stevedowe.me"
      :url "https://dowe.io/xmlrpc.php"
      :default-categories ("me" "process" "things" "world")
      :tags-as-categories nil
      :username ,(car creds-stevedowe)
      :password ,(cadr creds-stevedowe)) 

     ("warpuni.com"
      :url "https://warpuni.com/xmlrpc.php"
      :default-categories ("Analytics","BioData","FreeSoftware","Internet","Mobile","News","Productivity","Security","Social" "Support")
      :tags-as-categories nil
      :username ,(car creds-warpuni)
      :password ,(cadr creds-warpuni)) 

     ("status.warphost.net"
      :url "https://status.warphost.net/xmlrpc.php"
      :tags-as-categories nil
      :username ,(car creds-status)
      :password ,(cadr creds-status)))))

[ This is a legacy post. Some details may no longer be relevant to modern software implementations. ]

If it hasn’t been said enough times already, let it be said once more: Emacs and org-mode are quite probably the best way ever to organise your personal life.

Emacs, for starters

Emacs as a text editor is rock solid. If you have a computer where you type in text and which:

  • is web based (e.g. a chromebook)
  • has any kind of touch interface (a tablet, phone)
  • is running a heavy GUI (graphical user interface)

.. then you are certain to observe a certain lag on input. It might be very slight, but it will likely be there. I know this to be the case for many devices out there, even those which purport to be “high-end”.

With Emacs, there seems to be a much more direct connection to the keyboard: you type, text appears. You type faster, text appears faster. In fact, text is capable of appearing much more quickly than you can possibly type. This makes blogging quick and painless.

org-mode, for main course

Life in Emacs simply came to be, through org-mode. Emacs itself is amazing; org-mode made organising data even better. A quick refresher:

  • org-mode creates everything in plain text, for maximum portability between systems
  • it is known as an “outline mode” enhancement for Emacs, meaning it helps to display semi-structured text effectively
  • it allows for the creation of lists – of projects, tasks, notes, links … you name it, anything that can be represented in text
  • it is portable, allowing for synchronisation with mobile devices
  • using Emacs, it is powerful – allowing org-mode notes to interact with other aspects of Emacs
image of org-mode
org-mode in action: showing a list of links

Org-mode also supports all sorts of fancy formatting and customisation, meaning text can look good and be easy to follow.

org2blog, for desert

What would all this power be for, unless blogging! 🙂

Actually, blogging is just one activity which benefits greatly from the power of org-mode, as org’s powerful and easy formatting options are seamlessly translated into HTML and published to a blog.

In my case, I’m using a WordPress site. I create a new post using the commands

M-x org2blog/wp-login
M-x org2blog/wp-new-entry

I then type in my post and save it to a local file, using

C-x C-s

and then post it to WordPress for subsequent tweaking, with

M-x org2blog/wp-post-buffer

I can then add some final polish and check the format in WordPress before final publishing.

As a demo and an indication of speed, this blog post took only 5 minutes to write, post, edit and publish.

this week (wk 9)

work

  • General
  • XHTML/CSS template conversion
  • CRM meeting with client
  • Hosting project planning
  • Transfer notes to TD
  • CRM
    • System: 
  • Sales
    • compile charity list
    • Marketing/Intro letter to local .org.uk’s (in progress)
  • Install for customer
  • Configure e-mail marketing; send communications
  • Systems:
    • Update shared accounts to new limits
    • Update server software to latest stable
  • PHP 
    • Admin panel tasks
    • test – scripting
    • release
  • Checkout/PSP testing 
  • IE6 layout compatibility testing
  • [recurring] Organise
    • networking group:
    • training
    • social events
    • 1-2-1s 
    • f/up referrals
    • changes to web site
    • arrange visitors
  • sales leads / prospects / meetings for next week
  • week in view
  • finances
  • life

    misc

    • Fix bike
    • Buy bike lock & lights
    • Order car tyres
    • Meal at friends
    • Birthday curry
    • Other birthday drinks

    last week (wk 8)

    work

    • General
    • compile charity list
    • mail merge & post out to charities
  • CRM
    • System: 
  • Sales
    • Marketing/Intro letter to local .org.uk’s (in progress)
  • Install for customer
  • Configure e-mail marketing; send communications
  • Systems:
    • Update shared accounts to new limits
  • PHP 
    • Admin panel tasks
    • test – scripting
    • release
  • Checkout testing
  • [recurring] Organise
    • networking group training 
    • changes to web site
    • arrange visitors
    • sales leads / prospects / meetings for next week  

    life

    misc

    • Fix bike
    • Fix bed

    this week (wk 7)

    work

    • General
    • CRM
      • System:
      • Sales
        • Marketing/Intro letter to local .org.uk’s
    • Systems:
      • Update shared accounts to new limits
      • Check and update VS disk space
    • PHP
      • Admin panel tasks
        • build – complete eCommerce
        • test
        • release
      • Checkout testing
    • [recurring] Organise
      • networking group training
      • changes to web site
      • arrange visitors
      • sales leads / prospects / meetings for next week  

    life

    misc

    last week (wk 6)

    work

    • CRM
    • Systems:
      • Update shared accounts to new limits
      • Check and update VS disk space
    • PHP
      • Admin panel tasks
        • build (ongoing)
        • test
        • release
      • Checkout testing
    • [recurring] Organise
      • networking group training 
      • arrange visitors
      • sales leads / prospects / meetings for next week  

    life

    misc

    this week (wk 6)

    work

    • System: 
  • Sales
    • Arrange 1-2-1s with visdes’s
    • Marketing/Intro letter to local .org.uk’s
  • Systems:
    • Update shared accounts to new limits
    • Check and update VS disk space
  • PHP 
    • Admin panel tasks
    • build
    • test
    • release
  • Checkout testing
  • [recurring] Organise
    • networking group training 
    • arrange visitors
    • sales leads / prospects / meetings for next week  

    life

    misc

    last week (wk 5)

    work

    • System: 
  • Sales
    • 1-2-1s with visdes’s
    • Tie down opps
  • Systems:
    • Update shared accounts to new limits
    • MTA switch
    • Check and update VS disk space
  • PHP 
    • Admin panel tasks
    • build (in progress)
    • test
    • release
  • Checkout testing
  • [recurring] Organise
    • networking group training 
    • arrange visitors
    • sales leads / prospects / meetings for next week  

    life

    misc

    this week (wk 5)

    work

    • CRM
    • System: 
    • Products/Quotes system
    • Update profiles
  • Sales
    • 1-2-1s with visdes’s
    • Tie down opps
  • Systems:
    • Update shared accounts to new limits
    • MTA switch
    • Check and update VS disk space
  • PHP 
    • Admin panel tasks
    • build
    • test
    • release
  • Checkout testing
  • [recurring] Organise
    • networking group training 
    • arrange visitors
    • sales leads / prospects / meetings for next week  

    life

    • Kung Fu
    • Salsa
    • Swim

    misc

    • Beer with fellow geek

    last week (wk 4)

    work

    • PHP admin panel tasks
    • scope
    • create / implement
    • test
    • release
  • [recurring] organise
    • networking group training 
    • arrange visitors
    • sales leads / prospects / meetings for next week
  • the ongoing resolution of remaining issues on ccart 0.1 🙂
  • configure router
  • VS sales
  • outline test plan for ccart 0.2
  • life

    • shop for new trainers

    misc

    • complete migration of personal email
    • decide which tech books to get 🙂


    this week (wk 3)

    work

    • organise
      • networking group training
      • sales leads / prospects / meetings etc.
    • financial year end
      • archive digital & hard copies
      • start new file
    • configure Cisco router
    • implement PHPUnit / Zend Framework unit testing
    • the ongoing resolution of remaining issues on ccart 🙂

    life

    • organise
      • documents
      • photos
    • reading plan

    misc

    • complete migration of personal email

    last week (wk 2)


    work

    • organise
      • browser bookmarks
      • documents
    • financial year-end
      • archive digital & hard copies
      • start new file
    • business cash flow planning
    • configure Cisco router
    • resolve remaining issues on ccart

    life

    • organise
      • documents
    • reading plan
    • go out, eat curry

    misc

    • complete migration of personal email

    this week (wk 2)

    work

    • organise
      • browser bookmarks
      • documents
    • financial year-end
      • archive digital & hard copies
      • start new file
    • business cash flow planning
    • configure Cisco router
    • resolve remaining issues on ccart

    life

    • organise
      • documents
    • reading plan
    • go out, eat curry 

    misc

    • complete migration of personal email

    last week (wk 1)

    work

    • bin the old chair 🙂
    • organise
      • customer appointments / projects
      • browser bookmarks
      • documents
    • financial year-end
      • archive digital & hard copies
      • start new file
    • business cash flow planning
    • configure Cisco router
    • visit dc to perform maintenance
    • resolve remaining issues on ccart

    life

    • organise
      • mp3s
      • documents
    • reading plan
    • get busted ankle checked out
    • schedule food/fit

    misc

    • complete migration of personal email

    With the aim of simplifying it all in 2011…

    work

    • bin the old chair 🙂
    • organise
      • customer appointments / projects
      • browser bookmarks
      • documents
    • financial year-end
      • archive digital & hard copies
      • start new file
    • business cash flow planning
    • configure Cisco router
    • visit dc to perform maintenance
    • resolve remaining issues on ccart

    life

    • organise
      • mp3s
      • documents
    • reading plan
    • get busted ankle checked out
    • schedule food/fit

    misc

    • complete migration of personal email

    I think it may be a good idea to start calling this “Fortnightly [p]review”…


    Last week

    Work
    • [-] Update CRM database with new data/purge old
    • [X] Layout fixes for customer web site
    • [-] Modify company site (content/volume/images)
    • [ ] Price review
    • [ ] Review marketing and sketch out action plan
    • [-] Draft templates for sales process
    • [-] Add help documentation for new web-based calendar tool
    • [X] Hosting set-up
    • [X] Prepare for new project (TBC)
    • [X] Complete SVN/Bugzilla integration project
    • [X] Housekeeping
    Life
    • [ ] Continue documentation effort for F/LOSS project
    • [X] Kung Fu
    • [X] Swimming x 2
    • [X] Finish sci-fi book
    • [X] Continue Personal Development
    Misc
    • [-] Uphold commitments @ old residence – see through to completion
    • [X] Cook something I’ve never cooked before (excludes dog, cat, rat, etc)
    • [X] Check out lenses for the DSLR

    This week
    Work

    • [ ] It’s all about the shopping cart system :-), but if there’s any time left…
    • [ ] Organise and attend various 1-2-1 meetings
    • [-] Update CRM database with new data/purge old
    • [-] Modify company site (content/volume/images)
    • [ ] Price review
    • [ ] Review marketing and sketch out action plan
    • [-] Finish templates for sales process
    • [-] Finish help documentation for new web-based calendar tool

    Life

    • [ ] Continue documentation effort for F/LOSS project
    • [ ] Kung Fu – reacquaint myself with yellow sash routines
    • [ ] Swimming x 2

    Misc

    • [ ] Cook something I’ve never cooked before
    • [ ] Test a couple of lenses for the DSLR
    Enhanced by Zemanta