<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>www.x-pose.org news blog</title>
<link>http://www.x-pose.org</link>
<description>x-pose.org blog</description>
<copyright>Copyright 2006</copyright>
<item>
<title>5 Reasons DiggBar Sucks</title>
<description>Diggbar sucks.&amp;nbsp; The fact that Digg even had the balls to put this on their site with no way to disable it shows how arrogant they have become.&amp;nbsp; Here is a quick rundown as to why the &lt;span style=&quot;font-weight: bold;&quot;&gt;Diggbar sucks&lt;/span&gt;.&lt;br&gt;&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Digg Uses it to Inflate Their Stats&lt;/span&gt;.&amp;nbsp; &lt;br&gt;Digg is quickly losing ground to sites such as Twitter and has recieved major competition from Yahoo Buzz.&amp;nbsp; Their solution?&amp;nbsp; Cheat.&amp;nbsp; Every outgoing story link now uses their shortened URL service.&amp;nbsp; This means that they never actually leave the Digg.com site.&amp;nbsp; Rather they just use iframes to show the real page under their DiggBar.&amp;nbsp; Guess what Digg includes in the DiggBar?&amp;nbsp; Javascript stat trackers for Quantcast and Microsoft Analytics.&lt;/li&gt;&lt;br&gt;&lt;li&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Digg.com for SEO is now pointless&lt;/span&gt;.&lt;br&gt;If you used to use Digg.com to submit your site for a quality incoming link, then that is gone.&amp;nbsp; Not only does a link to your site no longer appear at digg.com, but your page isn&#039;t even looked at by Google.&amp;nbsp; Look at the source code for a digg shortlink.&amp;nbsp; It contains absolutely no information about the actual content.&amp;nbsp; Instead it is just Digg.com content about comments and other various crap.&amp;nbsp; Source site loses bigtime.&lt;/li&gt;&lt;br&gt;&lt;li&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;DiggBar Contains AdCode&lt;/span&gt;.&lt;br&gt;On every page that loads the diggbar, you will see: http://Ads1.msn.com/library/dap.js .&amp;nbsp; Thanks Digg, clearly you have plans to show ads on other peoples pages.&amp;nbsp; &lt;br&gt;&lt;/li&gt;&lt;br&gt;&lt;li&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;DiggBar Controls Meta Tags&lt;/span&gt;&lt;br&gt;Again, look at the source code.&amp;nbsp; Diggbar fills in the meta description and keywords with whatever it wants.&amp;nbsp; The current default meta keywords are: &quot;Digg, Digg.com, news, images, videos, vote, content&quot; .&amp;nbsp;&lt;/li&gt;&lt;br&gt;&lt;li&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;DiggBar Increases Pageload Size&lt;/span&gt;.&lt;br&gt;Thanks to the Diggbar&#039;s added Javascript the page size has increased for every single page.&amp;nbsp; &lt;br&gt;&lt;/li&gt;&lt;/ol&gt;Don&#039;t stand for Digg&#039;s bullshit.&amp;nbsp; If they wanted to improve the time each user spent on their site they would actually do something useful like adding comment reply notifications.  Instead they opted to create some spammy toolbar that in NO WAY helps the end user.  This is how Digg uses their resources these days.  Well, that and shitty Digg labs projects with a sponser to generate money. Hmmm!  If you&#039;re not pissed off, then you should be.  I say we opt for another HD DVD Key uprising.&amp;nbsp; You in?</description>
<link>http://www.x-pose.org/blog/145/</link>
<guid>http://www.x-pose.org/blog/145/</guid>
</item>
<item>
<title>Bit.ly PHP Example code</title>
<description>As promised here is some Bit.ly PHP example code using their API to generate URLs. &amp;nbsp;There is also some extra code that deals with advanced API usage towards the end of this post. &amp;nbsp;It is important to note that these examples assume that you have cURL installed. &amp;nbsp;I am also opting to use the JSON method of data delivery. &amp;nbsp;Now let&#039;s get to the Bit.ly basics and look at a function to generate a shortened URL.&lt;br&gt;&lt;br&gt;

&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;
/* Example code */
$link = &quot;http://www.x-pose.org&quot;;

print getSmallLink($link);

function getSmallLink($longurl){
// Bit.ly
$url = &quot;http://api.bit.ly/shorten?version=2.0.1&amp;longUrl=$longurl&amp;login=YOURLOGIN&amp;apiKey=YOURAPIKEY&amp;format=json&amp;history=1&quot;;

$s = curl_init();
curl_setopt($s,CURLOPT_URL, $url);
curl_setopt($s,CURLOPT_HEADER,false);
curl_setopt($s,CURLOPT_RETURNTRANSFER,1);
$result = curl_exec($s);
curl_close( $s );

$obj = json_decode($result, true);
return $obj[&quot;results&quot;][&quot;$longurl&quot;][&quot;shortUrl&quot;];
}
&lt;/pre&gt;&lt;br /&gt;

