OAuth 2.0 in emacs – Part 4

Finally managed to authenticate against WordPress.com using the oauth2 library. Here is my sample code which returns an access token. (let ((code (oauth2-request-authorization “https://public-api.wordpress.com/oauth2/authorize?blog=jasonblewis.wordpress.com” “2194” “” “” “http://emacstragic.net”) )) (oauth2-request-access “https://public-api.wordpress.com/oauth2/token” “2194” “” code “http://emacstragic.net” ) ) WordPress at least seems to be fussy about what you use as the Redirect URI. It needs to… Continue reading OAuth 2.0 in emacs – Part 4

OAuth 2.0 in emacs – Part 2

Back the basics. Reading through the docs again I decided try and and authorise using this url first. https://public-api.wordpress.com/oauth2/authorize?client_id=2194&redirect_uri=http://emacstragic.net&response_type=code This takes me to a wordpress.com page to ask me to authorise. So, then it started to make sense to me. (oauth2-request-authorization "https://public-api.wordpress.com/oauth2/authorize" "2194" "" "" "http://emacstragic.net")(oauth2-request-authorization "https://public-api.wordpress.com/oauth2/authorize" "2194" "" "" "http://emacstragic.net") That above function launches… Continue reading OAuth 2.0 in emacs – Part 2

Expadirk: a hack to split PDFs and email based on instructions within

Sune Vuorela wrote a post asking people to make sure their private hacks become public. That inspired me to publish Expadirk. Expadirk is my solution to my accounting software provider requiring me to purchase yet more proprietary software in order to send statements, purchase orders and invoices by email. The accounting package has a way of outputting print… Continue reading Expadirk: a hack to split PDFs and email based on instructions within

Import historical data from Apache logs into AWStats

One of my clients had a problem where the last 6 months of data was not in Google Analytics. Upon investigating it turned out that for some reason the WordPress Google Analytics plugin was not active. I could not determine why it was not active when I am sure I set it up in the… Continue reading Import historical data from Apache logs into AWStats

Lego Brick Separator

We got some Lego for my son the other day and it came with a Lego Brick Seprarator which has to be the best invention since Lego itself. It makes short work of stubborn bricks that are stuck together. As a kid I used to resort to using my teeth to separate them. This thing makes… Continue reading Lego Brick Separator