Difference between revisions of "User talk:Tjtrumpet2323"

From Geohashing
imported>Joannac
(Template:Dow date to use/considerHolidays: new section)
imported>Tjtrumpet2323
(Template:Dow date to use/considerHolidays: fine by me.)
Line 99: Line 99:
  
 
Can I delete it? Don't want to ruin all your hard work. --[[User:Joannac|joannac]] 00:25, 22 May 2009 (UTC)
 
Can I delete it? Don't want to ruin all your hard work. --[[User:Joannac|joannac]] 00:25, 22 May 2009 (UTC)
 +
 +
: '''FINE BY ME.'''  As the history states, all the logic was farmed out to [[Template:Dow holiday]] on 7 July 2008.  That's where the "hard work" is.  Happy just barely belated [[Geohashing Day]]!  --[[User:Tjtrumpet2323|Tim P]] 04:01, 22 May 2009 (UTC)

Revision as of 04:01, 22 May 2009

e

  • en: Please, sign all of your posts here with your signature by typing "~~~~" after each post.
  • fr: S’il vous plaît, signez tous vos postes ici avec votre signature en tapant « ~~~~ » après chaque poste.

v · e

  • en: I will be taking a wikibreak to tour China with the University of Pittsburgh's Heinz Chapel Choir from 26 April 2009, 22:00 UTC to 13 May 2009, 16:00 UTC. During that time, I will be unable to reply to your questions and comments.
  • fr: Je prendrai un wikibreak pour visiter la Chine avec le Chœur de la Chapelle Heinz d'Université de Pittsburgh du 26 avril 2009 à 22h UTC jusqu'au 13 mai 2009 à 16h UTC. Pendant ce temps, je ne pourrai pas répondre à vos questions et commentaires.

Re:St. Louis

No big, thanks for letting me know. MToolen 19:34, 30 May 2008 (UTC)

NO PROBLEM. --Tim P 03:11, 9 July 2008 (UTC)

Bot for writing current coordinates

I saw that you are responsable for automatically updating the front page. I assume this means that you have a bot which calculates the coordinates and inserts them onto the front page. Would it be possible to have your bot also create a template that contains just the coordinates for a given day? For examply, it could create Template:Coords06-13-2008 that would take Lat and Long as input. That way, for setting up pages about a specific graticule on a specific day, we could just put in a string that is something like {{Coords2008-06-13|Lat=42|Long=71}} instead of having to copy and paste from the reference implementation. If you wanted to get fancy, you could even have the bot update a master template that uses if statements to lookup a certain day's coordinates, so that we would just have to call {{Coordinates|Date=2008-06-13|Lat=42|Long=71}}.--Ahecht 15:38, 13 June 2008 (UTC)

Unfortunately, I actually edit and create the pages manually (for the time being, it forces me to be up at 09:15). I am planning on eventually programming templates to automate almost all of the calculational stuff you mentioned; however it is all reliant on installation of the MediaWiki Implementation on this wiki, as stuff like md5() isn't a default wiki function. Please, feel free to bounce ideas off of me... but know that until the MWI is installed, not much can happen. --Tim P 15:45, 13 June 2008 (UTC)
DONE! This can now be accomplished with {{coordinates graticule|2008-06-13|lat=42|lon=-71}}. --Tim P 02:56, 9 July 2008 (UTC)

Coordinates Template Automation

I see that there are newer implementations of the coordinates on the main page. I'd just like to use a similar table on the expedition pages. (Something simple like this: {| class="wikitable" style="text-align: center; vertical-align: top; border: 3px solid black; border-collapse: collapse; margin: 1em" border="1" cellpadding="2" width="300" !width=50%| Date !width=50%| Coordinates |- ! {{date link|2008-06-29|D j M Y}} | {{coordinates|2008-07-02|30w=1}} |} Is there a way to put the integer parts of my graticule in front of the fractional parts? Thanks: --Tom 08:59, 2 July 2008 (UTC)

There will be eventually! In fact, that's probably next on my list of things to do with this exciting new functionality! --Tim P 15:33, 2 July 2008 (UTC)
DONE! Template:Coordinates graticule now offers this functionality! --Tim P 02:26, 3 July 2008 (UTC)
Hey tjtrumpet, awesome work on all the template magic. Might be worth writing up a little primer somewhere for what template magic exists and roughly how they're intended to be used. Hate to see them all get barely any use... --Nemo 09:33, 3 July 2008 (UTC)
Hey, so nice. We're all thankful. --Tom 14:24, 3 July 2008 (UTC)

template magic question

