Development Status

User avatar
Corfman Clan
Global Moderator
Posts: 914
Joined: January 17th, 2012, 12:21 am

Re: Development Status

Post by Corfman Clan »

Just another quick update. I was able to figure out how to update the Leaderboard query to include not only the total points, but also the hide/find points. This project is stretching my SQL capabilities to the max. I suppose that is a good thing :ugeek:

Also, since I'm not interested in world domination (or am I :?: :twisted: ), I updated the DB to be LonelyCache Wide instead of WorldWide.
Best All Around Board
Best All Around Board
LCP_BAR.jpg (50.63 KiB) Viewed 15613 times
Again, for those into this kind of thing :ugeek: , here's the SQL query for the above pic, another small glimpse into the LonelyCache database schema: :roll:

Code: Select all

SELECT Row,Ranking,CacherID,Cacher,Total
      ,(select sum(OverallPoints)from GeocacherPoints
        Where CacherID=r.CacherID and job=1 and RegionID = 1) FindsTotal
      ,(select sum(OverallPoints)from GeocacherPoints
        Where CacherID=r.CacherID and job=2 and RegionID = 1) HidesTotal
 FROM
 (SELECT
   ROW_NUMBER() OVER (ORDER BY Total DESC, g.Name) AS Row
  ,RANK() OVER (ORDER BY Total DESC) AS Ranking
  ,CacherID, g.Name as Cacher, Total
  FROM
 (SELECT CacherID, SUM(g.OverallPoints) AS Total
  FROM dbo.GeocacherPoints g
  WHERE regionid = 1 AND Job IN (1,2)
  GROUP BY CacherID) s
JOIN dbo.Geocacher g ON g.ID = CacherID) r
WHERE Row between 1 and 100
ORDER BY Row
Image
rocketsciguy
Posts: 145
Joined: January 18th, 2012, 9:55 am

Re: Development Status

Post by rocketsciguy »

Corfman Clan wrote:Again, for those into this kind of thing :ugeek: ,
Sorry, did I hear someone say my name? My ears are burning.
Corfman Clan wrote: here's the SQL query for the above pic, another small glimpse into the LonelyCache database schema: :roll:

Code: Select all

SELECT Row,Ranking,CacherID,Cacher,Total
      ,(select sum(OverallPoints)from GeocacherPoints
        Where CacherID=r.CacherID and job=1 and RegionID = 1) FindsTotal
      ,(select sum(OverallPoints)from GeocacherPoints
        Where CacherID=r.CacherID and job=2 and RegionID = 1) HidesTotal
 FROM
 (SELECT
   ROW_NUMBER() OVER (ORDER BY Total DESC, g.Name) AS Row
  ,RANK() OVER (ORDER BY Total DESC) AS Ranking
  ,CacherID, g.Name as Cacher, Total
  FROM
 (SELECT CacherID, SUM(g.OverallPoints) AS Total
  FROM dbo.GeocacherPoints g
  WHERE regionid = 1 AND Job IN (1,2)
  GROUP BY CacherID) s
JOIN dbo.Geocacher g ON g.ID = CacherID) r
WHERE Row between 1 and 100
ORDER BY Row
That is a nice display of SQL power, right there! Multiple queries within queries, and not all that intuitive how you had to do it. I hope you had to experiment and build it piece at a time, and weren't able to crank that out off the top of your head! I do have some questions which I will create a new topic for.
User avatar
Corfman Clan
Global Moderator
Posts: 914
Joined: January 17th, 2012, 12:21 am

Re: Development Status

Post by Corfman Clan »

It's hard to believe that we've been working on this for about five months now. This has turned out to be quite an undertaking. Thank you for your patience and continued support!

Since the last status update, we've improved upon the leaderboard pages. We've added pages displaying a list of caches by rank for whatever the leaderboard. In addition, we've started work on showing a cacher's standings in the various leaderboards.

Right now, we're working towards completing what we feel is needed to apply for the Geocaching.com access keys for the production API. That will allow us to move off of the staging DB and start gathering up to date data.
Image
cdsoccer7
Posts: 20
Joined: January 18th, 2012, 9:17 am