If you want to get fancy then you can add error checking. &amp;nbsp;Also the variable &amp;amp;history=1 in the URL allows you to keep track of your generated urls via the API. &amp;nbsp;Otherwise they are not saved in your history. &amp;nbsp;Now lets get to some advanced Bit.ly usage. .&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Let&#039;s say you are trying to grab some extra data from the following Bit.ly link:&amp;nbsp;&lt;b&gt;http://bit.ly/info/13SH5 . &amp;nbsp;&lt;/b&gt;Of course the most important part of that link is the Hash at the end. Here is an example how to print the Title of the page and the meta description:
&lt;br /&gt;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;
/* Example code */
$hash = &#039;13SH5&#039;;
$url = &quot;http://api.bit.ly/info?version=2.0.1&amp;login=YOURNAME&amp;apiKey=YOURAPIKEY&amp;hash=$hash&quot;;

$s = curl_init();
curl_setopt($s,CURLOPT_URL, $url);
curl_setopt($s,CURLOPT_HEADER,false);
curl_setopt($s,CURLOPT_RETURNTRANSFER,1);
$result = curl_exec($s);
curl_close( $s );

$obj = json_decode($result, true);
print $obj[&quot;results&quot;][&quot;$hash&quot;][&quot;htmlTitle&quot;];
print $obj[&quot;results&quot;][&quot;$hash&quot;][&quot;htmlMetaDescription&quot;];
&lt;/pre&gt;


Still with me? &amp;nbsp;As you know there is much more data than just the title and description for some of the info pages. &amp;nbsp;Some even include automatically generated categories of what the webpage is about. &amp;nbsp;So lets save those categories into an array that were tagged for this page:&lt;br&gt;
&lt;br /&gt;

&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;
/* Example code */
foreach($obj[&quot;results&quot;][&quot;$hash&quot;][&quot;calais&quot;] as $items){
			$cat[] = $items[0];
}
&lt;/pre&gt;

