Posts Tagged ‘calendar’

Blog holiday, 3 year anniversary

Tuesday, August 24th, 2010

See me in person in Portland when I keynote WhereCampPDX the weekend of September 25; Barcelona for FOSS4Geo; or Borsa, Romania for the Int’l Mountain Cartography conference. I’ve got a few projects I need to wrap up and start this Fall so please expect only intermittent updates rather than daily digests.

Over the last three years (almost to the day), I’ve had more than 600,000 pageviews in this space, from original pieces like Meet Toni Mair — Terrain Artist Extraordinaire to promoting other’s work like Public Art in Google Street View (Good Mag). I’ve tooted my own horn on projects like Create Calendars Automatically in Illustrator: Version 5 (Kelso) and helped folks with Freehand and VBA in ArcMap. I have two more big posts planned the next several weeks, so don’t unsubscribe quite yet ;)

In the meantime, I will continue to tweet @kelsosCorner, the micro-blogging service. A sample of Twitter posts is featured in the upper right sidebar on this page.

Time and Again, the Calendar Comes Up Short (Wall Street Journal)

Thursday, January 7th, 2010

na-bd085_numbgu_ns_20091229180832

[Editor’s note: If you haven’t gotten a 2010 calendar yet, please try my Illustrator script for making your own. Its nifty! Many of my projects last year focused on time and less on mapping. It can be harder to count days than you might think!!!]

Republished from the Wall Street Journal.
By CHARLES FORELLE

Sticklers for Symmetry Lament Imperfections in the 400-Year-Old Gregorian System; Earth’s Inconvenient Orbit

Friday marks the start of another new year, and for a small band of reformers, another missed opportunity.

For the 428th straight year, much of the world will again use the familiar Gregorian calendar. We will suffer the fiscal quarters of varying lengths and the 52 weeks that don’t quite fill the year. We will recite rhymes to recall how many days are in June, and shrug if we are asked whether Halloween is on a weekday.

Almost since Pope Gregory XIII promulgated the new calendar — itself a reform of Julius Caesar’s calendar — in 1582, proposals have bubbled up for something better.

Apostles of efficiency lament that each year needs a fresh wall calendar. The astronomically precise complain that Gregory’s leap-year formula (every four years, except centuries not divisible by 400) is erratic, and a hair off the real year’s length anyway. The financially fixated sigh that next year there will be more shopping days between Thanksgiving and Christmas than this year.

“We have a world-wide consensus about this second-rate calendar that the pope imposed 400 years ago,” Simon Cassidy, a California software engineer and amateur calendar scholar, says by telephone from New Zealand, where he is spending the northern-hemisphere winter.

Creating a calendar is like fitting a lot of round pegs into not quite as many square holes. Western tradition demands a seven-day week. Ancient custom, rooted in moon cycles, calls for a 12-month year. The Earth’s tilted axis produces four seasons. But the Earth, uncooperatively, takes 365 days, plus a tad more, to go once around the sun, and 365 is divisible by none of seven, 12 or four. And thanks to the extra bit of time — about one-fourth of a day — required for a complete orbit, leap years are needed to keep things on track.

Continue reading at the Wall Street Journal . . .

POTUS Tracker: Analyzing Obama’s Schedule (Kelso via Wash Post)

Monday, August 24th, 2009

[Editor’s note: I’m proud to present POTUS Tracker: Analyzing Obama’s schedule, a new tool from The Washington Post that keeps tabs on President Obama, whom he’s meeting with (over 3,000 people so far), and what they’re discussing (with 17 issue categories and 13 event type codes). It is the second in our Obama Accountability series. The first, Head Count: Tracking Obama’s Appointments, has enjoyed a million visits since launch in April 2009. Data for this project available in RSS and JSON data dump.

I did the Flash interactive (using the Flare visualization package for the opening treemap isue view) and coordinated the project with Karen Yourish. Madonna Lebling and Ryan O’Neil are the genius behind the schedule information and online data presentation. POTUS Tracker was featured on CNN’s State of the Nation (YouTube video) on Sunday, 23 August. With the project out of the way, I can turn my attention back to Natural Earth Vector.]

(Screenshot below) Interact with POTUS Tracker at The Washington Post . . .

potus_tracker_screenshot