Tim: I've got a little bit of magic on the top of the Canberra, Australia which gives auto-links each day to upcoming points. (checks up to four days ahead and if DJIA is available, gives a link). THis was working fine when I got it up just before the DJIA long weekend, but now gives one extra day worth of coords - which are wrong due to the lack of DJIA data to feed the md5. This has only begun tonight though... I've not checked the changelogs of all the nested templates it's using, so might be something there. Otherwise, any ideas? (aside: it was this link box which got me generalising Template:Announce before realising that, as it stands, it's still unusable for that box. (though may be in the future yet) --Nemo 15:16, 8 July 2008 (UTC)

Anything returning .8843126, .7729682 is wrong. There is an error in the calculational templates because I was working on making them better and the wiki kept timing me out yesterday. Hopefully all will be better by 05:00 UTC, 9 July? Much sooner, I hope.... If your template is still having trouble once I'm sure everything on my end is proper, I'll take a look. --Tim P 16:43, 8 July 2008 (UTC)
I don't think those were the numbers I was getting yesterday, and as of right now, it is good (but the frontpage is broken) --Nemo 22:16, 8 July 2008 (UTC)
Well, I do know that the broken front page does calculate 30W incorrectly. I'm now working on figuring out just why it's doing so. --Tim P 22:18, 8 July 2008 (UTC)
I figured you knew it was broken... my observation was more along the lines of 'mine isn't, if that helps in debugging' :) --Nemo 22:53, 8 July 2008 (UTC)
RESOLVED. Thanks, Nemo. I'm pretty sure the "extra day" had something to do with something on my end... I noticed the incorrect 30W calculation applied something or other to the day after it should have. As an aside, great job on the templating! I'll be stealing some of your code for Main Page on Wednesday (EDT), seeing how you stole some of my userbox code. :) --Tim P 03:14, 9 July 2008 (UTC)
Yay for fixed. Happy to hear my usage is usefull too - I wasn't sure if it was best/intended use of the temnplates or not, but it was working so I was happy. My long term goal is to [a] update the Announce template to support alignment, then put that link box inside an Announce, and finally make the whole thing a template of it's own for wider graticule use. Left to my own devices though, this wont happen till after I get back from europe (see my user: page for timeframes). :) --Nemo 12:55, 9 July 2008 (UTC)

Thanks for fixing ASG. Main page?

The main page "Recent and Upcoming Coordinates" seem horribly horribly broken. ALL of them read .8843126, .7729682, and have all day. --an old geohasher (aka Thomcat 20:12, 8 July 2008 (UTC))

I'm currently working hard on it... it's one of those things I have no idea where it came from. I hope to have things working (if not perfectly) in the coming hours. --Tim P 20:14, 8 July 2008 (UTC)

As of 21:05, 8 July 2008 (UTC), it's not showing the same coords for every date, but some are still wrong (4-6 July and 7 July 30W all show .4130070, .7311430). Part of the problem involved me leaving a test variable in place, even after dispatching the templates. --Tim P 21:05, 8 July 2008 (UTC)

HUZZAH! I have fixed it at last! See Main Page. --Tim P 02:56, 9 July 2008 (UTC)

"Day of" Categories

I see you're away, so I'll wait patiently. I've been creating and categorizing uncategorized categories, and have run up against your parallel system of daily archives. The main system follows the hierarchy Root categories -> Meetup -> Meetup by date -> Meetup in 2008 -> Meetup in 2008-07 -> Meetup on 2008-07-01 -> 2008-07-01 38 -78

Your parallel system has  ? -> Category:Day of July 2008 -> 2008-07-01 plus the completely unused categories Category:Month_of_2008 -> Category:Day of 2008. I know this has something to do with the main page template magic, and is probably necessary, but if you could explain how it works and if there are any bits you don't need after all, I would appreciate the opportunity to finish the hierarchy.

I just realized a) how your hierarchy works -- found June and made July and August match up -- and b) that the last two categories I whined about were not created by you, but by User:Gissehel so I've gone off to hassle him instead. I'm still interested in the how/why of your hierarchy, but as it's complete and logical it doesn't bother me anymore. Welcome home. -Robyn 15:08, 16 August 2008 (UTC)
NO PROBLEM. Feel free to vent here in the future, even if it's not about my pages. --Tim P 13:26, 20 August 2008 (UTC)
Is there any way to make the Add Yours link a little more friendly on the Main Page? When the gallery hasn't started yet for a day, a user is faced with a blank page. I suppose the typical geohasher is smart enough to copy from the previous day, but it would be nice if it came up with a template. -Robyn 15:10, 19 August 2008 (UTC)
Unfortunately, I do not know of any way to prepopulate the edit field with a template in MediaWiki. Even if it is possible (and it might still be), that's a change that only a sysop can make (i.e., xkcd or perhaps Zigdon). Not having a consistent template to work from has been a frustration for me as well, but what can you do? --Tim P 00:27, 20 August 2008 (UTC)
Welcome back! Maybe an easy link to a fill in the blanks template would help. I don't know if it's seriously a problem, but I'd like to see more people showing off their pictures, and if any are deterred by the code, that is sad. -Robyn 00:54, 20 August 2008 (UTC)
Thanks! This is definitely something I can do, probably late tonight (EDT). --Tim P 13:26, 20 August 2008 (UTC)
DONE. Now, when the Recent Images template calls a day's gallery that doesn't yet exist, the prompt will say something like "Start the gallery for Wednesday 20 August. (how?)" The how-to page at Template:Expedition Images/How-to should be satisfactory for this purpose if links are carefully placed. I've already added one to Main Page. --Tim P 15:42, 20 August 2008 (UTC)

