tonybaldwin's posterous

tony baldwin

translator, hacker wannabe, artist, poet, heretic, and general misfit.
 

Daisy Wallpapers


click for full-size 1680x1050 wallpaper

African Daisy Wallpapers
photography by tony baldwin


click for full-size 1680x1050 wallpaper
Posted
 

daisies

(download)
http://tonyb.us/flora

Posted
 

flowers

(download)

Posted
 

Rhododendrons

(download)

Posted
 

Found a little friend in my garden this morning.

(download)

Posted
 

African Daisies (again) on my front porch

(download)

http://tonyb.us/flora - my floral photos.

Posted
 

another test

There's something weird going on at posterous. API calls are creating new spaces with weird names, like username-KlwFGtn.posterous.com Also, while I seem to be able to successfully post and make other api calls with bash curl, doing so with php-curl was working, and now isn't, and this seems to be sporadic....works for a while, then stops, so, it's not my code, it's something going on at posterous' end.
Posted
 

The Debian Administrator's Handbook

Read the Debian Administrator's Handbook online.

Written by two Debian developers — Raphaël Hertzog and Roland Mas — the Debian Administrator's Handbook started as a translation of their French best-seller known as Cahier de l'admin Debian (published by Eyrolles). It's a fantastic resource for all users of a Debian-based distribution. Accessible to all, this book teaches the essentials to anyone who wants to become an effective and independant Debian GNU/Linux administrator. It covers all the topics that a competent Linux administrator should master, from the installation and the update of the system, up to the creation of packages and the compilation of the kernel, but also monitoring, backup and migration, without forgetting advanced topics like SELinux setup to secure services, automated installations, or virtualization with Xen, KVM or LXC.

or: Buy a hard copy.


(and don't forget to see who contributed! Hmmm...indeed, that Anthony Baldwin of Baldwin Linguas mentioned does look familiar...I learned a lot working on this project, and had fun, too.) #debian #sysadmin

Posted
 

testing 1 2 3

testing 1 2 3 is this thing on? sent over api from bash, curl, vim see http://tonyb.us/ppost
Posted
 

Finding your Posterous site_id

So, I wrote a plugin (or more accurately, updated an existing plugin to work with the current API) that allows users of friendica to cross-post to their posterous blog.
Configuration of the plugin requires the user to know their username, password, api_token, and site_id.

Finding your api_token is easy enough: Just go to posterous.com/api and use the first query to get it.

Finding your site_id is not so clear cut, I'm afraid. I could not find reference to this value anywhere in my user profile on posterous, nor find any mention in the help and FAQ portions of the posterous site.
It's mystifying...how does one find this value?
Of course, if you have more than one posterous blog or site, you will have multiple site_id numbers, but with the friendica plugin only works with one. Presumably, you would use it for a personal posterous blog, or, if you have a friendica acct. set up for some other entity, you would use the posterous site associated with said entity. But, to the matter at hand, how to find this site_id number?
Well, I did figure out how, and it requires a call made over API (not trivial for most users), so I've created two means to find a site_id.:

At this page, you can enter your username, password, and api_token, and the page will return your site ID.
The underlying code of the page is show here: http://tonybaldwin.me/hax/doku.php?id=misc:findpostid
so you can see what the page is doing (to be sure I'm not collecting your login data to post nekkid pix of your mum to your blog or anything, etc.)

That page will only work for those with a single posterous blog (or, at the very least, if you have multiple blogs, it will only return the site_id for the first one), so another method is needed for those who have multiple blogs to sort out their IDs.
For that, at http://tonybaldwin.me/hax/doku.php?id=misc:findpostid I also have included a bash script which will make the same API call, then list all your site nicknames and associated site_id numbers. Full code of the script is shown, with sample output.

I post this here for anyone else as mystified as I was about how to find this value.

keywords: api posterous site_id


./tony

Posted
Posterous theme by Cory Watilo.