Captainskyhawk added something to Tumblr at 22:24 on 2010/01/28:

Captainskyhawk added something to Tumblr at 10:50 on :

Captainskyhawk added something to Tumblr at 20:24 on 2010/01/24:

Captainskyhawk added something to Tumblr at 22:13 on 2010/01/23:
““oftentimes the Inhabitants found the Armes & legges of dead Men, Women, and Children, scattered vp and down the feelds””

- LOL Manuscripts!: A true discourse Declaring the damnable life and death of one Stubbe Peeter, 1590

Integrating Picasa Web Photos with Wordpress

January 23rd, 2010

OMG is this so much harder than it needs to be.

Picasa (or Google) offers nothing in the way of little blog widgets (unlike Flickr’s great support for everything), nor is there really any third-party support for this kind of thing out on the web.

I don’t understand why, since — at least to me — what Picasa offers for free is so much better than what Flickr offers, still, even to this day. :\

Every third-party Wordpress plugin I’ve tried either doesn’t work, doesn’t work right, or needs so much configuration on the server side — and I’m talking about editing raw PHP here (unacceptable) or creating farking CURL scripts for the server (why did you even release this plugin?).

Sadly enough, the BEST solution I could find for the problem of integrating Picasa was actually done in straight JavaScript (yay!), found here: http://www.bloggingtips.com/2009/03/23/picasa-widgets-and-plugins-for-your-blog/

Her code works great, works fast, requires almost no configuration (besides your Picasa username), and uses JQuery, so pretty much anyone can edit and customize it.

Which I did. ^_^ Though the code works, it doesn’t appear to always grab your latest photos from Picasa. (I’m guessing it has something to do with the “max-results” flag in the URL string — you have to restrict the number of photos that Picasa feeds up for you to get the latest.) I also made each photo be a link to the Picasa page where it’s at, as well as cleaning up the code a little.

There’s basically two parts:

First, put this code in a widget text block where you want it to be in your wordpress blog (this is also where you can edit the style):

<style>
#picasaStream img {border: 1px solid #000; margin: 0 5px 5px 0;}
</style>  

<div id="picasaStream"></div>

Second, put this code either right after the widget, or wherever you put your JavaScript (if you choose to put it in another place, like a footer):

<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js"></script>

<script type="text/javascript">
/*
****	Uncomment this line if you are using other JavaScript libraries
****	(Prototype, Scriptaculous, etc.)
*/
// jQuery.noConflict();

jQuery(document).ready(function(){
	/*
	****	Change your Picasaweb username here,
	****	as well as how many thumbnails you want to show
	*/
	var _userName = "captainskyhawk",
		_count = 6

	/*
	****	Choose your thumbnail size here:
	**** 	"0" for small, "1" for medium, and "2" for large
	*/
	var _thumbnailSize = 0;

	/*
	****	Script Code
	****	No need to edit any further
	*/
	jQuery.getJSON("http://picasaweb.google.com/data/feed/api/user/"
		+ _userName + "?kind=photo&thumbsize=72c&access=public&alt=json&max-results="
		+ _count + "&callback=?",
		function(data){
			jQuery.each(data.feed.entry, function(index, pic) {
				jQuery('<a href="' + pic.link[1].href + '"><img src="'
					+ pic.media$group.media$thumbnail[_thumbnailSize].url
					+ '" alt="' + pic.summary.$t + '" /></a>')
				.appendTo("#picasaStream");
			});
		}
	);
});
</script>

Just change your name in the code from “captainskyhawk” (that’s me!), and it should work!

Captainskyhawk added something to Tumblr at 20:21 on 2010/01/15:

Dear Pat Robertson,

I know that you know that all press is good press, so I appreciate the shout-out. And you make God look like a big mean bully who kicks people when they are down, so I’m all over that action.

But when you say that Haiti has made a pact with me, it is totally humiliating. I may be evil incarnate, but I’m no welcher. The way you put it, making a deal with me leaves folks desperate and impoverished.

Sure, in the afterlife, but when I strike bargains with people, they first get something here on earth — glamour, beauty, talent, wealth, fame, glory, a golden fiddle. Those Haitians have nothing, and I mean nothing. And that was before the earthquake. Haven’t you seen “Crossroads”? Or “Damn Yankees”?

If I had a thing going with Haiti, there’d be lots of banks, skyscrapers, SUVs, exclusive night clubs, Botox — that kind of thing. An 80 percent poverty rate is so not my style. Nothing against it — I’m just saying: Not how I roll.

You’re doing great work, Pat, and I don’t want to clip your wings — just, come on, you’re making me look bad. And not the good kind of bad. Keep blaming God. That’s working. But leave me out of it, please. Or we may need to renegotiate your own contract.

Best, Satan



- Satan

Captainskyhawk added something to Tumblr at 14:45 on 2010/01/13:

Feminists
Gheys
Muslins
Seekrit Muslins
Scientists
Massachusetts
Jews
Ghey Feminist Jewish Scientists from Seekrit Massachusetts
Haiti

Captainskyhawk added something to Tumblr at 23:09 on 2010/01/07:

FF12 has actually been incredibly fun to play — the battle system is amazing. It’s the kind of battle system we should’ve had years ago (and I hope they carry it on to FF13). The “gambit” system makes fighting battles and grinding actually fun! The “license” system to leveling up abilities once again makes it possible to have a bunch of characters that are all exactly the same (not that that’s necessarily a problem).

Captainskyhawk added something to Tumblr at 11:35 on :


I understand modesty, but this guy just sounds like he’d be boring to talk to.

Captainskyhawk added something to Tumblr at 08:48 on 2010/01/05:
“Quite obviously, Brit Hume has never read Thich Naht Hanh’s brilliant ‘Please Call Me By My True Names.’ Buddha could teach fundamentalist Christians a thing or two about forgiveness. Come to think of it, so could Jesus.”

- Anonymous