Log in

No account? Create an account
Ramblings Journals I Read Calendar The Dirt MegaZone's Waste of Time Older Older Newer Newer
MegaZone's Safety Valve
The Ramblings of a Damaged Mind
Calendar update
based on simonb's suggestion I switched over to using LJ::Simple instead of email. Which was vital because I took fallenpegasus's suggestion and created a new user called ljcalendars for the posts. And email only works for paid accounts, but since LJ::Simple acts as a client, that's no problem. I did this so now you can friend ljcalendars if you want them to show in your friends page.

If you want more calendars I can add them. I'd prefer something that runs on shell (FreeBSD) to make life easy to add to the script. If I have to go scrape from another site I'll have to find time to play around, I haven't done that with Perl in several years so I don't know what the current 'right' way to do it is. (I last did it with LWP a long time ago, and I don't even remember how to do that anymore.) Or point me at some sample code that does the rip. :-)

I am: happy happy
Current Media: quiet office

fallenpegasus From: fallenpegasus Date: February 20th, 2004 11:52 pm (UTC) (Direct Link)
I have another suggestion for ljcalendars.

There are many calendar events that are nailed down to the hour and minute. Use the LJ "set time of the post" feature to nail them exactly.

Ferex, do a calendar of Jewish holidays that the entries post at the appropriate computed civil twilight in Jerusalem. Make the calendar events that are keyed of the modern calendar post at 0 GMT. The Aztec calendars based on astronomical noon / midnight at what is now called Mexico city. Assorted transits, full moons, new moons, solsitices and equinoxes post at the computed second of their happening, and so forth.
zonereyrie From: zonereyrie Date: February 21st, 2004 12:07 am (UTC) (Direct Link)
Hmm... I was just looking at DateTime::Calendar::* I'll need to get some tuits together.
zonereyrie From: zonereyrie Date: February 21st, 2004 02:24 am (UTC) (Direct Link)
Here's the code I threw together tonight: http://www.megazone.org/ljcalendars.txt

If anyone wants to add more calendars you can take this and have it post to your LJ for testing (just delete the posts, that's what I've been doing) and toss it back at me. If it needs new modules I may need to get usagijer to help (I don't have root on this box). Right now I have this run from cron at midnight. (I commented out the Chinese becasue a) I'm not sure I have the presentation right anyway and b) it slows the script down quite a lot.)

I may do more myself, but I already have a stack of things I need to catch up on before I put a lot more time into this.
simonb From: simonb Date: February 21st, 2004 02:48 am (UTC) (Direct Link)


For LJ::Simple just use $lj->SetDate(\%Event,$time_t) when preparing the entry.
z_gryphon From: z_gryphon Date: February 21st, 2004 07:29 pm (UTC) (Direct Link)
the heck's the deal with the "AOL Date"?
zonereyrie From: zonereyrie Date: February 21st, 2004 07:34 pm (UTC) (Direct Link)
The "September that never ended".

Someone wrote a little program that shows the date as if September 1993 never ended, the day just keeps counting. ;-)
fallenpegasus From: fallenpegasus Date: February 22nd, 2004 01:28 am (UTC) (Direct Link)
Another suggestion. Make the names of the calendars be a link to a site the describes the calendar system.
akawil From: akawil Date: February 22nd, 2004 06:00 pm (UTC) (Direct Link)
In addition to the ones you're currently sending to lj_calendar, emacs's calendar-mode knows the Julian, Arabic, Islamic, French Revolutionary, Coptic, Ethiopic, Chinese, and Persian calendars, as well as the Julian Day and the ISO Commercial calendar. It also knows the phases of the moon, and can compute sunrise and sunset for a given location.

The output of FreeBSD's /usr/bin/calendar might also be amusing, with appropriate calendar files chosen.
akawil From: akawil Date: February 22nd, 2004 06:44 pm (UTC) (Direct Link)


(Sorry I misspelled ljcalendars.)