Suppress Auto-Creation of Categories by Graticule Template?

The graticule template well and wisely automatically categorizes a page it is on as Meetup in LAT LONG and Meetup on YYYY-MM-DD. Nost of the time that is what should happen. But sometimes someone does a Category:Retro meetup, e.g. an origin geohash, where the date of the Dow for which the coordinates were generated does not correspond to the date of the expedition. Now it's obvious, but what if next year someone decides to do an origin hash with their one-year old? And I just don't like having something that was not a meetup on DATE to be classed there. Could there be a no date category = true parameter for the template? -Robyn 02:41, 28 August 2008 (UTC)

DONE. Template:Meetup graticule now takes an optional retro=1 parameter, which adds to Category:Retro meetup. (I'd originally called the category something else before seeing your own version.) It is a legitimate concern, so I updated wording on the template documentation as well as updated all (three) of the relevant retro meetup pages. --Tim P 02:53, 1 September 2008 (UTC)
Awesome. I noticed the deleted origin meetup categories and realized you were a wikian of action. :-) -Robyn 09:59, 1 September 2008 (UTC)
Yeah, sometimes it just takes me a while to figure out my vision, or to have the free time to implement it (now that school's started). But I guess I'm one of the more experienced wikians here when it comes to templating, so I must do my part. --Tim P 12:00, 1 September 2008 (UTC)

2009-02

Hey Tim, I noticed you were adding date parameters to all the day pages. It seems to have broken the coords on the 2009-02 page. Do you know what broke it? I reverted one (2009-02-10) but it didn't seem to help. --joannac 07:08, 21 February 2009 (UTC)

Joanna, I don't know why this would have broken the coords on 2009-02, as this was intended to be a fix for previous months. I just went to bed before I could start January (plus the server kept timing out, or throttling my rapid-fire edits). As far as I am aware, the coordinates on all of the month pages were already broken; this was simply an attempt to fix it. I'll look into it later tonight (EST) if possible. --Tim P 14:27, 21 February 2009 (UTC)
Neither 2009-02 or 2009-01 is correct (and possibly, the other months?), but for 2 different reasons. 2009-02 is showing the same coords for every day in feb (2009-02-01 coords, actually). I was told this has been happening for a while, so definitely not to do with your changes - sorry). 2009-01 is just weird - showing 2 sets of coords for the weekend, when there should be only one. All the days I've checked so far seem to be ok though (2009-01-01, 2009-01-02, etc). Which is odd because the months just include the data from the days, right?
Anyway, I'm sorry for blaming you - last time someone was playing with something and broke the month page, and it was annoying to pinpoint. But given you wrote a whole heap of the templates, I guess I should trust you know what you're doing ;) Let me know how the fixing goes, and if I can help. --joannac 21:21, 21 February 2009 (UTC)
No offense taken. What's actually happening is that the main transcluded template that generates the coordinates (Template:Auto coordinates) used to be referencing {{PAGENAME}} for the calculation of its date parameter. On date pages such as 2009-02-21, this is fine, and works as intended. However, on month pages such as 2009-01 (and all the others for that matter), it goes a bit haywire. It reads the page name as a timestamp, and noticing that it lacks a "day of month," steals it from the current time. Never mind that the transcluded template is itself transcluded from a separate page, it uses the pagename it is ultimately rendered on. So today, since it's 21 February (UTC), all of the coordinates on 2009-01 are those for 2009-01-21.
In my attempt to fix this (with February as a test case), I managed to get the month page to default to the first of the month, i.e., all coordinates on 2009-02 actually refer to the coordinates for 2009-02-01, which was a Sunday, and thus yields one set of coordinates. Again, I'm not quite sure why, as I thought passing a parameter and purging the cache would help. I guess not. I'll look into it later tonight (EST) if possible. --Tim P 21:34, 21 February 2009 (UTC)

Template:Dow date to use/considerHolidays

Can I delete it? Don't want to ruin all your hard work. --joannac 00:25, 22 May 2009 (UTC)

FINE BY ME. As the history states, all the logic was farmed out to Template:Dow holiday on 7 July 2008. That's where the "hard work" is. Happy just barely belated Geohashing Day! --Tim P 04:01, 22 May 2009 (UTC)