December Sun – A Web Comic

March 12, 2009

Clustermaps and Globetrotter

Filed under: 3,Code,computer games — admin @ 11:38 am

india and china - two countries that havent visited me yet

So I’ve got the Clustermaps widget on my site now, and this is a fun little application to see where people (and spambots!) are supposedly visiting from. And one thing I’ve noticed is that I don’t have any visitors from India (or China, for that matter.)  I wonder what the deal is: maybe my sketchy, experimental webcomic or my vague and mostly irrelevant blogposts just don’t have any appeal to these lands.  Or maybe I need to be leaving more blogs comments on commentluv-enabled blogs from India and China?  Or maybe if I did a writeup about something like the “Festival of Holi” or something (I don’t even know exactly what this is, actually, but I know that it’s a holiday for some of my co-workers.)  However, my blog posts already veer far enough off the topic of comic books as is, so I don’t know how that’s going to help anything.

a good and fair waste of time gaming onlineRegardless, on the subject or world geography, here’s a fun game I’d recommend that actually helps teach you where various cities and countries are around the world.  Called ‘Globetrotter’, it’s actually a lot of fun, and as you play, you’re learning things!  What a cool concept!  My skills with geography are right up there with my understanding of 16th century Belgian opera, so it makes for a good learning experience.

Granted, I’ve been dedicating myself to NOT wasting any more time online with games anymore, but this is the exception: at least with this, there’s a semblance of learning to be gained, that may or may not be valuable (if, for instance, I never leave my home.)

February 17, 2009

Mortal Mail – part #2 – initial test works!

Filed under: 3,Code,yahoo — admin @ 4:11 pm

Finally, with a little help from the YDN folks, I’ve got an initial working test of the Yahoo! API app. Click here to check it out, but don’t expect much…

Granted, it doesn’t do much, but it will now confirm the level of your Yahoo! Mail account, whether it’s premium or not (I have a premium account due to my AT&T account, but since Yahoo! has been scrapping it’s applications lately that AT&T customers used to get for free, like Launchcast radio and Yahoo! briefcase, I hope that Premium Mail isn’t something they plan to take away too.)

Anyhow, when start the app, it starts at an initial page, then bounces over to Yahoo! to authenticate the account, then shoots back to a php script that displays if the user’s account is premium or not. It’ll route to a page like this…

Mortal Mail

Welcome to Mortal Mail, Robs sorry excuse to teach himself PHP

We construct the URL

We construct the SOAP client…done

remove the leading Y from the cookie string…done

We set the Y cookie in the SOAP client…done

This is a Premium User

Now I need to spruce this script up a little bit. That’ll probably be a few months from now when I’m finished…

February 13, 2009

Yahoo! Mail API – fun timewaster going nowhere

Filed under: 3,Code — admin @ 11:44 am

One of my hobbies when I have time is teaching myself more about PHP, SOAP, and webservices, both for the sake of this site, and for other stuff. Some of that other stuff includes experimenting with the Yahoo! Mail API. I’ve been fiddling with this over the last couple months, but regardless of my efforts, I haven’t had much success. The Yahoo! API is freely available here, and you can use a number of different languages to access it. I’ve been using the PHP5 samples, namely because, as I just mentioned, it’s also what I use here.  Here is a link to what I have so far.  It doesn’t do much, but, well, it’s a start…

My experiment has been to build a custom version of Yahoo! Mail, with a much more interesting interface for reading and deleting email. But so far, there isn’t much to it other than the initial welcome screen (featuing PHP code more or less taken verbatim from the YDN documents), then you route to Yahoo! to log in and authenticate, then it’s back to my site where you crash with the following error:

Welcome to Mortal Mail, Robs sorry excuse to teach himself PHPWe construct the URL We construct the SOAP client We remove the leading Y from the cookie string We set the Y cookie in the SOAP client We attempt to get user data Caught fault ============ object(SoapFault)#2 (8) { ["message:protected"]=> string(78) “Error Fetching http body, No Content-Length, connection closed or chunked data” ["string:private"]=> string(0) “” ["code:protected"]=> int(0) ["file:protected"]=> string(47) “/homepages/10/d264766990/htdocs/code/test2.php5″ ["line:protected"]=> int(36) ["trace:private"]=> array(3) { [0]=> array(4) { ["function"]=> string(11) “__doRequest” ["class"]=> string(10) “SoapClient” ["type"]=> string(2) “->” ["args"]=> array(5) { [0]=> string(214) “ ” [1]=> string(62) “ &WSSID=” [2]=> string(0) “” [3]=> int(1) [4]=> int(0) } } [1]=> array(4) { ["function"]=> string(6) “__call” ["class"]=> string(10) “SoapClient” ["type"]=> string(2) “->” ["args"]=> array(2) { [0]=> string(11) “GetUserData” [1]=> array(0) { } } } [2]=> array(6) { ["file"]=> string(47) “/homepages/10/d264766990/htdocs/code/test2.php5″ ["line"]=> int(36) ["function"]=> string(11) “GetUserData” ["class"]=> string(10) “SoapClient” ["type"]=> string(2) “->” ["args"]=> array(0) { } } } ["faultstring"]=> string(78) “Error Fetching http body, No Content-Length, connection closed or chunked data” ["faultcode"]=> string(4) “HTTP” }

So, knowing virutally nothing at this point about debugging SOAP errors, I’ve got a lot of research to do still.  But at the least, I thought I’d document my progress here.  As a user of Yahoo! Mail for ages, I think it would be very interesting to build a custom application for reading my email, but, it’s still going to be awhile before I get that far.

Powered by WordPress