<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mikhail panchenko / blog &#187; wordpress</title>
	<atom:link href="http://mihasya.com/blog/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://mihasya.com/blog</link>
	<description>good things now come in packages of three</description>
	<lastBuildDate>Thu, 22 Mar 2012 21:08:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>oEmbed, or what I did instead of reading for class</title>
		<link>http://mihasya.com/blog/oembed-or-what-i-did-instead-of-reading-for-class/</link>
		<comments>http://mihasya.com/blog/oembed-or-what-i-did-instead-of-reading-for-class/#comments</comments>
		<pubDate>Sat, 29 Mar 2008 05:40:29 +0000</pubDate>
		<dc:creator>mihasya</dc:creator>
				<category><![CDATA[dev]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://mihasya.com/blog/?p=46</guid>
		<description><![CDATA[Like I said, I was writing a wordpress plugin. I wanted to automatically highlight code posted within &#60;pre&#62; tags. And no, I didn&#8217;t want &#60;code&#62; tags b/c those aren&#8217;t part of the native wordpress editor toolbar &#8211; the goal was to be able to embed highlighted code while just being completely lazy and staying the [...]]]></description>
			<content:encoded><![CDATA[<p>Like I said, I was writing a wordpress plugin. I wanted to automatically highlight code posted within &lt;pre&gt; tags. And no, I didn&#8217;t want &lt;code&gt; tags b/c those aren&#8217;t part of the native wordpress editor toolbar &#8211; the goal was to be able to embed highlighted code while just being completely lazy and staying the &#8220;Visual&#8221; tab.</p>

<p>This got boring really quickly, especially once I saw that someone had already done something similar, except <a href="http://www.nextthing.org/code/wp-states-highlight/">weak and pointless</a>. If I&#8217;m going to upload &#8220;code snippets,&#8221; why don&#8217;t I just run them through enscript while I&#8217;m at it and paste the damn output?</p>

<p>Anyway, then I thought &#8220;Hey, this <a href="http://tantannoodles.com/toolkit/wp-flickr-post-bar/">flickr plugin</a> I&#8217;m using kinda sucks and isn&#8217;t very good about letting me pick which size of photo I want to embed.&#8221; It&#8217;s a global setting. FAIL.</p>

<p>So then I thought &#8220;If Crowley&#8217;s drunken ramblings about some sort of open standard for embedding media had any actual substance, I could easily improve this.&#8221;</p>

<p>They did. He was talking about <a href="http://oembed.com/">oEmbed</a>.</p>

<p>I&#8217;m gonna cut this story short because I&#8217;m fucking burned, but here&#8217;s what I posted on Cal Henderson&#8217;s <a href="http://www.iamcal.com/discuss/topic7158/#reply141462">website&#8217;s discussion</a>:</p>

<blockquote>I&#8217;m messing around with oembed on flickr &#8211; not seeing a way to specify which size of the image I want to embed. I tried some combinations of changing the URL and maxwidth/maxheight settings in the request, but to no avail.

I tried:
<a href="http://www.flickr.com/services/oembed/?url=http://flickr.com/photos/mikepanchenko/617998417/&amp;maxwidth=3000&amp;maxheight=2000">www.flickr.com/services/oem&#8230;</a>
<a href="http://www.flickr.com/services/oembed/?url=http://flickr.com/photos/mikepanchenko/617998417/sizes/o/">www.flickr.com/services/oem&#8230;</a>
<a href="http://www.flickr.com/services/oembed/?url=http://flickr.com/photos/mikepanchenko/617998417/sizes/o/&amp;maxwidth=3000&amp;maxheight=2000">www.flickr.com/services/oem&#8230;</a>

All three return the same thing:
[ the xml output of <a href="http://www.flickr.com/services/oembed/?url=http://flickr.com/photos/mikepanchenko/617998417/">this request</a> ]
Are we not there yet?

I was thinking of making a flickr oembed wordpress plugin. It&#8217;ll still work, but will be limited to the one size.

Is there a way to work this? Would it be possible to set up server side logic @flickr which actually checks the <strong>/sizes/foo</strong> part of the URL and returns the appropriate URL/size info? I haven&#8217;t thought about it long (and it&#8217;s late) but that seems to be in line with the standard &#8211; would only have to change the url GET var in the request, putting all the logic on the providers side and just spitting out the right image.

Cheers.

Mike.</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://mihasya.com/blog/oembed-or-what-i-did-instead-of-reading-for-class/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