CREDIT: Nathaniel Vaughn Kelso, Madonna Lebling, Karen Yourish, Ryan O’Neil, Wilson Andrews, Jacqueline Kazil, Todd Lindeman, Lucy Shackelford, Paul Volpe

Create Calendars Automatically in Illustrator: Version 5 (Kelso)

Tuesday, February 17th, 2009

[Editor’s note: I have updated my Calendar script to version 5. It now automatically formats the text with tab stops, date box grid, and art placeholders. Tooltips help explain the options and the script will automatically create a document if one is not open. Over 25 new features, updates, and bug fixes. Screenshots and native Illustrator template files included at end of post.

Magicien de calendrier, Kalender-Zauberer, Mago del calendario, 日历巫术师, カレンダーの魔法使い, Чудодей календара.]

ai cs3 logoI was asked recently if I could automate the creation of calendars in Adobe Illustrator. It turns out there are a couple script for accomplishing this in InDesign (best is from sselberg), but only pre-built templates for Illustrator. If you need a new year, you’d have to search for a new template, which is lame. New script to the rescue! Thanks go to Joyce for this suggestion.

NOTE: The script is free to download and use. There is no license fee for publication of calendars based on the script. I reserve the right in the future to start charging a fee for the script. But this version is free.

Download version 5 of Calendar Script (100 k).

To install new scripts you need to:

  • Download the binary file using “Save as”. The file contents look like gobly-gook.
  • Quit Illustrator
  • Copy the file into the Illustrator application folder’s “Presets” » “Scripts” subfolder
  • After restarting Illustrator, you can find the scripts in the menu “File” » “Scripts”;
  • TIP: You can create subfolders in the scripts folder to organize your scripts

NOTE: You will need version CS3 or CS4 of Illustrator. If you have CS or CS2, get a trial version of CS4 from Adobe. Also see posts about version 3 and version 4 of the Calendar script.

New features and bug fixes in version 5:

NEW FEATUES

  1. NEW: Tab stops supported!!! Date numbers are automatically spaced over the correct distance :) Big thanks go to N at Adobe Developer Support on this one.
  2. NEW No longer requires an open document, one will be created for you in the right page size if necessary.
  3. NEW “help” tooltips on all the wizard options (thanks John!). Tooltips are only in English now, other languages in future update.
  4. NEW Wall calendar style has grid of date boxes.
  5. NEW Wall, page, and compact calendar styles has art hole (for placement of photos, etc).
  6. NEW starting month and starting and ending year now relative to the current date (was always Jan 2009)
  7. NEW if 12-up type calendar selected, the current year’s 12 months are auto enabled
  8. NEW mini Page calendar type for making the mini calendars
  9. NEW mini Wall calendar type for making the mini calendars
  10. NEW Tabloid calendar type for big wall calendars for each month with big big numbers
  11. NEW mini Tabloid calendar type for making the mini calendars
  12. NEW Compact calendar type for calendars that are suitable for newspaper

UPDATED FEATURES

  1. UPDATE: Existing templates updated with tab stops, text sizes, other formatting
  2. UPDATE mini “business card” type calendar uses underlining for the day header, removed trailing tab, and adjusted gutter width
  3. UPDATE Page calendar type now based on letter page size with big numbers
  4. UPDATE Wall calendar type now based on tabloid page size with date numbers in corner of grid cells
  5. UPDATE Wall calendar type now auto-shrinks the text frame if a month has a short number of weeks.

BUG FIXES

  1. BUG FIX: Month lines now auto-centered
  2. BUG FIX: Leading space in month name line removed
  3. BUG FIX: Fail on selected text if it is point or path. Now creates new text frame at the same location.
  4. BUG FIX: Changing calendar size / style now sets the right day header abbreviation (shorten, letter)
  5. BUG FIX: Change of character format from month header to date in calendar page function (remove underlining)
  6. BUG: Page 12-up style calendar now the same size and style as a Page 1-up but with extra months (had been compact like). Expand or link the text frame to see additional content that is hidden at first.
  7. BUG: Abbreviation for “Jan” lacked the . period (thanks John).
  8. BUG: Custom language did not show the current settings for English (default) to edit. Now it does (disabled Holiday for now).
  9. BUG: Canceling “custom language” dialog now returns to previous language preset, not English.
  10. BUG: Enabling multi-month calendars via check box now works after choosing a single month calendar preset.