As you can see Bit.ly is very powerfull stuff. &amp;nbsp;Hopefuly this example code was able to help you out. &amp;nbsp;Stay tuned for my next batch of useful example code that allows you to automatically make blog posts via wordpress.</description>
<link>http://www.x-pose.org/blog/144/</link>
<guid>http://www.x-pose.org/blog/144/</guid>
</item>
<item>
<title>TinyURL Sucks</title>
<description>TinyURL sucks and its about time people find another alternative.&amp;nbsp; They did invent a new way of shortening links, but they have done little to improve their service since its launch several years ago.&amp;nbsp; Not to mention it has gone down multiple times over the past few years.&amp;nbsp; Competitors such as &lt;a href=&quot;http://bit.ly&quot;&gt;bit.ly &lt;/a&gt;have already surpassed them in features.&lt;br&gt;&lt;br&gt;In fact bit.ly is so good that they have 2million dollars in investment money.&amp;nbsp; &lt;a href=&quot;http://www.readwriteweb.com/archives/look_out_tinyurl_bitly_gets_hot_silicon_valley_h.php&quot;&gt;ReadWriteWeb loves it &lt;/a&gt;so much that they have writen about the service multiple times. You are probably thinking what I&#039;m thinking. . . wtf does a company that shortens urls need 2 million dollars for?!?&lt;br&gt;&lt;br&gt;In any case, Bit.ly is a quality service that shows stats about clickthroughs of shortened links that have never been done before.&amp;nbsp; Here is one such example that is a shortened link about &lt;a href=&quot;http://bit.ly/info/13SH5&quot;&gt;Digg&#039;s latest townhall.&lt;/a&gt;&amp;nbsp; Neat right?&amp;nbsp; Not to mention it is a shorter URL than TinyURL.&amp;nbsp; So if its characters you are worried about when writting a twitter post, then use Bit.ly.&lt;br&gt;&lt;br&gt;In my next blog post I will write about how to use bit.ly and provide some example code using its API.&amp;nbsp; Stay tuned.&lt;br&gt;&lt;br&gt; Now, take a look at some &lt;a href=&quot;http://www.x-pose.org/blog/144/&quot;&gt;Bit.ly Example Code&lt;/a&gt;</description>
<link>http://www.x-pose.org/blog/143/</link>
<guid>http://www.x-pose.org/blog/143/</guid>
</item>
<item>
<title>Wikipedia RSS Feeds</title>
<description>&lt;span style=&quot;font-weight: bold;&quot;&gt;Wikipedia&lt;/span&gt; is a huge site so one might assume that they offer their articles in easy to use &lt;span style=&quot;font-weight: bold;&quot;&gt;RSS Feeds&lt;/span&gt;.&amp;nbsp; Well, they don&#039;t and not only that but its overly complex.&amp;nbsp; All I want is to grab the &quot;Summary&quot; of Wiki entries.&amp;nbsp; I&#039;ve spent hours on this one and here are my findings.&lt;br&gt;&lt;br&gt;Let&#039;s start with the &lt;a href=&quot;http://en.wikipedia.org/w/api.php&quot;&gt;Wikipedia API&lt;/a&gt;.&amp;nbsp; I thought that it would be simple, something like &lt;span style=&quot;font-weight: bold;&quot;&gt;http://en.wikipedia.org/w/api.php&amp;amp;query=Microsoft&amp;amp;format=xml&lt;/span&gt; would be the extent of my troubles.&amp;nbsp; Boy was I wrong.&amp;nbsp; I&#039;ll give you a second to load their api and read some of the examples.&amp;nbsp; Seem overwhelming?&amp;nbsp; Did you really think this would be easy?&amp;nbsp; How silly.&amp;nbsp; When you finally do seem to return results of entries, they are in Wikipedia formating.&amp;nbsp; DOH!&amp;nbsp; Now we need another step.&lt;br&gt;&lt;br&gt;I&#039;ve searched the web for a website that allows you to query the article and parses the formating to readable html.&amp;nbsp; Then I found just the site I needed to query the data, format it, and offer it in an easy to use rss feed.&amp;nbsp; Turns out that site no longer exists today.&amp;nbsp; Then I come across &lt;span style=&quot;font-weight: bold;&quot;&gt;MediaWiki &lt;/span&gt;which makes no sense to me as how it can help me.&amp;nbsp; So I chose a different route...&lt;br&gt;&lt;br&gt;Let&#039;s look for ways to parse the data from &lt;span style=&quot;font-weight: bold;&quot;&gt;Wikipedia&lt;/span&gt;.&amp;nbsp; There are many options to do this, so many in fact that you want to rip your own eyeballs out because none of them are easy and straightforward with adequate documentation.&amp;nbsp; PHP users may come across &lt;span style=&quot;font-weight: bold;&quot;&gt;Wiki_text &lt;/span&gt;which is available in the Pear framework.&amp;nbsp; Good luck using that with no documentation.&lt;br&gt;&lt;br&gt;I was really hoping to end this post with the method in which I used to grab &lt;span style=&quot;font-weight: bold;&quot;&gt;Wikipedia &lt;/span&gt;entries.&amp;nbsp; Unfortunately I cannot help you.&amp;nbsp; However, if one day I am so inclined to give it another shot and do find an answer then I will be sure to make a blog post about it.&lt;br&gt;&lt;br&gt;Until then I ask you to chime in and post information on how to grab wikipedia content in readable format in an RSS feed.&lt;br&gt;&lt;br&gt;Am I the idiot or what?&lt;em&gt;&lt;/em&gt; </description>
<link>http://www.x-pose.org/blog/142/</link>
<guid>http://www.x-pose.org/blog/142/</guid>
</item>
<item>
<title>Obama is a Celebrity First, President Second</title>
<description>Have you noticed that Obama literally is all over the place?&amp;nbsp; Remember the Super Bowl when Obama was interviewed prior to the game?&amp;nbsp; ESPN does multiple reports about what he said in regards to the BCS and College Football.&amp;nbsp; Heck, right now Obama is on the front page of ESPN.com about his &lt;a href=&quot;http://sports.espn.go.com/ncb/ncaatourney09/columns/story?num=0&amp;amp;columnist=katz_andy&amp;amp;id=3991859&quot;&gt;NCAA brackets&lt;/a&gt;.&amp;nbsp; Remember the fuss over his Blackberry?&lt;br&gt;&lt;br&gt;The question is why.&amp;nbsp; Why is the media so different with Obama than previous presidents?&amp;nbsp; It seems to me he is famous for being Obama and just so happends to be President as well.&lt;br&gt;&lt;br&gt;Please, give it a rest. He actually has work to do.&lt;br&gt;</description>
<link>http://www.x-pose.org/blog/141/</link>
<guid>http://www.x-pose.org/blog/141/</guid>
</item>
</channel>
</rss>
