<?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 &#187; Cross Platform</title>
	<atom:link href="http://www.kosherjava.com/tag/cross-platform/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kosherjava.com</link>
	<description>A weblog about Zmanim, Kosher Coffee (Kosher Java) and other odds &#38; ends</description>
	<lastBuildDate>Fri, 06 Jan 2012 18:28:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>ZmanimCLI (Command Line Interface)</title>
		<link>http://www.kosherjava.com/2009/11/21/zmanimcli-command-line-interface/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=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[Moshe Wagner who wrote the <a href="http://www.kosherjava.com/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="http://www.kosherjava.com/zmanim-project/">Zmanim API</a>. The technical approach of using reflection was similar to the way I used reflection in the <a href="http://www.kosherjava.com/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:

<pre class="brush: plain; title: ; notranslate">moshe@debian:~/Desktop$ java -jar ZmanimCLI.jar sunrise
6:10:28</pre>

<pre class="brush: plain; title: ; notranslate">moshe@debian:~/Desktop$ java -jar ZmanimCLI.jar --date 2010/08/12 tzais72
20:38:15</pre>

<pre class="brush: plain; title: ; notranslate">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>

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:

<blockquote>Why is this useful?
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.</blockquote>

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="http://www.kosherjava.com/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.]]></content:encoded>
			<wfw:commentRss>http://www.kosherjava.com/2009/11/21/zmanimcli-command-line-interface/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