Version 6 Plans
  • Holidays and lunar phases are still not supported. Please stay tuned for version 6. What types of holidays do you want to see supported? Do you need iCal support?
  • Add multi-lingual tooltips. Refine translation of main interface for supported languages.
  • Automatically create and position the before-month and after-month mini-calendars.
  • Timeline calendar format (three linear, sequential rows of year, month, and dates)
  • Sports (game day) calendar format with support via “holiday” interface
  • Option to flowing multiple month calendars to new text blocks (via artboards in CS4+)
  • Orientation option when dealing with multiple months text blocks (horizontal, vertical, grid)
  • Any other suggestions? I’ll take a couple month breather and then return to this project.
Screenshots showing English, German, and Chinese interfaces. Also the custom language settings dialog.

There are several sizes of calendars:

  1. Tabloid calendar with larger date numbers grid (no boxes) on tabloid size 2/3rds of page.
  2. Tabloid mini 1 month that fits below the main calendar in 1/6th of tabloid size page (prior month, next month).
  3. Wall calendar with smaller dates in box grid (boxed dates) on tabloid size half-page with room for half page of art (horizontal / landscape 8.5 x 11 inch page).
  4. Wall mini 1 month calendar that fits in a date square in a wall calendar (prior month, next month).
  5. Page calendar, larger dates fill grid (no boxes) on 8.5 x 11 inch page.
  6. Page calendar, larger dates fill grid (no boxes) – 12 months at a time option.
  7. Page mini calendar, calendar that fits in a date square in a page calendar (prior month, next month).
  8. Compact calendar, 12 months small enough to fit on a single 8.5 x 11 inch page with artwork.
  9. Mini calendar, 12 months small enough to fit on a business card.

All calendars are Multi-lingual. Languages include English, Deutsch, Español, Français, 中文, 日本語, русский язык, and custom. This affects both the graphical dialog for creating the calendars and the month and day words in the calendar itself when it is created.

NOTE: While character and paragraph styles are created for each style of calendar (you can have multiple calendar types in one document), there is an error with Adobe Illustrator where you do not actually see this script-created styles until you either (a) save the document – thanks JC, or (b) switch back to the document from another (open or new) document.

SCREENSHOTS
Tabloid (1 month on tabloid 11 x 17 inch page – with artwork)
Download native Illustrator file.
Wall (1 month on tabloid 11 x 17 inch page – horizontal 8.5 x 11 inch – with artwork)
Download native Illustrator file.
Page (1 month on portrait 8.5 x 11 inch page with artwork)
Download native Illustrator file.
Compact (12 months on portrait 8.5 x 11 inch page)
Download native Illustrator file.
Mini (business card)
Download native Illustrator file.

Create Calendars Automatically in Illustrator: Version 4 (Kelso)

Thursday, January 8th, 2009

[Editor’s note: I have updated my Calendar script to version 5 on 17 February 2009. Magicien de calendrier, Kalender-Zauberer, Mago del calendario, 日历巫术师, カレンダーの魔法使い, Чудодей календара.

Get version 5 and read more about the changes and see new templates.

WARNING! The information below is OUT OF DATE! ]

