April 13, 2009
Every now and then you come across something really funny on the Internet, like this brilliant discussion of dns wildcards at 1and1. Makes you wonder how many people out there are in this gig who don’t even have a clue. A lot I am thinking. I don’t know everything, and granted the dns stuff can get quite complex if you don’t fiddle around with it often, but I do at least have a clue.
I’ve looked into the dns thing with 1and1 before and know wildcards are not supported but everytime I need to add a new subdomain, I look around again to see if there is a trick I missed. As it is I have to create a subdomain in the 1and1 control panel before I can activate a blog under a domain. For a few domains each with a few subdomains its not so big a problem but if you ever get a site going that builds to hundreds or thousands of users the dns entries can get quite cumbersome and the wildcard restriction is a deal changer.
I guess your options are to move your hosting account or use a different dns service that allows wildcards and point both your top level domain and a wildcard subdomain to the proper place at your 1and1 site, say a WorpressMu installation, and let Wordpress handle the url rewrites. Big hassle. Probably better to move or upgrade to an account that allows wildcarding if you need that level of service. For $9.00 a month I guess I don’t have too many complaints with 1and1.
No Comments » |
Uncategorized |
Permalink
Posted by admin
April 10, 2009
I started writing this post yesterday around six in the morning when I became preoccupied with “the project” and the post wast left hanging with just the first paragraph so I’ll just start where I left off …
I’ve accumulated several weeks of legal tablet pages that need to be transcribed into the documentation files. Working at home, without a billable customer, can tend to make a guy slack off on the mounds of documentation that need to be maintained, which is at once the worst and most important part of any big project. It’s not so bad when you are getting paid for it.
Anyway, I’ve got about fifteen hand-written pages that need to be transcribed and inserted variously into the business plan and/or design document and I really need to spend some time this morning getting the documentation up-to-date… yet it’s looking like the task may get put off another day.
No Comments » |
Uncategorized |
Permalink
Posted by admin
April 6, 2009
It’s been three weeks since I last posted here, or anywhere else I think. I’ve been working on the new project daily since the last post and it seems when I get intensely preoccupied on something everything else takes a backseat. It’s how I’m wired. But today I have an update.
The new Wordpress plugin I am writing is not yet complete but it is getting close. I had a major hangup this past week that set me back several days. I was having much difficulty getting an ajax response from MySQL via the Wordpress framework. I am using a wrapper class called SACK (Simple Ajax Code Kit) that is included with Wordpress to handle the ajax requests and unfortunately I spent a day or so trying to understand SACK since I thought my problem was with how I had implemented the callback function or something. The good news I guess is that SACK works exactly as advertised and was not the problem. For simple ajax requests, I recommend SACK highly. Simple, yet versatile.
Loading a Google map with ajax came off without a hitch but when I tried to get a list of marker items from the database to overlay onto the map I was coming up blank. Sending an ajax request to a script on the server and getting results worked as expected but when I tried sending through the Wordpress wp_ajax_ action hook there was a glitch: The xml data simply would not come back and I had a dickens of a time pinpointing the problem spot in the process.
I tried many things and had to do some tricky debugging to see what was happening on the server when the ajax script was called. After writing some code that injected log messages into a MySql table I determined that the ajax action was never executing at all. Why? Well, just be sure to send your cookie info with the ajax request. D’oh!
It took almost five days to finally solve the problem but that is all in the past. In the process I learned a lot about generating valid xml and how to properly call a Wordpress Ajax action hook, not to mention intimate knowledge of the SACK wrapper class and the XMLHttpRequest object which it wraps. All good stuff.
Which brings us to the current status update. All that is left now are some functions to import and export map data, styling the admin screens, adding a widget for publishing maps to the front end, cleaning up the code, and setting up a support page on the distribution site, GulfCoastGeocache.com, and the first beta version of the Private Geocache Manager plugin will be available for download and installation. I reckon the import and export will take the most time but certainly by the end of the week I will have a much better idea of when the code will be released.
The inital beta version of the plugin will be very simple compared to the planned final version but it will be sufficient to create, import, export and manage one or more lists of geographical markers, along with the appropriate map interfaces for creating and viewing overlays.
No Comments » |
Uncategorized |
Permalink
Posted by admin