8Nov/100

The Lazy way of working with XML Namespaces in PhP

Please understand the title of this message, this is a total hack but a good one, one that takes the complex notion of working with XML namespaces and makes it easy. There is a big chance that this will not work for ever application but it may help some in overcoming parsing complex XML.

The concept is quite simple, remove that which is causing the problem by using a string replace. Lets take the parsing of the Twitter Geo location. Make sure when applying this that you've checked to see that replaced value is unique.

Problem Area:

<twitter:geo>
<georss:point>40.3815 -79.8598</georss:point>
</twitter:geo>

Fix: Apply a string replace to the entire XML response, good by troublesome colons.

$response = str_replace("twitter:geo", "twittergeo", $response);
$response = str_replace("twitter:", "", $response);
$response = str_replace("georss:point", "georsspoint", $response);

I encourage you to read on and understand how to do this properly, but if examples are your thing here are a few.

14Feb/101

Twitter.class.php returning Error: 400

This could be one of my bigger lazy moments but after having to rebuild a server from v7 of Fedora to 8 and upgrading everything else in the LAMP stack I gave up and went with a new class, twitter.class.php and it works great, no more Error 400 on posts. The previous class (Twitter.class.php / Brandon Trebitowski Created: 02/26/2009 / Version: 1.0) was throwing too many errors and there were very little answers on the interwebs. Remember, can't stress this enough, I'm sure it's a configuration issue on my end that I don't have the patients to investigate.

This new class is just as easy to implement and comes with an example.php that is very easy to test. Thank you for your time in putting this together Simon Wippich.

Some final notes. This will throw 401 if you have the wrong credentials, Error 400 if you have them correct. The word around the blogs is 400 is related to flood control or the rate limit being reached. This was not the case. Also, Brandon, if you've addressed this in future versions of your class let me know and thank you for the amazing job you did on it!

18Nov/0919

Your blog post comments are being stolen!

Really?

As many of you have seen, a couple days ago I implemented a way to post inline replies or lets call them what they are, comments; on the front page of Planet Lotus. The comments appear right under the blog post itself and any registered member of the forum can make them. This is a half ass effort of mimicking the functionality of Facebook and not an attempt to steal the conversation way from blog posts. Half assed in that a pure ripoff would be ideal; it's the single best thing, in my opinion, about Facebook, and why I loath twitter.

So, is it stealing the conversation away from the blog post? It certainly could be seen as that, but couldn't you also group the posts that get sent to http://twitter.com/planetlotus or the Planet Lotus Facebook group in the same way? Go take a look, people have made comments to those posts, but i don't think those comments are the same as the comments made on the blog post itself. I think the commenter fully understands that it's not a message to the poster but rather to those deciding weather to read the post. The same could be said for Twitter. The comments or replies made to a post are about the topic in general, the poster, etc. This is the same way I hope the replies on PL are used. A way to comment on the post as it relates to being listed on PL.

If PL has jumped the shark, maybe this is a way to go back in time, to that dreaded day; and tell Fonzie to stay home. You could use this as a way to make a comment without it showing up on the actual persons' blog post, just a message to other potential readers pondering the click. Think about it, take a hyperbolic title, you could call someone out on it. How about the 18th post saying 8.5.1 is available for download?

In the end, the user will decide. Just like in many other areas of the site, it could die a slow death. It looks like this is the case since I'm the only one using it :) .

2Oct/090

Google Sidewiki

Google Sidewiki seems like a nice way to post graffiti like comments on Planet Lotus throughout the day. I've gone ahead and posted a note to get things started. If you're new to sidewiki here is the first article I found on it while looking up the date it was launched; Sept 23rd.

http://www.google.com/sidewiki/

Not sure how I stumbled across this tonight but its odd. All week I've been wanting to do something similar to PL after figuring out how to use Twitter OAuth for TwunLog.com, it would be nice to have an ajax like way to post small comments about posts on the PL main page.

So I'm curious, is anyone else using sidewiki?

4Jan/08Off

planetlotus.org Lotusphere Twitter details

Planet Lotus is seeking to expand its aggregation of feeds to benefit not only those on the ground at Lotusphere but those that couldn't make it.

If you are interested in having your Lotusphere (and beyond) tweets show up here send me; or post to comment below, your twitter rss feed. Make sure it's yours and does not include your friends time line (check to see that it starts with http://twitter.com/statuses/user_timeline/).

*You must have a blog listed on this site to participate.

*Twitter at Planet Lotus is Opt In only. Simply email me your twitter account username.

View what it will look like here: http://planetlotus.org/twitter/

Learn more here: http://www.twitter.com & http://en.wikipedia.org/wiki/Twitter

Email your feed here: yancylent ]@[ lotusreport.com

UPDATE. Please email me. Due to spam im closing the comments to this post.

3Jan/081

Lotusphere 2008 and Twitter

I'm looking for the best way to promote the blogging community's twitter at Lotusphere. I initially thought the Lotusphere Twitter account would do this, and maybe that is its mission, but it looks to be a handful of twitter-ers tweeting to everyone else. Please correct me if I'm wrong.

What I propose is allowing anyone with a blog posted here to either send me, or post as a comment; their twitter url / twitter rss feed and they will be included in a Twitter View off the main page.

My vision is the 'Lotusphere Twitter' link on mobile.planetlotus.org would incorporate all twitters.