[Editor's note: I have updated my Calendar script to version 4. I now support multiple languages and fixed a few bugs. New video helps users set up tabs and change character styles. Magicien de calendrier, Kalender-Zauberer, Mago del calendario, 日历巫术师, カレンダーの魔法使い, Чудодей календара.]

ai cs3 logoI was asked recently if I could automate the creation of calendars in Adobe Illustrator. It turns out there are a couple script for accomplishing this in InDesign (best is from sselberg), but only pre-built templates for Illustrator. If you need a new year, you’d have to search for a new template, which is lame. New script to the rescue! Thanks go to Joyce for this suggestion.

Download version 4 of Calendar Script (71k).

NOTE: You will need version CS3 or CS4 of Illustrator. If you have CS or CS2, get a trial version of CS4 from Adobe. Also see post about version 3 of the Calendar script.

New features and bug fixes in version 4:

  1. Multi-lingual: Languages added for English, Deutsch, Español, Français, 中文, 日本語’, русский язык, and custom. This affects both the graphical dialog for creating the calendars and the month and day words in the calendar itself when it is created.
  2. No longer need to have text frame selected, one will be created for you. If a text frame IS selected, it will be used.
  3. Added ability to easily stylize weekend (Saturday and Sunday) dates numbers (eg gray or red).
  4. Equal row spacing between months checkbox now works.
  5. Buttons for current year and month now work.
I’m waiting on Adobe to let me know how to do the tab stops. In the meantime I’ve created a better video showing how to set these manually yourself (below) and change the character styles after the calendar is created.
Holidays and lunar phases are still not supported. Please stay tuned for version 5.
Screenshots showing English, German, and Chinese interfaces. Also the custom language settings dialog.

To install new scripts you need to:

  • Quit Illustrator
  • Copy the files into the Illustrator application folder’s “Presets” » “Scripts” subfolder
  • After restarting Illustrator you can find the scripts in the menu “File” » “Scripts”;
  • TIP: You can create subfolders in the scripts folder to organize your scripts

There are several sizes of calendars:

  1. Wall calendar with smaller dates in box grid (you add the boxes).
  2. Wall mini 1 month calendar that fits in a date square in a wall calendar (prior month, next month).
  3. Page calendar, larger dates fill grid (no boxes).
  4. Page calendar, larger dates fill grid (no boxes) – 12 months at a time option.
  5. Mini calendar, 12 months small enough to fit on a business card.
Screenshots
Traditional wall calendar with boxed dates and mini calendars for prior and next month, room above for a photo or illustration (January 2009). You make your own grid and the two wall mini months. Download editable Illustrator file.
Page calendar where dates fill entire box (no lines). You make your own wall mini calendars. Download editable Illustrator file.
Mini 12 month calendar sized to fit on business card with all 12 months of the year (shown larger than life below). Download editable Illustrator file.

View video demonstration of script (click to play, 9.3 megs):

How to Script in Adobe Illustrator (Adobe)

Wednesday, January 7th, 2009

[Editor’s note: I get asked frequently how to get into automating Illustrator via scripting. My favorite language is JavaScript (it’s cross platform) but there is also AppleScript (Mac) and Visual Basic (PC). A listing of all my scripts is here, including my recent script for creating calendars. Adobe does a good job of getting you started with several introductory and intermediate manuals. Plus they even offer a free toolkit application for writing the JavaScripts. The new scripting guides for CS4 are up on Adobe’s site, including how to use Flash panel inside Illustrator to make more interesting graphical user interfaces (or hit testing). There’s new information on using TabStops in there over CS3 and documentation on how to script the new Artboards feature. Give it a try!]

Republished from Adobe.com.

ADOBE ILLUSTRATOR CS4 SCRIPTING

A script is a series of commands that tells Illustrator to perform one or more tasks. Adobe Illustrator CS4 supports scripts written in AppleScript, JavaScript or VBScript. Sample scripts are included in the Adobe Illustrator CS4 installer and get installed with the product. The latest available scripting documentation is provided below:

SAMPLES

Adobe Illustrator CS3 FlashPanel Sample

The FlashPanel sample for Adobe Illustrator CS3 shows how to script Illustrator from Flash using ScriptUI’s FlashPlayer control. The sample illustrates how rich user interfaces created by Flash authoring tools such as Adobe Flex Builder 2 can interact with Illustrator’s scripting object model.

jquery.timepickr.js (Haineault)

Wednesday, December 3rd, 2008

[Editor’s note: Graceful javascript GUI for setting time based on intuitive method. Thanks Peter!]

Republished from Haineault.com. Get the source code there.

Experimental code !

This is my humble attempt to enhance web time picking.

For the moment I’d call it a toy project, it might stay in experimental state evitam eternam.. I just wanted to see if I could create a better time picker.
I’ve seen lots of time pickers styles and approaches, but none seems to focus on user experience accross many platforms and beautiful degradation.

So I’ve determined a set of goals to achieve a better time picker.

Goals

  • Unobtrusive
  • Graceful degradation
  • Using maximum 2 clicks
  • Intuitive keyboard navigation
  • Be touch friendly (think iphone, tablet pc, etc..)

Demo

View video of GUI in action
(or click on image below, javascript embed don’t work in WordPress, sorry)

Basic usage

$(function(){
    $('#test-1').timepickr({handle: '#trigger-test'});
});

Options

Options Default Description
handle false handle is a dom element which will open the menu upon click
hours true display hours
minutes true display minutes
seconds false display seconds
range24 $.range(0, 24) available hours to pick in 24 format (0, 23)
range12 $.range(0, 12) available hours to pick in 12 format (1, 12)
rangeMin ['00', '15', '30', '45'] available minutes to pick
rangeSec ['00', '15', '30', '45'] available minutes to pick
apm ['am', 'pm'] AM/PM labels
convention 12 hour convention (12 or 24)
val false Initial value
dropslide object dropslide options

Tested browsers

  • Mozilla Firefox 2 (Windows)
  • Mozilla Firefox 3.0.3 (Linux)
  • Mozilla Firefox 3.0.3 (Windows)
  • Epiphany Web Browser 2.22.2 (Linux)
  • Safari 3.1.2 (Windows)
  • Microsoft Internet Explorer 6
  • Microsoft Internet Explorer 7

Todo

  • Internationalization (different time formats, ex 24h)
  • Custom positioning (left, center, right)
  • am/pm mouse follow should be optional
  • Fix remaining behavior bugs
  • Test browser compatibility
  • Make animation more smooth
  • Make all options work
  • Support for seconds
  • Allow custom handler (click clock icon = open picker)
  • keynav: esc = leave & reset
  • keynav: enter, space = commit
  • keynav: arrows = navigate
  • Labels for hour, min, sec
  • Allow custom positioning/orientation of am/pm picker
  • try to make a vertical version of it

Create Calendars Automatically in Illustrator (Kelso)

Thursday, November 20th, 2008

[Editor’s note: I have updated my Calendar script to version 5 on 17 February 2009. Magicien de calendrier, Kalender-Zauberer, Mago del calendario, 日历巫术师, カレンダーの魔法使い, Чудодей календара.

Get version 5 and read more about the changes and see new templates.

WARNING! The information below is OUT OF DATE! ]

[Editor's note: Revised to add example 2009 Ai CS2 format files for download on 4 Dec. 2008.]

ai cs3 logoI was asked recently if I could automate the creation of calendars in Adobe Illustrator. It turns out there are a couple script for accomplishing this in InDesign (best is from sselberg), but only pre-built templates for Illustrator. If you need a new year, you’d have to search for a new template, which is lame. New script to the rescue! Thanks go to Joyce for this suggestion.

No, the script does not create the above calendar. Check out thumbcalendar.com.

Download version 3 of Calendar Script (33k). You will need version CS3 or CS4 of Illustrator.

Examples below for 2009.
Download Adobe Illustrator CS2 version of 2009 calendar. Use the script to build out the rest of the months.
12-up mini
| January.

To install new scripts you need to:

  • Quit Illustrator
  • Copy the files into the Illustrator application folder’s “Presets” » “Scripts” subfolder
  • After restarting Illustrator you can find the scripts in the menu “File” » “Scripts”;
  • TIP: You can create subfolders in the scripts folder to organize your scripts

View video demonstration of script (click to play, 9.3 megs):

There are several sizes of calendars:

  1. Wall calendar, large format boxed dates, 1 month fits on a page, sequential pages.
  2. Page calendar, 12 months fit on a letter sized page.
  3. Mini calendar, 12 months small enough to fit on a business card.
  4. Mini 1 month calendar that fits in a date square in a wall calendar.

Couple problems:

  1. Illustrator lacks tables, so we have to rely on tabs and other text-only options. If you want tables, use the InDesign script mentioned above.
  2. Start week on Monday or Sunday?
  3. Track holidays?
  4. JavaScript doesn’t track leap years for February days in month?!

Objectives:

  1. Create single month, full year, or range of months / years.
  2. Editable text
  3. Stylize via script font family, style, size, etc and change later via character style
  4. Option to put 6th week in 5th week line for wall-calendar style
  5. Multiple size defaults
  6. Multiple size calendars in single Illustrator document
  7. Have a GUI graphic user interface

Future Work:

  1. Use of tab stops. Now you have to redefine the paragraph style for the dayTabs.
  2. Colorize weekends, holidays
  3. Support holidays (absolute and relative)
  4. Moon phase icons?
  5. Draw day grid for wall-calendar size
  6. The • buttons for month and year are not working. They should take you to the current month / year.