notes.husk.org. scribblings by Paul Mison.

2011-06-29

post/7035845755

photo 06:17:36
For a long time, I’ve maintained a set called Your Favourites on Flickr, which contains those photos that lots of people have marked as, well, a favourite. For ages I did this by hand, but I’ve finally got lazy enough to write a little script that does it. As it’s only a one-off, gist seemed the best place, but I thought I’d still write a short blurb for it.
It’s pretty straightforward. It only uses two methods, flickr.stats.getPopularPhotos and flickr.photosets.editPhotos, but that’s enough to generate a set of 81 photos (making a nice square from the new nine-wide thumbnail layout on set pages).
Of course, it would be nice if this had a web interface, and if it offered to let you choose a set to use or to create a new one, and so on, but I already had the set, and like I said, I’m lazy. Feel free to fork it and make it do any of that stuff.
One thing to note is that the flickr.stats methods are only available to pro users who’ve opted in to statistics, so this isn’t that useful if you’re not one. Sorry.
(Ironically, the original un-inverted picture of a star I’m using to illustrate the post is no longer in the set. Ah well.)

For a long time, I’ve maintained a set called Your Favourites on Flickr, which contains those photos that lots of people have marked as, well, a favourite. For ages I did this by hand, but I’ve finally got lazy enough to write a little script that does it. As it’s only a one-off, gist seemed the best place, but I thought I’d still write a short blurb for it.

It’s pretty straightforward. It only uses two methods, flickr.stats.getPopularPhotos and flickr.photosets.editPhotos, but that’s enough to generate a set of 81 photos (making a nice square from the new nine-wide thumbnail layout on set pages).

Of course, it would be nice if this had a web interface, and if it offered to let you choose a set to use or to create a new one, and so on, but I already had the set, and like I said, I’m lazy. Feel free to fork it and make it do any of that stuff.

One thing to note is that the flickr.stats methods are only available to pro users who’ve opted in to statistics, so this isn’t that useful if you’re not one. Sorry.

(Ironically, the original un-inverted picture of a star I’m using to illustrate the post is no longer in the set. Ah well.)

2009-08-09

Simon Willison’s Twitter client

text 22:33:38

I went through pages of history so you don’t have to. Sounds like it’d be pretty easy to copy.

Finally broke down and wrote my own stupid twitter client on the train… it does groups! (July 3rd)
@rboulton as a matter of fact I did :) mongodb + about 100 lines of Python (July 3rd)
Having your own Twitter client that saves tweets to a persistent store is AWESOME - group support, search over just people you follow… (July 4th)
my dumb home grown Twitter client is now powered by djng! (July 4th)
@TrevorGerzen it’s really simple - just a script that dumps tweets in to mongodb every 60 seconds, and a one-page Django app that shows them (July 4th)
@rboulton @cackhanded haven’t decided if I’ll release my client yet (July 6th)
@JimPurbrick my custom Twitter client now archives everything from people I follow (in MongoDB), it’s a really useful feature (July 8th)

2008-12-16

post/65054177

quote 00:07:53
“ XML is not the answer. It is not even the question. … This is a different situation than in Java, because compared to Java code, XML is agile and flexible. Compared to Python code, XML is a boat anchor, a ball and chain. ”
Phillip J. Eby, Python is not Java.

2008-09-14

snaptrip: an announcement of sorts

text 21:28:14

I’ve finally got to the point where I’m happy to really start posting about snaptrip.

snaptrip is a little web project that lets you use Dopplr and Flickr together. Initially, it allows you to put machine tags - specially formatted bits of data - on your Flickr photos. Why bother? Well, Dopplr itself uses this data, if available, to show you photos on its site.

Obviously that’s a bit dull, and I do have further plans going forward, but because I’ve been stopping quite often to polish the app as I was building it, it’s been a bit slower than I’d like. (I’ve also been using it to learn about both Python and Google App Engine - the appspot.com gives that bit away).

Anyway, once I’ve sorted out a couple of little niggles, I’ll probably post more about this elsewhere, but for now, if you have a Dopplr account, feel free to try it.

what

more