<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>KosherJava</title>
	<atom:link href="http://www.kosherjava.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kosherjava.com</link>
	<description>A weblog about Kosher Coffee (Kosher Java), Zmanim and other odds &#38; ends</description>
	<lastBuildDate>Mon, 08 Mar 2010 02:40:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>FAQ: How Much Earlier is Sunrise on Mount Everest Due to Elevation?</title>
		<link>http://www.kosherjava.com/2010/03/07/faq-how-much-earlier-is-sunrise-on-mount-everest-due-to-elevation/</link>
		<comments>http://www.kosherjava.com/2010/03/07/faq-how-much-earlier-is-sunrise-on-mount-everest-due-to-elevation/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 01:57:16 +0000</pubDate>
		<dc:creator>KosherJava</dc:creator>
				<category><![CDATA[Zmanim]]></category>
		<category><![CDATA[Elevation]]></category>
		<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[Sea level]]></category>

		<guid isPermaLink="false">http://www.kosherjava.com/?p=427</guid>
		<description><![CDATA[
Question:
How Much Earlier is Sunrise on Mount Everest Due to Elevation?
Answer:
The greatest sunrise and sunset elevation effect on Earth is on Mount Everest (at 27.988056 N, 86.925278 E as seen on the Direction to Yerushalayim Map). With an elevation of 8,848 Meters (29, 029 feet), sunrise would be up to 15 minutes and 31 seconds [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" src="/images/SunriseEverest.jpg" alt="Sunrise over Everest" title="Sunrise over Everest" /><br />
<h2>Question:</h2>
<p>How Much Earlier is Sunrise on Mount Everest Due to Elevation?<br />
<h2>Answer:</h2>
<p>The greatest sunrise and sunset elevation effect on Earth is on Mount Everest (at 27.988056 N, 86.925278 E as seen on the <a href="/maps/zmanim.html?lat=27.988056&amp;lng=86.925278&amp;zoom=15&amp;type=p">Direction to Yerushalayim Map</a>). With an elevation of 8,848 Meters (29, 029 feet), sunrise would be up to 15 minutes and 31 seconds earlier on Mount Everest than on sea level. The range of the effect is from 15 minutes and 31 seconds on June 22nd, to a &#8220;low&#8221; of 13 minutes 41 seconds earlier on March 18th. Being in a large mountain range with obstructed horizons, it is likely never actually seen that early. In addition to questions about mountains, every few months I get asked about how much earlier sunrise/set can be seen in skyscrapers. There are various halacha questions as to whether this actually affects zmanim that I will mention later. Here are some raw numbers. <img class="alignright" src="/images/BurjKhalifa.jpg" alt="Burj Khalifa" title="Burj Khalifa" /><a href="http://en.wikipedia.org/wiki/Burj_Khalifa">Burj Khalifa</a> (at 25.197222 N, 55.274056 E as seen on the <a href="/maps/zmanim.html?lat=25.197222&amp;lng=55.274056&amp;zoom=15">Direction to Yerushalayim Map</a>) is the tallest building in the world. With a height of 828 m (2,717 ft), visible sunrise to someone standing on top of the crown (something unrealistic) on June 22nd would be at 5:24:56 AM versus 5:29:31 AM on sea level, a difference of 4 minutes and 35 seconds. Sunset would be 7:16:35 PM versus 7:12:00 PM at sea level, a difference of 4 minutes and 35 seconds. A more realistic scenario would be the visibility sunrise on the highest floor (the 160th) , an elevation of 672 m at 5:25:23 AM, a difference of 4 minutes and 8 seconds earlier than sea level. Sunset on the 160th floor would be 7:16:08 PM, or 4 minutes and 8 seconds later than at sea level.<br />
As far as the halacha being affected by the elevation of buildings, the Baal Hatanya seems to indicate that tall buildings would make sunset later. See Yisroel vehazmanim ישראל והזמנים Vol II, page 910. In the Shraga Lachaim שרגא לחיים footnotes Rabbi Harfenes states that<br />
<blockquote>ויש להוסיף שהו דבר תמוה לומר דעד שלא נבנו הבנינים הגבוהים היה זמן שבת התלוי בשקעה&#8221;ח (שקיעה ראשונה להגאנים ושקיעה שניה לר&#8221;ת) מוקדם, ולאחר שנבנו יש לאחר הזמנים, ועד עכשיו שהיו בניו יארק הבנינים התאומיות (טווין טאוע&#8221;ר בלע&#8221;ז) שכל א&#8217; מהם היה בת ק&#8221;י קומות היה זמן השקיעה מאוחר, ועתה לאחר שהפילו והרסו אותם רשעים וזדים ארורים ימ&#8221;ש חזר הדבר לקדמותו להקדים זמן השקיעה.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.kosherjava.com/2010/03/07/faq-how-much-earlier-is-sunrise-on-mount-everest-due-to-elevation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zmanim API 1.2 Released</title>
		<link>http://www.kosherjava.com/2010/01/24/zmanim-api-1-2-released/</link>
		<comments>http://www.kosherjava.com/2010/01/24/zmanim-api-1-2-released/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 02:07:29 +0000</pubDate>
		<dc:creator>KosherJava</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[Software Dev]]></category>
		<category><![CDATA[Zmanim]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[Elevation]]></category>
		<category><![CDATA[Sea level]]></category>
		<category><![CDATA[Zmanim API Release]]></category>

		<guid isPermaLink="false">http://www.kosherjava.com/?p=409</guid>
		<description><![CDATA[The Zmanim API 1.2 was released today. The only change in this release is the removal of elevation as a factor in the calculation of all zmanim besides sunrise and sunset. Updated JavaDocs now reflect these changes. Please see the Elevation Now Only Impacts Sunrise and Sunset Calculations in the Zmanim API post for additional [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" src="/images/SpilledCoffee.png" alt="Zmanim API Release" title="Zmanim API Release" />The Zmanim API 1.2 was released today. The only change in this release is the removal of elevation as a factor in the calculation of all zmanim besides sunrise and sunset. Updated <a href="/zmanim/docs/api/">JavaDocs</a> now reflect these changes. Please see the <a href="/2010/01/24/elevation-now-only-impacts-sunrise-and-sunset-calculations-in-the-zmanim-api/">Elevation Now Only Impacts Sunrise and Sunset Calculations in the Zmanim API</a> post for additional information.</p>
<p>I would like to thank the various people who contacted me on the subject.</p>
<p>The main download is the <a href="/zmanim/release/zmanim-1.2.zip">Zmanim 1.2 release</a> zip file that includes source files and JavaDoc documentation. Also available for download (included in the above zip file) is the main <a href="/zmanim/lib/zmanim-1.2.jar">zmanim-1.2.jar</a>. The <a href="/zmanim/lib/zmanimAstronomical-1.1.jar">zmanimAstronomical-1.1.jar</a> that only includes the <a href="/zmanim/docs/api/net/sourceforge/zmanim/AstronomicalCalendar.html">AstronomicalCalendar</a> was not impacted by this change, but the version has been updated to <a href="/zmanim/lib/zmanimAstronomical-1.2.jar">zmanimAstronomical-1.2.jar</a> for consistency. Additional detail on the downloads can be seen on the <a href="/zmanim-project/downloads/">Zmanim Download page</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kosherjava.com/2010/01/24/zmanim-api-1-2-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Elevation Now Only Impacts Sunrise and Sunset Calculations in the Zmanim API</title>
		<link>http://www.kosherjava.com/2010/01/24/elevation-now-only-impacts-sunrise-and-sunset-calculations-in-the-zmanim-api/</link>
		<comments>http://www.kosherjava.com/2010/01/24/elevation-now-only-impacts-sunrise-and-sunset-calculations-in-the-zmanim-api/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 01:59:36 +0000</pubDate>
		<dc:creator>KosherJava</dc:creator>
				<category><![CDATA[Software Dev]]></category>
		<category><![CDATA[Zmanim]]></category>
		<category><![CDATA[Elevation]]></category>
		<category><![CDATA[Sea level]]></category>

		<guid isPermaLink="false">http://www.kosherjava.com/?p=397</guid>
		<description><![CDATA[I have received a few emails over the past year or so about the use of elevation as part of the calculation of various zmanim in the API. All releases of the zmanim API up to the current 1.1 release, use elevation to affect the calculation of all sunrise/sunset based zmanim. While my footnote on [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" src="/images/Everest.jpg" alt="Mount Everest" title="Mount Everest" />I have received a few emails over the past year or so about the use of elevation as part of the calculation of various zmanim in the API. All <a href="/zmanim-project/downloads/">releases of the zmanim API</a> up to the current 1.1 release, use elevation to affect the calculation of all sunrise/sunset based zmanim. While my footnote on the <a href="/zmanim-project/zmanim-calendar-generator/">Zmanim Calendar Generator page</a> stated that this only impacted sunrise and sunset (quoting the <a href="http://en.wikipedia.org/wiki/Yisroel_Dovid_Harfenes">Yisrael Vehazmanim</a> and <a href="http://emr.cs.iit.edu/home/reingold/calendar-book/third-edition/">Calendrical Calculations</a>), in practice all zmanim calculated based on sunrise and sunset were affected by elevation. An example of a zman that used elevation in 1.1, but will no longer in 1.2, is the calculation of Sof Zman Krias Shema according to the GR&#8221;A. The soon to be released version 1.2 limits the impact of elevation to sunrise and sunset only. The Zmanim Calendar Generator page already uses the latest changes to the code. To facilitate changes by ports of the API, a list of changes to the source code of the <a href="/zmanim/docs/api/net/sourceforge/zmanim/ZmanimCalendar.html">ZmanimCalendar.java</a> and <a href="/zmanim/docs/api/net/sourceforge/zmanim/ComplexZmanimCalendar.html">ComplexZmanimCalendar.java</a> is available in a <a href="/files/zmanim/ElevationDiff1.2.zip">diff file</a> (a proper unix diff/patch file will not be available at this time). The diff files were generated prior to updating the JavaDocs to simplify the work of anyone modifying ports of the Zmanim API. Detailed sources for not using elevation for anything besides sunrise and sunset can be found in פרק ב׳ סעיף ט׳ (pages 186-187) in the second edition of <a href="http://www.worldcat.org/oclc/74100151">Zmanim Kehilchasam זמנים כהלכתם</a> by Rabbi Dovid Yehuda Bursztyn. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.kosherjava.com/2010/01/24/elevation-now-only-impacts-sunrise-and-sunset-calculations-in-the-zmanim-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Calculating the Bearing/Direction to Har Habayis Using the Zmanim API</title>
		<link>http://www.kosherjava.com/2009/11/29/calculating-the-bearing-to-har-habayis-using-the-zmanim-api/</link>
		<comments>http://www.kosherjava.com/2009/11/29/calculating-the-bearing-to-har-habayis-using-the-zmanim-api/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 04:28:14 +0000</pubDate>
		<dc:creator>KosherJava</dc:creator>
				<category><![CDATA[Software Dev]]></category>
		<category><![CDATA[Zmanim]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Davening]]></category>
		<category><![CDATA[geoid]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[Great Circle]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Rhumb Line]]></category>
		<category><![CDATA[WGS84]]></category>

		<guid isPermaLink="false">http://www.kosherjava.com/?p=322</guid>
		<description><![CDATA[An earlier &#8220;Bearing to Yerushalayim and Zmanim Map&#8221; post demonstrated the use of JavaScript to render the bearing to Har Habayis on a Google Map. A more detailed follow-up post &#8220;Technical Information about the Bearing to Yerushalayim Map&#8221; dealt with detailed technical information on these calculations. The main Bearing to Yerushalayim and Zmanim Map page [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" src="/images/javaDir.png" alt="Java direction"/>An earlier <a href="/2007/12/30/bearing-to-yerushalayim-and-zmanim-map/">&#8220;Bearing to Yerushalayim and Zmanim Map&#8221;</a> post demonstrated the use of JavaScript to render the bearing to <a href="http://en.wikipedia.org/wiki/Temple_Mount">Har Habayis</a> on a <a href="http://www.kosherjava.com/maps/zmanim.html">Google Map</a>. A more detailed follow-up post <a href="/2008/04/07/technical-information-about-the-bearing-to-yerushalayim-map/">&#8220;Technical Information about the Bearing to Yerushalayim Map&#8221;</a> dealt with detailed technical information on these calculations. The main <a href="/zmanim-project/bearing-to-yerushalayim-and-zmanim-map/">Bearing to Yerushalayim and Zmanim Map</a> page usually has the most up to date information on the subject. What was not detailed in previously published posts and pages was that most of the calculations available via <a href="http://en.wikipedia.org/wiki/Javascript">JavaScript</a> are now in the core <a href="/zmanim-project/">Zmanim API</a>. Available since the July, 2008 <a href="/2008/07/17/zmanim-api-11-beta-2-released/">beta 2 release</a> of <a href="/zmanim-project/downloads/">version 1.1</a> is the ability to bearings/directions using both the <a href="http://en.wikipedia.org/wiki/Great_circle">great circle</a> and <a href="http://en.wikipedia.org/wiki/Rhumb_line">rhumb line</a> methods in <a href="http://en.wikipedia.org/wiki/Java_%28programming_language%29">Java</a>. The <a href="/zmanim/docs/api/net/sourceforge/zmanim/util/GeoLocation.html">GeoLocation Object</a> was modified to calculate the great circle bearings (both <a href="/zmanim/docs/api/net/sourceforge/zmanim/util/GeoLocation.html#getGeodesicInitialBearing(net.sourceforge.zmanim.util.GeoLocation)">initial</a> and <a href="/zmanim/docs/api/net/sourceforge/zmanim/util/GeoLocation.html#getGeodesicFinalBearing%28net.sourceforge.zmanim.util.GeoLocation%29">final</a>), and <a href="/zmanim/docs/api/net/sourceforge/zmanim/util/GeoLocation.html#getRhumbLineBearing%28net.sourceforge.zmanim.util.GeoLocation%29">rhumb line bearing</a> from any GeoLocation Object to another. In addition, distance calculation between the two points using both of these line types is supported. What was not <a href="http://en.wikipedia.org/wiki/Porting">ported</a> from the JavaScript version was the less accurate <a href="http://en.wikipedia.org/wiki/Haversine_formula">Haversine formula</a>, or the simpler <a href="http://en.wikipedia.org/wiki/Spherical_trigonometry">spherical law of cosines</a> algorithms that yield identical results. Instead, the Zmanim API uses the far more accurate Vincenty formulae using the <a href="http://en.wikipedia.org/wiki/WGS84">WGS84</a> <a href="http://en.wikipedia.org/wiki/Geoid">geoid</a> model of the earth. Published by the geodesist/mathematician <a href="http://en.wikipedia.org/wiki/Thaddeus_Vincenty">Thaddeus Vincenty</a>, it is said to be accurate to about one-half millimeter, more than adequate for our calculation. The code in the API is a Java port of the previously published, slightly <a href="http://www.kosherjava.com/maps/glatlng.js">modified</a> version of <a href="http://www.movable-type.co.uk/">Chris Veness&#8217;s</a>  <a href="http://www.movable-type.co.uk/scripts/latlong-vincenty.html">JavaScript  implementation</a> . Below is a simple Java example of generating bearing and distances.</p>
<pre class="brush: java;">
/**
 * This program demonstrates how to calculate bearing to Yerushalayim
 * using the kosherjava.com Zmanim API. Both the great circle and
 * rhumb line method are shown
 * To compile, ensure that the Zmanim Jar is in your classpath.
 */
import net.sourceforge.zmanim.util.GeoLocation;
import java.util.TimeZone;

public class BearingToYerushalayim{
	public static void main(String [] args) {
		GeoLocation lakewood = new GeoLocation(&quot;Lakewood, NJ&quot;, 40.09596, -74.22213, 0, TimeZone.getTimeZone(&quot;America/New_York&quot;));
		GeoLocation harHabayis = new GeoLocation(&quot;Har Habayis&quot;, 31.77805, 35.235149, 0, TimeZone.getTimeZone(&quot;Asia/Jerusalem&quot;));

		double greatCircleInitialBearing = lakewood.getGeodesicInitialBearing(harHabayis);
		double greatCircleDistance = lakewood.getGeodesicDistance(harHabayis);

		double rhumbLineBearing = lakewood.getGeodesicInitialBearing(harHabayis);
		double rhumbLineDistance = lakewood.getRhumbLineDistance(harHabayis);

		System.out.println(&quot;Great circle initial bearing: &quot; + greatCircleInitialBearing + &quot; degrees &quot;);
		System.out.println(&quot;Great circle distance: &quot; + greatCircleDistance/1000 + &quot; KM&quot;);

		System.out.println(&quot;Rhumb line bearing: &quot; + rhumbLineBearing + &quot; degrees&quot;);
		System.out.println(&quot;Rhumb line distance: &quot; + lakewood.getRhumbLineDistance(harHabayis)/1000 + &quot; KM&quot;);

	}
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.kosherjava.com/2009/11/29/calculating-the-bearing-to-har-habayis-using-the-zmanim-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ZmanimCLI (Command Line Interface)</title>
		<link>http://www.kosherjava.com/2009/11/21/zmanimcli-command-line-interface/</link>
		<comments>http://www.kosherjava.com/2009/11/21/zmanimcli-command-line-interface/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 04:52:50 +0000</pubDate>
		<dc:creator>KosherJava</dc:creator>
				<category><![CDATA[Software Dev]]></category>
		<category><![CDATA[Zmanim]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Cross Platform]]></category>
		<category><![CDATA[Hebrew Date]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.kosherjava.com/?p=241</guid>
		<description><![CDATA[Moshe Wagner who wrote the Zmanim GUI notified me in August that that he created a command line interface for zmanim using my Zmanim API. The technical approach of using reflection was similar to the way I used reflection in the Zmanim Clock Applet, but he took it to new heights. Sample use of accessing [...]]]></description>
			<content:encoded><![CDATA[<p>Moshe Wagner who wrote the <a href="/2009/03/14/zmanim-gui-released/">Zmanim GUI</a> notified me in August that that he created a <a href="http://en.wikipedia.org/wiki/Command-line_interface">command line interface</a> for zmanim using my <a href="/zmanim-project/">Zmanim API</a>. The technical approach of using reflection was similar to the way I used reflection in the <a href="/zmanim-project/zmanim-clock-applet/">Zmanim Clock Applet</a>, but he took it to new heights. Sample use of accessing zmanim using his CLI interface is:</p>
<pre class="brush: plain;">moshe@debian:~/Desktop$ java -jar ZmanimCLI.jar sunrise
6:10:28</pre>
<pre class="brush: plain;">moshe@debian:~/Desktop$ java -jar ZmanimCLI.jar --date 2010/08/12 tzais72
20:38:15</pre>
<pre class="brush: plain;">moshe@debian:~/Desktop$ java -jar ZmanimCLI.jar
Usage: ZmanimCLI [options] [Time]

Options:
       -d      --date &lt;yyyy/mm/dd&gt;             Set date. (Year first!)
       -lat    --latitude &lt;latitude&gt;           Set location's latitude
       -lon    --longitude &lt;longitude&gt;         Set location's longitude
       -e      --elevation &lt;elevation&gt;         Set location's
elevation; Positive only
       -tz     --timezone &lt;timezone&gt;           Set location's TimeZone

Help:
       -h      --help                          Show this help
       -stl    --time-list                     Show common available
times to display
       -ftl    --full-time-list                Show all available
times to display
       -tzl    --timezone-list                 Show available timezones

Example:
       ZmanimCLI --latitude 31.7780 --longitude 35.235149 --elevation
600 --timezone Israel Sunrise
       Will show the sunrise time today in Jerusalem</pre>
<p>While your first reaction may be that it is interesting in a theoretical geeky way, but has no practical value, I will quote Moshe&#8217;s explanation as to why it is useful:</p>
<blockquote><p>Why is this useful?<br />
Well, first of all it was a nice experiment. But mainly, you can now use Zmanim (although externally), via any language you want, no longer being tied to Java.</p></blockquote>
<p>Months later, Moshe actually put this to practical use in his C++ based <a href="http://code.google.com/p/luach/">Luach</a> project. This Luach (similar to the known <a href="http://www.kaluach.com/">Kaluach</a>) uses the <a href="http://en.wikipedia.org/wiki/Qt_%28toolkit%29">Qt</a> framework. utilizing <a href="http://libhdate.sourceforge.net">libhdate</a> for the date stuff (something not offered by the Zmanim API, and the topic of a future <a href="/tag/faq/">Zmanim API FAQ</a>), displaying zmanim using the Zmanim API via CLI for the zmanim calculations. While you would expect such an approach to be slow, using the Luach seemed almost instantaneous. I will post more about his Luach program (recently reviewed at <a href="http://kosherdev.com">KosherDev.com</a>) at some point in the future.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kosherjava.com/2009/11/21/zmanimcli-command-line-interface/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>FAQ: Where is the Zmanim API Main Method?</title>
		<link>http://www.kosherjava.com/2009/11/05/faq-where-is-the-main-method/</link>
		<comments>http://www.kosherjava.com/2009/11/05/faq-where-is-the-main-method/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 22:08:31 +0000</pubDate>
		<dc:creator>KosherJava</dc:creator>
				<category><![CDATA[Software Dev]]></category>
		<category><![CDATA[Zmanim]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.kosherjava.com/?p=215</guid>
		<description><![CDATA[
Question:
Where is the main method?
Answer:
This is a more technical variant of the &#8220;How do I install the Zmanim API Program?&#8221;, but coming from someone who already knows that it is a Java program that can’t be installed, but assumes that it can be run. The main method is the entry point to a Java program. [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" src="/images/coffeeQuestion.jpg" alt="Java FAQ"/><br />
<h2>Question:</h2>
<p>Where is the main method?</p>
<h2>Answer:</h2>
<p>This is a more technical variant of the <a href="/2009/11/05/faq-how-do-i-install-the-zmanim-api-program/">&#8220;How do I install the Zmanim API Program?&#8221;</a>, but coming from someone who already knows that it is a <a href="http://en.wikipedia.org/wiki/Java_%28programming_language%29">Java</a> program that can’t be installed, but assumes that it can be run. The <a href="http://en.wikipedia.org/wiki/Main_function#Java">main method</a> is the entry point to a Java program. Since this is a <a href="http://en.wikipedia.org/wiki/Library_%28computer_science%29">library/API</a> and not a program, it does not have a main method. The code to generate zmanim is spelled out in the <a href="/zmanim-project/how-to-use-the-zmanim-api/">How to Use the Zmanim API page</a> (that will hopefully be updated in the near future). Below is a full example of a very simple zmanim program that outputs sunrise, sof zman krias shema and sunset for the current day in <a href="http://en.wikipedia.org/wiki/Lakewood_Township,_New_Jersey">Lakewood, NJ</a>. Please ensure that the Zmanim <a href="http://en.wikipedia.org/wiki/JAR_%28file_format%29">jar</a> (<a href="/zmanim-project/downloads/">download</a>) is in your <a href="http://en.wikipedia.org/wiki/Classpath_%28Java%29">classpath</a>.</p>
<pre class="brush: java;">
/**
 * This program is a simple demonstration of the kosherjava.com Zmanim API.
 * To compile, ensure that the Zmanim Jar is in your classpath.
 */
import net.sourceforge.zmanim.*;
import net.sourceforge.zmanim.util.*;
import java.util.TimeZone;
public class SimpleZmanim{
	public static void main(String [] args) {
		String locationName = &quot;Lakewood, NJ&quot;;
		double latitude = 40.09596; //latitude of Lakewood, NJ
		double longitude = -74.22213; //longitude of Lakewood, NJ
		double elevation = 0; //optional elevation
		//use a Valid Olson Database timezone listed in java.util.TimeZone.getAvailableIDs()
		TimeZone timeZone = TimeZone.getTimeZone(&quot;America/New_York&quot;);
		//create the location object
		GeoLocation location = new GeoLocation(locationName, latitude, longitude, elevation, timeZone);
		//create the ZmanimCalendar
		ZmanimCalendar zc = new ZmanimCalendar(location);
		System.out.println(&quot;Today's Zmanim for &quot; + locationName);
		System.out.println(&quot;Sunrise: &quot; + zc.getSunrise()); //output sunrise
		System.out.println(&quot;Sof Zman Shema GRA: &quot; + zc.getSofZmanShmaGRA()); //output Sof Zman Shema GRA
		System.out.println(&quot;Sunset: &quot; + zc.getSunset()); //output sunset
	}
}
</pre>
<p>The following would <a href="http://en.wikipedia.org/wiki/Compiler">compile</a> and <a href="http://en.wikipedia.org/wiki/Execution_%28computing%29">execute</a> this code (sample from a <a href="http://en.wikipedia.org/wiki/COMMAND.COM">DOS prompt</a> in Windows).</p>
<pre class="brush: plain;">
C:\path\to\code&gt;javac SimpleZmanim.java

C:\path\to\code&gt;java SimpleZmanim

Today's Zmanim for Lakewood, NJ
Sunrise: Thu Nov 05 06:30:27 EST 2009
Sof Zman Shema GRA: Thu Nov 05 09:05:21 EST 2009
Sunset: Thu Nov 05 16:50:02 EST 2009
</pre>
<p>Please see the <a href="/zmanim/docs/api/">Zmanim API documentation</a> for a more complete view of the API.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kosherjava.com/2009/11/05/faq-where-is-the-main-method/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FAQ: How do I install the Zmanim API Program?</title>
		<link>http://www.kosherjava.com/2009/11/05/faq-how-do-i-install-the-zmanim-api-program/</link>
		<comments>http://www.kosherjava.com/2009/11/05/faq-how-do-i-install-the-zmanim-api-program/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 21:42:49 +0000</pubDate>
		<dc:creator>KosherJava</dc:creator>
				<category><![CDATA[Software Dev]]></category>
		<category><![CDATA[Zmanim]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[FAQ]]></category>

		<guid isPermaLink="false">http://www.kosherjava.com/?p=205</guid>
		<description><![CDATA[
Question:
How do I install the Zmanim API Program?
Answer:
 The Zmanim API is not a program that can be installed, but a Java programming library often referred to as an API (Application Programming Interface). This is a building block to be used by programmers who want to easily include zmanim in their own programs. The Zmanim [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" src="/images/coffeeQuestion.jpg" alt="Java FAQ"/><br />
<h2>Question:</h2>
<p>How do I install the Zmanim API Program?</p>
<h2>Answer:</h2>
<p> The <a href="/zmanim-project/">Zmanim API</a> is not a program that can be installed, but a <a href="http://en.wikipedia.org/wiki/Java_%28programming_language%29">Java</a> <a href="http://en.wikipedia.org/wiki/Library_%28computer_science%29">programming library</a> often referred to as an <a href="http://en.wikipedia.org/wiki/Application_programming_interface">API (Application Programming Interface)</a>. This is a building block to be used by programmers who want to easily include zmanim in their own programs. The Zmanim API allows them to do this with minimal understanding of the way zmanim are calculated. A sample of a program that uses the Zmanim API library is the <a href="/zmanim-project/zmanim-calendar-generator/">Zmanim Calendar Generator</a>. The Zmanim Calendar Generator collects user entered location information on the web page and submits this to a small Java program that calculates a year&#8217;s worth of zmanim and outputs it as an <a href="http://en.wikipedia.org/wiki/Microsoft_Excel">Excel spreadsheet</a> (using the <a href="http://en.wikipedia.org/wiki/Apache_POI">Apache POI</a> library). A future FAQ may provide a list of current programs that use the Zmanim API.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kosherjava.com/2009/11/05/faq-how-do-i-install-the-zmanim-api-program/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plans for a Zmanim API FAQ</title>
		<link>http://www.kosherjava.com/2009/11/05/plans-for-a-zmanim-api-faq/</link>
		<comments>http://www.kosherjava.com/2009/11/05/plans-for-a-zmanim-api-faq/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 21:19:56 +0000</pubDate>
		<dc:creator>KosherJava</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[Zmanim]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[FAQ]]></category>

		<guid isPermaLink="false">http://www.kosherjava.com/?p=199</guid>
		<description><![CDATA[Questions communicated to me via the contact page far exceed the number of comments in the blog. In the hope of clarifying the most common questions related to the Zmanim API and to a lesser degree other parts of this site, I plan on a series of FAQ posts that will hopefully cut down on [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" src="/images/coffeeQuestion.jpg" alt="Java FAQ"/>Questions communicated to me via the <a href="/contact/">contact page</a> far exceed the number of comments in the blog. In the hope of clarifying the most common questions related to the <a href="http://www.kosherjava.com/zmanim-project/">Zmanim API</a> and to a lesser degree other parts of this site, I plan on a series of FAQ posts that will hopefully cut down on the number of questions. The <a href="/tag/faq/">list of FAQs</a> may eventually be consolidated into a FAQ page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kosherjava.com/2009/11/05/plans-for-a-zmanim-api-faq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zmanim Calendar Generator Can Now Output Fewer Zmanim</title>
		<link>http://www.kosherjava.com/2009/05/18/zmanim-calendar-generator-can-now-output-less-zmanim/</link>
		<comments>http://www.kosherjava.com/2009/05/18/zmanim-calendar-generator-can-now-output-less-zmanim/#comments</comments>
		<pubDate>Tue, 19 May 2009 03:00:44 +0000</pubDate>
		<dc:creator>KosherJava</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[Software Dev]]></category>
		<category><![CDATA[Zmanim]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Tfilah]]></category>

		<guid isPermaLink="false">http://www.kosherjava.com/?p=174</guid>
		<description><![CDATA[After numerous requests, the Zmanim Calendar Generator can now output a less extensive list of zmanim. While the &#8220;full&#8221; calendar option (the default) generates an Excel spreadsheet with 108 columns of zmanim, the &#8220;standard&#8221; output generates a spreadsheet with 15 columns containing the most commonly used zmanim. The exact list of what constitutes commonly used [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" src="/images/calendarJava.png" alt="Java Calendar"/>After numerous requests, the <a href="/zmanim-project/zmanim-calendar-generator/">Zmanim Calendar Generator</a> can now output a less extensive list of zmanim. While the &#8220;full&#8221; calendar option (the default) generates an <a href="http://en.wikipedia.org/wiki/Microsoft_Excel">Excel</a> spreadsheet with 108 columns of zmanim, the &#8220;standard&#8221; output generates a spreadsheet with 15 columns containing the most commonly used zmanim. The exact list of what constitutes commonly used zmanim is likely to be tweaked over time. The spreadsheet was initially designed for <a href="http://en.wikipedia.org/wiki/Software_developer">developers</a> as a sample of the various zmanim available in the <a href="http://en.wikipedia.org/wiki/API">API</a> . Developers can compare the output of their zmanim using the API, or a ported version of the API to the spreadsheet for accuracy. Based on feedback, many people use it to generate <a href="http://en.wikipedia.org/wiki/Synagogue">shul</a> calendars, and wanted a less daunting list of zmanim.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kosherjava.com/2009/05/18/zmanim-calendar-generator-can-now-output-less-zmanim/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Zmanim API 1.1 Released</title>
		<link>http://www.kosherjava.com/2009/03/27/zmanim-api-11-released/</link>
		<comments>http://www.kosherjava.com/2009/03/27/zmanim-api-11-released/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 18:49:02 +0000</pubDate>
		<dc:creator>KosherJava</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[Software Dev]]></category>
		<category><![CDATA[Zmanim]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Syrian Jews]]></category>
		<category><![CDATA[Zmanim API Release]]></category>

		<guid isPermaLink="false">http://www.kosherjava.com/?p=137</guid>
		<description><![CDATA[The Zmanim API 1.1 was released early this morning. Information about what changed in this release can be seen in previous posts about various beta and patch releases. A last minute change involved the removal of the misheyakir calculations commonly used by the Syrian community. The removal was due to the various different minhagim used, [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" src="/images/SpilledCoffee.png" alt="Zmanim API Release" title="Zmanim API Release" />The Zmanim API 1.1 was released early this morning. Information about what changed in this release can be <a href="/2009/02/25/zmanim-api-11-beta-3-released/">seen</a> in previous <a href="/2008/04/17/zmanim-api-11-release-candidate-available/">posts</a> about various <a href="/2008/07/17/zmanim-api-11-beta-2-released/">beta</a> and <a href="/2008/04/13/fix-to-noaa-sunrisesunset-algorithm/">patch</a> <a href="/2008/02/07/updated-zmanim-jar-released-please-download-the-latest/">releases</a>. A last minute change involved the removal of the <em>misheyakir</em> calculations commonly used by the Syrian community. The removal was due to the various different minhagim used, and <a href="http://en.wikipedia.org/wiki/Moetzes_Gedolei_HaTorah#Current_members">Chacham Yosef Harari-Raful</a> not endorsing any one, or including any, in his calendar. The API is flexible enough to be used for any calculation wanted by the various Syrian shuls even without &#8220;native&#8221; support for a built in &#8220;Ateret Torah&#8221; <em>misheyakir</em>. Some missing JavaDocs were also added.</p>
<p>I would like to again thank Rabbi Rachamim Ashkenazi the publisher of a zmanim calendar for the Syrian Community, and <a href="http://www.linkedin.com/pub/4/4a/930">Victor Grazi</a> for his input, testing and technical expertise used for adding the new “Ateret Torah” zmanim.</p>
<p>The main download is the <a href="/zmanim/release/zmanim-1.1.zip">Zmanim 1.1 release</a> zip file that includes source files and <a href="/zmanim/docs/api/">JavaDoc documentation</a>. Also available for download (included in the above zip file) is the main <a href="/zmanim/lib/zmanim-1.1.jar">zmanim-1.1.jar</a> and the new <a href="/zmanim/lib/zmanimAstronomical-1.1_beta_3.jar">zmanimAstronomical-1.1.jar</a> that only includes the <a href="/zmanim/docs/api/net/sourceforge/zmanim/AstronomicalCalendar.html">AstronomicalCalendar</a> and supporting classes. Additional detail on the downloads can be seen on the <a href="/zmanim-project/downloads/">Zmanim Download page</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kosherjava.com/2009/03/27/zmanim-api-11-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
