LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 06-16-2007, 05:09 PM   #1
vxc69
Member
 
Registered: Jul 2004
Distribution: Ubuntu
Posts: 387

Rep: Reputation: 33
An idea for a screenlet...


Hello fellow LQers.

Do any of you guys know some sort of calendar program that tells you of special days like father's day...valentines etc..

Even if there is one, I think a screenlet that does this job would be ideal.

I'll look into the process of creating a screenlet and build it if I think I can.


vxc
 
Old 06-16-2007, 10:27 PM   #2
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 43
Emacs does (M-x calendar -- then push "a"), but I think a screenlet would be a great idea anyway.

Best regards.
 
Old 06-17-2007, 03:08 AM   #3
vxc69
Member
 
Registered: Jul 2004
Distribution: Ubuntu
Posts: 387

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by taylor_venable
Emacs does (M-x calendar -- then push "a"), but I think a screenlet would be a great idea anyway.

Best regards.
Thanks taylor_venable. I can now at least squeeze out the "special" day info from emacs calendar.

Screenlets are made using python, so I'll suck data from an xml file containing the info, seems like the simplest way.

It'll also need an options interface that allows users to add their own "special" days.

I could also maybe get some help from the OSS community to localize the "special" days.

taylor_venable, thanks again.



vxc
 
Old 06-17-2007, 03:13 AM   #4
St.Jimmy
Member
 
Registered: Jun 2006
Location: Boaz,Alabama
Distribution: Ubuntu 10.10 / Windows 7 Pro 64-Bit / Snow Leopard 10.6.4 64-Bit
Posts: 152

Rep: Reputation: 30
Don't forget sysadmin day!
 
Old 06-17-2007, 03:16 AM   #5
vxc69
Member
 
Registered: Jul 2004
Distribution: Ubuntu
Posts: 387

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by St.Jimmy
Don't forget sysadmin day!
LOL, now I won't.
 
Old 06-17-2007, 11:02 AM   #6
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 43
One tricky thing is going to be figuring out how to represent non-date-fixed holidays like "the fourth Thursday in November" in the file format. It may be instructive to take a look at the calendar.el source in Emacs to figure out how they do it.

http://cvs.savannah.gnu.org/viewvc/e...cs&view=markup

It looks like the golden functions here are "holiday-fixed" and "holiday-float" which are defined in holidays.el:

http://cvs.savannah.gnu.org/viewvc/e...cs&view=markup
 
Old 06-18-2007, 07:25 AM   #7
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 420Reputation: 420Reputation: 420Reputation: 420Reputation: 420
Quote:
Originally Posted by vxc69

I could also maybe get some help from the OSS community to localize the "special" days.

taylor_venable, thanks again.



vxc
Have you thought about using .ics as the calendar file format? That is pretty standard in the Linux and OSX worlds, and there are a ton of pre-existing calendars with holidays for a variety of countries.
 
Old 06-18-2007, 01:35 PM   #8
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,370

Rep: Reputation: 387Reputation: 387Reputation: 387Reputation: 387
Anyone good in perl?

Parse http://en.wikipedia.org/wiki/List_of...ays_by_country

What you do about easter?
 
Old 06-18-2007, 05:32 PM   #9
Jorophose
Member
 
Registered: Oct 2006
Location: Ontario, Canada
Distribution: Xubuntu 6.06!! =D
Posts: 137

Rep: Reputation: 15
Easter is randomnly programmed each month

I'm pretty sure it follows a certain path; and it's supposed to be 40 days after ash Wensday...

Orage is a good calendar program, but it doesn't pop-up and let you know there's a holiday today, at least not in my experience with it.

What would be really cool is something that would theme your desktop environment to match the holiday. IE, pink/red/white and hearts for valentine's day, a "Hail Jorophose!" message for Victory Joro day, etc.
 
Old 06-19-2007, 11:07 AM   #10
vxc69
Member
 
Registered: Jul 2004
Distribution: Ubuntu
Posts: 387

Original Poster
Rep: Reputation: 33
Wow I didn't even think about non fixed holidays . There are some awesome tips on this thread. Really appreciate it guys.
 
Old 06-21-2007, 02:20 PM   #11
Siiiiiii
LQ Newbie
 
Registered: May 2006
Location: Sweden
Distribution: Vector Linux
Posts: 28

Rep: Reputation: 15
Regarding Easter, the mathematician Gauss made a formula for calculating when it occurs a specific year. I think this covers it: http://www.henk-reints.nl/easter/ind...easteralg2.htm
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Good idea/bad idea: interface colors introuble General 5 10-30-2006 01:33 PM
No idea what to do dotz Linux - Newbie 4 08-23-2006 09:32 AM
LXer: Freespire: Great Idea? Awful Idea? LXer Syndicated Linux News 1 05-04-2006 06:10 AM
mp3 jukebox idea (different idea then I have seen) supradrvr Linux - Software 8 03-27-2006 07:58 PM
an Idea balam Linux - Newbie 1 02-01-2003 04:53 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 10:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration