Skip to content

Instantly share code, notes, and snippets.

@DouglasAllen
Created February 20, 2012 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DouglasAllen/1869956 to your computer and use it in GitHub Desktop.
Save DouglasAllen/1869956 to your computer and use it in GitHub Desktop.
first_app_read_me
A rails 3.0.11 app
The main page displays a way to calculate the Equation of Time.
This may be used when finding sun rise and sun set times or for navigation using the Sun.
Also one may use a rest address "time/julian".
This will show the current UTC date, time and Julian Day Number with the day fraction added. ex: (2455952.71212963)
There is also a file in /lib to be run in ruby standalone that will iterate through the first four days of the year.
It tries to find the exact time of perihelion and the lambda (ecliptic longitude) at that time.
note: (different years may crash it) Try changing the value that ma is compared to to a slightly higher number.
ex: 0.0000075 to 0.000008 or more. Or just take out the comparison and let it puts ma.
Then you want to find the smallest difference.
I plan on adding a page that will calculate rise and set times for a given location entering latitude and longitude.
I'm working with Debian lenny and am only getting upgrades and installs that I need from Debian squeeze and mepis-11.0
I've installed rvm and ruby 1.9.2 from source before.
But the latest app that I've been able to create was from
getting ruby1.9.1-dev files and any other *-dev files to be able to build native extensions using bundle install.
(ex: sqlite3-dev, libsqlite3-ruby1.9.1)
All this from ruby1.8.7 which is not supposed to be compatible with rails 3.0 =>
Just getting gem to work will help. Running it and trying to install rails may be trial and error but I did get a rails
3.2.1 app to generate.
I'm currently working on getting Heroku client to work for this app.(the newly generated one that is)
If I can figure this all out then perhaps I will post this Equation of Time app to the site.
@DouglasAllen
Copy link
Author

I'm learning about spelling errors. This app has a built in spell checker. What a great feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment