Monthly Archive for December, 2007

Page 2 of 2

Development, holidays and stuff

Holidasy: I’m on holiday. As such, I’m somewhat less likely to get any messages you try to send me. Next week I won’t get any at all. Sorry about that.

Development: AjaxLife’s source has now been commented, at least to some degree. Client-side’s done, server is still to do. I have some nice things to add in the near future as well. Stability is a work-in-progress. :P

Stuff: A couple of days ago someone told me “Nobody would care if I called you Meredith.” – this may well be true, but it seems a somewhat random comment. In any case, it’s one of the few things from two days ago I actually remember, so I decided to put it down here.

Oh, and running WindLight on my laptop gives me the following highly encouraging message:
picture-2.png

It still manages to run faster than the standard client anyway, so meh. (20 FPS instead of 12 – with “Low” settings. Or 12 with “medium” + local lights.

Oh, more stuff: TSL Profiles is back. I’m going to put up some help pages in the new future so people can work out how to use it.

Going away for a bit.

I’m going to be hanging around in various middle-eastern countries for the next two weeks. I’ll have filtered internet access in one and none in the other. Expect even less activity than normal, and expect no AjaxLife access at all.

Bye!

Banned, apparently [or not]

UPDATED: Torley’s fixed this, apparently. Yays! Thank you! :D

I seem to have been banned from the SL forum without any notice or explanation. I can still log into SL though.

Banned?

How strange.

JSON API Tweaked + example data

I’ve altered the SL Search API to always return the “url” field, and also replaced the “uuid” field for events (which returned incorrect data) with an “id” field that correctly marks the ID.

All current bugs in regards to returning blank or null fields have been fixed. In addition, I have added to the URLs for the search (actually it did this before, but I forgot to document it)

It can now accept the following format:

http://services.katharineberry.co.uk/search/search/(main|teen|mature)[/(all|classifieds|events|groups|people|places|wiki)]/search+term[/page-number]

The new parameter is in bold, and is entirely optional. It sets the category through which to search. Some example URLs:

http://services.katharineberry.co.uk/search/search/teen/test+search – A search for “test search” on the TG
http://services.katharineberry.co.uk/search/search/teen/groups/Group – A search for “Group” in all TG groups
http://services.katharineberry.co.uk/search/search/teen/places/Land/2 – Page 2 (results 11-20) of a search for “Land” in all TG places
http://services.katharineberry.co.uk/search/search/main/test+search – A search for “test search” on the MG
http://services.katharineberry.co.uk/search/search/mature/test+search – A search for “test search” on the MG, with mature results enabled.

Click here for examples of each type

Demotivating

I hate it when my text editor crashes. I really don’t have the motivation to waste my time redoing what I’ve already done. This is even more annoying if it truncates the file while saving, but crashes before writing the new one.

New search for AjaxLife will have to wait until I can be bothered to re-code it. Again.

The code now looks something like this:

AjaxLife.NewSearch = function() {

}();

*sigh*

AjaxLife visitor statistics

Over the last three days, there have been 584 visits by 384 unique visitors to AjaxLife’s login screen.

Here’s a nice map:
AjaxLife Visitors 27-30th Nov 2007

These were generated by Google Analytics on the login screen. I don’t have any means of counting how many of these logged in.

Attempts to access the service while it was down are not counted.

As a further tidbit, 47% of visitors used Firefox, while 46% used IE. 3% used Opera and another 3% used Safari. The remainder is the PSP (which wouldn’t work anyway), Mozilla and Konqueror. 90% of visitors use Windows, 5% use Mac OS and 4% use Linux. The remainder is either unknown or a PSP.

The majority of users appear to come from within companies or universities. Who’s logging on in Wells Fargo instead of working? :P

JSON SL Search API

I’ve made a JSON-based interface to the new SL search, which provides access to all data available (I think).

All the methods have the base URL http://services.katharineberry.co.uk/search/.

Firstly, the search itself. This provides acccess to either MG or TG search, and provides information about all results on the page. It also supports specifying a page.

The format is as follows:

http://services.katharineberry.co.uk/search/search/(teen|main|mature)/search+string[/page-number]

The /page-number must be an integer, and is optional. If you use “teen” you get TG results, “main” gives MG results, and “mature” gives MG results with mature enabled. The output, assuming you know what JSON is, is fairly self-explanatory.

Additionally, you can access a bunch of other data:

http://services.katharineberry.co.uk/search/classified/required-uuid

http://services.katharineberry.co.uk/search/place/required-uuid

http://services.katharineberry.co.uk/search/resident/required-uuid

http://services.katharineberry.co.uk/search/region/required-uuid

http://services.katharineberry.co.uk/search/event/eventid

http://services.katharineberry.co.uk/search/group/required-uuid

Excluding events, all of the above expect a UUID in place of “required-uuid”. They can take both hyphenated and unhyphenated UUIDs. Events expect an Event ID, which are currently seven digit integers.

It can also pick out up to the top 100 popular places (I could do more – up to 50,000 – but capped it at 100 to save my server from certain death). The format for this is as follows:

http://services.katharineberry.co.uk/search/popular/(main|teen)/count

Using “main” gets MG data, “teen” gets TG data. “count” specifies the number of results to be returned.

Finally, as a bonus feature, if you have a key and have no idea what it’s for, put it in like this:

http://services.katharineberry.co.uk/search/unknown-uuid

This will make it search through the classifieds, parcels, residents, regions, events, groups, and textures. If it’s any of the above (except textures) it’ll return the same output as the standard services, with the added property “uuidtype” being set to one of the above. If it was a texture you only get the uuidtype. Please note that this takes several seconds to run, and is a relatively heavy job for my server.

I hope someone finds some use for this. Personally, I plan to use it in AjaxLife.