Re: Development Status

Post by cdsoccer7 »

WOOHOO!!! sounds like we are getting close...just in time for part of the summer caching season...

Thanks for all that you have done and continue to do! Five months is nothing when we keep our eyes on the end product.
BC Cacher at heart!
User avatar
mojave_rattler
Posts: 40
Joined: January 18th, 2012, 6:04 pm

Re: Development Status

Post by mojave_rattler »

Corfman Clan wrote:It's hard to believe that we've been working on this for about five months now.
Has it really been that long. Maybe it's just me that this year is going by so fast. It just seems to me that January was only a few short weeks ago.

Thanks again for all the hard work up to this point.
Image
User avatar
cosninocanines
Posts: 28
Joined: January 20th, 2012, 7:26 am

Re: Development Status

Post by cosninocanines »

Corfman Clan wrote:It's hard to believe that we've been working on this for about five months now. This has turned out to be quite an undertaking. Thank you for your patience and continued support!

Wow it's June already!

I know the canines can't Thank You enough for all the hard work everybody is putting into this project but know for sure we really appreciate it.
Times Fun when your having Flies!
Kermit
rocketsciguy
Posts: 145
Joined: January 18th, 2012, 9:55 am

Re: Development Status

Post by rocketsciguy »

Corfman Clan wrote:Right now, we're working towards completing what we feel is needed to apply for the Geocaching.com access keys for the production API. That will allow us to move off of the staging DB and start gathering up to date data.
This is great news! Any chance of a getting a sneak peak of the website running off the static snapshot database? You know, for beta testing? ;)

Boy I wish I could get there out more -- I'm going to show up pretty low on the stats! But DGP motivated me to go for some high CP caches, so I expect LCP will do the same. Looking forward to it!
User avatar
Corfman Clan
Global Moderator
Posts: 914
Joined: January 17th, 2012, 12:21 am

Re: Development Status

Post by Corfman Clan »

rocketsciguy wrote:This is great news! Any chance of a getting a sneak peak of the website running off the static snapshot database? You know, for beta testing? ;)
Yes, we are looking forward to that. Last week, I was able to get an account set up for a small group of people to use (beta testers) to access the test website. We're not quite ready yet, but it should be soon.
Image
cdsoccer7
Posts: 20
Joined: January 18th, 2012, 9:17 am

Re: Development Status

Post by cdsoccer7 »

Corfman Clan wrote: Yes, we are looking forward to that. Last week, I was able to get an account set up for a small group of people to use (beta testers) to access the test website. We're not quite ready yet, but it should be soon.
Is there a sign up list?

pick me...Pick Me ...PICK ME!!!!...Pleaaaaaaase ;)

Gosh I am getting all jittery thinking about CP's and BC caches and leaderboards and roatrips....maybe its just all the coffee this morning...
Thanks for the good feelings!
BC Cacher at heart!
tabbles
Posts: 6
Joined: January 18th, 2012, 8:38 am

Re: Development Status

Post by tabbles »

First post ive done here...just wanted to say a big thank you...i glance at this site about twice a day...thought it time to say BIG THANKS!!!! :D
lesslost2
Posts: 1
Joined: May 12th, 2012, 8:14 am

Re: Development Status

Post by lesslost2 »

The June 2 news was great. We didn't realize until it was no longer available how important DGP was to our geocaching interests. So when AZtech passed to us that lonely cache was in development, we were beyond elated. We would definitely be willing to sponsor a premium membership for Groundspeak if it helps. For something as good as what you are developing, we wouldn't see it as unreasonable to impose an annual membership to help defray your costs. Bravo Zulu, Bravo Zulu, Bravo Zulu!!!
User avatar
Corfman Clan
Global Moderator
Posts: 914
Joined: January 17th, 2012, 12:21 am

Re: Development Status

Post by Corfman Clan »

I'm happy with the changes we've made the last couple weeks. I've mentioned some of them in other threads but I'll comment on all of them here:
  • We added the ability to track a cache owner's top finders. Along with this, we can enumerate who a cacher is a top finder for (what DGP called Owner Accolades). See here for more details.
  • We refactored the way the leaderboards were being stored and computed in the DB. This change will improve website performance. See here for more details.
  • The back country leader boards are now being created.
Near the end of April I mentioned that I was hoping we would be able to go live around mid June. Unfortunately, that is not going to happen. We are getting closer though. This past week we applied for the keys to access Geocaching.com's production database. Hopefully we'll receive them this coming week. Once we receive them, we will be able to retrieve and use the up to date Geocaching data.
Image
desert dawg
Benefactor
Posts: 136
Joined: January 18th, 2012, 8:42 am

Re: Development Status

Post by desert dawg »

Just Awesome, can't wait.....
User avatar
skeeper
Benefactor
Posts: 106
Joined: January 18th, 2012, 8:05 am

Re: Development Status

Post by skeeper »

This is great news. Thank you CC. :D
User avatar
mojave_rattler
Posts: 40
Joined: January 18th, 2012, 6:04 pm

Re: Development Status

Post by mojave_rattler »

I can't wait either :D :D :D :D :D
Image
User avatar
Corfman Clan
Global Moderator
Posts: 914
Joined: January 17th, 2012, 12:21 am

Re: Development Status

Post by Corfman Clan »

Since I'll be leaving on vacation tomorrow morning and will not have access to the internet while I'm gone, I will give a quick status update now.

On July 19th, we received the keys to access the Geocaching.com production Live API. We moved the site from the staging API to the production API that day. So now the site is accessing the "Live" API and updating the database with active geocaching data. So far the site is about 45% up to date.

Once we received the keys, we created four geocaching.com accounts and through your generosity, all four of those accounts are now premium member accounts. Thank you very much to all of you that gifted a premium membership and thank you to everyone that was ready and willing to do the same. :D

Since the site went live, little work has been done with the GUI. Instead we have been monitoring the site logs and have been making updates to get the site to run as error free as we can and for it to properly handle any errors that do arise. It's taken about a week, but as of today, the site seems to be running pretty smoothly.

Again, thank you for your generosity, your continued patience, and your support for this project. It is truly appreciated!
Image
User avatar
cosninocanines
Posts: 28
Joined: January 20th, 2012, 7:26 am

Re: Development Status

Post by cosninocanines »

VACATION! Enjoy grab a cache if you get close enough.
Times Fun when your having Flies!
Kermit
User avatar
shushyaz&foxy
Posts: 26
Joined: January 18th, 2012, 9:59 am

Re: Development Status

Post by shushyaz&foxy »

have fun but hurry back ;)
SHUSHYAZ
User avatar
mojave_rattler
Posts: 40
Joined: January 18th, 2012, 6:04 pm

Re: Development Status

Post by mojave_rattler »

I say you deserve a vacation just for all the hard work that has been put into the coding and formatting of the new site.
Image
User avatar
Corfman Clan
Global Moderator
Posts: 914
Joined: January 17th, 2012, 12:21 am

Re: Development Status

Post by Corfman Clan »

A lot has happened since the last update. I saw a bunch of monkeys, iguanas, caimans, and crocodiles, drank Costa Rican beer, and even snuck across the Nicaraguan border for a minute or so 8-)

Since I've been back, I've implemted the changes described here so that there will be no site downtime when the statistics are being updated.

The site is continuing to get up to date and is currently about 85% of the way there. The way the web server works is that it will tend to stop and start the website depending on its use. Since the site wasn't used much while I was on holiday it didn't update the cache data as much as I had hoped.

Yesterday, the site started to get a bunch of errors I'd never seen before. I think Groundspeak changed something and introduced a bug. Basically, the site would periodically receive a geocache log that had a null value for the log type (found it, DNF, etc.). The code didn't account for a null log type and an exception would be thrown. Anyway, LonelyCache now handles that situation gracefully.

My plan is to give those of you that have expressed an interesting in helping, access to the test site sometime Sunday. It may be late. There currently is a lot of deficiencies with several of the pages and especially the geocacher stats page. I'll take care of some of that this weekend. At any rate, I'll let you in sometime Sunday. I'll have the details spelled out when we start.
Image
Post Reply